PageSourceSearch

https://nextdoor-ai.com/_next/static/chunks/2260-ab2726a6d4de48eb.js?dpl=dpl_6gP7TvV4zXyV9cczgnKmKRexCcuA

js nextdoor-ai.com collected 2026-10-05 00:51:49 UTC 50,275 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2260],{14063:function(e,t,a){a.d(t,{n:function(){return i}});var s=a(40138),n=a(96939),c=a(22945),l=a(47389),r=a(53042);function i(e){let{pid:t,currency:a,className:i,text:o}=e,d=(0,l.t)();return(0,s.jsxs)("div",{className:"w-full flex flex-col border border-primary p-4 rounded-md mt-2 items-center justify-center gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(r.default,{src:"/images/paymenticons_credit.png",alt:"Credit Cards",width:50,height:60}),(0,s.jsx)("div",{className:"rounded bg-black px-3 py-1.5",children:(0,s.jsx)("img",{src:"https://pay.g2a.com/img/g2apaycom.png",alt:"G2A Pay",className:"h-4 w-auto"})})]}),(0,s.jsxs)(n.z,{className:"flex w-full items-center gap-2 ".concat(i),onClick:()=>{let e=encodeURIComponent(window.location.href),s="/payment/creditcard?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(e);d.push(s)},children:[(0,s.jsx)(c.Z,{className:"h-5 w-5"}),o||"Pay with Credit Card"]})]})}},52260:function(e,t,a){a.d(t,{PriceTable:function(){return ea}});var s=a(40138),n=a(18661),c=a(96939),l=a(66270),r=a(33492),i=a(10701),o=a(96870),d=a(84004),u=a(34309),m=a(2323),x=a(49849),p=a(23644),h=a(60547),f=a(14063),y=a(47389),g=a(32088),j=a(61678);function N(e){let{pid:t,currency:a,className:l,text:i}=e,o=(0,y.t)(),{toast:d}=(0,r.pm)(),[u,m]=(0,x.useState)(!1),[p,h]=(0,x.useState)(""),[f,N]=(0,x.useState)(""),[w,v]=(0,x.useState)(!1),[b,C]=(0,x.useState)(!1),S=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,[P,M]=(0,x.useState)(""),E=n.x.allHero.createPaymentEmailNotificationLTC.useMutation(),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";o.push("/payment/ltc?pid=".concat(t,"&currency=").concat(a,"&transaction_id=").concat(e||P))},k=async()=>{if(N(""),v(!0),!p){N("Please enter an email address"),v(!1);return}if(!S.test(p)){N("Please enter a valid email address"),v(!1);return}try{let e=await E.mutateAsync({pid:t,currency:a,email:p});M(e.id),C(!0),N("")}catch(e){d({title:"Error",description:"Failed to send payment details",variant:"error"})}finally{v(!1)}},z=async()=>{v(!0),_((await E.mutateAsync({pid:t,currency:a})).id),v(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col border border-red-500 p-4 rounded-md mt-2 items-center justify-center gap-2",children:[(0,s.jsx)("div",{className:"flex items-center justify-center gap-4 mb-2",children:(0,s.jsx)("span",{className:"text-sm",children:"Crypto (Litecoin)"})}),(0,s.jsx)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:(0,s.jsx)(c.z,{onClick:()=>z(),className:"w-full flex items-center gap-2 ".concat(l),disabled:w,children:w?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):(0,s.jsx)(s.Fragment,{children:i&&(0,s.jsx)("span",{children:i})})})})]}),(0,s.jsx)(g.Vq,{open:u,onOpenChange:m,children:(0,s.jsxs)(g.cZ,{className:"sm:max-w-md",children:[(0,s.jsx)(g.fK,{children:(0,s.jsx)(g.$N,{children:"Get Payment Link"})}),(0,s.jsxs)("div",{className:"space-y-4 py-4",children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enter your email address and we will generate a payment link and send it to you."}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(j.I,{type:"email",placeholder:"Enter your email",value:p,onChange:e=>h(e.target.value),onKeyPress:e=>{"Enter"===e.key&&k()},className:f?"border-red-500":"",disabled:w}),f&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:f})]}),(0,s.jsx)(c.z,{onClick:k,className:"w-full",disabled:w,children:w?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Sending..."]}):"Send to Email"}),b&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 bg-blue-100 p-4 rounded-md",children:[(0,s.jsx)("p",{className:"mt-2 text-center ",children:"Payment link have been sent to your email. You can also visit the link below directly."}),(0,s.jsx)(c.z,{onClick:()=>_(),children:"Open Payment Link"})]})]})]})})]})}function w(e){let{pid:t,currency:a,className:n,amount:l,productName:r,title:i,text:o}=e,d=(0,y.t)();return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:[(0,s.jsx)(c.z,{onClick:()=>{let e=encodeURIComponent(window.location.href),s="/payment/flutterwave?pid=".concat(t,"&currency=").concat(a,"&amount=").concat(l,"&productName=").concat(r,"&title=").concat(i,"&redirect_url=").concat(e);d.push(s)},className:"w-full flex items-center gap-2 ".concat(n),children:o&&(0,s.jsx)("span",{children:o})}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-slate-500 dark:text-slate-400",children:["Secured by"," ",(0,s.jsx)("img",{src:"https://files.readme.io/cd5bf68-small-flw-primary-logo.png",alt:"Flutterwave",className:"h-8"})]})]})}var v=a(57409);function b(e){let{pid:t,currency:a,className:l,amount:r,productName:i,title:o,text:d}=e,u=n.x.allHero.createFlutterwavePaylink.useMutation(),m=(0,y.t)(),x=async()=>{try{let e=await u.mutateAsync({pid:t,currency:a,redirect_url:window.location.href});m.push(e)}catch(e){}};return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:[(0,s.jsxs)(c.z,{onClick:x,disabled:u.isPending,className:"w-full flex items-center gap-2 ".concat(l),children:[u.isPending&&(0,s.jsx)(v.Z,{className:"h-4 w-4 animate-spin"}),d&&(0,s.jsx)("span",{children:d})]}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-slate-500 dark:text-slate-400",children:["Secured by"," ",(0,s.jsx)("img",{src:"https://files.readme.io/cd5bf68-small-flw-primary-logo.png",alt:"Flutterwave",className:"h-8"})]})]})}function C(e){let{pid:t,currency:a,className:n,text:l}=e,r=(0,y.t)();return(0,s.jsx)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:(0,s.jsx)(c.z,{onClick:()=>{let e=encodeURIComponent(window.location.href),s="/payment/agift?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(e);r.push(s)},className:"w-full flex items-center gap-2 ".concat(n),children:l&&(0,s.jsx)("span",{children:l})})})}var S=a(60285),P=a(53042);function M(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),u=n.x.allHero.createPaymentEmailNotification.useMutation(),m=async()=>{d(!0);let e=(await u.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.STEAM_GIFT})).id,s=encodeURIComponent(window.location.href),n="/payment/amzgift?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/paymenticons_paypal.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_gpay.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_credit.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)("span",{className:"text-sm",children:"By G2A"})]}),(0,s.jsx)(c.z,{onClick:m,className:"w-full flex items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}function E(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),u=n.x.allHero.createPaymentEmailNotification.useMutation(),m=async()=>{d(!0);let e=(await u.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.BANK_TRANSFER_GIFT})).id,s=encodeURIComponent(window.location.href),n="/payment/bank-transfer?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"mt-2 flex w-full flex-col items-center justify-center gap-2 rounded-md p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/paymenticons_paypal.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_gpay.png",alt:"GPay",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_credit.png",alt:"Credit Card",width:50,height:60})]}),(0,s.jsx)("span",{className:"text-sm",children:"Via Bank Transfer Gift Card"}),(0,s.jsx)(c.z,{onClick:m,className:"flex w-full items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"h-4 w-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}function _(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),u=n.x.allHero.createPaymentEmailNotification.useMutation(),m=async()=>{d(!0);let e=(await u.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.BESTBUY_GIFT})).id,s=encodeURIComponent(window.location.href),n="/payment/bbgift?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"mt-2 flex w-full flex-col items-center justify-center gap-2 rounded-md p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/paymenticons_paypal.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_gpay.png",alt:"GPay",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_credit.png",alt:"Credit Card",width:50,height:60})]}),(0,s.jsx)("span",{className:"text-sm",children:"Via Best Buy Gift Card"}),(0,s.jsx)(c.z,{onClick:m,className:"flex w-full items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"h-4 w-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}var k=a(88392);function z(e){let{pid:t,currency:a,className:l,text:i}=e,{toast:o}=(0,r.pm)(),[d,u]=(0,x.useState)(!1),[m,p]=(0,x.useState)(""),[h,f]=(0,x.useState)(""),[y,N]=(0,x.useState)(!1),[w]=(0,x.useState)(()=>Math.random().toString(36).substring(2,15)),v=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,b=n.x.allHero.createPaymentEmailNotification.useMutation(),C=async()=>
1{if(f(""),N(!0),!m){f("Please enter an email address"),N(!1);return}if(!v.test(m)){f("Please enter a valid email address"),N(!1);return}try{await b.mutateAsync({pid:t,currency:a,email:m,hash:w}),o({title:"Success",description:"Payment details have been sent to your email"}),p(""),f(""),u(!1)}catch(e){o({title:"Error",description:"Failed to send payment details",variant:"error"})}finally{N(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:(0,s.jsxs)(c.z,{onClick:()=>u(!0),className:"w-full flex items-center gap-2 ".concat(l),children:[(0,s.jsx)(k.Z,{className:"h-4 w-4"}),i&&(0,s.jsx)("span",{children:i})]})}),(0,s.jsx)(g.Vq,{open:d,onOpenChange:u,children:(0,s.jsxs)(g.cZ,{className:"sm:max-w-md",children:[(0,s.jsx)(g.fK,{children:(0,s.jsx)(g.$N,{children:"Send Payment Details"})}),(0,s.jsxs)("div",{className:"space-y-4 py-4",children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enter your email address and we will send you the payment instructions."}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(j.I,{type:"email",placeholder:"Enter your email",value:m,onChange:e=>p(e.target.value),onKeyPress:e=>{"Enter"===e.key&&C()},className:h?"border-red-500":"",disabled:y}),h&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:h})]}),(0,s.jsx)(c.z,{onClick:C,className:"w-full",disabled:y,children:y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Sending..."]}):"Send to Email"})]})]})})]})}function A(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),u=n.x.allHero.createPaymentEmailNotification.useMutation(),m=async()=>{d(!0);let e=(await u.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.REWARBLE_VISA_GIFT})).id,s=encodeURIComponent(window.location.href),n="/payment/rewarble-visa?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"mt-2 flex w-full flex-col items-center justify-center gap-2 rounded-md p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/paymenticons_paypal.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_gpay.png",alt:"GPay",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_credit.png",alt:"Credit Card",width:50,height:60})]}),(0,s.jsx)("span",{className:"text-sm",children:"Via Rewarble Visa Gift Card"}),(0,s.jsx)(c.z,{onClick:m,className:"flex w-full items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"h-4 w-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}function T(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),u=n.x.allHero.createPaymentEmailNotification.useMutation(),m=async()=>{d(!0);let e=(await u.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.STEAM_GIFT})).id,s=encodeURIComponent(window.location.href),n="/payment/sgift?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"w-full flex flex-col border border-red-500 p-4 rounded-md mt-2 items-center justify-center gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/paymenticons_paypal.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_gpay.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)(P.default,{src:"/images/paymenticons_credit.png",alt:"Paypal",width:50,height:60}),(0,s.jsx)("span",{className:"text-sm",children:"Via Steam Gift Card"})]}),(0,s.jsx)(c.z,{onClick:m,className:"w-full flex items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}function D(e){let{pid:t,currency:a,className:l,text:r}=e,i=(0,y.t)(),[o,d]=(0,x.useState)(!1),m=(0,u.useTranslations)("PaymentSteamGiftChinaCheckout"),p=n.x.allHero.createPaymentEmailNotification.useMutation(),h=async()=>{d(!0);let e=(await p.mutateAsync({hash:"",email:"",pid:t,currency:a,paymentMethod:S.PaymentEmailNotificationPaymentMethod.STEAM_GIFT_CHINA})).id,s=encodeURIComponent(window.location.href),n="/payment/sgift-china?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(s,"&transactionId=").concat(e);i.push(n)};return(0,s.jsxs)("div",{className:"mt-2 flex w-full flex-col items-center justify-center gap-2 rounded-md border border-red-500 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(P.default,{src:"/images/wechatpay.webp",alt:"WeChat Pay",width:24,height:24}),(0,s.jsx)(P.default,{src:"/images/alipay.webp",alt:"Alipay",width:24,height:24}),(0,s.jsx)("span",{className:"text-sm",children:m("buttonSupportLabel")})]}),(0,s.jsx)(c.z,{onClick:h,className:"flex w-full items-center gap-2 ".concat(l),disabled:o,children:o?(0,s.jsx)(v.Z,{className:"h-4 w-4 animate-spin"}):(0,s.jsx)("span",{children:r})})]})}var I=a(97131);function F(e){let{locale:t}=e;if("ja"!==t)return null;let{data:a,isLoading:l}=n.x.allHero.getYahooChiebukuroPromotionCount.useQuery(void 0,{refetchOnWindowFocus:!1});return l||!a||0===a.count?null:(0,s.jsx)(c.z,{asChild:!0,className:"gap-2 font-medium bg-orange-500 hover:bg-orange-600",children:(0,s.jsxs)(m.default,{href:"/promotion-chiebukuro",children:[(0,s.jsx)(I.Z,{className:"h-4 w-4"}),"無料で7日間のアクティベーションコードを獲得"]})})}var U=a(88243);function R(e){let{pid:t,disabled:a,className:l,text:i}=e,{toast:o}=(0,r.pm)(),d=(0,y.t)(),u=n.x.allHero.createNpmPaylink.useMutation(),[m,p]=(0,x.useState)(!1),h=async()=>
1{if(!m){p(!0);try{let e=await u.mutateAsync({pid:t,redirect_url:window.location.href});(null==e?void 0:e.url)&&d.push(e.url)}catch(e){o({variant:"error",title:"Error",description:"Failed to initiate checkout. Please try again."})}finally{p(!1)}}};return(0,s.jsxs)(c.z,{onClick:h,disabled:a||m,className:l,children:[m&&(0,s.jsx)(v.Z,{className:"mr-2 h-4 w-4 animate-spin"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(U.Z,{className:"h-5 w-5"}),(0,s.jsx)("span",{children:i})]})]})}function L(){return(0,s.jsx)("div",{className:"flex flex-col items-center justify-center space-y-4 p-6 text-center",children:(0,s.jsx)(c.z,{disabled:!0,className:"w-full max-w-xs",children:"Payment Coming Soon"})})}function B(e){let{pid:t,currency:a,disabled:l,className:i,text:o}=e,{toast:d}=(0,r.pm)(),u=n.x.allHero.createPayblisPaylink.useMutation(),[m,p]=(0,x.useState)(!1),h=async()=>{if(!m){p(!0);try{let e=await u.mutateAsync({pid:t,currency:a,redirect_url:window.location.href});e&&(window.location.href=e)}catch(e){d({variant:"error",title:"Error",description:"Failed to initiate checkout. Please try again."})}finally{p(!1)}}};return(0,s.jsxs)(c.z,{onClick:h,disabled:l||m,className:i,children:[m&&(0,s.jsx)(v.Z,{className:"mr-2 h-4 w-4 animate-spin"}),o]})}let H=()=>(0,s.jsxs)("svg",{className:"w-[74px] h-[20px]",viewBox:"0 0 124 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fill:"#253B80",d:"M46.211,6.749h-6.839c-0.468,0-0.866,0.34-0.939,0.802l-2.766,17.537c-0.055,0.346,0.213,0.658,0.564,0.658 h3.265c0.468,0,0.866-0.34,0.939-0.803l0.746-4.73c0.072-0.463,0.471-0.803,0.938-0.803h2.165c4.505,0,7.105-2.18,7.784-6.5 c0.306-1.89,0.013-3.375-0.872-4.415C50.224,7.353,48.5,6.749,46.211,6.749z M47,13.154c-0.374,2.454-2.249,2.454-4.062,2.454 h-1.032l0.724-4.583c0.043-0.277,0.283-0.481,0.563-0.481h0.473c1.235,0,2.4,0,3.002,0.704C47.027,11.668,47.137,12.292,47,13.154z"}),(0,s.jsx)("path",{fill:"#253B80",d:"M66.654,13.075h-3.275c-0.279,0-0.52,0.204-0.563,0.481l-0.145,0.916l-0.229-0.332 c-0.709-1.029-2.29-1.373-3.868-1.373c-3.619,0-6.71,2.741-7.312,6.586c-0.313,1.918,0.132,3.752,1.22,5.031 c0.998,1.176,2.426,1.666,4.125,1.666c2.916,0,4.533-1.875,4.533-1.875l-0.146,0.91c-0.055,0.348,0.213,0.66,0.562,0.66h2.95 c0.469,0,0.865-0.34,0.939-0.803l1.77-11.209C67.271,13.388,67.004,13.075,66.654,13.075z M62.089,19.449 c-0.316,1.871-1.801,3.127-3.695,3.127c-0.951,0-1.711-0.305-2.199-0.883c-0.484-0.574-0.668-1.391-0.514-2.301 c0.295-1.855,1.805-3.152,3.67-3.152c0.93,0,1.686,0.309,2.184,0.892C62.034,17.721,62.232,18.543,62.089,19.449z"}),(0,s.jsx)("path",{fill:"#253B80",d:"M84.096,13.075h-3.291c-0.314,0-0.609,0.156-0.787,0.417l-4.539,6.686l-1.924-6.425 c-0.121-0.402-0.492-0.678-0.912-0.678h-3.234c-0.393,0-0.666,0.384-0.541,0.754l3.625,10.638l-3.408,4.811 c-0.268,0.379,0.002,0.9,0.465,0.9h3.287c0.312,0,0.604-0.152,0.781-0.408L84.564,13.97C84.826,13.592,84.557,13.075,84.096,13.075z "}),(0,s.jsx)("path",{fill:"#179BD7",d:"M94.992,6.749h-6.84c-0.467,0-0.865,0.34-0.938,0.802l-2.766,17.537c-0.055,0.346,0.213,0.658,0.562,0.658 h3.51c0.326,0,0.605-0.238,0.656-0.562l0.785-4.971c0.072-0.463,0.471-0.803,0.938-0.803h2.164c4.506,0,7.105-2.18,7.785-6.5 c0.307-1.89,0.012-3.375-0.873-4.415C99.004,7.353,97.281,6.749,94.992,6.749z M95.781,13.154c-0.373,2.454-2.248,2.454-4.062,2.454 h-1.031l0.725-4.583c0.043-0.277,0.281-0.481,0.562-0.481h0.473c1.234,0,2.4,0,3.002,0.704 C95.809,11.668,95.918,12.292,95.781,13.154z"}),(0,s.jsx)("path",{fill:"#179BD7",d:"M115.434,13.075h-3.273c-0.281,0-0.52,0.204-0.562,0.481l-0.145,0.916l-0.23-0.332 c-0.709-1.029-2.289-1.373-3.867-1.373c-3.619,0-6.709,2.741-7.311,6.586c-0.312,1.918,0.131,3.752,1.219,5.031 c1,1.176,2.426,1.666,4.125,1.666c2.916,0,4.533-1.875,4.533-1.875l-0.146,0.91c-0.055,0.348,0.213,0.66,0.564,0.66h2.949 c0.467,0,0.865-0.34,0.938-0.803l1.771-11.209C116.053,13.388,115.785,13.075,115.434,13.075z M110.869,19.449 c-0.314,1.871-1.801,3.127-3.695,3.127c-0.949,0-1.711-0.305-2.199-0.883c-0.484-0.574-0.666-1.391-0.514-2.301 c0.297-1.855,1.805-3.152,3.67-3.152c0.93,0,1.686,0.309,2.184,0.892C110.816,17.721,111.014,18.543,110.869,19.449z"}),(0,s.jsx)("path",{fill:"#179BD7",d:"M119.295,7.23l-2.807,17.858c-0.055,0.346,0.213,0.658,0.562,0.658h2.822c0.469,0,0.867-0.34,0.939-0.803 l2.768-17.536c0.055-0.346-0.213-0.659-0.562-0.659h-3.16C119.578,6.749,119.338,6.953,119.295,7.23z"}),(0,s.jsx)("path",{fill:"#253B80",d:"M7.266,29.154l0.523-3.322l-1.165-0.027H1.061L4.927,1.292C4.939,1.218,4.978,1.149,5.035,1.1 c0.057-0.049,0.13-0.076,0.206-0.076h9.38c3.114,0,5.263,0.648,6.385,1.927c0.526,0.6,0.861,1.227,1.023,1.917 c0.17,0.724,0.173,1.589,0.00
17,2.644l-0.012,0.077v0.676l0.526,0.298c0.443,0.235,0.795,0.504,1.065,0.812 c0.45,0.513,0.741,1.165,0.864,1.938c0.127,0.795,0.085,1.741-0.123,2.812c-0.24,1.232-0.628,2.305-1.152,3.183 c-0.482,0.809-1.096,1.48-1.825,2c-0.696,0.494-1.523,0.869-2.458,1.109c-0.906,0.236-1.939,0.355-3.072,0.355h-0.73 c-0.522,0-1.029,0.188-1.427,0.525c-0.399,0.344-0.663,0.814-0.744,1.328l-0.055,0.299l-0.924,5.855l-0.042,0.215 c-0.011,0.068-0.03,0.102-0.058,0.125c-0.025,0.021-0.061,0.035-0.096,0.035H7.266z"}),(0,s.jsx)("path",{fill:"#179BD7",d:"M23.048,7.667L23.048,7.667L23.048,7.667c-0.028,0.179-0.06,0.362-0.096,0.55 c-1.237,6.351-5.469,8.545-10.874,8.545H9.326c-0.661,0-1.218,0.48-1.321,1.132l0,0l0,0L6.596,26.83l-0.399,2.533 c-0.067,0.428,0.263,0.814,0.695,0.814h4.881c0.578,0,1.069-0.42,1.16-0.99l0.048-0.248l0.919-5.832l0.059-0.32 c0.09-0.572,0.582-0.992,1.16-0.992h0.73c4.729,0,8.431-1.92,9.513-7.476c0.452-2.321,0.218-4.259-0.978-5.622 C24.022,8.286,23.573,7.945,23.048,7.667z"}),(0,s.jsx)("path",{fill:"#222D65",d:"M21.754,7.151c-0.189-0.055-0.384-0.105-0.584-0.15c-0.201-0.044-0.407-0.083-0.619-0.117 c-0.742-0.12-1.555-0.177-2.426-0.177h-7.352c-0.181,0-0.353,0.041-0.507,0.115C9.927,6.985,9.675,7.306,9.614,7.699L8.05,17.605 l-0.045,0.289c0.103-0.652,0.66-1.132,1.321-1.132h2.752c5.405,0,9.637-2.195,10.874-8.545c0.037-0.188,0.068-0.371,0.096-0.55 c-0.313-0.166-0.652-0.308-1.017-0.429C21.941,7.208,21.848,7.179,21.754,7.151z"}),(0,s.jsx)("path",{fill:"#253B80",d:"M9.614,7.699c0.061-0.393,0.313-0.714,0.652-0.876c0.155-0.074,0.326-0.115,0.507-0.115h7.352 c0.871,0,1.684,0.057,2.426,0.177c0.212,0.034,0.418,0.073,0.619,0.117c0.2,0.045,0.395,0.095,0.584,0.15 c0.094,0.028,0.187,0.057,0.278,0.086c0.365,0.121,0.704,0.264,1.017,0.429c0.368-2.347-0.003-3.945-1.272-5.392 C20.378,0.682,17.853,0,14.622,0h-9.38c-0.66,0-1.223,0.48-1.325,1.133L0.01,25.898c-0.077,0.49,0.301,0.932,0.795,0.932h5.791 l1.454-9.225L9.614,7.699z"})]});function O(e){let{pid:t,currency:a,className:n,text:l}=e,r=(0,y.t)();return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:[(0,s.jsx)(c.z,{onClick:()=>{let e=encodeURIComponent(window.location.href),s="/payment/paypal?pid=".concat(t,"&currency=").concat(a,"&redirect_url=").concat(e);r.push(s)},className:"w-full flex items-center gap-2 ".concat(n),children:l&&(0,s.jsx)("span",{children:l})}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-slate-500 dark:text-slate-400",children:["Secured by ",(0,s.jsx)(H,{})]})]})}var G=a(32608);function Z(){let e=(0,y.t)();return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4 p-6 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-gray-500 text-orange-400",children:"The site cannot accept payment rightnow. Please click the button below to access alternative site."}),(0,s.jsx)(c.z,{className:"w-full max-w-xs",onClick:()=>e.push(G.env.NEXT_PUBLIC_PAYMENT_REDIRECT_URL||""),children:"Go to new site"})]})}let V=()=>(0,s.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 500 142.8",children:(0,s.jsxs)("g",{children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{fill:"#95BF47",d:"M107.4,27.1c-0.1-0.7-0.7-1.1-1.2-1.1c-0.5,0-10.4-0.2-10.4-0.2s-8.3-8-9.1-8.9c-0.8-0.8-2.4-0.6-3-0.4 c0,0-1.6,0.5-4.2,1.3c-0.4-1.4-1.1-3.1-2-4.9c-2.9-5.6-7.3-8.6-12.5-8.6c0,0,0,0,0,0c-0.4,0-0.7,0-1.1,0.1 c-0.2-0.2-0.3-0.4-0.5-0.5c-2.3-2.4-5.2-3.6-8.7-3.5c-6.7,0.2-13.4,5.1-18.9,13.7c-3.8,6.1-6.7,13.7-7.6,19.6 c-7.7,2.4-13.1,4.1-13.3,4.1c-3.9,1.2-4,1.3-4.5,5C10.2,45.6,0,124.5,0,124.5l85.6,14.8l37.1-9.2 C122.6,130.1,107.5,27.8,107.4,27.1z M75.2,19.2c-2,0.6-4.2,1.3-6.6,2.1c0-3.4-0.5-8.2-2-12.2C71.7,9.9,74.2,15.7,75.2,19.2z M64.1,22.6c-4.5,1.4-9.4,2.9-14.3,4.4c1.4-5.3,4-10.5,7.2-14c1.2-1.3,2.9-2.7,4.8-3.5C63.8,13.4,64.2,18.9,64.1,22.6z M54.9,4.9 c1.6,0,2.9,0.3,4,1.1c-1.8,0.9-3.6,2.3-5.2,4.1c-4.3,4.6-7.6,11.7-8.9,18.6c-4.1,1.3-8.1,2.5-11.7,3.6 C35.5,21.4,44.6,5.2,54.9,4.9z"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{fill:"#5E8E3E",d:"M106.2,26c-0.5,0-10.4-0.2-10.4-0.2s-8.3-8-9.1-8.9c-0.3-0.3-0.7-0.5-1.1-0.5l0,122.9l37.1-9.2 c0,0-15.1-102.3-15.2-103C107.3,26.4,106.7,26,106.2,26z"}),(0,s.jsx)("path",{fill:"#FFFFFF",d:"M65,45.1l-4.3,16.1c0,0-4.8-2.2-10.5-1.8c-8.4,0.5-8.4,5.8-8.4,7.1c0.5,7.2,19.4,8.8,20.5,25.7 c0.8,13.3-7,22.4-18.4,23.1C30.3,116,22.8,108,22.8,108l2.9-12.3c0,0,7.6,5.7,13.6,5.3c3.9-0.2,5.4-3.5,5.2-5.7 c-0.6-9.4-16-8.8-17-24.3C26.7,58,35.2,44.9,54,43.7C61.3,43.2,65,45.1,65,45.1z"})]})]}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M172.9,79.4c-4.3-2.3-6.5-4.3-6.5-7c0-3.4,3.1-5.6,7.9-5.6c5.6,0,10.6,2.3,10.6,2.3l3.9-12c0,0-3.6-2.8-14.2-2.8 c-14.8,0-25.1,8.5-25.1,20.4c0,6.8,4.8,11.9,11.2,15.6c5.2,2.9,7,5,7,8.1c0,3.2-2.6,5.8-7.4,5.8c-7.1,0-13.9-3.7-13.9-3.7l-4.2,12 c0,0,6.2,4.2,16.7,4.2c15.2,0,26.2-7.5,26.2-21C185,88.4,179.5,83.2,172.9,79.4z"}),(0,s.jsx)("path",{d:"M233.5,54.1c-7.5,0-13.4,3.6-17.9,9l-0.2-0.1l6.5-34h-16.9l-16.5,86.6h16.9l5.6-29.6c2.2-11.2,8-18.1,13.4-18.1 c3.8,0,5.3,2.6,5.3,6.3c0,2.3-0.2,5.2-0.7,7.5l-6.4,33.9h16.9l6.6-35c0.7-3.7,1.2-8.1,1.2-11.1C247.4,59.9,242.4,54.1,233.5,54.1z"}),(0,s.jsx)("path",{d:"M285.7,54.1c-20.4,0-33.9,18.4-33.9,38.9c0,13.1,8.1,23.7,23.3,23.7c20,0,33.5-17.9,33.5-38.9 C308.7,65.7,301.6,54.1,285.7,54.1z M277.4,103.8c-5.8,0-8.2-4.9-8.2-11.1c0-9.7,5-25.5,14.2-25.5c6,
10,8,5.2,8,10.2 C291.4,87.8,286.3,103.8,277.4,103.8z"}),(0,s.jsx)("path",{d:"M352,54.1c-11.4,0-17.9,10.1-17.9,10.1h-0.2l1-9.1h-15c-0.7,6.1-2.1,15.5-3.4,22.5l-11.8,62h16.9l4.7-25.1h0.4 c0,0,3.5,2.2,9.9,2.2c19.9,0,32.9-20.4,32.9-41C369.5,64.3,364.4,54.1,352,54.1z M335.8,104c-4.4,0-7-2.5-7-2.5l2.8-15.8 c2-10.6,7.5-17.6,13.4-17.6c5.2,0,6.8,4.8,6.8,9.3C351.8,88.4,345.3,104,335.8,104z"}),(0,s.jsx)("path",{d:"M393.7,29.8c-5.4,0-9.7,4.3-9.7,9.8c0,5,3.2,8.5,8,8.5h0.2c5.3,0,9.8-3.6,9.9-9.8 C402.1,33.4,398.8,29.8,393.7,29.8z"}),(0,s.jsx)("polygon",{points:"370,115.5 386.9,115.5 398.4,55.5 381.4,55.5"}),(0,s.jsx)("path",{d:"M441.5,55.4h-11.8l0.6-2.8c1-5.8,4.4-10.9,10.1-10.9c3,0,5.4,0.9,5.4,0.9l3.3-13.3c0,0-2.9-1.5-9.2-1.5 c-6,0-12,1.7-16.6,5.6c-5.8,4.9-8.5,12-9.8,19.2l-0.5,2.8h-7.9l-2.5,12.8h7.9l-9,47.4h16.9l9-47.4h11.7L441.5,55.4z"}),(0,s.jsx)("path",{d:"M482.3,55.5c0,0-10.6,26.7-15.3,41.3h-0.2c-0.3-4.7-4.2-41.3-4.2-41.3h-17.8l10.2,55.1c0.2,1.2,0.1,2-0.4,2.8 c-2,3.8-5.3,7.5-9.2,10.2c-3.2,2.3-6.8,3.8-9.6,4.8l4.7,14.4c3.4-0.7,10.6-3.6,16.6-9.2c7.7-7.2,14.9-18.4,22.2-33.6L500,55.5 H482.3z"})]})]})});function Y(e){let{pid:t,text:a,currency:l,className:r}=e,{data:i}=n.x.allHero.getShopifyUrl.useQuery({pid:t}),o=(0,y.t)();return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4 p-6 text-center",children:[(0,s.jsx)(c.z,{className:r,onClick:()=>{i&&o.push(i)},children:a}),(0,s.jsxs)("div",{className:"mt-2 flex justify-center items-center space-x-2",children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Secured by"}),(0,s.jsx)("div",{className:"w-20",children:(0,s.jsx)(V,{})})]})]})}function W(e){let{pid:t,disabled:a,className:l,text:i}=e,{toast:o}=(0,r.pm)(),d=(0,y.t)(),u=n.x.allHero.createSquarePaylink.useMutation(),[m,p]=(0,x.useState)(!1),h=async()=>{if(!m){p(!0);try{let e=await u.mutateAsync({pid:t,redirect_url:window.location.href});(null==e?void 0:e.url)&&d.push(e.url)}catch(e){o({variant:"error",title:"Error",description:"Failed to initiate checkout. Please try again."})}finally{p(!1)}}};return(0,s.jsxs)(c.z,{onClick:h,disabled:a||m,className:l,children:[m&&(0,s.jsx)(v.Z,{className:"mr-2 h-4 w-4 animate-spin"}),i]})}let K=e=>{let{className:t}=e;return(0,s.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"54 36 360.02 149.84",className:t,"aria-label":"Stripe payment processor logo",children:[(0,s.jsx)("title",{children:"Stripe"}),(0,s.jsx)("style",{type:"text/css",children:".st0{fill-rule:evenodd;clip-rule:evenodd;fill:#635BFF;}"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{className:"st0",d:"M414,113.4c0-25.6-12.4-45.8-36.1-45.8c-23.8,0-38.2,20.2-38.2,45.6c0,30.1,17,45.3,41.4,45.3 c11.9,0,20.9-2.7,27.7-6.5v-20c-6.8,3.4-14.6,5.5-24.5,5.5c-9.7,0-18.3-3.4-19.4-15.2h48.9C413.8,121,414,115.8,414,113.4z M364.6,103.9c0-11.3,6.9-16,13.2-16c6.1,0,12.6,4.7,12.6,16H364.6z"}),(0,s.jsx)("path",{className:"st0",d:"M301.1,67.6c-9.8,0-16.1,4.6-19.6,7.8l-1.3-6.2h-22v116.6l25-5.3l0.1-28.3c3.6,2.6,8.9,6.3,17.7,6.3 c17.9,0,34.2-14.4,34.2-46.1C335.1,83.4,318.6,67.6,301.1,67.6z M295.1,136.5c-5.9,0-9.4-2.1-11.8-4.7l-0.1-37.1 c2.6-2.9,6.2-4.9,11.9-4.9c9.1,0,15.4,10.2,15.4,23.3C310.5,126.5,304.3,136.5,295.1,136.5z"}),(0,s.jsx)("polygon",{className:"st0",points:"223.8,61.7 248.9,56.3 248.9,36 223.8,41.3"}),(0,s.jsx)("rect",{x:"223.8",y:"69.3",className:"st0",width:"25.1",height:"87.5"}),(0,s.jsx)("path",{className:"st0",d:"M196.9,76.7l-1.6-7.4h-21.6v87.5h25V97.5c5.9-7.7,15.9-6.3,19-5.2v-23C214.5,68.1,202.8,65.9,196.9,76.7z"}),(0,s.jsx)("path",{className:"st0",d:"M146.9,47.6l-24.4,5.2l-0.1,80.1c0,14.8,11.1,25.7,25.9,25.7c8.2,0,14.2-1.5,17.5-3.3V135 c-3.2,1.3-19,5.9-19-8.9V90.6h19V69.3h-19L146.9,47.6z"}),(0,s.jsx)("path",{className:"st0",d:"M79.3,94.7c0-3.9,3.2-5.4,8.5-5.4c7.6,0,17.2,2.3,24.8,6.4V72.2c-8.3-3.3-16.5-4.6-24.8-4.6 C67.5,67.6,54,78.2,54,95.9c0,27.6,38,23.2,38,35.1c0,4.6-4,6.1-9.6,6.1c-8.3,0-18.9-3.4-27.3-8v23.8c9.3,4,18.7,5.7,27.3,5.7 c20.8,0,35.1-10.3,35.1-28.2C117.4,100.6,79.3,105.9,79.3,94.7z"})]})]})};function Q(e){let{pid:t,currency:a,className:l,text:i}=e,{toast:o}=(0,r.pm)(),d=n.x.allHero.createStripeSession.useMutation(),u=n.x.allHero.addLog.useMutation(),m=(0,y.t)(),x=async()=>{try{window.gtag&&window.gtag("event","buy_press",{})}catch(e){console.error("Error tracking buy_press event:",e)}try{u.mutateAsync({type:t})}catch(e){console.error(e)}try{let e=await d.mutateAsync({pid:t,currency:a,redirect_url:window.location.href});e&&m.push(e)}catch(e){o({variant:"error",title:"Error",description:"Failed to create Stripe session"})}};return(0,s.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-2",children:[(0,s.jsx)(c.z,{onClick:x,className:"flex w-full items-center gap-2 ".concat(l),children:i&&(0,s.jsx)("span",{children:i})}),(0,s.jsxs)("span",{className:"flex items-center gap-2 text-xs text-slate-400 dark:text-slate-500",children:["Secured by ",(0,s.jsx)(K,{className:"h-4 w-auto"})]})]})}var $=a(26949);function q(e){let{pid:t,currency:a,onSuccess:l,onError:i,isOpen:o,onClose:d}=e,{toast:u}=(0,r.pm)(),[m,p]=(0,x.useState)(!1),[h,f]=(0,x.useState)(!1),[j,N]=(0,x.useState)(""),w=n.x.allHero.createSumupSession.useMutation();n.x.allHero.verifySumupPayment.useMutation();let[b,C]=(0,x.useState)(!1);console.log("PaymentSumup");let S=(0,y.t)(),[P,M]=(0,x.useState)(5);(0,x.useEffect)(()=>{let e=document.createElement("script");return e.src="https://gateway.sumup.com/gateway/ecom/card/v2/sdk.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]);let E=()=>
1"/payment/success/sumup?sumup_session_id=".concat(j);(0,x.useEffect)(()=>{let e;return h&&P>0?e=setTimeout(()=>{M(e=>e-1)},1e3):0===P&&j&&S.push(E()),()=>{e&&clearTimeout(e)}},[P,h,j,S]);let _=async()=>{p(!0);let e=await w.mutateAsync({pid:t.toString(),currency:a});console.log(e),SumUpCard.mount({id:"sumup-card",checkoutId:e.id,showEmail:!1,onResponse:(e,t)=>{console.log(t),console.log(e),"success"===e?(N(t.id),f(!0)):"sent"!==e&&"auth-screen"!==e&&(console.log("type not send or auth-screen"),u({variant:"error",title:"Payment failed",description:t.error_message||"Please try again"}),null==i||i(t))}}),p(!1)};return(0,x.useEffect)(()=>{o&&t&&_()},[o,t]),(0,s.jsx)(g.Vq,{open:o,onOpenChange:d,children:(0,s.jsxs)(g.cZ,{className:"sm:max-w-[425px]",onPointerDownOutside:e=>{e.preventDefault()},children:[(0,s.jsx)(g.fK,{className:"flex items-center justify-center",children:(0,s.jsx)(g.$N,{children:"Payment Window"})}),m&&(0,s.jsxs)("div",{className:"flex items-center justify-center p-4 space-x-2",children:[(0,s.jsx)(v.Z,{className:"h-6 w-6 animate-spin text-primary"})," Loading..."]}),b&&(0,s.jsxs)("div",{className:"flex items-center justify-center p-4 space-x-2",children:[(0,s.jsx)(v.Z,{className:"h-6 w-6 animate-spin text-primary"})," ","Verifying..."]}),!h&&(0,s.jsx)("div",{id:"sumup-card"}),h&&j&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4 p-4 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-medium",children:"Payment successful!"}),(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Redirecting to activation code page in"," ",(0,s.jsx)("span",{className:"font-semibold",children:P})," seconds"]}),(0,s.jsxs)(c.z,{className:"mt-2",onClick:()=>S.push(E()),children:["Go to activation code",(0,s.jsx)($.Z,{className:"ml-2 h-4 w-4"})]})]})]})})}function J(e){let{className:t,text:a,pid:n,currency:l}=e,{toast:i}=(0,r.pm)(),[o,d]=(0,x.useState)(!1),[u,m]=(0,x.useState)(!1);return console.log("PaymentButtonSumup: ".concat(n," ").concat(u," ").concat(o)),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.z,{className:t,size:"lg",onClick:()=>{d(!0),m(!0)},children:a}),u&&(0,s.jsx)(q,{pid:n,currency:l,onSuccess:()=>{d(!1)},onError:e=>{i({title:"Payment Failed",description:"There was an error processing your payment. Please try again.",variant:"error"})},isOpen:o,onClose:()=>d(!1)})]})}var X=a(22945);let ee=e=>{let{amount:t,onSuccess:a,onError:l}=e,[i,o]=(0,x.useState)(!1),{toast:d}=(0,r.pm)(),u=n.x.allHero.createAuthorizePaylink.useMutation(),m=async()=>{o(!0),await u.mutateAsync({amount:t})};return(0,s.jsxs)(c.z,{onClick:m,disabled:i,className:"flex items-center gap-2",children:[(0,s.jsx)(X.Z,{className:"h-4 w-4"}),i?"Processing...":"Pay Now Test"]})},et=e=>{let{feature:t}=e;return(0,s.jsxs)("li",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.Z,{className:(0,i.cn)("h-4 w-4",t.included?"text-green-500":"text-gray-300")}),(0,s.jsx)("span",{className:(0,i.cn)("text-sm",t.included?"text-gray-700":"text-gray-400"),children:t.name})]})};function ea(e){let{onSuccess:t}=e,a=(0,u.useTranslations)("pricing"),o=(0,u.useLocale)(),{data:m}=n.x.allHero.getProducts.useQuery({currency:"USD"},{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1}),y=(0,x.useMemo)(()=>m?{trial:m.filter(e=>"TRIAL"===e.type),basic:m.filter(e=>"BASIC"===e.type),ultimate:m.filter(e=>"ULTIMATE"===e.type)}:{trial:[],basic:[],ultimate:[]},[m]),[g,j]=(0,x.useState)(!1),{data:v,refetch:S}=n.x.allHero.getPaymentProviderList.useQuery(void 0,{enabled:!1}),{toast:P}=(0,r.pm)();console.log(v),(0,x.useEffect)(()=>{console.log("refetching"),S()},[]);let k=e=>{let{product:t,isPopular:n}=e,c=(0,i.cn)("mt-auto",n?"bg-primary":"bg-gray-800"),l={pid:t.pid,currency:"USD",text:a("get_started")},r={SHOPIFY:()=>(0,s.jsx)(Y,{...l,className:c}),SUMUP:()=>(0,s.jsx)(J,{...l,className:c}),SQUARE:()=>(0,s.jsx)(W,{pid:t.pid,text:a("get_started"),className:c}),NOWPAYMENTS:()=>(0,s.jsx)(R,{pid:t.pid,text:a("crypto_payment"),className:c}),PAYPAL:()=>(0,s.jsx)(O,{...l,className:c}),STRIPE:()=>(0,s.jsx)(Q,{...l,className:c}),FLUTTERWAVE:()=>(0,s.jsx)(w,{...l,productName:t.name,amount:t.price,title:t.name,className:c}),FLUTTERWAVE_STD:()=>(0,s.jsx)(b,{...l,productName:t.name,amount:t.price,title:t.name,className:c}),NONE:()=>(0,s.jsx)(L,{}),REDIRECT:()=>(0,s.jsx)(Z,{}),AUTHORIZE:()=>(0,s.jsx)(ee,{amount:12}),APPLE_GIFT:()=>(0,s.jsx)(C,{...l}),STEAM_GIFT:()=>(0,s.jsx)(T,{...l}),STEAM_GIFT_CHINA:()=>(0,s.jsx)(D,{...l}),AMAZON_GIFT:()=>(0,s.jsx)(M,{...l}),BESTBUY_GIFT:()=>(0,s.jsx)(_,{...l}),REWARBLE_VISA_GIFT:()=>(0,s.jsx)(A,{...l}),BANK_TRANSFER_GIFT:()=>(0,s.jsx)(E,{...l}),APPLE_GIFT_MAIL:()=>(0,s.jsx)(z,{...l}),CRYPTO_LTC_MAIL:()=>(0,s.jsx)(N,{...l}),CREDITCARD:()=>(0,s.jsx)(f.n,{...l,className:c}),PAYBLIS:()=>(0,s.jsx)(B,{...l,className:c})};return(0,s.jsx)(s.Fragment,{children:null==v?void 0:v.map(e=>{let t=r[e];return t?(0,s.jsx)(x.Fragment,{children:t()},e):null})})};function I(e,t){if(0===t.length)return 0;let a=t[0];if(e.pid===a.pid)return 0;if(e.credits>0&&a.credits>0){let t=a.price/a.credits;return Math.max(0,Math.round((1-e.price/e.credits/t)*100))}if(e.hours>0&&a.hours>0){let t=a.price/a.hours;return Math.max(0,Math.round((1-e.price/e.hours/t)*100))}return 0}let U=e=>{var t;let{product:n,discount:c}=e,r=(t=n.hours)>=1440?"".concat(Math.round(t/720)," months"):t>=720?"1 month":t>=48?"".concat(Math.round(t/24)," days"):t>=24?"1 day":"".concat(t," hours"),i=[{name:a("access",{period:r}),included:!0},{name:a("unlimitedGeneration"),included:!0}];return(0,s.jsxs)(l.Zb,{className:"relative flex flex-col p-6",children:[c>0&&(0,s.jsx)("span",{className:"absolute top-4 right-4 rounded-full bg-red-500 px-2 py-0.5 font-medium text-white text-xs",children:a("save",{percent:c}
1)}),(0,s.jsx)("p",{className:"mb-4 text-gray-500 text-sm",children:a("plan",{period:r})}),(0,s.jsxs)("div",{className:"mb-6 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-bold text-3xl",children:(0,h.x)(n.price,"USD")}),n.originalPrice>0&&n.originalPrice!==n.price&&(0,s.jsx)("span",{className:"text-gray-400 text-xl line-through",children:(0,h.x)(n.originalPrice,"USD")})]}),(0,s.jsx)("ul",{className:"mb-6 space-y-3",children:i.map((e,t)=>(0,s.jsx)(et,{feature:e},t))}),(0,s.jsx)(k,{product:n})]})},H=e=>{let{product:t,discount:n}=e;return(0,s.jsxs)(l.Zb,{className:"relative flex flex-col items-center border border-gray-400 p-6 dark:border-gray-500",children:[n>0&&(0,s.jsx)("span",{className:"absolute top-4 right-4 rounded-full bg-red-500 px-2 py-0.5 font-medium text-white text-xs",children:a("save",{percent:n})}),(0,s.jsx)("div",{className:"mb-2 font-bold text-2xl text-emerald-600 dark:text-emerald-400",children:a("credits",{count:t.credits})}),(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-2 text-gray-600 dark:text-gray-400",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:(0,h.x)(t.price,"USD")}),t.originalPrice>0&&t.originalPrice!==t.price&&(0,s.jsx)("span",{className:"text-gray-400 text-xs line-through",children:(0,h.x)(t.originalPrice,"USD")}),(0,s.jsx)("span",{className:"text-sm",children:a("one_time_payment")})]}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(k,{product:t})})]})},G=e=>{let{products:t,baseProducts:n}=e,c=t.filter(e=>e.hours>0),l=t.filter(e=>e.credits>0&&0===e.hours),r=null==n?void 0:n.filter(e=>e.hours>0),i=(null==r?void 0:r.length)?r:c,o=null==n?void 0:n.filter(e=>e.credits>0&&0===e.hours),d=(null==o?void 0:o.length)?o:l;return(0,s.jsxs)(s.Fragment,{children:[c.length>0&&(0,s.jsx)("div",{className:"grid gap-2 md:grid-cols-2 lg:grid-cols-3",children:c.map(e=>(0,s.jsx)(U,{product:e,discount:I(e,i)},e.pid))}),l.length>0&&(0,s.jsxs)(s.Fragment,{children:[c.length>0&&(0,s.jsx)("div",{className:"mt-4 mb-4 text-center text-gray-500 text-sm",children:a("creditPacks")}),(0,s.jsx)("div",{className:"grid gap-2 md:grid-cols-2 lg:grid-cols-3",children:l.map(e=>(0,s.jsx)(H,{product:e,discount:I(e,d)},e.pid))})]})]})};return(0,s.jsxs)("div",{className:"mx-auto py-6",children:[(0,s.jsxs)("div",{className:"mb-6 flex flex-col items-center gap-4",children:[!1,(0,s.jsx)(F,{locale:o})]}),(0,s.jsx)("div",{className:"mb-4 text-center text-gray-500 text-sm",children:a("one_time_payment")}),y.trial.length>0&&(0,s.jsx)(G,{products:y.trial}),y.basic.length>0&&(0,s.jsxs)(s.Fragment,{children:[y.trial.length>0&&(0,s.jsx)("div",{className:"mt-6 mb-4 text-center text-gray-500 text-sm",children:a("basicPlans")}),(0,s.jsx)(G,{products:y.basic})]}),y.ultimate.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-6 text-center",children:(0,s.jsxs)(c.z,{variant:g?"outline":"default",onClick:()=>j(!g),className:(0,i.cn)("gap-2",!g&&"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-lg shadow-red-500/25 hover:from-red-600 hover:to-orange-600"),children:[(0,s.jsx)(d.Z,{className:"h-4 w-4"}),g?a("showLessPlans"):p.siteConfigClient.ultimateDiscount?"".concat(a("getMoreDiscount")," (").concat(p.siteConfigClient.ultimateDiscount,")"):a("getMoreDiscount")]})}),g&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(G,{products:y.ultimate,baseProducts:y.basic})})]})]})}},60547:function(e,t,a){a.d(t,{x:function(){return s}});let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return new Intl.NumberFormat({USD:"en-US",JPY:"ja-JP",GBP:"en-GB",EUR:"de-DE"}[t]||"en-US",{style:"currency",currency:t,minimumFractionDigits:"JPY"===t?0:2,maximumFractionDigits:"JPY"===t?0:2}).format(e)}},5993:function(e,t,a){a.d(t,{jD:function(){return l},rU:function(){return n},tv:function(){return r}});var s=a(34005);let{Link:n,redirect:c,usePathname:l,useRouter:r}=(0,a(13542).iV)({locales:Object.keys(s.config.i18n.locales),localePrefix:"never"})},47389:function(e,t,a){a.d(t,{t:function(){return r}});var s=a(5993),n=a(5633),c=a.n(n),l=a(49849);let r=()=>{let e=(0,s.tv)(),t=(0,s.jD)();(0,l.useEffect)(()=>{c().done()},[t]);let a=(0,l.useCallback)((a,s)=>{a!==t&&c().start(),e.replace(a,s)},[e,t]),n=(0,l.useCallback)((a,s)=>{a!==t&&c().start(),e.push(a,s)},[e,t]);return{...e,replace:a,push:n}}},18661:function(e,t,a){a.d(t,{x:function(){return s}});let s=(0,a(48859).ec)({})},96939:function(e,t,a){a.d(t,{d:function(){return i},z:function(){return o}});var s=a(40138),n=a(17972),c=a(57709),l=a(49849),r=a(10701);let i=(0,c.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",error:"bg-destructive text-destructive-foreground hover:bg-destructive/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),o=l.forwardRef((e,t)=>
1{let{className:a,variant:c,size:l,asChild:o=!1,loading:d=!1,...u}=e,m=o?n.g7:"button";return(0,s.jsx)(m,{className:(0,r.cn)(i({variant:c,size:l,className:a})),ref:t,...u})});o.displayName="Button"},66270:function(e,t,a){a.d(t,{Ol:function(){return r},SZ:function(){return o},Zb:function(){return l},aY:function(){return d},ll:function(){return i}});var s=a(40138),n=a(10701),c=a(49849);let l=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card/75 text-card-foreground",a),...c})});l.displayName="Card";let r=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6 pb-4",a),...c})});r.displayName="CardHeader";let i=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold text-xl leading-none",a),...c})});i.displayName="CardTitle";let o=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-muted-foreground text-sm",a),...c})});o.displayName="CardDescription";let d=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",a),...c})});d.displayName="CardContent",c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",a),...c})}).displayName="CardFooter"},32088:function(e,t,a){a.d(t,{$N:function(){return h},Be:function(){return f},Vq:function(){return i},cN:function(){return p},cZ:function(){return m},fK:function(){return x},hg:function(){return o}});var s=a(40138),n=a(91687),c=a(49849),l=a(10701),r=a(86565);let i=n.fC,o=n.xz,d=e=>{let{...t}=e;return(0,s.jsx)(n.h_,{...t})};d.displayName=n.h_.displayName;let u=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)(n.aV,{ref:t,className:(0,l.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=closed]:animate-out data-[state=open]:animate-in",a),...c})});u.displayName=n.aV.displayName;let m=c.forwardRef((e,t)=>{let{className:a,children:c,...i}=e;return(0,s.jsxs)(d,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(n.VY,{ref:t,className:(0,l.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg md:w-full",a),...i,children:[c,(0,s.jsxs)(n.x8,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(r.Z,{className:"size-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=n.VY.displayName;let x=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};x.displayName="DialogHeader";let p=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};p.displayName="DialogFooter";let h=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)(n.Dx,{ref:t,className:(0,l.cn)("font-semibold text-lg leading-none tracking-tight",a),...c})});h.displayName=n.Dx.displayName;let f=c.forwardRef((e,t)=>{let{className:a,...c}=e;return(0,s.jsx)(n.dk,{ref:t,className:(0,l.cn)("text-muted-foreground text-sm",a),...c})});f.displayName=n.dk.displayName},61678:function(e,t,a){a.d(t,{I:function(){return c}});var s=a(40138),n=a(10701);let c=a(49849).forwardRef((e,t)=>{let{className:a,type:c,...l}=e;return(0,s.jsx)("input",{type:c,className:(0,n.cn)("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:font-medium file:text-sm placeholder:text-muted-foreground focus-visible:border-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});c.displayName="Input"},33492:function(e,t,a){a.d(t,{Am:function(){return u},pm:function(){return m}});var s=a(49849);let n=0,c=new Map,l=e=>{if(c.has(e))return;let t=setTimeout(()=>{c.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);c.set(e,t)},r=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;
1return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],o={toasts:[]};function d(e){o=r(o,e),i.forEach(e=>{e(o)})}function u(e){let{...t}=e,a=(n=(n+1)%Number.MAX_VALUE).toString(),s=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=(0,s.useState)(o);return(0,s.useEffect)(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},10701:function(e,t,a){a.d(t,{cn:function(){return c}});var s=a(11942),n=a(33702);function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.m6)((0,s.W)(t))}},34005:function(e,t,a){a.d(t,{config:function(){return s}});let s={i18n:{locales:{en:{currency:"USD",label:"English"},ru:{currency:"USD",label:"Русский"},es:{currency:"USD",label:"Espa\xf1ol"},fr:{currency:"USD",label:"Fran\xe7ais"},de:{currency:"USD",label:"Deutsch"},ja:{currency:"USD",label:"日本語"},zh:{currency:"USD",label:"简体中文"},"zh-Hant":{currency:"USD",label:"繁體中文"},ko:{currency:"USD",label:"한국어"},it:{currency:"USD",label:"Italiano"},pt:{currency:"USD",label:"Portugu\xeas"},ar:{currency:"USD",label:"العربية"},hi:{currency:"USD",label:"हिन्दी"},id:{currency:"USD",label:"Bahasa Indonesia"},tl:{currency:"USD",label:"Tagalog"}},defaultLocale:"en",defaultCurrency:"USD",cookieName:"NEXT_LOCALE"},teams:{avatarColors:["#4e6df5","#e5a158","#9dbee5","#ced3d9"]},auth:{redirectAfterLogout:"/",emailVerificationCredits:20},mailing:{provider:"nodemailer",from:""}}},23644:function(e,t,a){a.d(t,{Cx:function(){return l},We:function(){return n},aD:function(){return s},b9:function(){return c},siteConfigClient:function(){return r}});let s="NextDoorAI",n="https://ss.nextdoor-ai.com",c="G-X3QQHDH3B3",l="",r={displayName:s,siteUrl:"https://nextdoor-ai.com",purchaseUrl:"",registrationEnabled:!0,ultimateDiscount:"70%",affiliateEnabled:!0,affiliateCommissionRate:20,affiliateMinPayout:50,affiliateCommissionDays:30,affiliateCommissionEveryN:2,affiliateCommissionWarmupEarned:3,s3PrivateBucket:!0}}}]);

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.