1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[318],{55636:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/order/[orderId]",function(){return n(21280)}])},54927:function(e,l){"use strict";l.Z={src:"/_next/static/media/wave.094c5092.png",height:335,width:1920,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAYAAADjAO9DAAAAIklEQVR4nGO89+rnPQYGhjNAfAuImYFYgYGBQQuIZYD4LwCZUAatBtGSNAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:1}},51490:function(e,l,n){"use strict";n.d(l,{z:function(){return c}});var t=n(85893),s=n(67294),a=n(88426),i=n(12003),o=n(56851);let d=(0,i.j)("btn-custom",{variants:{variant:{default:"home-btn-primary-custom",destructive:"btn btn-danger",outline:"btn-outline-custom",category:"btn-outline-custom-category",secondary:"btn-secondary-custom",ghost:"btn-ghost-custom",link:"text-primary underline home-underline-offset-4 hover-underline",hero:"home-btn-hero-custom"},size:{default:"btn-custom-default",sm:"btn-custom-sm",lg:"btn-custom-lg",icon:"btn-custom-icon"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,l)=>{let{className:n,variant:s,size:i,asChild:c=!1,...r}=e,u=c?a.g7:"button";return(0,t.jsx)(u,{className:(0,o.cn)(d({variant:s,size:i,className:n})),ref:l,...r})});c.displayName="Button"},77407:function(e,l,n){"use strict";n.d(l,{Z:function(){return c}});var t=n(85893),s=n(67294),a=n(55767),i=n(2465),o=n(11163),d=n(10856);function c(e){var l,n;let{disabled:c,isMulti:r,handleClick:u,networkCall:m,companyName:p,countryCode:v,TYPE:h,btnText:x,btnSmallText:b,bgColor:y,size:g,upsalePopup:j,isMobile:N}=e,{selectedLanguages:f,isMutiFlag:w}=(0,s.useContext)(i.z);return(0,o.useRouter)(),(0,t.jsx)("div",{children:(0,t.jsx)("button",{className:"btn btn-primary btn-mju letter-main-button ".concat(y||""," ").concat("modal"==h&&"py-3 py-md-3"," ").concat(j&&"upsale-subscription"),onClick:u,disabled:c||m,id:j?"submit-button-upsale":"submit-letter-btn",style:{backgroundColor:"#3C83F6"},children:(0,t.jsxs)("div",{className:"d-flex justify-content-center align-items-center ".concat(j&&"upsale-subscription"),children:[m?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"mx-2 spinner-border text-light",role:"status",children:(0,t.jsx)("span",{class:"sr-only",children:". Loading..."})})}):(0,t.jsx)(t.Fragment,{})," ","LETTER"==h?(0,t.jsxs)("span",{className:"mt-0",children:[(0,t.jsx)("span",{className:"makebold",children:w||r?(0,t.jsxs)(t.Fragment,{children:[" ",null==f?void 0:null===(l=f.letterPage)||void 0===l?void 0:l.multiCancelation.btnText]}):(0,t.jsx)(t.Fragment,{children:a.sx.includes(v)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Oe$,{className:"send-icon",size:24})," ",null==f?void 0:f.cancel," ",p]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Oe$,{className:"send-icon",size:24})," ",p," ",null==f?void 0:f.cancel]})})})," ",(0,t.jsx)("br",{}),(0,t.jsx)("small",{className:"text-small",children:null==f?void 0:null===(n=f.letterPage)||void 0===n?void 0:n.button_text})]}):b?(0,t.jsx)("span",{children:(0,t.jsxs)("span",{className:"".concat(j&&"upsale-subscription"),children:[(0,t.jsx)("span",{className:"d-block ".concat(j&&"upsale-subscription"," button-line-heightss"),style:{fontWeight:900,fontFamily:"SEGOE UI BOLD",marginBottom:"-3px",marginTop:"3px"},children:x}),(0,t.jsx)("span",{className:"button-line-heightss ".concat(j&&"upsale-subscription"),style:{fontSize:"13px",fontWeight:500,margin:0,padding:0},children:b})]})}):(0,t.jsx)("span",{className:"mt-0 lh-sm makebold ".concat("modal"==h&&"fs-5"," ").concat(j&&"upsale-subscription"),children:x})]})})})}},90481:function(e,l,n){"use strict";n.d(l,{Z:function(){return o}});var t=n(85893),s=n(25675),a=n.n(s),i={src:"/_next/static/media/loader.53e43206.gif",height:191,width:191,blurWidth:0,blurHeight:0},o=()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"d-flex py-5",children:(0,t.jsx)(a(),{src:i,className:"mx-auto"})})})},26309:function(e,l,n){},17865:function(e,l,n){"use strict";n.d(l,{cn:function(){return s}});var t=n(90512);function s(){for(var e=arguments.length,l=Array(e),n=0;n<e;n++)l[n]=arguments[n];return(0,t.W)(l)}},21280:function(e,l,n){"use strict";n.r(l),n.d(l,{__N_SSP:function(){return V},default:function(){return J}});var t=n(85893),s=n(67294),a=n(26527),i=n(90481),o=n(70088),d=function(e){let{c
1ountryCode:l,handleOpen1:n}=e,[a,i]=(0,s.useState)(0),[d,c]=(0,s.useState)(0),r=e=>{c(e),e>3?window.open("https://trustpilot.com/evaluate/unsubby.com","_blank"):n()};return(0,t.jsx)("div",{children:[1,2,3,4,5].map(e=>(0,t.jsx)("button",{onClick:()=>r(e),onMouseEnter:()=>i(e),onMouseLeave:()=>i(0),className:"btn p-1 border-0 bg-transparent rating-star-btn","aria-label":"Geef ".concat(e," sterren"),children:(0,t.jsx)(o.Z,{fill:e<=(a||d)?"hsl(160 75% 42%)":"none",stroke:e<=(a||d)?"hsl(160 75% 42%)":"#6c757d",style:{height:"32px",width:"32px",transition:"0.2s"}})},e))})},c=n(55578),r=n(25675),u=n.n(r),m={src:"/_next/static/media/Trustpilot_Logo.916ecc1f.png",height:628,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAASUlEQVR4nGNk2FqZyfD//xs5n45TPx31vjDefM3M8O8/IwMDAzsjI+NfRobNFcUMDP+fyfp2Xv+tqaDA8OEnL1ADG1DyF1DRHwCS4hoNVJdlswAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2};n(50542);var p=n(2465);n(62621);var v=n(12397),h=n(50259),x=n(56851),b=function(e){var l,n,i,o,d,r,b;let{orderId:y,countryCode:g,payment:j,show1:N,handleClose1:f,handleOpen1:w,setMessageStatus:k,messageStatus:A,isMulti:C,popupRating:S,setPopupRating:_}=e,{executeRecaptcha:E}=(0,h.xX)(),[I,T]=(0,s.useState)({name:"",email:"",body:""}),B=e=>{let l=e.target.name,n=e.target.value;T({...I,[l]:n})},F=async e=>{e.preventDefault();let l=document.getElementsByTagName("input"),n=document.getElementsByTagName("textarea"),t=!0;for(let[e,n]of Object.entries(l))n.required&&""==n.value||void 0===n.value?(n.className="border-1 border-danger shadow-danger contact-input",t=!1):n.required&&n.value&&(n.className="contact-input");for(let[e,l]of Object.entries(n))l.required&&""==l.value||void 0===l.value?(l.className="border-1 border-danger shadow-danger contact-input",t=!1):l.required&&l.value&&(l.className="contact-input");if(t){if(!E)return;let e=await E("reviewForm"),l={name:null==I?void 0:I.name,email:null==I?void 0:I.email,body:null==I?void 0:I.body,countryCode:g,orderId:y,code:e,type:"reviewForm"},n="".concat(a.T5,"/contact/uemail");try{let e=await (0,v.v_)(n,l);(null==e?void 0:e.data)&&(k(!0),f(),D())}catch(e){k(!1)}T({name:"",email:"",body:""})}},{selectedLanguages:L,selectedLang:Z,setMyUnsubbyModal:R,myUnsubbyModal:P}=(0,s.useContext)(p.z);(0,s.useEffect)(()=>{var e;x.vK.includes(null==Z?void 0:null===(e=Z.value)||void 0===e?void 0:e.split("-")[1])&&_(!0)},[Z]);let U=e=>{let l=e.map(e=>e.companyName),n=l.pop();return l.length?"".concat(l.join(", "),", ").concat(null==L?void 0:L.and," ").concat(n):n},D=()=>_(!1),M=e=>{e>3?window.open("https://trustpilot.com/evaluate/unsubby.com","_blank"):(D(),w())};return(0,t.jsxs)("div",{className:"App",children:[(0,t.jsxs)(c.Z,{show:N,dialogClassName:"rating-modal-position",onHide:f,children:[(0,t.jsx)(c.Z.Header,{closeButton:!0}),(0,t.jsx)(c.Z.Body,{className:"d-flex gap-2 flex-column mb-3",children:(0,t.jsx)("div",{className:"contaisner",children:(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("h3",{dangerouslySetInnerHTML:{__html:null==L?void 0:null===(l=L.thankyou)||void 0===l?void 0:l.form_head}}),(0,t.jsx)("p",{children:null==L?void 0:null===(n=L.thankyou)||void 0===n?void 0:n.form_subhead}),(0,t.jsxs)("form",{className:"contact-form",children:[(0,t.jsx)("div",{className:"mt-2"}),(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)("input",{type:"text",className:"contact-input",placeholder:null==L?void 0:null===(i=L.contactPage)||void 0===i?void 0:i.input_name,name:"name",required:!0,onChange:B})}),(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)("input",{type:"email",name:"email",className:"contact-input",placeholder:null==L?void 0:null===(o=L.contactPage)||void 0===o?void 0:o.input_email,required:!0,onChange:B})}),(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)("textarea",{type:"textarea",rows:"5",name:"body",className:"contact-input",placeholder:null==L?void 0:null===(d=L.contactPage)||void 0===d?void 0:d.input_msg,required:!0,onChange:B,maxLength:2e3,style:{maxHeight:"180px",minHeight:"60px"}})}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{onClick:F,className:"submit-btn",children:null==L?void 0:null===(r=L.contactPage)||void 0===r?void 0:r.form_btn})})]})]})})})]}),(0,t.jsxs)(c.Z,{style:{zIndex:1e4},dialogClassName:"rating-modal-position",show:S,onHide:D,children:[(0,t.jsx)(c.Z.Header,{closeButton:!0,children:(0,t.jsx)(u(),{width:155,height:35,src:m})}),(0,t.jsxs)(c.Z.Body,{className:"d-flex gap-2 flex-column mb-3",children:[(0,t.jsxs)("div",{children:[C?(0,t.jsx)("h6",{children:null==L?void 0:null===(b=L.thankyou)||void 0===b?void 0:b.MultipleRatingModalHead.replace("{{CompanyNames}}",U(j.companies))}):(0,t.jsx)("h6",{children:null==L?void 0:L.thankyou.ratingModalHead.replace("{{CompanyName}}",U(j.companies))}),(0,t.jsx)("p",{children:null==L?void 0:L.thankyou.ratingModalP})]}),(0,t.jsxs)("div",{onClick:()=>M(5),className:"cursour-pointer border border-2 py-2 border-dark rounded",children:[(0,t.jsx)("h6",{className:"fw-bold text-center mb-0",children:null==L?void 0:L.thankyou.ratingModal5}),(0,t.jsx)("p",{className:"star rating-5",children:"â
â
â
â
â
"})]}),(0,t.jsxs)("div",{onClick:()=>M(4),className:"cursour-pointer border border-2 py-2 border-dark rounded",children:[(0,t.jsx)("h6",{className:"fw-bold text-center mb-0",children:null==L?void 0:L.thankyou.ratingModal4}),(0,t.jsx)("p",{className:"star rating-5",children:"â
â
â
â
"})]}),(0,t.jsxs)("div",{onClick:()=>M(3),className:"cursour-pointer border border-2 py-2 border-dark rounded",children:[(0,t.jsx)("h6",{className:"fw-bold text-center mb-0",children:null==L?void 0:L.thankyou.ratingModal3}),(0,t.jsx)("p",{className:"star rating-5",children:"â
â
â
"})]}),(0,t.jsxs)("div",{onClick:()=>
1M(2),className:"cursour-pointer border border-2 py-2 border-dark rounded",children:[(0,t.jsx)("h6",{className:"fw-bold text-center mb-0",children:null==L?void 0:L.thankyou.ratingModal2}),(0,t.jsx)("p",{className:"star rating-5",children:"â
â
"})]}),(0,t.jsxs)("div",{onClick:()=>M(1),className:"cursour-pointer border border-2 py-2 border-dark rounded",children:[(0,t.jsx)("h6",{className:"fw-bold text-center mb-0",children:null==L?void 0:L.thankyou.ratingModal1}),(0,t.jsx)("p",{className:"star rating-5",children:"â
"})]})]})]})]})},y=n(11163),g=n(54927),j=n(41664),N=n.n(j);n(46754),n(26309);var f=n(77407),w=n(51068),k={src:"/_next/static/media/check-icon.05e2ca4c.svg",height:15,width:23,blurWidth:0,blurHeight:0},A=n(31955),C=e=>{var l,n,i,o,d,r,m,h,b,g,j,C,S,_,E,I,T,B,F,L,Z,R,P,U,D,M,O,H,z,Y,W,q,G,V,J,K,Q,X,$,ee,el,en,et,es,ea,ei,eo,ed,ec,er,eu,em;let{handleOpenRating:ep,token:ev,countryCode:eh,metadata:ex,handleMyUnsubby:eb,HandleSubmit:ey,networkCall:eg,doSubscription:ej,btnDisable:eN,popupRating:ef,setTrialPopup:ew,setPopupRating:ek,customerId:eA,companies:eC,orderId:eS,isAlreadySubscribed:e_,trialCheck:eE,setTrialCheck:eI,isSubActive:eT,isCustomerActive:eB,isUsFunnelFlow:eF}=e,{selectedLanguages:eL,selectedLang:eZ,myUnsubbyModal:eR,setMyUnsubbyModal:eP,buttonText:eU,isMobile:eD}=(0,s.useContext)(p.z),{query:eM}
1=(0,y.useRouter)(),[eO,eH]=(0,s.useState)("");(0,s.useEffect)(()=>{eU.popup&&eP(!0)},[eU]);let ez=()=>{let e=ev||A.Z.get("refreshToken");if((x.sc.includes(eh.split("-")[1])||eF)&&e)window.location.href="".concat(a.vZ,"/check-auth?code=").concat(e,"&orderid=").concat(eS,"&ispremium=false");else{eP(!1),x.dC.includes(eh.split("-")[1])&&!eT&&eI(!0),ek(!0);let e={customerId:eA,countryCode:null==eh?void 0:eh.split("-")[1],languageCode:null==eh?void 0:eh.split("-")[0],companies:null==eC?void 0:eC.map(e=>({companyName:e.companyName}))};ev&&(0,v.v_)("/customer/send-nosubscribe-email",e,ev)}};return(0,s.useEffect)(()=>{var e,l,n,t,s,a;(null==eL?void 0:null===(e=eL.links)||void 0===e?void 0:e.my_unsubby)&&(null==eL?void 0:null===(n=eL.myUnsubbyAccount)||void 0===n?void 0:null===(l=n.popup2)||void 0===l?void 0:l.here)&&eH('<a target="_blank" href="/'.concat(eZ.value,"/").concat(null==eL?void 0:null===(t=eL.links)||void 0===t?void 0:t.my_unsubby,'">').concat(null==eL?void 0:null===(a=eL.myUnsubbyAccount)||void 0===a?void 0:null===(s=a.popup2)||void 0===s?void 0:s.here,"</a>"))},[eL,eZ.value]),(0,t.jsx)(t.Fragment,{children:x.vK.includes(null==eh?void 0:eh.split("-")[1])||e_||(x.sc.includes(eh.split("-")[1])||eF)&&eT?null:(0,t.jsxs)(c.Z,{show:eR,onHide:ez,keyboard:!1,"aria-labelledby":"contained-modal-title-vcenter",centered:!0,backdrop:"static",style:{maxHeight:"100vh",width:"100vw",zIndex:10001},dialogClassName:"custom-modal",children:[(0,t.jsx)("div",{onClick:ez,className:"modal-close-icon cursour-pointer shadow",children:(0,t.jsx)("span",{children:"X"})}),(0,t.jsx)(c.Z.Body,{className:"p-0",children:(0,t.jsx)("section",{className:"py-0",children:(0,t.jsxs)("div",{className:"container mijn mt-0 mb-0 popup-container",children:[(0,t.jsx)("div",{className:"row ",children:(0,t.jsxs)("div",{className:"col-md-12 text-center ",children:[(0,t.jsx)("h3",{className:"t3 fw-bolder ".concat(eD&&"px-md-0 px-3"),children:null==eL?void 0:null===(n=eL.myUnsubbyAccount)||void 0===n?void 0:null===(l=n.popup2)||void 0===l?void 0:l.head}),(0,t.jsxs)("p",{className:"mb-0 font-gray-popup",children:[null==eL?void 0:null===(o=eL.myUnsubbyAccount)||void 0===o?void 0:null===(i=o.popup2)||void 0===i?void 0:i.subHead2," "]}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(r=eL.myUnsubbyAccount)||void 0===r?void 0:null===(d=r.popup2)||void 0===d?void 0:d.subHead3})]})}),(0,t.jsx)("div",{className:"d-flex gap-2 leftright-sections gap-3 mb-0 mt-0",children:(0,t.jsxs)("div",{className:"shadow w-100 w-sm-100 rounded-3",children:[(0,t.jsx)("h4",{className:"text-center fw-bolder t3 py-3 mb-0 rounded-top-3 border ",children:null==eL?void 0:null===(h=eL.myUnsubbyAccount)||void 0===h?void 0:null===(m=h.popup2)||void 0===m?void 0:m.withUnsubby}),(0,t.jsxs)("div",{className:"row pt-4 pb-2 px-3 font-gray-popup",children:[(0,t.jsxs)("div",{className:"col-md-6 mx-auto",children:[(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(g=eL.myUnsubbyAccount)||void 0===g?void 0:null===(b=g.popup2)||void 0===b?void 0:b.p1})]}),(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",dangerouslySetInnerHTML:{__html:null==eL?void 0:null===(S=eL.myUnsubbyAccount)||void 0===S?void 0:null===(C=S.popup2)||void 0===C?void 0:null===(j=C.p2)||void 0===j?void 0:j.replace("{{amount}}","".concat((0,w.h)(x.l_[eh],eh))).replace("{{currency}}","".concat(x.cR[null==eZ?void 0:eZ.value]))}})]}),(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(E=eL.myUnsubbyAccount)||void 0===E?void 0:null===(_=E.popup2)||void 0===_?void 0:_.p3})]})]}),(0,t.jsxs)("div",{className:"col-md-6 mx-auto",children:[(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(T=eL.myUnsubbyAccount)||void 0===T?void 0:null===(I=T.popup2)||void 0===I?void 0:I.p4})]}),(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(F=eL.myUnsubbyAccount)||void 0===F?void 0:null===(B=F.popup2)||void 0===B?void 0:B.p5})]}),(0,t.jsxs)("div",{className:"d-flex gap-2",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(u(),{src:k})}),(0,t.jsx)("p",{className:"",children:null==eL?void 0:null===(Z=eL.myUnsubbyAccount)||void 0===Z?void 0:null===(L=Z.popup2)||void 0===L?void 0:L.p6})]})]})]})]})}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("div",{className:"col-12 col-lg-9 mx-auto mt-md-3 mt-4 mb-md-1 ",children:(0,t.jsx)(f.Z,{bgColor:"bg-skyblue",TYPE:"modal",upsalePopup:!0,btnSmallText:eD?null==eU?void 0:null===(R=eU.popup)||void 0===R?void 0:R.popupMobileLowerSmallText:null==eU?void 0:null===(P=eU.popup)||void 0===P?void 0:P.popupDesktopLowerSmallText,btnText:eD?
1null===(U=eU.popup)||void 0===U?void 0:U.popupMobileButtonText:null===(D=eU.popup)||void 0===D?void 0:D.popupDesktopButtonText,handleClick:ey,disabled:eN,networkCall:eg,countryCode:eZ.value,isMobile:eD})}),(0,t.jsx)("div",{className:"col-md-12 text-center font-gray-popup",children:(0,t.jsxs)("p",{className:"mb-0",children:[" ","en-de"==eh?null==eL?void 0:null===(O=eL.myUnsubbyAccount)||void 0===O?void 0:null===(M=O.popup2)||void 0===M?void 0:M.info.replace("continue","the blue button"):null==eL?void 0:null===(z=eL.myUnsubbyAccount)||void 0===z?void 0:null===(H=z.popup2)||void 0===H?void 0:H.info," ",(0,t.jsx)("span",{className:"t3",children:(0,t.jsxs)(N(),{target:"_blank",href:"/".concat(eZ.value,"/").concat(null==eL?void 0:null===(Y=eL.links)||void 0===Y?void 0:Y.terms_condition),children:[null==eL?void 0:null===(q=eL.myUnsubbyAccount)||void 0===q?void 0:null===(W=q.popup2)||void 0===W?void 0:W.terms," "]})}),"it-it"==eh?(0,t.jsx)("span",{className:"mt-1",dangerouslySetInnerHTML:{__html:null==eL?void 0:null===(X=eL.myUnsubbyAccount)||void 0===X?void 0:null===(Q=X.popup2)||void 0===Q?void 0:Q.info2.replace("{{amount}}","<span>".concat((0,w.h)(x.l_[eh],eh),"</span>")).replace("{{currency}}","<span>".concat(x.cR[eh],"</span>")).replace(null==eL?void 0:null===(V=eL.myUnsubbyAccount)||void 0===V?void 0:null===(G=V.popup2)||void 0===G?void 0:G.monthBold,"<span>".concat(null==eL?void 0:null===(K=eL.myUnsubbyAccount)||void 0===K?void 0:null===(J=K.popup2)||void 0===J?void 0:J.monthBold,"</span>")).replace("{{link}}",eO).replaceAll("{{trialPeriod}}",x.WI[eh])}}):(0,t.jsx)(t.Fragment,{children:x.km.includes(eh)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"mt-1",dangerouslySetInnerHTML:{__html:null==eL?void 0:null===(es=eL.myUnsubbyAccount)||void 0===es?void 0:null===(et=es.popup2)||void 0===et?void 0:et.info2.replace("{{amount}}",'<span class="semi-bold">'.concat(x.cR[eh],"</span>")).replace("{{currency}}",'<span class="semi-bold">'.concat((0,w.h)(x.l_[eh],eh),"</span>")).replace(null==eL?void 0:null===(ee=eL.myUnsubbyAccount)||void 0===ee?void 0:null===($=ee.popup2)||void 0===$?void 0:$.monthBold,'<span class="semi-bold">'.concat(null==eL?void 0:null===(en=eL.myUnsubbyAccount)||void 0===en?void 0:null===(el=en.popup2)||void 0===el?void 0:el.monthBold,"</span>")).replace("{{link}}",eO).replaceAll("{{trialPeriod}}",x.WI[eh])}})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"mt-1",dangerouslySetInnerHTML:{__html:null==eL?void 0:null===(er=eL.myUnsubbyAccount)||void 0===er?void 0:null===(ec=er.popup2)||void 0===ec?void 0:ec.info2.replace("{{amount}}",'<span class="semi-bold">'.concat((0,w.h)(x.l_[eh],eh),"</span>")).replace("{{currency}}",'<span class="semi-bold">'.concat(x.cR[eh],"</span>")).replace(null==eL?void 0:null===(ei=eL.myUnsubbyAccount)||void 0===ei?void 0:null===(ea=ei.popup2)||void 0===ea?void 0:ea.monthBold,'<span class="semi-bold">'.concat(null==eL?void 0:null===(ed=eL.myUnsubbyAccount)||void 0===ed?void 0:null===(eo=ed.popup2)||void 0===eo?void 0:eo.monthBold,"</span>")).replace("{{link}}",eO).replaceAll("{{trialPeriod}}",x.WI[eh])}})})}),(0,t.jsx)("span",{className:"t3",children:(0,t.jsxs)(N(),{href:"mailto:support.".concat(null==eZ?void 0:null===(eu=eZ.value)||void 0===eu?void 0:eu.split("-")[1],"@unsubby.com"),children:[" ","support.",null==eZ?void 0:null===(em=eZ.value)||void 0===em?void 0:em.split("-")[1],"@unsubby.com"]})})," "]})})]})]})})})]})})},S=n(9008),_=n.n(S),E=n(23050),I=n(89176),T=n(86691),B=n(56260),F=n(53226),L=n(50549),Z=e=>{var l,n,a,i,c,r,u,m,h,b,y,g,j,N,f,w,k,A;let{payment:C,countryCode:S,orderId:_,handleOpen1:Z,show1:R,handleClose1:P,setMessageStatus:U,messageStatus:D,isCustomerActive:M,isUsFunnelFlow:O}=e,{selectedLanguages:H,selectedLang:z}=(0,s.useContext)(p.z),[Y,W]=(0,s.useState)(null),[q,G]=(0,s.useState)(null),V=(null==C?void 0:null===(l=C.paymentResponse)||void 0===l?void 0:l.method)=="paypal",J=(0,F.wr)(C.paymentResponse);(0,s.useEffect)(()=>{(null==z?void 0:z.countryId)&&(K(),Q())},[z]);let K=async()=>{try{var e;let l=await (0,v.U2)("/contentpage?pageNumber=1&pageSize=".concat(x.IV.CONTENT,"&type=trustpilot&countryId=").concat(null==z?void 0:z.countryId,"&iscache=true"));W(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data[0])}catch(e){}},Q=async()=>{try{var e,l;let n=await (0,v.U2)("/contentpage?pageNumber=1&pageSize=".concat(x.IV.CONTENT,"&type=OrderSuccess&countryId=").concat(null==z?void 0:z.countryId,"&iscache=true"));G(null==n?void 0:null===(l=n.data)||void 0===l?void 0:null===(e=l.data[0])||void 0===e?void 0:e.metaData)}catch(e){}};return!q||!Y||(x.sc.includes(S.split("-")[1])||O)&&!M?(0,t.jsx)("div",{className:"confirmation-page py-md-5 py-3 px-md-5 px-0",children:(0,t.jsxs)("div",{className:"container px-0",children:[(0,t.jsxs)("div",{className:"text-center mb-md-4 mb-3",children:[(0,t.jsx)(L.Z,{className:"mx-auto mb-3",style:{width:"65px",height:"65px",borderRadius:"50%"}}),(0,t.jsx)(L.Z,{className:"mx-auto mb-2",style:{width:"40%",height:"28px"}}),(0,t.jsx)(L.Z,{className:"mx-auto",style:{width:"60%",height:"18px"}})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:"col-md-6 mb-3",children:(0,t.jsxs)("div",{className:"card-body card rounded-3 text-start",style:{height:"460px"},children:[(0,t.jsx)(L.Z,{className:"mb-3",style:{width:"70%",height:"20px"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#296DF51A"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#F59F0A1A"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#1BBB861A"}}),(0,t.jsx)(L.Z,{className:"rounded-3",style:{width:"100%",height:"80px",backgroundColor:"#F4F4F5"}})]})}),(0,t.jsx)("div",{className:"col-md-6 mb-3",children:(0,t.jsxs)("div",{className:"card-body card rounded-3 text-start",style:{height:"460px"},children:[(0,t.jsx)(L.Z,{className:"mb-3",style:{width:"70%",height:"20px"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#296DF51A"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#F59F0A1A"}}),(0,t.jsx)(L.Z,{className:"mb-3 rounded-3",style:{width:"100%",height:"50px",backgroundColor:"#1BBB861A"}}),(0,t.jsx)(L.Z,{className:"rounded-3",style:{width:"100%",height:"80px",backgroundColor:"#F4F4F5"}})]})}),(0,t.jsx)("div",{className:"col-md-6 mb-3",children:(0,t.jsx)(L.Z,{className:"w-100",style:{height:"315px"}})}),(0,t.jsx)("div",{className:"col-md-6 mb-3",children:(0,t.jsx)(L.Z,{className:"w-100",style:{height:"315px"}})})]}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(L.Z,{className:"w-100",style:{height:"180px"}})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(L.Z,{className:"w-100",style:{height:"220px"}})})]})}):(0,t.jsx)("div",{className:"confirmation-page py-md-5 py-3 px-md-5 px-0",children:(0,t.jsxs)("div",{className:"container px-0",children:[(0,t.jsxs)("div",{className:"text-center mb-md-4 mb-3",children:[(0,t.jsx)("div",{className:"rounded-circle d-flex align-items-center justify-content-center mx-auto mb-3",style:{width:"65px",height:"65px",backgroundColor:"#1bbb86"},children:(0,t.jsx)(E.Z,{className:"text-white",style:{height:"30px",width:"40px"}})}),(0,t.jsx)("h1",{className:"h2 text-black mb-3",style:{fontWeight:"900"},children:null==H?void 0:null===(n=H.thankyounew)||void 0===n?void 0:n.p1}),(0,t.jsx)("p",{className:"lead text-muted",children:null==H?void 0:null===(a=H.thankyounew)||void 0===a?void 0:a.p2.replace("{{companyName}}",(0,B.V)(null==C?void 0:C.companies,H))})]}),(0,t.jsx)("a",{href:null==Y?void 0:Y.name,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:(0,t.jsx)("div",{className:"mb-md-4 mb-3 card rounded-3",style:{background:"hsl(160deg 75% 42% / 5%)",cursor:"pointer"},children:(0,t.jsx)("div",{className:"px-3 pt-md-3 pt-0 pb-md-2 pb-0",children:(0,t.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,t.jsx)("div",{className:"d-flex align-items-center",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"d-flex align-items-center mb-1",children:[(0,t.jsx)("div",{className:"d-flex align-items-center",children:[void 0,void 0,void 0,void 0,void 0].map((e,l)=>(0,t.jsx)(o.Z,{className:"mr-1",style:{color:"#1BBB86",fill:"#1BBB86",width:"20px"}},l))}),(0,t.jsx)("span",{className:"fw-bolder mx-2 h5",style:{marginBottom:"-7px",color:"#1BBB86"},children:null==Y?void 0:null===(i=Y.metaData)||void 0===i?void 0:i.trustScore})]}),(0,t.jsx)("div",{className:"d-flex align-items-center",children:(0,t.jsx)("span",{className:"fw-bolder mt-2 mb-md-2 mb-0 h5 text-dark",children:null==H?void 0:null===(c=H.thankyounew)||void 0===c?void 0:c.trustpilot1})})]})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"d-flex align-items-center",children:[(0,t.jsx)(I.Z,{className:"w-6 h-6",style:{color:"hsl(160 75% 42%)"}}),(0,t.jsx)("p",{className:"h5 mx-2 font-weight-bolder text-dark",style:{marginBottom:"-7px"},children:null==H?void 0:null===(r=H.thankyounew)||void 0===r?void 0:r.trustpilot2})]}),(0,t.jsx)("p",{className:"small text-muted mt-1 mb-0",children:null==H?void 0:null===(u=H.thankyounew)||void 0===u?void 0:u.trustpilot3})]})]})})})}
1),(0,t.jsxs)("div",{className:"row mb-md- mb-0",children:[(0,t.jsx)("div",{className:"col-md-6 mb-md-4 mb-3",children:(0,t.jsx)("div",{className:"card card-body rounded-3 text-start",style:{height:"460px",paddingTop:"28px"},children:(0,t.jsx)("div",{className:"custom-bullets pt-2 pt-md-0",dangerouslySetInnerHTML:{__html:null==q?void 0:q.weHaveArrangedContent}})})}),(0,t.jsx)("div",{className:"col-md-6 mb-md-4 mb-3",children:(0,t.jsxs)("div",{className:"card-body card rounded-3 text-start",style:{height:"460px"},children:[(0,t.jsx)("h2",{className:"h5 font-weight-bold text-black mb-3 mt-2 d-flex align-items-cente",children:null==q?void 0:q.whatToExpectTitle}),(0,t.jsx)("p",{className:"mb-0 text-black border py-2 rounded-3 mb-3 border-0",style:{backgroundColor:"#296DF51A",paddingLeft:"15px",paddingRight:"15px"},children:null==q?void 0:q.whatToExpectFirst}),(0,t.jsx)("p",{className:"mb-0 text-black border py-2 rounded-3 mb-3 border-0",style:{backgroundColor:"#F59F0A1A",paddingLeft:"15px",paddingRight:"15px"},children:null==q?void 0:q.whatToExpectSecond}),(0,t.jsx)("p",{className:"mb-0 text-black border py-2 rounded-3 mb-3 border-0",style:{backgroundColor:"#1BBB861A",paddingLeft:"15px",paddingRight:"15px"},children:null==q?void 0:q.whatToExpectThird}),(0,t.jsx)("p",{className:"pl-1 border rounded-3 mb-1",style:{backgroundColor:"hsl(160 75% 42%)"},children:(0,t.jsxs)("p",{className:"mb-0 text-black border py-2 rounded-3 border-0",style:{backgroundColor:"#F4F4F5",paddingLeft:"15px",paddingRight:"15px"},children:["\uD83D\uDCA1"," ",(0,t.jsx)("strong",{children:null==H?void 0:null===(m=H.thankyounew)||void 0===m?void 0:m.important})," ",null==q?void 0:q.whatToExpectFourth]})})]})}),(0,t.jsx)("div",{className:"col-md-6 mb-md-4 mb-3",children:(0,t.jsx)("div",{className:"card-body card rounded-3 text-start",style:{height:"315px",paddingTop:"28px"},children:(0,t.jsx)("div",{className:"pt-2 pt-md-0",dangerouslySetInnerHTML:{__html:null==q?void 0:q.whatYouCanDo}})})}),(0,t.jsx)("div",{className:"col-md-6 mb-md-4 mb-3",children:(0,t.jsxs)("div",{className:"card-body card rounded-3 text-start",style:{height:"315px"},children:[(0,t.jsx)("h2",{className:"h5 font-weight-bold text-black mb-3 mt-2 d-flex align-items-center",children:(0,t.jsx)("span",{children:null==H?void 0:null===(h=H.thankyounew)||void 0===h?void 0:h.cancel1.replace("{{paymentMethod}}",x.F3[J]||J||x.F3.card)})}),(0,t.jsx)("p",{className:"text-dark",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:null==H?void 0:null===(b=H.thankyounew)||void 0===b?void 0:b.cancel2.replace("Unsubby","<strong>Unsubby</strong>")}})}),(0,t.jsx)("div",{className:"p-3 border rounded",style:{backgroundColor:"hsl(160deg 75% 42% / 5%)"},children:(0,t.jsx)("p",{className:"h5 fw-bolder text-center mb-0 ".concat(V?"py-0":"py-2"),style:{color:"#1BBB86",fontSize:"15px"},children:(0,F.Dm)({payment:C,countryCode:S,selectedLanguages:H})})}),(0,t.jsx)("p",{className:"small text-muted mt-3 mb-1",children:null==H?void 0:null===(y=H.thankyounew)||void 0===y?void 0:y.cancel4})]})})]}),(0,t.jsx)("div",{className:"mt-0",children:(0,t.jsxs)("div",{className:"card-body text-center card rounded-3 py-4",children:[(0,t.jsx)("h2",{className:"h4 fw-bolder text-black mb-2 mt-1",children:null==H?void 0:null===(g=H.thankyounew)||void 0===g?void 0:g.question1}),(0,t.jsxs)("p",{className:"text-muted mb-3",children:[null==H?void 0:null===(j=H.thankyounew)||void 0===j?void 0:j.question2," support.",S.split("-")[1],"@unsubby.com"]}),(0,t.jsxs)("button",{className:"btn border mx-auto custom-support-btn mb-1",style:{width:"270px"},onClick:()=>{let e="support.".concat(S.split("-")[1],"@unsubby.com");window.location.href="mailto:".concat(e)},children:[(0,t.jsx)(T.Z,{className:"mr-2",style:{width:"15px"}}),"support.",S.split("-")[1],"@unsubby.com"]})]})}),(0,t.jsx)("div",{className:"mt-md-3 mt-2 pt-2",children:(0,t.jsxs)("div",{className:"card-body text-center card rounded-3",style:{backgroundColor:"hsl(160deg 75% 42% / 5%)"},children:[(0,t.jsx)("h2",{className:"h4 fw-bolder text-black mb-3 mt-2",children:null==H?void 0:null===(N=H.thankyounew)||void 0===N?void 0:N.trustpilotnew1}),(0,t.jsx)("p",{className:"text-muted mb-2",children:null==H?void 0:null===(f=H.thankyounew)||void 0===f?void 0:f.trustpilotnew2}),(0,t.jsx)("div",{className:"d-flex justify-content-center mb-3",children:(0,t.jsx)(d,{countryCode:S,orderId:_,handleOpen1:Z,show1:R,handleClose1:P,setMessageStatus:U,messageStatus:D})}),(0,t.jsxs)("div",{className:"d-flex justify-content-center",children:[(0,t.jsx)("span",{className:"font-weight-bold h5",style:{color:"#1BBB86"},children:null==Y?void 0:null===(w=Y.metaData)||void 0===w?void 0:w.trustScore}),(0,t.jsx)("span",{className:"text-mute fs-3 mx-2 confirmation-trustpilot-dot",style:{color:"hsl(240 3.8% 46.1%)"},children:"â¢"}),(0,t.jsx)("span",{className:"font-weight-bold h5 text-dark",children:null==H?void 0:null===(k=H.thankyounew)||void 0===k?void 0:k.trustpilot1}),(0,t.jsx)("span",{className:"text-mute fs-3 mx-2 confirmation-trustpilot-dot",style:{color:"hsl(240 3.8% 46.1%)"},children:"â¢"}),(0,t.jsx)("span",{className:" text-muted confirmation-trustpilot",children:null==H?void 0:null===(A=H.thankyounew)||void 0===A?void 0:A.trustpilotnew3.replace("{{reviews}}",null==Y?void 0:Y.content)})]})]})})]})})},R=n(69073),P=n(33058),U=n(46611),D=n(62190),M=n(51490),O=n(17865),H=n(31093);let z={discount:(0,t.jsx)(R.Z,{className:"iconSvg",size:24}),onboarding:(0,t.jsx)(P.Z,{className:"iconSvgLarge"}),trial:(0,t.jsx)(U.Z,{className:"iconSvgLarge-trial"})},Y={discount:{icon:"iconPrimary",badge:"badgePrimary",button:"buttonPrimary"},onboarding:{icon:"iconGradient",badge:"badgeGradient",button:"buttonGradient"},trial:{icon:"iconPrimary",badge:"badgePrimary",button:"buttonPrimary"}};function W(e){var l,n,a,i,d,c,r,u,m;let{variant:v="trial",isOpen:h=!1,onClose:b,headline:y="",description:g="",ctaText:j,onCtaClick:N,discountCode:f,progress:w,benefits:k,closeAriaLabel:A="Close popup",termsText:C,customerId:S,countryCode:_,languageCode:I,companies:T,token:B,trustScore:F}=e,{selectedLanguages:L,selectedLang:Z}=(0,s.useContext)(p.z);if(!h)return null;let R=x.y5[I+"-"+_].slice(0,x.y5[I+"-"+_].indexOf("/")),U=x.WI[I+"-"+_],W=null==C?void 0:null===(u=C.replace("{{amount}}",'<span class="termsBold pricing-font-semi price-high-trial ">'.concat(R," ").concat(null==L?void 0:null===(m=L.trialPopup)||void 0===m?void 0:m.supportText,"</span>
1")))||void 0===u?void 0:null===(r=u.replace("{{trial}}",U))||void 0===r?void 0:null===(c=r.replace("{{countryCode}}",_))||void 0===c?void 0:null===(a=c.replace("{{terms}}",'<a href="/'.concat(null==Z?void 0:Z.value,"/").concat(null==L?void 0:null===(i=L.links)||void 0===i?void 0:i.terms_condition,'" target="_blank">').concat(null==L?void 0:null===(d=L.trialPopup)||void 0===d?void 0:d.linkText,"</a>")))||void 0===a?void 0:a.replace("{{domain}}",'<a href="mailto:support.'.concat(null==Z?void 0:null===(l=Z.value)||void 0===l?void 0:l.split("-")[1],'@unsubby.com" target="_blank">\n support.').concat(null==Z?void 0:null===(n=Z.value)||void 0===n?void 0:n.split("-")[1],"@unsubby.com\n </a>"));return(0,t.jsx)("div",{className:"backdrop",role:"trial","aria-modal":"true","aria-labelledby":"exit-intent-headline",children:(0,t.jsxs)("div",{className:(0,O.cn)("popup-trial","shadow-lg"),children:[Array.from({length:12}).map((e,l)=>{let n=l/12*Math.PI*2,s=200+50*Math.random(),a=Math.cos(n)*s,i=Math.sin(n)*s;return(0,t.jsx)(H.E.div,{className:"sparkleWrap",initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:[0,1,0],scale:[0,1.5,0],x:a,y:i},transition:{duration:1.2,delay:.05*l,ease:"easeOut"},children:(0,t.jsx)(P.Z,{width:100,height:100,className:(0,O.cn)("sparkleIcon","textPrimary"),color:"#3C83F6"})},l)}),("discount"===v||"trial"===v)&&(0,t.jsx)("div",{className:"trustpilotWrap",children:(0,t.jsxs)("div",{className:"trustpilotCard",children:[(0,t.jsx)("div",{className:"starsRow",children:[void 0,void 0,void 0,void 0,void 0].map((e,l)=>(0,t.jsx)(o.Z,{className:"starIcon"},l))}),(0,t.jsxs)("div",{className:"trustpilotText",children:[(0,t.jsx)("span",{className:"trustScore",children:F}),(0,t.jsx)("span",{className:"trustLabel",children:"Trustpilot"})]})]})}),(0,t.jsx)("button",{onClick:b,className:"closeBtn",children:(0,t.jsx)(D.Z,{className:"closeIcon",size:20})}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsxs)("div",{className:"iconArea",children:[(0,t.jsx)(H.E.div,{className:"decorDotA",animate:{y:[0,-10,0],rotate:[0,10,0]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},children:(0,t.jsx)("div",{className:"smallDot"})}),(0,t.jsx)(H.E.div,{className:"decorDotB",animate:{y:[0,-8,0],rotate:[0,-15,0]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut",delay:.3},children:(0,t.jsx)("div",{className:"smallerDot"})}),(0,t.jsx)(H.E.div,{className:"decorSquare",animate:{y:[0,10,0],x:[0,5,0]},transition:{duration:3.5,repeat:1/0,ease:"easeInOut",delay:.6},children:(0,t.jsx)("div",{className:"tiltSquare"})}),(0,t.jsx)(H.E.div,{className:"decorRot",animate:{y:[0,8,0],rotate:[0,45,0]},transition:{duration:3.2,repeat:1/0,ease:"easeInOut",delay:.9},children:(0,t.jsx)("div",{className:"tiltSmall"})})]}),(0,t.jsx)("div",{style:{marginTop:"5px"},className:(0,O.cn)("iconCircle",Y[v].icon),children:z[v]}),(0,t.jsx)("h2",{id:"exit-intent-headline",className:"headline-trial",children:y}),(0,t.jsx)("p",{className:"description-trial",children:g}),k&&k.length>0&&(0,t.jsx)("ul",{className:"benefitList-trial",children:k.map((e,l)=>(0,t.jsxs)("li",{className:"benefitItem-trial",children:[(0,t.jsx)("div",{className:"benefitIconWrap",children:(0,t.jsx)(E.Z,{className:"benefitCheck",color:"#16a34a"})}),(0,t.jsx)("span",{className:"benefitText-trial benifitTextInner-trial",children:e})]},l))}),(0,t.jsx)(M.z,{onClick:N,className:(0,O.cn)("ctaButton-trial",Y[v].button),children:j}),"trial"===v&&W&&(0,t.jsx)("p",{className:"terms pt-3",dangerouslySetInnerHTML:{__html:W}})]})]})})}var q=n(68629);let G=e=>{let l=(0,y.useRouter)();(0,s.useEffect)(()=>{var n,t,s,a,i,o,d,c;let r=null==e?void 0:null===(n=e.paymentResponse)||void 0===n?void 0:n.status;if(!((null==e?void 0:null===(t=e.paymentResponse)||void 0===t?void 0:t.method)=="directdebit"||"paid"==r||"succeeded"==r))return;let u=null,m=null;"object"==typeof e.paymentResponse.amount&&"adyen"==e.paymentVendor?(u=((null===(a=e.paymentResponse)||void 0===a?void 0:null===(s=a.amount)||void 0===s?void 0:s.value)/100).toString(),m=null===(o=e.paymentResponse)||void 0===o?void 0:null===(i=o.amount)||void 0===i?void 0:i.currency):"object"==typeof e.paymentResponse.amount?(u=e.paymentResponse.amount.value,m=e.paymentResponse.amount.currency):(u=(e.paymentResponse.amount/100).toString(),m=null===(c=e.paymentResponse)||void 0===c?void 0:null===(d=c.currency)||void 0===d?void 0:d.toUpperCase()),window.dataLayer&&window.dataLayer.push({event:"pageview",currency:m,conversionValue:u,transaction_id:null==e?void 0:e.orderId,page:{path:l.pathname,search:l.search,hash:l.hash}})},[l])};var V=!0,J=function e(l){var n,o,d,c,r,m,h,j,N,f,w,k,S,E;
1let{countryCode:I,payment:T,isMulti:B,metadata:L,userData:R,token:P,isFirstSubs:U,orderSecret:D,isSubActive:M,isCustomerActive:O}=l,[H,z]=(0,s.useState)(!1),[Y,V]=(0,s.useState)(!1),[J,K]=(0,s.useState)(!1),[Q,X]=(0,s.useState)(!1),[$,ee]=(0,s.useState)(null),el=()=>z(!0),en=()=>{ee(null),z(!1)},{selectedLanguages:et,setMyUnsubbyModal:es,setButtonText:ea,selectedLang:ei}=(0,s.useContext)(p.z);(0,y.useRouter)(),G(T);let[eo,ed]=(0,s.useState)({}),[ec,er]=(0,s.useState)(!0),[eu,em]=(0,s.useState)(!1),[ep,ev]=(0,s.useState)(!1),[eh,ex]=(0,s.useState)(null),eb={};try{eb=JSON.parse((null==T?void 0:null===(E=T.paymentResponse)||void 0===E?void 0:null===(S=E.metadata)||void 0===S?void 0:S.formData)||"{}")}catch(e){eb={}}let ey=null==eb?void 0:eb.postcode,eg=(null==I?void 0:null===(o=I.split("-"))||void 0===o?void 0:null===(n=o[1])||void 0===n?void 0:n.toLowerCase())==="us"&&(null===q.P||void 0===q.P?void 0:q.P.includes(ey)),ej=async()=>{if(null==ei?void 0:ei.countryId){let n=await (0,v.U2)("/contentpage?pageNumber=1&pageSize=".concat(x.IV.CONTENT,"&type=trustpilot&countryId=").concat(null==ei?void 0:ei.countryId,"&iscache=true"),null).catch(e=>{e.response});if(n&&n.data.data.length>0){var e,l;ex(null===(l=n.data.data[0])||void 0===l?void 0:null===(e=l.metaData)||void 0===e?void 0:e.trustScore)}}};(0,s.useEffect)(()=>{try{localStorage.removeItem("deForm"),localStorage.removeItem("dePricing")}catch(e){}},[]),(0,s.useEffect)(()=>{(null==ei?void 0:ei.countryId)&&ej()},[ei]),(0,s.useEffect)(()=>{let e=e=>{if(!eu&&!x.vK.includes(null==I?void 0:I.split("-")[1])){var l;let e={customerId:null==R?void 0:R._id,countryCode:null==R?void 0:R.countryCode,languageCode:null==R?void 0:R.languageCode,companies:null==T?void 0:null===(l=T.companies)||void 0===l?void 0:l.map(e=>({companyName:e.companyName})),token:P},n=new Blob([JSON.stringify(e)],{type:"application/json"}),t=!1;if(navigator.sendBeacon&&(t=navigator.sendBeacon("/api/track-exit",n)),!t){let l=new XMLHttpRequest;l.open("POST","/api/track-exit",!1),l.setRequestHeader("Content-Type","application/json;charset=UTF-8");try{l.send(JSON.stringify(e))}catch(e){}}}};return window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("pagehide",e)}},[eu,I,R,T,P]),(0,s.useEffect)(()=>{R&&P&&(x.Q8.includes(null==I?void 0:I.split("-")[1])?A.Z.set("refreshToken",P,{expires:7,path:"/"}):(A.Z.set("user",JSON.stringify(R),{expires:7,path:"/"}),A.Z.set("token",P,{expires:7,path:"/"}))),x.vK.includes(null==I?void 0:I.split("-")[1])&&eN(),er(!1),A.Z.remove("paymentData"),sessionStorage.removeItem("companies")},[]),(0,s.useEffect)(()=>{(x.sc.includes(I.split("-")[1])||eg)&&M&&V(!0),(null==T?void 0:T.doSubscription)===1&&eN()},[null==T?void 0:T.doSubscription,R,P]);let eN=async()=>{ev(!0);let e={orderId:null==T?void 0:T.orderId,orderSecret:D,amount:x.l_[I],trialPopup:Q,isFirstSubs:U,skipIf:"canceled"};try{T.signatureData&&(e.signatureData=T.signatureData),await (0,v.v_)("/subscription/direct",e)}catch(e){}em(!0);let l=P||A.Z.get("refreshToken");(x.sc.includes(I.split("-")[1])||eg)&&l?(await (0,F.wL)(3e3),window.location.href="".concat(a.vZ,"/check-auth?code=").concat(l,"&orderid=").concat(null==T?void 0:T.orderId,"&ispremium=true")):(es(!1),x.dC.includes(I.split("-")[1])&&!M&&J?(K(!1),V(!1)):V(!0))};return(0,s.useEffect)(()=>{let e={current:!1},l={current:!1},n=()=>{if(!e.current){e.current=!0,l.current=!0;try{Q&&!M&&(V(!1),K(!0))}finally{g()}}},t=window.innerHeight,s=null,a=a=>{if(e.current||"number"!=typeof a.clientY)return;if(a.clientY<=0){l.current=!0,n();return}let i=t-a.clientY;i>0&&null==s&&(s=t);let o=null!=s?s-a.clientY:0;if(i>0&&o>=40&&a.clientY<=20){l.current=!0,n(),s=null,t=a.clientY;return}t=a.clientY},i=t=>{e.current||t.relatedTarget||"number"!=typeof t.clientY||!(t.clientY<=0)||(l.current=!0,n())};window.scrollY,Date.now();let o=null,d=null,c=e=>{let l=e.touches&&e.touches[0];l&&(o=l.clientY,d=Date.now())},r=t=>{if(e.current||null==o)return;let s=Math.max(1,Date.now()-d),a=t.changedTouches&&t.changedTouches[0];if(!a){o=null,d=null;return}let i=o-a.clientY;i>20&&i/s*1e3>=800&&window.scrollY<=80&&(l.current=!0,n()),o=null,d=null},u=!1,m=()=>{if(!e.current){l.current=!0,n();try{history.pushState({__exit_intent_guard:!0},"")}catch(e){}}},p=!1,v=()=>{if(!e.current){if(document.hidden){p=!0;return}p&&(l.current=!0,n())}},h=null,x=["mousemove","mousedown","keydown","scroll","touchstart"],b=()=>{if(e.current)return},y=t=>{if(e.current)return;let s=document.getElementById("discount-modal");!(s&&s.contains(t.target))&&l.current&&n()},g=()=>{try{document.removeEventListener("mousemove",a),document.removeEventListener("mouseout",i),document.removeEventListener("click",y,{capture:!0}),window.removeEventListener("touchstart",c),window.removeEventListener("touchend",r),window.removeEventListener("popstate",m),document.removeEventListener("visibilitychange",v),x.forEach(e
1=>document.removeEventListener(e,b)),h&&(clearTimeout(h),h=null)}catch(e){}};return document.addEventListener("mousemove",a),document.addEventListener("mouseout",i),document.addEventListener("click",y,{capture:!0}),window.addEventListener("touchstart",c,{passive:!0}),window.addEventListener("touchend",r,{passive:!0}),(()=>{try{u||(history.pushState({__exit_intent_guard:!0},""),u=!0)}catch(e){}window.addEventListener("popstate",m)})(),document.addEventListener("visibilitychange",v),x.forEach(e=>document.addEventListener(e,b,{passive:!0})),()=>{g()}},[Q,M]),(0,t.jsxs)("div",{style:{backgroundColor:"#FAFAFA"},children:[(0,t.jsx)(_(),{children:(0,t.jsx)("title",{children:null==L?void 0:null===(d=L.order)||void 0===d?void 0:d.title})}),ec?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg-light py-5",children:(0,t.jsx)(i.Z,{})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("section",{children:[(0,t.jsx)(C,{companies:null==T?void 0:T.companies,orderId:null==T?void 0:T.orderId,trialPopup:J,setTrialPopup:K,popupRating:Y,setPopupRating:V,handleOpenRating:el,btnDisable:ep,customerId:null==R?void 0:R._id,countryCode:I,doSubscription:eu,handleMyUnsubby:e=>{em(e.target.value)},HandleSubmit:eN,token:P,isAlreadySubscribed:(null==T?void 0:T.doSubscription)===1&&((null==I?void 0:I.includes("de"))||(null==I?void 0:I.includes("uk"))),trialCheck:Q,setTrialCheck:X,isSubActive:M,isCustomerActive:O,isUsFunnelFlow:eg}),(0,t.jsx)(W,{isOpen:J,customerId:null==R?void 0:R._id,countryCode:null==I?void 0:I.split("-")[1],languageCode:null==I?void 0:I.split("-")[0],companies:null==T?void 0:null===(c=T.companies)||void 0===c?void 0:c.map(e=>({companyName:e.companyName})),token:P,onCtaClick:eN,onClose:()=>{K(!1)},variant:"trial",headline:null==et?void 0:null===(r=et.trialPopup)||void 0===r?void 0:r.headline,description:null==et?void 0:null===(m=et.trialPopup)||void 0===m?void 0:m.desc,benefits:[null==et?void 0:null===(h=et.trialPopup)||void 0===h?void 0:h.p1,null==et?void 0:null===(j=et.trialPopup)||void 0===j?void 0:j.p2,null==et?void 0:null===(N=et.trialPopup)||void 0===N?void 0:N.p3,null==et?void 0:null===(f=et.trialPopup)||void 0===f?void 0:f.p4],ctaText:null==et?void 0:null===(w=et.trialPopup)||void 0===w?void 0:w.button,termsText:null==et?void 0:null===(k=et.trialPopup)||void 0===k?void 0:k.term,trustScore:eh}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("div",{className:"mx-md-5 mx-0 mt-",children:[(0,t.jsx)(b,{popupRating:Y,setPopupRating:V,handleOpen1:el,show1:H,setMessageStatus:ee,messageStatus:$,isMulti:B,countryCode:I,orderId:e,handleClose1:en,payment:T}),(0,t.jsx)(Z,{countryCode:I,isUsFunnelFlow:eg,orderId:e,payment:T,handleOpen1:el,show1:H,handleClose1:en,setMessageStatus:ee,messageStatus:$,isCustomerActive:O})]})})]})}),(0,t.jsx)("div",{className:"wave",style:{backgroundColor:"#FAFAFA"},children:(0,t.jsx)(u(),{src:g.Z,alt:"wave"})})]})]})}},68629:function(e,l,n){"use strict";n.d(l,{P:function(){return t}});let t=["32162","85375","79912","33467","32163","63376","34293","78660","33437","10023","85338","78130","29526","85614","33908","87120","83686","46143","32137","87111","43228","43207","34655","97756","92677","32159","85206","78633","43229","77573","63366","33573","28451","29579","85351","92660","43230","34109","85374","44691","44035","34711","37042","10025","95648","48038","34112","27284","29909","92126","87124","54220","29588","06902","87109","87144","77379","78253","44256","49423","30188","32174","11368","85710","80634","32822","45011","43
1081","23188","84770","78006","62702","46032","48843","33446","37013","32940","23320","02149","10314","98223","95747","94558","85248","92253","85142","80538","78245","43123","46385","34698","34135","28792","19966","11550","85255","89122","85138","77084","83646","80015","33433","34238","33914","85396","92057","65807","46307","43015","43701","34997","38654","28078","29576","76028","78028","78641","45013","46514","32034","29803","14580","97754","92509","77083","75248","80504","43068","46142","45140","33461","93105","87107","75052","84074","80004","63123","46037","33418","34953","33125","30087","14450","11235","10306","11758","89436","85365","92637","90250","76063","80013","80016","71909","62704","71913","46260","45458","35242","37128","34667","34481","30349","15301","19154","08753","95687","94015","91910","92545","85308","85742","79938","85208","77459","77581","76712","68516","63129","66061","60453","46383","43615","43614","43065","34491","34221","29926","22003","01960","11717","85383","92211","80918","76227","76116","77479","70065","63017","60640","58104","48183","43055","48047","46038","37122","33064","40299","34287","32164","27610","27587","92021","93065","85204","83642","80134","73099","70301","61614","44720","48146","48044","44060","30024","30135","29577","28405","20011","22407","06082","99208","98584","97402","95621","92270","93550","87121","85140","75075","80011","85122","75071","80631","63021","60630","55118","61201","46227","43232","39110","33126","33415","34668","32082","29730","10024","85739","86409","92553","92335","93312","94533","91911","97230","92234","77511","79936","60611","58201","60068","48439","46902","44077","33010","33414","36695","36801","33756","28412","28027","27526","32259","29910","20744","20906","11772","98801","98837","93277","85258","85395","87505","97355","82009","85119","83704","75229","76137","77845","77386","80022","83815","78109","75069","79423","63301","73120","55303","61554","59601","43082","43551","45503","39503","37167","34108","29485","29687","30066","29615","12020","02151","07712","02360","08701","08757","96792","85387","85379","89102","92078","92705","90650","92646","85541","80228","78640","80123","80122","78108","78666","83714","80525","83301","65804","59102","48170","48310","48185","43302","45040","46219","48111","37027","32779","33312","33928","33458","33157","34209","23464","30813","28906","29582","30263","28461","29720","29681","15601","02920","10128","08081","10463","99336","95404","92592","92083","90740","92886","91331","91977","92260","77024","85086","77449","78613","80537","76087","80550","83854","84096","70570","72764","67401","75002","45601","43
1062","33913","34232","33950","33484","30120","29483","28226","28467","20735","17331","08831","08759","10011","99301","98908","92649","95020","85382","89011","85260","86314","85234","92154","94550","92503","96744","87401","80127","80129","76182","85118","85143","78209","78665","76710","63304","54956","60010","44646","48186","43130","43537","45150","45036","33311","34787","37075","37087","27703","23234","30044","17111","02780","11212","06614","10473","10075","97504","97405","98258","92019","95630","92801","91342","87110","97305","92562","75115","79705","85225","85032","85022","80020","83616","83709","77346","80503","75035","85120","76179","79416","60062","46224","47630","44870","43224","44512","33012","33445","34442","33436","33024","33541","40220","33177","37343","42420","27265","29486","29072","28213","29732","23229","30019","30096","17543","15068","19958","11050","01844","02740","08094","10028","98391","90019","97322","90044","87507","86442","88101","85713","92071","89012","85730","85021","77450","77494","75165","85207","62040","60193","53051","57702","60707","59901","48103","44039","48178","46168","33990","34202","32571","42701","36526","34759","33884","32780","34482","34983","33013","27106","32256","27529","28562","31406","28734","30114","28105","15146","22193","19446","10467","02148","11373","06451","97702","98208","93720","95350","90201","89031","86326","92307","94541","92064","95125","97301","85755","92673","93536","80012","77433","76034","85224","76210","80026","65203","70458","55044","55082","60202","60148","48060","49085","44224","43040","47905","45365","48066","45459","46123","32904","37918","33462","32725","40475","34748","30253","28215","27312","28787","32068","28214","21811","18104","15642","11706","01930","11743","11746","10022","95242","89123","92084","91360","96734","85331","92129","94553","85259","95008","85364","97303","89117","85373","84405","80021","85037","75701","84129","77095","78249","79928","76049","77339","80219","72701","73013","64119","67212","63026","57078","51503","54115","52806","60411","61265","45238","50023","46055","47374","44221","49015","43213","46234","38401","33165","32963","33135","38017","34208","34609","36535","33909","33917","33331","33463","33771","33991","28269","32246","29568","23185","21740","17325","15221","01420","03051","06010","11757","01852","04072","11377","10701","97439","98204","97302","91302","94509","94565","96797","90024","86303","89121","94513","92651","90043","93551","85249","95336","89074","89044","87114","92201","76207","85215","79707","79109","77584","75287","77571","76013","80249","75028","72023","66502","70508","60632","60643","55369","53188","60402","60142","48390","48430","48420","45840","45231","46140","47906","37066","34285","32724","33411","34987","32792","37130","33710","33021","34203","27704","30075","32168","19713","14120","19709","19002","20019","01453","02169","98042","97477","98277","85743","85367","95610","93535","91913","92120","85254","89052","95628","97306","85262","85345","90803","78217","77065","84020","77365","85083","84660","76016","75068","75126","78251","80516","80401","72762","65202","64118","63011","63368","62526","55416","60014","60623","61032","44012","49426","43235","48336","49009","49684","47304","44004","32926","40223","34110","33308","33186","32828","37211","34957","40219","33611","33141","41042","32244","29650","29651","28110","30064","29575","28803","32216","27215","23451","24401","31324","28144","28655","19701","19720","20176","20854","22630","19131","13440","22901","06111","11385","10021","02324","03079","02155","11236","11220","97501","99223","98682","97703","92069","92675","85301","87112","89701","85253","97222","96001","94061","88011","93291","95409","92009","78414","75217","76048","81401","75040","83201","77304","76133","77521","80917","77351","80233","78216","84404","67217","72120","63303","63122","66048","64068","66221","60657","60423","60441","60446","45014","48858","45177","43560","48116","44663","46360","46074","46410","40229","33016","37217","35640","35226","36330","33065","34234","34952","37043","33612","37055","33919","34476","32309","30117","29464","28092","30736","28210","29445","28227","30040","28712","30319","15236","19382","20147","19320","19073","11747","11691","04092","05452","07728","01085","10456","01902","07701","06611","97401","98312","87105","89509","91701","85718","92648","91950","92056","93711","92103","93108","89523","91361","85629","97330","80227","75181","77477","83687","79763","78258","80033","77071","76036","78132","83605","80210","77044","80526","70005","63385","63109","72758","66212","74055","63028","66062","52402","60101","60652","53590","54311","55113","53223","60540","46350","45424","44134","43220","46815","45247","44212","33406","34119","34207","33032","40031","35749","34266","35802","33314","37363","33027","27615","29649","30084","28306","29928","32413","30047","28570","28117","28146","28714","23452","23456","21234","18017","17603","19335","08054","11206","06708","10009","11214","11372","11203","97526","98003","98270","92563","95337","90049","92683","95624","92037","96003","93063","87508","85712","85715","93401","92544","85282","95831","92117","92629","94566","90064","92024","92656","87031","92220","75074","75067","80231","80906","75093","80909","76502","77356","85041","80919","76904","80031","84107","82604","79762","77373","84780","77406","85027","83706","77546","75044","80014","80128","78015","77469","84010","75061","74006","75007","70769","69101","70003","66209","60629","60123","60617","59404","60016","60098","61611","60619","60565","60201","60050","44907","44102","49546","45805","45042","48197","43113","45801","48092","49316","47274","44105","49058","45373","47714","44241","48315","43017","46544","33160","32958","39042","33442","37115","34236","37922","33066","32789","34113","30506","32210","30907","27292","23832","30052","28374","28601","32207","28277","28540","30144","29073","29407","20170","22042","19403","11210","02150","10940","10573","11209","11229","07719","11561","10312","06516","08742","98802","97739","99337","98382","98632","99352","95670","89134","92105","94124","93010","92223","95966","92869","97080","95608","91335","91325","93306","78232","76522","85202","82609","76549","84047","80923","80138","75080","84095","76542","77478","78654","78840","80126","75077","76180","78154","77069","62521","64131","70737","70810","74012","66604","60435","60651","55901","53092","54935","60126","61111","51501","56001","58801","60639","46725","48067","43528","46062","47711","45244","48312","48706","48329","44203","48073","48188","43420","46530","39564","32825","34788","35758","38801","33903","33837","40207","33009","42101","38016","32757","33321","33432","32578","34786","37215","33133","32771","33904","32141","30127","29229","27107","30909","27127"]},51068:function(e,l,n){"use strict";n.d(l,{h:function(){return s},r:function(){return a}});var t=n(56851);let s=(e,l)=>(e=null==e?void 0:e.toString(),t.Hc.includes(null==l?void 0:l.split("-")[1])&&(e=null==e?void 0:e.replace(".",",")),e),a=function(e,l){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.km.includes(l)&&!n?null==e?void 0:e.replaceAll("{{orderAmount}}",s(t.lC[l],l)).replaceAll("{{subscriptionCredit}}",t.KK[l]).replaceAll("{{subscriptionAmount}}",t.cR[l]).replaceAll("{{currency}}",s(t.l_[l],l)).replaceAll("{{trialPeriod}}",t.WI[l]):null==e?void 0:e.replaceAll("{{orderAmount}}",s(t.lC[l],l)).replaceAll("{{subscriptionCredit}}",t.KK[l]).replaceAll("{{subscriptionAmount}}",s(t.l_[l],l)).replaceAll("{{currency}}",t.cR[l]).replaceAll("{{trialPeriod}}",t.WI[l])}}},function(e){e.O(0,[4867,1894,2888,9774,179],function(){return e(e.s=55636)}),_N_E=e.O()}]);
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.