PageSourceSearch

https://www.onlyvoice.ai/_next/static/chunks/4593-a2d8d538583667c6.js

js onlyvoice.ai collected 2026-10-05 15:16:54 UTC 65,526 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4593],{37874:function(t,o,n){"use strict";n.d(o,{x:function(){return Product},$:function(){return ProductContent}});var i=n(52322),r=n(40894),s=n(56008),c=n(95702),u=n(61269),m=n(30314),v=n(86435),h=n(65992),g=n(23540),f=n(25237),x=n.n(f),y=n(96577),b=n.n(y),w=n(39097),_=n.n(w),C=n(60692),j=n(19272),P=n.n(j),N=n(35236),k=n(66432),I=n(8121),E=n(30150),A=n(64090);let S=t=>{var o,n,i,r,s,c,u,m,v,h,g,f;return"string"==typeof(null==(n=null==(o=null==t?void 0:t.response)?void 0:o.data)?void 0:n.msg)?null==(r=null==(i=null==t?void 0:t.response)?void 0:i.data)?void 0:r.msg:"string"==typeof(null==(c=null==(s=null==t?void 0:t.response)?void 0:s.data)?void 0:c.message)?null==(m=null==(u=null==t?void 0:t.response)?void 0:u.data)?void 0:m.message:"string"==typeof(null==(v=null==t?void 0:t.error)?void 0:v.message)?null==(h=null==t?void 0:t.error)?void 0:h.message:"string"==typeof(null==t?void 0:t.message)?null==t?void 0:t.message:"string"==typeof(null==t?void 0:t.msg)?null==t?void 0:t.msg:JSON.stringify(null==(f=null==(g=null==t?void 0:t.response)?void 0:g.data)?void 0:f.msg)||(null==t?void 0:t.toString())||JSON.stringify(t)||t||"Something went wrong"};var T=n(70672),D=n(43813),R=n(88346),L=n(75269);let CouponAPI=class CouponAPI{static async redeem(t,o,n){let i="/coupon/redeem/".concat(t,"/").concat(o,"/").concat(n),r=new L.Z,s=await r.get(i);return s}};var z=n(7921),O=n(5632),F=n(2784),U=n(5853),B=class{static async getProps(t){let{productSlug:o,by:n,slugOrDomain:i}=t,r=new L.Z,s="/product/".concat(o,"?by=").concat(n,"&search=").concat(i),c=await r.get(s);return c}static async getPaymentIntentSecret(t){let{spaceID:o,productID:n,couponCode:i}=t,r=new L.Z,s="/product/payment_intent/".concat(o,"/").concat(n);i&&(s+="?coupon=".concat(i));let c=await r.get(s);return c}static async createPaypalOrder(t){let{spaceID:o,productID:n,couponCode:i}=t,r=new L.Z,s="/product/payment_intent/paypal/".concat(o,"/").concat(n);i&&(s+="?coupon=".concat(i));let c=await r.post(s,null);return c}static async capturePaypalOrder(t){let{spaceID:o,orderID:n}=t,i=new L.Z,r="/payment/capture/paypal/".concat(o,"/").concat(n),s=await i.post(r,null);return s}static async getAccessTokenWithPaypalOrder(t){let{spaceID:o,paypalOrderID:n}=t,i=new L.Z,r=await i.post("/product/access_token/".concat(o),{paypal_order_id:n});return r}static async getAccessTokenWithPaymentIntent(t){let{paymentIntentID:o,paymentIntentClientSecret:n,spaceID:i}=t,r=new L.Z,s=await r.post("/product/access_token/".concat(i),{payment_intent_id:o,payment_intent_client_secret:n});return s}static async getAccessTokenWithEmailToken(t){let{email:o,tokenChallenge:n,spaceID:i}=t,r=new L.Z,s=await r.post("/product/access_token/".concat(i),{email:o,token_challenge:n});return s}static async getProduct(t){let{accessToken:o,spaceID:n,productID:i}=t,r=new L.Z,s="/product/cust/".concat(n,"/").concat(i),c=await r.get(s,{headers:{Authorization:"Bearer ".concat(o)}});return c}static async downloadProduct(t){let{accessToken:o,spaceID:n,productID:i,fileAddress:r}=t,s=new L.Z,c="/product/cust/file/".concat(n,"/").concat(i,"/").concat(r),u=await s.get(c,{headers:{Authorization:"Bearer ".concat(o),"Cache-Control":"no-cache"}});return u}static async getDownloadLinkEmail(t){let{productID:o,spaceID:n,email:i,redirectURL:r}=t,s=new L.Z,c="/product/download_link_email/".concat(n,"/").concat(o,"?redirect_url=").concat(encodeURIComponent(r)),u=await s.post(c,{email:i});return u}static async getFreeProduct(t){let{productID:o,spaceID:n,email:i,redirectURL:r,couponCode:s}=t,c=new L.Z,u="/product/get_free_product/".concat(n,"/").concat(o,"?redirect_url=").concat(encodeURIComponent(r));s&&(u+="&coupon_code=".concat(s));let m=await c.post(u,{email:i});return m}},M=n(92787),H=n(24762),V=n.n(H);function DeleteCouponIcon(t){return(0,i.jsx)("div",{tabIndex:0,role:"button",className:V().discountCodeDeleteButton,onClick:t.onClick,onKeyDown:()=>{},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:(0,i.jsx)("path",{d:"M12.854 12.7336C12.9005 12.7801 12.9373 12.8352 12.9625 12.8959C12.9876 12.9566 13.0006 13.0216 13.0006 13.0873C13.0006 13.153 12.9876 13.2181 12.9625 13.2788C12.9373 13.3395 12.9005 13.3946 12.854 13.4411C12.8076 13.4876 12.7524 13.5244 12.6917 13.5495C12.631 13.5747 12.566 13.5876 12.5003 13.5876C12.4346 13.5876 12.3695 13.5747 12.3088 13.5495C12.2481 13.5244 12.193 13.4876 12.1465 13.4411L8.00028 9.29422L3.85403 13.4411C3.76021 13.5349 3.63296 13.5876 3.50028 13.5876C3.3676 13.5876 3.24035 13.5349 3.14653 13.4411C3.05271 13.3473 3 13.22 3 13.0873C3 12.9547 3.05271 12.8274 3.14653 12.7336L7.2934 8.58734L3.14653 4.44109C3.05271 4.34727 3 4.22003 3 4.08734C3 3.95466 3.05271 3.82741 3.14653 3.73359C3.24035 3.63977 3.3676 3.58707 3.50028 3.58707C3.63296 3.58707 3.76021 3.63977 3.85403 3.73359L8.00028 7.88047L12.1465 3.73359C12.2403 3.63977 12.3676 3.58707 12.5003 3.58707C12.633 3.58707 12.7602 3.63977 12.854 3.73359C12.9478 3.82741 13.0006 3.95466 13.0006 4.08734C13.0006 4.22003 12.9478 4.34727 12.854 4.44109L8.70715 8.58734L12.854 12.7336Z",fill:"currentColor"})})})}function CouponField(t){var o,n,r,s,c,u,m,v;let h=(null===(o=t.product.document)||void 0===o?void 0:o.product_currency)||A.F.USD,g=T.CE[h],[f,x]=(0,M.L)(t.machineActor);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"coupon_code",className:V().discountCodeLabel,children:"Discount Code"}),(0,i.jsxs)("div",{className:V().discountCodeContainer,children:[(0,i.jsx)("input",{className:V().discountCodeInput,name:"coupon_code",value:f.context.couponCode,placeholder:'Enter "DISCOUNT" here',onCh
1ange:t=>x({type:"COUPON.CHANGE",payload:{newCouponCode:t.target.value}})}),(0,i.jsx)("div",{className:V().discountCodeApplyButtonContainer,children:(0,i.jsx)("button",{type:"button",onClick:()=>x({type:"COUPON.APPLY"}),className:V().discountCodeApplyButton,value:f.context.couponCode,disabled:f.hasTag("loading"),children:"Apply"})})]})]}),(null===(n=f.context)||void 0===n?void 0:n.couponResult)&&(0,i.jsxs)("div",{className:V().discountDetailContainer,children:[(0,i.jsxs)("div",{className:V().discountDetailRow,children:[(0,i.jsx)("p",{className:V().discountDetailLabel,children:"Subtotal"}),(0,i.jsxs)("p",{className:V().discountDetailLabel,children:[g,null===(r=f.context.couponResult)||void 0===r?void 0:r.subtotal]})]}),(0,i.jsxs)("div",{className:V().discountDetailRow,children:[(0,i.jsxs)("div",{className:V().discountCodeRemoveContainer,children:[(0,i.jsx)("p",{className:V().discountDetailLabel,children:"Discount"}),(0,i.jsx)("span",{className:V().discountCodeRemoveLabel,children:null==f?void 0:null===(s=f.context)||void 0===s?void 0:s.couponCode}),(0,i.jsx)(DeleteCouponIcon,{onClick:()=>x({type:"COUPON.REMOVE"})})]}),(0,i.jsxs)("p",{className:V().discountDetailLabel,children:["-",g,null==f?void 0:null===(c=f.context.couponResult)||void 0===c?void 0:c.discount]})]}),(0,i.jsxs)("div",{className:V().discountDetailRow,children:[(0,i.jsx)("p",{className:V().discountDetailTotalLabel,children:"Total"}),(0,i.jsxs)("p",{className:V().discountDetailTotalLabel,children:[g,null==f?void 0:null===(u=f.context.couponResult)||void 0===u?void 0:u.total]})]})]}),(null===(m=f.context)||void 0===m?void 0:m.couponError)&&(0,i.jsx)("div",{className:V().discountCodeError,children:null===(v=f.context)||void 0===v?void 0:v.couponError})]})}var G=n(72779),q=n.n(G);function isValidEmail(t){return String(t).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}var Z=n(96308),W=n.n(Z);function ButtonAccent(t){let{isLoading:o,children:n,disabled:r,onClick:s}=t;return(0,i.jsx)("button",{className:q()("button mt-4",W().buttonAccent,{"is-loading is-primary":o}),onClick:s||void 0,disabled:r,type:"submit",children:n})}function ProductEmailForm(t){let{spaceID:o,product:n,couponCode:r}=t,s=(0,O.useRouter)(),[c,u]=(0,F.useState)(""),[m,v]=(0,F.useState)(void 0),[h,g]=(0,F.useState)(!1),[f,x]=(0,F.useState)(void 0),getFreeProduct=async()=>{if(!c||!isValidEmail(c)){v("Please enter a valid email address.");return}g(!0),x(void 0);try{var t,i,u;let m=await B.getFreeProduct({productID:n.id,spaceID:o,email:c,redirectURL:"".concat(window.location.href,"/content"),couponCode:r});(null==m?void 0:null===(t=m.data)||void 0===t?void 0:t.email)===c&&s.push({pathname:"".concat(window.location.pathname,"/content"),query:{...s.query,email:null==m?void 0:null===(i=m.data)||void 0===i?void 0:i.email,token:null==m?void 0:null===(u=m.data)||void 0===u?void 0:u.token,success:!0}})}catch(t){x(S(t)),g(!1)}};return(0,i.jsxs)("form",{className:q()(P().form,"my-5"),onSubmit:t=>{t.preventDefault(),getFreeProduct()},children:[(0,i.jsx)("div",{className:"is-size-6 with-text-color mb-1",children:"Email"}),(0,i.jsx)("input",{className:q()(P().inputMedium,{[P().inputError]:m}),style:{width:"100%",minWidth:"140px"},type:"email",value:c,placeholder:"[email protected]",onChange:t=>{var o;v(void 0),u(null===(o=t.target.value)||void 0===o?void 0:o.toLowerCase())}}),m&&(0,i.jsx)("div",{className:"has-text-danger mt-1",children:m}),(0,i.jsx)(ButtonAccent,{isLoading:h,disabled:h,children:"Get Product"}),f&&(0,i.jsx)("div",{className:"has-text-danger has-text-centered mt-3",children:f})]})}ButtonAccent.defaultProps={onClick:void 0};let Y=x()(()=>Promise.all([n.e(480),n.e(2507),n.e(123),n.e(5738),n.e(6766)]).then(n.bind(n,5738)).then(t=>t.ParagraphElement),{loadableGenerated:{webpack:()=>[5738]}}),J=x()(()=>Promise.all([n.e(480),n.e(2507),n.e(123),n.e(5738),n.e(6766)]).then(n.bind(n,5738)).then(t=>t.SerializeTextLeaf),{loadableGenerated:{webpack:()=>[5738]}});function SuccessfulPayment(t){var o,n;let{email:r,isLoading:s,isContentDisabled:c}=t,u=(0,O.useRouter)();return(0,i.jsxs)("div",{className:P().successContainer,children:[(0,i.jsx)("div",{className:"my-4",children:(0,i.jsx)(b(),{alt:"Check",src:"/check.png",width:50,height:50})}),(0,i.jsx)(Y,{element:{type:"p",id:"a5957b17-7ba0-460a-9866-b1f05246e2a2",align:"align_center",children:[]},className:"slate-p",children:(0,i.jsx)(J,{leaf:{id:"c1eab670-836c-4f41-a78c-c51443ae2da6",styled:!0,fontStyle:"subtitle1",fontSize:24,lineHeight:1.4,bold:!0,color:"var(--text)",gradient:!1,text:"Thank y
1ou for your purchase"}})}),(0,i.jsxs)(Y,{element:{children:[],type:"p",id:"6530ffaf-7e27-4423-8212-91694563c7b5",align:"align_center"},className:"slate-p",children:[(0,i.jsx)(J,{leaf:{color:"gray",fontSize:16,fontStyle:"subtitle3",id:"c1eab670-836c-4f41-a78c-c51443ae2da6",styled:!0,text:"We've sent a receipt and download link to your email ".concat(r,".")}}),(0,i.jsx)(_(),{href:{pathname:"".concat(null===(n=window)||void 0===n?void 0:null===(o=n.location)||void 0===o?void 0:o.pathname,"/content"),query:u.query},children:(0,i.jsx)(ButtonAccent,{isLoading:s,disabled:c,children:"View Content →"})})]})]})}function StripeForm(t){var o;let n=(null===(o=t.product.document)||void 0===o?void 0:o.product_currency)||A.F.USD;T.CE[n];let[r,s]=(0,M.L)(t.machineActor),c=(0,k.useStripe)(),u=(0,k.useElements)(),handleSubmit=async t=>{var o,n,i;if(t.preventDefault(),!r.context.stripePromise||!u||!c){s({type:"FORM.ERROR",payload:{error:"Stripe promise is not defined"}});return}let m=await c.confirmPayment({elements:u,confirmParams:{return_url:window.location.href,receipt_email:null===(o=r.context)||void 0===o?void 0:o.email}});s({type:"FORM.SUBMIT"});let{error:v}=m;v&&(("card_error"===v.type||"validation_error"===v.type)&&s({type:"FORM.ERROR",payload:{error:null!==(n=v.message)&&void 0!==n?n:"unknown error"}}),s({type:"FORM.ERROR",payload:{error:null!==(i=v.message)&&void 0!==i?i:"An unexpected error occurred."}}))};return(0,F.useEffect)(()=>{c&&r.context.paymentIntentClientSecret&&c.retrievePaymentIntent(r.context.paymentIntentClientSecret).then(t=>{let{paymentIntent:o}=t;switch(null==o?void 0:o.status){case"succeeded":s({type:"PRODUCT.PAYMENT_SUCCESS"});break;case"processing":s({type:"PRODUCT.PAYMENT_PENDING",payload:{message:"Your payment is processing."}});break;default:s({type:"PRODUCT.PAYMENT_ERROR",payload:{error:"Your payment was not successful, please try again."}})}})},[c,r]),(0,i.jsx)(i.Fragment,{children:r.hasTag("payment:success")?(0,i.jsx)(SuccessfulPayment,{email:"",isLoading:!1,isContentDisabled:!c||!u}):(0,i.jsxs)("form",{className:q()(P().form,"my-5"),onSubmit:t=>{handleSubmit(t)},children:[(0,i.jsx)(k.LinkAuthenticationElement,{onChange:t=>s({type:"EMAIL.CHANGE",payload:{newEmail:t.value.email}}),className:q()(P().emailInput,"mb-5")}),(0,i.jsx)(k.PaymentElement,{options:{layout:"tabs"},className:q()(P().paymentElement,"mb-5")}),t.product.document.product_allows_coupon&&r.context.isUsingStripe&&(0,i.jsx)(CouponField,{machineActor:t.machineActor,product:t.product}),(0,i.jsx)(ButtonAccent,{isLoading:r.hasTag("loading"),disabled:r.hasTag("loading"),children:"Pay now"}),r.context.stripeMessage&&(0,i.jsx)("div",{className:"mt-4 has-text-grey has-text-centered",children:r.context.stripeMessage}),r.context.stripeError&&(0,i.jsx)("div",{className:"mt-4 has-text-danger has-text-centered",children:r.context.stripeError})]})})}var Q=n(95957),K=n(97386);function parseProductPrice(t){return t?parseInt(t,10):0}let X=(0,Q.C)({id:"payment-form-machine",context:{stripePromise:null,email:void 0,product:null,spaceId:null,couponCode:void 0,couponResult:void 0,couponError:void 0,stripeError:void 0},states:{"Initial load":{on:{"PRODUCT.MOUNT":{target:"Loading product",actions:"onProductMount"}}},"Loading product":{on:{"PRODUCT.LOAD":{target:"Payment forms",actions:"onLoadProduct"}}},"Payment forms":{states:{"Init form":{description:"Transitional state to init the form.",after:{5:"Show forms"}},"Fetching coupon code":{invoke:{src:"getCouponCode",id:"getCouponCode",onDone:{target:"Init form",actions:"onGetCouponCodeSuccess"},onError:{target:"Init form",actions:"onGetCouponCodeError"}}},"Show forms":{tags:["ui:show_forms"],states:{Paypal:{states:{Initialize:{always:[{target:"Hide field",cond:"isFreeProduct"},{target:"Show Paypal Button",cond:"isUsingPaypal"},"Hide field"]},"Show Paypal Button":{},"Hide field":{tags:["ui:hide_paypal_button"]}},initial:"Initialize"},Stripe:{states:{Initialize:{always:[{target:"Hide field",cond:"isFreeProduct"},{target:"Fetching payment intent",cond:"isUsingStripe"},"Hide field"]},"Fetching payment intent":{tags:["loading","loading:payment_intent"],invoke:{src:"getPaymentIntent",onDone:[{target:"Showing payment status",cond:"isPaymentClientSecretExist",actions:"onGetPaymentIntentSuccess"},{target:"Idle",actions:"onGetPaymentIntentSuccess"}],onError:{target:"Show load stripe form error",actions:"onErrorGetPaymentIntent"},id:"getPaymentIntent"}},"Showing payment status":{states:{"Waiting for payment status":{on:{"PRODUCT.PAYMENT_SUCCESS":"Show payment success","PRODUCT.PAYMENT_PENDING":{target:"#payment-form-machine.Payment forms.Show forms.Stripe.Idle",actions:"onProductPaymentPending"},"PRODUCT.PAYMENT_ERROR":{target:"#payment-form-machine.Payment forms.Show forms.Stripe.Idle",actions:"onProductPaymentError"}}},"Show payment success":{tags:["payment:success"]}},initial:"Waiting for payment status"},Idle:{on:{"EMAIL.CHANGE":{target:"Idle",internal:!0,actions:"onEmailChange"},"FORM.SUBMIT":"Confirming Stripe Payment"},description:"Waiting for user input"},"Show load stripe form error":{on:{"PAYMENT_INTENT.RETRY":"Fetching payment intent"}},"Confirming Stripe Payment":{on:{"FORM.ERROR":{target:"Idle",actions:"onConfirmPaymentError"}}},"Hide field":{}},initial:"Initialize"},"Coupon code field":{description:"Since the discount is managed in our platform, the discount code field is separated from 3rd party's form.",states:{Initialize:{always:[{target:"Idle",cond:"isProductAllowsCoupon"},"Hide field"]},Idle:{on:{"COUPON.APPLY":{target:"#payment-form-machine.Payment forms.Fetching coupon code",cond:"isAbleToApplyCoupon"},"COUPON.CHANGE":{target:"Idle",internal:!0,actions:"onChangeCouponCode"},"COUPON.REMOVE":{target:"#payment-form-machine.Payment forms.Init form",actions:"onRemoveCoupon"}},description:"Waiting for user input."},"Hide field":{}},initial:"Initialize"},"Email Free Product":{states:{Initialize:{always:[{target:"Show email free product form",cond:"isFreeProduct"},"Hide form"]},"Show email free product form":{},"Hide form":{}},initial:"Initialize"}},type:"parallel"},"Load initial data":{always:[{target:"Fetching coupon code",cond:"isAbleToApplyCoupon"},"Init form"]}},initial:"Load initial data"}},initial:"Initial load",tsTypes:{},schema:{context:{},events:{}},predictableActionArguments:!0},{guards:{isProductAllowsCoupon:t=>{var o;return(null===(o=t.product)||void 0===o?void 0:o.document.product_allows_coupon)===!0},isAbleToApplyCoupon:t=>{var o;return(null===(o=t.product)||void 0===o?void 0:o.document.product_allows_coupon)===!0&&void 0!==t.couponCode&&""!==t.couponCode},isPaymentClientSecretExist:t=>void 0!==t.paymentIntentClientSecret,isUsingPaypal:t=>(null==t?void 0:t.isUsingPaypal)===!0,isUsingStripe:t=>(null==t?void 0:t.isUsingStripe)===!0,isFreeProduct:t=>(null==t?void 0:t.isFreeProduct)===!0},actions:{onProductMount:(0,K.f0)((t,o)=>({paymentIntentClientSecret:o.payload.paymentIntentClientSecret,spaceId:o.payload.spaceId,couponCode:o.payload.initialCouponCode,isUsingPaypal:o.payload.isUsingPaypal,isUsingStripe:o.payload.isUsingStripe})),onLoadProduct:(0,K.f0)((t,o)=>{let n=T.Hw[o.payload.product.document.product_currency||A.F.USD];return{couponCode:o.payload.product.document.product_allows_coupon?t.couponCode:void 0,product:o.payload.product,isFreeProduct:0===
1parseProductPrice(o.payload.product.document.product_price),isSpecialCase:(null==n?void 0:n.decimal)==="three"||(null==n?void 0:n.decimal)==="zero"}}),onEmailChange:(0,K.f0)((t,o)=>({email:o.payload.newEmail})),onChangeCouponCode:(0,K.f0)((t,o)=>({couponCode:o.payload.newCouponCode})),onErrorGetPaymentIntent:()=>({}),onGetCouponCodeSuccess:(0,K.f0)((t,o)=>{if("done.invoke.getCouponCode"===o.type){let t=o.data;return{couponResult:t,couponError:void 0,isFreeProduct:0===parseProductPrice(t.total)}}return{}}),onGetCouponCodeError:(0,K.f0)((t,o)=>"error.platform.getCouponCode"===o.type?{couponResult:void 0,couponError:S(o.data)}:{}),onGetPaymentIntentSuccess:(0,K.f0)((t,o)=>{if("done.invoke.getPaymentIntent"===o.type){let t=o.data;return{stripePromise:t.stripePromise,clientSecret:t.clientSecret}}return{}}),onConfirmPaymentError:(0,K.f0)((t,o)=>({stripeError:o.payload.error})),onRemoveCoupon:(0,K.f0)(t=>{var o,n;return{couponCode:void 0,couponResult:void 0,couponError:void 0,isFreeProduct:0===parseProductPrice(null===(n=t.product)||void 0===n?void 0:null===(o=n.document)||void 0===o?void 0:o.product_price)}}),onProductPaymentError:(0,K.f0)((t,o)=>({stripeError:o.payload.error})),onProductPaymentPending:(0,K.f0)((t,o)=>({stripeMessage:o.payload.message}))}});function ProductPaymentForm(t){var o,n,r,s,c,u,g,f,x,y,b;let{spaceID:w,product:_,paymentMethod:C}=t,j=(0,O.useRouter)(),{query:{success:L,payment_intent_client_secret:M,redirect_status:H,couponCode:V}}=j,G=(null===(o=_.document)||void 0===o?void 0:o.product_currency)||A.F.USD,q="true"===L||"succeeded"===H,[Z,W]=(0,F.useState)(""),[Y,J]=(0,F.useState)(void 0),[Q,K,$]=(0,D.e)(X,{services:{getCouponCode:async t=>{var o,n,i,r;return CouponAPI.redeem(null!==(n=t.spaceId)&&void 0!==n?n:"",null!==(i=null===(o=t.product)||void 0===o?void 0:o.document.product_slug)&&void 0!==i?i:"",null!==(r=t.couponCode)&&void 0!==r?r:"").then(t=>t.data)},getPaymentIntent:async t=>{var o,n,i;let r=await B.getPaymentIntentSecret({spaceID:null!==(n=t.spaceId)&&void 0!==n?n:"",productID:null!==(i=null===(o=t.product)||void 0===o?void 0:o.id)&&void 0!==i?i:"",couponCode:(null==t?void 0:t.couponError)===void 0?t.couponCode:void 0}),s=await (0,I.J)(U.Yw,{stripeAccount:r.data.stripe_account_id});return{stripePromise:s,clientSecret:r.data.client_secret}}}}),ee=(0,R.v)($,t=>t.context.isUsingStripe),et=(0,R.v)($,t=>t.context.isUsingPaypal),ea=(0,R.v)($,t=>t.context.isFreeProduct),eo=(0,R.v)($,t=>t.context.isSpecialCase);(0,F.useEffect)(()=>{j.isReady&&w&&_.id&&(K({type:"PRODUCT.MOUNT",payload:{spaceId:w,initialCouponCode:V,paymentIntentClientSecret:M,isUsingPaypal:null==C?void 0:C.paypal,isUsingStripe:null==C?void 0:C.stripe}}),K({type:"PRODUCT.LOAD",payload:{product:_}}))},[j.isReady,w,_,K]);let en={theme:"undefined"!=typeof document&&"dark"===document.documentElement.getAttribute("data-theme")?"night":"stripe"},ei={clientSecret:null!==(b=Q.context.clientSecret)&&void 0!==b?b:"",appearance:en},el=(0,F.useMemo)(()=>t=>{let o=(0,F.createElement)(k.Elements,{options:ei,stripe:Q.context.stripePromise},t.children);return o},[null==Q?void 0:null===(n=Q.context)||void 0===n?void 0:n.stripePromise]),ed=(0,F.useCallback)(async(t,o)=>{try{let o=await B.capturePaypalOrder({spaceID:w,orderID:t.orderID}),n=(0,z.Z)(j.query);n.paypal_order_id=o.data.id,n.success="true",j.replace({pathname:window.location.pathname,query:n},void 0,{shallow:!0}),W(o.data.payer.email_address)}catch(t){J(S(t))}},[j,W]),createPaypalOrder=async()=>{let t=await B.createPaypalOrder({spaceID:w,productID:_.id,couponCode:void 0===Q.context.couponError?Q.context.couponCode:void 0});return t.data.order.id},er=(null===(r=Q.context.couponResult)||void 0===r?void 0:r.total)!==void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.b,{element:{type:"p",children:[],id:"09efb4eb-d7d4-4b6f-94aa-d85a0426916d"},className:"slate-h2",children:(0,i.jsx)(v.vc,{leaf:{text:null===(s=_.document)||void 0===s?void 0:s.product_name,styled:!0,fontStyle:"subtitle3",fontSize:16,color:"gray"}})}),!q&&(0,i.jsxs)(m.Jz,{element:{type:"h3",id:"c1eab670-836c-4f41-a78c-c51443ae2da6",children:[]},className:"slate-h3",children:[er&&(0,i.jsx)(v.vc,{leaf:{text:"".concat(T.CE[G]).concat(null===(c=Q.context.couponResult)||void 0===c?void 0:c.total," "),styled:!0}}),(0,i.jsx)(v.vc,{leaf:{text:ea?"Free":"".concat(T.CE[G])+"".concat((Number(null===(u=_.document)||void 0===u?void 0:u.product_price)*(eo?100:1)).toLocaleStr
1ing()),strikethrough:!!er,color:er?"gray":"default",fontSize:er?20:26,styled:!0}})]}),(0,i.jsx)(E.J,{element:{type:"divider",children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39d"}],id:"73fcba62-695a-496d-9967-f60b2a1d81df"},className:"slate-h3",children:null}),(0,i.jsxs)("div",{className:P().container,children:[ea&&(0,i.jsx)(ProductEmailForm,{spaceID:w,product:_,couponCode:null===(g=Q.context)||void 0===g?void 0:g.couponCode}),!ea&&ee&&!q&&Q.context.clientSecret&&(0,i.jsx)(el,{children:(0,i.jsx)(StripeForm,{product:_,machineActor:$})}),!ea&&!q&&_.document.product_allows_coupon&&Q.context.isUsingPaypal&&!Q.context.isUsingStripe&&(0,i.jsx)(CouponField,{machineActor:$,product:_}),(0,i.jsx)("div",{className:P().spacer}),!ea&&et&&!q&&Q.matches("Payment forms.Show forms.Paypal.Show Paypal Button")&&(0,i.jsx)(N.Vv,{options:{clientId:U.U5,currency:(null===(y=Q.context.product)||void 0===y?void 0:null===(x=y.document)||void 0===x?void 0:null===(f=x.product_currency)||void 0===f?void 0:f.toUpperCase())||"USD",intent:"capture"},children:(0,i.jsx)(N.ch,{style:{color:"gold",shape:"rect",label:"pay",height:50},createOrder:createPaypalOrder,onApprove:ed})}),q&&et&&(0,i.jsx)(SuccessfulPayment,{email:Z,isLoading:!1,isContentDisabled:!1}),(0,i.jsx)("div",{className:"has-text-danger has-text-centered",children:Y})]})]})}let $=x()(()=>Promise.all([n.e(480),n.e(2507),n.e(123),n.e(5738),n.e(6766)]).then(n.bind(n,5738)).then(t=>t.ImageElement),{loadableGenerated:{webpack:()=>[5738]}}),Product=t=>{var o,n,f,x,y,w,j,N;let{space:k,product:I,paymentMethod:E}=t;return(0,i.jsxs)(r.b,{element:{id:"",type:"root",children:[]},className:"typedream content",children:[(0,i.jsx)(s.s,{element:{id:"0768edc8-36d8-42f9-acef-bbaef89b23fc",type:"spacer",height:30,children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39c"}],mobile_hide:!0},className:"slate-spacer",children:null}),(null===(n=I.document)||void 0===n?void 0:null===(o=n.product_images)||void 0===o?void 0:o[0])&&(0,i.jsx)($,{element:{id:"1bdb49c3-5963-4d17-ae43-9549f0279608",type:"img",children:[{text:"",id:"5dcd2adc-1ff5-4b88-a42a-d58b32a3cfd8"}],url:null===(x=I.document)||void 0===x?void 0:null===(f=x.product_images)||void 0===f?void 0:f[0],width:1200,height:500,aspect_ratio:2.4,border_radius:"10px",objectFit:"cover"},className:"slate-img",optimizable:!!(null===C.q||void 0===C.q?void 0:(0,C.q)(null===(w=I.document)||void 0===w?void 0:null===(y=w.product_images)||void 0===y?void 0:y[0])),optimizedImageComponent:b(),children:null}),(0,i.jsxs)(c.c,{element:{type:"column",id:"289e33c1-ce7d-4867-b68c-ef6a800f7567",width:1200,vertical_align:"align_start",children:[]},className:"slate-column",children:[(0,i.jsxs)(u.H,{element:{type:"column_item",children:[],width:.6,id:"d7a81bd1-6715-4c3a-a932-dd1accf4c9e9"},className:"slate-column_item",children:[(0,i.jsx)(m.iT,{element:{type:"h2",id:"b8f5e029-c684-443a-99c3-ca8021f8fdaa",children:[]},className:"slate-h2",children:(0,i.jsx)(v.vc,{leaf:{text:null===(j=I.document)||void 0===j?void 0:j.product_name}})}),(0,i.jsx)(h.b,{element:{type:"p",children:[],id:"4cc147aa-2dd2-462c-9ffd-af051c8e3f36"},className:"slate-p",children:(0,i.jsx)(v.vc,{leaf:{text:(null===(N=I.document)||void 0===N?void 0:N.product_description)||"Downloadable digital files or product",styled:!0,fontStyle:"subtitle3",fontSize:16,color:"gray"}})})]}),(0,i.jsxs)(u.H,{element:{type:"column_item",children:[],width:.4,id:"f0d3786d-fed8-4a7e-8c4b-6342fc915b6c"},className:["slate-column_item",P().columnItemAlignStart].join(" "),children:[(0,i.jsx)(g.i,{element:{type:"container",background:"default",align:"align_center",vertical_align:"align_start",children:[],id:"c0312423-8560-40cd-9cf9-e5f95bafb30f",width:700,style:"card"},className:"slate-container",children:(0,i.jsx)(ProductPaymentForm,{spaceID:k.id,product:I,paymentMethod:E})}),(0,i.jsx)("div",{className:P().badge,children:(0,i.jsxs)(_(),{href:"https://typedream.com/products?utm_source=product-powered-by:".concat(null==k?void 0:k.id),target:"_blank",rel:"noopener noreferrer",children:["Powered by"," ",(0,i.jsx)(b(),{src:"/logo-text-grey-dark.svg",alt:"typedream",width:121,height:24,className:"mb-[2px]"})]})})]})]}),(0,i.jsx)(s.s,{element:{id:"0768edc8-36d8-42f9-acef-bbaef89b23fc",type:"spacer",height:70,children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39c"}]},className:"slate-spacer",children:null})]})};var ee=n(33250),et=Object.defineProperty,d=(t,o,n)=>o in t?et(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,e=(t,o,n)=>(d(t,"symbol"!=typeof o?o+"":o,n),n);let p=class p{decodePayload(){let t=this.token.split(".")[1];try{return JSON.parse(ee.Buffer.from(t,"base64").toString("utf8"))}catch(t){}return null}getExpiration(){return this.payload.exp}getIssuedAt(){return this.payload.iat}getAudience(){return this.payload.aud}constructor(t){e(this,"token"),e(this,"payload"),this.token=t,this.payload=this.decodePayload()}};var ea=Object.defineProperty,AccessToken_r=(t,o,n)=>o in t?ea(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,a=(t,o,n)=>(AccessToken_r(t,"symbol"!=typeof o?o+"":o,n),n);let l=class l extends p{decodePayload(){return super.decodePayload()}getUserID(){var t;return null==(t=this.payload)?void 0:t.UID}getEmail(){var t;return null==(t=this.payload)?void 0:t.identifier}constructor(t){super(t),a(this,"payload"),this.payload=this.decodePayload()}};var eo=n(90047),en=n(40620);let ei="TD_JWT_PRODUCT_ACCESS_TOKEN";function storeProductAccessToken(t){var o;en.t5(t),null===(o=window)||void 0===o||o.localStorage.setItem("".concat(ei),t)}var el=n(14760),ed=n.n(el),components_Loading=function(t){let{loading:o}=t;return o?(0,i.jsx)("div",{className:q()(ed().loaderWrapper,{[ed().isActive]:o}),children:(0,i.jsx)("div",{className:ed().loaderBox,children:(0,i.jsx)("div",{className:q()(ed().loader,ed().isLoading)})})}):null};function ProductConfirmEmail(t){let{product:o,spaceID:n}=t,[r,s]=(0,F.useState)(""),[c,u]=(0,F.useState)(void 0),[m,v]=(0,F.useState)(!1),[h,g]=(0,F.useState)(!1),[f,x]=(0,F.useState)(void 0),sendDownloadEmail
1=async()=>{if(!r||!isValidEmail(r)){u("Please enter a valid email address.");return}v(!0),x(void 0),g(!1);try{var t;let i=await B.getDownloadLinkEmail({productID:o.id,spaceID:n,email:r,redirectURL:window.location.href});(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.email)===r&&g(!0)}catch(t){x(S(t))}v(!1)};return h?(0,i.jsxs)("div",{className:"has-text-centered mb-3",children:["The download link is sent to your email"," ",r]}):(0,i.jsx)("div",{className:P().blockItem,children:(0,i.jsxs)("form",{className:"is-flex is-flex-direction-column is-align-items-flex-start is-justify-content-center",onSubmit:t=>{t.preventDefault(),sendDownloadEmail()},children:[(0,i.jsx)("div",{className:"is-size-6 with-text-color mb-1",children:"Email"}),(0,i.jsx)("input",{className:q()(P().inputMedium,{[P().inputError]:c}),type:"email",value:r,placeholder:"[email protected]",onChange:t=>{u(void 0),s(t.target.value)}}),(0,i.jsx)(ButtonAccent,{isLoading:m,disabled:m,children:"Send Confirmation Email"}),f&&(0,i.jsx)("div",{className:"has-text-danger",children:f})]})})}var er=n(10929),es=n(18978),ec=n(6277),eu=n(98174);function cn(){for(var t=arguments.length,o=Array(t),n=0;n<t;n++)o[n]=arguments[n];return(0,eu.m)((0,ec.clsx)(o))}let ep=(0,er.j)("border-0 cursor-pointer normal-case font-[inherit] text-[100%] leading-[1.5] border-solid inline-flex items-center justify-center rounded-lg font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background px-4 py-[10px] whitespace-nowrap transition-all duration-150",{variants:{variant:{default:"bg-primary text-white hover:bg-primary-600 active:bg-primary-500 text-white",outline:"bg-transparent text-secondary dark:text-primary border border-border hover:shadow-lg active:shadow-lg active:bg-background-secondary active:text-primary dark:active:text-primary",secondary:cn("bg-background-tertiary text-primary hover:bg-background-surface","active:bg-background-tertiary active:text-primary"),destructive:"bg-red-400 text-white hover:bg-red-600 active:bg-red-500","destructive-secondary":"bg-transparent text-red-400 border border-red-400 hover:shadow-lg active:shadow-lg active:bg-neutral-100 active:border-red-700 active:text-red-700","destructive-soft":"bg-background-button-danger-soft text-danger hover:bg-red-50/50 active:bg-red-50/50 dark:hover:bg-red-950/50 dark:active:bg-red-950/50",ghost:"bg-transparent text-secondary hover:bg-background-tertiary hover:text-primary-softactive:text-primary-soft active:bg-background-surface",black:"bg-[#131415] text-white hover:bg-[#2d2f36] active:bg-slate-900",invert:"bg-[#131415] dark:bg-white text-invert-primary hover:bg-[#2d2f36] dark:bg-slate-50 active:bg-slate-900 dark:active:bg-slate-100"},size:{md:"text-sm",xs:"text-xs",sm:"text-xs font-medium px-2 py-1.5",lg:"text-lg","2xl":"text-2xl gap-4 px-4 py-3"},isDisabled:{true:"opacity-50 shadow-none hover:shadow-none disabled:pointer-events-none disabled:cursor-not-allowedactive:shadow-none active:text-neutral-400",false:""}},defaultVariants:{variant:"default",size:"md"},compoundVariants:[{variant:["default","secondary","destructive","destructive-secondary","destructive-soft","black","invert"],isDisabled:!0,className:"cursor-not-allowed opacity-40 border-none border-0 border-none border-0 shadow-none hover:shadow-none hover:bg-neutral-300 hover:text-neutral-400 active:bg-neutral-300 active:border-none active:border-0 active:shadow-none active:text-neutral-400"},{variant:["outline"],isDisabled:!0,className:"cursor-not-allowed bg-transparent text-neutral-400border border-solid shadow-none hover:shadow-none hover:bg-neutral-100 hover:bg-opacity-50 active:shadow-none active:text-neutral-400"}]}),em=(0,er.j)("fill-current animate-spin leading-none",{variants:{size:{lg:"text-xl",md:"text-lg",sm:"text-base",xs:"text-sm","2xl":"text-2xl"}},defaultVariants:{size:"md"}}),ev=F.forwardRef((t,o)=>
1{let{className:n,variant:r,size:s,isDisabled:c,children:u,leftIcon:m,leftIconClassName:v,icon:h,iconClassName:g,rightIcon:f,rightIconClassName:x,isLoading:y,loadingText:b,onClick:w,..._}=t;return(0,i.jsxs)("button",{className:cn(ep({variant:r,size:s,className:n,isDisabled:c||y})),ref:o,"data-disabled":c,disabled:c||y,onClick:t=>!w||c||y?void 0:w(t),..._,children:[y&&(0,i.jsxs)("span",{className:cn("w-full flex justify-center items-center gap-2 relative","right"===_.loadingPlacement?"flex-row-reverse":"flex-row"),children:[(0,i.jsx)("span",{className:cn(b?"relative":"absolute","flex justify-center items-center"),children:(0,i.jsx)(es.koH,{className:em({size:s})})}),b?(0,i.jsx)("span",{children:b}):(0,i.jsx)("span",{className:"opacity-0",children:u})]}),!y&&(0,i.jsxs)(i.Fragment,{children:[m&&(0,i.jsx)("span",{className:cn("fill-current mr-2 leading-none h-fit",v),children:m}),h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:cn("flex items-center justify-center fill-current leading-none h-fit",g),children:h}),(0,i.jsx)("span",{className:"sr-only",children:u})]}):u,f&&(0,i.jsx)("span",{className:cn("fill-current ml-2 leading-none h-fit",x),children:f})]})]})});ev.displayName="Button";var eh=n(69557);eh.fC;let{CollapsibleTrigger:eg}=eh,{CollapsibleContent:ef}=eh,ex=(0,er.j)("text-md font-md",{variants:{variant:{regular:"text-neutral-700 dark:text-neutral-500",link:"text-primary-400 hover:text-primary-300",main:"text-neutral-900 dark:text-white",disabled:"text-neutral-500",error:"text-rose-500",mute:"text-neutral-600",white:"text-white","white-secondary":"opacity-[0.8] text-white",primary:"text-primary","primary-soft":"text-primary-soft","invert-primary":"text-invert-primary",secondary:"text-secondary",tertiary:"text-tertiary",accent:"text-accent","on-accent":"text-on-accent",success:"text-success",danger:"text-danger",inherit:"text-inherit",invert:"text-invert-primary"},size:{"3xs":"text-[11px] leading-[18px]","2xs":"text-xs leading-[18px]",xs:"text-[13px] leading-5",sm:"text-sm leading-5",md:"text-base leading-6",lg:"text-lg leading-7",xl:"text-xl leading-7 tracking-tight","2xl":"text-2xl leading-9 tracking-tight","display-sm":"text-[28px] tracking-tight","display-md":"text-3xl tracking-tight","display-lg":"text-4xl tracking-tight"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"}},defaultVariants:{variant:"primary",size:"md",weight:"regular"}}),ey=F.forwardRef((t,o)=>{let{as:n,className:i,style:r,variant:s,size:c,weight:u,...m}=t;return(0,F.createElement)(null!=n?n:"span",{ref:o,className:cn(ex({variant:s,size:c,weight:u,className:i})),style:r,...m},m.children)});var eb=n(40259),ew=n(37900),e_=n(71437),eC=n(35598);eb.fC,eb.ZA,eb.B4;let ej=F.forwardRef((t,o)=>{let{className:n,children:r,isUsedCustomIcon:s,...c}=t;return(0,i.jsxs)(eb.xz,{ref:o,className:cn("flex items-center gap-2 px-4 py-2.5 bg-background rounded-lg bg ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s?"border-none":"border border-solid border-border",n),...c,children:[r,(0,i.jsx)(eb.JO,{asChild:!0,children:s?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(ew.Z,{size:16,className:"text-secondary"})})]})});ej.displayName=eb.xz.displayName;let eP=F.forwardRef((t,o)=>{let{className:n,children:r,position:s="item-aligned",...c}=t;return(0,i.jsx)(eb.h_,{children:(0,i.jsxs)(eb.VY,{ref:o,className:cn("rounded-lg border-solid border border-border bg-background relative z-50 min-w-[20rem] overflow-hidden shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:s,...c,children:[(0,i.jsx)(eb.u_,{className:"flex items-center justify-center h-[25px]",children:(0,i.jsx)(e_.Z,{size:16,className:"text-secondary"})}),(0,i.jsx)(eb.l_,{className:cn("popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,i.jsx)(eb.$G,{className:"flex items-center justify-center h-[25px]",children:(0,i.jsx)(ew.Z,{size:16,className:"text-secondary"})})]})})});eP.displayName=eb.VY.displayName;let eN=F.forwardRef((t,o)=>{let{className:n,children:r,...s}=t;return(0,i.jsx)(eb.__,{ref:o,className:"px-4 py-2.5",...s,children:(0,i.jsx)(ey,{size:"xs",weight:"medium",variant:"secondary",children:r})})});eN.displayName=eb.__.displayName;let eS=F.forwardRef((t,o)=>{let{className:n,children:r,...s}=t;return(0,i.jsxs)(eb.ck,{ref:o,className:cn("bg-background hover:bg-background-tertiary focus:bg-background-tertiary px-4 pl-5 py-2.5 relative flex w-full cursor-default select-none items-center outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[(0,i.jsx)(eb.wU,{className:"absolute left-1.5 flex h-full w-4 items-center justify-center",children:(0,i.jsx)(eC.Z,{size:16})}),(0,i.jsx)(eb.eT,{children:r})]})});eS.displayName=eb.ck.displayName;let ek=F.forwardRef((t,o)=>{let{className:n,...r}=t;return(0,i.jsx)(eb.Z0,{ref:o,className:cn("-mx-1 my-1 h-px bg-hr",n),...r})});ek.displayName=eb.Z0.displayName,(0,er.j)(["flex","justify-center","items-center","font-semibold","rounded-md","w-fit leading-none"],{variants:{uppercase:{true:"uppercase",false:"normal-case"},hideBorder:{true:"border-0 border-none",false:"border border-solid"},variant:{purple:"border-indigo-200 bg-background-button-accent-soft text-accent",yellow:"border-yellow-200 bg-yellow-50 text-yellow-500",red:"border-red-200 bg-red-25 text-red-500",green:"border-green-200 bg-green-50 text-green-500",blue:"border-blue-200 bg-blue-50 text-blue-500",gray:"border-gray-200 bg-gray-50 text-gray-500"},size:{xxs:"text-[10px] px-1.5 py-1",xs:"text-xs px-2 py-1",sm:"text-sm px-2 py-1",md:"text-base px-2 py-1"}},defaultVariants:{hideBorder:!1,variant:"purple",size:"xxs",uppercase:!0}});var eI=n(23707);let eE=(0,er.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),eA=F.forwardRef((t,o)=>{let{className:n,...r}=t;return(0,i.jsx)(eI.f,{ref:o,className:cn(eE(),n),...r})});
1eA.displayName=eI.f.displayName;var eT=n(16530);let eD=F.forwardRef((t,o)=>{let{className:n,...r}=t;return(0,i.jsx)(eT.fC,{className:cn("peer inline-flex h-[24px] w-[44px] p-0 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-background-accent data-[state=unchecked]:bg-white/30",n),...r,ref:o,children:(0,i.jsx)(eT.bU,{className:cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});eD.displayName=eT.fC.displayName;var eR=n(70891),eL=n(90727);eR.zt;let ez=F.forwardRef((t,o)=>{let{className:n,...r}=t;return(0,i.jsx)(eR.l_,{ref:o,className:cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 right-0 md:max-w-[420px]",n),...r})});ez.displayName=eR.l_.displayName;let eO=(0,er.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-xl border border-solid border-border bg-background dark:bg-background-secondary backdrop-blur text-primary py-[20px] px-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-full",{variants:{variant:{default:"",success:"",destructive:"destructive group"}},defaultVariants:{variant:"default"}}),eF=F.forwardRef((t,o)=>{let{className:n,variant:r,...s}=t;return(0,i.jsx)(eR.fC,{ref:o,className:cn(eO({variant:r}),n),...s})});eF.displayName=eR.fC.displayName;let eU=F.forwardRef((t,o)=>{let{className:n,children:r,...s}=t;return(0,i.jsx)(eR.aU,{ref:o,className:cn("shrink-0 bg-transparent justify-self-end border-none outline-none p-0",n),...s,children:r})});eU.displayName=eR.aU.displayName;let eB=F.forwardRef((t,o)=>{let{className:n,...r}=t;return(0,i.jsx)(eR.x8,{ref:o,className:cn("absolute right-2 top-2 flex p-0 justify-end text-secondary border-none outline-none opacity-0 transition-opacity hover:text-primary focus:opacity-100 focus:outline-none group-hover:opacity-100 bg-transparent cursor-pointer",n),"toast-close":"",...r,children:(0,i.jsx)(eL.Z,{size:16,className:"h-4 w-4"})})});eB.displayName=eR.x8.displayName;let eM=F.forwardRef((t,o)=>{let{className:n,children:r,...s}=t;return(0,i.jsx)(eR.Dx,{ref:o,className:cn(n),...s,children:(0,i.jsx)(ey,{size:"xs",weight:"medium",children:r})})});eM.displayName=eR.Dx.displayName;let eH=F.forwardRef((t,o)=>{let{className:n,children:r,...s}=t;return(0,i.jsx)(eR.dk,{ref:o,className:cn(n),...s,children:(0,i.jsx)(ey,{size:"xs",variant:"secondary",weight:"medium",children:r})})});eH.displayName=eR.dk.displayName;let eV=0,eG=new Map,addToRemoveQueue=t=>{if(eG.has(t))return;let o=setTimeout(()=>{eG.delete(t),dispatch({type:"REMOVE_TOAST",toastId:t})},1e6);eG.set(t,o)},reducer=(t,o)=>{switch(o.type){case"ADD_TOAST":return{...t,toasts:[o.toast,...t.toasts].slice(0,1)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:n}=o;return n?addToRemoveQueue(n):t.toasts.forEach(t=>{addToRemoveQueue(t.id)}),{...t,toasts:t.toasts.map(t=>t.id===n||void 0===n?{...t,open:!1}:t)}}case"REMOVE_TOAST":if(void 0===o.toastId)return{...t,toasts:[]};return{...t,toasts:t.toasts.filter(t=>t.id!==o.toastId)}}},eq=[],eZ={toasts:[]};function dispatch(t){eZ=reducer(eZ,t),eq.forEach(t=>{t(eZ)})}function toast(t){let{...o}=t,n=(eV=(eV+1)%Number.MAX_VALUE).toString(),dismiss=()=>dispatch({type:"DISMISS_TOAST",toastId:n});return dispatch({type:"ADD_TOAST",toast:{...o,id:n,open:!0,onOpenChange:t=>{t||dismiss()}}}),{id:n,dismiss,update:t=>dispatch({type:"UPDATE_TOAST",toast:{...t,id:n}})}}function useToast_useToast(){let[t,o]=F.useState(eZ);return F.useEffect(()=>(eq.push(o),()=>{let t=eq.indexOf(o);t>-1&&eq.splice(t,1)}),[t]),{...t,toast,dismiss:t=>dispatch({type:"DISMISS_TOAST",toastId:t})}}function FileIcon(t){let{size:o=24}=t;return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",height:o,width:o,"aria-hidden":"true",focusable:"false",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",className:"StyledIconBase-sc-ea9ulj-0 jChdGK with-accent-text-color",children:[(0,i.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,i.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h8v4h4v12zm-6-3c-1.1 0-2-.9-2-2V9.5c0-.28.22-.5.5-.5s.5.22.5.5V15h2V9.5a2.5 2.5 0 0 0-5 0V15c0 2.21 1.79 4 4 4s4-1.79 4-4v-4h-2v4c0 1.1-.9 2-2 2z"})]})}function ImageIcon(t){let{size:o=24}=t;return(0,i.jsxs)("svg",{viewBox:"0 0 24 24",height:o,width:o,"aria-hidden":"true",focusable:"false",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"StyledIconBase-sc-ea9ulj-0 jChdGK with-accent-text-color",children:[(0,i.jsx)("path",{d:"M19 3H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM5 19V5h14l.002 14H5z"}),(0,i.jsx)("path",{d:"m10 14-1-1-3 4h12l-5-7z"})]})}function LinkIcon(t){let{size:o=24}=t;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:o,width:o,viewBox:"0 0 24 24",fill:"currentColor",children:[(0,i.jsx)("path",{d:"M8.465 11.293c1.133-1.133 3.109-1.133 4.242 0l.707.707 1.414-1.414-.707-.707c-.943-.944-2.199-1.465-3.535-1.465s-2.592.521-3.535 1.465L4.929 12a5.008 5.008 0 0 0 0 7.071 4.983 4.983 0 0 0 3.535 1.462A4.982 4.982 0 0 0 12 19.071l.707-.707-1.414-1.414-.707.707a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.122-2.121z"}),(0,i.jsx)("path",{d:"m12 4.929-.707.707 1.414 1.414.707-.707a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.122 2.121c-1.133 1.133-3.109 1.133-4.242 0L10.586 12l-1.414 1.414.707.707c.943.944 2.199 1.465 3.535 1.465s2.592-.521 3.535-1.465L19.071 12a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0z"})]})}function DownArrowIcon(t){let{size:o=24}=t;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:o,width:o,viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"m18.707 12.707-1.414-1.414L13 15.586V6h-2v9.586l-4.293-4.293-1.414 1.414L12 19.414z"})})}function UpRightArrowIcon(t){let{size:o=24}=t;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:o,width:o,viewBox:"0 0 24 24",fill:"currentColor",transform:"rotate(-135)",children:(0,i.jsx)("path",{d:"m18.707 12.707-1.414-1.414L13 15.586V6h-2v9.586l-4.293-4.293-1.414 1.414L12 19.414z"})})}FileIcon.defaultProps={size:24},ImageIcon.defaultProps={size:24},LinkIcon.defaultProps={size:24},DownArrowIcon.defaultProps={size:24},UpRightArrowIcon.defaultProps={size:24};var eW=F.memo(function(t){let{loading:o,className:n}=t;return o?(0,i.jsx)("div",{className:q()(ed().loader,n,{[ed().isLoading]:o})}):(0,i.jsx)("div",{className:n,style:{width:16,height:16}})});function ProductButton(t){var o,n,r;let{accessToken:s,spaceID:c,productID:u,item:m,onClickDownload:v}=t,{toast:h}=useToast_useToast(),[g,f]=(0,F.useState)(!1),x=(0,F.useCallback)(async()=>{var t;if("file"!==m.type||!s)return"";let o=await B.downloadProduct({accessToken:s,spaceID:c,productID:u,fileAddress:m.value});return null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.url},[s,c,m]),y=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,onDownload=async()=>{f(!0);let t=document.createElement("a"),o=await x();o||h({title:"Fail downloading file",description:"Please try again.",variant:"destructive"}),t.href=o,t.setAttribute("download",m.name),t.setAttribute("target",y?"_self":"_blank"),document.body.appendChild(t),t.click(),f(!1),v()},b="url"===m.type?(0,i.jsx)(UpRightArrowIcon,{size:20}):(0,i.jsx)(DownArrowIcon,{size:20}),w=(0,i.jsxs)(i.Fragment,{children:["file"===m.type?(0,i.jsx)("div",{className:P().productIconBackground,children:(null===(o=m.file_type)||void 0===o?void 0:o.startsWith("image"))?(0,i.jsx)(ImageIcon,{}):(0,i.jsx)(FileIcon,{})}):(0,i.jsx)("div",{className:q()(P().productIconBackground,P().productIconBackgroundImage),children:(0,i.jsx)(LinkIcon,{})}),(0,i.jsxs)("div",{className:P().textContainer,children:[(0,i.jsx)("div",{className:q()(P().ellipsis,P().title),children:m.name}),(0,i.jsxs)("div",{className:q()(P().ellipsis,P().subtitle),children:["file"===m.type?"".concat(null===(r=m.file_type.split("/"))||void 0===r?void 0:null===(n=r[1])||void 0===n?void 0:n.toUpperCase()):"URL"," • ","file"===m.type?function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+t)return"0 Bytes";let n=o<0?0:o,i=Math.floor(Math.log(t)/Math.log(1024));return"".concat(parseFloat((t/1024**i).toFixed(n))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i])}(m.size):m.value]})]}),(0,i.jsx)("div",{className:P().downArrow,children:g?(0,i.jsx)(eW,{loading:!0}):b})]});return"url"===m.type?(0,i.jsx)("a",{href:m.value,target:"_blank",rel:"noreferrer noopener",children:(0,i.jsx)("div",{className:q()("mb-4",P().productC
1ontainer),children:w},m.value)}):(0,i.jsx)("div",{style:{opacity:g?.5:1},className:q()("mb-4",P().productContainer),onClick:onDownload,role:"none",children:w})}function ProductList(t){var o;let{product:n,spaceID:r,accessToken:s}=t,{toast:c}=useToast_useToast(),[u,m]=(0,F.useState)(void 0),[v,h]=(0,F.useState)(!1),getProduct=async(t,o,n)=>{try{let i=await B.getProduct({accessToken:t,spaceID:o,productID:n});m(null==i?void 0:i.data)}catch(t){c({title:S(t),variant:"destructive"})}};if((0,F.useEffect)(()=>{s&&r&&n.id&&getProduct(s,r,n.id)},[s,r,n.id]),!u)return null;let g=u.document;return(0,i.jsxs)("div",{children:[null==g?void 0:null===(o=g.product_files)||void 0===o?void 0:o.map(t=>(0,i.jsx)(ProductButton,{productID:n.id,spaceID:r,accessToken:s,item:t,onClickDownload:()=>{h(!0)}})),v&&(0,i.jsxs)("div",{className:P().info,children:[(0,i.jsx)("div",{className:P().infoTitle,children:"Download not running?"}),(0,i.jsx)("div",{className:P().infoDescription,children:'Check to see if your browser blocked a popup window. If so, you\'ll need to set it to "Allow" to allow the download to run.'})]})]})}let eY=x()(()=>Promise.all([n.e(480),n.e(2507),n.e(123),n.e(5738),n.e(6766)]).then(n.bind(n,5738)).then(t=>t.ImageElement),{loadableGenerated:{webpack:()=>[5738]}}),ProductContent=t=>{var o,n,f,x,y,w,j,N,k,I,A;let{space:T,product:D}=t,R=(0,O.useRouter)(),[L,U]=(0,F.useState)(!0),[M,H]=(0,F.useState)(void 0),[V,G]=(0,F.useState)(!1),[Z,W]=(0,F.useState)(!1),Y=(null===(A=window)||void 0===A?void 0:A.localStorage.getItem("".concat(ei)))||"";F.useEffect(()=>{R.isReady&&U(!1)},[R.isReady]);let{payment_intent_client_secret:J,payment_intent:Q,email:K,token:X,paypal_order_id:$,success:ee}=R.query;(0,F.useEffect)(()=>{ee&&(G(!0),setTimeout(()=>G(!1),3e3))},[ee,R]);let et=(0,F.useCallback)(async(t,o)=>{try{var n,i;let r=await B.getAccessTokenWithPaypalOrder({paypalOrderID:t,spaceID:o});storeProductAccessToken(null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.token),H(null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.token),W(!0);let s=(0,z.Z)(R.query);delete s.paypal_order_id,R.replace({pathname:window.location.pathname,query:s},void 0,{shallow:!0})}catch(t){eo.Am.error(S(t))}},[R]),ea=(0,F.useCallback)(async(t,o,n)=>{try{var i,r;let s=await B.getAccessTokenWithPaymentIntent({paymentIntentID:o,paymentIntentClientSecret:t,spaceID:n});storeProductAccessToken(null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.token),H(null==s?void 0:null===(r=s.data)||void 0===r?void 0:r.token),W(!0);let c=(0,z.Z)(R.query);delete c.payment_intent,delete c.payment_intent_client_secret,R.replace({pathname:window.location.pathname,query:c},void 0,{shallow:!0})}catch(t){eo.Am.error(S(t))}},[R]),en=(0,F.useCallback)(async(t,o,n)=>{try{var i,r;let s=await B.getAccessTokenWithEmailToken({email:t,tokenChallenge:o,spaceID:n});storeProductAccessToken(null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.token),H(null==s?void 0:null===(r=s.data)||void 0===r?void 0:r.token),W(!0);let c=(0,z.Z)(R.query);delete c.email,delete c.token,R.replace({pathname:window.location.pathname,query:c},void 0,{shallow:!0})}catch(t){eo.Am.error(S(t))}},[R]);if((0,F.useEffect)(()=>{if(Y){if(!Y||"undefined"===Y||"null"===Y)return;let t=new l(Y);(null==t?void 0:t.getExpiration())<new Date().getTime()/1e3||H(Y)}},[Y]),(0,F.useEffect)(()=>{!Z&&J&&Q&&(null==T?void 0:T.id)&&ea(J,Q,null==T?void 0:T.id)},[J,Q,Z,ea,R.query,null==T?void 0:T.id]),(0,F.useEffect)(()=>{!Z&&$&&(null==T?void 0:T.id)&&et($,null==T?void 0:T.id)},[$,Z,et,R.query,null==T?void 0:T.id]),(0,F.useEffect)(()=>{!Z&&K&&X&&(null==T?void 0:T.id)&&en(K,X,null==T?void 0:T.id)},[K,Z,en,X,R.query,null==T?void 0:T.id]),L)return(0,i.jsx)(components_Loading,{loading:L});let el=(0,i.jsxs)(g.i,{element:{type:"container",background:"default",align:"align_center",children:[],id:"c0312423-8560-40cd-9cf9-e5f95bafb30f",width:500,style:"card",vertical_align:"align_start",customAttributes:{className:P().contentContainer}},className:"slate-container",children:[(null===(n=D.document)||void 0===n?void 0:null===(o=n.product_images)||void 0===o?void 0:o[0])&&(0,i.jsx)(eY,{element:{id:"1bdb49c3-5963-4d17-ae43-9549f0279608",type:"img",children:[{text:"",id:"5dcd2adc-1ff5-4b88-a42a-d58b32a3cfd8"}],url:null===(x=D.document)||void 0===x?void 0:null===(f=x.product_images)||void 0===f?void 0:f[0],width:1200,height:500,aspect_ratio:2.4,border_radius:"10px",objectFit:"cover"},className:"slate-img",optimizable:!!(null===C.q||void 0===C.q?void 0:(0,C.q)(null===(w=D.document)||void 0===w?void 0:null===(y=w.product_images)||void 0===y?void 0:y[0])),optimizedImageComponent:b(),children:null}),(0,i.jsx)(m.Jz,{element:{children:[],id:"bc500431-a0c6-4358-9da9-c9ff9d5dccf7",type:"h3",width:700},className:"slate-h3",children:(0,i.jsx)(v.vc,{leaf:{color:"var(--text)",gradient:!1,id:"c1eab670-836c-4f41-a78c-c51443ae2da6",styled:!0,text:null===(j=D.document)||void 0===j?void 0:j.product_name}})}),(0,i.jsx)(h.b,{element:{type:"p",children:[],id:"4cc147aa-2dd2-462c-9ffd-af051c8e3f36"},className:"slate-p",children:(0,i.jsx)(v.vc,{leaf:{text:"by ".concat(null==T?void 0:T.name),styled:!0,fontStyle:"subtitle3",fontSize:16,color:"gray"}})}),(0,i.jsx)("div",{className:"mt-3",style:{width:"100%"},children:(0,i.jsx)(ProductList,{product:D,spaceID:T.id,accessToken:M})})]}),ed=(0,i.jsxs)(c.c,{element:{type:"column",id:"289e33c1-ce7d-4867-b68c-ef6a800f7567",width:1e3,vertical_align:"align_start",children:[]},className:"slate-column",children:[(0,i.jsxs)(u.H,{element:{type:"column_item",children:[],width:.5,id:"d7a81bd1-6715-4c3a-a932-dd1accf4c9e9"},className:"slate-column_item",children:[el,(0,i.jsx)("div",{className:P().contentBadgeContainer,children:(0,i.jsx)(_(),{href:"https://typedream.com/products?utm_source=product-content-page:".concat(null==T?void 0:T.id),target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)("div",{className:P().contentBadge,children:[(0,i.jsx)(b(),{src:"/logo-gradient.svg",alt:"typedream",width:25,height:18}),(0,i.jsx)("span",{children:"Sell your own product"})]})})})]}),(0,i.jsxs)(u.H,{element:{type:"column_item",children:[],width:.5,id:"f0d3786d-fed8-4a7e-8c4b-6342fc915b6c"},className:"slate-column_item",children:[(0,i.jsx)(m.Jz,{element:{children:[],id:"bc500431-a0c6-4358-9da9-c9ff9d5dccf7",type:"h3",width:700},className:"slate-h3",children:(0,i.jsx)(v.vc,{leaf:{color:"var(--text)",gradient:!1,id:"c1eab670-836c-4f41-a78c-c51443ae2da6",styled:!0,text:null===(N=D.document)||void 0===N?void 0:N.product_name}})}),(0,i.jsx)(h.b,{element:{type:"p",children:[],id:"4cc147aa-2dd2-462c-9ffd-af051c8e3f36"},className:"slate-p",children:(0,i.jsx)(v.vc,{leaf:{text:(null==D?void 0:null===(k=D.document)||void 0===k?void 0:k.product_instructions)||"",styled:!0,fontStyle:"subtitle3",fontSize:16,color:"gray"}})})]})]}),er=(0,i.jsxs)(g.i,{element:{type:"container",background:"default",align:"align_center",children:[],id:"c0312423-8560-40cd-9cf9-e5f95bafb30f",width:360,style:"card",vertical_align:"align_start"},className:"slate-container",children:[(0,i.jsx)(m.Jz,{element:{children:[],id:"bc500431-a0c6-4358-9da9-c9ff9d5dccf7",type:"h3",align:"align_center"},className:"slate-h3",children:(0,i.jsx)(v.vc,{leaf:{color:"var(--text)",gradient:!1,id:"c1eab670-836c-4f41-a78c-c51443ae2da6",styled:!0,text:"Confirm your email to view this product"}})}),(0,i.jsx)(h.b,{element:{type:"p",children:[],align:"align_center",id:"4cc147aa-2dd2-462c-9ffd-af051c8e3f36"},className:"slate-p",children:(0,i.jsx)(v.vc,{leaf:{text:"We'll send a new link to your email to view the content of this product",styled:!0,fontStyle:"subtitle3",fontSize:16,color:"gray"}})}),(0,i.jsx)(E.J,{element:{type:"divider",children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39d"}],id:"73fcba62-695a-496d-9967-f60b2a1d81df"},className:"slate-h3",children:null}),(0,i.jsx)("div",{className:"mt-3",children:(0,i.jsx)(ProductConfirmEmail,{product:D,spaceID:T.id})})]}),es=(null==D?void 0:null===(I=D.document)||void 0===I?void 0:I.product_instructions)?ed:(0,i.jsxs)(i.Fragment,{children:[el,(0,i.jsx)("div",{className:P().contentBadgeContainer,children:(0,i.jsx)(_(),{href:"https://typedream.com/products?utm_source=product-content-page:".concat(null==T?void 0:T.id),target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)("div",{className:P().contentBadge,children:[(0,i.jsx)(b(),{src:"/logo-gradient.svg",alt:"typedream",width:25,height:18}),(0,i.jsx)("span",{children:"Sell your own product"})]})})})]});return(0,i.jsxs)(r.b,{element:{id:"",type:"root",children:[]},className:"typedream content",children:[(0,i.jsx)("div",{className:q()(P(
1).successToast,"tag is-light is-success mt-6 mb-2",{[P().successToastActive]:V}),children:"✓ Your purchase was successful. We've also sent a download link to your email."}),(0,i.jsx)(s.s,{element:{id:"0768edc8-36d8-42f9-acef-bbaef89b23fc",type:"spacer",height:70,children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39c"}]},className:"slate-spacer",children:null}),M?es:er,(0,i.jsx)(s.s,{element:{id:"0768edc8-36d8-42f9-acef-bbaef89b23fc",type:"spacer",height:70,children:[{text:"",id:"55a5faad-d9d5-456e-8054-5e78d237f39c"}]},className:"slate-spacer",children:null})]})}},76550:function(t,o,n){"use strict";var i=n(52322),r=n(97729),s=n.n(r),c=n(5853);o.Z=function(t){var o,n,r,u,m,v,h,g,f,x,y,b,w,_,C,j,P,N,k,I,E,A,T,D,R,L,z,O,F,U,B,M,H,V,G,q,Z,W,Y,J,Q,K,X,$,ee,et,ea,eo,en,ei,el,ed,er,es,ec,eu,ep,em,ev,eh,eg,ef,ex,ey,eb,ew,e_,eC;let{space:ej,page:eP,url:eN}=t,eS=null==eP?void 0:null===(o=eP.customization)||void 0===o?void 0:o.item_page_data,ek=null==eS?void 0:eS.pageSchema,eI=(null==ek?void 0:ek.metadata)&&(null==eS?void 0:null===(n=eS.data)||void 0===n?void 0:n[ek.metadata]),eE=(null==ek?void 0:ek.name)&&(null==eS?void 0:null===(r=eS.data)||void 0===r?void 0:r[ek.name]),eA=(null==ej?void 0:null===(m=ej.metadata)||void 0===m?void 0:null===(u=m.metatags)||void 0===u?void 0:u.title)||(null==ej?void 0:ej.name)||c.i5,eT=(null==ej?void 0:null===(h=ej.metadata)||void 0===h?void 0:null===(v=h.metatags)||void 0===v?void 0:v.description)||c.Yu,eD=null==ej?void 0:ej.icon;(null==ej?void 0:ej.icon)&&(eD="https://image.typedream.com/cdn-cgi/image/width=144,height=144,quality=100,fit=crop/".concat(null==ej?void 0:ej.icon));let eR=eD||c.oQ,eL=(null==eP?void 0:null===(f=eP.metadata)||void 0===f?void 0:null===(g=f.metatags)||void 0===g?void 0:g.title)||(null==eP?void 0:eP.name),ez=null==eP?void 0:null===(y=eP.metadata)||void 0===y?void 0:null===(x=y.metatags)||void 0===x?void 0:x.description,eO=(null==eI?void 0:null===(b=eI.metatags)||void 0===b?void 0:b.title)||eE,eF=null==eI?void 0:null===(w=eI.metatags)||void 0===w?void 0:w.description,eU=(null==ej?void 0:null===(C=ej.metadata)||void 0===C?void 0:null===(_=C.facebook)||void 0===_?void 0:_.title)||(null==ej?void 0:null===(P=ej.metadata)||void 0===P?void 0:null===(j=P.metatags)||void 0===j?void 0:j.title)||(null==ej?void 0:ej.name)||c.i5,eB=(null==ej?void 0:null===(k=ej.metadata)||void 0===k?void 0:null===(N=k.facebook)||void 0===N?void 0:N.description)||(null==ej?void 0:null===(E=ej.metadata)||void 0===E?void 0:null===(I=E.metatags)||void 0===I?void 0:I.description)||c.Yu,eM=null==ej?void 0:null===(T=ej.metadata)||void 0===T?void 0:null===(A=T.facebook)||void 0===A?void 0:A.image,eH=(null==ej?void 0:ej.name)||c.i5,eV=(null==eP?void 0:null===(R=eP.metadata)||void 0===R?void 0:null===(D=R.facebook)||void 0===D?void 0:D.title)||(null==eP?void 0:null===(z=eP.metadata)||void 0===z?void 0:null===(L=z.metatags)||void 0===L?void 0:L.title)||(null==eP?void 0:eP.name),eG=(null==eP?void 0:null===(F=eP.metadata)||void 0===F?void 0:null===(O=F.facebook)||void 0===O?void 0:O.description)||(null==eP?void 0:null===(B=eP.metadata)||void 0===B?void 0:null===(U=B.metatags)||void 0===U?void 0:U.description),eq=null==eP?void 0:null===(H=eP.metadata)||void 0===H?void 0:null===(M=H.facebook)||void 0===M?void 0:M.image,eZ=(null==eI?void 0:null===(V=eI.facebook)||void 0===V?void 0:V.title)||(null==eI?void 0:null===(G=eI.metatags)||void 0===G?void 0:G.title)||eE,eW=(null==eI?void 0:null===(q=eI.facebook)||void 0===q?void 0:q.description)||(null==eI?void 0:null===(Z=eI.metatags)||void 0===Z?void 0:Z.description),eY=null==eI?void 0:null===(W=eI.facebook)||void 0===W?void 0:W.image,eJ=(null==ej?void 0:null===(J=ej.metadata)||void 0===J?void 0:null===(Y=J.twitter)||void 0===Y?void 0:Y.title)||(null==ej?void 0:null===(K=ej.metadata)||void 0===K?void 0:null===(Q=K.metatags)||void 0===Q?void 0:Q.title)||(null==ej?void 0:ej.name)||c.i5,eQ=(null==ej?void 0:null===($=ej.metadata)||void 0===$?void 0:null===(X=$.twitter)||void 0===X?void 0:X.description)||(null==ej?void 0:null===(et=ej.metadata)||void 0===et?void 0:null===(ee=et.metatags)||void 0===ee?void 0:ee.description)||c.Yu,eK=(null==ej?void 0:null===(eo=ej.metadata)||void 0===eo?void 0:null===(ea=eo.twitter)||void 0===ea?void 0:ea.username)||c.gE,eX=null==ej?void 0:null===(ei=ej.metadata)||void 0===ei?void 0:null===(en=ei.twitter)||void 0===en?void 0:en.image,e$=(null==eP?void 0:null===(ed=eP.metadata)||void 0===ed?void 0:null===(el=ed.twitter)||void 0===el?void 0:el.title)||(null==eP?void 0:null===(es=eP.metadata)||void 0===es?void 0:null===(er=es.metatags)||void 0===er?void 0:er.title)||(null==eP?void 0:eP.name),e0=(null==eP?void 0:null===(eu=eP.metadata)||void 0===eu?void 0:null===(ec=eu.twitter)||void 0===ec?void 0:ec.description)||(null==eP?void 0:null===(em=eP.metadata)||void 0===em?void 0:null===(ep=em.metatags)||void 0===ep?void 0:ep.description),e1=null==eP?void 0:null===(eh=eP.metadata)||void 0===eh?void 0:null===(ev=eh.twitter)||void 0===ev?void 0:ev.username,e2=null==eP?void 0:null===(ef=eP.metadata)||void 0===ef?void 0:null===(eg=ef.twitter)||void 0===eg?void 0:eg.image,e3=(null==eI?void 0:null===(ex=eI.twitter)||void 0===ex?void 0:ex.title)||(null==eI?void 0:null===(ey=eI.metatags)||void 0===ey?void 0:ey.title)||eE,e4=(null==eI?void 0:null===(eb=eI.twitter)||void 0===eb?void 0:eb.description)||(null==eI?void 0:null===(ew=eI.metatags)||void 0===ew?void 0:e
1w.description),e5=null==eI?void 0:null===(e_=eI.twitter)||void 0===e_?void 0:e_.username,e7=null==eI?void 0:null===(eC=eI.twitter)||void 0===eC?void 0:eC.image;return(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:eO||eL||eA}),(0,i.jsx)("meta",{name:"description",content:eF||ez||eT}),(0,i.jsx)("link",{rel:"icon",href:eD}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:eR}),(0,i.jsx)("meta",{property:"og:url",content:eN}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:title",content:eZ||eV||eU}),(0,i.jsx)("meta",{property:"og:description",content:eW||eG||eB}),(0,i.jsx)("meta",{property:"og:site_name",content:eH}),(eY||eq||eM)&&(0,i.jsx)("meta",{property:"og:image",content:eY||eq||eM}),(0,i.jsx)("meta",{name:"twitter:card",content:e7||e2||eX?"summary_large_image":"summary"}),(0,i.jsx)("meta",{name:"twitter:site",content:e5||e1||eK}),(0,i.jsx)("meta",{name:"twitter:title",content:e3||e$||eJ}),(0,i.jsx)("meta",{name:"twitter:description",content:e4||e0||eQ}),(e7||e2||eX)&&(0,i.jsx)("meta",{name:"twitter:image",content:e7||e2||eX})]})}},96308:function(t){t.exports={buttonAccent:"Button_buttonAccent__7j8Si"}},14760:function(t){t.exports={loaderWrapper:"Loading_loaderWrapper__q1XUT",loaderBox:"Loading_loaderBox___S0BQ","loader-box-big":"Loading_loader-box-big__d8n0A",loader:"Loading_loader___rUK_",isLoading:"Loading_isLoading__qQH75",isActive:"Loading_isActive__jwrTo",spin:"Loading_spin__n95MB","is-loading":"Loading_is-loading__uwXfp"}},24762:function(t){t.exports={discountDetailRow:"CouponField_discountDetailRow__GmlnW",discountCodeContainer:"CouponField_discountCodeContainer__rSUu0",discountCodeLabel:"CouponField_discountCodeLabel__Rqnl1",discountCodeInput:"CouponField_discountCodeInput__w_O3j",discountCodeApplyButtonContainer:"CouponField_discountCodeApplyButtonContainer__rMdmR",discountCodeApplyButton:"CouponField_discountCodeApplyButton__o9RGN",discountCodeError:"CouponField_discountCodeError__F23_y",discountDetailContainer:"CouponField_discountDetailContainer__9IHKG",discountDetailLabel:"CouponField_discountDetailLabel__ziH1i",discountDetailTotalLabel:"CouponField_discountDetailTotalLabel__M0L1x",discountCodeRemoveContainer:"CouponField_discountCodeRemoveContainer__zdGEq",discountCodeRemoveLabel:"CouponField_discountCodeRemoveLabel__MouQF",discountCodeDeleteButton:"CouponField_discountCodeDeleteButton__JxvNA"}},19272:function(t){t.exports={productIconBackground:"Product_productIconBackground__V_r_O",productIconBackgroundImage:"Product_productIconBackgroundImage___4xWG",productContainer:"Product_productC
1ontainer__pU1cT",textContainer:"Product_textContainer__4i_Qa",ellipsis:"Product_ellipsis__TAmyL",title:"Product_title__SOFEh",subtitle:"Product_subtitle__TPUnO",downArrow:"Product_downArrow__9xZX6",form:"Product_form__xpPN_",container:"Product_container__v5tQc",emailInput:"Product_emailInput__Silw9",paymentElement:"Product_paymentElement__IkMTq",successContainer:"Product_successContainer__4r6s0",inputMedium:"Product_inputMedium__xGHlA",inputError:"Product_inputError__HVH_S",successToast:"Product_successToast__qhA4Y",successToastActive:"Product_successToastActive__MD8Dk",columnItemAlignStart:"Product_columnItemAlignStart__cSBni",badge:"Product_badge__AUaK3",contentContainer:"Product_contentContainer__COtlc",contentBadgeContainer:"Product_contentBadgeContainer__vzT__",contentBadge:"Product_contentBadge__pJsrA",info:"Product_info__z2sMT",infoTitle:"Product_infoTitle__dVIjw",infoDescription:"Product_infoDescription__zsJoN",spacer:"Product_spacer__O1k6G"}}}]);

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.