(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[179],{XY0L:function(e,o,t){"use strict";t.r(o);var i=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"flex justify-between text-sm bg-gray-100 border border-gray-200 rounded-sm tb-w-copy-to-clipboard"},[t("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(" "),t("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(o){return e.copy()}}},[t("tb-w-icon",{staticClass:"tb-w-copy-to-clipboard__icon",attrs:{icon:e.hasCopied?"checkmark":"copy"}}),e._v(" "),t("span",[e._v(e._s(e.buttonLabel||e.$t("message.copyLink")))])],1)])};i._withStripped=!0;var a={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"}},cz:{message:{copyLink:"Kopírovat odkaz"}}}}},n=t("KHd+"),s=Object(n.a)(a,i,[],!1,null,null,null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-copy-to-clipboard.vue";o.default=s.exports}}]);