(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[67],{Hbak:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));const n={props:{languageLabels:{type:Object,default:function(){return this.$options.languageLabelDefaults||{}}}},methods:{languageLabel(t,e=[]){let o=null;if(this.languageLabels[t]?o=this.languageLabels[t]:this.$options.languageLabelDefaults&&this.$options.languageLabelDefaults[t]&&(o=this.$options.languageLabelDefaults[t]),null===o)return console.warn(`Language label ${t} is missing`),`${t}[${e.map(t=>t.toString()).join(",")}]`;for(const t of Object.keys(e))o=o.replace(new RegExp(`\\{${t}\\}`,"g"),e[t]);return o}}}},"KHd+":function(t,e,o){"use strict";function n(t,e,o,n,a,i,s,r){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=o,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):a&&(l=r?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:u}}o.d(e,"a",(function(){return n}))},SClo:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"flex justify-between text-sm bg-gray-100 border border-gray-200 rounded-sm tb-copy-to-clipboard"},[o("input",{staticClass:"w-full p-4 pr-0 text-gray-600 truncate bg-transparent tb-copy-to-clipboard__value",attrs:{id:t.autoId,disabled:"",type:"text"},domProps:{value:t.valueToCopy}}),t._v(" "),o("button",{staticClass:"inline-flex items-center flex-shrink-0 p-4 space-x-1 transition duration-200 rounded-r-sm tb-copy-to-clipboard__button focus:shadow-outline focus:outline-none",class:[t.hasCopied?"text-positive-500 cursor-default":"text-primary-500 hover:text-primary-700"],attrs:{disabled:t.hasCopied},on:{click:function(e){return t.copy()}}},[o("tb-icon",{staticClass:"tb-copy-to-clipboard__icon",attrs:{icon:t.hasCopied?"checkmark":"copy"}}),t._v(" "),o("span",[t._v(t._s(t.buttonLabel||t.languageLabel("copyLink")))])],1)])};n._withStripped=!0;var a={data:()=>({autoId:"",hasCopied:!1,valueToCopy:null}),mixins:[o("Hbak").a],props:{value:{type:String,default:null,required:!1},buttonLabel:{type:String,default:null,required:!1}},languageLabelDefaults:{copyLink:"Link kopieren"},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},beforeDestroy(){this.hasCopied=!1}},i=o("KHd+"),s=Object(i.a)(a,n,[],!1,null,null,null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-copy-to-clipboard.vue";e.default=s.exports}}]);