1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5bc16317-c755-f56e-d0b7-9da0a3befdc6")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,167331,e=>{e.q("/_next/static/media/waves_3.068rgmhm5c77h.png")},512668,e=>{e.q("/_next/static/media/customer-support_2.0fpyq5gko8zki.png")},619020,e=>{e.q("/_next/static/media/secure-payment_1.0f1d.--7kj3bu.png")},551133,e=>{e.q("/_next/static/media/guarantee-certificate_1.09jufho2dmx-r.png")},397877,e=>{e.q("/_next/static/media/WaveLeft.0l_zbq5r.kfxa.png")},884360,e=>{"use strict";var t=e.i(843476),n=e.i(262997);e.s(["default",0,({text:e,customStyle:r,icon:i,disabled:a,onClick:o,type:s,isSecondary:l,fullWidth:c})=>(0,t.jsx)("button",{type:s,disabled:a,onClick:o,className:c?"w-full":"",children:(0,t.jsx)(n.default,{text:e,customStyle:r,icon:i,additionalClasses:a?"cursor-not-allowed pointer-events-none":"cursor-pointer",isSecondary:l,disabled:a})})])},48937,670851,e=>{"use strict";var t,n=e.i(843476),r=e.i(948148),i=e.i(271645);function a(){return(a=Object.assign.bind()).apply(null,arguments)}let o=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 16 16"},e),t||(t=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.256 3.41a.83.83 0 0 0-.59-.244H8A.833.833 0 0 0 7.167 4v1.333a.5.5 0 0 1-1 0V4A1.833 1.833 0 0 1 8 2.167h4.667A1.833 1.833 0 0 1 14.5 4v8a1.833 1.833 0 0 1-1.833 1.833H8A1.833 1.833 0 0 1 6.167 12v-1.334a.5.5 0 0 1 1 0V12a.833.833 0 0 0 .833.833h4.667A.833.833 0 0 0 13.5 12V4a.83.83 0 0 0-.244-.59M4.354 5.647a.5.5 0 0 1 0 .707L3.207 7.5H10a.5.5 0 0 1 0 1H3.207l1.147 1.146a.5.5 0 1 1-.708.707l-2-2a.5.5 0 0 1 0-.707l2-2a.5.5 0 0 1 .708 0",clipRule:"evenodd"})))};e.s(["default",0,o],670851);var s=e.i(207745),l=e.i(884360),c=e.i(525529),d=e.i(444192),p=e.i(792387);e.s(["default",0,()=>{let e=(0,r.useTranslations)("Login.footerLinks"),{logoutLocally:t,userInfo:i,setLogoutRedirectDisabled:a}=(0,d.useAuth)(),u=(0,s.usePathname)();return(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsxs)("div",{className:"flex flex-wrap gap-3 sm:gap-4 text-label-secondary text-[15px] font-medium leading-[16px] mt-5 items-center",children:[i&&(0,n.jsx)(l.default,{onClick:()=>{u===c.AppLinks.resetPassword&&a(!0),t()},customStyle:"w-fit p-0 hover:bg-transparent text-label-secondary hover:text-label-secondary gap-0.5 flex-row-reverse",text:e("logOut"),icon:o}),i&&(0,n.jsx)("span",{className:"text-label-disabled",children:"â¢"}),(0,n.jsx)(s.Link,{href:c.AppLinks.contactSupport,children:e("support")}),(0,n.jsx)("span",{className:"text-label-disabled",children:"â¢"}),(0,n.jsx)(s.Link,{href:"https://docs.pdfpro.com/faq",target:"_blank",children:e("faq")}),(0,n.jsx)("span",{className:"text-label-disabled",children:"â¢"}),(0,n.jsx)(s.Link,{href:"/terms",children:e("terms")}),(0,n.jsx)("span",{className:"text-label-disabled",children:"â¢"}),(0,n.jsx)(s.Link,{href:"/privacy",children:e("privacy")})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(p.default,{})})]})}],48937)},844037,e=>{"use strict";var t=e.i(843476),n=e.i(854328),r=e.i(207745),i=e.i(262997);e.s(["default",0,({text:e,customStyle:a="",icon:o,href:s,target:l,isSecondary:c,fullWidth:d})=>(0,t.jsx)(r.Link,{href:s,target:l,className:(0,n.cn)("cursor-pointer",d?"w-full":""),children:(0,t.jsx)(i.default,{text:e,customStyle:a,icon:o,additionalClasses:"no-underline",isSecondary:c})})])},921309,e=>{"use strict";var t,n=e.i(954616),r=e.i(266027),i=e.i(787753),a=e.i(444192),o=((t={}).DRAFT="draft",t.OPEN="open",t.PAID="paid",t.UNCOLLECTIBLE="uncollectible",t.VOID="void",t.REFUNDED="refunded",t);let s=async e=>(await i.default.post("/billing/create-customer-portal-session",e,{headers:{"Content-Type":"application/json"}})).data,l=async e=>(await i.default.post("/billing/preview-update-subscription",e,{headers:{"Content-Type":"application/json"}})).data,c=async e=>(await i.default.post("/billing/update-subscription",e,{headers:{"Content-Type":"application/json"}})).data,d=async e=>(await i.default.post("/billing/upgrade-perpetual-to-ocr",e,{headers:{"Content-Type":"application/json"}})).data,p=async e=>(await i.default.post("/billing/cancel-subscription",e??{},{headers:{"Content-Type":"application/json"}})).data,u=async()=>(await i.default.post("/account/delete-account",{headers:{"Content-Type":"application/json"}}
2)).data,f=async e=>(await i.default.post("/billing/upgrade-perpetual-seats",e,{headers:{"Content-Type":"application/json"}})).data,h=async()=>(await i.default.get("/billing/invoices")).data,m=async()=>(await i.default.get("/billing/invoices-preview")).data,g=e=>null!=e&&"object"==typeof e&&"trialDaysLeft"in e&&"trialDaysTotal"in e&&"account"in e,x=e=>null!=e&&"object"==typeof e&&"subscription"in e,y=async()=>(await i.default.get("/billing/billing-preview")).data,b=async(e,t)=>{let n=`/api/billing/prices-and-coupons-variants?countryCode=${e}&landingPage=${t}`;console.log("[getPrices] Fetching:",n);let r=await fetch(n,{method:"GET",next:{revalidate:3600}});if(!r.ok){let e=await r.text().catch(()=>"Unable to read response body");throw console.error(`[getPrices] Failed to fetch prices: ${r.status} ${r.statusText}`,e),Error(`Failed to fetch prices: ${r.status} ${r.statusText}`)}return r.json()},w=async()=>(await i.default.post("/billing/cancel-scheduled-change")).data,v=async e=>(await i.default.post("/billing/renew-subscription",void 0!==e?{quantity:e}:void 0)).data,S=async e=>(await i.default.post("/billing/update-perpetual-plan",e,{headers:{"Content-Type":"application/json"}})).data,C=async e=>(await i.default.post("/billing/preview-plan-change",e,{headers:{"Content-Type":"application/json"}})).data,k=async e=>(await i.default.post("/billing/change-plan",e,{headers:{"Content-Type":"application/json"}})).data;e.s(["InvoiceStatus",()=>o,"cancelScheduledChange",0,w,"getPrices",0,b,"isPerpetualBillingPreview",0,e=>null!=e&&!x(e)&&!g(e),"isSubscriptionBillingPreview",0,x,"isTrialBillingPreview",0,g,"previewPlanChange",0,C,"renewSubscription",0,v,"useBillingPreview",0,()=>{let{accessToken:e}=(0,a.useAuth)();return(0,r.useQuery)({queryKey:["billing-preview"],queryFn:y,enabled:!!e})},"useCancelSubscription",0,()=>(0,n.useMutation)({mutationFn:p,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error canceling subscription:",e.message):console.error("An unexpected error occurred while canceling subscription.")}}),"useChangePlan",0,()=>(0,n.useMutation)({mutationFn:k}),"useCreateCustomerPortalSession",0,({onSuccess:e,onError:t}={})=>(0,n.useMutation)({mutationFn:s,onSuccess:t=>{if(!e)return t;e(t)},onError:e=>{t?t(e):e instanceof Error?console.error("Error creating customer portal session:",e.message):console.error("An unexpected error occurred while creating the customer portal session.")}}),"useDeleteAccount",0,()=>(0,n.useMutation)({mutationFn:u,onError:e=>{e instanceof Error?console.error("Error deleting account:",e.message):console.error("An unexpected error occurred while deleting account.")}}),"useFetchPrices",0,(e,t)=>(0,r.useQuery)({queryKey:["prices",e,t],queryFn:()=>b(e,t),staleTime:36e5}),"useInvoices",0,()=>(0,r.useQuery)({queryKey:["invoices"],queryFn:h}),"useInvoicesPreview",0,()=>(0,r.useQuery)({queryKey:["invoices-preview"],queryFn:m}),"usePreviewPlanChange",0,()=>(0,n.useMutation)({mutationFn:C}),"usePreviewUpdateSubscription",0,()=>(0,n.useMutation)({mutationFn:l,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error previewing update subscription:",e.message):console.error("An unexpected error occurred while previewing update subscription.")}}),"useUpdatePerpetualPlan",0,()=>(0,n.useMutation)({mutationFn:S,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error updating perpetual plan:",e.message):console.error("An unexpected error occurred while updating the perpetual plan.")}}),"useUpdateSubscription",0,()=>(0,n.useMutation)({mutationFn:c,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error updating subscription:",e.message):console.error("An unexpected error occurred while updating the subscription.")}}),"useUpgradePerpetualSeats",0,()=>(0,n.useMutation)({mutationFn:f,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error upgrading perpetual seats:",e.message):console.error("An unexpected error occurred while upgrading perpetual seats.")}}),"useUpgradePerpetualToOCR",0,()=>(0,n.useMutation)({mutationFn:d,onSuccess:e=>e,onError:e=>{e instanceof Error?console.error("Error upgrading perpetual to OCR:",e.message):console.error("An unexpected error occurred while upgrading perpetual to OCR.")}})])},501422,e=>{"use strict";var t=e.i(843476),n=e.i(854328);e.s(["default",0,({textBold:e,text:r,customStyle:i,customGradient:a})=>(0,t.jsxs)("div",{className:(0,n.cn)("w-fit h-6 px-3 py-2 rounded-[12px] flex items-center justify-center gap-2 font-medium text-white whitespace-nowrap text-[11px] leading-[100%] tracking-[0.275px]",a||"red-gradient",i),children:[e&&(0,t.jsx)("span",{className:"font-bold",children:e}),r]})])},431280,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(207745),i=e.i(444192),a=e.i(525529),o=e.i(958099),s=e.i(921309),l=e.i(901846),c=e.i(501422),d=e.i(948148),p=e.i(844037);let u=({data:e})=>{let n=(0,d.useTranslations)("Dashboard.subscriptionPlan");return(0,t.jsxs)("div",{className:"flex flex-col w-full sm:w-[520px] gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("h2",{className:"text-label-default m-0 text-[32px] font-semibold leading-[40px]",children:n("title")}),(0,t.jsx)("p",{className:"text-center m-0 text-label-muted text-sm",children:n("subtitle")})]}),(0,t.jsxs)("div",{className:"flex flex-col p-[56px] bg-white rounded-[12px] border-[1px] border-border-muted gap-10 items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col text-[40px] font-bold leading-[100%] items-center",children:[(0,t.jsx)("h3",{className:"m-0 text-label-default",children:n("trialPhase.pdfPro")}),(0,t.jsx)("h3",{className:"m-0 text-label-primary",children:n("trialPhase.planType")})]}),e?.trialDaysTotal&&(0,t.jsx)(c.default,{text:n("trialPhase.daysEvaluation",{days:e.trialDaysTotal}),customGradient:"grey-gradient",customStyle:"text-label-default"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[(0,t.jsx)("h6",{className:"m-0 text-xs leading-[100%] text-label-muted",children:n("trialPhase.trialStatus")}),e?.trialDaysLeft&&(0,t.jsx)("h4",{className:"m-0 text-[24px] leading-[100%] font-bold text-label-default",children:n("trialPhase.daysLeft",{days:e.trialDaysLeft})})]}),(0,t.jsxs)("div",{className:"flex flex-col w-full items-center gap-4",children:[(0,t.jsx)("p",{className:"m-0 text-xs leading-[100%] text-label-muted",children:n("trialPhase.continueUsingPDFPro")}),(0,t.jsx)(p.default,{href:a.AppLinks.checkout,text:n("trialPhase.explorePlans"),customStyle:"h-[52px] bg-label-primary text-white text-lg leading-[24px]",icon:l.default})]})]})]})};var f=e.i(48937),h=e.i(165190);e.s(["default",0,({children:e})=>{let{userInfo:l,loginMutation:c,callbackMutation:d,refreshMutation:p,updateUserInfoMutation:m,userStatus:g,logoutLocally:x,userStatusFetching:y}=(0,i.useAuth)(),b=(0,r.useRouter)(),w=(0,r.usePathname)(),{data:v}
2=(0,s.useBillingPreview)(),[S,C]=(0,n.useState)(!1),[k,E]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=!!(localStorage.getItem("accessToken")||localStorage.getItem("refreshToken"));setTimeout(()=>{C(e),E(!0)},0)},[]),(0,n.useEffect)(()=>{!k||S||l||w.includes(a.AppLinks.checkout)||w===a.AppLinks.createAccount||c.isPending||d.isPending||m.isPending||p.isPending||x(w===a.AppLinks.resetPassword?w:void 0)},[k,S,l]),(0,n.useEffect)(()=>{l&&l.properties.isFastSpringSubscriber&&l.properties.userRole!==i.UserRoles.PDFPRO_ADMIN&&b.replace(a.AppLinks.fastspringSubscription)},[l]),(0,n.useEffect)(()=>{!g||!l||g.userStatus.onboarded||l.properties.userRole&&(l.properties.userRole===i.UserRoles.OWNER?b.replace(a.AppLinks.createAccount):b.replace(`${a.AppLinks.createAccount}?step=password`))},[g,l]),(0,n.useEffect)(()=>{!l||l.properties.userRole||w===a.AppLinks.createAccount||w.includes(a.AppLinks.checkout)||b.replace(a.AppLinks.createAccount)},[l,w]),(0,n.useEffect)(()=>{g&&l?.properties?.userRole&&w.includes(a.AppLinks.checkout)&&g.userStatus.onboarded&&(g.accountStatus.isTrial||b.replace(a.AppLinks.subscriptionPlan))},[g,l,w]);let P=w===a.AppLinks.appTrial,j=g?.accountStatus?.trialDaysRemaining&&g?.accountStatus?.trialDaysRemaining<=0;return!k||c.isPending||d.isPending||m.isPending||p.isPending||y||S&&!l?(0,t.jsx)(o.default,{screenHeight:!0}):l||w.includes(a.AppLinks.checkout)?P?e:l&&j&&(0,s.isTrialBillingPreview)(v)?(0,t.jsxs)("div",{className:"flex flex-col w-full min-h-screen items-center py-10 bg-background-secondary",children:[(0,t.jsx)(h.default,{}),(0,t.jsxs)("div",{className:"flex flex-col items-center py-10",children:[(0,t.jsx)(u,{data:v}),(0,t.jsx)(f.default,{})]})]}):e:null}],431280)},921711,e=>{"use strict";var t=e.i(997053);let n=t.default.div.withConfig({displayName:"Styles__LoadingScreen",componentId:"sc-fd9b6240-0"})` 3 position: absolute; 4 top: 0; 5 @media (min-width: 1187px) { 6 left: calc(5vw + ((90vw - 1080px) / 2)); 7 } 8 @media (max-width: 1188px) { 9 left: 5vw; 10 } 11 display: flex; 12 flex-direction: column; 13 justify-content: center; 14 align-items: center; 15 width: 90vw; 16 height: 100%; 17 max-width: 1080px; 18 19 min-height: 825px; 20 z-index: 100; 21 background: #f8f8f8; 22 background: rgba(0, 0, 0, 0); 23 backdrop-filter: blur(30px); 24 25 ${e=>!0===e.hide?"":"display: none;"} 26`,r=t.default.div.withConfig({displayName:"Styles__CanvasStyle",componentId:"sc-fd9b6240-1"})` 27 padding: 64px; 28 width: 90vw; 29 margin: auto; 30 display: flex; 31 flex-direction: column; 32 justify-content: center; 33 align-items: center; 34 min-height: 825px; 35 background: rgba(0, 0, 0, 0); 36 background-blend-mode: multiply; 37 box-shadow: 38 0px 16.9px 35.1px -6.5px rgba(50, 50, 93, 0.07), 39 0px 10.4px 20.8px -10.4px rgba(0, 0, 0, 0.07); 40 /* margin-bottom: 64px; */ 41 max-width: 1080px; 42 border: 1px dashed #cfe2ff; 43 border-top: none; 44 45 @media (min-width: 1187px) { 46 min-width: 1080px; 47 } 48 49 @media (max-width: 440px) { 50 padding: 64px 0; 51 box-shadow: none; 52 } 53 @media (max-width: 744px) { 54 /* height: 90vh; */ 55 /* justify-content: flex-start; */ 56 } 57 .firstScreen { 58 display: flex; 59 flex-direction: column; 60 justify-content: center; 61 align-items: center; 62 width: 120%; 63 @media (max-width: 440px) { 64 width: 90%; 65 } 66 } 67 h1 { 68 font-size: 38px; 69 line-height: 48px; 70 text-align: center; 71 letter-spacing: -0.01em; 72 color: #333333; 73 margin-top: 32px; 74 @media (max-width: 440px) { 75 font-size: 32px; 76 line-height: 32px; 77 } 78 } 79 .description { 80 font-size: 18px; 81 line-height: 28px; 82 text-align: center; 83 color: #425466; 84 max-width: 562px; 85 margin-top: 8px; 86 } 87`,i=t.default.div.withConfig({displayName:"Styles__DownloadScreen",componentId:"sc-fd9b6240-2"})` 88 padding: 64px; 89 margin: auto; 90 display: flex; 91 flex-direction: column; 92 justify-content: center; 93 align-items: center; 94 min-height: 825px; 95 background: rgba(0, 0, 0, 0); 96 background-blend-mode: multiply; 97 box-shadow: 98 0px 16.9px 35.1px -6.5px rgba(50, 50, 93, 0.07), 99 0px 10.4px 20.8px -10.4px rgba(0, 0, 0, 0.07); 100 101 @media (min-width: 1187px) { 102 min-width: 1080px; 103 } 104 @media (max-width: 1188px) { 105 max-width: 1080px; 106 } 107 108 @media (max-width: 744px) { 109 /* height: 90vh; */ 110 justify-content: flex-start; 111 } 112 113 border: 1px dashed #cfe2ff; 114 border-top: none; 115 116 @media (max-width: 440px) { 117 box-shadow: none; 118 min-width: 90vw; 119 } 120 121 width: 90vw; 122 123 max-width: 1080px; 124`;t.default.div.withConfig({displayName:"Styles__PdfPreview",componentId:"sc-fd9b6240-3"})` 125 min-height: 383px; 126 min-height: 400px; 127 128 max-width: 1080px; 129 width: 90vw; 130 display: flex; 131 align-items: flex-end; 132 justify-content: center; 133 gap: 48px; 134 padding: 0 48px; 135 overflow-x: scroll; 136 overflow-x: auto; 137 138 overflow-y: visible; 139 padding-bottom: 32px; 140 141 ${e=>e.overflowY&&" overflow-x: visible;"} 142 143 @media (max-width: 744px) { 144 /* padding-bottom: 0px; */ 145 } 146 147 ::-webkit-scrollbar {
148 /* display: none; */ 149 height: 8px; 150 } 151 152 /* Track */ 153 ::-webkit-scrollbar-track { 154 background: #d9d9d9; 155 border-radius: 4px; 156 height: 8px; 157 } 158 159 /* Handle */ 160 ::-webkit-scrollbar-thumb { 161 background: #6361ff; 162 border-radius: 4px; 163 width: 204px; 164 } 165 166 /* Handle on hover */ 167 ::-webkit-scrollbar-thumb:hover { 168 background: #6361ff; 169 } 170`;let a=t.default.div.withConfig({displayName:"Styles__FileUploaderStyle",componentId:"sc-fd9b6240-4"})` 171 margin: auto; 172 max-width: 532px; 173 width: 100%; 174 margin-top: 60px; 175 176 .drop_zone { 177 all: none; 178 display: flex; 179 justify-content: center; 180 align-items: center; 181 border: 1px dashed red; 182 width: 100%; 183 min-height: 374px; 184 background: #f5f6fc; 185 border: 1px dashed #6361ff; 186 border-radius: 2px; 187 margin: 8px 0; 188 } 189 190 &:hover { 191 max-width: 548px; 192 .drop_zone { 193 min-height: 390px; 194 background: #ebeeff; 195 margin: 0; 196 } 197 } 198 199 .column { 200 display: flex; 201 flex-direction: column; 202 justify-content: center; 203 align-items: center; 204 .title { 205 font-size: 18px; 206 line-height: 28px; 207 color: #425466; 208 text-align: center; 209 margin-top: 25px; 210 margin-bottom: 8px; 211 :after { 212 content: ${e=>e.type?`"Drag and drop your ${e.type} file here"`:'"Drag and drop your file here"'}; 213 } 214 @media (max-width: 744px) { 215 :after { 216 content: ${e=>e.type?`"Tap to upload ${e.type} file here"`:'"Tap to upload file here"'}; 217 } 218 } 219 } 220 221 .info { 222 font-size: 13px; 223 line-height: 22px; 224 text-align: center; 225 color: #6361ff; 226 text-transform: capitalize; 227 228 :after { 229 content: ${e=>e.subtitle?`"${e.subtitle}"`:'"BMP files smaller than 20MB"'}; 230 } 231 @media (max-width: 744px) { 232 :after { 233 content: ${e=>e.subtitle?`"${e.subtitle}"`:'"BMP files smaller than 20MB"'}; 234 } 235 } 236 } 237 238 .button { 239 all: unset; 240 margin-top: 40px; 241 font-size: 17px; 242 line-height: 20px; 243 color: #ffffff; 244 padding: 12px 24px; 245 gap: 12px; 246 background: #6361ff; 247 border-radius: 8px; 248 cursor: pointer; 249 @media (max-width: 744px) { 250 display: none; 251 } 252 } 253 } 254`,o=t.default.div.withConfig({displayName:"Styles__LoadingCircle",componentId:"sc-fd9b6240-5"})` 255 border: 3px solid #f3f3f3; /* Light grey */ 256 border-top: 3px solid rgba(0, 0, 0, 0); 257 border-radius: 50%; 258 width: 24px; 259 height: 24px; 260 margin-right: 12px; 261 animation: spin 1s linear infinite; 262 @keyframes spin { 263 0% { 264 transform: rotate(0deg); 265 } 266 100% { 267 transform: rotate(360deg); 268 } 269 } 270`,s=t.default.div.withConfig({displayName:"Styles__Offline",componentId:"sc-fd9b6240-6"})` 271 background: #e3e8ee; 272 border-radius: 2px; 273 width: 73px; 274 height: 26px; 275 font-size: 13px; 276 line-height: 22px; 277 text-transform: uppercase; 278 color: #6a7485; 279 margin-right: 12px; 280 display: flex; 281 justify-content: center; 282 align-items: center; 283`,l=t.default.div.withConfig({displayName:"Styles__Row",componentId:"sc-fd9b6240-7"})` 284 display: flex; 285 justify-content: center; 286 align-items: center; 287 margin-top: 24px; 288 289 &:hover { 290 .warning { 291 opacity: 1; 292 } 293 } 294`,c=t.default.div.withConfig({displayName:"Styles__ToPdf",componentId:"sc-fd9b6240-8"})` 295 font-size: 14px; 296 line-height: 24px; 297 color: #333333; 298 a { 299 color: #6361ff; 300 text-decoration: none; 301 } 302 303 .desktop { 304 display: inline-block; 305 @media (max-width: 600px) { 306 display: none; 307 } 308 } 309`,d=(0,t.default)(c).withConfig({displayName:"Styles__Restart",componentId:"sc-fd9b6240-9"})` 310 margin-top: auto; 311 display: flex; 312 margin-bottom: 32px; 313 margin-top: 32px; 314`,p=t.default.a.withConfig({displayName:"Styles__CtaPopup",componentId:"sc-fd9b6240-10"})` 315 color: #6361ff; 316 text-decoration: none; 317 display: inline-flex; 318 align-items: center; 319 cursor: pointer; 320 white-space: nowrap; 321`,u=t.default.div.withConfig({displayName:"Styles__CtaRestart",componentId:"sc-fd9b6240-11"})` 322 color: #6361ff; 323 text-decoration: none; 324 display: inline-flex; 325 cursor: pointer; 326 white-space: nowrap; 327 display: flex; 328 justify-content: center; 329 align-items: center; 330 svg { 331 margin: 0 8px; 332 } 333`,f=t.default.div.withConfig({displayName:"Styles__Loading",componentId:"sc-fd9b6240-12"})` 334 font-size: 21px; 335 line-height: 25px; 336 text-align: center; 337 color: #333333; 338 margin-bottom: 24px; 339`,h=t.default.div.withConfig({displayName:"Styles__BarBack",componentId:"sc-fd9b6240-13"})` 340 width: 320px; 341 height: 8px; 342 background: #d9d9d9; 343 border-radius: 4px; 344 display: flex; 345 justify-content: flex-start; 346`,m=t.default.div.withConfig({displayName:"Styles__BarButton",componentId:"sc-fd9b6240-14"})` 347 ${e=>`width: ${320*e.percent}px;`} 348 background: #6361FF; 349 height: 8px; 350 border-radius: 4px; 351`,g=t.default.div.withConfig({displayName:"Styles__Percent",componentId:"sc-fd9b6240-15"})` 352 font-weight: 400; 353 font-size: 15px; 354 line-height: 19px; 355 text-align: center; 356 color: #8d9092; 357 margin-top: 8px; 358`,x=t.default.div.withConfig({displayName:"Styles__DownloadTitle",componentId:"sc-fd9b6240-16"})` 359 font-size: 38px; 360 line-height: 48px; 361 text-align: center; 362 letter-spacing: -0.01em; 363 color: #333333; 364 margin: 24px 0; 365 @media (max-width: 744px) { 366 font-size: 32px; 367 line-height: 32px; 368 } 369`,y=t.default.div.withConfig({displayName:"Styles__DownloadMessage",componentId:"sc-fd9b6240-17"})` 370 font-size: 18px; 371 line-height: 28px; 372 text-align: center; 373 color: #425466; 374 @media (max-width: 744px) { 375 font-size: 16px;
376 line-height: 26px; 377 } 378`,b=t.default.div.withConfig({displayName:"Styles__DownloadButton",componentId:"sc-fd9b6240-18"})` 379 min-width: 156px; 380 height: 48px; 381 display: flex; 382 flex-direction: row; 383 white-space: nowrap; 384 justify-content: center; 385 align-items: center; 386 padding: 12px 24px; 387 background: #6361ff; 388 border-radius: 8px; 389 margin-top: 40px; 390 font-size: 17px; 391 line-height: 20px; 392 color: #ffffff; 393 cursor: pointer; 394 @media (max-width: 440px) { 395 width: 100%; 396 } 397`,w=t.default.div.withConfig({displayName:"Styles__ExportButton",componentId:"sc-fd9b6240-19"})` 398 display: flex; 399 flex-direction: row; 400 justify-content: center; 401 align-items: center; 402 padding: 12px 24px; 403 gap: 12px; 404 min-width: 170px; 405 white-space: nowrap; 406 transition: background-color 1s; 407 height: 48px; 408 background: #6361ff; 409 border-radius: 8px; 410 font-weight: 600; 411 font-size: 17px; 412 line-height: 20px; 413 color: #ffffff; 414 cursor: pointer; 415 416 svg { 417 min-width: 24px; 418 min-width: 24px; 419 } 420 421 @media (max-width: 440px) { 422 width: 90%; 423 } 424 @media (max-width: 700px) { 425 width: 100%; 426 max-width: 322px; 427 margin-top: 40px; 428 } 429 @media (max-width: 400px) { 430 margin-right: 40px; 431 margin-left: 40px; 432 width: 75%; 433 min-width: 228px; 434 } 435`,v=(0,t.default)(d).withConfig({displayName:"Styles__RestartSecond",componentId:"sc-fd9b6240-20"})` 436 justify-content: center; 437 margin-top: 32px; 438 position: absolute; 439 bottom: 0; 440 width: 90vw; 441 max-width: 1080px; 442`,S=t.default.div.withConfig({displayName:"Styles__ErrorMessageHolder",componentId:"sc-fd9b6240-21"})` 443 background: red; 444 height: 100%; 445 width: 0px; 446 position: absolute; 447 left: 50%; 448 bottom: 0; 449 padding-bottom: 258px; 450 padding-top: 258px; 451 display: flex; 452 flex-direction: column; 453 justify-content: flex-end; 454 align-items: center; 455 @media (max-width: 744px) { 456 justify-content: flex-start; 457 } 458`,C=t.default.div.withConfig({displayName:"Styles__Info",componentId:"sc-fd9b6240-22"})` 459 box-sizing: border-box; 460 font-size: 13px; 461 line-height: 15px; 462 text-align: center; 463 color: #425466; 464 465 overflow: visible; 466 padding-top: 24px; 467 @media (max-width: 440px) { 468 display: none; 469 } 470`,k=t.default.div.withConfig({displayName:"Styles__AddFile",componentId:"sc-fd9b6240-23"})` 471 display: flex; 472 flex-direction: row; 473 justify-content: center; 474 align-items: center; 475 padding: 12px 24px; 476 gap: 12px; 477 width: 147px; 478 height: 48px; 479 background: #f5f9fc; 480 border: 2px solid #6361ff; 481 border-radius: 8px; 482 font-size: 17px; 483 color: #6361ff; 484 white-space: nowrap; 485 cursor: pointer; 486 svg { 487 min-width: 24px; 488 min-width: 24px; 489 } 490 @media (max-width: 440px) { 491 width: 90vw; 492 } 493 ${e=>e.disabled&&"color: hsla(0, 0%, 0%, 0.3);"} 494 495 ${e=>e.disabled&&"background: hsla(0, 0%, 0%, 0.1);"} 496 497 ${e=>e.disabled&&"border: 1px dashed hsla(0, 0%, 0%, 0.3);"} 498 499 ${e=>e.disabled&&"cursor: auto;"} 500 501 &:hover { 502 ${e=>e.disabled&&"background: hsla(0, 0%, 0%, 0.1);"} 503 } 504 505 svg { 506 ${e=>e.disabled&&"fill: hsla(0, 0%, 0%, 0.3);"} 507 ${e=>e.disabled&&"stroke: hsla(0, 0%, 0%, 0.3);"} 508 } 509 path { 510 ${e=>e.disabled&&"fill: hsla(0, 0%, 0%, 0.3);"} 511 ${e=>e.disabled&&"stroke: hsla(0, 0%, 0%, 0.3);"} 512 } 513`,E=t.default.div.withConfig({displayName:"Styles__SecondScreen",componentId:"sc-fd9b6240-24"})``,P=t.default.div.withConfig({displayName:"Styles__Message",componentId:"sc-fd9b6240-25"})` 514 font-size: 18px; 515 line-height: 30px; 516 text-align: center; 517 color: #425466; 518 margin-bottom: 32px; 519 @media (max-width: 744px) { 520 display: none; 521 } 522`,j=t.default.div.withConfig({displayName:"Styles__Pdfholder",componentId:"sc-fd9b6240-26"})` 523 min-height: 283px; 524 min-height: 400px; 525 display: flex; 526 align-items: center; 527 gap: 32px; 528 padding: 0 8px; 529 530 @media (max-width: 400px) { 531 min-height: auto; 532 } 533`,N=t.default.div.withConfig({displayName:"Styles__SingleFileUploadStyle",componentId:"sc-fd9b6240-27"})` 534 min-width: 205px; 535 max-height: 267px; 536 537 width: max-content; 538 margin: 0; 539 margin-bottom: 66px; 540 display: inline-block; 541 542 .drop_zone { 543 display: flex; 544 flex-direction: column; 545 justify-content: center;
546 align-items: center; 547 width: 100%; 548 height: 267px; 549 background: #f5f6fc; 550 ${e=>e.disabled&&"background: hsla(0, 0%, 0%, 0.1);"} 551 border: 1px dashed #6361ff; 552 ${e=>e.disabled&&"border: 1px dashed hsla(0, 0%, 0%, 0.3);"} 553 554 border-radius: 2px; 555 cursor: pointer; 556 ${e=>e.disabled&&"cursor: auto;"} 557 558 &:hover { 559 background: #ebeeff; 560 ${e=>e.disabled&&"background: hsla(0, 0%, 0%, 0.1);"} 561 } 562 } 563 .column { 564 display: flex; 565 flex-direction: column; 566 justify-content: center; 567 align-items: center; 568 text-align: center; 569 570 .title { 571 font-size: 15px; 572 line-height: 18px; 573 text-align: center; 574 color: #6361ff; 575 ${e=>e.disabled&&"color: hsla(0, 0%, 0%, 0.3);"} 576 577 font-weight: 800; 578 margin-top: 10px; 579 margin-bottom: 10px; 580 } 581 582 .info { 583 max-width: 97px; 584 font-size: 13px; 585 line-height: 15px; 586 text-align: center; 587 color: #6361ff; 588 ${e=>e.disabled&&"color: hsla(0, 0%, 0%, 0.3);"} 589 590 white-space: pre-wrap; 591 } 592 path { 593 ${e=>e.disabled&&"stroke: hsla(0, 0%, 0%, 0.3) !important;"} 594 595 ${e=>e.disabled&&"fill: hsla(0, 0%, 0%, 0.1) !important;"} 596 } 597 } 598`,_=t.default.div.withConfig({displayName:"Styles__ButtonHolder",componentId:"sc-fd9b6240-28"})` 599 width: 100%; 600 display: flex; 601 flex-direction: ${e=>"row"===e.$layout?"row":"column"}; 602 justify-content: center; 603 align-items: center; 604 gap: 34px; 605 margin-top: 40px; 606 607 overflow: visible; 608 609 @media (max-width: 440px) { 610 padding-top: 32px; 611 flex-direction: column; 612 margin: auto; 613 align-items: center; 614 } 615`,A=t.default.div.withConfig({displayName:"Styles__Pdfpreview",componentId:"sc-fd9b6240-29"})` 616 min-height: 383px; 617 min-height: 400px; 618 619 max-width: 1080px; 620 width: 90vw; 621 display: flex; 622 align-items: flex-end; 623 justify-content: center; 624 gap: 48px; 625 padding: 0 48px; 626 overflow-x: scroll; 627 overflow-x: auto; 628 629 overflow-y: visible; 630 padding-bottom: 32px; 631 632 ${e=>e.overflowY&&" overflow-x: visible;"} 633 634 @media (max-width: 744px) { 635 /* padding-bottom: 0px; */ 636 } 637 638 ::-webkit-scrollbar {
639 /* display: none; */ 640 height: 8px; 641 } 642 643 /* Track */ 644 ::-webkit-scrollbar-track { 645 background: #d9d9d9; 646 border-radius: 4px; 647 height: 8px; 648 } 649 650 /* Handle */ 651 ::-webkit-scrollbar-thumb { 652 background: #6361ff; 653 border-radius: 4px; 654 width: 204px; 655 } 656 657 /* Handle on hover */ 658 ::-webkit-scrollbar-thumb:hover { 659 background: #6361ff; 660 } 661`;e.s(["AddFile",0,k,"BarBack",0,h,"BarButton",0,m,"ButtonHolder",0,_,"CanvasStyle",0,r,"CtaPopup",0,p,"CtaRestart",0,u,"DownloadButton",0,b,"DownloadMessage",0,y,"DownloadScreen",0,i,"DownloadTitle",0,x,"ErrorMessageHolder",0,S,"ExportButton",0,w,"FileUploaderStyle",0,a,"Info",0,C,"Loading",0,f,"LoadingCircle",0,o,"LoadingScreen",0,n,"Message",0,P,"Offline",0,s,"Pdfholder",0,j,"Pdfpreview",0,A,"Percent",0,g,"Restart",0,d,"RestartSecond",0,v,"Row",0,l,"SecondScreen",0,E,"SingleFileUploadStyle",0,N,"ToPdf",0,c])},979890,e=>{"use strict";var t=e.i(372965);e.s(["richTextTranslate",0,function(e,n,r){let i=r?"object"==typeof r?{...t.translationValues,...r}:{...t.translationValues,value:r}:t.translationValues;try{return e.rich(n,i)}catch(e){return console.error(`Error translating rich text for key "${n}":`,e),`[${n}]`}}])},139049,e=>{"use strict";e.s(["capitalizeFirstLetter",0,e=>e?e.charAt(0).toUpperCase()+e.slice(1):e])},454512,e=>{"use strict";var t=e.i(954616),n=e.i(266027),r=e.i(787753);let i=async e=>(await r.default.post("/users/change-name",e)).data,a=async()=>(await r.default.post("/users/leave-account")).data,o=async()=>(await r.default.get("/users/profile-page-preview")).data,s=async e=>(await r.default.get(`/users/accounts-by-email?email=${encodeURIComponent(e)}`)).data,l=async e=>(await r.default.post("/users/change-business-name",e)).data,c=async e=>(await r.default.get("/users/admin/verify-email-change",{params:{from:e.from,to:e.to}})).data,d=async e=>(await r.default.post("/users/admin/execute-email-change",e)).data;e.s(["useChangeBusinessName",0,({onSuccess:e}={})=>(0,t.useMutation)({mutationFn:l,onSuccess:t=>(e&&e(t),t),onError:e=>{console.error("Error changing business name:",e)}}),"useChangeUserName",0,({onSuccess:e}={})=>(0,t.useMutation)({mutationFn:i,onSuccess:t=>(e&&e(t),t),onError:e=>{console.error("Error changing name:",e)}}),"useExecuteEmailChange",0,()=>(0,t.useMutation)({mutationFn:d}),"useGetAccountsByEmail",0,()=>(0,t.useMutation)({mutationFn:e=>s(e)}),"useGetProfilePagePreview",0,e=>(0,n.useQuery)({queryKey:["profilePagePreview"],queryFn:o,enabled:!!e}),"useLeaveAccount",0,({onSuccess:e}={})=>(0,t.useMutation)({mutationFn:a,onSuccess:t=>(e&&e(t),t),onError:e=>{console.error("Error leaving account:",e)}}),"useVerifyEmailChange",0,()=>(0,t.useMutation)({mutationFn:c})])},964378,e=>{"use strict";let t={AED:"د.Ø¥",ARS:"$",AUD:"$",BGN:"лв",BHD:".د.ب",BRL:"R$",CAD:"$",CHF:"CHF",CLP:"$",CNY:"Â¥",COP:"$",CZK:"KÄ",DKK:"kr",EGP:"£",EUR:"â¬",GBP:"£",GHS:"âµ",HKD:"$",HUF:"Ft",IDR:"Rp",ILS:"âª",INR:"â¹",JPY:"Â¥",KES:"KSh",KRW:"â©",KWD:"د.Ù",MXN:"$",MYR:"RM",NGN:"â¦",NOK:"kr",NZD:"$",OMR:"ï·¼",PEN:"S/",PHP:"â±",PKR:"â¨",PLN:"zÅ",QAR:"ï·¼",RON:"lei",RUB:"â½",SAR:"ï·¼",SEK:"kr",SGD:"$",THB:"฿",TWD:"NT$",USD:"$",VND:"â«",ZAR:"R"};e.s(["getCurrencySymbol",0,e=>t[e.toUpperCase()]||e])},232189,(e,t,n)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,n)=>{"use strict";var r=e.r(232189);function i(){}function a(){}a.resetWarningCache=i,t.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
661;return n.PropTypes=n,n}},745009,(e,t,n)=>{t.exports=e.r(865156)()},667668,942437,744668,e=>{"use strict";var t,n=e.i(271645),r=e.i(745009);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=e&&("u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=function(e,t,r){var i=!!r,a=n.default.useRef(r);n.default.useEffect(function(){a.current=r},[r]),n.default.useEffect(function(){if(!i||!e)return function(){};var n=function(){if(a.current)return a.current.apply(a,arguments)};return e.on(t,n),function(){e.off(t,n)}},[i,t,e,a])},p=function(e){var t=n.default.useRef(e);return n.default.useEffect(function(){t.current=e},[e]),t.current},u=function(e){return null!==e&&"object"===o(e)},f="[object Object]",h=function e(t,n){if(!u(t)||!u(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var i=Object.prototype.toString.call(t)===f;if(i!==(Object.prototype.toString.call(n)===f))return!1;if(!i&&!r)return t===n;var a=Object.keys(t),o=Object.keys(n);if(a.length!==o.length)return!1;for(var s={},l=0;l<a.length;l+=1)s[a[l]]=!0;for(var c=0;c<o.length;c+=1)s[o[c]]=!0;var d=Object.keys(s);return d.length===a.length&&d.every(function(r){return e(t[r],n[r])})},m="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;if(null===e||u(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;if(u(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return g(e,t)})};var n=g(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},y=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.6.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.6.0",url:"https://stripe.com/docs/stripe-js/react"}))},b=n.default.createContext(null);b.displayName="ElementsContext";var w=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e};r.default.any,r.default.object,r.default.func.isRequired;var v=n.default.createContext(null);v.displayName="CheckoutContext";var S=function(e){var t=n.default.useContext(v),r=n.default.useContext(b);if(!t)return w(r,e);if(!r)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."))},C=["mode"],k=function(e,t,i){var o="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),c=t?function(e){
661S("mounts <".concat(o,">"));var t=e.id,r=e.className;return n.default.createElement("div",{id:t,className:r})}:function(t){var r,i=t.id,c=t.className,f=t.options,m=void 0===f?{}:f,g=t.onBlur,x=t.onFocus,y=t.onReady,b=t.onChange,w=t.onEscape,v=t.onClick,k=t.onLoadError,E=t.onLoaderStart,P=t.onNetworksChange,j=t.onConfirm,N=t.onCancel,_=t.onShippingAddressChange,A=t.onShippingRateChange,R=t.onSavedPaymentMethodRemove,I=t.onSavedPaymentMethodUpdate,O=t.onAvailablePaymentMethodsChange,T=S("mounts <".concat(o,">")),L="elements"in T?T.elements:null,D="checkoutState"in T?T.checkoutState:null,$=(null==D?void 0:D.type)==="success"||(null==D?void 0:D.type)==="loading"?D.sdk:null,F=l(n.default.useState(null),2),B=F[0],M=F[1],U=n.default.useRef(null),z=n.default.useRef(null);d(B,"blur",g),d(B,"focus",x),d(B,"escape",w),d(B,"click",v),d(B,"loaderror",k),d(B,"loaderstart",E),d(B,"networkschange",P),d(B,"confirm",j),d(B,"cancel",N),d(B,"shippingaddresschange",_),d(B,"shippingratechange",A),d(B,"savedpaymentmethodremove",R),d(B,"savedpaymentmethodupdate",I),d(B,"availablepaymentmethodschange",O),d(B,"change",b),y&&(r="expressCheckout"===e?y:function(){y(B)}),d(B,"ready",r),n.default.useLayoutEffect(function(){if(null===U.current&&null!==z.current&&(L||$)){var t=null;if($)switch(e){case"paymentForm":t=$.createForm(m);break;case"payment":t=$.createPaymentElement(m);break;case"address":if("mode"in m){var n=m.mode,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(m,C);if("shipping"===n)t=$.createShippingAddressElement(r);else if("billing"===n)t=$.createBillingAddressElement(r);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=$.createExpressCheckoutElement(m);break;case"currencySelector":t=$.createCurrencySelectorElement();break;case"taxId":t=$.createTaxIdElement(m);break;case"contactDetails":t=$.createContactDetailsElement();break;default:throw Error("<".concat(o,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}else L&&(t=L.create(e,m));U.current=t,M(t),t&&t.mount(z.current)}},[L,$,m]);var q=p(m);return n.default.useEffect(function(){if(U.current){var e,t,n,r=(e=m,t=q,n=["paymentRequest"],u(e)?Object.keys(e).reduce(function(r,i){var o=!u(t)||!h(e[i],t[i]);return n.includes(i)?(o&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),r):o?a(a({},r||{}),{},s({},i,e[i])):r},null):null);r&&"update"in U.current&&U.current.update(r)}},[m,q]),n.default.useLayoutEffect(function(){return function(){if(U.current&&"function"==typeof U.current.destroy)try{U.current.destroy(),U.current=null}catch(e){}}},[]),n.default.createElement("div",{id:i,className:c,ref:z})};return c.propTypes={id:r.default.string,className:r.default.string,onChange:r.default.func,onBlur:r.default.func,onFocus:r.default.func,onReady:r.default.func,onEscape:r.default.func,onClick:r.default.func,onLoadError:r.default.func,onLoaderStart:r.default.func,onNetworksChange:r.default.func,onConfirm:r.default.func,onCancel:r.default.func,onShippingAddressChange:r.default.func,onShippingRateChange:r.default.func,onSavedPaymentMethodRemove:r.default.func,onSavedPaymentMethodUpdate:r.default.func,onAvailablePaymentMethodsChange:r.default.func,options:r.default.object},c.displayName=o,c.__elementType=e,c},E="u"<typeof window,P=n.default.createContext(null);P.displayName="EmbeddedCheckoutProviderContext";var j=function(){var e=n.default.useContext(P);if(!e)throw Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},N=E?function(e){var t=e.id,r=e.className;return j(),n.default.createElement("div",{id:t,className:r})}:function(e){var t=e.id,r=e.className,i=j().embeddedCheckout,a=n.default.useRef(!1),o=n.default.useRef(null);return n.default.useLayoutEffect(function(){return!a.current&&i&&null!==o.current&&(i.mount(o.current),a.current=!0),function(){if(a.current&&i)try{i.unmount(),a.current=!1}catch(e){}}},[i]),n.default.createElement("div",{ref:o,id:t,className:r})};k("auBankAccount",E),k("card",E),k("cardNumber",E),k("cardExpiry",E),k("cardCvc",E),k("currencySelector",E),k("iban",E),k("payment",E),k("expressCheckout",E),k("paymentRequestButton",E),k("linkAuthentication",E),k("contactDetails",E),k("address",E),k("shippingAddress",E),k("paymentMethodMessaging",E),k("taxId",E),k("issuingCardNumberDis
661play",E),k("issuingCardCvcDisplay",E),k("issuingCardExpiryDisplay",E),k("issuingCardPinDisplay",E),k("issuingCardCopyButton",E),e.s(["EmbeddedCheckout",0,N,"EmbeddedCheckoutProvider",0,function(e){var t=e.stripe,r=e.options,i=e.children,a=n.default.useMemo(function(){return x(t,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[t]),o=n.default.useRef(null),s=n.default.useRef(null),c=l(n.default.useState({embeddedCheckout:null}),2),d=c[0],u=c[1];n.default.useEffect(function(){if(!s.current&&!o.current){var e=function(e){s.current||o.current||(s.current=e,o.current=s.current.createEmbeddedCheckoutPage(r).then(function(e){u({embeddedCheckout:e})}))};"async"===a.tag&&!s.current&&(r.clientSecret||r.fetchClientSecret)?a.stripePromise.then(function(t){t&&e(t)}):"sync"===a.tag&&!s.current&&(r.clientSecret||r.fetchClientSecret)&&e(a.stripe)}},[a,r,d,s]),n.default.useEffect(function(){return function(){d.embeddedCheckout?(o.current=null,d.embeddedCheckout.destroy()):o.current&&o.current.then(function(){o.current=null,d.embeddedCheckout&&d.embeddedCheckout.destroy()})}},[d.embeddedCheckout]),n.default.useEffect(function(){y(s)},[s]);var f=p(t);n.default.useEffect(function(){null!==f&&f!==t&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[f,t]);var h=p(r);return n.default.useEffect(function(){if(null!=h){if(null==r)return void console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=h.clientSecret&&r.clientSecret!==h.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=h.fetchClientSecret&&r.fetchClientSecret!==h.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=h.onComplete&&r.onComplete!==h.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=h.onShippingDetailsChange&&r.onShippingDetailsChange!==h.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=h.onLineItemsChange&&r.onLineItemsChange!==h.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[h,r]),n.default.createElement(P.Provider,{value:d},i)}],667668);var _=e.i(997053);let A=_.default.p.withConfig({displayName:"PopupBuilderStyled__ErrorMessage",componentId:"sc-bd352945-0"})` 662 margin: 0; 663 color: #eb2222; 664 font-weight: 600; 665`,R=_.default.div.withConfig({displayName:"PopupBuilderStyled__PopupOverlay",componentId:"sc-bd352945-1"})` 666 display: ${({isVisible:e})=>e?"block":"none"}; 667 position: fixed; 668 top: 0; 669 left: 0; 670 width: 100%; 671 height: 100%; 672 background: rgba(0, 0, 0, 0.5); 673 backdrop-filter: blur(5px); 674 z-index: 1000; 675`,I=_.default.div.withConfig({displayName:"PopupBuilderStyled__PopupContent",componentId:"sc-bd352945-2"})` 676 position: absolute; 677 top: 55%; 678 left: 50%; 679 transform: translate(-50%, -50%); 680 background: white; 681 padding: 20px; 682 border-radius: 8px; 683 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 684 max-height: 90vh; 685 overflow-y: auto; 686 width: 450px; 687 @media (max-width: 768px) { 688 width: 100%; 689 height: 100%; 690 top: 110px; 691 left: 0; 692 transform: none; 693 border-radius: 0; 694 } 695`;function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.s(["ErrorMessage",0,A,"PopupContent",0,I,"PopupOverlay",0,R],942437);var T="dahlia",L="https://js.stripe.com",D="".concat(L,"/").concat(T,"/stripe.js"),$=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,F=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,B=function(){for(var e=document.querySelectorAll('script[src^="'.concat(L,'"]')),t=0;t<e.length;t++){var n,r=e[t];if(n=r.src,$.test(n)||F.test(n))return r}return null},M=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(D).concat(t);var r=document.head||document.body;if(!r)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},U=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.8.0",startTime:t})},z=null,q=null,H=null,K=function(e,t,n){if(null===e)return null;var r,i=t[0];if("string"!=typeof i)throw Error("Expected publishable key to be of type string, got type ".concat(O(i)," instead."));var a=i.match(/^pk_test/),o=3===(r=e.version)?"v3":r;a&&o!==T&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("9.8.0"," expected Stripe.js@").concat(T,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return U(s,n),s},Y=!1,W=function(){return t||(t=(null!==z?z:(z=new Promise(function(e,t){if("u"<typeof window||"u"<typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var n,r=B();r?r&&null!==H&&null!==q&&(r.removeEventListener("load",H),r.removeEventListener("error",q),null==(n=r.parentNode)||n.removeChild(r),r=M(null)):r=M(null),H=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},q=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},r.addEventListener("load",H),r.addEventListener("error",q)}catch(e){t(e);return}})).catch(function(e){return z=null,Promise.reject(e)})).catch(function(e){return t=null,Promise.reject(e)}))};Promise.resolve().then(function(){return W()}).catch(function(e){Y||console.warn(e)});var G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Y=!0;var r=Date.now();return W().then(function(e){return K(e,t,r)})};e.s(["default",0,e=>
695{let[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async()=>{e&&r(await G(e))})()},[e]),t}],744668)}]); 696 697//# debugId=5bc16317-c755-f56e-d0b7-9da0a3befdc6
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.