(()=>{"use strict";var t,e={1711(){function t(t){const{config:e,contact:o}=t;return{cfg:e,contact:o,posBottom:null,toast:"",activeWechat:!1,get waUrl(){const t=this.contact.whatsapp?.url||"",e=this.cfg.whatsapp_message;if(!t||!e)return t;const o=t.includes("?")?"&":"?";return t+o+"text="+encodeURIComponent(e)},init(){const t=localStorage.getItem("pg-fc-pos-bottom");null!==t&&this.cfg.show_drag_handle&&(this.posBottom=+t),document.addEventListener("click",t=>{this.activeWechat&&!this.$el.querySelector(".pg-fc-wechat")?.contains(t.target)&&(this.activeWechat=!1)})},async copy(t){try{await navigator.clipboard.writeText(t)}catch{const e=Object.assign(document.createElement("textarea"),{value:t,style:"position:fixed;left:-9999px"});document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}this.showToast(this.cfg.copy_success_text||"Copied!")},showToast(t){this.toast=t,clearTimeout(this._toastTimer),this._toastTimer=setTimeout(()=>{this.toast=""},2200)},dragStart(t){var e,o;const n=null!==(e=null!==(o=t.clientY)&&void 0!==o?o:t.touches?.[0]?.clientY)&&void 0!==e?e:0,i=this.$el.getBoundingClientRect(),s=window.innerHeight-i.bottom;document.body.classList.add("pg-fc-dragging");const c=t=>{var e,o;const i=null!==(e=null!==(o=t.clientY)&&void 0!==o?o:t.touches?.[0]?.clientY)&&void 0!==e?e:0,c=s-(i-n),a=window.innerHeight-this.$el.offsetHeight-12;this.posBottom=Math.max(12,Math.min(a,c))},a=()=>{document.body.classList.remove("pg-fc-dragging"),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",c),document.removeEventListener("touchend",a),localStorage.setItem("pg-fc-pos-bottom",this.posBottom)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",a),document.addEventListener("touchmove",c,{passive:!1}),document.addEventListener("touchend",a)}}}document.addEventListener("alpine:init",()=>{Alpine.data("pgWidgetFloatContact",t)})}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,o,i,s)=>{if(!o){var c=1/0;for(l=0;l<t.length;l++){for(var[o,i,s]=t[l],a=!0,r=0;r<o.length;r++)(!1&s||c>=s)&&Object.keys(n.O).every(t=>n.O[t](o[r]))?o.splice(r--,1):(a=!1,c>s&&(c=s));if(a){t.splice(l--,1);var d=i();void 0!==d&&(e=d)}}return e}s=s||0;for(var l=t.length;l>0&&t[l-1][2]>s;l--)t[l]=t[l-1];t[l]=[o,i,s]},n.o=(t,e)=>({}.hasOwnProperty.call(t,e)),(()=>{var t={55:0,143:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var i,s,[c,a,r]=o,d=0;if(c.some(e=>0!==t[e])){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(r)var l=r(n)}for(e&&e(o);d<c.length;d++)s=c[d],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(l)},o=globalThis.webpackChunkpuffergo_core=globalThis.webpackChunkpuffergo_core||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var i=n.O(void 0,[143],()=>n(1711));i=n.O(i)})();