(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[266],{"KHd+":function(e,t,o){"use strict";function n(e,t,o,n,i,s,a,r){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=r?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(e,t){return l.call(t),p(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}o.d(t,"a",(function(){return n}))},XY0L:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"flex justify-between text-sm bg-gray-100 border border-gray-200 rounded-sm tb-w-copy-to-clipboard"},[o("input",{staticClass:"w-48 p-4 pr-0 text-gray-600 truncate bg-transparent tb-w-copy-to-clipboard__value hidden md:block",attrs:{id:e.autoId,disabled:"",type:"text"},domProps:{value:e.valueToCopy}}),e._v(" "),o("button",{staticClass:"inline-flex items-center flex-shrink-0 p-4 space-x-1 transition duration-200 rounded-r-sm tb-w-copy-to-clipboard__button focus:shadow-outline focus:outline-none",class:[e.hasCopied?"text-positive-500 cursor-default":"text-primary-500 hover:text-primary-700"],attrs:{disabled:e.hasCopied},on:{click:function(t){return e.copy()}}},[o("tb-w-icon",{staticClass:"tb-w-copy-to-clipboard__icon",attrs:{icon:e.hasCopied?"checkmark":"copy"}}),e._v(" "),o("span",[e._v(e._s(e.buttonLabel||e.$t("message.copyLink")))])],1)])};n._withStripped=!0;var i={data:()=>({autoId:"",hasCopied:!1,valueToCopy:null}),props:{value:{type:String,default:null},buttonLabel:{type:String,default:null}},methods:{copy(){navigator.clipboard.writeText(this.valueToCopy).then(()=>{this.hasCopied=!0},(function(){console.error("Writing to clipboard failed")}))}},mounted(){this.autoId=Math.random().toString(26).substr(2),this.valueToCopy=this.value||window.location.href},beforeDestroy(){this.hasCopied=!1},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{copyLink:"Link kopieren"}},en:{message:{copyLink:"Copy Link"}},fr:{message:{copyLink:"Copier le lien"}},it:{message:{copyLink:"Copia link"}},es:{message:{copyLink:"Copiar link"}},nl:{message:{copyLink:"Kopieer link"}},cs:{message:{copyLink:"Kopírovat odkaz"}}}}},s=o("KHd+"),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-copy-to-clipboard.vue";t.default=a.exports}}]);