1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0f9476da-b2c6-48fd-bac8-05d714d2a073",e._sentryDebugIdIdentifier="sentry-dbid-0f9476da-b2c6-48fd-bac8-05d714d2a073")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3859,8084],{5395:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var o=l(95155),n=l(12115);l(22161);var a=l(77374),s=l(89005),i=l(13546),r=l(95604);function c(e){let{handleCloseModal:t,onChange:l}=e,c=(0,n.useRef)(null),[d,p]=(0,n.useState)("emoji"),u=(0,n.useContext)(s.M),[x,m]=(0,n.useState)(""),g=(0,r.useTranslations)("app.editor");function h(e){l(e.i.includes("<svg")?e.i:'<svg class="fill-current" pointer-events="none" width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="'.concat(e.i,'"></path></svg>')),"mobile"===(0,i.H9)()&&t()}function f(e){return null==e?void 0:e.toString().includes(x)}return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"py-[12px] relative text-[14px] text-gray5 font-bold flex flex-row justify-center items-center gap-[12px]",children:[(0,o.jsxs)("svg",{onClick:()=>t(),className:"absolute cursor-pointer transition active:scale-95 md:top-[8px] right-[8px]",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",fill:"white"}),(0,o.jsx)("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",stroke:"#EAEAEA"}),(0,o.jsx)("path",{d:"M8.66675 8.66666L15.3334 15.3333",stroke:"#3E87F8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M15.3334 8.66666L8.66675 15.3333",stroke:"#3E87F8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,o.jsx)("span",{onClick:()=>{p("emoji")},className:"".concat("emoji"===d?"text-blue":""," cursor-pointer transition active:scale-95"),children:g("popupicons.tab1")}),(0,o.jsx)("span",{onClick:()=>{p("icon")},className:"".concat("icon"===d?"text-blue":""," cursor-pointer transition active:scale-95"),children:g("popupicons.tab2")})]}),(0,o.jsx)("input",{autoComplete:"off",ref:c,spellCheck:!1,value:x,onChange:e=>m(e.target.value.toLowerCase()),type:"text",placeholder:g("popupicons.searchplaceholder"),className:"border border-gray5 border-opacity-20 rounded-[6px] search-input"}),(0,o.jsxs)("div",{className:"overflow-scroll max-h-[477px] no-scrollbar",children:["emoji"===d&&(0,o.jsxs)("div",{className:"md:w-[240px] my-[5px] mx-auto flex flex-wrap justify-center",children:[u.emojis.filter(e=>x?f(e.n):e).slice(0,102).map((e,n)=>(0,o.jsx)("div",{onClick:()=>{l(e.i),"mobile"===(0,i.H9)()&&t()},className:"emoji-item",children:(0,o.jsx)("span",{className:"leading-[20px]",children:e.i})},n)),0===u.emojis.length&&(0,o.jsx)("div",{className:"flex items-center justify-center w-full h-[150px] text-blue",children:a.wG})]}),"icon"===d&&(0,o.jsxs)("div",{className:"md:w-[240px] my-[5px] mx-auto flex flex-wrap justify-center",children:[u.material.filter(e=>x?f(e.n):e).slice(0,102).map((e,t)=>(0,o.jsx)("div",{onClick:h.bind(null,e),className:"icon-item",title:e.n,children:e.i.includes("<svg")?(0,o.jsx)("div",{className:"w-[15px]",dangerouslySetInnerHTML:{__html:e.i}}):(0,o.jsx)("svg",{className:"fill-current",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"20px",children:(0,o.jsx)("path",{fill:"#A4ADBA",d:e.i})})},t)),0===u.material.length&&(0,o.jsx)("div",{className:"flex items-center justify-center w-full h-[150px] text-blue",children:a.wG})]})]})]})}let d=e=>{let t=(0,n.useRef)(null),[l,a]=(0,n.useState)(!1),[s,r]=(0,n.useState)(!1),[d,p]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),m=(0,n.useRef)(null);function g(t){e.isStatic||(a(!1),setTimeout(()=>{r(!1)},100))}function h(){g(null),p(!0),setTimeout(()=>{x(!0)},100)}function f(e){"Escape"===e.key&&b()}function b(){var e,t;x(!1),null==(e=m.current)||e.removeAttribute("open"),null==(t=m.current)||t.close(),setTimeout(()=>{p(!1)},150)}return(0,n.useEffect)(()=>
1{if(d){var e;t.current.closest(".typelink-item")&&(t.current.closest(".typelink-item").parentNode.style.zIndex="11",t.current.closest(".grid-layout").style.zIndex="11"),document.addEventListener("keydown",f),null==(e=m.current)||e.showModal()}return()=>{t.current&&t.current.closest(".typelink-item")&&(t.current.closest(".typelink-item").parentNode.style.zIndex="",t.current.closest(".grid-layout").style.zIndex=""),document.removeEventListener("keydown",f)}},[d]),(0,o.jsxs)("div",{"data-no-dnd":!0,ref:t,tabIndex:0,onBlur:function(e){var l,o,n;"mobile"!==(0,i.H9)()&&((null==(l=t.current)?void 0:l.contains(e.relatedTarget))||(null==(o=m.current)||o.removeAttribute("open"),null==(n=m.current)||n.close(),x(!1),setTimeout(()=>p(!1),150)))},className:"relative outline-none",onMouseEnter:function(t){e.isStatic||e.onClickOpen||d||(r(!0),setTimeout(()=>{a(!0)},10))},onMouseLeave:g,children:[(0,o.jsx)("div",{onClick:function(){!e.isStatic&&("mobile"===(0,i.H9)()||e.onClickOpen)&&h()},className:e.className+" outline-none",dangerouslySetInnerHTML:{__html:e.src}}),s&&(0,o.jsx)("div",{className:"hidden md:block absolute z-[21] uploader-panel",style:"top"===e.panelAlign?{top:-30,paddingBottom:20,paddingRight:20,left:"50%",marginLeft:-15}:{bottom:-40,paddingTop:40},children:(0,o.jsxs)("div",{className:"".concat(l?"scale-100 opacity-100":"scale-95 opacity-0"," c-shadow transition flex flex-row justify-center items-center bg-blue rounded-md"),children:[(0,o.jsx)("div",{className:"absolute bg-blue w-[12px] h-[12px] rounded-sm bottom-[-3px] left-[10px] rotate-45 z-[0]",style:"top"===e.panelAlign?{bottom:-3}:{top:-3}}),(0,o.jsx)("label",{onClick:h,className:"cursor-pointer active:scale-95 z-[1] p-[6px]",children:(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/icon-picker.svg",className:"max-w-[19px] w-[19px] h-[16px]"})})]})}),d&&"desktop"===(0,i.H9)()&&(0,o.jsx)("div",{className:"icon-picker__popup ".concat(e.position||"left-[100px] top-[100px]"," !fixed grid-drag__disabled transition-all duration-100 ").concat(u?"scale-100 opacity-100":"scale-95 opacity-0"),children:(0,o.jsx)(c,{onChange:e.onChange,handleCloseModal:b})}),d&&"mobile"===(0,i.H9)()&&(0,o.jsxs)("dialog",{ref:m,className:"modal modal-bottom text-black",children:[(0,o.jsxs)("div",{className:"modal-box md:max-w-[800px] lg:max-w-[1040px] md:mx-auto h-[80%] md:h-auto w-full",children:[(0,o.jsx)("div",{className:"block md:hidden left-1/2 -translate-x-1/2 -translate-y-[24px] top-[7px] w-[44px] h-[4px] rounded-[4px] bg-gray5 sticky opacity-50"}),(0,o.jsx)("div",{className:"modal-body justify-center",children:(0,o.jsx)("div",{children:(0,o.jsx)(c,{onChange:e.onChange,handleCloseModal:b})})})]}),(0,o.jsx)("form",{method:"dialog",onClick:b,className:"modal-backdrop",children:(0,o.jsx)("button",{children:"close"})})]})]})}},22161:()=>{},33859:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>c,getButtonBgColor:()=>r});var o=l(95155),n=l(95644),a=l.n(n),s=l(12115),i=l(79775);function r(e,t){return e.includes("bg-black")&&t.includes("bg-black")?"bg-white text-black border border-transparent":e.includes("bg-green")&&t.includes("bg-green")?"bg-white text-green border border-transparent":e.includes("bg-blue")&&!e.includes("bg-blue3")&&t.includes("bg-blue")?"bg-white text-blue border border-transparent":t}l(98636);let c=e=>{var t;let l=(0,s.useRef)(null),n=(0,s.useRef)(null),[c,d]=(0,s.useState)(0),[p,u]=(0,s.useState)(0),[x,m]=(0,s.useState)(!1),{data:g,id:h}=e.widget,[f,b]=(0,s.useState)([]),[y,w]=(0,s.useState)(!1),[v,j]=(0,s.useState)(!1),k=(0,s.useCallback)((t,o)=>{e.updateWidgetDataInPage({[t]:a()(o,{allowedTags:["b","i","a","p"],allowedAttributes:{a:["href"]}})},e.widget.id),clearTimeout(l.current),l.current=setTimeout(()=>{e.setSavePage({save:!0})},300)},[]);function C(e){var t,l;let o=0;n.current.querySelector(".typelink-list").style.width="".concat(e,"px"),null==(l=n.current)||null==(t=l.querySelectorAll(".typelink-list__item"))||t.forEach((e,t)=>{var l;o+=parseFloat(getComputedStyle(e).height),t!==(null==(l=n.current)?void 0:l.querySelectorAll(".typelink-list__item").length)-1&&(o+=8)});let a=o;return a+=55,n.current.querySelector(".typelink-list").style.width="",Math.
1ceil(a/94)}function N(){setTimeout(()=>{let t=C(654),l=C(294);(parseFloat(g.style.desktop.split("x")[1])!==t||parseFloat(g.style.mobile.split("x")[1])!==l)&&((t,l)=>{let o={};o.desktop="".concat(parseFloat(g.style.desktop.split("x")[0]),"x").concat(4===parseFloat(g.style.desktop.split("x")[0])?t:l),o.mobile="".concat(parseFloat(g.style.mobile.split("x")[0]),"x").concat(l);let n=Object.assign(g.style,o);e.updateWidgetDataInPage({style:n},e.widget.id)})(t,l)})}let S="text-white";async function _(t){if(t.preventDefault(),e.isStatic){b([]);try{m(!0);let l={};new FormData(t.target).forEach(function(e,t){l[t]=e});let o=JSON.stringify(l),n=await fetch("/api/requests?site=".concat(e.siteSubdomain,"&page=").concat(e.pagePath,"&form=").concat(h),{method:"POST",body:o});(n=await n.json()).errors?b(n.errors):(w(!0),setTimeout(()=>{j(!0)},100)),m(!1)}catch(e){console.log(e.message),m(!1)}}}return g.items.length,(0,s.useEffect)(()=>{N(),setTimeout(()=>{var e,t,l;let o=null==(e=n.current)?void 0:e.querySelector(".typelink-list__item"),a=null==(l=n.current)||null==(t=l.querySelector(".typelink-list"))?void 0:t.querySelector(".typelink-list__item:nth-child("+g.items.length+")");d((null==o?void 0:o.offsetTop)+11),u((null==a?void 0:a.offsetHeight)-11)},300)},[null==(t=e.dataItems)?void 0:t.length,e.w]),(0,s.useEffect)(()=>{e.fontsLoaded&&N()},[e.fontsLoaded]),(0,o.jsx)("div",{ref:n,style:e.customStyle,className:"typelink-item ".concat(e.customClassname," typelink-item__form typelink-item__form-").concat(g.design," ").concat(e.isStatic?"typelink-item__static":""," justify-center items-center text-").concat(g.alignH," ").concat(g.fullWidth?"":g.colorscheme.border," ").concat(g.colorscheme.bg," ").concat(S," ").concat(g.fullWidth?"":"rounded-2xl"," flex ").concat("flex-col"),children:(0,o.jsx)("div",{className:"flex flex-row items-center justify-center relative h-full ".concat(g.fullWidth?"mobile"!==e.currentDevice||e.isStatic?"lg:w-[780px] md:w-[780px] w-[360px] mx-auto":"w-[360px] mx-auto":"w-full"),children:y?(0,o.jsxs)("div",{onClick:()=>{j(!1),w(!1)},className:"".concat(v?"opacity-100 scale-100":"opacity-0 scale-95"," select-none active:scale-95 cursor-pointer rounded-2xl transition-all flex flex flex-col items-center justify-center absolute -top-[0] -left-[0] -right-[0] -bottom-[0]"),children:[(0,o.jsx)("span",{className:"text-[46px]",children:"\uD83C\uDF89"}),(0,o.jsx)("div",{className:"typelink-item__form-success-text text-center text-[14px] text-black !bg-transparent",children:"Thanks!"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("form",{noValidate:!e.isStatic,className:"flex flex-col gap-[8px] relative typelink-list w-full max-w-[280px]",onSubmit:e=>_(e),children:[g.items.map(e=>{var t;return(0,o.jsxs)("div",{className:"w-full flex typelink-list__item flex-none flex-row gap-[20px] relative",children:[["email","name","phone"].includes(e.type)&&(0,o.jsx)("input",{className:"w-full appearance-none text-black outline-none border border-gray5 text-[14px] border-opacity-20 px-[16px] py-[11px] rounded-[12px] ".concat("start"===g.alignH?"text-left":"text-center"),type:"name"===e.type?"text":"phone"===e.type?"number":e.type,placeholder:e.placeholder,name:e.name,required:e.required}),"text"===e.type&&(0,o.jsx)("textarea",{className:"w-full resize-none text-black outline-none border border-gray5 text-[14px] border-opacity-20 px-[16px] py-[11px] rounded-[12px] ".concat("start"===g.alignH?"text-left":"text-center"),placeholder:e.placeholder,name:e.name,required:e.required}),"dropdown"===e.type&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"typelink-item__form-select_wrap w-full border border-solid border-gray5 border-opacity-20 rounded-[12px] w-40 h-[45px] overflow-hidden",children:(0,o.jsx)("select",{name:e.name,onChange:()=>{},className:"".concat("start"===g.alignH?"text-left":"text-center"," typelink-item__form-select pl-1 pr-[30px] w-full truncate h-full text-black focus:outline-none text-[14px]"),children:null==(t=e.options)?void 0:t.map((e,t)=>(0,o.jsx)("option",{value:e,children:e},t))})})})]},e.id)}),(0,o.jsx)("button",{type:"submit",disabled:x,className:"typelink-list__item button ".concat(r(g.colorscheme.bg,g.buttonBgColor)," ").concat(x?"bg-gray2":""," ").concat(e.isStatic?"active:scale-95 transition-all":""," flex justify-center typelink-item__form-button font-bold p-[24px] py-[12px] text-[14px] rounded-[12px]"),children:x?(0,o.jsx)("div",{className:"loading text-gray5 w-[21px] h-[21px]"}):(0,o.jsx)(i.A,{isStatic:e.isStatic,wrapperClass:"relative",onChange:k.bind(null,"buttonText"),textColor:S,html:g.buttonText,className:"outline-none ".concat(e.isStatic?"cursor-pointer":"")})})]}),(0,o.jsx)("div",{className:"mt-[10px]",children:f.map((e,t)=>(0,o.jsx)("div",{className:"error text-red text-[11px]",children:e.message},t))})]})})})}},48084:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>u});var o=l(95155),n=l(12115),a=l(95644),s=l.n(a),i=l(79775),r=l(33859),c=l(5395),d=l(41245),p=l(97417);let u=e=>{var t;let l=(0,n.useRef)(null),{data:a,id:u}=e.widget,x=(0,p.o)(),m=(null==x?void 0:x.getTextBlockStyle)||(()=>({})),g=(null==x?void 0:x.setSelectedTextBlockId)||(()=>{}),h=n.useCallback((t,o,n)=>{let i=a.items.slice(0),r=i.find(e=>e.id===n),c=s()(o,{allowedTags:["b","i"],allowedAttributes:{},disallowedTagsMode:"discard"});c=(c=c.replace(/https?:\/\/[^\s]+/gi,"")).replace(/www\.[^\s]+/gi,""),r[t]=c,e.updateWidgetDataInPage({items:i},e.widget.id),clearTimeout(l.current),l.current=setTimeout(()=>{e.setSavePage({save:!0})},300)},[]),f=a.colorscheme.textColor||"".concat((null==(t=e.layoutColorSchemeBg)?void 0:t.includes("black"))?"text-white":""),b=a.items.filter(e=>!1!==e.enabled).slice(0,a.buttonsCount||2),y=b.length>1;return(0,o.jsx)("div",{style:e.customStyle,className:"typelink-item ".concat(e.customClassname," justify-center flex items-center ").concat(y&&"mobile"===e.currentDevice?"!flex-wrap":""," gap-[16px] ").concat(y?"flex-wrap":""," md:flex-row md:flex-nowrap ").concat(e.isStatic?"typelink-item__static":""," ").concat(a.fullWidth?"":a.colorscheme.border," ").concat(a.colorscheme.bg," ").concat(f," ").concat(a.fullWidth?"":"rounded-2xl"," !p-0"),children:(0,o.jsx)("div",{className:"flex flex-row justify-center h-full relative items-center gap-[16px] ".concat(a.fullWidth?"mobile"!==e.currentDevice||e.isStatic?"lg:w-[780p
1x] md:w-[780px] w-[360px] mx-auto":"w-[360px] mx-auto":"w-full"),children:b.map((t,l)=>(0,o.jsxs)("a",{target:"_blank",href:function(e,t){return"link"===e?t:"email"===e?"mailto:".concat(t):"whatsapp"===e?"https://wa.me/".concat(t):"phone"===e?"tel:".concat(t):void 0}(t.hrefType,t.href),onClick:e.isStatic?()=>{}:e=>e.preventDefault(),className:"button min-w-[".concat("appstore"===t.buttonBgColor||"googleplay"===t.buttonBgColor?"120px":"auto","] !no-underline ").concat(function(t){if("appstore"===t||"googleplay"===t){var l,o;return"bg-black text-white border ".concat((null==(l=a.colorscheme.bg)?void 0:l.includes("black"))||(null==(o=e.layoutColorSchemeBg)?void 0:o.includes("black"))&&!a.colorscheme.bg?"border-gray5 border-opacity-60":"border-transparent"," !rounded-[6px]")}return null}(t.buttonBgColor)||(0,r.getButtonBgColor)(a.colorscheme.bg,t.buttonBgColor)," ").concat(e.isStatic?"active:scale-95 transition-all":""," gap-[").concat("appstore"===t.buttonBgColor||"googleplay"===t.buttonBgColor?"7px":"9px","] flex items-center flex-shrink-0 justify-center font-bold p-[").concat("appstore"===t.buttonBgColor||"googleplay"===t.buttonBgColor?"8px":"24px","] py-[12px] text-[14px] h-[").concat("appstore"===t.buttonBgColor||"googleplay"===t.buttonBgColor?"40px":"47px","] rounded-[12px]"),children:["appstore"===t.buttonBgColor&&(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/button-apple.svg",className:"w-[20px] h-[24px]"}),"googleplay"===t.buttonBgColor&&(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/googleplay-button.svg",className:"w-[21px] h-[24px]"}),t.showIcon&&"appstore"!==t.buttonBgColor&&"googleplay"!==t.buttonBgColor&&(0,o.jsx)(c.A,{isStatic:e.isStatic,panelAlign:"top",position:"top-[50px]",src:t.icon,onChange:l=>((t,l)=>{let o=a.items.slice(0);o.find(e=>e.id===l).icon=t,e.updateWidgetDataInPage({items:o},e.widget.id),e.setSavePage({save:!0})})(l,t.id),className:"w-[16px] text-[18px] text-center transition-icon"}),!function(e){return"appstore"===e?{top:"Download on the",bottom:"App Store"}:"googleplay"===e?{top:"Get it on",bottom:"Google Play"}:null}(t.buttonBgColor)?(0,o.jsx)(i.A,{isStatic:e.isStatic,wrapperClass:"relative",tagName:"div",onChange:e=>h("buttonText",e,t.id),textColor:t.buttonBgColor,html:t.buttonText,className:"outline-none truncate max-w-[210px] no-underline whitespace-nowrap ".concat(e.isStatic?"cursor-pointer":""),textBlockId:(0,d.BT)(a.type,"buttonText",u,t.id),textBlockStyle:m((0,d.BT)(a.type,"buttonText",u,t.id)),onTextBlockClick:g}):(0,o.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,o.jsx)("div",{children:"appstore"===t.buttonBgColor?(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/appstore-text.svg",className:"w-[70px] h-[7px]"}):(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/googleplay-text.svg",className:"w-[46px] h-[9px]"})}),(0,o.jsx)("div",{children:"appstore"===t.buttonBgColor?(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/appstore-text2.svg",className:"w-[74px] h-[16px]"}):(0,o.jsx)("img",{draggable:!1,loading:"lazy",src:"/images/icons/googleplay-text2.svg",className:"w-[74px] h-[15px]"})})]})]},t.id))})})}},98636:()=>{}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.