Subscribe to WrapPro

Essential Insights & Expert Analysis for Industry Professionals.

* Valid email addresses that are supported: *

    *
  • [email protected] *
  • [email protected] *
  • [email protected] *
  • [email protected] *
  • [email protected] *
  • "much.more unusual"@example.com *
  • "[email protected]"@example.com *
  • #!$%&\'*+-/=?^_\`{}|[email protected] *
  • " "@example.org *
  • üñîçøðé@üñîçøðé.com *
  • admin@mailserver1 *
  • user@tt *
  • "hi"@example.com *
  • jsmith@[192.168.2.1] *
  • jsmith@[IPv6:2001:db8::1] *
  • [email protected] *
  • "()<>[]:,;@\\\"!#$%&\'*+-/=?^_\`{}| ~.a"@example.org *
  • abc."defghi"[email protected] *
  • [email protected] *
  • very.unusual."@"[email protected] *
  • john.smith(comment)@example.com *
  • (comment)[email protected] *
  • "()<>[]:,;@\\\"!#$%&\'*+-/=?^_\`{}| ~.a"(comment)@example.org * * * Valid (but rare) email addresses that are not supported: *
      *
    • "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com *
    • "()<>[]:,;@\"!#$%&\'*+-/=?^_\`{}| ~.a"@example.org *
    • abc."d\"efghi"[email protected] *
    • much."more\ unusual"@example.com * * */ var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"isValidAddress",value:function(e){return this._whitelist(e)&&!this._blacklist(e)&&!this._tooLong(e)}},{key:"getParts",value:function(e){var t=e.match(/[^@]*$/);return{local:e.substr(0,t.index-1)||"",domain:t[0]||""}}},{key:"_whitelist",value:function(e){return/^(?=\s)|^(?:(?!.+\.{2,})(?!\.)(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+[^\."]@|^"(?:[\w.!#$%&'*+\-\/=?\^`{|} ~(),:;<>@\[\]]|[^\x00-\x7F])+"@|(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+\."(?:[\w.!#$%&'*+\-\/=?\^`{|} ~"(),:;<>\\@\[\]]|[^\x00-\x7F])+"\.(?:[\w.!#$%&'*+\-\/=?\^`{|} ~]|[^\x00-\x7F])+@)(?!-)(?!.*-\.)(?:[a-zA-Z0-9-.]|[^\x00-\x7F])+$|^".+"@.+|.+@\[(?:\w+\.|\w+:){3}.+\]|^\(.+\)|\(.+\)@/.test(e)}},{key:"_blacklist",value:function(e){return/^@|^\s|@\[?(?=\d).*\d{4,}|"(?!.+\\").+".+"|.\(.+\)@(?=.+@)/.test(e)}},{key:"_tooLong",value:function(e){var t=this.getParts(e);return t.domain.length>=253||t.local.length>=64||e.length>=254}}]),e}();"object"===t(e)&&e.exports&&(e.exports=n)}(kr);const Dr=new(zr(kr.exports)),Ur=e=>!!e&&Dr.isValidAddress(e);function Br(e){let t,r,n,a,o;return t=new Jt({props:{forInput:e[9],label:e[2],isPaymentForm:e[6]}}),a=new Kt({props:{id:e[9],autocomplete:"email",type:"email",name:"email",disabled:e[1],value:e[0],placeholder:e[3],errorMessage:e[5],innerTextOnClick:e[7],innerText:e[7]&&(e[4]||"Edit"),isPaymentForm:e[6]}}),a.$on("change",e[11]),{c(){ie(t.$$.fragment),r=C(),n=A("div"),ie(a.$$.fragment),O(n,"class","zephr-form-relative-container"),L(n,"zephr-payment-form-relative-container",e[6])},m(e,i){se(t,e,i),g(e,r,i),g(e,n,i),se(a,n,null),o=!0},p(e,[r]){const i={};4&r&&(i.label=e[2]),64&r&&(i.isPaymentForm=e[6]),t.$set(i);const s={};2&r&&(s.disabled=e[1]),1&r&&(s.value=e[0]),8&r&&(s.placeholder=e[3]),32&r&&(s.errorMessage=e[5]),128&r&&(s.innerTextOnClick=e[7]),144&r&&(s.innerText=e[7]&&(e[4]||"Edit")),64&r&&(s.isPaymentForm=e[6]),a.$set(s),(!o||64&r)&&L(n,"zephr-payment-form-relative-container",e[6])},i(e){o||(te(t.$$.fragment,e),te(a.$$.fragment,e),o=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),o=!1},d(e){e&&(h(r),h(n)),ce(t,e),ce(a)}}}function Vr(e,t,r){let{formKey:n}=t,{emailAddress:a}=t,{disabled:o}=t,{label:i}=t,{placeholder:s}=t,{editText:c}=t,{error:l=null}=t,{isPaymentForm:u=!1}=t,{onEdit:d}=t,{onChange:p}=t;const m=`zephr-form-identifier-${n}`;return e.$$set=e=>{"formKey"in e&&r(10,n=e.formKey),"emailAddress"in e&&r(0,a=e.emailAddress),"disabled"in e&&r(1,o=e.disabled),"label"in e&&r(2,i=e.label),"placeholder"in e&&r(3,s=e.placeholder),"editText"in e&&r(4,c=e.editText),"error"in e&&r(5,l=e.error),"isPaymentForm"in e&&r(6,u=e.isPaymentForm),"onEdit"in e&&r(7,d=e.onEdit),"onChange"in e&&r(8,p=e.onChange)},[a,o,i,s,c,l,u,d,p,m,n,({detail:e})=>p(e)]}class Gr extends de{constructor(e){super(),ue(this,e,Vr,Br,i,{formKey:10,emailAddress:0,disabled:1,label:2,placeholder:3,editText:4,error:5,isPaymentForm:6,onEdit:7,onChange:8})}}const jr={matches:e=>e.type===ve,create:(e,t,r,n)=>{const a=n.disabled||t.isBusy;return{component:Gr,props:{formKey:e.uniqueKey,disabled:a,emailAddress:t.emailAddress,label:n.label,placeholder:n.placeholder,editText:n.editText,onChange:e=>!a&&r.updateFormState({userExists:void 0,emailIsContact:void 0,emailAddress:e,verificationCode:"",verificationCodeValid:void 0,serverErrors:[]}),onEdit:n.disabled&&(()=>{r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)}),isPaymentForm:e.formType===Et.PAYMENT},isValid:Ur(t.emailAddress)}}};function qr(t){let r,n,a,o,i,s,l,u,d,p,m,f;return{c(){r=A("script"),r.innerHTML="",a=A("script"),a.innerHTML="",i=A("script"),i.innerHTML="",l=A("script"),l.innerHTML="",d=C(),p=A("div"),m=C(),f=A("div"),f.innerHTML="",c(r.src,n="https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js")||O(r,"src","https://js.braintreegateway.com/web/3.85.3/js/google-payment.min.js"),c(a.src,o="https://pay.google.com/gp/p/js/pay.js")||O(a,"src","https://pay.google.com/gp/p/js/pay.js"),O(a,"onload","window.googlePayLoadBraintreeCallback()"),c(i.src,s="https://js.braintreegateway.com/web/3.85.3/js/client.min.js")||O(i,"src","https://js.braintreegateway.com/web/3.85.3/js/client.min.js"),O(i,"onload","window.braintreeLoadCallback()"),c(l.src,u="https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js")||O(l,"src","https://js.braintreegateway.com/web/3.85.3/js/apple-pay.min.js"),O(l,"onload","window.applePayLoadBraintreeCallback()"),O(p,"id","google-pay-button"),O(p,"class","svelte-1acsmhs"),L(p,"zephr-form-disabled-div",t[0]),L(p,"zephr-payment-form-disabled-div",t[0]),O(f,"id","apple_pay_button")},m(e,t){y(document.head,r),y(document.head,a),y(document.head,i),y(document.head,l),g(e,d,t),g(e,p,t),g(e,m,t),g(e,f,t)},p(e,[t]){1&t&&L(p,"zephr-form-disabled-div",e[0]),1&t&&L(p,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(h(d),h(p),h(m),h(f)),h(r),h(a),h(i),h(l)}}}function Hr(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{disableCoreDependencyHeader:o}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(1,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"disableCoreDependencyHeader"in e&&r(2,o=e.disableCoreDependencyHeader)},[a,n,o]}function Kr(e){let t,r,n,a,o,i,s;return i=new Vt({props:{error:e[0]?.message??e[2]??"",isPaymentForm:!0}}),{c(){t=A("script"),t.innerHTML="",n=C(),a=A("div"),o=C(),ie(i.$$.fragment),c(t.src,r="https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js")||O(t,"src","https://js.braintreegateway.com/web/dropin/1.33.2/js/dropin.min.js"),O(t,"onload","window.braintreeLoadCallback()"),O(a,"id","braintree-dropin-container"),O(a,"class","svelte-z7jd27"),L(a,"zephr-form-disabled-div",e[1]),L(a,"zephr-payment-form-disabled-div",e[1])},m(e,r){y(document.head,t),g(e,n,r),g(e,a,r),g(e,o,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&L(a,"zephr-form-disabled-div",e[1]),(!s||2&t)&&L(a,"zephr-payment-form-disabled-div",e[1]);const r={};5&t&&(r.error=e[0]?.message??e[2]??""),i.$set(r)},i(e){s||(te(i.$$.fragment,e),s=!0)},o(e){re(i.$$.fragment,e),s=!1},d(e){e&&(h(n),h(a),h(o)),h(t),ce(i,e)}}}function Yr(e,t,r){let{onMountCallback:n}=t,{providerError:a}=t,{isDisabled:o}=t,{isLoaded:i}=t,{error:s=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(3,n=e.onMountCallback),"providerError"in e&&r(0,a=e.providerError),"isDisabled"in e&&r(1,o=e.isDisabled),"isLoaded"in e&&r(4,i=e.isLoaded),"error"in e&&r(2,s=e.error)},[a,o,s,n,i]}function Wr(e){let t,r,n,a,o,i,s;return i=new Vt({props:{error:e[0]?.message??(e[2]?e[3]:"")??"",isPaymentForm:!0}}),{c(){t=A("script"),t.innerHTML="",n=C(),a=A("div"),o=C(),ie(i.$$.fragment),c(t.src,r="https://js.stripe.com/v3/")||O(t,"src","https://js.stripe.com/v3/"),O(t,"onload","window.stripeLoadCallback()"),O(a,"id","stripe-element"),O(a,"class","svelte-1lhuc6b"),L(a,"zephr-form-disabled-div",e[1]),L(a,"zephr-payment-form-disabled-div",e[1])},m(e,r){y(document.head,t),g(e,n,r),g(e,a,r),g(e,o,r),se(i,e,r),s=!0},p(e,[t]){(!s||2&t)&&L(a,"zephr-form-disabled-div",e[1]),(!s||2&t)&&L(a,"zephr-payment-form-disabled-div",e[1]);const r={};13&t&&(r.error=e[0]?.message??(e[2]?e[3]:"")??""),i.$set(r)},i(e){s||(te(i.$$.fragment,e),s=!0)},o(e){re(i.$$.fragment,e),s=!1},d(e){e&&(h(n),h(a),h(o)),h(t),ce(i,e)}}}function Qr(e,t,r){let{onMountCallback:n}=t,{providerError:a}=t,{isDisabled:o}=t,{isComplete:i}=t,{isLoaded:s}=t,{error:c=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(4,n=e.onMountCallback),"providerError"in e&&r(0,a=e.providerError),"isDisabled"in e&&r(1,o=e.isDisabled),"isComplete"in e&&r(2,i=e.isComplete),"isLoaded"in e&&r(5,s=e.isLoaded),"error"in e&&r(3,c=e.error)},[a,o,i,c,n,s]}function Jr(e){let t,r;return{c(){t=A("script"),t.innerHTML="",c(t.src,r="https://js.stripe.com/v3/")||O(t,"src","https://js.stripe.com/v3/"),O(t,"onload","window.stripeLoadCallback()")},m(e,r){g(e,t,r)},d(e){e&&h(t)}}}function Zr(t){let r,n,a,o,i,s=!t[1]&&Jr();return{c(){r=A("script"),r.innerHTML="",s&&s.c(),a=S(),o=C(),i=A("div"),c(r.src,n="https://pay.google.com/gp/p/js/pay.js")||O(r,"src","https://pay.google.com/gp/p/js/pay.js"),O(r,"onload","window.googlePayLoadStripeCallback()"),O(i,"id","stripe-mobile-pay-button"),O(i,"class","svelte-1t95nqv"),L(i,"zephr-form-disabled-div",t[0]),L(i,"zephr-payment-form-disabled-div",t[0])},m(e,t){y(document.head,r),s&&s.m(document.head,null),y(document.head,a),g(e,o,t),g(e,i,t)},p(e,[t]){e[1]?s&&(s.d(1),s=null):s||(s=Jr(),s.c(),s.m(a.parentNode,a)),1&t&&L(i,"zephr-form-disabled-div",e[0]),1&t&&L(i,"zephr-payment-form-disabled-div",e[0])},i:e,o:e,d(e){e&&(h(o),h(i)),h(r),s&&s.d(e),h(a)}}}function Xr(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{disableCoreDependencyHeader:o}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(2,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"disableCoreDependencyHeader"in e&&r(1,o=e.disableCoreDependencyHeader)},[a,o,n]}function en(t){let r,n,a;return n=new ir({props:{size:"2x",icon:cr,spin:!0}}),{c(){r=A("div"),ie(n.$$.fragment),O(r,"class","spinner-container svelte-1isq5k3")},m(e,t){g(e,r,t),se(n,r,null),a=!0},p:e,i(e){a||(te(n.$$.fragment,e),a=!0)},o(e){re(n.$$.fragment,e),a=!1},d(e){e&&h(r),ce(n)}}}class tn extends de{constructor(e){super(),ue(this,e,null,en,i,{})}}function rn(e){let t,r;return t=new tn({}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function nn(e){let t,r,n,a,o,i,s,c,l=!e[2]&&rn();return s=new Vt({props:{error:e[1]?.message??e[3]??"",isPaymentForm:!0}}),{c(){l&&l.c(),t=C(),r=A("div"),a=C(),o=A("div"),i=C(),ie(s.$$.fragment),O(r,"id","zuora_payment"),O(r,"class",n=f(e[0]?"zuora-disabled-iframe-container":"")+" svelte-cf8b5h"),O(o,"id","core-style")},m(e,n){l&&l.m(e,n),g(e,t,n),g(e,r,n),g(e,a,n),g(e,o,n),g(e,i,n),se(s,e,n),c=!0},p(e,[a]){e[2]?l&&(X(),re(l,1,1,(()=>{l=null})),ee()):l?4&a&&te(l,1):(l=rn(),l.c(),te(l,1),l.m(t.parentNode,t)),(!c||1&a&&n!==(n=f(e[0]?"zuora-disabled-iframe-container":"")+" svelte-cf8b5h"))&&O(r,"class",n);const o={};10&a&&(o.error=e[1]?.message??e[3]??""),s.$set(o)},i(e){c||(te(l),te(s.$$.fragment,e),c=!0)},o(e){re(l),re(s.$$.fragment,e),c=!1},d(e){e&&(h(t),h(r),h(a),h(o),h(i)),l&&l.d(e),ce(s,e)}}}function an(e,t,r){let{onMountCallback:n}=t,{isDisabled:a}=t,{providerError:o}=t,{isLoaded:i}=t,{error:s=null}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(4,n=e.onMountCallback),"isDisabled"in e&&r(0,a=e.isDisabled),"providerError"in e&&r(1,o=e.providerError),"isLoaded"in e&&r(2,i=e.isLoaded),"error"in e&&r(3,s=e.error)},[a,o,i,s,n]}function on(t){let r,n;return{c(){r=A("script"),r.innerHTML="",O(r,"type","text/javascript"),c(r.src,n="https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js")||O(r,"src","https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js"),O(r,"onload","window.zuoraLoadCallback()")},m(e,t){y(document.head,r)},p:e,i:e,o:e,d(e){h(r)}}}function sn(e,t,r){let{onMountCallback:n}=t;return k(n),e.$$set=e=>{"onMountCallback"in e&&r(0,n=e.onMountCallback)},[n]}const cn="braintree",ln="stripe",un="zuora-billing",dn=new Headers;dn.append("Content-Type","application/json"),dn.append("Accept","application/json");const pn=async(e,t,r,n=null,a=!1)=>{a||r.updateFormState({serverErrors:[]}),r.incrementRequestCount(n);try{return await fetch(`${r.apiUrlBase}/${e}`,{method:t.method,body:null==t.bodyObject?void 0:JSON.stringify(t.bodyObject),headers:dn,credentials:"include"})}finally{r.decrementRequestCount(n)}},mn=e=>"ONE_OFF"===e.type,fn=(e,t,r,n)=>{if(t.paymentOption.pricePointId)return{url:`blaize/payment/${r}/buy`,body:{product_id:t.paymentOption.productId,price_point_id:t.paymentOption.slug,discount_code:t.promoCodeValid?t.promoCode:void 0,...n}};let a,o,i={};if(vt(e).changeSubscriptionMode){a=`subscriptions/${t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId)).changesFromSubscription.externalId}`,o="PATCH",i={navigated_from:`ChangeForm ${window.location.href}`}}else mn(t.paymentOption)?(a="payment/buy",o="POST"):(a="subscribe",o="POST");return{url:`zephr/${a}`,method:o,body:{product_id:t.paymentOption.productId,plan_id:t.paymentOption.slug,discount_code:t.promoCodeValid?t.promoCode:void 0,...i,vendor_fields:n??{}}}};let yn;const gn=new Promise((function(e){window.braintreeLoadCallback=e})),hn=e=>({flow:"ONE_OFF"===e.paymentOption.type?"checkout":"vault",singleUse:!0,buttonStyle:{shape:"rect",size:"medium"},commit:!1,currency:e.paymentOption.currencyCode.toLowerCase(),amount:e.paymentOptionPrices.totalPrice}),bn=(e,t)=>pn("blaize/payment/braintree/token",{method:"GET"},t,null,!0).then((e=>e.json())).then((e=>e.token));var An;!function(e){e.GOOGLE_PAY="GOOGLE_PAY",e.APPLE_PAY="APPLE_PAY"}(An||(An={}));const Pn=new Promise((function(e){window.googlePayLoadBraintreeCallback=e})),En=new Promise((function(e){window.applePayLoadBraintreeCallback=e})),Cn=(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.braintreeMobilePaymentConfig??"{}");let a;return Pn.then((()=>{const o=document.getElementById("google-pay-button");for(;o.firstChild;)o.removeChild(o.lastChild);if(!n?.google)return o.style.display="none",void console.error("Braintree Mobile payments are not configured in the console");t=r.getFormState(),a=new window.google.payments.api.PaymentsClient({environment:e.organisationConfiguration.braintreeSandboxEnv?"TEST":"PRODUCTION"}),gn.then((()=>bn(0,r))).then((e=>{window.braintree.client.create({authorization:e},((e,i)=>{for(;o.firstChild;)o.removeChild(o.lastChild);if(e)return console.error("Error creating braintree client",e),void(o.style.display="none");window.braintree.googlePayment.create({client:i,googlePayVersion:2,googleMerchantId:n.google.googleMerchantId},((e,n)=>{if(e)return console.error("Error creating braintree client",e),void(o.style.display="none");a.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:n.createPaymentDataRequest().allowedPaymentMethods,existingPaymentMethodRequired:!0}).then((e=>{e.result&&e.paymentMethodPresent||(o.style.display="none",console.error(e.paymentMethodPresent?"Google Pay support not found":"No payment method"),r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})),o.appendChild(a.createButton({buttonColor:"default",buttonType:"plain",buttonSizeMode:"fill",onClick:()=>{Sn(t,r,n,a)}}))}))}))}))}))}))},Sn=(e,t,r,n)=>{t.updateFormState({mobilePaymentService:An.GOOGLE_PAY,serverErrors:[]});const a=r.createPaymentDataRequest({transactionInfo:{currencyCode:e.paymentOption.currencyCode,totalPriceStatus:"FINAL",totalPrice:e.paymentOptionPrices.totalPrice.toFixed(2)},emailRequired:!1,shippingAddressRequired:!1});n.loadPaymentData(a).then((function(e){r.parseResponse(e,((e,r)=>{if(e||!r.nonce)return t.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),void console.error("Error requesting payment data",e,r);t.updateFormState({mobilePaymentMethodId:r.nonce}),t.completeSection()}))})).catch((function(e){console.warn("Error requesting payment data",e),t.updateFormState({mobilePaymentService:null,serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]})}))},vn=(e,t,r)=>{const n=document.getElementById("apple_pay_button");for(;n.firstChild;)n.removeChild(n.lastChild);return En.then((()=>window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments()?gn.then((()=>bn(0,r))).then((a=>{window.braintree.client.create({authorization:a},((a,o)=>{if(a)return n.style.display="none",void console.error("Error creating braintree client:",a);window.braintree.applePay.create({client:o},(function(a,o){for(;n.firstChild;)n.removeChild(n.lastChild);if(a)return n.style.display="none",void console.error("Error creating applePayInstance:",a);const i=o.createPaymentRequest({total:{label:t.paymentOption.label,amount:t.paymentOptionPrices.totalPrice.toFixed(2)}}),s=document.createElement("div");s.classList.add("apple-pay-button"),s.classList.add("apple-pay-button-black"),n.appendChild(s),s.addEventListener("click",(function(){Tn(e,t,r,i,o)}))}))}))})):(n.style.display="none",void console.log("Cannot make payments with Apple Pay"))))},Tn=(e,t,r,n,a)=>{r.updateFormState({mobilePaymentService:An.APPLE_PAY,serverErrors:[]});const o=new ApplePaySession(3,n);o.onvalidatemerchant=function(e){a.performValidation({validationURL:e.validationURL,displayName:t.paymentOption.label},(function(e,t){if(e)return r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),void console.log("err in onvalidatemerchant in apple pay configuration: ",e);o.completeMerchantValidation(t)}))},o.onpaymentauthorized=function(e){a.tokenize({token:e.payment.token},(function(e,t){if(e)return r.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR],mobilePaymentService:null}),console.error("Error tokenizing Apple Pay:",e),void o.completePayment(ApplePaySession.STATUS_FAILURE);r.updateFormState({mobilePaymentMethodId:t.nonce}),r.completeSection(),o.completePayment(ApplePaySession.STATUS_SUCCESS)}))},o.begin()},On=1e-5,wn=(e,t)=>{try{if(3===t?.length){const r=((e,t)=>new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:Math.abs(e)%11===t?.length?`${t}${e}`:`${e} ${t}`.trim())(e,t)},In=async(e,t,r,n=!1)=>{const a=wa(e.organisationConfiguration.paymentProvider);return a.hasProductAddons&&(t.loginRegistrationComplete||t.userSession)?pn(a.productAddonPath,{method:"POST",bodyObject:{promoCode:t.promoCodeValid?t.promoCode:null,paymentOptions:vt(e).paymentOptions}},r,null,!0).then((async e=>{if(!e.ok)return console.log("error loading product addons",e),r.updateFormState({addons:[],serverErrors:[Ze.UNKNOWN]});const n=await e.json();try{const e=n.map((e=>({id:e.id,label:e.label,planPrices:e.paymentOptions.map((e=>({planSlug:e.slug,productId:e.productId,addonPrice:e.addonPrice})))})));return r.updateFormState({addons:e})}catch(e){return console.error("Error parsing product addons response",e,n),t}})).then((async t=>(n||await _n(e,t,r),t))):Promise.resolve(t)},_n=async(e,t,r)=>{if(t.currentSection.elements.some((e=>e.type===xe&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await Ia(e.organisationConfiguration.paymentProvider).loader(e,t,r)}finally{r.decrementRequestCount()}}},Rn=e=>e.addons.map((t=>{const r=t.planPrices.find((t=>t.planSlug===e.paymentOption.slug&&t.productId===e.paymentOption.productId));return r&&{label:t.label,addonPrice:r.addonPrice,addonPriceFormattedString:wn(r.addonPrice,e.paymentOption.currencyCode)}})).filter((e=>e)),Mn=async(e,t,r)=>{if(null!=t.paymentOptionPrices&&t.paymentOptionPrices.productId===t.paymentOption.productId&&t.paymentOptionPrices.slug===t.paymentOption.slug&&t.paymentOptionPrices.promoCode===t.promoCode&&t.paymentOptionPrices.addonPrices==Rn(t)&&t.paymentOptionPrices.billingAddress.country===t.billingAddress.country&&t.paymentOptionPrices.billingAddress.postalCode===t.billingAddress.postalCode&&0==t.paymentOptionPrices.addonPrices.length&&0==Rn(t).length)return t;r.updateFormState({paymentOptionPrices:null});const n=await wa(e.organisationConfiguration.paymentProvider).priceCalculator(e,t,r);return r.updateFormState({paymentOptionPrices:n})},$n=["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"],Ln=e=>$n.includes(e),Nn=e=>{const t=JSON.parse(e??"{}");return{variables:{color:t?.color?.text?.main??"#32325d",fontFamily:`${t?.typography?.body?.font}, ${t?.typography?.body?.fallbackFont}, "Helvetica Neue", Helvetica, sans-serif`,fontSmooth:"always",fontSizeBase:"16px",colorWarningText:t?.color?.warning?.main??"#fa755a",colorIconCardError:t?.color?.warning?.main??"#fa755a",borderRadius:`${t?.input?.borderRadius??"4"}px`},rules:{".Input::placeholder":{color:"#aab7c4"}}}},xn={base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},Fn=(e,t,r)=>t.organisationConfiguration.stripeAutomaticTaxEnabled&&t.formType!==Et.LIST_SUBSCRIPTIONS||vt(t).paymentProviderFormConfig?.usePaymentElement?((e,t,r)=>{const n=r.getFormState(),a=Ln(n.paymentOption.currencyCode.toUpperCase())?1:100;return e.elements({mode:"payment",currency:n.paymentOption.currencyCode.toLowerCase(),amount:parseFloat((n.paymentOptionPrices.totalPrice*a).toFixed(2)),setup_future_usage:"off_session",appearance:Nn(t.organisationConfiguration.siteStyles),paymentMethodTypes:["card"]}).create("payment",{terms:{card:"never"},wallets:{applePay:"never",googlePay:"never"}})})(e,t,r):(e=>e.elements().create("card",{style:xn}))(e);let zn,kn,Dn;const Un=e=>zn||(zn=new Promise((function(e){window.stripeLoadCallback=e})).then((()=>(e=>pn("blaize/payment/stripe/publicKey",{method:"GET"},e,null,!0).then((e=>e.text())))(e))).then((e=>(kn=window.Stripe(e),kn)))),Bn=(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?Gn(e,t,r,n):kn.createPaymentMethod("card",Dn,{}).then((async({error:n,paymentMethod:a})=>{if(n||!a)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await Gn(e,t,r,a.id)}))},Vn=(e,t,r,n)=>pn("zephr/payment/stripe/updateSubscription",{method:"POST",bodyObject:{payment_method_id:n,subscription_id:t.selectedSubscription.externalId}},r),Gn=(e,t,r,n)=>{const{url:a,body:o,method:i}=fn(e,t,ln,{payment_method:n,billing_address_provided:!!t.billingAddress.country});return pn(a,{method:i,bodyObject:o},r).then((async e=>{if(!e?.ok)throw e;return e.json()})).then((a=>{if(!a.grant_id){if("requires_action"===a.paymentIntentStatus)return kn.confirmCardPayment(a.clientSecret??a.client_secret).then((o=>{if(o.error||!o.paymentIntent)throw`Error requesting payment method ${JSON.stringify(o)}`;if(mn(t.paymentOption)&&a.payment_intent_id){const{url:o,body:i,method:s}=fn(e,t,ln,{payment_method:n,billing_address_provided:!!t.billingAddress.country,payment_intent_id:a.payment_intent_id});return pn(o,{method:s,bodyObject:i},r).then((e=>{if(!e?.ok)throw e}))}return pn("blaize/payment/stripe/subscription/confirmation",{method:"POST",bodyObject:{subscriptionId:a.subscriptionId}},r).then((e=>{if(!e?.ok)throw e}))}));throw a}})).catch((e=>{throw console.error(e),e})).finally((()=>{r.decrementRequestCount()}))},jn=new Promise((function(e){window.googlePayLoadStripeCallback=e})),qn=async(e,t,r,n,a,o)=>{if(a.googlePay?t.updateFormState({mobilePaymentService:An.GOOGLE_PAY,serverErrors:[]}):a.applePay&&t.updateFormState({mobilePaymentService:An.APPLE_PAY,serverErrors:[]}),!n)return n.complete("fail"),void t.updateFormState({serverErrors:[Ze.MOBILE_PAYMENT_PROCESSING_ERROR]});const i=n.paymentMethod.billing_details.address;if(o.organisationConfiguration.stripeAutomaticTaxEnabled&&(e=await Mn(o,t.updateFormState({billingAddress:{country:i.country,postalCode:i.postal_code}}),t)),e=t.updateFormState({paymentMethodId:n.paymentMethod.id}),n.complete("success"),e.paymentOptionPrices.taxPrice||!e.canAttemptSectionCompletion){const t=e.elementValidity.find((e=>!e.isValid&&"payment"!=e.elementType))?.elementId,r=t?document.getElementById(`zephr-form-${t}`):document.getElementsByClassName("zephr-form-button")[0];r?.scrollIntoView({block:"center"})}else t.completeSection()},Hn=(e,t,r)=>{const n=Rn(t),a=vt(e).paymentOptions.find((e=>e.productId==t.paymentOption.productId&&e.slug==t.paymentOption.slug)).price,o=t.discountedPlanPrices.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?.discountPrice??a,i=a-o,s=n.reduce(((e,t)=>e+t.addonPrice),o);return Promise.resolve({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:n,billingAddress:t.billingAddress,totalPrice:s,totalPriceFormattedString:wn(s,t.paymentOption.currencyCode),netPrice:a,netPriceFormattedString:wn(a,t.paymentOption.currencyCode),discountPrice:i,discountPriceFormattedPrice:wn(i,t.paymentOption.currencyCode),chargeItems:[]})},Kn=(e,t)=>vt(e).formCurrency??t.paymentOption?.currencyCode;let Yn;const Wn=()=>null!=Yn?Yn:Yn=new Promise((function(e){window.zuoraLoadCallback=e})),Qn=(e,t,r)=>!vt(t).changeSubscriptionMode||t.environment.previewMode?e:{...e,products:e.products.map((e=>({...e,paymentPlans:e.paymentPlans.filter((t=>r.validChangeFromPlans.some((r=>r.planSlug===t.planId&&r.productId===e.id))))})))};function Jn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var ta,ra={countries:{AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States of America",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands (UK)",VI:"Virgin Islands (US)",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},timezones:{"Africa/Abidjan":{u:0,c:["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{a:"Africa/Abidjan",c:["GH"],r:1},"Africa/Addis_Ababa":{a:"Africa/Nairobi",c:["ET"],r:1},"Africa/Algiers":{u:60,c:["DZ"]},"Africa/Asmara":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Asmera":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Bamako":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Bangui":{a:"Africa/Lagos",c:["CF"],r:1},"Africa/Banjul":{a:"Africa/Abidjan",c:["GM"],r:1},"Africa/Bissau":{u:0,c:["GW"]},"Africa/Blantyre":{a:"Africa/Maputo",c:["MW"],r:1},"Africa/Brazzaville":{a:"Africa/Lagos",c:["CG"],r:1},"Africa/Bujumbura":{a:"Africa/Maputo",c:["BI"],r:1},"Africa/Cairo":{u:120,d:180,c:["EG"]},"Africa/Casablanca":{u:60,d:0,c:["MA"]},"Africa/Ceuta":{u:60,d:120,c:["ES"]},"Africa/Conakry":{a:"Africa/Abidjan",c:["GN"],r:1},"Africa/Dakar":{a:"Africa/Abidjan",c:["SN"],r:1},"Africa/Dar_es_Salaam":{a:"Africa/Nairobi",c:["TZ"],r:1},"Africa/Djibouti":{a:"Africa/Nairobi",c:["DJ"],r:1},"Africa/Douala":{a:"Africa/Lagos",c:["CM"],r:1},"Africa/El_Aaiun":{u:60,d:0,c:["EH"]},"Africa/Freetown":{a:"Africa/Abidjan",c:["SL"],r:1},"Africa/Gaborone":{a:"Africa/Maputo",c:["BW"],r:1},"Africa/Harare":{a:"Africa/Maputo",c:["ZW"],r:1},"Africa/Johannesburg":{u:120,c:["ZA","LS","SZ"]},"Africa/Juba":{u:120,c:["SS"]},"Africa/Kampala":{a:"Africa/Nairobi",c:["UG"],r:1},"Africa/Khartoum":{u:120,c:["SD"]},"Africa/Kigali":{a:"Africa/Maputo",c:["RW"],r:1},"Africa/Kinshasa":{a:"Africa/Lagos",c:["CD"],r:1},"Africa/Lagos":{u:60,c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{a:"Africa/Lagos",c:["GA"],r:1},"Africa/Lome":{a:"Africa/Abidjan",c:["TG"],r:1},"Africa/Luanda":{a:"Africa/Lagos",c:["AO"],r:1},"Africa/Lubumbashi":{a:"Africa/Maputo",c:["CD"],r:1},"Africa/Lusaka":{a:"Africa/Maputo",c:["ZM"],r:1},"Africa/Malabo":{a:"Africa/Lagos",c:["GQ"],r:1},"Africa/Maputo":{u:120,c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{a:"Africa/Johannesburg",c:["LS"],r:1},"Africa/Mbabane":{a:"Africa/Johannesburg",c:["SZ"],r:1},"Africa/Mogadishu":{a:"Africa/Nairobi",c:["SO"],r:1},"Africa/Monrovia":{u:0,c:["LR"]},"Africa/Nairobi":{u:180,c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{u:60,c:["TD"]},"Africa/Niamey":{a:"Africa/Lagos",c:["NE"],r:1},"Africa/Nouakchott":{a:"Africa/Abidjan",c:["MR"],r:1},"Africa/Ouagadougou":{a:"Africa/Abidjan",c:["BF"],r:1},"Africa/Porto-Novo":{a:"Africa/Lagos",c:["BJ"],r:1},"Africa/Sao_Tome":{u:0,c:["ST"]},"Africa/Timbuktu":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Tripoli":{u:120,c:["LY"]},"Africa/Tunis":{u:60,c:["TN"]},"Africa/Windhoek":{u:120,c:["NA"]},"America/Adak":{u:-600,d:-540,c:["US"]},"America/Anchorage":{u:-540,d:-480,c:["US"]},"America/Anguilla":{a:"America/Puerto_Rico",c:["AI"],r:1},"America/Antigua":{a:"America/Puerto_Rico",c:["AG"],r:1},"America/Araguaina":{u:-180,c:["BR"]},"America/Argentina/Buenos_Aires":{u:-180,c:["AR"]},"America/Argentina/Catamarca":{u:-180,c:["AR"]},"America/Argentina/ComodRivadavia":{a:"America/Argentina/Catamarca",r:1},"America/Argentina/Cordoba":{u:-180,c:["AR"]},"America/Argentina/Jujuy":{u:-180,c:["AR"]},"America/Argentina/La_Rioja":{u:-180,c:["AR"]},"America/Argentina/Mendoza":{u:-180,c:["AR"]},"America/Argentina/Rio_Gallegos":{u:-180,c:["AR"]},"America/Argentina/Salta":{u:-180,c:["AR"]},"America/Argentina/San_Juan":{u:-180,c:["AR"]},"America/Argentina/San_Luis":{u:-180,c:["AR"]},"America/Argentina/Tucuman":{u:-180,c:["AR"]},"America/Argentina/Ushuaia":{u:-180,c:["AR"]},"America/Aruba":{a:"America/Puerto_Rico",c:["AW"],r:1},"America/Asuncion":{u:-240,d:-180,c:["PY"]},"America/Atikokan":{a:"America/Panama",c:["CA"],r:1},"America/Atka":{a:"America/Adak",r:1},"America/Bahia":{u:-180,c:["BR"]},"America/Bahia_Banderas":{u:-360,c:["MX"]},"America/Barbados":{u:-240,c:["BB"]},"America/Belem":{u:-180,c:["BR"]},"America/Belize":{u:-360,c:["BZ"]},"America/Blanc-Sablon":{a:"America/Puerto_Rico",c:["CA"],r:1},"America/Boa_Vista":{u:-240,c:["BR"]},"America/Bogota":{u:-300,c:["CO"]},"America/Boise":{u:-420,d:-360,c:["US"]},"America/Buenos_Aires":{a:"America/Argentina/Buenos_Aires",r:1},"America/Cambridge_Bay":{u:-420,d:-360,c:["CA"]},"America/Campo_Grande":{u:-240,c:["BR"]},"America/Cancun":{u:-300,c:["MX"]},"America/Caracas":{u:-240,c:["VE"]},"America/Catamarca":{a:"America/Argentina/Catamarca",r:1},"America/Cayenne":{u:-180,c:["GF"]},"America/Cayman":{a:"America/Panama",c:["KY"],r:1},"America/Chicago":{u:-360,d:-300,c:["US"]},"America/Chihuahua":{u:-360,c:["MX"]},"America/Ciudad_Juarez":{u:-420,d:-360,c:["MX"]},"America/Coral_Harbour":{a:"America/Panama",c:["CA"],r:1},"America/Cordoba":{a:"America/Argentina/Cordoba",r:1},"America/Costa_Rica":{u:-360,c:["CR"]},"America/Creston":{a:"America/Phoenix",c:["CA"],r:1},"America/Cuiaba":{u:-240,c:["BR"]},"America/Curacao":{a:"America/Puerto_Rico",c:["CW"],r:1},"America/Danmarkshavn":{u:0,c:["GL"]},"America/Dawson":{u:-420,c:["CA"]},"America/Dawson_Creek":{u:-420,c:["CA"]},"America/Denver":{u:-420,d:-360,c:["US"]},"America/Detroit":{u:-300,d:-240,c:["US"]},"America/Dominica":{a:"America/Puerto_Rico",c:["DM"],r:1},"America/Edmonton":{u:-420,d:-360,c:["CA"]},"America/Eirunepe":{u:-300,c:["BR"]},"America/El_Salvador":{u:-360,c:["SV"]},"America/Ensenada":{a:"America/Tijuana",r:1},"America/Fort_Nelson":{u:-420,c:["CA"]},"America/Fort_Wayne":{a:"America/Indiana/Indianapolis",r:1},"America/Fortaleza":{u:-180,c:["BR"]},"America/Glace_Bay":{u:-240,d:-180,c:["CA"]},"America/Godthab":{a:"America/Nuuk",r:1},"America/Goose_Bay":{u:-240,d:-180,c:["CA"]},"America/Grand_Turk":{u:-300,d:-240,c:["TC"]},"America/Grenada":{a:"America/Puerto_Rico",c:["GD"],r:1},"America/Guadeloupe":{a:"America/Puerto_Rico",c:["GP"],r:1},"America/Guatemala":{u:-360,c:["GT"]},"America/Guayaquil":{u:-300,c:["EC"]},"America/Guyana":{u:-240,c:["GY"]},"America/Halifax":{u:-240,d:-180,c:["CA"]},"America/Havana":{u:-300,d:-240,c:["CU"]},"America/Hermosillo":{u:-420,c:["MX"]},"America/Indiana/Indianapolis":{u:-300,d:-240,c:["US"]},"America/Indiana/Knox":{u:-360,d:-300,c:["US"]},"America/Indiana/Marengo":{u:-300,d:-240,c:["US"]},"America/Indiana/Petersburg":{u:-300,d:-240,c:["US"]},"America/Indiana/Tell_City":{u:-360,d:-300,c:["US"]},"America/Indiana/Vevay":{u:-300,d:-240,c:["US"]},"America/Indiana/Vincennes":{u:-300,d:-240,c:["US"]},"America/Indiana/Winamac":{u:-300,d:-240,c:["US"]},"America/Indianapolis":{a:"America/Indiana/Indianapolis",r:1},"America/Inuvik":{u:-420,d:-360,c:["CA"]},"America/Iqaluit":{u:-300,d:-240,c:["CA"]},"America/Jamaica":{u:-300,c:["JM"]},"America/Jujuy":{a:"America/Argentina/Jujuy",r:1},"America/Juneau":{u:-540,d:-480,c:["US"]},"America/Kentucky/Louisville":{u:-300,d:-240,c:["US"]},"America/Kentucky/Monticello":{u:-300,d:-240,c:["US"]},"America/Knox_IN":{a:"America/Indiana/Knox",r:1},"America/Kralendijk":{a:"America/Puerto_Rico",c:["BQ"],r:1},"America/La_Paz":{u:-240,c:["BO"]},"America/Lima":{u:-300,c:["PE"]},"America/Los_Angeles":{u:-480,d:-420,c:["US"]},"America/Louisville":{a:"America/Kentucky/Louisville",r:1},"America/Lower_Princes":{a:"America/Puerto_Rico",c:["SX"],r:1},"America/Maceio":{u:-180,c:["BR"]},"America/Managua":{u:-360,c:["NI"]},"America/Manaus":{u:-240,c:["BR"]},"America/Marigot":{a:"America/Puerto_Rico",c:["MF"],r:1},"America/Martinique":{u:-240,c:["MQ"]},"America/Matamoros":{u:-360,d:-300,c:["MX"]},"America/Mazatlan":{u:-420,c:["MX"]},"America/Mendoza":{a:"America/Argentina/Mendoza",r:1},"America/Menominee":{u:-360,d:-300,c:["US"]},"America/Merida":{u:-360,c:["MX"]},"America/Metlakatla":{u:-540,d:-480,c:["US"]},"America/Mexico_City":{u:-360,c:["MX"]},"America/Miquelon":{u:-180,d:-120,c:["PM"]},"America/Moncton":{u:-240,d:-180,c:["CA"]},"America/Monterrey":{u:-360,c:["MX"]},"America/Montevideo":{u:-180,c:["UY"]},"America/Montreal":{a:"America/Toronto",c:["CA"],r:1},"America/Montserrat":{a:"America/Puerto_Rico",c:["MS"],r:1},"America/Nassau":{a:"America/Toronto",c:["BS"],r:1},"America/New_York":{u:-300,d:-240,c:["US"]},"America/Nipigon":{a:"America/Toronto",c:["CA"],r:1},"America/Nome":{u:-540,d:-480,c:["US"]},"America/Noronha":{u:-120,c:["BR"]},"America/North_Dakota/Beulah":{u:-360,d:-300,c:["US"]},"America/North_Dakota/Center":{u:-360,d:-300,c:["US"]},"America/North_Dakota/New_Salem":{u:-360,d:-300,c:["US"]},"America/Nuuk":{u:-120,d:-60,c:["GL"]},"America/Ojinaga":{u:-360,d:-300,c:["MX"]},"America/Panama":{u:-300,c:["PA","CA","KY"]},"America/Pangnirtung":{a:"America/Iqaluit",r:1},"America/Paramaribo":{u:-180,c:["SR"]},"America/Phoenix":{u:-420,c:["US","CA"]},"America/Port-au-Prince":{u:-300,d:-240,c:["HT"]},"America/Port_of_Spain":{a:"America/Puerto_Rico",c:["TT"],r:1},"America/Porto_Acre":{a:"America/Rio_Branco",r:1},"America/Porto_Velho":{u:-240,c:["BR"]},"America/Puerto_Rico":{u:-240,c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{u:-180,c:["CL"]},"America/Rainy_River":{a:"America/Winnipeg",r:1},"America/Rankin_Inlet":{u:-360,d:-300,c:["CA"]},"America/Recife":{u:-180,c:["BR"]},"America/Regina":{u:-360,c:["CA"]},"America/Resolute":{u:-360,d:-300,c:["CA"]},"America/Rio_Branco":{u:-300,c:["BR"]},"America/Rosario":{a:"America/Argentina/Cordoba",r:1},"America/Santa_Isabel":{a:"America/Tijuana",r:1},"America/Santarem":{u:-180,c:["BR"]},"America/Santiago":{u:-240,d:-180,c:["CL"]},"America/Santo_Domingo":{u:-240,c:["DO"]},"America/Sao_Paulo":{u:-180,c:["BR"]},"America/Scoresbysund":{u:-60,d:0,c:["GL"]},"America/Shiprock":{a:"America/Denver",r:1},"America/Sitka":{u:-540,d:-480,c:["US"]},"America/St_Barthelemy":{a:"America/Puerto_Rico",c:["BL"],r:1},"America/St_Johns":{u:-210,d:-150,c:["CA"]},"America/St_Kitts":{a:"America/Puerto_Rico",c:["KN"],r:1},"America/St_Lucia":{a:"America/Puerto_Rico",c:["LC"],r:1},"America/St_Thomas":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/St_Vincent":{a:"America/Puerto_Rico",c:["VC"],r:1},"America/Swift_Current":{u:-360,c:["CA"]},"America/Tegucigalpa":{u:-360,c:["HN"]},"America/Thule":{u:-240,d:-180,c:["GL"]},"America/Thunder_Bay":{a:"America/Toronto",c:["CA"],r:1},"America/Tijuana":{u:-480,d:-420,c:["MX"]},"America/Toronto":{u:-300,d:-240,c:["CA","BS"]},"America/Tortola":{a:"America/Puerto_Rico",c:["VG"],r:1},"America/Vancouver":{u:-480,d:-420,c:["CA"]},"America/Virgin":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/Whitehorse":{u:-420,c:["CA"]},"America/Winnipeg":{u:-360,d:-300,c:["CA"]},"America/Yakutat":{u:-540,d:-480,c:["US"]},"America/Yellowknife":{a:"America/Edmonton",r:1},"Antarctica/Casey":{u:660,c:["AQ"]},"Antarctica/Davis":{u:420,c:["AQ"]},"Antarctica/DumontDUrville":{a:"Pacific/Port_Moresby",c:["AQ"],r:1},"Antarctica/Macquarie":{u:600,d:660,c:["AU"]},"Antarctica/Mawson":{u:300,c:["AQ"]},"Antarctica/McMurdo":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Palmer":{u:-180,c:["AQ"]},"Antarctica/Rothera":{u:-180,c:["AQ"]},"Antarctica/South_Pole":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Syowa":{a:"Asia/Riyadh",c:["AQ"],r:1},"Antarctica/Troll":{u:0,d:120,c:["AQ"]},"Antarctica/Vostok":{a:"Asia/Urumqi",c:["AQ"],r:1},"Arctic/Longyearbyen":{a:"Europe/Berlin",c:["SJ"],r:1},"Asia/Aden":{a:"Asia/Riyadh",c:["YE"],r:1},"Asia/Almaty":{u:360,c:["KZ"]},"Asia/Amman":{u:180,c:["JO"]},"Asia/Anadyr":{u:720,c:["RU"]},"Asia/Aqtau":{u:300,c:["KZ"]},"Asia/Aqtobe":{u:300,c:["KZ"]},"Asia/Ashgabat":{u:300,c:["TM"]},"Asia/Ashkhabad":{a:"Asia/Ashgabat",r:1},"Asia/Atyrau":{u:300,c:["KZ"]},"Asia/Baghdad":{u:180,c:["IQ"]},"Asia/Bahrain":{a:"Asia/Qatar",c:["BH"],r:1},"Asia/Baku":{u:240,c:["AZ"]},"Asia/Bangkok":{u:420,c:["TH","CX","KH","LA","VN"]},"Asia/Barnaul":{u:420,c:["RU"]},"Asia/Beirut":{u:120,d:180,c:["LB"]},"Asia/Bishkek":{u:360,c:["KG"]},"Asia/Brunei":{a:"Asia/Kuching",c:["BN"],r:1},"Asia/Calcutta":{a:"Asia/Kolkata",r:1},"Asia/Chita":{u:540,c:["RU"]},"Asia/Choibalsan":{u:480,c:["MN"]},"Asia/Chongqing":{a:"Asia/Shanghai",r:1},"Asia/Chungking":{a:"Asia/Shanghai",r:1},"Asia/Colombo":{u:330,c:["LK"]},"Asia/Dacca":{a:"Asia/Dhaka",r:1},"Asia/Damascus":{u:180,c:["SY"]},"Asia/Dhaka":{u:360,c:["BD"]},"Asia/Dili":{u:540,c:["TL"]},"Asia/Dubai":{u:240,c:["AE","OM","RE","SC","TF"]},"Asia/Dushanbe":{u:300,c:["TJ"]},"Asia/Famagusta":{u:120,d:180,c:["CY"]},"Asia/Gaza":{u:120,d:180,c:["PS"]},"Asia/Harbin":{a:"Asia/Shanghai",r:1},"Asia/Hebron":{u:120,d:180,c:["PS"]},"Asia/Ho_Chi_Minh":{u:420,c:["VN"]},"Asia/Hong_Kong":{u:480,c:["HK"]},"Asia/Hovd":{u:420,c:["MN"]},"Asia/Irkutsk":{u:480,c:["RU"]},"Asia/Istanbul":{a:"Europe/Istanbul",r:1},"Asia/Jakarta":{u:420,c:["ID"]},"Asia/Jayapura":{u:540,c:["ID"]},"Asia/Jerusalem":{u:120,d:180,c:["IL"]},"Asia/Kabul":{u:270,c:["AF"]},"Asia/Kamchatka":{u:720,c:["RU"]},"Asia/Karachi":{u:300,c:["PK"]},"Asia/Kashgar":{a:"Asia/Urumqi",c:["CN"],r:1},"Asia/Kathmandu":{u:345,c:["NP"]},"Asia/Katmandu":{a:"Asia/Kathmandu",r:1},"Asia/Khandyga":{u:540,c:["RU"]},"Asia/Kolkata":{u:330,c:["IN"]},"Asia/Krasnoyarsk":{u:420,c:["RU"]},"Asia/Kuala_Lumpur":{a:"Asia/Singapore",c:["MY"],r:1},"Asia/Kuching":{u:480,c:["MY","BN"]},"Asia/Kuwait":{a:"Asia/Riyadh",c:["KW"],r:1},"Asia/Macao":{a:"Asia/Macau",r:1},"Asia/Macau":{u:480,c:["MO"]},"Asia/Magadan":{u:660,c:["RU"]},"Asia/Makassar":{u:480,c:["ID"]},"Asia/Manila":{u:480,c:["PH"]},"Asia/Muscat":{a:"Asia/Dubai",c:["OM"],r:1},"Asia/Nicosia":{u:120,d:180,c:["CY"]},"Asia/Novokuznetsk":{u:420,c:["RU"]},"Asia/Novosibirsk":{u:420,c:["RU"]},"Asia/Omsk":{u:360,c:["RU"]},"Asia/Oral":{u:300,c:["KZ"]},"Asia/Phnom_Penh":{a:"Asia/Bangkok",c:["KH"],r:1},"Asia/Pontianak":{u:420,c:["ID"]},"Asia/Pyongyang":{u:540,c:["KP"]},"Asia/Qatar":{u:180,c:["QA","BH"]},"Asia/Qostanay":{u:360,c:["KZ"]},"Asia/Qyzylorda":{u:300,c:["KZ"]},"Asia/Rangoon":{a:"Asia/Yangon",c:["MM"],r:1},"Asia/Riyadh":{u:180,c:["SA","AQ","KW","YE"]},"Asia/Saigon":{a:"Asia/Ho_Chi_Minh",r:1},"Asia/Sakhalin":{u:660,c:["RU"]},"Asia/Samarkand":{u:300,c:["UZ"]},"Asia/Seoul":{u:540,c:["KR"]},"Asia/Shanghai":{u:480,c:["CN"]},"Asia/Singapore":{u:480,c:["SG","MY"]},"Asia/Srednekolymsk":{u:660,c:["RU"]},"Asia/Taipei":{u:480,c:["TW"]},"Asia/Tashkent":{u:300,c:["UZ"]},"Asia/Tbilisi":{u:240,c:["GE"]},"Asia/Tehran":{u:210,c:["IR"]},"Asia/Tel_Aviv":{a:"Asia/Jerusalem",r:1},"Asia/Thimbu":{a:"Asia/Thimphu",r:1},"Asia/Thimphu":{u:360,c:["BT"]},"Asia/Tokyo":{u:540,c:["JP"]},"Asia/Tomsk":{u:420,c:["RU"]},"Asia/Ujung_Pandang":{a:"Asia/Makassar",r:1},"Asia/Ulaanbaatar":{u:480,c:["MN"]},"Asia/Ulan_Bator":{a:"Asia/Ulaanbaatar",r:1},"Asia/Urumqi":{u:360,c:["CN","AQ"]},"Asia/Ust-Nera":{u:600,c:["RU"]},"Asia/Vientiane":{a:"Asia/Bangkok",c:["LA"],r:1},"Asia/Vladivostok":{u:600,c:["RU"]},"Asia/Yakutsk":{u:540,c:["RU"]},"Asia/Yangon":{u:390,c:["MM","CC"]},"Asia/Yekaterinburg":{u:300,c:["RU"]},"Asia/Yerevan":{u:240,c:["AM"]},"Atlantic/Azores":{u:-60,d:0,c:["PT"]},"Atlantic/Bermuda":{u:-240,d:-180,c:["BM"]},"Atlantic/Canary":{u:0,d:60,c:["ES"]},"Atlantic/Cape_Verde":{u:-60,c:["CV"]},"Atlantic/Faeroe":{a:"Atlantic/Faroe",r:1},"Atlantic/Faroe":{u:0,d:60,c:["FO"]},"Atlantic/Jan_Mayen":{a:"Europe/Berlin",c:["SJ"],r:1},"Atlantic/Madeira":{u:0,d:60,c:["PT"]},"Atlantic/Reykjavik":{a:"Africa/Abidjan",c:["IS"],r:1},"Atlantic/South_Georgia":{u:-120,c:["GS"]},"Atlantic/St_Helena":{a:"Africa/Abidjan",c:["SH"],r:1},"Atlantic/Stanley":{u:-180,c:["FK"]},"Australia/ACT":{a:"Australia/Sydney",r:1},"Australia/Adelaide":{u:570,d:630,c:["AU"]},"Australia/Brisbane":{u:600,c:["AU"]},"Australia/Broken_Hill":{u:570,d:630,c:["AU"]},"Australia/Canberra":{a:"Australia/Sydney",r:1},"Australia/Currie":{a:"Australia/Hobart",r:1},"Australia/Darwin":{u:570,c:["AU"]},"Australia/Eucla":{u:525,c:["AU"]},"Australia/Hobart":{u:600,d:660,c:["AU"]},"Australia/LHI":{a:"Australia/Lord_Howe",r:1},"Australia/Lindeman":{u:600,c:["AU"]},"Australia/Lord_Howe":{u:630,d:660,c:["AU"]},"Australia/Melbourne":{u:600,d:660,c:["AU"]},"Australia/NSW":{a:"Australia/Sydney",r:1},"Australia/North":{a:"Australia/Darwin",r:1},"Australia/Perth":{u:480,c:["AU"]},"Australia/Queensland":{a:"Australia/Brisbane",r:1},"Australia/South":{a:"Australia/Adelaide",r:1},"Australia/Sydney":{u:600,d:660,c:["AU"]},"Australia/Tasmania":{a:"Australia/Hobart",r:1},"Australia/Victoria":{a:"Australia/Melbourne",r:1},"Australia/West":{a:"Australia/Perth",r:1},"Australia/Yancowinna":{a:"Australia/Broken_Hill",r:1},"Brazil/Acre":{a:"America/Rio_Branco",r:1},"Brazil/DeNoronha":{a:"America/Noronha",r:1},"Brazil/East":{a:"America/Sao_Paulo",r:1},"Brazil/West":{a:"America/Manaus",r:1},CET:{u:60,d:120},CST6CDT:{u:-360,d:-300},"Canada/Atlantic":{a:"America/Halifax",r:1},"Canada/Central":{a:"America/Winnipeg",r:1},"Canada/Eastern":{a:"America/Toronto",c:["CA"],r:1},"Canada/Mountain":{a:"America/Edmonton",r:1},"Canada/Newfoundland":{a:"America/St_Johns",r:1},"Canada/Pacific":{a:"America/Vancouver",r:1},"Canada/Saskatchewan":{a:"America/Regina",r:1},"Canada/Yukon":{a:"America/Whitehorse",r:1},"Chile/Continental":{a:"America/Santiago",r:1},"Chile/EasterIsland":{a:"Pacific/Easter",r:1},Cuba:{a:"America/Havana",r:1},EET:{u:120,d:180},EST:{u:-300},EST5EDT:{u:-300,d:-240},Egypt:{a:"Africa/Cairo",r:1},Eire:{a:"Europe/Dublin",r:1},"Etc/GMT":{u:0},"Etc/GMT+0":{a:"Etc/GMT",r:1},"Etc/GMT+1":{u:-60},"Etc/GMT+10":{u:-600},"Etc/GMT+11":{u:-660},"Etc/GMT+12":{u:-720},"Etc/GMT+2":{u:-120},"Etc/GMT+3":{u:-180},"Etc/GMT+4":{u:-240},"Etc/GMT+5":{u:-300},"Etc/GMT+6":{u:-360},"Etc/GMT+7":{u:-420},"Etc/GMT+8":{u:-480},"Etc/GMT+9":{u:-540},"Etc/GMT-0":{a:"Etc/GMT",r:1},"Etc/GMT-1":{u:60},"Etc/GMT-10":{u:600},"Etc/GMT-11":{u:660},"Etc/GMT-12":{u:720},"Etc/GMT-13":{u:780},"Etc/GMT-14":{u:840},"Etc/GMT-2":{u:120},"Etc/GMT-3":{u:180},"Etc/GMT-4":{u:240},"Etc/GMT-5":{u:300},"Etc/GMT-6":{u:360},"Etc/GMT-7":{u:420},"Etc/GMT-8":{u:480},"Etc/GMT-9":{u:540},"Etc/GMT0":{a:"Etc/GMT",r:1},"Etc/Greenwich":{a:"Etc/GMT",r:1},"Etc/UCT":{a:"Etc/UTC",r:1},"Etc/UTC":{u:0},"Etc/Universal":{a:"Etc/UTC",r:1},"Etc/Zulu":{a:"Etc/UTC",r:1},"Europe/Amsterdam":{a:"Europe/Brussels",c:["NL"],r:1},"Europe/Andorra":{u:60,d:120,c:["AD"]},"Europe/Astrakhan":{u:240,c:["RU"]},"Europe/Athens":{u:120,d:180,c:["GR"]},"Europe/Belfast":{a:"Europe/London",c:["GB"],r:1},"Europe/Belgrade":{u:60,d:120,c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{u:60,d:120,c:["DE","DK","NO","SE","SJ"]},"Europe/Bratislava":{a:"Europe/Prague",c:["SK"],r:1},"Europe/Brussels":{u:60,d:120,c:["BE","LU","NL"]},"Europe/Bucharest":{u:120,d:180,c:["RO"]},"Europe/Budapest":{u:60,d:120,c:["HU"]},"Europe/Busingen":{a:"Europe/Zurich",c:["DE"],r:1},"Europe/Chisinau":{u:120,d:180,c:["MD"]},"Europe/Copenhagen":{a:"Europe/Berlin",c:["DK"],r:1},"Europe/Dublin":{u:60,d:0,c:["IE"]},"Europe/Gibraltar":{u:60,d:120,c:["GI"]},"Europe/Guernsey":{a:"Europe/London",c:["GG"],r:1},"Europe/Helsinki":{u:120,d:180,c:["FI","AX"]},"Europe/Isle_of_Man":{a:"Europe/London",c:["IM"],r:1},"Europe/Istanbul":{u:180,c:["TR"]},"Europe/Jersey":{a:"Europe/London",c:["JE"],r:1},"Europe/Kaliningrad":{u:120,c:["RU"]},"Europe/Kiev":{a:"Europe/Kyiv",r:1},"Europe/Kirov":{u:180,c:["RU"]},"Europe/Kyiv":{u:120,d:180,c:["UA"]},"Europe/Lisbon":{u:0,d:60,c:["PT"]},"Europe/Ljubljana":{a:"Europe/Belgrade",c:["SI"],r:1},"Europe/London":{u:0,d:60,c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{a:"Europe/Brussels",c:["LU"],r:1},"Europe/Madrid":{u:60,d:120,c:["ES"]},"Europe/Malta":{u:60,d:120,c:["MT"]},"Europe/Mariehamn":{a:"Europe/Helsinki",c:["AX"],r:1},"Europe/Minsk":{u:180,c:["BY"]},"Europe/Monaco":{a:"Europe/Paris",c:["MC"],r:1},"Europe/Moscow":{u:180,c:["RU"]},"Europe/Nicosia":{a:"Asia/Nicosia",r:1},"Europe/Oslo":{a:"Europe/Berlin",c:["NO"],r:1},"Europe/Paris":{u:60,d:120,c:["FR","MC"]},"Europe/Podgorica":{a:"Europe/Belgrade",c:["ME"],r:1},"Europe/Prague":{u:60,d:120,c:["CZ","SK"]},"Europe/Riga":{u:120,d:180,c:["LV"]},"Europe/Rome":{u:60,d:120,c:["IT","SM","VA"]},"Europe/Samara":{u:240,c:["RU"]},"Europe/San_Marino":{a:"Europe/Rome",c:["SM"],r:1},"Europe/Sarajevo":{a:"Europe/Belgrade",c:["BA"],r:1},"Europe/Saratov":{u:240,c:["RU"]},"Europe/Simferopol":{u:180,c:["RU","UA"]},"Europe/Skopje":{a:"Europe/Belgrade",c:["MK"],r:1},"Europe/Sofia":{u:120,d:180,c:["BG"]},"Europe/Stockholm":{a:"Europe/Berlin",c:["SE"],r:1},"Europe/Tallinn":{u:120,d:180,c:["EE"]},"Europe/Tirane":{u:60,d:120,c:["AL"]},"Europe/Tiraspol":{a:"Europe/Chisinau",r:1},"Europe/Ulyanovsk":{u:240,c:["RU"]},"Europe/Uzhgorod":{a:"Europe/Kyiv",r:1},"Europe/Vaduz":{a:"Europe/Zurich",c:["LI"],r:1},"Europe/Vatican":{a:"Europe/Rome",c:["VA"],r:1},"Europe/Vienna":{u:60,d:120,c:["AT"]},"Europe/Vilnius":{u:120,d:180,c:["LT"]},"Europe/Volgograd":{u:180,c:["RU"]},"Europe/Warsaw":{u:60,d:120,c:["PL"]},"Europe/Zagreb":{a:"Europe/Belgrade",c:["HR"],r:1},"Europe/Zaporozhye":{a:"Europe/Kyiv",r:1},"Europe/Zurich":{u:60,d:120,c:["CH","DE","LI"]},Factory:{u:0},GB:{a:"Europe/London",c:["GB"],r:1},"GB-Eire":{a:"Europe/London",c:["GB"],r:1},GMT:{a:"Etc/GMT",r:1},"GMT+0":{a:"Etc/GMT",r:1},"GMT-0":{a:"Etc/GMT",r:1},GMT0:{a:"Etc/GMT",r:1},Greenwich:{a:"Etc/GMT",r:1},HST:{u:-600},Hongkong:{a:"Asia/Hong_Kong",r:1},Iceland:{a:"Africa/Abidjan",c:["IS"],r:1},"Indian/Antananarivo":{a:"Africa/Nairobi",c:["MG"],r:1},"Indian/Chagos":{u:360,c:["IO"]},"Indian/Christmas":{a:"Asia/Bangkok",c:["CX"],r:1},"Indian/Cocos":{a:"Asia/Yangon",c:["CC"],r:1},"Indian/Comoro":{a:"Africa/Nairobi",c:["KM"],r:1},"Indian/Kerguelen":{a:"Indian/Maldives",c:["TF"],r:1},"Indian/Mahe":{a:"Asia/Dubai",c:["SC"],r:1},"Indian/Maldives":{u:300,c:["MV","TF"]},"Indian/Mauritius":{u:240,c:["MU"]},"Indian/Mayotte":{a:"Africa/Nairobi",c:["YT"],r:1},"Indian/Reunion":{a:"Asia/Dubai",c:["RE"],r:1},Iran:{a:"Asia/Tehran",r:1},Israel:{a:"Asia/Jerusalem",r:1},Jamaica:{a:"America/Jamaica",r:1},Japan:{a:"Asia/Tokyo",r:1},Kwajalein:{a:"Pacific/Kwajalein",r:1},Libya:{a:"Africa/Tripoli",r:1},MET:{u:60,d:120},MST:{u:-420},MST7MDT:{u:-420,d:-360},"Mexico/BajaNorte":{a:"America/Tijuana",r:1},"Mexico/BajaSur":{a:"America/Mazatlan",r:1},"Mexico/General":{a:"America/Mexico_City",r:1},NZ:{a:"Pacific/Auckland",c:["NZ"],r:1},"NZ-CHAT":{a:"Pacific/Chatham",r:1},Navajo:{a:"America/Denver",r:1},PRC:{a:"Asia/Shanghai",r:1},PST8PDT:{u:-480,d:-420},"Pacific/Apia":{u:780,c:["WS"]},"Pacific/Auckland":{u:720,d:780,c:["NZ","AQ"]},"Pacific/Bougainville":{u:660,c:["PG"]},"Pacific/Chatham":{u:765,d:825,c:["NZ"]},"Pacific/Chuuk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Easter":{u:-360,d:-300,c:["CL"]},"Pacific/Efate":{u:660,c:["VU"]},"Pacific/Enderbury":{a:"Pacific/Kanton",r:1},"Pacific/Fakaofo":{u:780,c:["TK"]},"Pacific/Fiji":{u:720,c:["FJ"]},"Pacific/Funafuti":{a:"Pacific/Tarawa",c:["TV"],r:1},"Pacific/Galapagos":{u:-360,c:["EC"]},"Pacific/Gambier":{u:-540,c:["PF"]},"Pacific/Guadalcanal":{u:660,c:["SB","FM"]},"Pacific/Guam":{u:600,c:["GU","MP"]},"Pacific/Honolulu":{u:-600,c:["US"]},"Pacific/Johnston":{a:"Pacific/Honolulu",r:1},"Pacific/Kanton":{u:780,c:["KI"]},"Pacific/Kiritimati":{u:840,c:["KI"]},"Pacific/Kosrae":{u:660,c:["FM"]},"Pacific/Kwajalein":{u:720,c:["MH"]},"Pacific/Majuro":{a:"Pacific/Tarawa",c:["MH"],r:1},"Pacific/Marquesas":{u:-570,c:["PF"]},"Pacific/Midway":{a:"Pacific/Pago_Pago",c:["UM"],r:1},"Pacific/Nauru":{u:720,c:["NR"]},"Pacific/Niue":{u:-660,c:["NU"]},"Pacific/Norfolk":{u:660,d:720,c:["NF"]},"Pacific/Noumea":{u:660,c:["NC"]},"Pacific/Pago_Pago":{u:-660,c:["AS","UM"]},"Pacific/Palau":{u:540,c:["PW"]},"Pacific/Pitcairn":{u:-480,c:["PN"]},"Pacific/Pohnpei":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Ponape":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Port_Moresby":{u:600,c:["PG","AQ","FM"]},"Pacific/Rarotonga":{u:-600,c:["CK"]},"Pacific/Saipan":{a:"Pacific/Guam",c:["MP"],r:1},"Pacific/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},"Pacific/Tahiti":{u:-600,c:["PF"]},"Pacific/Tarawa":{u:720,c:["KI","MH","TV","UM","WF"]},"Pacific/Tongatapu":{u:780,c:["TO"]},"Pacific/Truk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Wake":{a:"Pacific/Tarawa",c:["UM"],r:1},"Pacific/Wallis":{a:"Pacific/Tarawa",c:["WF"],r:1},"Pacific/Yap":{a:"Pacific/Port_Moresby",c:["FM"],r:1},Poland:{a:"Europe/Warsaw",r:1},Portugal:{a:"Europe/Lisbon",r:1},ROC:{a:"Asia/Taipei",r:1},ROK:{a:"Asia/Seoul",r:1},Singapore:{a:"Asia/Singapore",c:["SG"],r:1},Turkey:{a:"Europe/Istanbul",r:1},UCT:{a:"Etc/UTC",r:1},"US/Alaska":{a:"America/Anchorage",r:1},"US/Aleutian":{a:"America/Adak",r:1},"US/Arizona":{a:"America/Phoenix",c:["US"],r:1},"US/Central":{a:"America/Chicago",r:1},"US/East-Indiana":{a:"America/Indiana/Indianapolis",r:1},"US/Eastern":{a:"America/New_York",r:1},"US/Hawaii":{a:"Pacific/Honolulu",r:1},"US/Indiana-Starke":{a:"America/Indiana/Knox",r:1},"US/Michigan":{a:"America/Detroit",r:1},"US/Mountain":{a:"America/Denver",r:1},"US/Pacific":{a:"America/Los_Angeles",r:1},"US/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},UTC:{a:"Etc/UTC",r:1},Universal:{a:"Etc/UTC",r:1},"W-SU":{a:"Europe/Moscow",r:1},WET:{u:0,d:60},Zulu:{a:"Etc/UTC",r:1}}};function na(e,t){var r=e.countries[t];if(!r)return null;var n=function(e){ta||(ta=function(e){return Object.keys(e.timezones).reduce((function(t,r){var n=e.timezones[r],a=n.c,o=n.a,i=e.timezones[o]||{},s=a||i.c;return s?(s.forEach((function(e){t[e]||Object.assign(t,Xn({},e,{current:[],all:[]})),void 0===n.r&&t[e].current.push(r),t[e].all.push(r)})),t):t}),{})}(e));return ta}(e)[t]||{};return{id:t,name:r,timezones:n.current||[],allTimezones:n.all||[]}}function aa(e){var t=Math.floor(Math.abs(e)/60),r=e%60;return"".concat(e<0?"-":"+").concat(oa(t),":").concat(oa(r))}function oa(e){var t=Math.abs(e);return"".concat(t<10?"0":"").concat(t)}var ia=["allTimezones"];Object.keys(ra.timezones).length;var sa={},ca={};function la(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sa[e]||function(e){if(!e)return;sa[e.id]=e}(na(ra,e)),function(e,t){if(!e)return null;var r=t||{},n=r.deprecated;e.allTimezones;var a=ea(e,ia),o=n?e.allTimezones:e.timezones;return Zn(Zn({},a),{},{timezones:o})}(sa[e],t)}function ua(e){return ca[e]||function(e){if(!e)return;ca[e.name]=e,Object.keys(e).length}(function(e,t){var r=e.timezones[t];if(!r)return null;var n=r.a,a=void 0===n?null:n,o=Zn(Zn({},a?e.timezones[a]:{}),e.timezones[t]),i=o.c||[],s=o.u,c=Number.isInteger(o.d)?o.d:s,l={name:t,countries:i,utcOffset:s,utcOffsetStr:aa(s),dstOffset:c,dstOffsetStr:aa(c),aliasOf:a};return r.r&&(l.deprecated=!0),l}(ra,e)),ca[e]?Zn({},ca[e]):null}const da=()=>{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return((ua(e)||{}).countries||[]).map((function(e){return la(e,t)}))}(e)[0]?.id??""},pa=e=>"unknown"===e?.toLowerCase()?"":e,ma=(e,t,r)=>{if(e.environment.previewMode)return(e=>{const t=e?.products?e.products[0].paymentPlans[0].charges[0]:{prices:[{price:25}],chargeData:{name:"Monthly Fee"}},r=t.prices[0]?.price,n=t.chargeData?.name;return{success:!0,contractedMrr:r,totalContractedValue:null,amount:r+3,amountWithoutTax:r,taxAmount:3,invoiceTargetDate:"2024-05-20",documentDate:"2024-05-20",invoiceItems:{0:{serviceStartDate:"2024-05-20",serviceEndDate:"2024-06-19",chargeAmount:r,taxAmount:3,chargeDescription:"",chargeName:n,productName:"Product",productRatePlanChargeId:"8ad097b48f533234018f57a8982a5a45",quantity:1,unitOfMeasure:""}}}})(vt(e).dynamicOfferPreview??{});const n={account:{city:pa(vt(e).requestCity),country:pa(vt(e).requestCountry)||da(),county:"",state:pa(vt(e).requestState),zipCode:pa(vt(e).requestZipCode)},currency:Kn(e,t),ratePlanIds:[t.paymentOption.slug],termType:"EVERGREEN",...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}};return pn("plugins/public/zuora-billing/preview-subscription",{method:"POST",bodyObject:n},r).then((e=>e.json()))},fa=(e,t="en-UK")=>{if(!e)return"";const r=new Date(e);return Number.isNaN(r.getDate())?"Unknown":r.toLocaleDateString(t,{day:"numeric",month:"short",year:"numeric"})},ya=/^<<<([a-z0-9\-.]+)\|(.*)>>>$/,ga=(e,t)=>{if(null==t)return"";const r=e.languagePack?.entries??{},n=Xe[t];return r[n.languagePackKey]??n.fallbackMessage},ha=(e,t,r)=>{try{return(e.languagePack?.entries??{})[t]??r}catch(e){return console.warn(`error resolving language pack key in string ${t}`,e),r}},ba=(e,t)=>{try{return null==t?t:"object"==typeof t||Array.isArray(t)?Array.isArray(t)?t.map((t=>ba(e,t))):Object.entries(t).reduce(((t,[r,n])=>({...t,[r]:ba(e,n)})),{}):"string"==typeof t||t instanceof String?((e,t)=>{if(!t)return t;try{const r=ya.exec(t);return r&&r[1]?(e?.entries??{})[r[1]]??r[2]:t}catch(e){return console.warn(`error resolving language pack key in string ${t}`,e),t}})(e,t):t}catch(e){return console.warn("error resolving language pack entries",e),t}},Aa=(e,t)=>{try{if(t.isOneOff)return"";const r=ha(e,"forms.billing.history.every","every"),n=t["transaction-history"]?.[0]??t["next-billing-time"],a=n?.["human-readable-amount"];if(!a)return"";const o=t.currency_code?.toUpperCase()??a.replace(/[0-9,.]/g,""),{discounts_applied:i,pre_discount_price:s,billing_frequency:c,billing_frequency_unit:l}=t??{};if(!i&&s&&c&&l)return 1===c?`${o} ${s}/${l.toLowerCase()}`:`${o} ${s} ${r} ${c} ${l.toLowerCase()}s`;const u=Number(a.replace(/[^\d.-]/g,"")),d=Number.isInteger(u)?u.toFixed(0):u;return 1===n.cycleCount?`${o}${d}/${n.cycle}`:`${o} ${d} ${r} ${n.cycleCount} ${n.cycle}s`}catch{return console.error("Failed to get subscription amount"),""}},Pa=(e,t,r)=>(e?"":"+")+`${(t/100).toFixed(2)} ${r}`+(e?" incl.":""),Ea=e=>{try{const t=e["default-tax-rates"],r=e["managed-by"].toLowerCase(),n="canceled"===e["subscription-state"].toLowerCase(),a=fa("stripe"===r?e.ended:e.ends);let o,i=e["transaction-history"].reduce(((e,n)=>{const a=fa(n.time,o),i=((e,t,r,n)=>{try{const a=new Date(e),o=(()=>{switch(t){case"day":return a.setDate(a.getDate()+r);case"week":return a.setDate(a.getDate()+7*r);case"month":return a.setMonth(a.getMonth()+r);case"year":return a.setFullYear(a.getFullYear()+r);default:return null}})();return`${fa(e,n)} - ${fa(o,n)}`}catch{return console.error("Failed to get subscription period"),""}})(n.time,n.cycle,n.cycleCount,o),{cents:s,currency:c,taxRate:l}=n;let u,d;if(l){const{displayName:e,taxInclusive:t,taxPercent:r}=l;({taxes:d,total:u}=((e,t,r,n)=>{try{const a=n*(e/100),o=((e+(r?0:a))/100).toFixed(2);return{taxes:`(${Pa(r,a,t)})`,total:o}}catch{return console.error("Failed to get subscription tax"),{taxes:"",total:0}}})(s,e,t,r))}else t?.length?({taxes:d,total:u}=((e,t)=>{try{const r=[];let n=e;t.forEach((t=>{const a=t.taxPercent*(e/100),o=Pa(t.taxInclusive,a,t.displayName);r.push(o),n+=t.taxInclusive?0:a}));const a=(n/100).toFixed(2);return{taxes:`(${r.join(", ")})`,total:a}}catch{return console.error("Failed to get subscription default tax"),{taxes:"",total:0}}})(s,t)):(u=(s/100).toFixed(2),d=null);return[...e,{date:a,period:i,subtotal:"stripe"===r?(n.cents/100).toFixed(2):null,currency:c,taxes:d,total:u}]}),[]);return n&&(i=[{date:a,period:"canceled"},...i]),i}catch{return console.error("Failed to get subscription billing history"),null}},Ca=(e,t,r,n)=>pn(`blaize/payment/${e.organisationConfiguration.paymentProvider}/subscriptions`,{method:"GET"},r,null,!0).then((e=>e.ok?e.json():[])).then((t=>t.filter((e=>!n||"active"===e["subscription-state"]?.toLowerCase())).map((t=>({externalId:t["external-id"],productId:t["blaize-product"].id,productLabel:t["blaize-product"].label??t["blaize-product"].id,planId:t.plan_id,planLabel:t.plan_name,currency:t.currency_code,status:"active"===t["subscription-state"]?.toLowerCase()?"active":"inactive",nextBillingTime:fa(t["next-billing-time"]),amount:Aa(e,t),transactionHistory:Ea(t)}))))),Sa={draft:"pending","pending activation":"pending","pending acceptance":"pending",active:"active",cancelled:"inactive",expired:"inactive",suspended:"inactive"},va=(e,t)=>pn("zephr/payment/stripe/create-subscription-previews",{method:"POST",bodyObject:{product_id:e.paymentOption.productId,plan_id:e.paymentOption.slug,billing_country:e.billingAddress.country,billing_post_code:e.billingAddress.postalCode,promo_code:e.promoCodeValid?e.promoCode:void 0}},t,null,!0).then((e=>e.json())),Ta={[cn]:{loader:(e,t,r)=>{const n=vt(e).paymentProviderFormConfig?.enablePaypal;r.incrementRequestCount(),gn.then((()=>bn(0,r))).then((e=>{window.braintree.dropin.create({authorization:e,container:"#braintree-dropin-container",...n?{paypal:hn(t)}:{}},((e,t)=>{if(r.decrementRequestCount(),yn=t,r.updateFormState({paymentProviderFormLoaded:!0}),e)throw e;yn.isPaymentMethodRequestable()&&r.updateFormState({paymentFormComplete:!0}),yn.on("paymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!0})})),yn.on("noPaymentMethodRequestable",(()=>{r.updateFormState({paymentFormComplete:!1})}))}))})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:async(e,t,r)=>{let n,a;r.incrementRequestCount();const o=new Promise(((e,t)=>{n=e,a=t})),i=e=>{console.error(e),r.decrementRequestCount(),a()};return yn.requestPaymentMethod(((a,o)=>{!a&&o||i(`Error requesting payment method ${JSON.stringify(a)}`);const{url:s,body:c,method:l}=fn(e,t,cn,{payment_nonce:o.nonce,..."PayPalAccount"===o.type?{paypal:!0}:{}});return pn(s,{method:l,bodyObject:c},r).then((e=>{if(e?.ok)return r.decrementRequestCount(),void n();i(e)})).catch((e=>{i(e)}))})),o},changePaymentCompleter:async(e,t,r)=>{let n,a;const o=new Promise(((e,t)=>{n=e,a=t}));return yn.requestPaymentMethod(((e,o)=>(!e&&o||console.error(`Error requesting payment method ${JSON.stringify(e)}`),pn(`blaize/payment/braintree/subscriptions/${t.selectedSubscription?.externalId}`,{method:"PATCH",bodyObject:{payment_method_nonce:o?.nonce}},r).then((e=>{console.log(e),e?.ok?n():a(e)})).catch((e=>{a(e)}))))),o},component:class extends de{constructor(e){super(),ue(this,e,Yr,Kr,i,{onMountCallback:3,providerError:0,isDisabled:1,isLoaded:4,error:2})}},preLoaderComponent:null,promoCodeCheckPath:"blaize/payment/braintree/promo-code-check",productAddonPath:"blaize/payment/braintree/addons-check",existingSubscriptionLoader:Ca,priceCalculator:Hn,hasProductAddons:!0,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!1},[ln]:{loader:(e,t,r)=>{r.incrementRequestCount(),Un(r).then((()=>{Dn=Fn(kn,e,r),Dn.mount("#stripe-element"),Dn.addEventListener("change",(t=>{r.updateFormState({paymentProviderError:t.error,paymentFormComplete:t.complete,serverErrors:[]}),e.organisationConfiguration.stripeAutomaticTaxEnabled&&e.formType!==Et.LIST_SUBSCRIPTIONS&&((e,t,r)=>{e.complete&&(r.incrementRequestCount(),kn.createPaymentMethod("card",Dn,{}).then((({error:e,paymentMethod:t})=>e||!t?(console.error(`Error requesting payment method ${JSON.stringify(e)}`),null):(r.updateFormState({paymentMethodId:t.id}),t?.billing_details?.address))).catch((e=>(console.error(`Error requesting payment method ${JSON.stringify(e)}`),null))).then((e=>Mn(t,r.updateFormState({billingAddress:{country:e?.country,postalCode:e?.postal_code}}),r))).catch((e=>{console.error(`Error requesting payment method ${JSON.stringify(e)}`)})).finally((()=>{r.decrementRequestCount()})))})(t,e,r)})),Dn.addEventListener("ready",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),r.decrementRequestCount()})).catch((e=>{console.error(e),r.decrementRequestCount()}))},preLoader:null,completer:Bn,changePaymentCompleter:(e,t,r)=>{const n=t.paymentMethodId;return r.incrementRequestCount(),n?Vn(e,t,r,n):kn.createPaymentMethod("card",Dn,{}).then((async({error:n,paymentMethod:a})=>{if(n||!a)throw r.decrementRequestCount(),`Error requesting payment method ${JSON.stringify(n)}`;await pn("zephr/payment/stripe/setupIntentSecret",{method:"POST"},r).then((async e=>{const t=(await e.json()).clientSecret;return kn.confirmCardSetup(t,{payment_method:{card:Dn}})})).then((async n=>Vn(e,t,r,n.setupIntent.payment_method)))}))},component:class extends de{constructor(e){super(),ue(this,e,Qr,Wr,i,{onMountCallback:4,providerError:0,isDisabled:1,isComplete:2,isLoaded:5,error:3})}},preLoaderComponent:null,promoCodeCheckPath:"zephr/payment/stripe/promo-code-check",existingSubscriptionLoader:Ca,priceCalculator:(e,t,r)=>e.organisationConfiguration.stripeAutomaticTaxEnabled&&null!=t.billingAddress.country?va(t,r).then((r=>{if(!r.total)return Hn(e,t);const n=Ln(t.paymentOption.currencyCode.toUpperCase())?1:.01,a=e=>wn(e*n,t.paymentOption.currencyCode);return{slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,billingAddress:t.billingAddress,addonPrices:[],totalPrice:r.total*n,totalPriceFormattedString:a(r.total),netPrice:r.sub_total*n,netPriceFormattedString:a(r.sub_total),taxPrice:r.tax?r.tax*n:null,taxPriceFormattedString:r.tax?a(r.tax):null,discountPrice:r.discount?r.discount*n:null,discountPriceFormattedPrice:r.discount?a(r.discount):null,chargeItems:[]}})).catch((r=>(console.error(`Error calculating stripe tax preview ${JSON.stringify(r)}`),Hn(e,t)))):Hn(e,t),changeSubscriptionProrateCalculator:(e,t,r)=>{const n=t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId))?.changesFromSubscription;if(n)return pn(`zephr/payment/stripe/subscriptions/${n.externalId}/change-previews`,{method:"POST",bodyObject:{plan_id:t.paymentOption.slug}},r).then((e=>e.json())).then((e=>{const r=Ln(t.paymentOption.currencyCode.toUpperCase())?1:.01;return{totalPrice:e.total*r,totalPriceFormattedString:wn(e.total*r,t.paymentOption.currencyCode),subTotalPrice:e.sub_total*r,subTotalPriceFormattedString:wn(e.sub_total*r,t.paymentOption.currencyCode)}}));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:()=>!0,internalSubmit:()=>!1,noPaymentForm:()=>!1,canAttemptIncompletePaymentFormSubmission:!0},[un]:{loader:(e,t,r)=>{vt(e).changeSubscriptionMode?r.updateFormState({paymentFormComplete:!0}):Wn().then((()=>((e,t)=>pn("plugins/public/zuora-billing/payment-form-token",{method:"POST",bodyObject:{hostedPageId:vt(e).paymentProviderFormConfig.hostedPageId,hostedPageUrl:vt(e).paymentProviderFormConfig.hostedPageUrl}},t).then((e=>e.json())))(e,r))).then((n=>{if(!Kn(e,t))return r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]}),void console.error("Form currency not set");const a={tenantId:n.tenantId,token:n.token,signature:n.signature,key:n.key,id:n.id,url:n.url,style:"inline",submitEnabled:!0},o={email:t.emailAddress};window.Z.setEventHandler("onloadCallback",(()=>{r.updateFormState({paymentProviderFormLoaded:!0})})),window.Z.render(a,o,(n=>{if("true"!==n.success)return console.error("Payment failed",n),void r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]});r.updateFormState({paymentFormComplete:!0,paymentProviderVendorFields:{currency:Kn(e,t),detail:JSON.stringify({creditCardCountry:n.creditCardCountry,creditCardState:n.creditCardState,refId:n.refId,email:n.email}),...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult)}:{}}}),r.completeSection()}))}))},preLoader:Wn,completer:(e,t,r)=>{if(!vt(e).changeSubscriptionMode&&!t.paymentProviderVendorFields)return console.error("Flow error - no Zuora vendor fields found"),r.updateFormState({serverErrors:[Ze.PAYMENT_PROCESSING_ERROR]}),Promise.resolve();const{url:n,body:a,method:o}=fn(e,t,un,t.paymentProviderVendorFields),i=vt(e).changeSubscriptionMode?a:{...a,plan_id:`zuora-billing_product_rate_plan-${a.plan_id}-unused`};return pn(n,{method:o,bodyObject:i},r).then((e=>{if(!e?.ok)return console.error("Error when subscribing",e),Promise.reject()}))},changePaymentCompleter:(e,t,r)=>{console.log(t.paymentProviderVendorFields);const n=JSON.parse(t.paymentProviderVendorFields?.detail).refId;return pn("plugins/public/zuora-billing/update-account",{method:"POST",bodyObject:{paymentMethodId:n}},r).then((e=>{if(!e?.ok)return console.error("Error when changing default payment method",e),Promise.reject()}))},component:class extends de{constructor(e){super(),ue(this,e,an,nn,i,{onMountCallback:4,isDisabled:0,providerError:1,isLoaded:2,error:3})}},preLoaderComponent:class extends de{constructor(e){super(),ue(this,e,sn,on,i,{onMountCallback:0})}},promoCodeCheckPath:"",promoCodeServiceOverride:async(e,t,r)=>(async(e,t,r)=>{if(e.environment.previewMode)return;const n=vt(e).dynamicOffer?.id;if(!n)throw Error("Missing Dynamic Offer id");let a;try{a=document.cookie.match(/blaize_session=[0-9a-z-]+/)[0].substring(15)}catch{a=null}const o=(t?.dynamicOfferResult?.products??[]).flatMap((e=>e.paymentPlans.map((t=>({id:e.id,payment_plan:{provider:"zuora-billing",plan_id:t.planId,charges:t.charges.map((e=>({charge_definition_id:e.chargeDefinitionData.productChargeDefinitionId,currency:e.prices[0]?.currency,price:e.prices[0].price})))}}))))),i=await pn("zephr/public/decisions/v1/promo-codes",{method:"POST",bodyObject:{promo_code:t.promoCode,session:a,selected_products:o}},r,"promo-code");if(!i.ok)return Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.PROMO_CODE_INVALID_ERROR],discountedPlanPrices:[]}));const s=await i.json(),c=s?.products?.find((e=>e.id===t.paymentOption.productId&&e.paymentPlans.some((e=>e.planId===t.paymentOption.slug))));if(!c)return Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.PROMO_CODE_INVALID_ERROR],discountedPlanPrices:[]}));const l=r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:[],originalDynamicOfferResult:t.dynamicOfferResult,dynamicOfferResult:{...t.dynamicOfferResult,...s}});await Mn(e,l,r)})(e,t,r),priceCalculator:(e,t,r)=>Wn().then((()=>ma(e,t,r))).then((r=>({slug:t.paymentOption.slug,productId:t.paymentOption.productId,promoCode:t.promoCode,addonPrices:[],totalPrice:r.amount,totalPriceFormattedString:wn(r.amount,Kn(e,t)),netPrice:r.amountWithoutTax,netPriceFormattedString:wn(r.amountWithoutTax,Kn(e,t)),taxPrice:r.taxAmount||null,taxPriceFormattedString:r.taxAmount?wn(r.taxAmount,Kn(e,t)):null,discountPrice:0,discountPriceFormattedPrice:wn(0,Kn(e,t)),chargeItems:[...Object.values(r.invoiceItems)].filter((e=>e.chargeAmount)).map((r=>({label:r.chargeName,priceFormattedString:wn(r.chargeAmount,Kn(e,t))}))),billingAddress:t.billingAddress}))),existingSubscriptionLoader:(e,t,r,n)=>pn("plugins/public/zuora-billing/subscriptions",{method:"GET"},r,null,!0).then((e=>e.json())).then((e=>[...Object.values(e.subscriptions)])).then((r=>r.filter((e=>!n||"active"===e.status?.toLowerCase())).map((r=>{const n=[...Object.values(r.ratePlans)],a=1===n.length?n:n.filter((e=>"Add"===e.lastChangeType));if(1!==a.length&&console.warn(`Subscription ${r.id} has ${a.length} active rate plans`,n),a[0]&&!vt(e).dynamicOffer?.id&&Kn(e,t)&&![...Object.values(a[0].ratePlanCharges??{})].every((r=>r?.currency===Kn(e,t))))return console.log(`Subscription ${r.id} is not in the form currency`),null;const o=r.contractedMrr&&r.currency&&r.currentTermPeriodType?`${r.currency} ${r.contractedMrr}`:"";return{externalId:r.id,productId:r.SubscriptionExperienceProductID__c,productLabel:a[0]?.productName,planId:a[0]?.productRatePlanId,planLabel:null,currency:a[0]?.ratePlanCharges[0]?.currency,status:Sa[r.status?.toLowerCase()]??"inactive",amount:o}})).filter((e=>e&&null!=e.planId&&null!=e.productId)))),changeSubscriptionProrateCalculator:(e,t,r)=>{const n=t.validChangeFromPlans.find((e=>t.paymentOption.slug===e.planSlug&&t.paymentOption.productId===e.productId))?.changesFromSubscription;if(n)return pn("plugins/public/zuora-billing/subscription-change-preview",{method:"POST",bodyObject:{subscriptionId:n.externalId,newProductRatePlanId:t.paymentOption.slug,currency:Kn(e,t),...t.dynamicOfferResult?{dynamicOfferResult:JSON.stringify(t.dynamicOfferResult),productId:t.paymentOption.productId}:{}}},r).then((e=>e.json())).then((r=>({totalPrice:r.amount,totalPriceFormattedString:wn(r.amount,Kn(e,t)),subTotalPrice:r.amountWithoutTax,subTotalPriceFormattedString:wn(r.amountWithoutTax,Kn(e,t))})));console.error("No valid change from subscription")},hasProductAddons:!1,hasPromoCodes:e=>vt(e).dynamicOffer&&!vt(e).changeSubscriptionMode,internalSubmit:e=>!vt(e).changeSubscriptionMode,noPaymentForm:e=>vt(e).changeSubscriptionMode,canAttemptIncompletePaymentFormSubmission:!1}},Oa={[cn]:{loader:async(e,t,r)=>{await Cn(e,t,r),await vn(e,t,r)},completer:(e,t,r)=>{const{url:n,body:a,method:o}=fn(e,t,cn,{payment_nonce:t.mobilePaymentMethodId,vault_payment_method:!0});return pn(n,{method:o,bodyObject:a},r).then((e=>{if(!e?.ok)throw e}))},component:class extends de{constructor(e){super(),ue(this,e,Hr,qr,i,{onMountCallback:1,isDisabled:0,disableCoreDependencyHeader:2})}},previewMode:e=>e.environment.previewMode},[ln]:{loader:async(e,t,r)=>{const n=JSON.parse(e.organisationConfiguration?.stripeMobilePaymentConfig??"{}"),a=document.getElementById("stripe-mobile-pay-button");return n?.google||n?.apple?jn.then((async()=>await Un(r))).then((o=>{t=r.getFormState();const i=Ln(t.paymentOption.currencyCode.toUpperCase())?1:100,s={country:n.google?.countryCode??n.apple?.countryCode,currency:t.paymentOption.currencyCode.toLowerCase(),total:{label:t.paymentOption.label,amount:parseFloat((t.paymentOptionPrices.totalPrice*i).toFixed(2))},requestPayerName:!0},c=o.paymentRequest(s),l=o.elements().create("paymentRequestButton",{paymentRequest:c});c.canMakePayment().then((n=>{if(!n||!n.googlePay&&!n.applePay)return console.warn("Cannot make mobile payments on this browser",n),void(a.style.display="none");l.mount("#stripe-mobile-pay-button"),c.on("paymentmethod",(a=>{qn(t,r,o,a,n,e)}))}))})).catch((e=>{console.error(e),r.updateFormState({serverErrors:[Ze.UNKNOWN]})})):(a.style.display="none",void console.error("Stripe Mobile payments are not configured in the console"))},completer:Bn,component:class extends de{constructor(e){super(),ue(this,e,Xr,Zr,i,{onMountCallback:2,isDisabled:0,disableCoreDependencyHeader:1})}},previewMode:e=>e.environment.previewMode}},wa=e=>{const t=Ta[e];if(!t)throw`Payment provider ${e} not configured.`;return t},Ia=e=>{const t=Oa[e];if(!t)throw`Mobile payment provider ${e} not configured.`;return t};function _a(e){let t,r;return t=new Vt({props:{error:e[0]?.message??e[1]??"",isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,[r]){const n={};3&r&&(n.error=e[0]?.message??e[1]??""),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ra(e,t,r){let{providerError:n}=t,{error:a=null}=t;return e.$$set=e=>{"providerError"in e&&r(0,n=e.providerError),"error"in e&&r(1,a=e.error)},[n,a]}class Ma extends de{constructor(e){super(),ue(this,e,Ra,_a,i,{providerError:0,error:1})}}const $a={matches:e=>e.type===Ce||e.type===He,create:(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider);return n.noPaymentForm(e)?{component:Ma,props:{providerError:t.paymentProviderError},isValid:!0}:{component:n.component,props:{isLoaded:t.paymentProviderFormLoaded,providerError:t.paymentProviderError,isComplete:t.paymentFormComplete,isDisabled:n.internalSubmit(e)?!t.canAttemptSectionCompletion:t.isBusy||null!=t.mobilePaymentService,onMountCallback:()=>{r.updateFormState({paymentProviderFormLoaded:!1}),n.loader(e,t,r)}},isValid:n.internalSubmit(e)?void 0:t.paymentFormComplete&&!t.paymentProviderError}}},La=e=>e.parts.flatMap((e=>e.sections)).flatMap((e=>e.elements)).some((e=>e.type===Ce&&!1!==e.config?.enabled)),Na={matches:e=>e.type===xe,create:(e,t,r)=>{const n=Ia(e.organisationConfiguration.paymentProvider);return e.environment.previewMode?null:{component:n.component,props:{isDisabled:t.isBusy||null!=t.mobilePaymentService,onMountCallback:()=>n.loader(e,t,r),disableCoreDependencyHeader:La(e)}}}};function xa(t){let r,n,a,o,i,s;return{c(){r=A("div"),n=A("img"),o=C(),i=A("div"),s=E(t[0]),O(n,"class","check-image svelte-12ljnq4"),c(n.src,a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABiCAYAAABAkr0NAAAJa0lEQVR4Xu2dT28TRxTA39oGUsHBiC/giKT/LiRHpBYIUPWQEmfVD9BwrQoJpZW4JbkhtRUO9E74AO3GQTkVCLSVOGIurVRCky/QkgNIodjezoxjsrZ3Zt7Mzu7OOraEkOLZ9Zv3m3lv/rx540BWPtc2S1Cvl6DplJjITb/1f/CTc7bAgW1w/G0oFLbg+vBWFqrnWCfkwmYRXtbH4HVuDPJwwp24MBNFRu9BtUbAERjOIzjUrMH3ow+jvC+OZ+2AQFv5q+Y0gF92z0+diaOiwXd691YJCKcKh3MrNvSW9CDQFv9Pk7TyZBTPA8t6iuMswVD+YVpAkofwzbMzUPdn3InpL+Ju8arv99bvLsNQbjFpGMlBoMp/7cwnYW5Uld9dnpmrQ/5iUv4jfgjfbo7BTuOGKeUzBeWpow35NPwi+WsRcn7RPVseiwwjoZ4RHwRq87fr8+5EeU5HGS1lw1PIE1t9AGpaJoI2gCaUoEFGWw3ntG5D8NarFRgqLGnJgKh8PBCI6XE/Lq8jfr+jiLe+ugQFfwWOFGqwMLyt+jyqfASfROS7CJWRZdTvKBQyC0Gj9Sdtfzt0c3VzGhpvplUGCaxXFAuLJhuJOQhkrO+enNzENgBSmUVSmYrJymB/u6fctT9LsJNfUILxeG3YlHkyA+HqxrR7asrDKMEq5XcLrAjD+3XVhR9GVjD1FpWJDuHy83n33IUFmSDM7Bx+cxGufxA+spG9IMnvFWB49+8uwM3ji1HEiwYBC8BQi4lSUa1nv96YcU9P3ZY9GxWEPgQEANb6j+VdK+y+TJO875G9IgoIPQgoAHevwK3jFd26W/fc3DPiuMvzIrl0QahDwAD4rTqR1JQ/UViI+Y8OCDUIlzdn3XOTwtbtPf6JDN0y4Hx16RHz5J78XDgU9+79TKzA+2grgIdAlgDcjyafCLtjvwNoVx4D4ve1cfhuuIZhjYOAmIj1fQ8ImVNIewRyQoeDcGljXbT4te8AIHsEGx3eGpmQ9QY5BIkj9hS6nUyYTH4vMdMY/yCGIDFD3r0+G4bqtgLJpM6TmCUxhNlnT3ibI2wNqDIqXa7QrVfmnpt7XiGRIbNhcsvMEh+CjG75D7kpy5wmIwhMl/Ff1Nf5jZa/F8FVpFv90OeJtG8dsYyRzD88WTsatoQTDkHgjAdmSEJCsLzB010vBJkzHpghMQViltzxyRdcKxLSG3ohCHxBXHussl6eue/Jtql7ajJ0kyusN/RAEPqCQS/AtwfBBNfr0mMnhEEvwCtZVlKw4ur9QrZFf9zbFu2EoEBPJsPge6IBjj675w17EAQOeeALNJvUpedz7vkLN0IncAEHvQdB9MB+8AU0PH+IHDAxGXQmGCkFHfQehNm/yRLFZz3xmyxSuXL8omZbsP+xrgmWzs6YsJKc5YygSWpBEJmift2qpPXmzHCNml+Rg941SS0IolFRv5oiwRKDd9+rws33yMkhMx/esL8NuwVh7q/lsBDAvjVFsjUewxBk+m1B4PqDeKKQzbQvzbdg9spNb1RJLI0DIg/ebxv3GADrayT8fXhZE3H4Y4LAAI/4BQdEjqOf/EFaAHaxcP0CGfg4wJkfyHaDjLaUuF+WMgBWvcsbK+65qXJ3VekWsQO8cSw9NVMZ0TrqFLdOld5vAwA2+Anf/qSnkxwRoczHktoCgELgWRwyEiPmKDymyMv6JM0mABTCV2SP4ZPePQbvwUrNETmMzAb12gaAQviShJF+Gh5GyocQ1/A0EFTMUhq8U3BNnf1ivsJGAFQuwTA1WQicSYssOArtiG0FYBUEzjCNyhgZhM0AsgIhEgjbAVgFAXPSBRlO/tZEZQGAVRDYpAVx9gsLIisAtCGYXkkMelcTILIEgNZdYAUc7jJ2V1gGeoSCLRgFRNYACCDQNbp0ly10QGQRgHTZIu0FPBUQWQUgXcATLCyZ3GcVWikMCJKaQZbExItjQwZrXmXluIFgdCnblk0dBAhRPa0GQAQXb+rYtL2pCcJ2AMKQIra9KaIUU7qxqKYp+Lz1AKiwvDUzsowNS++O2xnyguwRmQDAnLI4pMje4C8JiMwAQFiaFgSRX0hzh40DIksAhAOf3T2bQFQ2Z5sz7Q3/LhCZAiAyRbv+gBbZgyA6dcg5+ikbGhv7np4R3iGZf02HrhsTkP8i7tA0kA1hD4LIJA3SJ+jhEoU/BraPUcel+ioQTE+dWk/xe0Fn9pdOCJywDCpB5kNgtNQY4SGFQ5joI7SD3qAGROUocu9hcpGDzmp+UzX9RS+t0As6R0ftn9ZICxBd6v56g2pylvAEIxpJMvpLjRFqo5GcJRyCrDfEuf8cof6pP6qZnEUr6RQLXzxamDB65jd1DUYXQGiGBCvS4uxdojQL9DKHyuiV6KL3yRtEZog22qXRcV5NxRAkSVi9+6szcHPkTp+oUb8akszJskxpYghULEG6BTaJ2+/+QXYcF5GwUQ6BgZAlpzV3tYl+c0zhSZkjNpacltYNkxsaG7qYgq5i+UmDqatxPYHWAhPzs19AYAAomGk8BIR/YD6i30FgACgu/atBoFpGbML37YorJrQf4Yi7zaM6BCwIA7cuxWLLdV+KucBDAwAVRw8CFkRCF4jq6hX1HLs3uuHJ7u2MkrRXHwISBPMTaQSRoTQsKYS8xC8KgGg9oS0/wke0QKRz4bQWC3ZdfeO2rPW36hU9e360ntCuoSAjbrcSrIZBTc+/TXJ5k/wGRQbA0CaXGQhUIsSELgjEKhiKym8Nxc3domUOApWMXQXcJJfChV/mEGYaGIy8XzVxkaiy6dG4sp7dGV3ML5hcxjcLoa0F5J2Voaaq0LwTW04N2kheklvK6w65g3kq9NYPEci45j/xQNg1T7BzcE6lV3SYK3Y9vP8I8k4Ncvkt7J1lHUqkDvZNg1wND2fIvxMYRxveW823/uDvxAeh/SvIC0QxpoTt6DUdem38NoETfn18wy/pKrunZ9KGMJS/otUAMBXaLRM/hLYwGvZXoR5GiyZ9ZX1yEGLoGUY1T0c8dJAQp0/iCJw8hCCM/w4QW+3P8m5kMq3kUHtPTQ44VTiWWzY54lGRPT0IQSmp33h1kKRF9sum7LlwlNNW/OHcitGEVyqaD5S1A0K38Mx/5EgGe/805IijPVvuyWavUl9mZhrwFA41a3CkUEurxfNkthNCmLR0uFmvl8AvFMFvFKHpl3qK5Zwt9recvwWFwpYNrRzTWP4HK7laSxb9gaIAAAAASUVORK5CYII=")||O(n,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABiCAYAAABAkr0NAAAJa0lEQVR4Xu2dT28TRxTA39oGUsHBiC/giKT/LiRHpBYIUPWQEmfVD9BwrQoJpZW4JbkhtRUO9E74AO3GQTkVCLSVOGIurVRCky/QkgNIodjezoxjsrZ3Zt7Mzu7OOraEkOLZ9Zv3m3lv/rx540BWPtc2S1Cvl6DplJjITb/1f/CTc7bAgW1w/G0oFLbg+vBWFqrnWCfkwmYRXtbH4HVuDPJwwp24MBNFRu9BtUbAERjOIzjUrMH3ow+jvC+OZ+2AQFv5q+Y0gF92z0+diaOiwXd691YJCKcKh3MrNvSW9CDQFv9Pk7TyZBTPA8t6iuMswVD+YVpAkofwzbMzUPdn3InpL+Ju8arv99bvLsNQbjFpGMlBoMp/7cwnYW5Uld9dnpmrQ/5iUv4jfgjfbo7BTuOGKeUzBeWpow35NPwi+WsRcn7RPVseiwwjoZ4RHwRq87fr8+5EeU5HGS1lw1PIE1t9AGpaJoI2gCaUoEFGWw3ntG5D8NarFRgqLGnJgKh8PBCI6XE/Lq8jfr+jiLe+ugQFfwWOFGqwMLyt+jyqfASfROS7CJWRZdTvKBQyC0Gj9Sdtfzt0c3VzGhpvplUGCaxXFAuLJhuJOQhkrO+enNzENgBSmUVSmYrJymB/u6fctT9LsJNfUILxeG3YlHkyA+HqxrR7asrDKMEq5XcLrAjD+3XVhR9GVjD1FpWJDuHy83n33IUFmSDM7Bx+cxGufxA+spG9IMnvFWB49+8uwM3ji1HEiwYBC8BQi4lSUa1nv96YcU9P3ZY9GxWEPgQEANb6j+VdK+y+TJO875G9IgoIPQgoAHevwK3jFd26W/fc3DPiuMvzIrl0QahDwAD4rTqR1JQ/UViI+Y8OCDUIlzdn3XOTwtbtPf6JDN0y4Hx16RHz5J78XDgU9+79TKzA+2grgIdAlgDcjyafCLtjvwNoVx4D4ve1cfhuuIZhjYOAmIj1fQ8ImVNIewRyQoeDcGljXbT4te8AIHsEGx3eGpmQ9QY5BIkj9hS6nUyYTH4vMdMY/yCGIDFD3r0+G4bqtgLJpM6TmCUxhNlnT3ibI2wNqDIqXa7QrVfmnpt7XiGRIbNhcsvMEh+CjG75D7kpy5wmIwhMl/Ff1Nf5jZa/F8FVpFv90OeJtG8dsYyRzD88WTsatoQTDkHgjAdmSEJCsLzB010vBJkzHpghMQViltzxyRdcKxLSG3ohCHxBXHussl6eue/Jtql7ajJ0kyusN/RAEPqCQS/AtwfBBNfr0mMnhEEvwCtZVlKw4ur9QrZFf9zbFu2EoEBPJsPge6IBjj675w17EAQOeeALNJvUpedz7vkLN0IncAEHvQdB9MB+8AU0PH+IHDAxGXQmGCkFHfQehNm/yRLFZz3xmyxSuXL8omZbsP+xrgmWzs6YsJKc5YygSWpBEJmift2qpPXmzHCNml+Rg941SS0IolFRv5oiwRKDd9+rws33yMkhMx/esL8NuwVh7q/lsBDAvjVFsjUewxBk+m1B4PqDeKKQzbQvzbdg9spNb1RJLI0DIg/ebxv3GADrayT8fXhZE3H4Y4LAAI/4BQdEjqOf/EFaAHaxcP0CGfg4wJkfyHaDjLaUuF+WMgBWvcsbK+65qXJ3VekWsQO8cSw9NVMZ0TrqFLdOld5vAwA2+Anf/qSnkxwRoczHktoCgELgWRwyEiPmKDymyMv6JM0mABTCV2SP4ZPePQbvwUrNETmMzAb12gaAQviShJF+Gh5GyocQ1/A0EFTMUhq8U3BNnf1ivsJGAFQuwTA1WQicSYssOArtiG0FYBUEzjCNyhgZhM0AsgIhEgjbAVgFAXPSBRlO/tZEZQGAVRDYpAVx9gsLIisAtCGYXkkMelcTILIEgNZdYAUc7jJ2V1gGeoSCLRgFRNYACCDQNbp0ly10QGQRgHTZIu0FPBUQWQUgXcATLCyZ3GcVWikMCJKaQZbExItjQwZrXmXluIFgdCnblk0dBAhRPa0GQAQXb+rYtL2pCcJ2AMKQIra9KaIUU7qxqKYp+Lz1AKiwvDUzsowNS++O2xnyguwRmQDAnLI4pMje4C8JiMwAQFiaFgSRX0hzh40DIksAhAOf3T2bQFQ2Z5sz7Q3/LhCZAiAyRbv+gBbZgyA6dcg5+ikbGhv7np4R3iGZf02HrhsTkP8i7tA0kA1hD4LIJA3SJ+jhEoU/BraPUcel+ioQTE+dWk/xe0Fn9pdOCJywDCpB5kNgtNQY4SGFQ5joI7SD3qAGROUocu9hcpGDzmp+UzX9RS+t0As6R0ftn9ZICxBd6v56g2pylvAEIxpJMvpLjRFqo5GcJRyCrDfEuf8cof6pP6qZnEUr6RQLXzxamDB65jd1DUYXQGiGBCvS4uxdojQL9DKHyuiV6KL3yRtEZog22qXRcV5NxRAkSVi9+6szcHPkTp+oUb8akszJskxpYghULEG6BTaJ2+/+QXYcF5GwUQ6BgZAlpzV3tYl+c0zhSZkjNpacltYNkxsaG7qYgq5i+UmDqatxPYHWAhPzs19AYAAomGk8BIR/YD6i30FgACgu/atBoFpGbML37YorJrQf4Yi7zaM6BCwIA7cuxWLLdV+KucBDAwAVRw8CFkRCF4jq6hX1HLs3uuHJ7u2MkrRXHwISBPMTaQSRoTQsKYS8xC8KgGg9oS0/wke0QKRz4bQWC3ZdfeO2rPW36hU9e360ntCuoSAjbrcSrIZBTc+/TXJ5k/wGRQbA0CaXGQhUIsSELgjEKhiKym8Nxc3domUOApWMXQXcJJfChV/mEGYaGIy8XzVxkaiy6dG4sp7dGV3ML5hcxjcLoa0F5J2Voaaq0LwTW04N2kheklvK6w65g3kq9NYPEci45j/xQNg1T7BzcE6lV3SYK3Y9vP8I8k4Ncvkt7J1lHUqkDvZNg1wND2fIvxMYRxveW823/uDvxAeh/SvIC0QxpoTt6DUdem38NoETfn18wy/pKrunZ9KGMJS/otUAMBXaLRM/hLYwGvZXoR5GiyZ9ZX1yEGLoGUY1T0c8dJAQp0/iCJw8hCCM/w4QW+3P8m5kMq3kUHtPTQ44VTiWWzY54lGRPT0IQSmp33h1kKRF9sum7LlwlNNW/OHcitGEVyqaD5S1A0K38Mx/5EgGe/805IijPVvuyWavUl9mZhrwFA41a3CkUEurxfNkthNCmLR0uFmvl8AvFMFvFKHpl3qK5Zwt9recvwWFwpYNrRzTWP4HK7laSxb9gaIAAAAASUVORK5CYII="),O(n,"alt","Success indicator"),O(i,"class","zephr-form-success-message svelte-12ljnq4"),L(i,"zephr-payment-form-success-message",t[1])},m(e,t){g(e,r,t),y(r,n),y(r,o),y(r,i),y(i,s)},p(e,[t]){1&t&&_(s,e[0]),2&t&&L(i,"zephr-payment-form-success-message",e[1])},i:e,o:e,d(e){e&&h(r)}}}function Fa(e,t,r){let{text:n}=t,{isPaymentForm:a=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"isPaymentForm"in e&&r(1,a=e.isPaymentForm)},[n,a]}class za extends de{constructor(e){super(),ue(this,e,Fa,xa,i,{text:0,isPaymentForm:1})}}const ka={matches:e=>e.type===Te,create:(e,t,r,n)=>({component:za,props:{text:n?.text,isPaymentForm:e.formType===Et.PAYMENT}})},Da=(e,t)=>({identifiers:{email_address:t},delivery:{method:"email",destination:t,action:e,redirect:window.location.href.replace(window.location.origin,"")}}),Ua=async(e,t,r)=>{try{(await pn("blaize/token-exchange",{method:"POST",bodyObject:Da(e,t)},r)).ok||r.updateFormState({serverErrors:[Ze.UNKNOWN]})}catch(e){r.updateFormState({serverErrors:[Ze.UNKNOWN]})}},Ba=e=>e.formType===Et.REGISTRATION&&!1===vt(e).usePassword&&!0===e.organisationConfiguration.requireEmailVerfication&&!1===vt(e).useVerificationCodes,Va=async(e,t,r)=>qa(t,r).then((async n=>{if(!n.redirected){const a=200===n.status,o=e.parts.flatMap((e=>e.sections)).some((e=>e.type===tt.VERIFICATION_CODE_REGISTRATION.type)),i=!!a&&((await n.json()).contact&&o),s=a&&!i;r.updateFormState({userExists:s,emailIsContact:i});return Ba(e)?s?(Ua("login",t.emailAddress,r),at(tt.PASSWORDLESS_VIA_LOGIN_LINK.type,e,r)):ut(e,t,r):i||vt(e).useVerificationCodes||e.organisationConfiguration.twoFactorEmailAuthenticationEnabled?(ja(e,t,r),at(s?tt.VERIFICATION_CODE_LOGIN.type:tt.VERIFICATION_CODE_REGISTRATION.type,e,r)):at(s?tt.LOGIN_PASSWORD.type:tt.PASSWORD_SETUP.type,e,r)}window.location.replace(n.url)})),Ga=e=>({identifiers:{email_address:e.emailAddress},delivery:{method:"email",destination:e.emailAddress,action:e.userExists?"login":"register",redirect:window.location.href.replace(window.location.origin,"")}}),ja=async(e,t,r)=>{r.updateFormState({verificationCode:"",verificationCodeValid:void 0});const n=await pn("blaize/two-factor-authentication",{method:"POST",bodyObject:Ga(t)},r);return n.ok||r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_SEND_ERROR]}),n.ok},qa=async(e,t)=>(t.updateFormState({password:"",verificationCode:void 0,verificationCodeValid:void 0,forgotPassword:!1}),await pn("zephr/media/user/info",{method:"POST",bodyObject:{identifiers:{email_address:e.emailAddress}}},t)),Ha=async e=>await new Promise((t=>setTimeout(t,e.environment.reduceDelays?1:1500))),Ka=async(e,t,r)=>{r.incrementRequestCount(),r.updateFormState({verificationCodeValid:void 0});return(await pn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r)).ok?Ha(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(tt.PASSWORD_RESET.type)})):(r.updateFormState({serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]}),r.decrementRequestCount(),Promise.resolve())},Ya=async(e,t,r)=>{r.updateFormState({createPassword:"",confirmCreatePassword:"",forgotPassword:!0,verificationCode:""}),r.incrementRequestCount();return(await pn("zephr/users/reset",{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress}}},r)).ok?Ha(e).then((()=>{r.decrementRequestCount(),r.jumpToSection(tt.FORGOT_PASSWORD.type)})):(r.updateFormState({serverErrors:[Ze.PASSWORD_RESET_LINK_SEND_ERROR]}),r.decrementRequestCount(),Promise.resolve())},Wa=async(e,t,r)=>(await pn(`zephr/users/reset/${t.verificationCode}`,{method:"POST",bodyObject:{identifiers:{email_address:t.emailAddress},validators:{password:t.createPassword}}},r)).ok?(r.updateFormState({verificationCode:"",forgotPassword:!1}),r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)):(r.updateFormState({serverErrors:[Ze.PASSWORD_RESET_ERROR]}),Promise.resolve());function Qa(e){let t;function r(e,t){return e[12]&&!e[5]?Za:Ja}let n=r(e),a=n(e);return{c(){a.c(),t=S()},m(e,r){a.m(e,r),g(e,t,r)},p(e,o){n===(n=r(e))&&a?a.p(e,o):(a.d(1),a=n(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){e&&h(t),a.d(e)}}}function Ja(e){let t,r,n,a;return{c(){t=A("button"),r=E(e[3]),O(t,"class","zephr-form-verification-resend-link svelte-b6r3ph"),L(t,"zephr-payment-form-verification-resend-link",e[9])},m(o,i){g(o,t,i),y(t,r),n||(a=v(t,"click",e[13]),n=!0)},p(e,n){8&n&&_(r,e[3]),512&n&&L(t,"zephr-payment-form-verification-resend-link",e[9])},d(e){e&&h(t),n=!1,a()}}}function Za(e){let t,r;return{c(){t=A("div"),r=E(e[2]),O(t,"class","zephr-form-verification-resend-text svelte-b6r3ph"),L(t,"zephr-payment-form-verification-resend-text",e[9])},m(e,n){g(e,t,n),y(t,r)},p(e,n){4&n&&_(r,e[2]),512&n&&L(t,"zephr-payment-form-verification-resend-text",e[9])},d(e){e&&h(t)}}}function Xa(e){let t,r=e[3]&&Qa(e);return{c(){r&&r.c(),t=S()},m(e,n){r&&r.m(e,n),g(e,t,n)},p(e,n){e[3]?r?r.p(e,n):(r=Qa(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){e&&h(t),r&&r.d(e)}}}function eo(e){let t,r;return t=new ir({props:{icon:lr}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function to(e){let t,r;return t=new ir({props:{icon:cr,spin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function ro(e){let t,r,n,a,o,i,s,c;t=new Jt({props:{forInput:"zephr-form-verification-code",label:e[0],isPaymentForm:e[9]}}),a=new Kt({props:{id:"zephr-form-verification-code",value:e[8],placeholder:e[1],maxlength:6,hasError:null!=e[5],errorMessage:e[5],isPaymentForm:e[9],$$slots:{default:[Xa]},$$scope:{ctx:e}}}),a.$on("change",e[14]);let l=e[6]&&eo(),u=e[8]&&!e[6]&&e[7]&&to();return{c(){ie(t.$$.fragment),r=C(),n=A("div"),ie(a.$$.fragment),o=C(),i=A("div"),l&&l.c(),s=C(),u&&u.c(),O(i,"class","zephr-form-input-inner-text"),L(i,"zephr-payment-form-input-inner-text",e[9]),O(n,"class","zephr-form-relative-container zephr-form-verification-resend-link-container svelte-b6r3ph"),L(n,"zephr-payment-form-relative-container",e[9]),L(n,"zephr-payment-form-verification-resend-link-container",e[9])},m(e,d){se(t,e,d),g(e,r,d),g(e,n,d),se(a,n,null),y(n,o),y(n,i),l&&l.m(i,null),y(i,s),u&&u.m(i,null),c=!0},p(e,[r]){const o={};1&r&&(o.label=e[0]),512&r&&(o.isPaymentForm=e[9]),t.$set(o);const d={};256&r&&(d.value=e[8]),2&r&&(d.placeholder=e[1]),32&r&&(d.hasError=null!=e[5]),32&r&&(d.errorMessage=e[5]),512&r&&(d.isPaymentForm=e[9]),39468&r&&(d.$$scope={dirty:r,ctx:e}),a.$set(d),e[6]?l?64&r&&te(l,1):(l=eo(),l.c(),te(l,1),l.m(i,s)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),e[8]&&!e[6]&&e[7]?u?448&r&&te(u,1):(u=to(),u.c(),te(u,1),u.m(i,null)):u&&(X(),re(u,1,1,(()=>{u=null})),ee()),(!c||512&r)&&L(i,"zephr-payment-form-input-inner-text",e[9]),(!c||512&r)&&L(n,"zephr-payment-form-relative-container",e[9]),(!c||512&r)&&L(n,"zephr-payment-form-verification-resend-link-container",e[9])},i(e){c||(te(t.$$.fragment,e),te(a.$$.fragment,e),te(l),te(u),c=!0)},o(e){re(t.$$.fragment,e),re(a.$$.fragment,e),re(l),re(u),c=!1},d(e){e&&(h(r),h(n)),ce(t,e),ce(a),l&&l.d(),u&&u.d()}}}function no(e,t,r){let{label:n}=t,{placeholder:a}=t,{resendMessage:o=null}=t,{resendText:i=null}=t,{disabled:s}=t,{error:c=null}=t,{codeValid:l}=t,{formBusy:u}=t,{code:d}=t,{isPaymentForm:p=!1}=t,{onChange:m}=t,{onResendVerificationCode:f}=t,y=!1;return e.$$set=e=>{"label"in e&&r(0,n=e.label),"placeholder"in e&&r(1,a=e.placeholder),"resendMessage"in e&&r(2,o=e.resendMessage),"resendText"in e&&r(3,i=e.resendText),"disabled"in e&&r(4,s=e.disabled),"error"in e&&r(5,c=e.error),"codeValid"in e&&r(6,l=e.codeValid),"formBusy"in e&&r(7,u=e.formBusy),"code"in e&&r(8,d=e.code),"isPaymentForm"in e&&r(9,p=e.isPaymentForm),"onChange"in e&&r(10,m=e.onChange),"onResendVerificationCode"in e&&r(11,f=e.onResendVerificationCode)},[n,a,o,i,s,c,l,u,d,p,m,f,y,()=>{o&&(r(12,y=!0),setTimeout((()=>r(12,y=!1)),2e3)),f()},({detail:e})=>!s&&m(e)]}class ao extends de{constructor(e){super(),ue(this,e,no,ro,i,{label:0,placeholder:1,resendMessage:2,resendText:3,disabled:4,error:5,codeValid:6,formBusy:7,code:8,isPaymentForm:9,onChange:10,onResendVerificationCode:11})}}const oo=e=>6===e?.length,io={matches:e=>e.type===Pe,create:(e,t,r,n)=>({component:ao,props:{code:t.verificationCode,label:n.label,placeholder:n.placeholder,resendMessage:n.message,resendText:n.resendText,disabled:t.isBusy||t.verificationCodeValid,codeValid:t.verificationCodeValid,formBusy:t.isBusy,isPaymentForm:e.formType===Et.PAYMENT,onResendVerificationCode:()=>{(t.currentSection.type===tt.FORGOT_PASSWORD.type?Ya:ja)(e,t,r)},onChange:e=>{const a=r.updateFormState({verificationCodeValid:void 0,verificationCode:e,serverErrors:[]});if(oo(e)){if(n.verificationEvent)return void r.onEvent(n.verificationEvent);t.currentSection.type===tt.FORGOT_PASSWORD.type?r.completeSection():(async(e,t)=>{(await pn("zephr/media/user/otp-check",{method:"POST",bodyObject:{code:e.verificationCode,email:e.emailAddress}},t)).ok?(t.updateFormState({verificationCodeValid:!1,serverErrors:[]}),t.completeSection()):t.updateFormState({verificationCodeValid:!1,serverErrors:[Ze.VERIFICATION_CODE_INCORRECT]})})(a,r)}}},isValid:oo(t.verificationCode)})};function so(t){let r;return{c(){r=A("div"),O(r,"class","zephr-form-custom-text svelte-12fdogm"),M(r,"text-align",t[1]?"center":"initial"),L(r,"zephr-payment-form-custom-text",t[2])},m(e,n){g(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0]),2&t&&M(r,"text-align",e[1]?"center":"initial"),4&t&&L(r,"zephr-payment-form-custom-text",e[2])},i:e,o:e,d(e){e&&h(r)}}}function co(e,t,r){let{text:n}=t,{centerText:a=!1}=t,{isPaymentForm:o=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"centerText"in e&&r(1,a=e.centerText),"isPaymentForm"in e&&r(2,o=e.isPaymentForm)},[n,a,o]}class lo extends de{constructor(e){super(),ue(this,e,co,so,i,{text:0,centerText:1,isPaymentForm:2})}}const uo={matches:e=>e.type===Oe,create:(e,t,r,n)=>({component:lo,props:{text:n.text,centerText:n.centerText,isPaymentForm:e.formType===Et.PAYMENT}})};function po(r){let n,a,o,i,s,c,l,u,d=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"checkbox"},{class:"zephr-form-checkbox"}],p={};for(let e=0;e{"id"in e&&r(0,a=e.id),"name"in e&&r(1,o=e.name),"required"in e&&r(2,i=e.required),"disabled"in e&&r(3,s=e.disabled),"hasError"in e&&r(4,c=e.hasError),"isPaymentForm"in e&&r(5,l=e.isPaymentForm),"label"in e&&r(6,u=e.label),"value"in e&&r(10,d=e.value),"placeholder"in e&&r(11,p=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[a,o,i,s,c,l,u,m,y,e=>{n("change",e.target.checked)},d,p,f]}class fo extends de{constructor(e){super(),ue(this,e,mo,po,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function yo(r){let n,a,o,i,s,c,l,u,d=[{id:r[0]},{name:r[1]},{required:r[2]},{disabled:r[3]},r[8],{type:"radio"},{class:"zephr-form-input-radio"}],p={};for(let e=0;e{"id"in e&&r(0,a=e.id),"name"in e&&r(1,o=e.name),"required"in e&&r(2,i=e.required),"disabled"in e&&r(3,s=e.disabled),"hasError"in e&&r(4,c=e.hasError),"isPaymentForm"in e&&r(5,l=e.isPaymentForm),"label"in e&&r(6,u=e.label),"value"in e&&r(10,d=e.value),"placeholder"in e&&r(11,p=e.placeholder),"checked"in e&&r(7,m=e.checked),"pattern"in e&&r(12,f=e.pattern)},[a,o,i,s,c,l,u,m,y,e=>{n("change",e.target.value)},d,p,f]}class ho extends de{constructor(e){super(),ue(this,e,go,yo,i,{id:0,name:1,required:2,disabled:3,hasError:4,isPaymentForm:5,label:6,value:10,placeholder:11,checked:7,pattern:12})}}function bo(e,t,r){const n=e.slice();return n[17]=t[r],n}function Ao(e,t,r){const n=e.slice();return n[17]=t[r],n}function Po(e){let t,r;return t=new Kt({props:{id:e[8],name:e[0].slug,required:e[0].required||e[1]?.required,type:e[1]?.["input-type"],value:e[2],checked:"checkbox"===e[1]?.["input-type"]&&e[2],pattern:e[1]?.["validation-expression"],placeholder:e[0].placeholder,hasError:e[6],isPaymentForm:e[3]}}),t.$on("change",e[16]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.name=e[0].slug),3&r&&(n.required=e[0].required||e[1]?.required),2&r&&(n.type=e[1]?.["input-type"]),4&r&&(n.value=e[2]),6&r&&(n.checked="checkbox"===e[1]?.["input-type"]&&e[2]),2&r&&(n.pattern=e[1]?.["validation-expression"]),1&r&&(n.placeholder=e[0].placeholder),64&r&&(n.hasError=e[6]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Eo(e){let t,r,n,a;r=new Kt({props:{id:e[8],required:e[0].required||e[1]?.required,type:e[1]["input-type"],value:e[2],min:e[1]["range-start"],max:e[1]["range-end"],step:e[1]["range-start"],isPaymentForm:e[3]}}),r.$on("change",e[15]);let o="range"===e[1]["input-type"]&&null!=e[2]&&Oo(e);return{c(){t=A("div"),ie(r.$$.fragment),n=C(),o&&o.c(),O(t,"class","zephr-form-flex-container"),L(t,"zephr-payment-form-flex-container",e[3])},m(e,i){g(e,t,i),se(r,t,null),y(t,n),o&&o.m(t,null),a=!0},p(e,n){const i={};3&n&&(i.required=e[0].required||e[1]?.required),2&n&&(i.type=e[1]["input-type"]),4&n&&(i.value=e[2]),2&n&&(i.min=e[1]["range-start"]),2&n&&(i.max=e[1]["range-end"]),2&n&&(i.step=e[1]["range-start"]),8&n&&(i.isPaymentForm=e[3]),r.$set(i),"range"===e[1]["input-type"]&&null!=e[2]?o?o.p(e,n):(o=Oo(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null),(!a||8&n)&&L(t,"zephr-payment-form-flex-container",e[3])},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){re(r.$$.fragment,e),a=!1},d(e){e&&h(t),ce(r),o&&o.d()}}}function Co(t){let r,n,a,o,i;return{c(){r=A("textarea"),O(r,"id",t[8]),O(r,"class","zephr-form-input zephr-form-input-textarea svelte-1f2hwm0"),r.required=n=t[0].required||t[1]?.required,O(r,"placeholder",a=t[0].placeholder),L(r,"zephr-payment-form-input",t[3]),L(r,"zephr-payment-form-input-textarea",t[3])},m(e,n){g(e,r,n),R(r,t[5]),o||(i=v(r,"input",t[14]),o=!0)},p(e,t){3&t&&n!==(n=e[0].required||e[1]?.required)&&(r.required=n),1&t&&a!==(a=e[0].placeholder)&&O(r,"placeholder",a),32&t&&R(r,e[5]),8&t&&L(r,"zephr-payment-form-input",e[3]),8&t&&L(r,"zephr-payment-form-input-textarea",e[3])},i:e,o:e,d(e){e&&h(r),o=!1,i()}}}function So(t){let r,n,a,o,i,s,c,l,u=(t[0].placeholder??"")+"",d=ne(t[1]?.["select-options"]),p=[];for(let e=0;ere(a[e],1,1,(()=>{a[e]=null}));return{c(){for(let e=0;e{i[c]=null})),ee(),r=i[t],r?r.p(e,a):(r=i[t]=o[t](e),r.c()),te(r,1),r.m(n.parentNode,n))},i(e){a||(te(r),a=!0)},o(e){re(r),a=!1},d(e){e&&h(n),i[t].d(e)}}}function Ro(e){let t;return{c(){t=A("div"),t.textContent="Mandatory information must be entered",O(t,"class","zephr-form-input-error-text svelte-1f2hwm0"),L(t,"zephr-payment-form-input-error-text",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-input-error-text",e[3])},d(e){e&&h(t)}}}function Mo(e){let t,r,n,a;t=new Jt({props:{forInput:e[8],sublabel:e[1]["public-description"],label:/(hidden|checkbox)/.test(e[1]?.["input-type"]||"")?"":`${e[0].label}${e[0].required||e[1]?.required?"*":""}`,isPaymentForm:e[3],$$slots:{default:[_o]},$$scope:{ctx:e}}});let o=e[6]&&Ro(e);return{c(){ie(t.$$.fragment),r=C(),o&&o.c(),n=S()},m(e,i){se(t,e,i),g(e,r,i),o&&o.m(e,i),g(e,n,i),a=!0},p(e,[r]){const a={};2&r&&(a.sublabel=e[1]["public-description"]),3&r&&(a.label=/(hidden|checkbox)/.test(e[1]?.["input-type"]||"")?"":`${e[0].label}${e[0].required||e[1]?.required?"*":""}`),8&r&&(a.isPaymentForm=e[3]),4194431&r&&(a.$$scope={dirty:r,ctx:e}),t.$set(a),e[6]?o?o.p(e,r):(o=Ro(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i(e){a||(te(t.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),a=!1},d(e){e&&(h(r),h(n)),ce(t,e),o&&o.d(e)}}}function $o(e,t,r){let n,{formKey:a}=t,{config:o}=t,{attributeSchema:i}=t,{value:s}=t,{error:c}=t,{isPaymentForm:l=!1}=t,{onChange:u}=t,d=s;const p=e=>e,m=`zephr-form-${o.slug}-${a}`;return e.$$set=e=>{"formKey"in e&&r(9,a=e.formKey),"config"in e&&r(0,o=e.config),"attributeSchema"in e&&r(1,i=e.attributeSchema),"value"in e&&r(2,s=e.value),"error"in e&&r(10,c=e.error),"isPaymentForm"in e&&r(3,l=e.isPaymentForm),"onChange"in e&&r(4,u=e.onChange)},e.$$.update=()=>{1024&e.$$.dirty&&r(6,n=!!c),54&e.$$.dirty&&"textarea"===i?.["input-type"]&&d!==s&&u(d)},[o,i,s,l,u,d,n,p,m,a,c,({detail:e})=>u(e),({detail:e})=>u(e),e=>u(e.target.value),function(){d=this.value,r(5,d)},({detail:e})=>u(e),({detail:e})=>u(e)]}class Lo extends de{constructor(e){super(),ue(this,e,$o,Mo,i,{formKey:9,config:0,attributeSchema:1,value:2,error:10,isPaymentForm:3,onChange:4})}}const No=e=>null==e||""===e,xo={matches:e=>e.type===we,create:(e,t,r,n)=>{const a=e.organisationConfiguration.schemaFields.find((e=>e.slug===n.slug)),o=t.hideIfSetAttributes?.includes(n.slug);if(null==a||o)return;const i=a.required||n.required,s=t.userAttributes[n.slug]??(t.readOnlyAttributeValues??{})[n.slug];return{component:Lo,props:{formKey:e.uniqueKey,config:n,value:s,attributeSchema:a,isPaymentForm:e.formType===Et.PAYMENT,onChange:e=>{r.updateFormState({userAttributes:{...t.userAttributes,[n.slug]:e}})}},isValid:!(i&&No(s)||i&&"checkbox"===a["input-type"]&&!s||"email"===a["input-type"]&&!No(s)&&!Ur(s))}}};function Fo(t){let r,n,a,o;return{c(){r=A("button"),n=E(t[0]),O(r,"type","button"),O(r,"class","zephr-form-link svelte-1mdtotm"),L(r,"zephr-form-link-disabled",t[1]),L(r,"zephr-form-link-no-underline",t[3])},m(e,i){g(e,r,i),y(r,n),a||(o=v(r,"click",t[5]),a=!0)},p(e,[t]){1&t&&_(n,e[0]),2&t&&L(r,"zephr-form-link-disabled",e[1]),8&t&&L(r,"zephr-form-link-no-underline",e[3])},i:e,o:e,d(e){e&&h(r),a=!1,o()}}}function zo(e,t,r){let{text:n}=t,{disabled:a=!1}=t,{onClick:o=(()=>{})}=t,{noUnderline:i=!1}=t;const s=D();return e.$$set=e=>{"text"in e&&r(0,n=e.text),"disabled"in e&&r(1,a=e.disabled),"onClick"in e&&r(2,o=e.onClick),"noUnderline"in e&&r(3,i=e.noUnderline)},[n,a,o,i,s,()=>{o(),s("linkClick",null)}]}class ko extends de{constructor(e){super(),ue(this,e,zo,Fo,i,{text:0,disabled:1,onClick:2,noUnderline:3})}}function Do(e){let t,r;return t=new ko({props:{text:e[0],onClick:e[2]}}),t.$on("linkClick",e[7]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),4&r&&(n.onClick=e[2]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Uo(t){let r,n;return{c(){r=A("div"),n=E(t[1]),O(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2&t&&_(n,e[1])},i:e,o:e,d(e){e&&h(r)}}}function Bo(e){let t,r;return t=new Vt({props:{error:e[3],isPaymentForm:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.error=e[3]),32&r&&(n.isPaymentForm=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Vo(e){let t,r,n,a,o;const i=[Uo,Do],s=[];function c(e,t){return e[6]&&!e[3]?0:1}r=c(e),n=s[r]=i[r](e);let l=e[3]&&Bo(e);return{c(){t=A("div"),n.c(),a=C(),l&&l.c(),O(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),L(t,"zephr-payment-form-flex-container",e[5])},m(e,n){g(e,t,n),s[r].m(t,null),y(t,a),l&&l.m(t,null),o=!0},p(e,[u]){let d=r;r=c(e),r===d?s[r].p(e,u):(X(),re(s[d],1,1,(()=>{s[d]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,a)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=Bo(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!o||32&u)&&L(t,"zephr-payment-form-flex-container",e[5])},i(e){o||(te(n),te(l),o=!0)},o(e){re(n),re(l),o=!1},d(e){e&&h(t),s[r].d(),l&&l.d()}}}function Go(e,t,r){let{text:n}=t,{message:a}=t,{onClick:o}=t,{error:i=null}=t,{delayMs:s}=t,{isPaymentForm:c=!1}=t,l=!1;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"message"in e&&r(1,a=e.message),"onClick"in e&&r(2,o=e.onClick),"error"in e&&r(3,i=e.error),"delayMs"in e&&r(4,s=e.delayMs),"isPaymentForm"in e&&r(5,c=e.isPaymentForm)},[n,a,o,i,s,c,l,()=>{a&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class jo extends de{constructor(e){super(),ue(this,e,Go,Vo,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const qo={matches:e=>e.type===Ie,create:(e,t,r,n)=>({component:jo,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===Et.PAYMENT,onClick:()=>Ya(e,t,r)}})};function Ho(e){let t,r;return t=new ko({props:{text:e[0],onClick:e[2]}}),t.$on("linkClick",e[7]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),4&r&&(n.onClick=e[2]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ko(t){let r,n;return{c(){r=A("div"),n=E(t[1]),O(r,"class","zephr-form-link-message svelte-11qigta")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2&t&&_(n,e[1])},i:e,o:e,d(e){e&&h(r)}}}function Yo(e){let t,r;return t=new Vt({props:{error:e[3],isPaymentForm:e[5]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.error=e[3]),32&r&&(n.isPaymentForm=e[5]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Wo(e){let t,r,n,a,o;const i=[Ko,Ho],s=[];function c(e,t){return e[6]&&!e[3]?0:1}r=c(e),n=s[r]=i[r](e);let l=e[3]&&Yo(e);return{c(){t=A("div"),n.c(),a=C(),l&&l.c(),O(t,"class","zephr-form-flex-container zephr-form-reset-link-container svelte-11qigta"),L(t,"zephr-payment-form-flex-container",e[5])},m(e,n){g(e,t,n),s[r].m(t,null),y(t,a),l&&l.m(t,null),o=!0},p(e,[u]){let d=r;r=c(e),r===d?s[r].p(e,u):(X(),re(s[d],1,1,(()=>{s[d]=null})),ee(),n=s[r],n?n.p(e,u):(n=s[r]=i[r](e),n.c()),te(n,1),n.m(t,a)),e[3]?l?(l.p(e,u),8&u&&te(l,1)):(l=Yo(e),l.c(),te(l,1),l.m(t,null)):l&&(X(),re(l,1,1,(()=>{l=null})),ee()),(!o||32&u)&&L(t,"zephr-payment-form-flex-container",e[5])},i(e){o||(te(n),te(l),o=!0)},o(e){re(n),re(l),o=!1},d(e){e&&h(t),s[r].d(),l&&l.d()}}}function Qo(e,t,r){let{text:n}=t,{message:a}=t,{onClick:o}=t,{error:i=null}=t,{delayMs:s}=t,{isPaymentForm:c=!1}=t,l=!1;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"message"in e&&r(1,a=e.message),"onClick"in e&&r(2,o=e.onClick),"error"in e&&r(3,i=e.error),"delayMs"in e&&r(4,s=e.delayMs),"isPaymentForm"in e&&r(5,c=e.isPaymentForm)},[n,a,o,i,s,c,l,()=>{a&&(r(6,l=!0),setTimeout((()=>r(6,l=!1)),s))}]}class Jo extends de{constructor(e){super(),ue(this,e,Qo,Wo,i,{text:0,message:1,onClick:2,error:3,delayMs:4,isPaymentForm:5})}}const Zo={matches:e=>e.type===_e,create:(e,t,r,n)=>({component:Jo,props:{text:n.text,message:n.message,delayMs:e.environment.reduceDelays?1:3e3,isPaymentForm:e.formType===Et.PAYMENT,onClick:async()=>{await Ua("login",t.emailAddress,r)}}})},Xo=(e,t)=>r=>{if(r?.data?.fromZephr)if(window.removeEventListener("message",window.zephrOAuthListener),e.environment.debugLogging&&console.log("Social signin message:",r),"register"===r.data.action){const n=t.updateFormState({emailAddress:r.data.identifier,socialSigninToken:r.data.stateKey,userAttributes:r.data.userAttributes??{},socialSignin:!0,userExists:!1,emailIsContact:void 0});if(e.organisationConfiguration.requireEmailVerfication)return void ja(e,n,t);ut(e,n,t)}else"otp"==r.data.action?(t.updateFormState({emailAddress:r.data.identifier,socialSigninToken:r.data.stateKey,userAttributes:r.data.userAttributes??{},socialSignin:!0,userExists:!0,emailIsContact:!1}),t.jumpToSection(tt.VERIFICATION_CODE_LOGIN.type)):"login"===r.data.action?(document.cookie=r.data.cookie,t.updateFormState({socialSignin:!0,userExists:!0,loginRegistrationComplete:!0,emailIsContact:!1}),t.onEvent(We.LOGIN_REGISTRATION_COMPLETE)):t.updateFormState({socialSigninError:r.data.message??"Something went wrong. Please try again later!"})};var ei={prefix:"fab",iconName:"microsoft",icon:[448,512,[],"f3ca","M0 32h214.6v214.6H0V32zm233.4 0H448v214.6H233.4V32zM0 265.4h214.6V480H0V265.4zm233.4 0H448V480H233.4V265.4z"]},ti={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},ri={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},ni={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},ai={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function oi(t){let r,n,a,o,i;return{c(){r=P("svg"),n=P("path"),a=P("path"),o=P("path"),i=P("path"),O(n,"d","M533.5 278.4c0-18.5-1.5-37.1-4.7-55.3H272.1v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z"),O(n,"fill","#4285f4"),O(a,"d","M272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3H28.9v70.1c46.2 91.9 140.3 149.9 243.2 149.9z"),O(a,"fill","#34a853"),O(o,"d","M119.3 324.3c-11.4-33.8-11.4-70.4 0-104.2V150H28.9c-38.6 76.9-38.6 167.5 0 244.4l90.4-70.1z"),O(o,"fill","#fbbc04"),O(i,"d","M272.1 107.7c38.8-.6 76.3 14 104.4 40.8l77.7-77.7C405 24.6 339.7-.8 272.1 0 169.2 0 75.1 58 28.9 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z"),O(i,"fill","#ea4335"),O(r,"class","zephr-form-social-sign-in-icon zephr-form-google-icon svelte-155mfls"),O(r,"viewBox","0 0 533.5 544.3"),O(r,"xmlns","http://www.w3.org/2000/svg")},m(e,t){g(e,r,t),y(r,n),y(r,a),y(r,o),y(r,i)},p:e,i:e,o:e,d(e){e&&h(r)}}}class ii extends de{constructor(e){super(),ue(this,e,null,oi,i,{})}}function si(e,t,r){const n=e.slice();return n[8]=t[r],n}function ci(e){let t,r,n,a,o,i,s,c,l,u,d,p,m=e[8]+"";const f=[ui,li],b=[];function P(e,t){return"Google"===e[8]?0:1}function S(){return e[6](e[8])}return a=P(e),o=b[a]=f[a](e),{c(){t=A("button"),r=A("span"),n=A("span"),o.c(),i=C(),s=E(e[4]),c=C(),l=E(m),O(n,"class","zephr-form-social-sign-in-icon svelte-18a7qws"),L(n,"zephr-payment-form-social-sign-in-icon",e[3]),O(r,"class","zephr-form-flex-container zephr-form-social-sign-in svelte-18a7qws"),L(r,"zephr-payment-form-flex-container",e[3]),L(r,"zephr-payment-form-social-sign-in",e[3]),O(t,"type","button"),O(t,"class","zephr-form-button zephr-form-social-sign-in-button svelte-18a7qws"),L(t,"zephr-payment-form-button",e[3]),L(t,"zephr-payment-form-social-sign-in-button",e[3])},m(e,o){g(e,t,o),y(t,r),y(r,n),b[a].m(n,null),y(r,i),y(r,s),y(r,c),y(r,l),u=!0,d||(p=v(t,"click",T(S)),d=!0)},p(i,s){let c=a;a=P(e=i),a===c?b[a].p(e,s):(X(),re(b[c],1,1,(()=>{b[c]=null})),ee(),o=b[a],o?o.p(e,s):(o=b[a]=f[a](e),o.c()),te(o,1),o.m(n,null)),(!u||8&s)&&L(n,"zephr-payment-form-social-sign-in-icon",e[3]),(!u||1&s)&&m!==(m=e[8]+"")&&_(l,m),(!u||8&s)&&L(r,"zephr-payment-form-flex-container",e[3]),(!u||8&s)&&L(r,"zephr-payment-form-social-sign-in",e[3]),(!u||8&s)&&L(t,"zephr-payment-form-button",e[3]),(!u||8&s)&&L(t,"zephr-payment-form-social-sign-in-button",e[3])},i(e){u||(te(o),u=!0)},o(e){re(o),u=!1},d(e){e&&h(t),b[a].d(),d=!1,p()}}}function li(e){let r,n;const a=[e[5](e[8])];let o={};for(let e=0;e{n=null})),ee())},i(e){r||(te(n),r=!0)},o(e){re(n),r=!1},d(e){e&&h(t),n&&n.d(e)}}}function pi(e){let t,r;return t=new Vt({props:{error:e[2],isPaymentForm:e[3]}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};4&r&&(n.error=e[2]),8&r&&(n.isPaymentForm=e[3]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function mi(e){let t,r,n,a=ne(Object.keys(e[0])),o=[];for(let t=0;tre(o[e],1,1,(()=>{o[e]=null}));let s=e[2]&&pi(e);return{c(){for(let e=0;e{s=null})),ee())},i(e){if(!n){for(let e=0;e{"config"in e&&r(0,n=e.config),"onSelectProvider"in e&&r(1,a=e.onSelectProvider),"error"in e&&r(2,o=e.error),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i,c,e=>{switch(e){case"Facebook":default:return{icon:ni,color:"#1877f2",size:"lg"};case"LinkedIn":return{icon:ri,color:"#0a66c2",size:"lg"};case"Apple":return{icon:ti,color:"#000",size:"lg"};case"Microsoft":return{icon:ei,color:"#00a4ef",size:"lg"};case"Twitter":return{icon:ai,color:"#08a0e9",size:"lg"}}},e=>a(e.toLowerCase())]}class yi extends de{constructor(e){super(),ue(this,e,fi,mi,i,{config:0,onSelectProvider:1,error:2,isPaymentForm:3})}}const gi={matches:e=>e.type===Re,create:(e,t,r,n)=>{const{enabled:a,hide:o,show:i,...s}=n??{};return{component:yi,props:{config:s,isPaymentForm:e.formType===Et.PAYMENT,onSelectProvider:t=>((e,t,r)=>{r.updateFormState({socialSigninError:void 0}),window.open(`${t.environment.apiUrlBase??""}/blaize/oauth/${e}`,e+" sign-in","menubar=no,location=yes,resizable=no,scrollbars=no,status=no,width=500,height=600");const n=Xo(t,r);window.zephrOAuthListener=n,window.addEventListener("message",n)})(t,e,r)}}}},hi="promo-code",bi=async(e,t,r)=>{const n=await In(e,t,r,!0),a=await Mn(e,n,r);if(t.currentSection.elements.some((e=>e.type===xe&&!1!==e.config?.enabled))){r.incrementRequestCount();try{await Ia(e.organisationConfiguration.paymentProvider).loader(e,a,r)}finally{r.decrementRequestCount()}}},Ai=async(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider);return n.hasPromoCodes(e)?n?.promoCodeServiceOverride?n.promoCodeServiceOverride(e,t,r):(async(e,t,r)=>{r.updateFormState({promoCodeValid:void 0,serverErrors:[],discountedPlanPrices:[]});const n=wa(e.organisationConfiguration.paymentProvider),a=await pn(n.promoCodeCheckPath,{method:"POST",bodyObject:{promoCode:t.promoCode,paymentOptions:vt(e).paymentOptions}},r,hi);if(!a.ok){let e;if(403===a.status){const t=await a.json();e=2===t?.code||3===t?.code?Ze.PROMO_CODE_EXPIRED_ERROR:Ze.PROMO_CODE_INVALID_ERROR}else e=Ze.PROMO_CODE_INVALID_ERROR,console.error("Unknown error evaluating promo code",a);return Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[e],discountedPlanPrices:[]}))}const o=(await a.json()).paymentOptions.map((e=>({planSlug:e.slug,productId:e.productId,discountPrice:e.discountPrice})));return o.find((e=>e.planSlug===t.paymentOption.slug&&e.productId===t.paymentOption.productId))?Promise.resolve(r.updateFormState({promoCodeValid:!0,serverErrors:[],discountedPlanPrices:o})):Promise.resolve(r.updateFormState({promoCodeValid:!1,serverErrors:[Ze.PROMO_CODE_NOT_VALID_FOR_PLAN_ERROR],discountedPlanPrices:o}))})(e,t,r).then((t=>bi(e,t,r))):t};function Pi(e,t,r){const n=e.slice();return n[31]=t[r],n}function Ei(e,t,r){const n=e.slice();return n[34]=t[r],n}function Ci(e){let t,r,n,a,o,i,s,c=e[34].label+"",l=e[34].priceFormattedString+"";return{c(){t=A("div"),r=A("span"),n=E(c),a=C(),o=A("div"),i=A("span"),s=E(l),O(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,c){g(e,t,c),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(i,s)},p(e,t){524288&t[0]&&c!==(c=e[34].label+"")&&_(n,c),524288&t[0]&&l!==(l=e[34].priceFormattedString+"")&&_(s,l)},d(e){e&&h(t)}}}function Si(e){let t,r,n,a,o,i;return{c(){t=A("div"),r=A("div"),n=E(e[22]),a=C(),o=A("div"),i=E(e[21]),O(r,"class","zephr-form-summary-charge-description zephr-payment-form-summary-charge-description svelte-19l6fte"),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-charge-line zephr-payment-form-charge-line svelte-19l6fte")},m(e,s){g(e,t,s),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i)},p(e,t){4194304&t[0]&&_(n,e[22]),2097152&t[0]&&_(i,e[21])},d(e){e&&h(t)}}}function vi(e){let t,r,n,a,o,i,s,c=e[31].label+"",l=e[31].addonPrice+"";return{c(){t=A("div"),r=A("span"),n=E(c),a=C(),o=A("div"),i=A("span"),s=E(l),O(o,"class","zephr-form-summary-line-right zephr-payment-form-summary-line-right svelte-19l6fte"),O(t,"class","zephr-form-addon-line zephr-payment-form-addon-line svelte-19l6fte")},m(e,c){g(e,t,c),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(i,s)},p(e,t){262144&t[0]&&c!==(c=e[31].label+"")&&_(n,c),262144&t[0]&&l!==(l=e[31].addonPrice+"")&&_(s,l)},d(e){e&&h(t)}}}function Ti(e){let t,r,n,a=!e[17]&&!(e[25]||e[11])&&Oi(e),o=(e[25]||e[11])&&wi(e);return{c(){a&&a.c(),t=C(),o&&o.c(),r=S()},m(e,i){a&&a.m(e,i),g(e,t,i),o&&o.m(e,i),g(e,r,i),n=!0},p(e,n){e[17]||e[25]||e[11]?a&&(a.d(1),a=null):a?a.p(e,n):(a=Oi(e),a.c(),a.m(t.parentNode,t)),e[25]||e[11]?o?(o.p(e,n),33556480&n[0]&&te(o,1)):(o=wi(e),o.c(),te(o,1),o.m(r.parentNode,r)):o&&(X(),re(o,1,1,(()=>{o=null})),ee())},i(e){n||(te(o),n=!0)},o(e){re(o),n=!1},d(e){e&&(h(t),h(r)),a&&a.d(e),o&&o.d(e)}}}function Oi(e){let t,r,n,a,o;return{c(){t=A("button"),r=A("span"),n=E(e[4]),O(t,"type","button"),O(t,"class","zephr-form-promo-activate-line zephr-payment-form-promo-activate-line svelte-19l6fte")},m(i,s){g(i,t,s),y(t,r),y(r,n),a||(o=v(t,"click",e[29]),a=!0)},p(e,t){16&t[0]&&_(n,e[4])},d(e){e&&h(t),a=!1,o()}}}function wi(e){let t,r,n,a,o,i,s,c,l,u,d,p;const m=[_i,Ii],b=[];function P(e,t){return e[17]&&e[11]?0:e[17]?-1:1}~(n=P(e))&&(a=b[n]=m[n](e));const E=[Ni,Li],v=[];function T(e,t){return e[12]?0:e[17]?-1:1}~(s=T(e))&&(c=v[s]=E[s](e));let w=e[14]&&Fi(e);return{c(){t=A("div"),r=A("div"),a&&a.c(),o=C(),i=A("div"),c&&c.c(),u=C(),w&&w.c(),d=S(),O(r,"class","zephr-form-promo-input-container zephr-payment-form-promo-input-container svelte-19l6fte"),O(i,"class",l=f(e[12]?"zephr-form-summary-line-right zephr-payment-form-summary-line-right":"zephr-form-summary-line-left zephr-payment-form-summary-line-left")+" svelte-19l6fte"),O(t,"class","zephr-form-promo-line zephr-payment-form-promo-line svelte-19l6fte")},m(e,a){g(e,t,a),y(t,r),~n&&b[n].m(r,null),y(t,o),y(t,i),~s&&v[s].m(i,null),g(e,u,a),w&&w.m(e,a),g(e,d,a),p=!0},p(e,t){let o=n;n=P(e),n===o?~n&&b[n].p(e,t):(a&&(X(),re(b[o],1,1,(()=>{b[o]=null})),ee()),~n?(a=b[n],a?a.p(e,t):(a=b[n]=m[n](e),a.c()),te(a,1),a.m(r,null)):a=null);let u=s;s=T(e),s===u?~s&&v[s].p(e,t):(c&&(X(),re(v[u],1,1,(()=>{v[u]=null})),ee()),~s?(c=v[s],c?c.p(e,t):(c=v[s]=E[s](e),c.c()),te(c,1),c.m(i,null)):c=null),(!p||4096&t[0]&&l!==(l=f(e[12]?"zephr-form-summary-line-right zephr-payment-form-summary-line-right":"zephr-form-summary-line-left zephr-payment-form-summary-line-left")+" svelte-19l6fte"))&&O(i,"class",l),e[14]?w?(w.p(e,t),16384&t[0]&&te(w,1)):(w=Fi(e),w.c(),te(w,1),w.m(d.parentNode,d)):w&&(X(),re(w,1,1,(()=>{w=null})),ee())},i(e){p||(te(a),te(c),te(w),p=!0)},o(e){re(a),re(c),re(w),p=!1},d(e){e&&(h(t),h(u),h(d)),~n&&b[n].d(),~s&&v[s].d(),w&&w.d(e)}}}function Ii(e){let t,r,n;return r=new Kt({props:{id:"zephr-form-promo-code",value:e[11],placeholder:e[5],maxlength:50,hasError:null!=e[14],fill:!0,isPaymentForm:!0,$$slots:{default:[$i]},$$scope:{ctx:e}}}),r.$on("change",e[30]),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class","zephr-form-relative-container zephr-form-promo-input zephr-form-relative-container zephr-payment-form-promo-input")},m(e,a){g(e,t,a),se(r,t,null),n=!0},p(e,t){const n={};2048&t[0]&&(n.value=e[11]),32&t[0]&&(n.placeholder=e[5]),16384&t[0]&&(n.hasError=null!=e[14]),53248&t[0]|64&t[1]&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&h(t),ce(r)}}}function _i(t){let r,n;return{c(){r=A("span"),n=E(t[11]),O(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){g(e,r,t),y(r,n)},p(e,t){2048&t[0]&&_(n,e[11])},i:e,o:e,d(e){e&&h(r)}}}function Ri(e){let t,r;return t=new ir({props:{icon:cr,spin:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Mi(e){let t,r;return t=new ir({props:{icon:lr}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function $i(e){let t,r,n,a;const o=[Mi,Ri],i=[];function s(e,t){return e[12]?0:e[15]&&!e[14]?1:-1}return~(r=s(e))&&(n=i[r]=o[r](e)),{c(){t=A("div"),n&&n.c(),O(t,"class","zephr-form-input-inner-text zephr-payment-form-input-inner-text zephr-form-input-inner-button")},m(e,n){g(e,t,n),~r&&i[r].m(t,null),a=!0},p(e,a){let c=r;r=s(e),r!==c&&(n&&(X(),re(i[c],1,1,(()=>{i[c]=null})),ee()),~r?(n=i[r],n||(n=i[r]=o[r](e),n.c()),te(n,1),n.m(t,null)):n=null)},i(e){a||(te(n),a=!0)},o(e){re(n),a=!1},d(e){e&&h(t),~r&&i[r].d()}}}function Li(e){let t,r;return t=new wt({props:{disabled:e[16],text:e[6],onClick:e[24],noMargin:!0,inputHeight:!0,isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};65536&r[0]&&(n.disabled=e[16]),64&r[0]&&(n.text=e[6]),16777216&r[0]&&(n.onClick=e[24]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function Ni(t){let r,n=t[0]&&xi(t);return{c(){r=A("span"),n&&n.c(),O(r,"class","zephr-form-summary-promo-middle zephr-payment-form-summary-promo-middle svelte-19l6fte")},m(e,t){g(e,r,t),n&&n.m(r,null)},p(e,t){e[0]?n?n.p(e,t):(n=xi(e),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&h(r),n&&n.d()}}}function xi(e){let t,r;return{c(){t=E("- "),r=E(e[13])},m(e,n){g(e,t,n),g(e,r,n)},p(e,t){8192&t[0]&&_(r,e[13])},d(e){e&&(h(t),h(r))}}}function Fi(e){let t,r;return t=new Vt({props:{error:e[14],isPaymentForm:!0}}),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};16384&r[0]&&(n.error=e[14]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function zi(e){let t,r;return{c(){t=A("div"),r=E(e[10]),O(t,"class","zephr-form-summary-prorate-disclaimer zephr-payment-form-summary-prorate-disclaimer svelte-19l6fte")},m(e,n){g(e,t,n),y(t,r)},p(e,t){1024&t[0]&&_(r,e[10])},d(e){e&&h(t)}}}function ki(e){let t,r,n,a,o,i,s=(e[9]??"DUE TODAY")+"",c=e[20].totalPriceFormattedString+"";return{c(){t=A("div"),r=A("div"),n=E(s),a=C(),o=A("div"),i=E(c),O(r,"class","zephr-form-summary-line-total-title zephr-payment-form-summary-line-total-title"),O(o,"class","zephr-form-summary-line-price zephr-payment-form-summary-line-price svelte-19l6fte"),O(t,"class","zephr-form-summary-line zephr-form-summary-price-line zephr-payment-form-summary-line zephr-payment-form-summary-price-line svelte-19l6fte")},m(e,s){g(e,t,s),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i)},p(e,t){512&t[0]&&s!==(s=(e[9]??"DUE TODAY")+"")&&_(n,s),1048576&t[0]&&c!==(c=e[20].totalPriceFormattedString+"")&&_(i,c)},d(e){e&&h(t)}}}function Di(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,P,S,v,T,w,I,R,M,$,L,N=ne(e[19]),x=[];for(let t=0;t{D=null})),ee()),(!L||256&r[0])&&_(T,e[8]),(!L||4&r[0])&&_(R,e[2]),e[10]?U?U.p(e,r):(U=zi(e),U.c(),U.m(t,$)):U&&(U.d(1),U=null),e[20]?B?B.p(e,r):(B=ki(e),B.c(),B.m(t,null)):B&&(B.d(1),B=null)},i(e){L||(te(D),L=!0)},o(e){re(D),L=!1},d(e){e&&h(t),b(x,e),F&&F.d(),b(k,e),D&&D.d(),U&&U.d(),B&&B.d()}}}function Ui(e,t,r){let n,{showPromoCodeDiscountAmount:a=!0}=t,{planTitle:o}=t,{price:i}=t,{totalPrice:s}=t,{allowPromoCodes:c}=t,{promoCodeLinkText:l}=t,{promoCodePlaceholder:u}=t,{promoCodeButtonText:d}=t,{title:p}=t,{totalLabel:m}=t,{prorateLabel:f}=t,{prorateDisclaimer:y}=t,{promoCode:g}=t,{promoCodeValid:h}=t,{discountAmount:b}=t,{error:A=null}=t,{busy:P}=t,{promoCodeDisabled:E}=t,{paymentProcessed:C}=t,{addons:S}=t,{chargeItems:v}=t,{changeSubscriptionProrate:T}=t,{tax:O}=t,{taxLabel:w}=t,{subTotal:I}=t,{onChangePromoCode:_}=t,{verifyPromoCode:R}=t,M=!1;return e.$$set=e=>{"showPromoCodeDiscountAmount"in e&&r(0,a=e.showPromoCodeDiscountAmount),"planTitle"in e&&r(1,o=e.planTitle),"price"in e&&r(27,i=e.price),"totalPrice"in e&&r(2,s=e.totalPrice),"allowPromoCodes"in e&&r(3,c=e.allowPromoCodes),"promoCodeLinkText"in e&&r(4,l=e.promoCodeLinkText),"promoCodePlaceholder"in e&&r(5,u=e.promoCodePlaceholder),"promoCodeButtonText"in e&&r(6,d=e.promoCodeButtonText),"title"in e&&r(7,p=e.title),"totalLabel"in e&&r(8,m=e.totalLabel),"prorateLabel"in e&&r(9,f=e.prorateLabel),"prorateDisclaimer"in e&&r(10,y=e.prorateDisclaimer),"promoCode"in e&&r(11,g=e.promoCode),"promoCodeValid"in e&&r(12,h=e.promoCodeValid),"discountAmount"in e&&r(13,b=e.discountAmount),"error"in e&&r(14,A=e.error),"busy"in e&&r(15,P=e.busy),"promoCodeDisabled"in e&&r(16,E=e.promoCodeDisabled),"paymentProcessed"in e&&r(17,C=e.paymentProcessed),"addons"in e&&r(18,S=e.addons),"chargeItems"in e&&r(19,v=e.chargeItems),"changeSubscriptionProrate"in e&&r(20,T=e.changeSubscriptionProrate),"tax"in e&&r(21,O=e.tax),"taxLabel"in e&&r(22,w=e.taxLabel),"subTotal"in e&&r(28,I=e.subTotal),"onChangePromoCode"in e&&r(23,_=e.onChangePromoCode),"verifyPromoCode"in e&&r(24,R=e.verifyPromoCode)},e.$$.update=()=>{403177472&e.$$.dirty[0]&&r(26,n=v.length?"":I||i)},[a,o,s,c,l,u,d,p,m,f,y,g,h,b,A,P,E,C,S,v,T,O,w,_,R,M,n,i,I,()=>r(25,M=!0),({detail:e})=>_(e)]}class Bi extends de{constructor(e){super(),ue(this,e,Ui,Di,i,{showPromoCodeDiscountAmount:0,planTitle:1,price:27,totalPrice:2,allowPromoCodes:3,promoCodeLinkText:4,promoCodePlaceholder:5,promoCodeButtonText:6,title:7,totalLabel:8,prorateLabel:9,prorateDisclaimer:10,promoCode:11,promoCodeValid:12,discountAmount:13,error:14,busy:15,promoCodeDisabled:16,paymentProcessed:17,addons:18,chargeItems:19,changeSubscriptionProrate:20,tax:21,taxLabel:22,subTotal:28,onChangePromoCode:23,verifyPromoCode:24},null,[-1,-1])}}const Vi={matches:e=>e.type===Me,create:(e,t,r,n)=>{const a=wa(e.organisationConfiguration.paymentProvider);return{component:Bi,props:{showPromoCodeDiscountAmount:!vt(e).dynamicOffer,price:t.paymentOptionPrices?.netPriceFormattedString??"-",totalPrice:t.paymentOptionPrices?.totalPriceFormattedString??"-",tax:t.paymentOptionPrices?.taxPriceFormattedString,taxLabel:n.taxLabel??"Tax",subTotal:t.paymentOptionPrices?.netPriceFormattedString,planTitle:t.paymentOption.label,allowPromoCodes:(vt(e).promoCodeConfig?.promoCodeAllowed||vt(e).dynamicOffer)&&a.hasPromoCodes(e),promoCodeLinkText:vt(e).promoCodeConfig?.promoCodeText,promoCodePlaceholder:vt(e).promoCodeConfig?.promoCodePlaceholder,promoCodeButtonText:vt(e).promoCodeConfig?.promoCodeButtonText,totalLabel:n.total,prorateLabel:n.prorateLabel,prorateDisclaimer:!vt(e).changeSubscriptionMode||a.changeSubscriptionProrateCalculator?null:n.prorateDisclaimer,title:n.title,promoCode:t.promoCode,busy:t.isBusyByKey[hi],promoCodeDisabled:t.isBusy||0===t.promoCode?.length,paymentProcessed:t.paymentProcessed,discountAmount:t.paymentOptionPrices?.discountPriceFormattedPrice??"-",addons:Rn(t).map((e=>({label:e.label,addonPrice:wn(e.addonPrice,t.paymentOption.currencyCode)}))),chargeItems:t.paymentOptionPrices?.chargeItems??[],promoCodeValid:t.promoCodeValid,changeSubscriptionProrate:t.changeSubscriptionProrate,onChangePromoCode:n=>{let a=r.updateFormState({promoCode:n,promoCodeValid:void 0,discountedPlanPrices:[]});t.promoCodeValid&&(t.originalDynamicOfferResult&&(a=r.updateFormState({dynamicOfferResult:t.originalDynamicOfferResult})),bi(e,a,r))},verifyPromoCode:()=>{Ai(e,t,r)}}}}};function Gi(e){let t,r,n,a=e[1]&&ji(e),o=e[0]&&Ki(e),i=e[1]&&e[0]&&Yi(e);return{c(){t=A("div"),a&&a.c(),r=C(),o&&o.c(),n=C(),i&&i.c(),O(t,"class","zephr-form-divider-container svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-container",e[3])},m(e,s){g(e,t,s),a&&a.m(t,null),y(t,r),o&&o.m(t,null),y(t,n),i&&i.m(t,null)},p(e,s){e[1]?a?a.p(e,s):(a=ji(e),a.c(),a.m(t,r)):a&&(a.d(1),a=null),e[0]?o?o.p(e,s):(o=Ki(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[1]&&e[0]?i?i.p(e,s):(i=Yi(e),i.c(),i.m(t,null)):i&&(i.d(1),i=null),8&s&&L(t,"zephr-payment-form-divider-container",e[3])},d(e){e&&h(t),a&&a.d(),o&&o.d(),i&&i.d()}}}function ji(e){let t;function r(e,t){return e[0]?Hi:qi}let n=r(e),a=n(e);return{c(){a.c(),t=S()},m(e,r){a.m(e,r),g(e,t,r)},p(e,o){n===(n=r(e))&&a?a.p(e,o):(a.d(1),a=n(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){e&&h(t),a.d(e)}}}function qi(t){let r;return{c(){r=A("div"),O(r,"class","zephr-form-divider-line-complete svelte-1ni5n6w")},m(e,t){g(e,r,t)},p:e,d(e){e&&h(r)}}}function Hi(e){let t;return{c(){t=A("div"),O(t,"class","zephr-form-divider-line svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-line",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&h(t)}}}function Ki(e){let t,r;return{c(){t=A("span"),r=E(e[0]),O(t,"class","zephr-form-divider-text svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-text",e[3])},m(e,n){g(e,t,n),y(t,r)},p(e,n){1&n&&_(r,e[0]),8&n&&L(t,"zephr-payment-form-divider-text",e[3])},d(e){e&&h(t)}}}function Yi(e){let t;return{c(){t=A("div"),O(t,"class","zephr-form-divider-line svelte-1ni5n6w"),L(t,"zephr-payment-form-divider-line",e[3])},m(e,r){g(e,t,r)},p(e,r){8&r&&L(t,"zephr-payment-form-divider-line",e[3])},d(e){e&&h(t)}}}function Wi(t){let r,n=t[2]&&Gi(t);return{c(){n&&n.c(),r=S()},m(e,t){n&&n.m(e,t),g(e,r,t)},p(e,[t]){e[2]?n?n.p(e,t):(n=Gi(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){e&&h(r),n&&n.d(e)}}}function Qi(e,t,r){let{text:n}=t,{showLine:a}=t,{show:o}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"showLine"in e&&r(1,a=e.showLine),"show"in e&&r(2,o=e.show),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i]}class Ji extends de{constructor(e){super(),ue(this,e,Qi,Wi,i,{text:0,showLine:1,show:2,isPaymentForm:3})}}const Zi={matches:e=>e.type===$e,create:(e,t,r,n)=>({component:Ji,props:{text:n.text,showLine:n.showLine,show:n.show,isPaymentForm:e.formType===Et.PAYMENT}})};function Xi(t){let r,n,a,o,i;return{c(){r=A("div"),n=E(t[0]),a=C(),o=A("a"),i=E(t[1]),O(o,"href",t[2]),O(o,"class","svelte-1bpa3mq"),O(r,"class","zephr-form-login-link svelte-1bpa3mq"),L(r,"zephr-payment-login-link",t[3])},m(e,t){g(e,r,t),y(r,n),y(r,a),y(r,o),y(o,i)},p(e,[t]){1&t&&_(n,e[0]),2&t&&_(i,e[1]),4&t&&O(o,"href",e[2]),8&t&&L(r,"zephr-payment-login-link",e[3])},i:e,o:e,d(e){e&&h(r)}}}function es(e,t,r){let{text:n}=t,{linkText:a}=t,{url:o}=t,{isPaymentForm:i=!1}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"linkText"in e&&r(1,a=e.linkText),"url"in e&&r(2,o=e.url),"isPaymentForm"in e&&r(3,i=e.isPaymentForm)},[n,a,o,i]}class ts extends de{constructor(e){super(),ue(this,e,es,Xi,i,{text:0,linkText:1,url:2,isPaymentForm:3})}}const rs={matches:e=>e.type===Le,create:(e,t,r,n)=>({component:ts,props:{text:n.alreadyRegText,linkText:n.loginText,url:n.url,isPaymentForm:e.formType===Et.PAYMENT}})},ns={matches:e=>e.type===Ee&&e.config.isLogin,create:(e,t,r,n)=>({component:wt,props:{disabled:t.isBusy,text:n.text,onClick:()=>{r.updateFormState({forgotPassword:!1}),r.jumpToPartStart(Qe.ACCOUNT_VERIFICATION.type)},isPaymentForm:e.formType===Et.PAYMENT}})};function as(e){let t,r;return t=new ko({props:{text:e[0]}}),t.$on("linkClick",e[8]),{c(){ie(t.$$.fragment)},m(e,n){se(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.text=e[0]),t.$set(n)},i(e){r||(te(t.$$.fragment,e),r=!0)},o(e){re(t.$$.fragment,e),r=!1},d(e){ce(t,e)}}}function os(e){let t,r,n,a;return t=new Jt({props:{forInput:e[6],label:e[0]}}),n=new Kt({props:{id:e[6],value:e[2],errorMessage:e[3],placeholder:e[1]}}),n.$on("change",e[9]),{c(){ie(t.$$.fragment),r=C(),ie(n.$$.fragment)},m(e,o){se(t,e,o),g(e,r,o),se(n,e,o),a=!0},p(e,r){const a={};1&r&&(a.label=e[0]),t.$set(a);const o={};4&r&&(o.value=e[2]),8&r&&(o.errorMessage=e[3]),2&r&&(o.placeholder=e[1]),n.$set(o)},i(e){a||(te(t.$$.fragment,e),te(n.$$.fragment,e),a=!0)},o(e){re(t.$$.fragment,e),re(n.$$.fragment,e),a=!1},d(e){e&&h(r),ce(t,e),ce(n,e)}}}function is(e){let t,r,n,a=!e[5]&&as(e),o=(e[2]||e[5])&&os(e);return{c(){t=A("div"),a&&a.c(),r=C(),o&&o.c(),O(t,"class","zephr-form-account-code-container svelte-ctt9he")},m(e,i){g(e,t,i),a&&a.m(t,null),y(t,r),o&&o.m(t,null),n=!0},p(e,[n]){e[5]?a&&(X(),re(a,1,1,(()=>{a=null})),ee()):a?(a.p(e,n),32&n&&te(a,1)):(a=as(e),a.c(),te(a,1),a.m(t,r)),e[2]||e[5]?o?(o.p(e,n),36&n&&te(o,1)):(o=os(e),o.c(),te(o,1),o.m(t,null)):o&&(X(),re(o,1,1,(()=>{o=null})),ee())},i(e){n||(te(a),te(o),n=!0)},o(e){re(a),re(o),n=!1},d(e){e&&h(t),a&&a.d(),o&&o.d()}}}function ss(e,t,r){let{formKey:n}=t,{label:a}=t,{placeholder:o}=t,{accountMembershipCode:i}=t,{error:s=null}=t,{onChange:c}=t,l=!1;const u=`zephr-form-account-code-${n}`;return e.$$set=e=>{"formKey"in e&&r(7,n=e.formKey),"label"in e&&r(0,a=e.label),"placeholder"in e&&r(1,o=e.placeholder),"accountMembershipCode"in e&&r(2,i=e.accountMembershipCode),"error"in e&&r(3,s=e.error),"onChange"in e&&r(4,c=e.onChange)},[a,o,i,s,c,l,u,n,()=>r(5,l=!0),e=>c(e.detail)]}class cs extends de{constructor(e){super(),ue(this,e,ss,is,i,{formKey:7,label:0,placeholder:1,accountMembershipCode:2,error:3,onChange:4})}}const ls={matches:e=>e.type===Ne,create:(e,t,r,n)=>({component:cs,props:{formKey:e.uniqueKey,label:n.label,placeholder:n.placeholder,accountMembershipCode:t.accountMembershipCode,onChange:e=>{r.updateFormState({accountMembershipCode:e,serverErrors:[]})}}})};function us(e){let t,r,n;return r=new za({props:{text:e[4]}}),{c(){t=A("div"),ie(r.$$.fragment),O(t,"class","zephr-form-invitation-success-message svelte-yy7ok3")},m(e,a){g(e,t,a),se(r,t,null),n=!0},p(e,t){const n={};16&t&&(n.text=e[4]),r.$set(n)},i(e){n||(te(r.$$.fragment,e),n=!0)},o(e){re(r.$$.fragment,e),n=!1},d(e){e&&h(t),ce(r)}}}function ds(e){let t,r,n,a,o,i,s,c,l,u,d,p,m,f,b,P;c=new Jt({props:{forInput:e[12],label:e[2],isPaymentForm:e[11]}}),p=new Kt({props:{disabled:e[10],required:!0,id:e[12],value:e[7]??"",errorMessage:e[9],isPaymentForm:e[11]}}),p.$on("change",e[14]),f=new wt({props:{disabled:!Ur(e[7])||e[10],text:e[3],onClick:e[5],noMargin:!0,inputHeight:!0,aside:!0,isPaymentForm:e[11]}});let S=e[8]&&us(e);return{c(){t=A("div"),r=A("div"),n=E(e[0]),a=C(),o=A("div"),i=E(e[1]),s=C(),ie(c.$$.fragment),l=C(),u=A("div"),d=A("div"),ie(p.$$.fragment),m=C(),ie(f.$$.fragment),b=C(),S&&S.c(),O(r,"class","zephr-form-invitation-title svelte-yy7ok3"),O(o,"class","zephr-form-invitation-description"),O(d,"class","zephr-form-invitation-input-container svelte-yy7ok3"),O(u,"class","zephr-form-relative-container zephr-form-invitation-email svelte-yy7ok3"),L(u,"zephr-payment-form-relative-container",e[11]),O(t,"class","zephr-form-invitation-container svelte-yy7ok3")},m(e,h){g(e,t,h),y(t,r),y(r,n),y(t,a),y(t,o),y(o,i),y(t,s),se(c,t,null),y(t,l),y(t,u),y(u,d),se(p,d,null),y(u,m),se(f,u,null),y(t,b),S&&S.m(t,null),P=!0},p(e,[r]){(!P||1&r)&&_(n,e[0]),(!P||2&r)&&_(i,e[1]);const a={};4&r&&(a.label=e[2]),2048&r&&(a.isPaymentForm=e[11]),c.$set(a);const o={};1024&r&&(o.disabled=e[10]),128&r&&(o.value=e[7]??""),512&r&&(o.errorMessage=e[9]),2048&r&&(o.isPaymentForm=e[11]),p.$set(o);const s={};1152&r&&(s.disabled=!Ur(e[7])||e[10]),8&r&&(s.text=e[3]),32&r&&(s.onClick=e[5]),2048&r&&(s.isPaymentForm=e[11]),f.$set(s),(!P||2048&r)&&L(u,"zephr-payment-form-relative-container",e[11]),e[8]?S?(S.p(e,r),256&r&&te(S,1)):(S=us(e),S.c(),te(S,1),S.m(t,null)):S&&(X(),re(S,1,1,(()=>{S=null})),ee())},i(e){P||(te(c.$$.fragment,e),te(p.$$.fragment,e),te(f.$$.fragment,e),te(S),P=!0)},o(e){re(c.$$.fragment,e),re(p.$$.fragment,e),re(f.$$.fragment,e),re(S),P=!1},d(e){e&&h(t),ce(c),ce(p),ce(f),S&&S.d()}}}function ps(e,t,r){let{formKey:n}=t,{title:a}=t,{description:o}=t,{label:i}=t,{btnText:s}=t,{linkSentText:c}=t,{onSendInviteClick:l}=t,{onChange:u}=t,{invitationEmail:d}=t,{invitationSent:p}=t,{error:m=null}=t,{isBusy:f}=t,{isPaymentForm:y=!1}=t;const g=`zephr-form-invitation-email-${n}`;return e.$$set=e=>{"formKey"in e&&r(13,n=e.formKey),"title"in e&&r(0,a=e.title),"description"in e&&r(1,o=e.description),"label"in e&&r(2,i=e.label),"btnText"in e&&r(3,s=e.btnText),"linkSentText"in e&&r(4,c=e.linkSentText),"onSendInviteClick"in e&&r(5,l=e.onSendInviteClick),"onChange"in e&&r(6,u=e.onChange),"invitationEmail"in e&&r(7,d=e.invitationEmail),"invitationSent"in e&&r(8,p=e.invitationSent),"error"in e&&r(9,m=e.error),"isBusy"in e&&r(10,f=e.isBusy),"isPaymentForm"in e&&r(11,y=e.isPaymentForm)},[a,o,i,s,c,l,u,d,p,m,f,y,g,n,({detail:e})=>u(e)]}class ms extends de{constructor(e){super(),ue(this,e,ps,ds,i,{formKey:13,title:0,description:1,label:2,btnText:3,linkSentText:4,onSendInviteClick:5,onChange:6,invitationEmail:7,invitationSent:8,error:9,isBusy:10,isPaymentForm:11})}}const fs=async(e,t,r)=>{let n;n=t.userExists?await(e=>pn("blaize/profile",{method:"GET"},e).then((e=>e.json())))(r):t.userAttributes;const a=((e,t)=>(e??[]).reduce(((e,r)=>{const n=t[r.attrSlug];return{...e,[r.fieldName]:n}}),{}))(vt(e).invitationMetadata.mapping,n),o=await pn("zephr/public/products/v1/shares/invitations/emails",{method:"POST",bodyObject:{product_id:t.paymentOption.productId,email_address:t.invitationEmail,base_url:vt(e).invitationMetadata.url,meta_data:a}},r),i=await o.json();var s;o.ok?(r.updateFormState({invitationSent:!0,invitationEmail:""}),setTimeout((()=>{r.updateFormState({invitationSent:!1})}),3e3)):r.updateFormState({invitationSent:!1,serverErrors:[(s=i,403===s?.status&&s?.message?.includes("you do not have access to")?Ze.INVITATION_FAILED_NO_PRODUCT_ACCESS:400===s?.status&&s?.message?.includes("Invalid recipient email")?Ze.INVITATION_FAILED_INVALID_EMAIL:400===s?.status&&s?.message?.includes("reached the configured limit")?Ze.INVITATION_FAILED_LIMIT_REACHED:409===s?.status?Ze.INVITATION_FAILED_DUPLICATE_EMAIL:Ze.INVITATION_FAILED_UNKNOWN)]})},ys={matches:e=>e.type===Fe,create:(e,t,r,n)=>t.paymentOption?.product_sharing_limit>0?{component:ms,props:{formKey:e.uniqueKey,title:n.title,description:n.description,label:n.label,btnText:n.btnText,linkSentText:n.linkSentText,onSendInviteClick:()=>fs(e,t,r),onChange:e=>r.updateFormState({invitationEmail:e,serverErrors:[]}),invitationEmail:t.invitationEmail,invitationSent:t.invitationSent,isBusy:t.isBusy,isPaymentForm:e.formType===Et.PAYMENT}}:{component:null,props:{}}};class gs extends de{constructor(e){super(),ue(this,e,null,null,i,{})}}const hs={matches:e=>e.type===Se,create:(e,t,r)=>{const n=wa(e.organisationConfiguration.paymentProvider);return null==n.preLoaderComponent?{component:gs,props:{}}:{component:n.preLoaderComponent,props:{onMountCallback:()=>n.preLoader()}}}};function bs(t){let r;return{c(){r=A("div")},m(e,n){g(e,r,n),r.innerHTML=t[0]},p(e,[t]){1&t&&(r.innerHTML=e[0])},i:e,o:e,d(e){e&&h(r)}}}function As(e,t,r){let{html:n}=t;return e.$$set=e=>{"html"in e&&r(0,n=e.html)},[n]}class Ps extends de{constructor(e){super(),ue(this,e,As,bs,i,{html:0})}} /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */var Es=Object.prototype.toString,Cs=Array.isArray||function(e){return"[object Array]"===Es.call(e)};function Ss(e){return"function"==typeof e}function vs(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ts(e,t){return null!=e&&"object"==typeof e&&t in e}var Os=RegExp.prototype.test;var ws=/\S/;function Is(e){return!function(e,t){return Os.call(e,t)}(ws,e)}var _s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var Rs=/\s*/,Ms=/\s+/,$s=/\s*=/,Ls=/\s*\}/,Ns=/#|\^|\/|>|\{|&|=|!/;function xs(e){this.string=e,this.tail=e,this.pos=0}function Fs(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function zs(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}xs.prototype.eos=function(){return""===this.tail},xs.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},xs.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},Fs.prototype.push=function(e){return new Fs(e,this)},Fs.prototype.lookup=function(e){var t,r,n,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var o,i,s,c=this,l=!1;c;){if(e.indexOf(".")>0)for(o=c.view,i=e.split("."),s=0;null!=o&&s0?a[a.length-1][4]:r;break;default:n.push(t)}return r}(function(e){for(var t,r,n=[],a=0,o=e.length;a"===i?s=this.renderPartial(o,t,r,a):"&"===i?s=this.unescapedValue(o,t):"name"===i?s=this.escapedValue(o,t,a):"text"===i&&(s=this.rawValue(o)),void 0!==s&&(c+=s);return c},zs.prototype.renderSection=function(e,t,r,n,a){var o=this,i="",s=t.lookup(e[1]);if(s){if(Cs(s))for(var c=0,l=s.length;c0||!r)&&(a[o]=n+a[o]);return a.join("\n")},zs.prototype.renderPartial=function(e,t,r,n){if(r){var a=this.getConfigTags(n),o=Ss(r)?r(e[1]):r[e[1]];if(null!=o){var i=e[6],s=e[5],c=e[4],l=o;0==s&&c&&(l=this.indentPartial(o,c,i));var u=this.parse(l,a);return this.renderTokens(u,t,r,l,n)}}},zs.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},zs.prototype.escapedValue=function(e,t,r){var n=this.getConfigEscape(r)||ks.escape,a=t.lookup(e[1]);if(null!=a)return"number"==typeof a&&n===ks.escape?String(a):n(a)},zs.prototype.rawValue=function(e){return e[1]},zs.prototype.getConfigTags=function(e){return Cs(e)?e:e&&"object"==typeof e?e.tags:void 0},zs.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!Cs(e)?e.escape:void 0};var ks={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Ds.templateCache=e},get templateCache(){return Ds.templateCache}},Ds=new zs;ks.clearCache=function(){return Ds.clearCache()},ks.parse=function(e,t){return Ds.parse(e,t)},ks.render=function(e,t,r,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((Cs(a=e)?"array":typeof a)+'" was given as the first argument for mustache#render(template, view, partials)'));var a;return Ds.render(e,t,r,n)},ks.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return _s[e]}))},ks.Scanner=xs,ks.Context=Fs,ks.Writer=zs;const Us=()=>(Math.random()+1).toString(36).substring(7),Bs=Us(),Vs=e=>e.dynamicOfferResult?Object.entries({tagline:e.dynamicOfferResult.tagline,...e.dynamicOfferResult.custom??{}}).reduce(((e,[t,r])=>(t&&null!=r&&(e[t]=r),e)),{}):{},Gs=(e,t)=>(e.templateVariables??[]).reduce(((e,r)=>null==r.defaultValue||r.paymentOptionLevel!=t?e:{...e,[r.key]:r.defaultValue}),{}),js=e=>{window.Zephr||(window.Zephr={}),window.Zephr.forms||(window.Zephr.forms={}),window.Zephr.forms[e.formInstanceId]=e},qs=(e,t,r,n,a,o)=>{if(!a)return{scope:{},actions:{}};try{const i=new Function("state","form","scope",a),s=(t.customComponentState??{})[r.id??"_"];return i(t.dynamicOfferResult?{...s??{},dynamicOfferResult:Qn(t.dynamicOfferResult,e,t)}:s,n,o)}catch(e){return console.error("Error evaluating pre-render script",e),{scope:{error:e},actions:{}}}},Hs=(e,t,r)=>n=>{t.updateFormState({customComponentState:{...e.customComponentState??{},[r]:{...(e.customComponentState??{})[r]??{},...n??{}}}})},Ks=(e,t,r,n)=>(a,o)=>{let i;if(n){const e=r.dynamicOfferResult.products.find((e=>e.id===a)),t=e?.paymentPlans.find((e=>e.planId===o));i={slug:t.planId,productId:e.id,label:e.label,currencyCode:t.charges[0].prices[0].currency}}else i=vt(e).paymentOptions?.find((e=>e.productId===a&&e.slug===o));i?(t.updateFormState({paymentOption:i,serverErrors:[],billingAddress:{country:null,postalCode:null}}),t.completeSection()):console.warn(`No payment option exists for ${a} ${o}.`)},Ys=(e,t,r,n,a)=>{const o=!!vt(e).dynamicOffer?.id,i=(vt(e).paymentOptions??[]).map(((e,t)=>({slug:e.slug,productId:e.productId,label:e.label,price:e.price,currencyCode:e.currencyCode,formattedPrice:wn(e.price,e.currencyCode),index:t,...Gs(a,!0),...e.templateValues??{}})));return{formId:e.id,formInstanceId:Bs,paymentOptions:i,ref:`window.Zephr.forms['${Bs}']`,setState:Hs(t,r,n.id??"_"),getState:()=>r.getFormState(),selectPaymentOption:Ks(e,r,t,o)}},Ws={matches:e=>e.type===ze,create:(e,t,r,n)=>{const a=((e,t,r,n)=>{const a=(e.resolvedComponentTemplates??[]).find((e=>e.id===n.templateId));if(!a)return console.warn(`No component template found for id '${n.templateId}'`),"";const o=Ys(e,t,r,n,a),i={...Gs(a,!1),...n.templateValues??{},...Vs(t),zephrForm:o,zephrOutcomeId:e.outcomeId,zephrRuleId:e.ruleId},s=qs(e,t,n,o,a.preRenderScript,i),c={...i,...s.scope??{}};o.actions=s.actions??{},js(o);try{return ks.render(`\n ${a.css?`

       "},"id":"2f8d9329-12f9-4407-9c8a-049fe4284ebf"}],"tab":"reg"},{"type":"verification_code_login","order":4,"label":"Passwordless Login via Login Code","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"4db862c8-6135-4f79-be52-f9c48ab32480"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"13544490-36ed-4e34-9b02-e44c8b6d216f"},{"type":"text","order":3,"config":{"text":"A message with a code has been sent to"},"id":"94945519-a0b1-482c-9e4b-043dd935f3d1"},{"type":"email_address","order":4,"config":{"label":"Email","placeholder":"[email protected]","disabled":true},"id":"72e7a041-1b11-480f-bf6e-b8694beb2fde"},{"type":"text","order":5,"config":{"text":"Enter the code in the box below."},"id":"92c2466c-01e5-464e-9232-79749b961cf2"},{"type":"otp_code","order":6,"config":{"label":"Code","placeholder":"e.g. 350271","resendText":"Didn't get a code?","message":"Resent!"},"id":"43278308-b87f-4a9f-8158-528d0b92b590"}],"tab":"login"},{"type":"login_password","order":5,"label":"Login with Password","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"id":"9cce4b11-7e9a-46f7-b862-dc8e4f94e5e2"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"f11ff659-bee7-45ef-838c-6095efbc2e63"},{"type":"email_address","order":3,"config":{"label":"Email","placeholder":"[email protected]","disabled":true},"id":"4c38a54d-2f5b-472a-b199-633a20ffdc5b"},{"type":"password","order":4,"config":{"isLogin":true,"password":"Password","placeholder":"","show":"Show","hide":"Hide"},"id":"ac1ccebe-73ad-4a70-b507-27b2fddaa362"},{"type":"link","order":5,"config":{"label":"Reset Password Link","text":"Forgot Password?"},"id":"818a632a-10c6-4ad8-b47d-ad0c8cd3a8a3"},{"type":"button","order":6,"config":{"isSubmit":true,"text":"Submit"},"id":"f65620f3-4d00-4abd-b52e-ffc480642e3f"}],"tab":"login"},{"type":"forgot_password","order":6,"label":"Forgot Password","elements":[{"type":"text","order":1,"config":{"text":"Reset your password"},"id":"e8d4dba2-8341-4a15-abf2-cb2639266db9"},{"type":"text","order":2,"config":{"text":"A message with the code was sent to..."},"id":"7cd92ca5-9dd1-4ce8-b1c9-09565e3b8a93"},{"type":"email_address","order":3,"config":{"label":"Email","placeholder":"[email protected]","disabled":true},"id":"a47dc890-2d3b-4ff7-a1d8-b87ab458225f"},{"type":"text","order":4,"config":{"text":"Enter the code in the box below."},"id":"67ca0066-6cb9-44e6-85d5-944cd3c6dbc8"},{"type":"otp_code","order":5,"config":{"label":"Code","placeholder":"e.g. 350271","resendText":"Didn't get a code?","message":"Resent!"},"id":"3c3c2d14-6deb-4a29-aff8-1882832fb619"},{"type":"divider","order":6,"config":{"text":"OR USE","showLine":true,"show":true},"id":"f14a6e57-2b27-4b4c-bb7b-8987b1fc9392"},{"type":"button","order":7,"config":{"isSubmit":false,"isLogin":true,"text":"Login"},"id":"3e674246-b1a7-4e9b-8dd9-b354314e8954"}],"tab":"login"},{"type":"reset_password","order":7,"label":"Reset Password","elements":[{"type":"text","order":1,"config":{"text":"Reset your password"},"id":"a39ea0f1-ea8d-4e52-8b60-3a1178eca2ea"},{"type":"email_address","order":2,"config":{"label":"Email","disabled":true},"id":"945bf54f-27b6-4dc6-ab8f-bb71b6ce72f2"},{"type":"password","order":3,"config":{"password":"Password","placeholder":"","show":"Show","hide":"Hide","passValidatorEnabled":true,"confirm":"Confirm Password","confirmPlaceholder":""},"id":"bce27689-1a46-48bb-ae8d-1f91ade56f9f"},{"type":"button","order":4,"config":{"isSubmit":true,"text":"Submit"},"id":"df228f20-3552-42f3-86e6-79ced270b243"}],"tab":"login"}]},{"type":"payment","sections":[{"type":"payment_details","order":1,"label":"Payment Details","elements":[{"type":"progress_bar","order":1,"config":{"enabled":true},"hidden":false,"id":"14b97e3f-dd31-4997-995b-dabefd738bf0"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"hidden":false,"id":"d0ffb2f4-7ca6-4290-b36c-ffe3cc2ae85a"},{"type":"user_attribute","order":3,"config":{"slug":"first-name","label":"First Name","inputType":"TEXT","required":true},"hidden":false,"id":"7de35c08-d812-454d-88b1-999b44faa452"},{"type":"user_attribute","order":4,"config":{"slug":"last-name","label":"Last Name","inputType":"TEXT","required":true},"hidden":false,"id":"624e0ba2-515e-429e-9213-123d00d964c0"},{"type":"payment","order":5,"config":{},"hidden":false,"id":"55eea59f-ee64-4a63-9034-c095fd8daa11"},{"type":"mobile_payment","order":6,"config":{"enabled":true,"showActivateTip":false},"hidden":false,"id":"f03d5faa-97c8-4175-9708-400166a3bc5e"},{"type":"button","order":7,"config":{"text":"Confirm and process payment"},"hidden":false,"id":"60d445b8-c1c3-489f-84d5-312cdb83a17c"}],"tab":"pay"}]},{"type":"success","sections":[{"type":"success","order":1,"label":"Successful Payment","elements":[{"type":"text","order":1,"config":{"text":"

      Payment processed successfully!\n

      Welcome to WrapPRO! Please check your email for confirmation details."},"id":"ab2ceeb2-d491-4789-914f-d14725100840"},{"type":"payment_summary","order":2,"config":{"title":"Subscription","total":"TOTAL","prorateLabel":"DUE TODAY","prorateDisclaimer":"Today's payment may vary.","taxLabel":"Tax"},"id":"f799fc08-40c9-40d5-9b57-ec8271184fd0"},{"type":"button","order":3,"config":{"text":"Continue reading"},"id":"9a337f43-a0bd-42e5-aee8-eba604577cce"}],"tab":"pay"}]}],"timestamp":1730567122646}), "id": "U-C45BXw", "outcomeId": "graph/1#2,graph/1#3,graph/1#5,graph/2#1,graph/2#2,graph/2#27,graph/2#35,graph/2#29,graph/2#31,graph/2#38,transformation/9", "ruleId": "H-pro-landing-page-88", "resolvedComponentTemplates": [], "languagePack": {"entries":{"forms.common.account-code.label":"Have an account registration code? Enter it here","forms.common.account-code.placeholder":"e.g. ACCOUNT001","forms.common.additional-section":"Additional Section","forms.common.continue":"Continue","forms.common.divider-text":"or use","forms.common.email":"Email","forms.common.email-edit":"Edit","forms.common.email-placeholder":"Your email address","forms.common.otp.code-sent-to":"A message with a code has been sent to","forms.common.otp.enter-code":"Enter the code in the box below.","forms.common.otp.forgot-password":"Forgot Password?","forms.common.otp.forgot-password-code-sent":"Code sent!","forms.common.otp.label":"Code","forms.common.otp.placeholder":"e.g. 350271","forms.common.otp.resend":"Didn't get a code?","forms.common.otp.resent":"Resent!","forms.common.password":"Password","forms.common.password-confirm":"Confirm Password","forms.common.password-confirm-placeholder":"confirm password...","forms.common.password-hide":"Hide","forms.common.password-placeholder":"password...","forms.common.password-show":"Show","forms.common.password-validator.length":"Must include at least 8 characters","forms.common.password-validator.match":"Passwords match","forms.common.password-validator.number":"Must include a number character","forms.common.password-validator.symbol":"Must include a supported symbol","forms.common.password-validator.uppercase":"Must include an uppercase letter","forms.common.social-sign-in-label":"Continue with","forms.common.submit":"Submit","forms.complete-registration-form.default-intro-text":"Set up your password","forms.complete-registration-form.default-success-message":"Thank you for updating your profile.","forms.contact-form.default-intro-text-1":"Stay in touch","forms.contact-form.default-intro-text-2":"Subscribe to our newsletter today","forms.contact-form.default-success-message":"Thank you for submitting your contact information.","forms.data-capture-form.default-intro-text":"Tell us more about you!","forms.data-capture-form.default-success-message":"Thank you for updating your profile.","forms.errors.company-account-not-found":"Account not found","forms.errors.contact-creation-disabled":"This operation is not possible at the moment, please try again later","forms.errors.email-domain-blocked":"Please use a different email address, this domain is not supported","forms.errors.email-taken":"This email address is already registered. Please log in to continue","forms.errors.email-verification-required":"Email verification is required","forms.errors.invitation-failed-duplicate-email":"An invite has already been created for this email","forms.errors.invitation-failed-invalid-email":"Invalid email address","forms.errors.invitation-failed-limit-reached":"You have reached the sharing limit for this product","forms.errors.invitation-failed-no-product-access":"You do not currently have access to this product","forms.errors.login-failed":"The email address or password you entered is incorrect","forms.errors.no-authenticated-session":"Please login to update your profile","forms.errors.otp-incorrect":"The code you entered is incorrect","forms.errors.otp-or-password-incorrect":"The password or code you entered is incorrect","forms.errors.otp-send-failed":"Unable to send a verification code. Please try again later","forms.errors.password-reset-failed":"Unable to reset your password. Please try again later","forms.errors.password-reset-link-send-failed":"Unable to send a password reset link. Please try again later","forms.errors.promo-code-expired":"Promo code expired","forms.errors.promo-code-invalid":"Invalid promo code","forms.errors.promo-code-invalid-for-payment-option":"Promo code cannot be applied to selected option","forms.errors.session-limit-reached":"You have reached the session limit. Please log out from another device to access this content","forms.errors.too-many-requests":"To gain login access, please contact your administrator","forms.errors.unknown-error":"Something went wrong. Please try again later","forms.errors.unknown-payment-error":"Something went wrong when processing your payment. Please try again later","forms.errors.user-attribute-invalid":"Invalid user attribute","forms.errors.user-not-found":"User not found","forms.payment.account-verification-section":"Account Verification","forms.payment.invitation-button":"Send Invite","forms.payment.invitation-description":"You can invite people by entering their email","forms.payment.invitation-label":"Email Address","forms.payment.invitation-link-sent":"Invite sent!","forms.payment.invitation-title":"Invite people to your sharable plan","forms.payment.login":"Login","forms.payment.login-link":"Login","forms.payment.login-link-message":"Already a registered user?","forms.payment.password-setup-text":"Create an account","forms.payment.payment-button":"Confirm and process payment","forms.payment.payment-option-select-button":"Select Plan","forms.payment.payment-section":"Payment Details","forms.payment.payment-summary-disclaimer":"Today's payment may vary","forms.payment.payment-summary-prorate":"DUE TODAY","forms.payment.payment-summary-tax":"Tax","forms.payment.payment-summary-title":"Subscription","forms.payment.payment-summary-total":"TOTAL","forms.payment.plan-select-section":"Plan Select","forms.payment.promo-code-button":"Verify","forms.payment.promo-code-placeholder":"Promo code","forms.payment.promo-code-text":"Have a promo code?","forms.payment.reset-password-text":"Reset your password","forms.payment.success-button":"Continue Reading","forms.payment.success-message":"Payment processed successfully","forms.registration.account-verification-section":"Account Verification","forms.registration.default-intro-text":"You've reached the limit of free articles","forms.registration.email-verification-required-message":"A link has been sent to you. Please check your Email.","forms.registration.login":"Login","forms.registration.login-link-text":"A login link has been sent to","forms.registration.password-setup-section":"Password Setup","forms.registration.password-setup-text":"Create an account","forms.registration.resend-login-link":"Didn't get a link?","forms.registration.resend-login-link-resent":"Resent!","forms.registration.reset":"Reset!","forms.registration.reset-password-text":"Reset your password","forms.registration.success-button":"Continue Reading","forms.registration.success-message":"You have signed up successfully!","hidden.example-key":"Hello world","hidden.form-preview.locale":"en-US","hidden.forms-preview.example-payment-option-description":"Example Payment Option","hidden.forms-preview.example-payment-option-label":"Example Offer","interstitial-page.password-reset.new-password":"New password:","interstitial-page.password-reset.password-mismatch-error":"You did not enter the same password twice","interstitial-page.password-reset.repeat-password":"Repeat password:","interstitial-page.password-reset.reset-button":"Reset","interstitial-page.password-reset.return-home-link":"Go back to the site","interstitial-page.password-reset.success-message":"Your password has been reset successfully!","interstitial-page.password-reset.title":"Change your password","interstitial-page.password-reset.unknown-error":"Something went wrong! Please try again later.","interstitial-page.passwordless-login.title":"Welcome","interstitial-page.update-email.enter-password":"Please enter your current password to complete the email update request.","interstitial-page.update-email.incorrect-password-error":"Incorrect password.","interstitial-page.update-email.password":"Password:","interstitial-page.update-email.return-home-link":"Go back to the site","interstitial-page.update-email.submit-button":"Update","interstitial-page.update-email.title":"Changing your email","interstitial-page.update-email.unknown-error":"Something went wrong! Please try again later.","interstitial-page.update-email-passwordless.message":"Please check the inbox of your new email for further instructions.","interstitial-page.update-email-passwordless.title":"Changing your email","interstitial-page.update-email-passwordless-success.message":"You have successfully changed your email address.","interstitial-page.update-email-passwordless-success.title":"Changing your email","interstitial-page.update-email-success.message":"Your email has been updated successfully!","pages.account-management.account-select-dropdown":"Select account","pages.account-management.delete-link":"Delete","pages.account-management.delete-modal-body":"Are you sure you want to delete this user?","pages.account-management.delete-modal-button":"Yes Delete","pages.account-management.delete-modal-title":"You are about to delete user","pages.account-management.delete-success-modal-body":"has been successfully deleted.","pages.account-management.delete-success-modal-title":"User Deleted","pages.account-management.errors.already-exists":"already exists","pages.account-management.errors.delete-fail":"Failed to delete","pages.account-management.errors.invite-fail":"Could not invite user","pages.account-management.invite-button-text":"Invite a User","pages.account-management.invite-modal-cancel-button":"Cancel","pages.account-management.invite-modal-confirm-button":"Invite User","pages.account-management.invite-modal-email-label":"Email Address","pages.account-management.invite-modal-email-placeholder":"Enter Email Address","pages.account-management.invite-modal-title":"Invite User","pages.account-management.invite-success-modal-body":"An invite has been sent to","pages.account-management.no-users":"No users found","pages.account-management.owner":"Owner","pages.account-management.search-button-text":"Search","pages.account-management.search-placeholder-text":"Search for a user","pages.account-management.success-modal-button":"Close","pages.account-management.title":"Manage Your Users","pages.cancel.back-to-subscriptions":"Back to Subscriptions","pages.cancel.cancel-subscription":"Cancel Subscription","pages.cancel.cancelled":"Cancelled","pages.cancel.continue-subscription":"Continue Subscription","pages.cancel.days-left":"DAYS LEFT:","pages.cancel.plan-frequency":"Frequency","pages.cancel.plan-name":"Name","pages.cancel.plan-next-billing":"Next Billing","pages.cancel.plan-period":"Period","pages.cancel.plan-price":"Price","pages.cancel.plan-type":"Type","pages.cancel.select-plans":"Select the plans you wish to cancel","pages.cancel.status-active":"Active","pages.cancel.status-cancelled":"Cancelled","pages.cancel.status-draft":"Draft","pages.cancel.status-expired":"Expired","pages.cancel.status-pending-acceptance":"Pending Acceptance","pages.cancel.status-pending-activation":"Pending Activation","pages.cancel.status-suspended":"Suspended","pages.cancel.status-unknown":"Unknown","pages.cancel.subscription-ends-on":"Subscription ends on","pages.cancel.subscription-will-end-on":"Your subscription will end on","pages.cancel.success":"You've cancelled your subscription","pages.cancel.until-cancelled":"Until Cancelled","pages.common.collapsible-content-text":"See details","pages.common.confirmation-modal-cancel-button":"Cancel","pages.common.confirmation-modal-confirm-button":"Confirm","pages.common.confirmation-primary-error-message":"Something went wrong!","pages.common.confirmation-secondary-error-message":"Try again later.","pages.common.date-time-format-locale":"en-US","pages.common.input-errors-invalid-email":"Please enter a valid email","pages.common.input-errors-invalid-url":"Please enter a valid URL","pages.common.input-errors-missing-value":"Please enter a value","pages.common.loading":"Loading...","pages.common.no-access-back-link":"Go Back","pages.common.no-access-body":"Sorry, you are not allowed to access this page. Click the button to go back.","pages.common.no-access-title":"No access.","pages.common.password-hide":"Hide","pages.common.password-show":"Show","pages.login-reg.already-registered-sign-in":"Already registered? Sign in","pages.login-reg.cancel":"Cancel","pages.login-reg.complete-registration-button":"Complete Registration","pages.login-reg.continue-with-apple":"Continue with Apple","pages.login-reg.continue-with-facebook":"Continue with Facebook","pages.login-reg.continue-with-google":"Continue with Google","pages.login-reg.continue-with-linkedin":"Continue with Linkedin","pages.login-reg.continue-with-microsoft":"Continue with Microsoft","pages.login-reg.continue-with-open-id-connect":"Continue with Open ID Connect","pages.login-reg.continue-with-twitter":"Continue with X","pages.login-reg.create-account":"Create an account","pages.login-reg.email-me-login-link":"Email me login link","pages.login-reg.email-me-reset-code":"Email me reset code","pages.login-reg.email-placeholder":"Email Address","pages.login-reg.enter-account-reg-code-here":"Enter an account registration code here","pages.login-reg.errors.contact-admin":"Please contact the administrator","pages.login-reg.errors.email-already-taken":"Email already taken","pages.login-reg.errors.email-verification-required":"Email verification is required","pages.login-reg.errors.password-incorrect":"The password you entered is incorrect","pages.login-reg.errors.password-not-strong-enough":"Password is not strong enough","pages.login-reg.errors.seat-capacity":"Your registration request couldn't be completed due to account seat capacity issue.","pages.login-reg.errors.something-went-wrong":"Something went wrong!","pages.login-reg.errors.to-gain-access-contact-admin":"To gain login access, please contact your administrator","pages.login-reg.errors.try-again-later":"Please try again later.","pages.login-reg.errors.user-not-found":"User not found","pages.login-reg.errors.username-already-taken":"Username already taken","pages.login-reg.forgotten-password":"Forgotten Password?","pages.login-reg.logging-in":"Logging in...","pages.login-reg.login-button":"Login","pages.login-reg.login-to-account":"Login to your account","pages.login-reg.or":"Or","pages.login-reg.password-placeholder":"Password","pages.login-reg.password-requirement":"Password must be a minimum of 8 characters and contain uppercase and lowercase, numbers and at least 1 special character.","pages.login-reg.register-button":"Register","pages.login-reg.register-for-account":"Register for an account","pages.login-reg.reset-your-password":"Reset your password","pages.login-reg.wait":"Please wait...","pages.pref-center.devices.current-device":"Current Device","pages.pref-center.devices.error-loading":"There was an error getting the device list","pages.pref-center.devices.sign-in-time":"Login date and time:","pages.pref-center.devices.sign-out":"Sign out","pages.pref-center.devices.sign-out-all":"Sign out of all other devices","pages.pref-center.devices.sign-out-all-success":"All other devices are now signed out","pages.pref-center.devices.sign-out-fail":"Signing out failed","pages.pref-center.devices.sign-out-success":"is now signed out.","pages.pref-center.devices.title":"Your Devices","pages.pref-center.devices.unknown-device":"Unknown","pages.pref-center.email-update-passwordless-message":"A link has been sent to your current email. Please check your inbox.","pages.pref-center.email-update-passwordless-title":"Check Your Inbox","pages.pref-center.general-error":"Something went wrong - please try again later","pages.pref-center.profile.attributes-select-list-placeholder":"Select One","pages.pref-center.profile.attributes-update-save":"Save","pages.pref-center.profile.attributes-update-title":"Your profile","pages.pref-center.profile.email":"Email Address","pages.pref-center.profile.email-update-email-label":"New Email","pages.pref-center.profile.email-update-email-placeholder":"Enter Email","pages.pref-center.profile.email-update-password-label":"Your Password","pages.pref-center.profile.email-update-password-placeholder":"Enter password","pages.pref-center.profile.email-update-save":"Save","pages.pref-center.profile.email-update-step-2-title":"Update Email Address","pages.pref-center.profile.email-update-title":"Update Email Address","pages.pref-center.profile.errors.change-email-error":"Sorry but your email address has not been changed. Please try again.","pages.pref-center.profile.errors.change-password-error":"Sorry but we were unable to reset your password. Please try again.","pages.pref-center.profile.errors.email-already-taken-error":"This email address is already taken.","pages.pref-center.profile.errors.incorrect-code":"Entered code is incorrect","pages.pref-center.profile.errors.incorrect-password":"The password you entered is incorrect","pages.pref-center.profile.errors.password-validation-error":"Password is not strong enough","pages.pref-center.profile.errors.unsuccessful":"Unsuccessful","pages.pref-center.profile.errors.update-profile-error":"Sorry but we were unable to update your profile. Please try again.","pages.pref-center.profile.password":"Password","pages.pref-center.profile.password-update-current-password-label":"Current Password","pages.pref-center.profile.password-update-current-password-placeholder":"Enter your password","pages.pref-center.profile.password-update-new-password-label":"New Password","pages.pref-center.profile.password-update-new-password-placeholder":"Enter a password","pages.pref-center.profile.password-update-save":"Continue","pages.pref-center.profile.password-update-step-2-title":"Reset your password","pages.pref-center.profile.password-update-title":"Update Password","pages.pref-center.profile.title":"Your Profile","pages.pref-center.profile.update":"Update","pages.pref-center.profile.update-email-successful":"Your email address has been changed.","pages.pref-center.profile.update-password-successful":"Your password has been reset.","pages.pref-center.profile.update-profile-successful":"Your profile has been updated.","pages.pref-center.profile.update-return-text":"Return to Personal Information","pages.pref-center.profile.update-step-2-code-label":"Code","pages.pref-center.profile.update-step-2-code-placeholder":"e.g. 350271","pages.pref-center.profile.update-step-2-enter-code":"Enter the code in the box below.","pages.pref-center.profile.update-step-2-message-sent":"A message with a code has been sent to email address:","pages.pref-center.profile.update-step-2-new-code-modal-body":"Would you like to send a new verification code to","pages.pref-center.profile.update-step-2-new-code-modal-button":"Resend Code","pages.pref-center.profile.update-step-2-new-code-modal-title":"Get a new verification code","pages.pref-center.profile.update-step-2-resend-code-link-text":"Didn't get a code?","pages.pref-center.profile.update-step-2-save":"Submit","pages.pref-center.profile.update-successful":"Success","pages.pref-center.share-product.modal-body":"You can invite people by entering their email. Available seats:","pages.pref-center.share-product.modal-email-label":"Email Address","pages.pref-center.share-product.modal-email-placeholder":"Enter Email Address","pages.pref-center.share-product.modal-send-button-text":"Send Invite","pages.pref-center.share-product.modal-title":"Invite people to your sharable subscription","pages.pref-center.shared-members.done-button":"Done","pages.pref-center.shared-members.invite-button-text":"Invite new members","pages.pref-center.shared-members.manage-shared-members-title":"Manage shared members","pages.pref-center.shared-members.no-members":"This product is not currently shared with anyone.","pages.pref-center.shared-members.seats-used":"seats used","pages.pref-center.shared-members.status-active":"Active","pages.pref-center.shared-members.status-inactive":"Inactive","pages.pref-center.shared-members.status-pending":"Pending","pages.pref-center.shared-members.table-header-date":"Date Shared","pages.pref-center.shared-members.table-header-email":"Email Address","pages.pref-center.shared-members.table-header-status":"Status","pages.pref-center.shared-members.table-remove-member":"Remove member","pages.pref-center.shared-members.title":"Shared Members","pages.pref-center.shared-products.errors.existing-invite-error":"An invite has already been created for this email","pages.pref-center.shared-products.errors.invalid-email-error":"Invalid email address","pages.pref-center.shared-products.errors.limit-reached-error":"You have reached the sharing limit for this product","pages.pref-center.shared-products.errors.no-access-error":"You do not currently have access to this product","pages.pref-center.shared-products.leave-product-body":"Are you sure you want to leave this shared product?","pages.pref-center.shared-products.leave-product-title":"Leave Product","pages.pref-center.shared-products.no-subscriptions":"You do not currently have any products shared with you.","pages.pref-center.shared-products.remove-invite-body":"Are you sure you want to remove this pending invite from your subscription?","pages.pref-center.shared-products.remove-invite-title":"Remove Invite","pages.pref-center.shared-products.remove-member-body":"Are you sure you want to remove this user from your subscription?","pages.pref-center.shared-products.remove-member-title":"Remove Member","pages.pref-center.shared-products.remove-subscription":"Leave shared subscription","pages.pref-center.shared-products.shared-by":"Shared by","pages.pref-center.subscriptions.billing-history-link":"Billing History.","pages.pref-center.subscriptions.billing-history-table-canceled":"Subscription canceled","pages.pref-center.subscriptions.billing-history-table-header-date":"Date","pages.pref-center.subscriptions.billing-history-table-header-period":"Subscription Period","pages.pref-center.subscriptions.billing-history-table-header-subtotal":"Subtotal","pages.pref-center.subscriptions.billing-history-table-header-total":"Total","pages.pref-center.subscriptions.billing-history-title":"Billing History","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-body":"Your subscription has been canceled.","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-button":"Close","pages.pref-center.subscriptions.cancel-subscription-confirm-modal-title":"Subscription canceled","pages.pref-center.subscriptions.cancel-subscription-modal-body":"Are you sure you want to cancel the subscription","pages.pref-center.subscriptions.cancel-subscription-modal-button":"Cancel Subscription","pages.pref-center.subscriptions.cancel-subscription-modal-title":"Cancel your subscription","pages.pref-center.subscriptions.cancel-subscription-title":"Cancel your subscription","pages.pref-center.subscriptions.canceled-date":"Canceled on","pages.pref-center.subscriptions.change-multi-subscription-screen-active-subscription":"active","pages.pref-center.subscriptions.change-multi-subscription-screen-best-value":"best value","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-confirm-modal-body":"Your subscriptions have been canceled.","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-confirm-modal-title":"Subscriptions canceled","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-modal-title":"Cancel your subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-cancel-subscriptions-text":"Cancel Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-current-subscription":"current subscription","pages.pref-center.subscriptions.change-multi-subscription-screen-current-subscriptions-title":"Current Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-edit-subscription-text":"Edit","pages.pref-center.subscriptions.change-multi-subscription-screen-new-subscriptions-title":"New Subscriptions","pages.pref-center.subscriptions.change-multi-subscription-screen-review-button":"Review Changes","pages.pref-center.subscriptions.change-multi-subscription-screen-title":"Manage Subscriptions","pages.pref-center.subscriptions.change-payment-method-description":"Adjust how you pay for the product.","pages.pref-center.subscriptions.change-payment-method-screen-description":"This credit card will be used as the payment method for the following subscription:","pages.pref-center.subscriptions.change-payment-method-screen-save-button":"Save","pages.pref-center.subscriptions.change-payment-method-screen-title":"Enter Payment Detail","pages.pref-center.subscriptions.change-payment-method-title":"Change payment method","pages.pref-center.subscriptions.change-single-subscription-screen-add-new":"Add a new card","pages.pref-center.subscriptions.change-single-subscription-screen-best-value":"Best Value","pages.pref-center.subscriptions.change-single-subscription-screen-confirm-button":"CONFIRM & PROCESS PAYMENT","pages.pref-center.subscriptions.change-single-subscription-screen-current-subscription-title":"Current Subscription","pages.pref-center.subscriptions.change-single-subscription-screen-existing-payment":"Use existing payment method","pages.pref-center.subscriptions.change-single-subscription-screen-new-subscription-description":"Change your current subscription for another.","pages.pref-center.subscriptions.change-single-subscription-screen-new-subscription-title":"Change Subscription","pages.pref-center.subscriptions.change-single-subscription-screen-payment-method-selection":"Payment Method","pages.pref-center.subscriptions.change-single-subscription-screen-review-button":"Review Changes","pages.pref-center.subscriptions.change-single-subscription-screen-select-plan":"Select Plan","pages.pref-center.subscriptions.change-single-subscription-screen-selected-plan":"Selected Plan","pages.pref-center.subscriptions.change-single-subscription-screen-title":"Manage Subscription","pages.pref-center.subscriptions.change-single-subscription-title":"Change your subscription","pages.pref-center.subscriptions.change-subscription-description":"Adjust what products you have access to.","pages.pref-center.subscriptions.change-subscriptions-title":"Change your subscriptions","pages.pref-center.subscriptions.invoices-text":"To see previous invoices visit","pages.pref-center.subscriptions.manage-single-subscription-title":"Manage Subscription","pages.pref-center.subscriptions.manage-subscriptions-title":"Manage Subscriptions","pages.pref-center.subscriptions.next-payment-title":"Next payment date","pages.pref-center.subscriptions.no-subscriptions":"You don't have any subscriptions.","pages.pref-center.subscriptions.one-off-expiry-date":"Expiry Date","pages.pref-center.subscriptions.one-off-price-title":"Price","pages.pref-center.subscriptions.payment-information-title":"Payment Information","pages.pref-center.subscriptions.payment-processing-text":"(payment processing)","pages.pref-center.subscriptions.product-canceled":"Product canceled","pages.pref-center.subscriptions.return-to-subscription-text":"Return to Subscription","pages.pref-center.subscriptions.return-to-subscriptions-text":"Return to Subscriptions","pages.pref-center.subscriptions.subscription-rate-title":"Subscription rate","pages.pref-center.subscriptions.update-success":"Update success"}} }, formTypeConfig: { ...({"paymentOptions":[{"slug":"price_1NZw08JfmyebVn8Bjn2hNf4x","label":"WrapPro Digital - $14.99 (USD)/Month ","description":"

      Monthly Plan\n

       \n

      $3.75 / week\n

      Billed as $14.99 every 4 weeks. Cancel anytime.","selectButtonText":"Select Plan","currencyCode":"USD","price":14.99,"productId":"wrappro","fieldOrder":1,"paymentProvider":"stripe","billingFrequency":1,"billingFrequencyUnit":"MONTH","type":"REGULAR","disclaimerMessage":"","descriptionMode":"VISUAL","templateValues":{},"environment":"LIVE","virtualEnvironment":"live","product_sharing_limit":0},{"slug":"price_1No9lcJfmyebVn8BmCyIa3Qw","productId":"wrappro-digital-print","price":149,"currencyCode":"USD","type":"REGULAR","highlightedText":"Most Popular","selectButtonText":"<<>>","description":"

      Annual Plan\n

       \n

      $3.00 / week\n

      Billed Annually as $149.99. Cancel anytime.\n

       ","label":"WrapPro Digital + Print - $149 (USD)/Year","fieldOrder":0,"disclaimerMessage":"","templateValues":{},"descriptionMode":"VISUAL","paymentProvider":"stripe","virtualEnvironment":"live","product_sharing_limit":0}],"loginLinkConfig":{"enabled":true,"alreadyRegText":"Already a registered user?","loginText":"Login","url":"/login"},"allowAccountRegistration":false,"formCurrency":"","paymentProviderFormConfig":{"usePaymentElement":false},"stagingPaymentProviderFormConfig":{},"hideConfirmPasswordOnRegForm":false,"changeSubscriptionPlanMappings":[],"changeSubscriptionMode":false,"promoCodeConfig":{"promoCodeAllowed":true,"promoCodeText":"Have a promo code?","promoCodeButtonText":"Verify","promoCodePlaceholder":"Use CYBER for 50% off"},"usePassword":true,"useVerificationCodes":false,"invitationEnabled":false,"invitationMetadata":{"url":"","mapping":[]},"autoApplyAttributes":{}}), "requestCountry": "US", "requestState": "Missouri", "requestCity": "St Louis", "requestZipCode": "63101", }, organisationConfig: {"schemaFields":[{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"account_subscription","visibility":"PUBLIC","context":null,"label":"Subscription Status","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"address-1","visibility":"PUBLIC","context":null,"label":"Address 1","required":false,"internal-description":"Address 1","public-description":"Address 1","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"address-2","visibility":"PUBLIC","context":null,"label":"Address 2","required":false,"internal-description":"Address 2","public-description":"Address 2","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"awards-season","visibility":"PUBLIC","context":null,"label":"Awards Season","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"city","visibility":"PUBLIC","context":null,"label":"City","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"company","visibility":"PUBLIC","context":null,"label":"Company","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"country","visibility":"PUBLIC","context":null,"label":"Country","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"first-name","visibility":"PUBLIC","context":null,"label":"First Name","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"first-take","visibility":"PUBLIC","context":null,"label":"First Take","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"gender","visibility":"PUBLIC","context":null,"label":"Gender","required":false,"internal-description":"gender","public-description":"gender","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"geocountry","visibility":"PUBLIC","context":null,"label":"GeoCountry","required":false,"internal-description":"Used for Geo Targeting","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"geostate","visibility":"PUBLIC","context":null,"label":"GeoState","required":false,"internal-description":"Used for GeoTargeting","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"job","visibility":"PUBLIC","context":null,"label":"Job Title","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"last-name","visibility":"PUBLIC","context":null,"label":"Last Name","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"news-highlights","visibility":"PUBLIC","context":null,"label":"Breaking News","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"product","visibility":"PUBLIC","context":null,"label":"Product","required":false,"internal-description":"Product","public-description":"Product","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"province","visibility":"PUBLIC","context":null,"label":"Province","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"screenings-events","visibility":"PUBLIC","context":null,"label":"Screenings & Events","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"state","visibility":"PUBLIC","context":null,"label":"US State","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"select","select-options":[{"label":"AL","value":"AL","default":false},{"label":"AK","value":"AK","default":false},{"label":"AZ","value":"AZ","default":false},{"label":"AR","value":"AR","default":false},{"label":"CA","value":"CA","default":false},{"label":"CO","value":"CO","default":false},{"label":"CT","value":"CT","default":false},{"label":"DE","value":"DE","default":false},{"label":"DC","value":"DC","default":false},{"label":"FL","value":"FL","default":false},{"label":"GA","value":"GA","default":false},{"label":"HI","value":"HI","default":false},{"label":"ID","value":"ID","default":false},{"label":"IL","value":"IL","default":false},{"label":"IN","value":"IN","default":false},{"label":"IA","value":"IA","default":false},{"label":"KS","value":"KS","default":false},{"label":"KY","value":"KY","default":false},{"label":"LA","value":"LA","default":false},{"label":"ME","value":"ME","default":false},{"label":"MD","value":"MD","default":false},{"label":"MA","value":"MA","default":false},{"label":"MI","value":"MI","default":false},{"label":"MN","value":"MN","default":false},{"label":"MS","value":"MS","default":false},{"label":"MO","value":"MO","default":false},{"label":"MT","value":"MT","default":false},{"label":"NE","value":"NE","default":false},{"label":"NV","value":"NV","default":false},{"label":"NH","value":"NH","default":false},{"label":"NJ","value":"NJ","default":false},{"label":"NM","value":"NM","default":false},{"label":"NY","value":"NY","default":false},{"label":"NC","value":"NC","default":false},{"label":"ND","value":"ND","default":false},{"label":"OH","value":"OH","default":false},{"label":"OK","value":"OK","default":false},{"label":"OR","value":"OR","default":false},{"label":"PA","value":"PA","default":false},{"label":"PR","value":"PR","default":false},{"label":"RI","value":"RI","default":false},{"label":"SC","value":"SC","default":false},{"label":"SD","value":"SD","default":false},{"label":"TN","value":"TN","default":false},{"label":"TX","value":"TX","default":false},{"label":"UT","value":"UT","default":false},{"label":"VT","value":"VT","default":false},{"label":"VI","value":"VI","default":false},{"label":"VA","value":"VA","default":false},{"label":"WA","value":"WA","default":false},{"label":"WV","value":"WV","default":false},{"label":"WI","value":"WI","default":false},{"label":"WY","value":"WY","default":false}],"range-start":0,"range-end":100,"range-step":5,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"the-weekender","visibility":"PUBLIC","context":null,"label":"The Weekender","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"tv-watch-list","visibility":"PUBLIC","context":null,"label":"TV Watch List","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"wrapwomen","visibility":"PUBLIC","context":null,"label":"WrapWomen","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"checkbox","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false},{"tenantId":"thewrap","subTenantId":"thewrap|thewrap","slug":"zipcode","visibility":"PUBLIC","context":null,"label":"Zipcode","required":false,"internal-description":"","public-description":"","validation-expression":null,"input-type":"text","select-options":null,"range-start":null,"range-end":null,"range-step":null,"decision-point":true,"publicly-writable":true,"form-use":false}],"siteStyles":"{\"color\":{\"text\":{\"main\":\"#000000\",\"tinted\":\"#333333\"},\"background\":{\"main\":\"#FFFFFF\",\"tinted\":\"#b3b3b3\"},\"accent\":{\"main\":\"#dcdfe4\",\"tinted\":\"#bfc4ce\"},\"action\":{\"main\":\"#da0a0a\",\"tinted\":\"#f52222\"},\"warning\":{\"main\":\"#D90B00\",\"tinted\":\"#ff190d\"}},\"typography\":{\"title\":{\"font\":\"IvyPresto Text\",\"fallbackFont\":\"serif\"},\"body\":{\"font\":\"Libre Franklin\",\"fallbackFont\":\"sans-serif\"}},\"button\":{\"fontWeight\":\"normal\",\"fontSize\":\"16\",\"borderWidth\":\"0\",\"borderRadius\":\"0\",\"height\":\"50\"},\"input\":{\"borderColor\":\"#333333\",\"borderWidth\":\"1\",\"borderRadius\":\"0\",\"height\":\"50\"}}","twoFactorEmailAuthenticationEnabled":false,"requireEmailVerfication":false,"hideConfirmPasswordOnRegForm":false,"passwordStrengthRequirements":{"minLength":8,"requireUppercase":true,"requireNumbers":true,"requireSpecialCharacters":false},"ruleAnalyticsEnabled":true,"paymentProvider":"stripe","braintreeSandboxEnv":true,"braintreeMobilePaymentConfig":null,"stripeMobilePaymentConfig":"{\"apple\":{\"countryCode\":\"US\"},\"google\":{\"countryCode\":\"US\"}}","stripeAutomaticTaxEnabled":false}, }));