1/*! For license information please see 815.ad6956d624f4cf6d7035.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcozi_web=self.webpackChunkcozi_web||[]).push([[815],{oPvt(e,t,r){r.d(t,{Ay:()=>Wt});var n=r("q1tI"),o=r("Vg22"),i=r("tFsR"),a=r("4SJ7"),l=r("CSpG"),u=r("HTEi"),c=r("Rai1"),s=r("8sld"),f=r("If6W"),d=r("YiST"),p=r("xzGS"),y=r("TH4B"),b=r("kNGT"),m=r("ruB0"),v=r("/hCz"),g=r("iTgP"),S=r("GxLB"),h=r("HHsm");function P(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof l?n:l,c=Object.create(u.prototype);return w(c,"_invoke",function(r,n,o){var i,l,u,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,l=0,u=e,d.n=r,a}};function p(r,n){for(l=r,u=n,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,y=i[2];r>3?(o=y===n)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(l=0,d.v=n,d.n=i[1]):p<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,d.n=y,l=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),l=s,u=y;(t=l<2?e:u)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,u)):d.n=u:d.v=u);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(t){i=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(w(t={},n,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,w(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,w(f,"constructor",c),w(c,"constructor",u),u.displayName="GeneratorFunction",w(c,o,"GeneratorFunction"),w(f),w(f,o,"Generator"),w(f,n,function(){return this}),w(f,"toString",function(){return"[object Generator]"}),(P=function(){return{w:i,m:d}})()}function w(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}w=function(e,t,r,n){function i(t,r){w(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},w(e,t,r,n)}function O(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}var A="prosperStack",C={CLIENT_ID:"acct_NcFThs49R2bvZsZwOwfg6DeW",SCRIPT_SRC:"https://cdn.prosperstack.com/flow/latest/flow.min.js",SCRIPT_ID:"prosperstack-flow",DISPLAY_MODE:"modal",IFRAME_SELECTOR:".prosperstack-iframe",LOAD_TIMEOUT_MS:1e4},M="canceled",j=null,T=function(){return window.ProsperStack&&window.ProsperStack.flow},k=function(){return T()?Promise.resolve(T()):j||(j=new Promise(function(e,t){var r=document.getElementById(C.SCRIPT_ID);r&&r.remove();var n,o=document.createElement("script"),i=function(r){if(clearTimeout(n),o.removeEventListener("load",a),o.removeEventListener("error",l),r)return o.remove(),j=null,void t(r);e(T())};function a(){T()?i():i(new Error("ProsperStack script loaded without a flow function"))}function l(){i(new Error("ProsperStack script failed to load"))}n=setTimeout(function(){i(new Error("ProsperStack script load timed out"))},C.LOAD_TIMEOUT_MS),o.addEventListener("load",a),o.addEventListener("error",l),o.id=C.SCRIPT_ID,o.src=C.SCRIPT_SRC,o.async=!0,document.body.appendChild(o)}))},E=function(){var e,t=(e=P().m(function e(t){var r,n,o,i,a,l,u;return P().w(function(e){for(;;)switch(e.n){case 0:return r=t.subscriptionId,n=t.accountId,o=t.email,e.n=1,k();case 1:return i=e.v,h.A.console(A,"opening ProsperStack flow for",{subscriptionId:r,accountId:n}),l=new Promise(function(e,t){a=t}),u=i({clientId:C.CLIENT_ID,subscription:{platformId:r},subscriber:{internalId:n,email:o}},{displayMode:C.DISPLAY_MODE,onError:function(e){h.A.error(A,"ProsperStack reported an in-flow error: ",e),document.querySelectorAll(C.IFRAME_SELECTOR).forEac
2h(function(e){return e.remove()}),a(e instanceof Error?e:new Error("ProsperStack flow reported an error"))}}),e.a(2,Promise.race([u,l]))}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){O(i,n,o,a,l,"next",e)}function l(e){O(i,n,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function I(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof l?n:l,c=Object.create(u.prototype);return D(c,"_invoke",function(r,n,o){var i,l,u,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,l=0,u=e,d.n=r,a}};function p(r,n){for(l=r,u=n,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,y=i[2];r>3?(o=y===n)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(l=0,d.v=n,d.n=i[1]):p<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,d.n=y,l=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),l=s,u=y;(t=l<2?e:u)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,u)):d.n=u:d.v=u);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(t){i=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(D(t={},n,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,D(f,"constructor",c),D(c,"constructor",u),u.displayName="GeneratorFunction",D(c,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,n,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(I=function(){return{w:i,m:d}})()}function D(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,r,n){function i(t,r){D(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},D(e,t,r,n)}function x(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function L(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,l,"next",e)}function l(e){x(i,n,o,a,l,"throw",e)}a(void 0)})}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var F="useProsperStackCancel";var U=r("u/IK"),R=r("qYve"),N=r("7etf"),$=r("J2rv"),z=r("tTdx"),B="app.components.GoldStripeExperience";const Y=(0,a.YK)({contactUsLink:{id:"".concat(B,".contactUsLink"),defaultMessage:"If you have any questions or would like to renew your subscription, please {link}. We are glad to help!"},contactUsCopy:{id:"".concat(B,".contactUsCopy"),defaultMessage:"contact us"}
2,legalBlurb:{id:"".concat(B,".legalBlurb"),defaultMessage:"{autoRenewal} We hope youâve been enjoying all of the great benefits of Cozi Gold! If you donât cancel before the end of the subscription, your subscription will automatically continue and the account you provide will be charged ${amount} for a full year of access to Cozi Gold benefits. Your subscription will then continue annually unless you cancel. Upon subscription cancellation, you will have access to Cozi Gold benefits for the remainder of the last paid term and you wonât be billed any further. By enrolling you agree to the Cozi {terms}."},freeTrialWithCouponBlurb:{id:"".concat(B,".freeTrialWithCouponBlurb"),defaultMessage:"{autoRenewal} If you donât cancel before the end of the trial, your subscription will automatically continue, and you will be charged {amount} for a full year of access to Cozi Gold benefits. Your subscription will then continue annually and you will be charged ${baseAmount} unless you cancel. By enrolling, you agree to the {terms}."},legalAutoRenewal:{id:"".concat(B,".legalAutoRenewal"),defaultMessage:"Automatic Renewal Notice:"},termsCopy:{id:"".concat(B,".termsCopy"),defaultMessage:"Terms of Service"},goldSubscription:{goldSubscriptionTitle:{id:"".concat(B,".goldSubscription.goldSubscriptionTitle"),defaultMessage:"Hooray! You have Cozi Gold!"},adFreeFeatures:{id:"".concat(B,".goldSubscription.adFreeFeatures"),defaultMessage:"Thank you for being a Cozi Gold subscriber. Everyone in your family gets to experience Gold benefits."},manageSubscriptionTitle:{id:"".concat(B,".goldSubscription.manageSubscriptionTitle"),defaultMessage:"Manage your subscription"},manageSubscriptionMessage:{id:"".concat(B,".goldSubscription.manageSubscriptionMessage"),defaultMessage:"We hope you are enjoying your Cozi Gold subscription. "},manageTrialMessage:{id:"".concat(B,".goldSubscription.manageTrialMessage"),defaultMessage:"We hope you've been enjoying all of the great benefits of Cozi Gold during your trial. "},paymentMethodNextInfo:{id:"".concat(B,".goldSubscription.paymentMethodNextInfo"),defaultMessage:"Your subscription is renewed annually and your next payment of {baseAmount} will be charged to your {brand} ending in {digits} (exp. {expMonth}/{expYear}) on {nextDate}."},paymentMethodFreeTrial:{id:"".concat(B,".goldSubscription.paymentMethodFreeTrial"),defaultMessage:"Your free trial ends on {nextDate} and unless you cancel by that date, your {brand} ending in {digits} will be charged {baseAmount} for a full year of membership."},paymentMethodWithCouponInfo:{id:"".concat(B,".goldSubscription.paymentMethodWithCouponInfo"),defaultMessage:"Your free trial ends on {nextDate} and unless you cancel by that date, your {brand} ending in {digits} will be charged {discountedAmount} for a full year of membership. Your subscription will then continue annually and you will be charged {baseAmount} unless you cancel."},paymentMethodEndInfo:{id:"".concat(B,".goldSubscription.paymentMethodEndInfo"),defaultMessage:"You have cancelled your Cozi Gold subscription. Your Gold benefits will end on {endDate} and your credit card will no longer be charged."},subNextPaymentDatePassed:{id:"".concat(B,".goldSubscription.subNextPaymentDatePassed"),defaultMessage:"Your Cozi Gold subscription ended on {nextPaymentDate} and your Gold benefits are currently in a grace period."},manageSubGraceMessage:{id:"".concat(B,".goldSubscription.gracePeriod"),defaultMessage:"To prevent interruption in your Gold benefits, please update your payment information."},managePendingCancellationMessage:{id:"".concat(B,".goldSubscription.managePendingCancellationMessage"),defaultMessage:"We are sorry to see you go! "},mainButtonTitle:{id:"".concat(B,".goldSubscription.mainButtonTitle"),defaultMessage:"Update payment information"},secondaryButtonTitle:{id:"".concat(B,".goldSubscription.secondaryButtonTitle"),defaultMessage:"Cancel renewal"},secondaryTrialButtonTitle:{id:"".concat(B,".goldSubscription.secondaryTrialButtonTitlee"),defaultMessage:"Cancel trial"}},updatePayment:{updatePaymentTitle:{id:"".concat(B,".updatePayment.updatePaymentTitle"),defaultMessage:"Update Payment"},updatePaymentSubTitle:{id:"".concat(B,".updatePayment.updatePaymentSubTitle"),defaultMessage:"Update your payment information"},updatePaymentCard:{id:"".concat(B,".updatePayment.updatePaymentCard"),defaultMessage:"Update Payment Card"},cardOnFile:{id:"".concat(B,".updatePayment.cardOnFile"),defaultMessage:"The credit card on file for your annual payment of {amount} is {brand} ending in {digits} (exp. {expMonth}/{expYear})."}
2,completeFormToUpdate:{id:"".concat(B,".updatePayment.completeFormToUpdate"),defaultMessage:"Complete this form to update the credit card we use for your subscription."},annualRenewal:{id:"".concat(B,".updatePayment.annualRenewal"),defaultMessage:"You will not be charged until your annual renewal date {date}."}},cancelSubscription:{cancelPaymentTitle:{id:"".concat(B,".cancelSubscription.cancelPaymentTitle"),defaultMessage:"Cancel Payment"},aboutToCancel:{id:"".concat(B,".cancelSubscription.aboutToCancel"),defaultMessage:"You are about to cancel your subscription to Cozi Gold."},cancellingTrial:{id:"".concat(B,".cancelSubscription.cancellingTrial"),defaultMessage:"Are you sure you want to cancel your {trialLength}-day free trial of Cozi Gold? Your Gold benefits will end immediately."},cancellingSub:{id:"".concat(B,".cancelSubscription.cancellingSub"),defaultMessage:"Are you sure you want to cancel your subscription to Cozi Gold? You will continue to enjoy Cozi Gold benefits until {endDate}."},affirmCancelTrial:{id:"".concat(B,".cancelSubscription.affirmButton"),defaultMessage:"Yes, cancel my free trial"},affirmCancelSub:{id:"".concat(B,".cancelSubscription.affirmButton"),defaultMessage:"Yes, cancel my subscription"},keepCoziButton:{id:"".concat(B,".cancelSubscription.keepCoziButton"),defaultMessage:"No, keep using cozi gold"}}});var W,H,q=r("gtSz");function Z(e,t,r,n){H||(H="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:H,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Q=function(e){var t=e.handleCancelClick,r=e.handleCancelConfirm,o=e.canceling,i=e.currentlyOfferedProduct,a=e.intl,l=e.subStats,u=K((0,n.useState)(!1),2),c=u[0],s=u[1],f=function(e,t,r){var n=e.formattedEndDate,o=e.formattedNextDate,i=e.activeFreeTrial;return i?r.formatMessage(Y.cancelSubscription.cancellingTrial,{trialLength:t.trialDays}):!i&&n?r.formatMessage(Y.cancelSubscription.cancellingSub,{endDate:n}):!i&&o?r.formatMessage(Y.cancelSubscription.cancellingSub,{endDate:o}):""}(l,i,a),d=l.activeFreeTrial?a.formatMessage(Y.cancelSubscription.affirmCancelTrial):a.formatMessage(Y.cancelSubscription.affirmCancelSub),p=a.formatMessage(Y.cancelSubscription.keepCoziButton);return Z(z.A,{isDialogOpen:o,onDialogClose:function(){return t(!1)},dialogTitle:a.formatMessage(Y.cancelSubscription.cancelPaymentTitle)},void 0,Z(U.DialogContent,{},void 0,n.createElement(n.Fragment,null,c&&(W||(W=Z($.A,{isLoading:!0}))),Z(q.yu,{},void 0,a.formatMessage(Y.cancelSubscription.aboutToCancel)),Z(q.LS,{},void 0,f),Z(N.p3,{style:{marginBottom:30}},void 0,Z(R.Ay,{a11yLabel:p,onClick:function(){return t(!1)}},void 0,p),Z(R.kX,{a11yLabel:d,onClick:function(){r(),s(!0)}},void 0,d)))))};var V=r("yxWn"),J=r("1gwv"),ee=r("CYYC"),te=r("drbN");function re(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof l?n:l,c=Object.create(u.prototype);return ne(c,"_invoke",function(r,n,o){var i,l,u,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,l=0,u=e,d.n=r,a}};function p(r,n){for(l=r,u=n,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,y=i[2];r>3?(o=y===n)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(l=0,d.v=n,d.n=i[1]):p<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,d.n=y,l=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),l=s,u=y;(t=l<2?e:u)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,u)):d.n=u:d.v=u);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(t){i=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(ne(t={},n,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ne(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,ne(f,"constructor",c),ne(c,"constructor",u),u.displayName="GeneratorFunction",ne(c,o,"GeneratorFunction"),ne(f),ne(f,o,"Generator"),ne(f,n,function(){return this}),ne(f,"toString",function(){return"[object Generator]"}),(re=function(){return{w:i,m:d}})()}function ne(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ne=function(e,t,r,n){function i(t,r){ne(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ne(e,t,r,n)}function oe(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var le="useSetupIntent";function ue(){var e=ie((0,n.useState)(null),2),t=e[0],r=e[1],o=ie((0,n.useState)(!1),2),i=o[0],a=o[1],l=ie((0,n.useState)(null),2),u=l[0],c=l[1],s=(0,n.useCallback)(function(){var e,t=(e=re().m(function e(t){var n,o,i,l;return re().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.subscriptionId,a(!0),c(null),e.p=1,h.A.console(le,"Creating SetupIntent:",{subscriptionId:n}),e.n=2,(0,te.yw)(n);case 2:null!==(o=e.v)&&void 0!==o&&o.clientSecret?(h.A.console(le,"SetupIntent created successfully"),r(o.clientSecret)):null!==o&&void 0!==o&&o.error||o instanceof Error?(i=(null===o||void 0===o?void 0:o.message)||(null===o||void 0===o?void 0:o.error)||"Failed to create SetupIntent",h.A.error(le,"SetupIntent error:",i),c(new Error(i))):(h.A.error(le,"Invalid response from SetupIntent API:",o),c(new Error("Invalid response from server"))),e.n=4;break;case 3:e.p=3,l=e.v,h.A.error(le,"Exception creating SetupIntent:",l),c(l instanceof Error?l:new Error("An unexpected error occurred"));case 4:return e.p=4,a(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){oe(i,n,o,a,l,"next",e)}function l(e){oe(i,n,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),[]),f=(0,n.useCallback)(function(){r(null),a(!1),c(null)},[]);return(0,n.useEffect)(function(){return f},[f]),{clientSecret:t,loading:i,error:u,createSetupIntent:s,resetState:f}}var ce,se,fe,de=r("8Snf"),pe=r("xr8+");function ye(e,t,r,n){fe||(fe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:fe,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function be(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof l?n:l,c=Object.create(u.prototype);return me(c,"_invoke",function(r,n,o){var i,l,u,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,l=0,u=e,d.n=r,a}};function p(r,n){for(l=r,u=n,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,y=i[2];r>3?(o=y===n)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(l=0,d.v=n,d.n=i[1]):p<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,d.n=y,l=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),l=s,u=y;(t=l<2?e:u)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,u)):d.n=u:d.v=u);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(t){i=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(me(t={},n,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,me(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,me(f,"constructor",c),me(c,"constructor",u),u.displayName="GeneratorFunction",me(c,o,"GeneratorFunction"),me(f),me(f,o,"Generator"),me(f,n,function(){return this}),me(f,"toString",function(){return"[object Generator]"}),(be=function(){return{w:i,m:d}})()}function me(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}me=function(e,t,r,n){function i(t,r){me(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},me(e,t,r,n)}function ve(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Se(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var he=(0,J.loadStripe)("pk_live_CZ9Rb9qCMUvlmwoDWURz9zz0");function Pe(e){var t=e.onSuccess,r=e.onError,o=e.buttonLabel,i=(0,ee.t2)(),a=(0,ee.HH)(),l=ge((0,n.useState)(!1),2),u=l[0],c=l[1],s=ge((0,n.useState)(null),2),f=s[0],d=s[1],p=function(){var e,n=(e=be().m(function e(n){var o,l,u;return be().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n.preventDefault(),i&&a){e.n=1;break}return e.a(2);case 1:return c(!0),d(null),e.p=2,e.n=3,i.confirmSetup({elements:a,confirmParams:{return_url:window.location.href},redirect:"if_required"});case 3:o=e.v,(l=o.error)?(d(l.message),r&&r(l)):t&&t(),e.n=5;break;case 4:e.p=4,u=e.v,d(u.message||"An unexpected error occurred"),r&&r(u);case 5:return e.p=5,c(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ve(i,n,o,a,l,"next",e)}function l(e){ve(i,n,o,a,l,"throw",e)}a(void 0)})});return function(e){return n.apply(this,arguments)}}();return ye("form",{onSubmit:p},void 0,ce||(ce=ye(ee.He,{})),f&&ye(de.A,{severity:"error",style:{marginTop:"16px"}},void 0,f),ye("div",{style:{marginTop:"24px"}},void 0,ye(pe.Rr,{type:"submit",disabled:!i||u,fullWidth:!0},void 0,u?"Processing...":o||"Update Payment Method")))}const we=function(e){var t=e.subscriptionId,r=e.onSuccess,o=e.onError,i=e.buttonLabel,a=ue(),l=a.clientSecret,u=a.loading,c=a.error,s=a.createSetupIntent;return(0,n.useEffect)(function(){t&&s({subscriptionId:t})},[t,s]),u?se||(se=ye($.A,{isLoading:!0})):c?ye(de.A,{severity:"error"},void 0,c.message||"Unable to load payment form. Please try again."):l?ye(ee.S8,{stripe:he,options:{clientSecret:l,appearance:{theme:"stripe",variables:{colorPrimary:"#0085FF"}}}},void 0,ye(Pe,{onSuccess:r,onError:o,buttonLabel:i})):null};var Oe;function Ae(e,t,r,n){Oe||(Oe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Oe,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const Ce=function(e){var t=e.subscription,r=e.onSuccess,n=e.onError,o=e.buttonLabel;return Ae(we,{subscriptionId:null===t||void 0===t?void 0:t.subscriptionId,onSuccess:r,onError:n,buttonLabel:o})};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Me.apply(null,arguments)}var je;function Te(e,t,r,n){je||(je="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:je,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const ke=function(e){var t,r=e.currentlyOfferedProduct,o=e.subscription,i=e.intl,l=e.updatingPayment,u=e.handleUpdatePaymentClick,f=e.subStats,d=o.paymentMethod,p=f.activeRecurlySub,y=r.baseAmount;o&&d&&(t=(0,c.Hh)(o));var b=Te(s.Ht,{href:V.QN.TERMS,target:"_blank"},void 0,i.formatMessage(Y.termsCopy)),m=Te("b",{},void 0,i.formatMessage(Y.legalAutoRenewal)),v=n.createElement(a.sA,Me({},Y.legalBlurb,{values:{autoRenewal:m,amount:y,terms:b}}));return t&&t.discountedAmount&&(v=n.createElement(a.sA,Me({},Y.freeTrialWithCouponBlurb,{values:{autoRenewal:m,amount:t.discountedAmount,baseAmount:y,terms:b}}))),Te(z.A,{isDialogOpen:l,onDialogClose:function(){return u(!1)},dialogTitle:i.formatMessage(Y.updatePayment.updatePaymentTitle)},void 0,Te(U.DialogContent,{tabIndex:"0"},void 0,Te(q.yu,{},void 0,i.formatMessage(Y.updatePayment.updatePaymentSubTitle)),t&&!p&&Te(q.LS,{},void 0,i.formatMessage(Y.updatePayment.cardOnFile,{amount:t.discountedAmount||t.recurringAmount,brand:t.brand,digits:t.lastFour,expMonth:t.expMonth,expYear:t.expYear})),Te(q.LS,{},void 0,i.formatMessage(Y.updatePayment.completeFormToUpdate)),t&&t.formattedDate&&!p&&Te(q.LS,{},void 0,i.formatMessage(Y.updatePayment.annualRenewal,{date:t.formattedDate})),Te(Ce,{subscription:o,onSuccess:function(){return u(!1)},onError:function(e){return h.A.error("UpdatePaymentForm","Payment update error:",e)},buttonLabel:i.formatMessage(Y.updatePayment.updatePaymentCard)}),Te(q.LS,{style:{marginTop:"16px",fontSize:"14px"}},void 0,v)))};function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Ie(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 De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach(function(t){xe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Le;function _e(e,t,r,n){Le||(Le="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Le,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const Ge=(0,a.j4)(function(e){var t,r=e.subscription,o=e.intl,i=e.subStats,a=i.activeFreeTrial,l=i.stripeSub,u=r.couponAmount;r&&l&&(t=(0,c.Hh)(r));var s=o.formatMessage(Y.goldSubscription.manageTrialMessage),f=o.formatMessage(Y.goldSubscription.manageSubscriptionMessage),d=_e("span",{},void 0,a?s:f),p=t,y=p.formattedEndDate,b=p.formattedNextDate,m=p.discountedAmount,v={baseAmount:p.recurringAmount,brand:p.brand,digits:p.lastFour,expMonth:p.expMonth,expYear:p.expYear,nextDate:y,discountedAmount:m},g=De(De({},v),{},{nextDate:b}),S=m&&0!==m,h=t&&b&&null!==b&&(void 0===u||null===u)?g:v;return _e(q.LS,{},void 0,d,t&&_e("span",{},void 0,!S&&n.createElement(n.Fragment,null,!a&&o.formatMessage(Y.goldSubscription.paymentMethodNextInfo,De({},h)),a&&o.formatMessage(Y.goldSubscription.paymentMethodFreeTrial,De({}
2,h))),S&&o.formatMessage(Y.goldSubscription.paymentMethodWithCouponInfo,De({},g))))});var Fe,Ue=r("NAv5"),Re=r("DOBh"),Ne=r("b07L");function $e(e,t,r,n){Fe||(Fe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Fe,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const ze=(0,a.j4)(function(e){var t=e.subscription,r=e.intl,o=(0,c.IS)(t),i=(0,c.st)(t),a=(0,Ue.isAfter)((0,Re.ZX)(new Date),(0,Re.ZX)(o||i))||"cancelled"===t.status;return n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,$e(q.LS,{},void 0,r.formatMessage(Ne.A.externalSubscription.recurlySubHasEnded,{endDate:o||i})),$e(q.LS,{},void 0,r.formatMessage(Ne.A.externalSubscription.canceledRecurlyUpdateToStripe))),!a&&n.createElement(n.Fragment,null,$e(q.LS,{},void 0,r.formatMessage(Ne.A.externalSubscription.recurlySubEnds,{endDate:o||i})),$e(q.LS,{},void 0,r.formatMessage(Ne.A.externalSubscription.recurlyUpdateToStripe))))});var Be;function Ye(e,t,r,n){Be||(Be="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Be,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const We=(0,a.j4)(function(e){var t,r=e.subscription,o=e.intl;r&&(t=(0,c.Hh)(r));var i=o.formatMessage(Y.goldSubscription.manageSubGraceMessage),a=t.formattedNextDate,l=t&&a&&null!==a;return n.createElement(n.Fragment,null,t&&l&&Ye(q.LS,{},void 0,o.formatMessage(Y.goldSubscription.subNextPaymentDatePassed,{nextPaymentDate:a})),Ye(q.LS,{},void 0,i))});function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function qe(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 Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach(function(t){Ke(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ke(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==He(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xe;function Qe(e,t,r,n){Xe||(Xe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Xe,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const Ve=(0,a.j4)(function(e){var t,r=e.subscription,o=e.intl;r&&(t=(0,c.IS)(r));var i=o.formatMessage(Y.goldSubscription.managePendingCancellationMessage);return n.createElement(n.Fragment,null,t&&Qe(q.LS,{},void 0,o.formatMessage(Y.goldSubscription.paymentMethodEndInfo,{endDate:t})),Qe(q.LS,{},void 0,i,Qe(s.ag,{href:c.HN.CONTACT_US_LINK,values:{link:o.formatMessage(Y.contactUsCopy)},intlMessage:Ze({},Y.contactUsLink)})))});var Je;function et(e,t,r,n){Je||(Je="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Je,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const tt=function(e){var t=e.subscription,r=e.intl,o=e.handleCancelClick,i=e.handleUpdatePaymentClick,a=e.prosperStackLoading,l=e.subStats,u=l.activeFreeTrial,c=l.stripeSub,s=l.activeRecurlySub,f=l.inGracePeriod,d=l.pendingCancel,p=r.formatMessage(u?Y.goldSubscription.secondaryTrialButtonTitle:Y.goldSubscription.secondaryButtonTitle);return n.createElement(n.Fragment,null,et(q.Sp,{},void 0,r.formatMessage(Y.goldSubscription.manageSubscriptionTitle)),c&&!f&&!d&&et(Ge,{subscription:t,subStats:l}),c&&d&&et(Ve,{subscription:t,subStats:l}),s&&!f&&et(ze,{subscription:t}),f&&!d&&et(We,{subscription:t,subStats:l}),!d&&et(N.p3,{},void 0,et(R.Ay,{fullWidth:!0,a11yLabel:r.formatMessage(Y.goldSubscription.mainButtonTitle),onClick:function(){return i(!0)}},void 0,r.formatMessage(Y.goldSubscription.mainButtonTitle)),c&&et(R.kX,{a11yLabel:p,type:"button",disabled:a,onClick:function(){return o(!0)}},void 0,p)))};var rt;function nt(e,t,r,n){rt||(rt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:rt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const ot=function(e){var t=e.subscription,r=e.currentlyOfferedProduct,o=e.canceling,i=e.updatingPayment,a=e.handleCancelConfirm,l=e.handleCancelClick,u=e.handleCancelConfirmationDialog,c=e.handleUpdatePaymentClick,s=e.couponCode,f=e.intl,d=e.isUpFromSmall,p=e.prosperStackLoading,y=e.subStats,b=y.hasUpdatableSub;return n.createElement(n.Fragment,null,n.createElement(n.Fragment,null,nt(q.
2Sp,{},void 0,f.formatMessage(Y.goldSubscription.goldSubscriptionTitle)),nt(q.LS,{},void 0,f.formatMessage(Y.goldSubscription.adFreeFeatures)),b&&nt(tt,{subscription:t,intl:f,handleCancelClick:l,handleUpdatePaymentClick:c,prosperStackLoading:p,subStats:y})),o&&nt(Q,{handleCancelClick:u,handleCancelConfirm:a,intl:f,isUpFromSmall:d,canceling:o,subscription:t,currentlyOfferedProduct:r,subStats:y}),i&&nt(ke,{updatingPayment:i,handleUpdatePaymentClick:c,subscription:t,currentlyOfferedProduct:r,couponCode:s,intl:f,isUpFromSmall:d,subStats:y}))};function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(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 lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach(function(t){ut(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ut(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ct;function st(e,t,r,n){ct||(ct="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:ct,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const ft=function(e){var t=e.intl,r=e.subStats,o=r.googleSub,i=r.appleSub,a=r.activeGold,l=r.activeMax,u=t.formatMessage(l?Ne.A.max:Ne.A.gold),f=o?c.HN.GOOGLE_LINK:c.HN.APPLE_LINK,d=o?Ne.A.externalSubscription.googleLink:Ne.A.externalSubscription.appleLink,p=a||l?Ne.A.externalSubscription.title:Ne.A.externalSubscription.canceledTitle,y=a||l?Ne.A.externalSubscription.thankYou:Ne.A.externalSubscription.canceledThankYou;return n.createElement(n.Fragment,null,st(q.Sp,{},void 0,t.formatMessage(p,{package:u})),st(q.LS,{},void 0,(o||i)&&st("span",{},void 0,st(s.ag,{href:f,values:{link:t.formatMessage(d)},intlMessage:lt({},Ne.A.externalSubscription.mobilePlatformCopy)})),st("span",{},void 0,t.formatMessage(y,{package:u}))))};var dt,pt=r("HZ+W"),yt=r("WWMS"),bt=r("ypX3"),mt=r("qRca"),vt=r("j/Qt"),gt=r("GWjp");function St(e,t,r,n){dt||(dt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:dt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const ht=function(e){var t=e.intl,r=e.isGoldSaleActive,o=e.goldSalePrice,i=e.goldSalePercentOff,a=e.currentlyOfferedProduct,l=a.displayPrice,u=a.baseAmount,c=(0,n.useMemo)(function(){return i>0&&u>0?(0,gt.ER)(u,i):(null===o||void 0===o?void 0:o.length)>0?o.replace("$",""):null},[i,o,u]),f=r&&!!c,d=(0,n.useMemo)(function(){if(f)return{externalLinkDetails:{link:t.formatMessage(Ne.A.freeSubscription.termsOfUse),amount:c,monthlyCost:(0,gt.yd)(parseFloat(c)/12,2),displayPrice:l},linkMessage:Ne.A.freeSubscription.costWithCoupon};var e=(0,gt.yd)(u/12,2);return{externalLinkDetails:{link:"",amount:l,monthlyCost:e},linkMessage:Ne.A.freeSubscription.coziCost}},[f,c,u,l,t]);return St(q.dH,{},void 0,null!==d&&void 0!==d&&d.linkMessage&&null!==d&&void 0!==d&&d.externalLinkDetail
2s?St(s.ag,{href:"https://www.cozi.com/terms-of-use/",values:d.externalLinkDetails,intlMessage:d.linkMessage}):null)};function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function Ot(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 At(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach(function(t){Ct(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ct(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt;function jt(e,t,r,n){Mt||(Mt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Mt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const Tt=(0,a.j4)(function(e){var t=e.currentlyOfferedProduct,r=e.referredFromD2G,o=e.isGoldSaleActive,i=e.goldSalePrice,l=e.goldSalePercentOff,u=e.subscription,c=e.subStats,f=e.couponCode,d=e.intl,p=(0,m.Lh)(),y=c.canceledRecurlySub,b=t.trialDays,v=t.baseAmount,g=jt("b",{},void 0,d.formatMessage(Ne.A.legalAutoRenewal)),S=Ne.A.freeTrialBlurb,h={autoRenewal:g,terms:jt(s.Ht,{darkMode:p,href:V.QN.TERMS,target:"_blank"},void 0,d.formatMessage(Ne.A.termsCopy)),amount:v},P=n.createElement(a.sA,wt({},S,{values:At({},h)}));
2return n.createElement(n.Fragment,null,jt(q.Sp,{},void 0,d.formatMessage(Ne.A.freeSubscription.freeSubscriptionTitle)),!r&&n.createElement(n.Fragment,null,y&&jt(ze,{subscription:u}),!y&&jt(q.LS,{},void 0,d.formatMessage(Ne.A.freeSubscription.getAdFree)),jt(q.LS,{},void 0,jt("span",{style:{fontWeight:700}},void 0,d.formatMessage(Ne.A.freeSubscription.testDriveCozi))," ",d.formatMessage(Ne.A.freeSubscription.cancelAfter14Days,{numDays:b}))),r&&jt(q.LS,{},void 0,d.formatMessage(Ne.A.freeSubscription.d2gIntro,{numDays:b})),jt(ht,{intl:d,isGoldSaleActive:o,goldSalePrice:i,goldSalePercentOff:l,currentlyOfferedProduct:t}),jt(vt.A,{subProduct:t.productName,couponCode:f}),jt(q.LS,{style:{marginTop:"16px",fontSize:"14px"}},void 0,P))});var kt;function Et(e,t,r,n){kt||(kt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:kt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}const It=function(e){var t=e.account,r=e.currentlyOfferedProduct,a=e.couponCode,l=e.subscription,u=e.subStats,c=(0,bt.A)(),s=(0,i.zy)(),f=(0,o.useSelector)(pt.Eq),d=(0,mt.B)(),y=(0,n.useMemo)(function(){return(0,m.zC)()===p.A.SignUpD2G&&(null===s||void 0===s?void 0:s.pathname)!==p.A.Settings},[s]);(0,yt.u)(function(){if(y&&null!==c&&void 0!==c&&c.track){var e,r,n={email:null===t||void 0===t||null===(e=t.persons)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.email,accountId:null===t||void 0===t||null===(r=t.householdData)||void 0===r?void 0:r.accountId};c.track("signup",n)}},[c,t,y]);var b=d||((null===a||void 0===a?void 0:a.length)>0?{stripeCouponId:a}:null);return Et(Tt,{currentlyOfferedProduct:r,referredFromD2G:y,isGoldSaleActive:f,goldSalePrice:null===d||void 0===d?void 0:d.salePrice,goldSalePercentOff:null===d||void 0===d?void 0:d.percentOff,subStats:u,subscription:l,couponCode:null===b||void 0===b?void 0:b.stripeCouponId})};var Dt,xt,Lt=r("SoqC"),_t=r("lmaV"),Gt=r("KaZT");function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function Ut(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 Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(r),!0).forEach(function(t){Nt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Nt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ft(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $t(e,t,r,n){xt||(xt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=n;else if(i>1){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+3];t.children=a}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:xt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}
2finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Yt=(0,b.A)()(function(e){var t,r=e.account,b=e.isUpFromSmall,P=e.subscription,w=e.currentlyOfferedProduct,O=e.intl,A=e.couponCode,C=e.stripePromise,j=(0,g.D)(),T=(0,o.useDispatch)(),k=(0,i.zy)(),D=function(){var e=(0,o.useDispatch)(),t=(0,_t.A)().session_id,r=(0,o.useSelector)(Gt.TV),i=(0,n.useRef)(new Set),a=Boolean(null===t||void 0===t?void 0:t.startsWith(u.Pw));(0,n.useEffect)(function(){a&&!i.current.has(t)&&(i.current.add(t),e((0,l.qf)()))},[e,a,t]);var c=(0,n.useCallback)(function(){return e((0,l.qf)())},[e]);return{isCheckoutReturn:a,status:r,checkAgain:c}}(),x=D.isCheckoutReturn,G=D.status,U=D.checkAgain,R=zt((0,n.useState)(!1),2),N=R[0],$=R[1],z=zt((0,n.useState)(!1),2),B=z[0],Y=z[1],W=(0,n.useCallback)(function(){return T((0,v.tq)(!1))},[T]);(0,n.useLayoutEffect)(function(){W()},[]),(0,n.useEffect)(function(){var e=k.state,t=(void 0===e?{}:e).prevPath,r=void 0===t?"":t;r&&r===p.A.SignUpD2G&&(0,y.YG)("D2G Premium Event Success Notification","D2G Sign Up")},[k]),(0,n.useEffect)(function(){$(!1)},[P]);var H=null===r||void 0===r||null===(t=r.householdData)||void 0===t?void 0:t.accountId,Z=(0,n.useCallback)(function(){T((0,l.M2)(P,H,P.inTrial))},[T,P,H]),K=(0,n.useCallback)(function(){$(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},[]),X=function(e){var t=e.subscription,r=e.accountId,o=e.email,i=e.onCanceled,a=e.onFallback,l=(0,S.ry)("prosper-stack",!1),u=_((0,n.useState)(!1),2),c=u[0],s=u[1],f=null===t||void 0===t?void 0:t.providerSubscriptionId,d=(0,n.useCallback)(L(I().m(function e(){var t,n,u,c,d=arguments;return I().w(function(e){for(;;)switch(e.p=e.n){case 0:if((t=d.length>0&&void 0!==d[0]&&d[0])&&l&&f){e.n=1;break}return a(t),e.a(2);case 1:return s(!0),e.p=2,e.n=3,E({subscriptionId:f,accountId:r,email:o});case 3:n=e.v,u=(n||{}).status,h.A.console(F,"flow completed with status",u),u===M&&i(),e.n=5;break;case 4:e.p=4,c=e.v,h.A.error(F,"ProsperStack flow failed, falling back to cancel confirmation: ",c),a(!0);case 5:return e.p=5,s(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])})),[l,f,r,o,i,a]);return{handleCancelClick:d,prosperStackLoading:c}}({subscription:P,accountId:H,email:(0,m.ap)(),onCanceled:Z,onFallback:K}),Q=X.handleCancelClick,V=X.prosperStackLoading,J=(0,c.uS)(P),ee=J.appleSub,te=J.googleSub,re=J.compedActive,ne=J.noTrialCouponActive,oe=J.activeFreeTrial,ie=J.hasGoldBenefits,ae=J.activeRecurlySub,le=J.inGracePeriod,ue=J.pendingCancel,ce=J.activeGold,se=J.activeMax,fe=(ce||se)&&(ee||te),de=fe||!fe&&re&&!oe||ne,pe=ie&&(le||ae)?Ne.A.contactUsToUnsubscribe:Ne.A.contactUsLink,ye=!x||G===u.xh.TIMED_OUT;return n.createElement(n.Fragment,null,ie&&!fe&&!re&&!ne&&$t(ot,{subscription:P,currentlyOfferedProduct:w,canceling:N,updatingPayment:B,handleCancelConfirm:Z,handleCancelClick:Q,handleCancelConfirmationDialog:K,handleUpdatePaymentClick:function(){Y(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},prosperStackLoading:V,couponCode:A,intl:O,isUpFromSmall:b,stripePromise:C,subStats:J}),de&&$t(ft,{intl:O,subStats:J}),ie&&!ue&&$t(q.LS,{},void 0,$t(s.ag,{href:c.HN.CONTACT_US_LINK,values:{link:O.formatMessage(Ne.A.contactUsCopy)},intlMessage:Rt({},pe)})),!ie&&!de&&n.createElement(n.Fragment,null,x&&$t(Lt.A,{status:G,onCheckAgain:U,polling:!0}),ye&&n.createElement(n.Fragment,null,$t(It,{account:r,couponCode:A,currentlyOfferedProduct:w,subscription:P,subStats:J}),$t(f.Go,{},void 0,$t("p",{style:{marginBottom:0}},void 0,$t("strong",{},void 0,n.createElement(a.sA,d.A.upsellTextBold)))))),$t(f.Ye,{darkMode:j,fullHeight:ne||re}),!ie&&!x&&$t(q.qW,{},void 0,$t(f.Tf,{},void 0,n.createElement(a.sA,d.A.raveReviews)),Dt||(Dt=$t(f.bZ,{}))))}),Wt=Yt}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.