PageSourceSearch

https://my.soundful.com/static/js/816.8a666d5e05d0cfa0b056.bundle.js

js soundful.com collected 2026-10-02 05:30:57 UTC 105,460 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksoundful=self.webpackChunksoundful||[]).push([[816],{81293:(e,n,t)=>{t.d(n,{I:()=>I});var r=t(74848),o=t(11848),a=t(86798),i=t(33198),c=t(61523),s=t(53723),l=t(14073),d=t(36575),u=t(47839),m=t(69067),p=t(14774);const b=(0,o.Ay)(p.A)({width:"350px",minWidth:"350px"}),y=(0,o.Ay)(p.A)({minWidth:"250px",maxWidth:"350px"});var h=t(89136),g=t(10388),f=t(51868);const x=(0,o.Ay)(g.F)((({theme:e})=>({color:e.palette.error.main}))),v=(0,o.Ay)(m.A)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"}),j=(0,o.Ay)(y)((({theme:e})=>({backgroundColor:"rgba(0, 0, 0, 0.1)",color:e.palette.text.disabled}))),C=({value:e})=>"n/a"===e?(0,r.jsx)(j,{children:(0,r.jsx)(v,{children:(0,r.jsx)(f.H,{})})}):(0,r.jsx)(y,{children:(0,r.jsx)(v,{children:"yes"===e?(0,r.jsx)(h.J,{}):(0,r.jsx)(x,{})})});var P=t(62193),O=t(23414);const w=JSON.parse('{"V":[{"key":"personal-license","title":"Personal license","description":"Perfect for the novice trying out Soundful. You are able to generate audio & tracks for use in personal and non-commercial projects"},{"key":"music-creator-license","title":"Music Creator license","description":"Ideal for the Music Creator looking for the best music to enhance your creation. The Music Creator license allows you to use generated audio & tracks for commercial projects and music releases as an individual."},{"key":"enterprise-license","title":"Enterprise license","description":"The essential license for the growing or already grown enterprises. This license allows for use across all means of creative works and distribution."}],"L":[{"key":"license-to-content","title":"License to content","licenses":{"personal-license":"yes","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"in-non-commercial-projects","title":"In non-commercial projects","licenses":{"personal-license":"yes","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"in-commercial-projects","title":"In commercial projects (e.g. digital ads)","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"in-commercial-music-releases","title":"In commercial music releases (e.g. Spotify, Apple Music)","hint":"Must be customized and make it your own","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"perpetual-use","title":"Perpetual Use","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"use-without-credit","title":"Use without credit","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"social-media-personal-podcasts-and-videos","title":"Social media, personal podcasts and videos (e.g. Tiktok, YouTube, Instagram, Vimeo and similar)","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"key":"use-in-revenue-generating-products","title":"Use in revenue generating products","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"parentKey":"use-in-revenue-generating-products","key":"reaching-less-than-100K-users-monthly","title":"Reaching less than 100K users monthly","licenses":{"personal-license":"no","music-creator-license":"yes","enterprise-license":"yes"}},{"parentKey":"use-in-revenue-generating-products","key":"reaching-more-than-100K-users-monthly","title":"Reaching more than 100K users monthly","licenses":{"personal-license":"no","music-creator-license":"no","enterprise-license":"yes"}},{"key":"film-tv-advertisement","title":"Film, TV, advertisement","licenses":{"personal-license":"no","music-creator-license":"no","enterprise-license":"yes"}},{"key":"apps-and-games","title":"Apps & games","licenses":{"personal-license":"no","music-creator-license":"no","enterprise-license":"yes"}},{"key":"api-access","title":"API Access","licenses":{"personal-license":"no","music-creator-license":"no","enterprise-license":"yes"}}]}'),A=(0,o.Ay)(a.A)({verticalAlign:"top"}),S=(0,o.Ay)(i.A)({overflowX:"unset"}),M={backgroundColor:"secondary.dark"},T={py:1},I=()=>(0,r.jsx)(S,{children:(0,r.jsxs)(c.A,{stickyHeader:!0,children:[(0,r.jsx)(s.A,{children:(0,r.jsxs)(A,{children:[(0,r.jsx)(b,{s
1x:M}),w.V.map((e=>(0,r.jsx)(y,{sx:M,children:(0,r.jsx)(l.A,{variant:"h6",align:"center",noWrap:!0,children:e.title})},e.key)))]})}),(0,r.jsxs)(d.A,{children:[(0,r.jsxs)(A,{children:[(0,r.jsx)(b,{}),w.V.map((e=>(0,r.jsx)(y,{children:(0,r.jsx)(l.A,{variant:"body2",children:e.description})},e.key)))]}),(0,r.jsx)(a.A,{children:(0,r.jsx)(b,{colSpan:w.V.length+1,sx:T,children:(0,r.jsx)(l.A,{variant:"body2",children:"For use in the following ways"})})}),w.L.map((e=>(0,r.jsxs)(a.A,{hover:!0,children:[(0,r.jsxs)(b,{children:[(0,r.jsx)(l.A,{variant:"body2",ml:e.parentKey?3:0,display:"inline",children:e.title}),e.hint&&(0,r.jsx)(u.A,{title:e.hint,placement:"top",children:(0,r.jsx)(m.A,{fontSize:16,width:"1em",height:"1em",ml:1,color:O.T.mistGray,display:"inline-flex",alignItems:"center",sx:{verticalAlign:"middle"},children:(0,r.jsx)(P.g,{})})})]}),w.V.map((n=>{const t=e.licenses[n.key];return(0,r.jsx)(C,{value:t},`${e.key}_${n.key}`)}))]},e.key)))]})]})})},79822:(e,n,t)=>{t.d(n,{z:()=>D});var r=t(74848),o=t(96540),a=t(11848),i=t(77037),c=t(63710),s=t(11641),l=t(14073),d=t(69067),u=t(84798),m=t(71521),p=t(13448),b=t(86217),y=t(19717),h=t(9814),g=t(39320),f=t(10388);
1const x=(0,a.Ay)("div",{name:"CongratulationsModalBodyRoot"})((({theme:e})=>({overflow:"hidden",height:"100%",maxHeight:"100%",width:"100%",padding:e.spacing(3,0),display:"flex",flexDirection:"column"}))),v=(0,a.Ay)(s.A,{name:"CongratulationsModalBodyClose"})((({theme:{spacing:e}})=>({position:"absolute",top:0,right:0,margin:e(1)}))),j=(0,a.Ay)(f.F,{name:"CongratulationsModalBodyCloseIcon",slot:"icon"})({width:20,height:20}),C=(0,a.Ay)(l.A,{name:"CongratulationsModalBodyClarification"})((({theme:e})=>({textAlign:"center",marginBottom:e.spacing(3)})));C.defaultProps={variant:"body2"};const P=(0,a.Ay)(d.A,{name:"CongratulationsModalBodyContent"})((({theme:{spacing:e}})=>({padding:e(0,3,3),flexGrow:1,minHeight:0,overflowY:"auto"}))),O=(0,a.Ay)(l.A,{name:"CongratulationsModalBodyTitle"})((({theme:e})=>({textAlign:"center",margin:e.spacing(2,0)}))),w=(0,a.Ay)("div",{name:"CongratulationsModalBodyActions"})((({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center"}))),A=({template:e,subscription:n,onClose:t})=>{const{t:a}=(0,c.Bd)(),[i,s]=(0,o.useState)(!1),d=(0,o.useMemo)((()=>{const t=[];if(e&&(0,m.kZ)(e)){const n=(0,y.AO)(e);t.push(...n)}if(n){const e={openLicensesDialog:()=>{s(!0)}},r=(0,y.KC)(n,e,a);t.push(...r)}return t}),[e,n,a]);return(0,r.jsxs)(x,{children:[(0,r.jsx)(v,{onClick:t,children:(0,r.jsx)(j,{})}),(0,r.jsx)(O,{variant:"h5",children:a(n?"congratulationsModal.welcomeToPremium":"congratulationsModal.congratulations")}),(0,r.jsxs)(P,{children:[n&&e&&(0,r.jsx)(C,{children:(0,r.jsx)(c.x6,{i18nKey:"congratulationsModal.clarificationSubscriptionAndTemplate",values:{template:e.name,plan:(0,p.O)((0,b.c)(n),n.title)},components:{b:(0,r.jsx)("b",{})}})}),!n&&e&&(0,r.jsx)(C,{children:(0,r.jsx)(c.x6,{i18nKey:"congratulationsModal.clarificationTemplate",values:{template:e.name}})}),(0,r.jsx)(l.A,{variant:"body2",fontWeight:700,mb:2,children:a("congratulationsModal.youGet")}),(0,r.jsx)(g.A,{benefits:d})]}),(0,r.jsx)(w,{children:(0,r.jsx)(u.A,{variant:"contained",color:"primary",onClick:t,children:a("button.ok")})}),(0,r.jsx)(h.Vs,{isOpen:i,onClose:()=>s(!1)})]})};var S=Object.defineProperty,M=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,k=(e,n,t)=>n in e?S(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,B=(e,n)=>{for(var t in n||(n={}))T.call(n,t)&&k(e,t,n[t]);if(M)for(var t of M(n))I.call(n,t)&&k(e,t,n[t]);return e};const N=(0,a.Ay)(i.A,{name:"CongratulationsModal"})((({theme:{spacing:e,breakpoints:n}})=>({".MuiDialog-paper":{maxHeight:640,maxWidth:600,width:600,[n.down("mobile")]:{width:"auto",marginRight:e(.5),marginLeft:e(.5)}}}))),D=e=>{var n=e,{isOpen:t,onClose:a}=n,i=((e,n)=>{var t={};for(var r in e)T.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&M)for(var r of M(e))n.indexOf(r)<0&&I.call(e,r)&&(t[r]=e[r]);return t})(n,["isOpen","onClose"]);const c=(0,o.useRef)(i);return t&&(c.current=i),(0,r.jsx)(N,{open:t,onClose:a,children:(0,r.jsx)(A,B({onClose:a},t?i:c.current))})}},69240:(e,n,t)=>{t.d(n,{$:()=>A,s:()=>S});var r=t(74848),o=t(96540),a=t(64644),i=t(63710),c=t(14073),s=t(8239),l=t(47419),d=t(20053),u=t(40768),m=t(58110),p=t(1697),b=t(50986),y=t(59742),h=t(39239),g=t(83283),f=t(84798),x=t(15636),v=t(11558),j=t(53779),C=t(77829),P=t(38706);const O=({isModalComponent:e,onClose:n,onSubmit:t,cardToEdit:a})=>{const O=(0,C.I)(),{t:w}=(0,i.Bd)(),{createDefaultPaymentMethod:A}=(0,p.$)(),[S,M]=(0,o.useState)(!1),[T,I]=(0,o.useState)(!1),{isFormComplete:k,setIsFieldComplete:B}=(0,m.m)(),N=(0,b.x)(),{handleSubmit:D,getFieldProps:E,setFieldValue:R,errors:L,touched:G,isSubmitting:F}=(0,u.Wx)({initialValues:a?(0,y.d2)(a):P.X,validationSchema:j.h,onSubmit:e=>{return n=function*(){if(I(!0),k()&&!S){M(!0);try{(yield A(e))&&(null==t||t())}finally{N.current||M(!1)}}},new Promise(((e,t)=>{var r=e=>{try{a(n.next(e))}catch(e){t(e)}},o=e=>{try{a(n.throw(e))}catch(e){t(e)}},a=n=>n.done?e(n.value):Promise.resolve(n.value).then(r,o);a((n=n.apply(undefined,null)).next())}));var n}}),W=(0,o.useCallback)((e=>{if(Boolean(G[e])&&Boolean(L[e])){const n=L[e];if(Array.isArray(n))return n.join(", ");const t=P.g[e],[r="",o=""]=String(L[e]).split(e);return o?`${t} ${o}`:r}return""}),[L,G]),U=(0,o.useRef)(null),K=((e=250)=>{const n=(0,o.useRef)(null);return(0,o.useEffect)((()=>()=>{n.current&&window.clearTimeout(n.current)}),[]),t=>{t&&(n.current&&window.clearTimeout(n.current),n.current=window.setTimeout((()=>{n.current=null;const e=t.querySelector(".Mui-error");e&&e.scrollIntoView({behavior:"smooth",block:"center"})}),e))}})();return(0,r.jsxs)("form",{onSubmit:e=>{D(e),K(U.current)},noValidate:!0,className:(0,d.A)({[O.formContainer]:!e}),ref:U,children:[(0,r.jsx)(c.A,{variant:"h6",className:O.title,children:w("billing.page.methodSetup")}),(0,r.jsx)(g.k,{setFieldValue:R,getFieldProps:E,getErrorMessage:W,isFormSubmitted:T,isModalComponent:e,setIsFieldComplete:B,showHint:!0}),(0,r.jsx)(c.A,{variant:"h6",className:(0,d.A)({[O.subtitle]:!e,[O.modalSubtitle]:e}),children:w("billing.page.billingAddress")}),(0,r.jsx)(h.c,{setFieldValue:R,getFieldProps:E,getErrorMessage:W,isModalComponent:e,paddingBottom:e?
110:0}),(0,r.jsxs)(s.Ay,{item:!0,container:!0,justifyContent:"flex-end",className:(0,d.A)({[O.actionButtons]:!0,[O.modalActionButtons]:e}),children:[(0,r.jsx)(f.A,{type:"reset",onClick:n,variant:"text",className:O.cancelButton,children:w("button.cancel")}),(0,r.jsxs)(f.A,{type:"submit",disabled:F,children:[F&&(0,r.jsx)(x.P,{}),(0,r.jsx)("span",{children:w("button.save")})]})]}),(0,r.jsx)(l.A,{open:S,children:(0,r.jsx)(v.a,{})})]})},w=(0,o.createContext)({}),A=({children:e})=>{const[n,t]=(0,o.useState)(null),i=()=>{t(null)};return(0,r.jsxs)(w.Provider,{value:{openAddCardDialog(e){t({cardToEdit:null,title:"billing.page.addCardTitle",closeLeftIcon:null==e?void 0:e.closeLeftIcon})},openEditCardDialog({cardToEdit:e,closeLeftIcon:n}){t({cardToEdit:e,title:"billing.page.editCardTitle",closeLeftIcon:n})}},children:[e,n&&(0,r.jsx)(a.l,{titleVariant:"body1",closeLeftIcon:n.closeLeftIcon,titleText:n.title,isOpen:!!n,showLineAboveButtons:!0,setModalOpen:i,closeOnOutsideClick:!1,children:(0,r.jsx)(O,{isModalComponent:!0,onSubmit:i,onClose:i,cardToEdit:n.cardToEdit})})]})},S=()=>(0,o.useContext)(w)},39239:(e,n,t)=>{t.d(n,{c:()=>S});var r=t(74848),o=t(96540),a=t(63710),i=t(8239),c=t(20053),s=t(10276),l=t(35598),d=t(74474),u=t(86381),m=t(25421),p=t(77829),b=Object.defineProperty,y=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,v=(e,n,t)=>n in e?b(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n)=>{for(var t in n||(n={}))f.call(n,t)&&v(e,t,n[t]);if(g)for(var t of g(n))x.call(n,t)&&v(e,t,n[t]);return e},C=(e,n)=>y(e,h(n));const P=({name:e})=>e,O=e=>"US"!==(null==e?void 0:e.code),w=(e,n)=>(t,r)=>{n(e,r),"address_country"===e&&O(r)&&n("address_state",null)},A=(e,n)=>{const t=n(e),{multiple:r}=t;return((e,n)=>{var t={};for(var r in e)f.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&g)for(var r of g(e))n.indexOf(r)<0&&x.call(e,r)&&(t[r]=e[r]);return t})(t,["multiple"])},S=({setFieldValue:e,getFieldProps:n,getErrorMessage:t,isModalComponent:b,paddingBottom:y=0})=>{const{t:h}=(0,a.Bd)(),g=(0,p.I)(),f=O(n("address_country").value),x=(0,o.useMemo)((()=>C(j({},A("address_country",n)),{renderInputProps:{placeholder:h("billing.form.select"),error:Boolean(t("address_country"))},onChange:w("address_country",e)})),[t,n,e,h]),v=(0,o.useMemo)((()=>C(j({},A("address_state",n)),{renderInputProps:{placeholder:"ST",error:!f&&Boolean(t("address_state"))},onChange:w("address_state",e)})),[t,n,f,e]);return(0,r.jsxs)(i.Ay,{container:!0,pb:y,children:[(0,r.jsx)(i.Ay,{item:!0,container:!0,className:(0,c.A)({[g.fieldsRow]:!0,[g.fieldsRowWithOutPadding]:b}),children:(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:b?12:6,children:[(0,r.jsx)(s.j,j({id:"address_country",label:h("billing.form.country"),options:u.X,getOptionLabel:P},x)),(0,r.jsx)(l.y,{error:t("address_country")})]})}),(0,r.jsx)(i.Ay,{item:!0,container:!0,className:(0,c.A)({[g.fieldsRow]:!0,[g.fieldsRowWithOutPadding]:b}),children:(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:b?12:6,children:[(0,r.jsx)(d.A,C(j({id:"fullName",label:"billing.form.name",placeholder:"billing.form.name"},n("fullName")),{error:Boolean(t("fullName")),fullWidth:!0})),(0,r.jsx)(l.y,{error:t("fullName")})]})}),(0,r.jsxs)(i.Ay,{item:!0,container:!0,className:(0,c.A)({[g.fieldsRow]:!0,[g.fieldsRowWithOutPadding]:b}),children:[(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:b?12:6,children:[(0,r.jsx)(d.A,C(j({id:"address_line1",label:"billing.form.streetAddress",placeholder:"billing.form.streetAddress"},n("address_line1")),{error:Boolean(t("address_line1")),fullWidth:!0})),(0,r.jsx)(l.y,{error:t("address_line1")})]}),(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:b?12:6,children:[(0,r.jsx)(d.A,C(j({id:"address_line2",label:"billing.form.secondaryAddress",placeholder:"billing.form.secondaryAddress"},n("address_line2")),{error:Boolean(t("address_line2")),fullWidth:!0})),(0,r.jsx)(l.y,{error:t("address_line2")})]})]}),(0,r.jsxs)(i.Ay,{item:!0,container:!0,className:(0,c.A)({[g.fieldsRow]:!0,[g.fieldsRowWithOutPadding]:b}),children:[(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:b?12:6,children:[(0,r.jsx)(d.A,j({id:"address_city",label:"billing.form.city",placeholder:"billing.form.city",error:Boolean(t("address_city"))},n("address_city"))),(0,r.jsx)(l.y,{error:t("address_city")})]}),(0,r.jsxs)(i.Ay,{container:!0,item:!0,xs:12,sm:b?12:6,spacing:2,children:[(0,r.jsxs)(i.Ay,{item:!0,xs:6,children:[(0,r.jsx)(s.j,j({id:"address_state",label:"billing.form.state",options:m.x,disabled:f},v)),(0,r.jsx)(l.y,{error:f?"":t("address_state")})]}),(0,r.jsxs)(i.Ay,{item:!0,xs:6,children:[(0,r.jsx)(d.A,j({id:"address_zip",label:"billing.form.zipCode",placeholder:"billing.form.zip",error:Boolean(t("address_zip"))},n("address_zip"))),(0,r.jsx)(l.y,{error:t("address_zip")})]})]})]})]})}}
1,77829:(e,n,t)=>{t.d(n,{I:()=>r});const r=(0,t(79068).A)((e=>{const n="dark"===e.palette.mode?"linear-gradient(rgb(38 39 43), rgb(38 39 43))":"linear-gradient(rgb(245 245 246), rgb(255 255 255))";return{formContainer:{[e.breakpoints.down("desktop")]:{width:"670px"},[e.breakpoints.down("tablet")]:{width:"100%"}},title:{marginTop:e.spacing(4),marginBottom:e.spacing(8.75)},subtitle:{marginBottom:e.spacing(4.75)},modalSubtitle:{marginBottom:e.spacing(6)},paymentMethodFormContainer:{marginBottom:e.spacing(10),[e.breakpoints.down("mobile")]:{marginBottom:e.spacing(7)}},paymentMethodFormModalContainer:{marginBottom:e.spacing(8),width:"100%",margin:"auto",[e.breakpoints.down("mobile")]:{marginBottom:e.spacing(7)}},actionButtons:{marginTop:e.spacing(3.5),paddingRight:e.spacing(2)},modalActionButtons:{padding:e.spacing(2,3,3),position:"absolute",zIndex:999,bottom:e.spacing(0),borderTop:`1px solid ${e.palette.text.disabled}`,backgroundImage:n,left:0},cancelButton:{color:e.palette.text.primary,"&:hover":{background:"none"}},fieldsRow:{"&:not(:last-of-type)":{marginBottom:e.spacing(1.5)},"& > div":{paddingRight:e.spacing(2),[e.breakpoints.down("mobile")]:{paddingRight:e.spacing(0)}},[e.breakpoints.down("mobile")]:{"& > div:first-child:not(:last-child)":{marginBottom:e.spacing(1.5)}}},fieldsRowWithOutPadding:{"& > div":{paddingRight:e.spacing(0)}},modalRow:{width:"100%","& > div":{paddingRight:e.spacing(2)}},expiration:{[e.breakpoints.down("mobile")]:{"& > div":{paddingRight:e.spacing(1)}}},cvv:{[e.breakpoints.down("mobile")]:{paddingLeft:e.spacing(1)}},dialogTitle:{textAlign:"center",fontSize:e.spacing(3),padding:e.spacing(0),marginTop:e.spacing(3),marginBottom:e.spacing(7)},hintText:{display:"block",color:e.palette.primary.main}}}),{name:"CreditCardForm"})},83283:(e,n,t)=>{t.d(n,{k:()=>A});var r=t(74848),o=t(96540),a=t(63710),i=t(8239),c=t(14073),s=t(22926),l=t(20053),d=t(44675),u=t(42941),m=t(35598),p=t(74474),b=t(76207);const y={empty:!0},h=(0,o.memo)((({component:e,id:n,placeholder:t,completeField:a,isFormSubmitted:i})=>{const c=(0,b.I)(),s=(0,d.A)(),[l,h]=(0,o.useState)(y),[g,f]=(0,o.useState)(!1),[x,v]=(0,o.useState)(!1),j=(x||i)&&l.empty||!!l.error;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{id:n,label:`billing.form.${n}`,name:n,fullWidth:!0,InputProps:{inputComponent:u.W,inputProps:{component:e,options:{placeholder:g&&l.empty&&!j?t:"",style:{base:{color:s.palette.text.primary}}},onChange:e=>{h(e),null==a||a(n,e.complete)},onFocus:()=>{f(!g)},onBlur:()=>v(!0)},classes:{input:c.input}},error:j,style:{position:"relative"},InputLabelProps:l.empty?{}:{shrink:!0}}),(0,r.jsx)(m.y,{error:x&&l.empty&&!g?"errors.form.required":l.error?`errors.stripe.${l.error.code}`:"",lines:{default:2,mobile:4}})]})}));var g=t(77829),f=Object.defineProperty,x=Object.defineProperties,v=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,O=(e,n,t)=>n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,w=(e,n)=>{for(var t in n||(n={}))C.call(n,t)&&O(e,t,n[t]);if(j)for(var t of j(n))P.call(n,t)&&O(e,t,n[t]);return e};const A=({setFieldValue:e,getFieldProps:n,getErrorMessage:t,isFormSubmitted:d,isModalComponent:u,setIsFieldComplete:b,isEditCopyright:y=!1,showHint:f})=>{const j=(0,g.I)(),C=(0,o.useCallback)((n=>e("name",n.target.value.toUpperCase())),[e]);return(0,r.jsxs)(i.Ay,{item:!0,container:!0,className:(0,l.A)({[j.paymentMethodFormContainer]:!u&&!y,[j.paymentMethodFormModalContainer]:u&&!y}),children:[(0,r.jsx)(i.Ay,{item:!0,container:!0,className:(0,l.A)({[j.fieldsRow]:!0,[j.fieldsRowWithOutPadding]:u}),children:(0,r.jsxs)(i.Ay,{item:!0,xs:12,sm:u?12:6,children:[(0,r.jsx)(p.A,(P=w({id:"name",label:"billing.form.nameOnCard",placeholder:"billing.form.nameOnCard"},n("name")),O={onChange:C,error:Boolean(t("name"))},x(P,v(O)))),(0,r.jsx)(m.y,{error:t("name")})]})}),(0,r.jsxs)(i.Ay,{item:!0,container:!0,className:(0,l.A)({[j.fieldsRow]:!0,[j.fieldsRowWithOutPadding]:u}),children:[(0,r.jsx)(i.Ay,{item:!0,xs:12,sm:u?12:6,children:(0,r.jsx)(h,{component:s.CardNumberElement,placeholder:"0000 0000 0000 0000",id:"cardNumber",completeField:b,isFormSubmitted:d})}),(0,r.jsx)(i.Ay,{item:!0,xs:6,sm:u?6:3,className:(0,l.A)({[j.expiration]:!0,[j.modalRow]:u}),children:(0,r.jsx)(h,{component:s.CardExpiryElement,placeholder:"MM/YY",id:"expiration",completeField:b,isFormSubmitted:d})}),(0,r.jsx)(i.Ay,{item:!0,xs:6,sm:u?6:3,className:j.cvv,children:(0,r.jsx)(h,{component:s.CardCvcElement,placeholder:"####",id:"cvvCode",completeField:b,isFormSubmitted:d})})]}),f&&(0,r.jsx)(c.A,{variant:"caption",color:"text.secondary",children:(0,r.jsx)(a.x6,{i18nKey:"billing.form.hint",components:{discountText:(0,r.jsx)("span",{className:j.hintText})}})})]});var P,O}},38706:(e,n,t)=>{t.d(n,{X:()=>r,g:()=>o});const r={name:"",address_country:null,fullName:"",address_line1:"",address_line2:"",address_city:"",address_state:null,address_zip:"",expiration:""},o={name:"Name",address_country:"Country",fullName:"Full name",address_line1:"Street address",address_line2:"Secondary address",address_city:"City",address_state:"State",address_zip:"Zip code",expiration:"Expiration"}},55383:(e,n,t)=>
1{t.d(n,{V:()=>Ke});var r=t(74848),o=t(96540),a=t(63710),i=t(32316),c=t(15360),s=t(14073),l=t(22477),d=t(46477),u=t(68864),m=t(56620),p=t(71543),b=t(58763),y=t(1697),h=t(41490),g=t(43418),f=t(52211),x=Object.defineProperty,v=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,P=(e,n,t)=>n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,O=(e,n)=>{for(var t in n||(n={}))j.call(n,t)&&P(e,t,n[t]);if(v)for(var t of v(n))C.call(n,t)&&P(e,t,n[t]);return e},w=t(57783),A=t(90083),S=t(39453),M=t(93711),T=t(48707),I=t(22926),k=t(20053),B=t(84827),N=t(79068);const D=(0,N.A)({root:{width:"180px"},disabled:{opacity:.5,pointerEvents:"none"}},{name:"WalletPaymentButton"}),E=({paymentRequest:e,disabled:n})=>{const t=D(),{isDarkMode:o}=(0,B.D)();return(0,r.jsx)("div",{onClickCapture:e=>{n&&(e.preventDefault(),e.stopPropagation())},children:(0,r.jsx)(I.PaymentRequestButtonElement,{className:(0,k.A)(t.root,{[t.disabled]:n}),options:{paymentRequest:e,style:{paymentRequestButton:{theme:o?"light":"dark"}}}})})};var R=t(31432),L=t(43341),G=t(91105),F=t(83434),W=t(92556),U=t(14379),K=t(89423),_=t(25218),V=Object.defineProperty,H=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,Y=(e,n,t)=>n in e?V(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const $=e=>{const n=(0,T.lJ)(e),t=(0,T.CT)(n);return t!==e&&M.bW.warn("Invalid price format in Apple/Google Pay",{category:"WRONG_PRICE",details:{originalPrice:e,normalized:t,priceInCents:n}}),n},Z={[A.eq.GooglePay]:L.I,[A.eq.ApplePay]:R.H},J=(0,S.j)("walletPayments");function Q(e,n){return{label:n("total"),amount:e}}function X(e,n){return e.map((e=>({label:e.displayTitle,amount:$(n.get(e.productId))})))}var ee=t(47839),ne=t(59742),te=t(84798),re=t(6326),oe=t(69654),ae=t(24279),ie=t(23414);const ce=(0,N.A)((e=>{const n=(0,ae.a)(e.palette.background.default,.16);return{root:{position:"relative",display:"flex",width:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:ie.T.shuttleGray,borderRadius:e.spacing(1),justifyContent:"center",flexDirection:"column",color:e.palette.text.primary},selected:{backgroundColor:n,borderColor:ie.T.whiteSmoke},card:{margin:e.spacing(0,2),display:"flex",justifyContent:"space-between"},cardContent:{margin:e.spacing(2,1),display:"flex",flexDirection:"column"},label:{position:"absolute",top:e.spacing(-1.25),left:e.spacing(1),padding:e.spacing(0,.75),color:e.palette.text.primary,zIndex:2},cardNumber:{"& > span":{marginRight:"6px ",letterSpacing:"2px"}},hiddenBorder:{width:"100%",position:"absolute",top:"8px",left:e.spacing(0),zIndex:-1,borderTop:`3px solid ${n}`,borderRadius:"1px"},actions:{margin:e.spacing(1.5,0),flexGrow:0},actionItem:{padding:e.spacing(.5),fontSize:12,color:e.palette.text.secondary},errorMessageIconContainer:{display:"inline",position:"relative"},errorMessageIcon:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",color:e.palette.warning.main,width:"20px",height:"20px"}}}),{name:"CardInformation"}),se=({onEditClick:e,paymentMethod:n,isSelected:t})=>{var o;const i=ce(),{t:c}=(0,a.Bd)(),l=(0,r.jsx)("span",{children:"••••"});return(0,r.jsxs)("div",{className:(0,k.A)(i.root,t&&i.selected),children:[t&&(0,r.jsxs)(s.A,{variant:"caption",className:i.label,component:"div",children:[c("billing.page.selectedCard"),(0,r.jsx)("div",{className:i.hiddenBorder})]}),(0,r.jsxs)("div",{className:i.card,children:[(0,r.jsxs)("div",{className:i.cardContent,children:[(0,r.jsxs)(s.A,{variant:"body2",className:i.cardNumber,children:[l,l,l,(0,r.jsx)("span",{children:n.card.last4}),(null==(o=n.metadata)?void 0:o.errorMessage)&&(0,r.jsx)(ee.A,{title:n.metadata.errorMessage,children:(0,r.jsx)("span",{className:i.errorMessageIconContainer,children:(0,r.jsx)(re.F,{className:i.errorMessageIcon})})})]}),(0,r.jsx)(s.A,{variant:"caption",color:"textSecondary",children:c("billing.page.expDate",{date:(0,ne.xS)(n.card.exp_month,n.card.exp_year)})})]}),(0,r.jsx)("div",{className:i.actions,children:(0,r.jsx)(te.A,{type:"button",variant:"text",size:"small",onClick:e,className:i.actionItem,startIcon:(0,r.jsx)(oe.f,{width:16,height:16}),children:c("billing.page.editCard")})})]})]})};var le=t(69240),de=t(15636),ue=t(52714),me=t(35598),pe=t(74474);const be=(0,N.A)((e=>({promoCodeInfo:{display:"flex",justifyContent:"space-between",marginBottom:e.spacing(2),fontSize:"14px",fontWeight:500},sectionContainer:{display:"flex",justifyContent:"space-between"},couponsInput:{marginRight:e.spacing(1.5)},submitButton:{padding:e.spacing(1.5,1.5),flex:"0 0 30%",borderColor:e.palette.text.primary,color:e.palette.text.primary},removeButton:{textDecoration:"underline",background:"initial",marginLeft:e.spacing(3),padding:e.spacing(0),justifyContent:"flex-end",color:e.palette.text.primary,"&:hover":{opacity:.3,background:"initial"}}}
1)),{name:"CouponDetails"}),ye=({couponDetails:e,couponErrorMessage:n,isLoading:t,setCouponCode:i,removeCoupon:c,disabled:l})=>{const{t:d}=(0,a.Bd)(),u=be(),[m,p]=(0,o.useState)("");return(0,o.useEffect)((()=>{e&&p("")}),[e]),(0,r.jsxs)("div",{children:[(0,r.jsxs)("form",{className:u.sectionContainer,onSubmit:e=>{e.preventDefault(),m&&i(m)},noValidate:!0,children:[(0,r.jsx)(pe.A,{label:"coupons.promoCode",error:Boolean(n),name:"coupon",className:u.couponsInput,value:m,onChange:e=>p(e.target.value),disabled:l}),(0,r.jsx)(te.A,{type:"submit",color:"secondary",variant:"outlined",className:u.submitButton,disabled:!m||l,children:t?(0,r.jsx)(de.P,{size:19,color:"primary"}):(0,r.jsx)("span",{children:d("button.apply")})})]}),(0,r.jsx)(me.y,{error:n||""}),e&&(0,r.jsxs)("div",{className:u.promoCodeInfo,children:[(0,r.jsx)(s.A,{variant:"body2",children:e.coupon.code}),(0,r.jsx)(te.A,{variant:"text",className:u.removeButton,onClick:c,children:d("button.remove")})]})]})};var he=t(13383);const ge={revalidateOnReconnect:!1,shouldRetryOnError:!1},fe={remoteLogProps:{category:"COUPONS"}};var xe=t(69067),ve=t(45254);const je=(0,N.A)((e=>({line:{display:"flex",justifyContent:"space-between",marginBottom:e.spacing(2),fontSize:"14px",fontWeight:500},lineTotal:{"& $lineTitle":{fontSize:"16px"},"& $lineValue":{fontSize:"18px"}},lineTitle:{fontSize:"14px"},lineValue:{fontSize:"14px"},lineDetails:{marginLeft:e.spacing(2),"& $lineTitle, & $lineValue":{fontSize:"12px"}},lineValueCrossedOut:{textDecoration:"line-through"}})),{name:"PriceBreakdown"}),Ce=(e,n,t)=>{const r=t[n-1];return r&&r.productId===e},Pe=({lines:e})=>{const n=je();return(0,r.jsx)("div",{children:e.map(((t,o)=>{const{productId:a,key:i,title:c,lineType:l,isCrossedOut:d,sx:u}=t;return l===ve.t.clarification?(0,r.jsx)(xe.A,{className:(0,k.A)(n.line,n.lineDetails),sx:u,children:(0,r.jsx)(s.A,{variant:"body2",fontWeight:"inherit",fontSize:"inherit",className:n.lineTitle,component:"div",children:c})},i):(0,r.jsxs)(xe.A,{className:(0,k.A)(n.line,l===ve.t.total&&n.lineTotal,Ce(a,o,e)&&n.lineDetails),sx:u,children:[(0,r.jsx)(s.A,{variant:"body2",fontWeight:"inherit",fontSize:"inherit",className:n.lineTitle,children:c}),(0,r.jsx)(s.A,{variant:"body2",fontWeight:"inherit",fontSize:"inherit",className:(0,k.A)(n.lineValue,d&&n.lineValueCrossedOut),children:t.value})]},i)}))})};var Oe=t(13448);const we=(e,n)=>e.category===A.ch.collaboration?n("artistCollab.purchase.templateName",{name:e.displayTitle}):(0,Oe.O)(e.type,e.displayTitle);var Ae=t(49295),Se=Object.defineProperty,Me=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ne=(e,n,t)=>n in e?Se(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;function De(e,n,t,r){const{currency:o}=e[0];if(1===e.length){const a=e[0];return n[0].lines.find((e=>e.lineType===ve.t.discount))?(0,ne.CU)(o,t):(0,Ae.a)(a.type,t,o,r)}return(0,ne.CU)(o,t)}const Ee=(0,N.A)((e=>({content:{overflow:"auto",minWidth:"430px",padding:e.spacing(1,3),[e.breakpoints.down("mobile")]:{minWidth:"100%"}},purchaseContainer:{display:"flex",flexDirection:"row",[e.breakpoints.up("mobile")]:{height:"100%"},[e.breakpoints.down("mobile")]:{flexDirection:"column-reverse"}},paymentOptions:{flex:"3 1 200px",marginRight:e.spacing(3),[e.breakpoints.down("mobile")]:{marginRight:0}},paymentOptionsTitle:{marginBottom:e.spacing(2)},walletOptionIcon:{display:"inherit"},purchaseInfoContainer:{[e.breakpoints.up("mobile")]:{flex:"2 1 200px",paddingLeft:e.spacing(3),borderLeft:`1px solid ${e.palette.text.disabled}`},[e.breakpoints.down("mobile")]:{width:"100",paddingBottom:e.spacing(3)}},divider:{borderTop:`1px solid ${e.palette.text.disabled}`,margin:e.spacing(2,0)},bottomButtons:{padding:e.spacing(1.5,3),borderTop:`1px solid ${e.palette.text.disabled}`},cancelBtn:{color:e.palette.text.primary},creditCardContainer:{position:"relative",marginBottom:e.spacing(2),padding:e.spacing(2),minHeight:"112px",width:"100%",borderRadius:"8px",border:`0.6px solid ${e.custom.outline}`,background:"dark"===e.palette.mode?ie.T.darkestGray:ie.T.lightGrey,color:e.palette.text.primary},noCardsText:{padding:e.spacing(1,1,2)},addCardButton:{color:e.palette.text.primary}})),{name:"PurchaseConfirmationBody"});var Re=Object.defineProperty,Le=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,We=(e,n,t)=>n in e?Re(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Ue=(e,n)=>{for(var t in n||(n={}))Ge.call(n,t)&&We(e,t,n[t]);if(Le)for(var t of Le(n))Fe.call(n,t)&&We(e,t,n[t]);return e};const Ke=({purchases:e,onClose:n=f.lQ,purchaseRedirect:t="plans",onPurchaseComplete:x,instrumentationProps:v})=>{var j;const C=Ee(),{t:P}=(0,a.Bd)(),S=(0,c.W6)(),{purchaseProduct:M}=(0,y.$)(),I=(0,h.m)(),[k,B]=(0,o.useState)(A.eq.Card),N=(0,i.d4)(ue.Fi),{openEditCardDialog:D,openAddCardDialog:R}=(0,le.s)(),L=(e=>{var n,t;const[r,a]=(0,o.useState)(null),i=e.filter((e=>!e.couponsDisabled)),c=i.find((e=>e.category===A.ch.subscription||e.category===A.ch.bundle)),s=i.find((e=>e.category===A.ch.collaboration)),l=r?(0,G.xj)({templateId:null==s?void 0:s.productId,planId:null==c?void 0:c.productId,couponCode:r}):null,{data:d=null,error:u}=(0,he.s)(l,"plansService",ge,!0,fe);
1return{couponDetails:d,isLoading:!!r&&!d&&!u,couponErrorMessage:(null==(t=null==(n=null==u?void 0:u.response)?void 0:n.data)?void 0:t.errorMessage)||(null==u?void 0:u.message)||null,setCouponCode:a,removeCoupon:()=>a(null)}})(e),{lines:V,finalPrice:ee,finalPricesMap:ne}=(({purchases:e,couponDetails:n})=>{const{t}=(0,a.Bd)();return(0,o.useMemo)((()=>{const o=e.map((e=>e.getPriceBreakdown(n))),a=o.map(((o,a)=>{const i=e[a],c=function(e,n){const t=[],o=e.getDescription(n);return o?(t.push({productId:e.productId,key:`${e.productId}-${o.key}`,title:(0,r.jsxs)(r.Fragment,{children:[o.title&&(0,r.jsx)(s.A,{variant:"body2",color:"textPrimary",mb:1,children:o.title}),o.body&&(0,r.jsx)(s.A,{variant:"caption",color:"textPrimary",fontWeight:o.bodyBold?700:void 0,children:o.body})]}),lineType:ve.t.clarification}),t):t}(i,n);if(1===o.lines.length){const e=o.lines.map((e=>function(e,n,t){return e.lineType===ve.t.original?(r=((e,n)=>{for(var t in n||(n={}))ke.call(n,t)&&Ne(e,t,n[t]);if(Ie)for(var t of Ie(n))Be.call(n,t)&&Ne(e,t,n[t]);return e})({},e),o={title:we(n,t)},Me(r,Te(o))):e;var r,o}(e,i,t)));return e.push(...c),e}const l=o.lines.slice();return l.unshift({productId:i.productId,key:`${i.productId}-subtotal`,title:we(i,t),lineType:ve.t.subtotal,value:(0,Ae.a)(i.type,o.finalPrice,i.currency,t)},...c),l})).flat(),i=o.map((e=>e.finalPrice)),c=(0,T.Hk)(i),l=new Map;return o.forEach(((n,t)=>{l.set(e[t].productId,n.finalPrice)})),a.push({productId:"total",key:"total",title:t("priceBreakdown.total"),lineType:ve.t.total,value:De(e,o,c,t)}
1),{lines:a,finalPricesMap:l,finalPrice:c}}),[n,e,t])})({couponDetails:L.couponDetails,purchases:e}),{availableWalletType:re,renderPaymentRequestButton:oe,getWalletIconComponent:ae}=(e=>{const{stripe:n,elements:t}=(0,g.t2)(),[c,s]=(0,o.useState)(null),[l,d]=(0,o.useState)(null),{t:u}=(0,a.Bd)(),m=((e,n,...t)=>{const{stripe:r}=(0,g.t2)(),[,a]=(0,o.useState)(0),i=(0,o.useRef)({});if((0,o.useEffect)((()=>{if(!r||!n)return f.lQ;const e=()=>{a((e=>e+1))};return n.on("cancel",e),()=>{n.off("cancel",e)}}),[n,r]),!n||!n.isShowing()){const n={};return t.forEach((t=>{Object.assign(n,{[t]:e[t]})})),i.current=n,e}return O(O({},e),i.current)})(e,c,"finalPrice","couponCode"),p=(0,w.S)(m.purchases),{finalPricesMap:b}=m;return(0,o.useEffect)((()=>{if(!n||!t||!J)return f.lQ;const e=$((0,T.LR)(p)),r=n.paymentRequest({country:"US",currency:p[0].currency.toLowerCase(),total:Q(e,u),displayItems:X(p,b),requestPayerName:!0,requestPayerEmail:!0});let o=!0;return r.canMakePayment().then((e=>{e&&o&&(e.googlePay&&d(A.eq.GooglePay),e.applePay&&d(A.eq.ApplePay),s(r))})),()=>{o=!1;try{r.abort()}catch(e){}}}),[t,n,u,p,b]),(0,o.useEffect)((()=>{var e;if(c&&!c.isShowing()){const n=null!=(e=m.finalPrice)?e:(0,T.LR)(p),t=(0,T.lJ)(n);c.update({total:Q(t,u),displayItems:X(p,b)})}}),[m.finalPrice,c,u,p,b]),((e,{purchases:n,couponCode:t,purchaseRedirect:r,onPurchaseComplete:a=f.lQ,finalPrice:c,instrumentationProps:s})=>{const l=(0,i.wA)(),{stripe:d}=(0,g.t2)(),u=(0,W.J)(a),{getPurchaseInstrumentationData:m}=(0,U.P)(),p=(0,w.S)(n),b=(0,F.t)();(0,o.useEffect)((()=>{if(!d||!e)return f.lQ;const n=e=>{if(!d)return;const n=p.map((e=>m(e,c,s))),o={execute:(0,_.s)(d,e.paymentMethod.id,{createPaymentIntent:(0,G.DL)(p,t),redirect:r,purchases:p,instrumentationData:n,onSuccess:()=>e.complete("success"),onFail:()=>e.complete("fail")}),purchases:p,instrumentationData:n,onPurchaseConfirmed:u,webSocketSubscribe:b};l(K.tl.request(o))};return e.on("paymentmethod",n),()=>{e.off("paymentmethod",n)}}),[t,l,c,m,u,e,r,d,p,s,b])})(c,m),{renderPaymentRequestButton:(0,o.useMemo)((()=>{if(!c||l!==A.eq.ApplePay&&l!==A.eq.GooglePay)return null;const e=e=>(0,r.jsx)(E,((e,n)=>{for(var t in n||(n={}))z.call(n,t)&&Y(e,t,n[t]);if(H)for(var t of H(n))q.call(n,t)&&Y(e,t,n[t]);return e})({paymentRequest:c},e));return e.displayName="WalletPaymentButton",e}),[l,c]),paymentRequest:c,availableWalletType:l,getWalletIconComponent:e=>Z[e]}})({purchases:e,finalPricesMap:ne,finalPrice:ee,purchaseRedirect:t,couponCode:null==(j=L.couponDetails)?void 0:j.coupon.code,onPurchaseComplete:x,instrumentationProps:v}),ie=re?ae(re):null,ce=re===k?oe:void 0,me=k===A.eq.Card&&!(null==I?void 0:I.length)||N||L.isLoading,pe=e.reduce(((e,n)=>!n.couponsDisabled||e),!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{className:C.content,children:(0,r.jsxs)("div",{className:C.purchaseContainer,children:[(0,r.jsxs)("div",{className:C.paymentOptions,children:[(0,r.jsx)(s.A,{variant:"h6",className:C.paymentOptionsTitle,children:P("billing.page.paymentOptions")}),(0,r.jsxs)(d.A,{name:"type",defaultValue:A.eq.Card,value:k,onChange:(e,n)=>{B(n)},children:[(0,r.jsx)(u.A,{value:A.eq.Card,control:(0,r.jsx)(m.A,{}),label:(0,r.jsx)("span",{children:P("billing.page.creditCard")})}),(()=>{if(k!==A.eq.Card||!I)return null;const e=I.slice(0,1);return(0,r.jsxs)("div",{className:C.creditCardContainer,children:[e.map(((e,n)=>(0,r.jsx)(se,{onEditClick:()=>{D({cardToEdit:e,closeLeftIcon:!0})},paymentMethod:e,isSelected:0===n},e.id))),0===e.length&&(0,r.jsx)(s.A,{variant:"body2",color:"textSecondary",className:C.noCardsText,children:P("billing.page.noCards")}),e.length<1&&(0,r.jsx)(te.A,{variant:"text",className:C.addCardButton,onClick:()=>{R({closeLeftIcon:!0})},children:P("billing.page.addCard")})]})})(),re&&ie&&(0,r.jsx)(u.A,{value:re,control:(0,r.jsx)(m.A,{}),label:(0,r.jsx)(ie,{className:C.walletOptionIcon})})]})]}),(0,r.jsxs)("div",{className:C.purchaseInfoContainer,children:[e.length>1&&(0,r.jsx)(s.A,{variant:"body2",mb:2,children:P("billing.page.itemsCount",{count:e.length})}),(0,r.jsx)(Pe,{lines:pe?V.slice(0,-1):V}),pe&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{className:C.divider}),e.find((e=>e.hasDiscounts))&&(0,r.jsx)(s.A,{variant:"body2",color:"textSecondary",mb:1,fontSize:12,children:P("billing.page.discountMayBeRemovedIfPromoApplied")}),(0,r.jsx)(ye,Ue({},L)),(0,r.jsx)(p.A,{className:C.divider}),(0,r.jsx)(Pe,{lines:V.slice(-1)})]})]})]})}),(0,r.jsxs)(b.A,{className:C.bottomButtons,children:[(0,r.jsx)(te.A,{variant:"text",onClick:()=>{N||(S.replace({state:null}),n())},className:C.cancelBtn,"data-testid":"cancelDialog",children:P("button.cancel")}
1),ce?ce({disabled:me}):(0,r.jsxs)(te.A,{variant:"contained",onClick:()=>{var n,r;const o=null==(n=null==I?void 0:I[0])?void 0:n.id;o&&k===A.eq.Card&&M({purchases:e,finalPrice:ee,purchaseRedirect:t,paymentMethodId:o,onPurchaseComplete:x,couponCode:null==(r=L.couponDetails)?void 0:r.coupon.code,instrumentationProps:v})},color:"primary",disabled:me,"data-testid":"submitDialog",children:[N&&(0,r.jsx)(de.P,{size:14}),(0,r.jsx)("span",{children:P("button.buyNow")})]})]})]})}},49539:(e,n,t)=>{t.d(n,{Y:()=>F,C:()=>W});var r=t(74848),o=t(96540),a=t(15360),i=t(78328),c=t(14379),s=t(63266),l=t(63710),d=t(32316),u=t(77037),m=t(46831),p=t(14073),b=t(11641),y=t(52211),h=t(10388),g=t(52714),f=t(55383);const x=(0,t(79068).A)((e=>({dialog:{overflowX:"hidden",minWidth:"416px",maxWidth:"800px",width:"800px",height:"660px",backgroundColor:e.palette.secondary.dark,backgroundImage:"none",borderRadius:e.spacing(1),[e.breakpoints.down("tablet")]:{minWidth:"auto"},[e.breakpoints.down("mobile")]:{minWidth:"90%"}},closeIcon:{position:"absolute",right:16,top:10},titleContainer:{textAlign:"center",padding:e.spacing(0),marginTop:e.spacing(2.5),marginBottom:e.spacing(3)}})),{name:"PurchaseDialog"});var v=Object.defineProperty,j=Object.defineProperties,C=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,A=(e,n,t)=>n in e?v(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,S=(e,n)=>{for(var t in n||(n={}))O.call(n,t)&&A(e,t,n[t]);if(P)for(var t of P(n))w.call(n,t)&&A(e,t,n[t]);return e};const M=e=>{var n=e,{isOpen:t,onClose:o=y.lQ,onPurchaseComplete:i}=n,c=((e,n)=>{var t={};for(var r in e)O.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&P)for(var r of P(e))n.indexOf(r)<0&&w.call(e,r)&&(t[r]=e[r]);return t})(n,["isOpen","onClose","onPurchaseComplete"]);const s=x(),{t:v}=(0,l.Bd)(),A=(0,a.W6)(),M=(0,d.d4)(g.Fi),T=()=>{M||(A.replace({state:null}),o())};return(0,r.jsxs)(u.A,{open:t,classes:{paper:s.dialog},children:[(0,r.jsxs)(m.A,{className:s.titleContainer,children:[(0,r.jsx)(p.A,{variant:"body2",component:"p",children:v("billing.page.confirmYourPurchase")}),(0,r.jsx)(b.A,{"aria-label":"close",onClick:T,className:s.closeIcon,children:(0,r.jsx)(h.F,{})})]}),(0,r.jsx)(f.V,(I=S({},c),k={onClose:T,onPurchaseComplete:e=>{T(),i(e)}},j(I,C(k))))]});var I,k};var T=Object.defineProperty,I=Object.defineProperties,k=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,E=(e,n,t)=>n in e?T(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,R=(e,n)=>{for(var t in n||(n={}))N.call(n,t)&&E(e,t,n[t]);if(B)for(var t of B(n))D.call(n,t)&&E(e,t,n[t]);return e},L=(e,n)=>I(e,k(n));const G=(0,o.createContext)({}),F=({children:e})=>{const[n,t]=(0,o.useState)(null),l=(0,i.J)(),{trackPurchaseConfirmationOpen:d}=(0,c.P)(),u=(0,o.useCallback)((e=>{d(s.SZ.upgradeSubscriptionPlan,e.purchases),t(L(R({},e),{onPurchaseComplete:n=>{var r;null==(r=e.onPurchaseComplete)||r.call(e),t(null),l(R({purchases:e.purchases},n))}}))}),[l,d]),m=(0,a.zy)();return(0,r.jsxs)(G.Provider,{value:{openDialog:u},children:[e,n&&(0,r.jsx)(M,L(R({isOpen:!0,purchaseRedirect:m.pathname},n),{onClose:()=>{var e;t(null),null==(e=null==n?void 0:n.onClose)||e.call(n)}}))]})},W=()=>(0,o.useContext)(G)},62746:(e,n,t)=>{t.d(n,{C:()=>u,l:()=>m});var r=t(74848),o=t(52035),a=t(34843),i=t(78328),c=t(15086),s=t(81149),l=t(43795);const d=(0,o.eU)(null),u=()=>{const[e,n]=(0,a.fp)(d),t=(0,i.J)();return(0,r.jsx)(s.t,{open:!!e,children:(0,r.jsx)(c.A,{children:e&&(0,r.jsx)(l.R,{onClose:()=>{n(null)},instrumentationProps:e.instrumentationProps,onPurchaseComplete:e=>{n(null),t(e)},ignoreCards:e.ignoreCards})})})},m=()=>(0,a.Xr)(d)},49295:(e,n,t)=>{t.d(n,{a:()=>a});var r=t(90083),o=t(59742);const a=(e,n,t,a)=>{const i=(0,o.CU)(t,n);switch(e){case r.nM.Annual:return a("price.amountPerYear",{amount:i});case r.nM.Monthly:return a("price.amountPerMonth",{amount:i});default:return i}}},13448:(e,n,t)=>{t.d(n,{O:()=>a});var r=t(72635),o=t(90083);const a=(e,n)=>{if(!e||e===o.nM.OneTime)return n;const t=e===o.nM.Annual?"planDetails.planAnnual":"planDetails.planMonthly";return(0,r.t)(t,{name:n})}},76853:(e,n,t)=>{t.d(n,{fe:()=>T,Gf:()=>M,bb:()=>I});var r=t(74848),o=t(63710),a=t(90083),i=t(59742),c=t(88820),s=t(18849),l=t(57573),d=t(86217),u=t(90560),m=t(49295),p=t(45254);const b=(e,n,t)=>({productId:e.productId,key:`${e.productId}-original`,title:t("priceBreakdown.original"),lineType:p.t.original,value:(0,m.a)(e.type,e.price,e.currency,t),isCrossedOut:n}),y=(e,n,t,r)=>({productId:e,key:`${e}-discount`,title:n?r("priceBreakdown.discountTitleOff",{amount:n}):r("priceBreakdown.discountTitle"),lineType:p.t.discount,value:t}),h=(e,n,t)=>{let r=e.price;const o=[];return n&&n.coupon.price&&(o.push(b(e,!0,t)),o.push(((e,n,t)=>{var r;const o=null==(r=n.coupon)?void 0:r.discount.absoluteAmount,a=(0,m.a)(n.type[0],o,n.currency,t),i=(e=>{const n=null==e?void 0:e.coupon;return e&&n&&n.discount.amount?(0,s.f3)(n.discount.type,n.discount.amount,e.currency):""})(n);return y(e,i,a,t)})(e.productId,n,t)),r=n.coupon.price),0===o.length&&o.push(b(e,!1,t)),{lines:o,finalPrice
1:r}};var g=t(74110);var f=t(13448),x=Object.defineProperty,v=Object.defineProperties,j=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,w=(e,n,t)=>n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,A=(e,n)=>{for(var t in n||(n={}))P.call(n,t)&&w(e,t,n[t]);if(C)for(var t of C(n))O.call(n,t)&&w(e,t,n[t]);return e},S=(e,n)=>v(e,j(n));const M=e=>{const{subscription:n,discounts:t,isDowngrade:m,t:x}=e,v=n.id;if(!v)throw new l.E("Product id is not found",{subscription:n});const j=(0,d.c)(n),C=(0,d.m)(n);if(!j||!C)throw new l.E("Product type or price is not found",{subscription:n,price:C,type:j});const P=(0,u.hn)(e.subscriptions,e.currentSubscription),O=(0,d.c)(P);if(!P||!O)throw new l.E("Current subscription model is not found",{subscriptions:e.subscriptions,currentSubscription:e.currentSubscription,currentSubscriptionModel:P,currentSubscriptionType:O});const w={productId:v,category:n.category,type:j,price:C,currency:n.currency},M=(0,u.wT)(n.title,x),T=function(e){const{subscription:n,discounts:t,currentSubscription:l,isDowngrade:d,displayTitle:m,currentSubscriptionType:p,priceModel:b,t:y}=e,{price:h,type:x}=b,v=(0,f.O)(p,(0,u.wT)(l.title,y)),j=(0,c.vH)(x);return u=>{var p;const f=(0,g.F)(b,u);if(d||function(e){const{currentSubscriptionModel:n,priceModel:{type:t},subscription:r,currentSubscriptionType:o}=e;return n.title===r.title&&o===a.nM.Monthly&&t===a.nM.Annual}(e)){const e=(0,s._J)(t);return{key:"detailsClarification",body:(0,r.jsx)(o.x6,{i18nKey:"planDetails.downgradeClarification",values:{renewDate:j,currentPlan:v,endDate:(0,c.iC)(l.date),price:(0,i.CU)(n.currency,null!=(p=null==e?void 0:e.finalPrice)?p:h)}})}}if(t.length>0&&!f){const e=(0,s.Zn)(l.planId,n),a=(0,s.n6)(t);if(e&&a)return{key:"discountClarification",title:y("discount.proratedDiscountTitle"),body:(0,r.jsx)(o.x6,{i18nKey:"discount.proratedDiscountClarification",values:{months:y("time.month",{count:a.noOfMonthsLeft}),currentPlan:v,renewDate:j,proratedDiscount:(0,s.f3)(a.discountType,a.discount,n.currency),newPlan:m}}),bodyBold:!0}}return{key:"detailsClarification",body:(0,r.jsx)(o.x6,{i18nKey:"planDetails.purchaseDetails",values:{date:(0,c.vH)(x)}})}}}(S(A({},e),{displayTitle:M,currentSubscriptionModel:P,currentSubscriptionType:O,priceModel:w}));return A({originalTitle:n.title,displayTitle:M,isDowngrade:m,getPriceBreakdown:e=>((e,n,t,r)=>{const{currency:o}=e;let a=e.price;const i=[],c=n&&n.length>0,l=(0,g.F)(e,t);if(c&&!l){const t=(0,s._J)(n),c=(0,s.n6)(n);return i.push(b(e,!0,r)),t&&(i.push(((e,n,t,r)=>{const o=(0,s.f3)(n.discountType,n.discount,t);return y(e,void 0,o,r)})(e.productId,t,o,r)),a=t.finalPrice),c&&(i.push(((e,n,t,r)=>({productId:e,key:`${e}-proratedDiscount`,title:r("discount.proratedDiscount"),lineType:p.t.proratedDiscount,value:(0,s.f3)(n.discountType,n.discount,t)}))(e.productId,c,o,r)),a=c.finalPrice),{lines:i,finalPrice:a}}return h(e,l,r)})(w,t,e,x),getDescription:T,model:n,hasDiscounts:t.length>0,couponsDisabled:!1},w)}
1,T=(e,n)=>{var t,r,o,i;const c={productId:e.id,category:e.category,type:null!=(r=null==(t=e.type)?void 0:t[0])?r:a.nM.OneTime,price:e.metadata.oneTime.price,currency:e.currency};return S(A({},c),{productId:e.id,type:null!=(i=null==(o=e.type)?void 0:o[0])?i:a.nM.OneTime,model:e,displayTitle:e.title,currency:e.currency,originalTitle:e.title,category:e.category,hasDiscounts:!1,getPriceBreakdown:e=>h(c,(null==e?void 0:e.category)===a.ch.bundle?e:null,n),getDescription:()=>null})},I=(e,n)=>{const t={productId:e.id,category:a.ch.collaboration,type:a.nM.OneTime,price:e.price.amount,currency:e.price.currency};return S(A({},t),{category:a.ch.collaboration,hasDiscounts:!1,displayTitle:e.name,getPriceBreakdown:e=>{const r=null==e?void 0:e.category,o=r!==a.ch.bundle&&r!==a.ch.subscription;return h(t,o?e:null,n)},getDescription:()=>null,model:e})}},39320:(e,n,t)=>{t.d(n,{A:()=>I});var r=t(74848),o=t(11848),a=t(69067),i=t(14073),c=t(47839),s=t(20053),l=t(47576),d=t(20845),u=t(23064),m=t(10388),p=t(17886),b=t(62193),y=t(99173),h=t(19717),g=t(79068),f=t(23414);const x=(0,g.A)((({spacing:e})=>({benefit:{display:"flex",alignItems:"flex-start",gap:e(1),"&:not(:last-child)":{marginBottom:e(2)}},benefitStickToBottom:{marginTop:"auto"},text:{fontSize:12,lineHeight:1.5},title:{fontWeight:700,marginRight:e(.5),verticalAlign:"top"},titleDimmed:{color:f.T.mistGray},boldTitle:{color:f.T.primaryRed},clarification:{color:f.T.mistGray,fontWeight:500,display:"inline-block",whiteSpace:"pre-line"},boldClarification:{color:f.T.primaryRed,fontStyle:"italic"},hintIcon:{color:f.T.mistGray,fontSize:16,width:"1em",height:"1em"},popper:{"& > div > a":{color:f.T.whiteSmoke}}})),{name:"BenefitsView"});var v=Object.defineProperty,j=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,O=(e,n,t)=>n in e?v(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const w=(0,o.Ay)(m.F)((({theme:e})=>({color:e.palette.error.main}))),A=(0,o.Ay)(d.o)((({theme:e})=>({color:e.palette.success.main}))),S=(0,o.Ay)(a.A)({width:16,height:16,svg:{fontSize:16}}),M={[h.nt.license]:y.u,[h.nt.check]:A,[h.nt.copyright]:u.Z,[h.nt.premium]:p.N,[h.nt.cross]:w},T=(0,o.Ay)(l.b)({textTransform:"none",fontSize:"inherit",lineHeight:"unset"}),I=({benefits:e,dimmed:n})=>{const t=x();return(0,r.jsx)(r.Fragment,{children:e.map((({icon:e,title:o,testId:a,boldTitle:l,clarification:d,hint:u,htmlTitle:m,onClick:p,stickToBottom:y})=>{const h=M[e],g=p?e=>(0,r.jsx)(T,((e,n)=>{for(var t in n||(n={}))C.call(n,t)&&O(e,t,n[t]);if(j)for(var t of j(n))P.call(n,t)&&O(e,t,n[t]);return e})({onClick:p},e)):"span";return(0,r.jsxs)("div",{className:(0,s.A)(t.benefit,y&&t.benefitStickToBottom),children:[(0,r.jsx)(S,{children:(0,r.jsx)(h,{width:16,height:16})}),(0,r.jsxs)(i.A,{component:"span",className:t.text,variant:"body2","data-testid":a,children:[(0,r.jsx)(g,{className:(0,s.A)(t.title,{[t.titleDimmed]:n,[t.boldTitle]:l}),dangerouslySetInnerHTML:m?{__html:o}:void 0,children:m?void 0:o}),d&&(0,r.jsx)("span",{className:(0,s.A)({[t.clarification]:!0,[t.boldClarification]:l}),children:d})]}),u&&(0,r.jsx)(c.A,{title:u,placement:"top",classes:{popper:t.popper},children:(0,r.jsx)("span",{className:t.hintIcon,children:(0,r.jsx)(b.g,{})})})]},o)}))})}},19717:(e,n,t)=>{t.d(n,{nt:()=>u.n,KC:()=>d,b8:()=>o.b,AO:()=>m,XD:()=>a.X,FS:()=>r.F});var r=t(88577),o=t(92769),a=t(58451),i=t(7291),c=t(90083),s=t(8176);const l={[c.e5.standard]:r.F,[c.e5.premium]:o.b,[c.e5.pro]:a.X,[c.e5.business1]:s.c,[c.e5.business2]:s.c,[c.e5.business3]:s.c,[c.e5.enterprise]:i.t},d=(e,n,t)=>(0,l[e.title])(e,n,t);var u=t(35246);const m=e=>{var n,t;return(null==(t=null==(n=e.benefitDetails)?void 0:n.includes)?void 0:t.map((e=>({icon:u.n.check,title:e,htmlTitle:!0}))))||[]}},83433:(e,n,t)=>{t.d(n,{Gd:()=>j,UK:()=>f,nP:()=>x,yP:()=>v});var r=t(90083),o=t(59742),a=t(18849),i=t(57573),c=t(86217),s=t(90560),l=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,n,t)=>n in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,h=(e,n)=>{for(var t in n||(n={}))p.call(n,t)&&y(e,t,n[t]);if(m)for(var t of m(n))b.call(n,t)&&y(e,t,n[t]);return e},g=(e,n)=>d(e,u(n));const f=(e,n)=>({planKey:e.title,title:(0,s.wT)(e.title,n)});function x({id:e},{planId:n}){return!n||n===e}const v=e=>{const n=e.reduce(((e,n)=>{const t=n.title;let r=e.get(t);return r||(r={priority:n.priority,key:n.title,subscriptions:[]},e.set(t,r)),r.subscriptions.push(n),r.priority=Math.min(r.priority,n.priority),e}),new Map);return Array.from(n.values()).sort(((e,n)=>e.priority-n.priority)).map((e=>e.subscriptions))},j=(e,n,t)=>{const l=n=>{if(!n)throw new i.E("No price is provided");return(0,o.CU)(e.currency,n)},d=(0,c.c)(e),u=(0,c.m)(e);if(!d||!u)throw new i.E("Product type or price is not found",{subscription:e,price:u,type:d});const m=e=>d===r.nM.Annual?t("planDetails.withAnnualCommitmentPrice",{price:l(e)}):void 0,p={type:r.nM.Monthly,price:l((0,s.b_)(e))},b=(0,a._J)(n);if(!b)return g(h({},p),{clarification:m(u)});
1const y=d===r.nM.Monthly?b.finalPrice:Number(b.finalPrice)/12;return g(h({},p),{originalPrice:p.price,price:l(y),discount:(0,a.f3)(b.discountType,b.discount,e.currency),clarification:m(b.finalPrice)})}},9814:(e,n,t)=>{t.d(n,{_p:()=>o._,W$:()=>r.W,Vs:()=>x});var r=t(3911),o=t(47639),a=t(74848),i=t(63710),c=t(68997),s=t(11848),l=t(77037),d=t(11641),u=t(69067),m=t(46831),p=t(81293),b=t(10388);const y=`.${c.A.paper}`,h=(0,s.Ay)(l.A)({[y]:{width:"1400px",maxWidth:"96%"}}),g=(0,s.Ay)(d.A)((({theme:e})=>({position:"absolute",top:e.spacing(1),right:e.spacing(1)}))),f=(0,s.Ay)(u.A)((({theme:e})=>({overflowX:"auto",maxWidth:"100%",position:"relative",background:e.palette.secondary.dark}))),x=({isOpen:e,onClose:n})=>{const{t}=(0,i.Bd)();return(0,a.jsxs)(h,{open:e,children:[(0,a.jsxs)(m.A,{align:"center",position:"relative",children:[(0,a.jsx)("span",{children:t("profile.licenses")}),(0,a.jsx)(g,{onClick:n,children:(0,a.jsx)(b.F,{})})]}),(0,a.jsx)(f,{children:(0,a.jsx)(p.I,{})})]})}},92688:(e,n,t)=>{t.d(n,{MW:()=>f,_d:()=>he,Y2:()=>ge.Y,dN:()=>we,O7:()=>Ue,ZR:()=>Ke.Z});var r=t(74848),o=t(15327),a=t(69067),i=t(90083),c=t(945),s=t(11848),l=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,n,t)=>n in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const h=(0,s.Ay)("div")({display:"flex",flexDirection:"column",justifyContent:"center",maxWidth:1200,margin:"0 auto"}),g=(0,s.Ay)("div")((({theme:{spacing:e,breakpoints:n}})=>({display:"grid",alignSelf:"center",maxWidth:"100%",justifyItems:"center",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:e(2),[n.down("mobile")]:{flexDirection:"column",alignItems:"stretch"}}))),f=e=>{var n,t=e,{children:o}=t,a=((e,n)=>{var t={};for(var r in e)p.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&m)for(var r of m(e))n.indexOf(r)<0&&b.call(e,r)&&(t[r]=e[r]);return t})(t,["children"]);return(0,r.jsx)(h,(n=((e,n)=>{for(var t in n||(n={}))p.call(n,t)&&y(e,t,n[t]);if(m)for(var t of m(n))b.call(n,t)&&y(e,t,n[t]);return e})({},a),d(n,u({children:(0,r.jsx)(g,{children:o})}))))};var x=t(96540),v=t(15001),j=t(4785),C=t(56239),P=t(14073),O=t(43671),w=t(20053),A=t(84798),S=t(89136),M=t(39320),T=t(63710),I=Object.defineProperty,k=Object.defineProperties,B=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,R=(e,n,t)=>n in e?I(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const L=e=>{return(0,r.jsx)("svg",(n=((e,n)=>{for(var t in n||(n={}))D.call(n,t)&&R(e,t,n[t]);if(N)for(var t of N(n))E.call(n,t)&&R(e,t,n[t]);return e})({viewBox:"0 0 21 29",width:"21",height:"29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),k(n,B({children:(0,r.jsx)("path",{d:"M18 1.7c3.81 10.65-.88 18.97-15.68 20M5.64 12.94l-3.82 6.62a3 3 0 001.1 4.1l6.62 3.82",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}))));var n};var G=t(79068),F=t(86973);const W=(0,G.A)((({palette:e,spacing:n})=>({"@global":{"@font-face":F.T},discountAnchor:{position:"relative"},discountArrow:{position:"absolute",right:n(3),top:"100%",transform:"translate(0, -60%) scaleY(-1) rotate(-36deg)",color:e.primary.main},discountTitle:{fontFamily:"Kalam, sans-serif",color:e.primary.main,position:"absolute",fontSize:17,fontWeight:"dark"===e.mode?700:400,right:n(5.5),top:"110%",width:"max-content"}})),{name:"DiscountLabel"}),U=({discountAmount:e})=>{const{t:n}=(0,T.Bd)(),t=W();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:t.discountArrow,children:(0,r.jsx)(L,{})}),(0,r.jsx)(P.A,{variant:"body2",className:t.discountTitle,children:n("planDetails.amountDiscount",{amount:e})})]})};var K=t(23414);const _=(0,G.A)((({spacing:e,palette:n})=>({priceTextLine:{display:"flex",flexDirection:"row",alignItems:"flex-start"},originalPriceTextLine:{height:32,fontWeight:500,marginBottom:e(1)},originalPriceText:{textDecoration:"line-through",fontSize:24},priceClarification:{paddingTop:e(4),color:n.text.secondary},discountAnchor:{position:"relative"},priceText:{fontSize:32},priceTextDimmed:{color:K.T.mistGray},priceSuffix:{fontSize:14,marginLeft:e(1)}})),{name:"PlanCardPriceDetails"}),V={[i.nM.Monthly]:"planDetails.onceMonthly",[i.nM.Annual]:"planDetails.onceYearly",[i.nM.OneTime]:null},H=({isAnnualPricing:e,price:n,dimmed:t})=>{const o=_(),{t:a}=(0,T.Bd)(),c=((e,n)=>{if(!e)return null;switch(e.type){case"switch":{const t=n?i.nM.Annual:i.nM.Monthly;return e.values[t]}case"value":return e.value;default:return null}})(n,e),s=null==c?void 0:c.originalPrice,l=null==c?void 0:c.discount,d=((e,n)=>"label"===n.type?n.clarification:null==e?void 0:e.clarification)(c,n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,w.A)(o.priceTextLine,o.originalPriceTextLine),"data-testid":"subscriptionPriceOriginal",children:s&&(0,r.jsx)(P.A,{variant:"body2",color:"text.secondary",className:o.originalPriceText,children:s})}),(0,r.jsxs)("div",{className:(0,w.A)(o.priceTextLine,o.discountAnchor),"data-testid":"subscriptionPricePerMonth",children:[(()=>{if("label"===n.type)return(0,r.jsx)(P.A,{variant:"h2",className:(0,w.A)(o.priceText,{[o.priceTextDimmed]:t}),children:n.value});if(!c)return null;const e=c.type?V[c.type]:null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.A,{variant:"h2",className:o.priceText,children:c.price}),(0,r.jsx)(P.A,{variant:"body2",className:o.priceSuffix,children:e&&a(e)})]})})(),l&&(0,r.jsx)(U,{discountAmount:l})]}),d&&(0,r.jsx)(P.A,{variant:"caption",className:o.priceClarification,children:d})]})},z=(0,G.A)((({spacing:e,palette:n,breakpoints:t})=>({card:{width:"100%",height:"100%",borderRadius:e(1),background:n.secondary.dark,padding:0},cardContent:{padding:e(3,1,2),height:"100%",display:"flex",flexDirection:"column"},mainSection:{textAlign:"center"},wideCard:{"& $cardContent":{display:"flex",flexDirection:"row"},"& $mainSection":{textAlign:"left",flex:"1 1 50%"},"& $titleSection":{height:"auto"},"& $actionsSection":{alignItems:"flex-start"},"& $divider":{borderTopStyle:"none",borderLeftStyle:"solid"},"& $benefitsSection":{flex:"1 1 50%",height:"auto"}},titleSection:{height:116,padding:e(0,2,3)},priceSection:{height:158,marginBottom:e(3),display:"flex",flexDirection:"column",alignItems:"center"},priceSwitch:{marginTop:"auto"},actionsSection:{padding:e(0,2),marginBottom:e(3),display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},cta:{paddingTop:e(1),paddingBottom:e(1),height:40},ctaPrimary:{paddingRight:e(3),paddingLeft:e(3)},ctaOutlined:{borderColor:n.text.primary,color:n.text.primary},ctaCheckIcon:{fontSize:20,width:"1em",height:"1em",fill:K.T.mistGray},divider:{margin:e(0,2),borderTopStyle:"solid",borderColor:n.text.disabled,borderWidth:"1px",opacity:.5}
1,benefitsSection:{flexGrow:1,display:"flex",flexDirection:"column",marginTop:e(2),padding:e(1,2),maxHeight:"100%",[t.down("mobile")]:{height:"auto"}},title:{fontSize:16,marginBottom:e(2)},subtitle:{color:K.T.mistGray,fontSize:12,marginBottom:e(2)}})),{name:"PlanCard"});var q=t(1405);const Y=(0,G.A)({root:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"flex-end",width:"100%"},label:{flex:1,fontSize:12},switch:{height:24,marginBottom:4}},{name:"PriceSwitch"}),$=({value:e,onChange:n,className:t})=>{const o=Y(),{t:a}=(0,T.Bd)();return(0,r.jsxs)("div",{className:(0,w.A)(o.root,t),children:[(0,r.jsx)(P.A,{variant:"body2",className:o.label,align:"right",children:a("planDetails.payMonthly")}),(0,r.jsx)("div",{className:o.switch,children:(0,r.jsx)(q.A,{checked:e,onChange:(e,t)=>{n(t)},color:"primary",inputProps:{"aria-label":a("planDetails.annualPricing")}})}),(0,r.jsx)(P.A,{component:"span",variant:"body2",className:o.label,align:"left",children:a("planDetails.annually")})]})};var Z=Object.defineProperty,J=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(e,n,t)=>n in e?Z(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,re=(e,n)=>{for(var t in n||(n={}))ee.call(n,t)&&te(e,t,n[t]);if(X)for(var t of X(n))ne.call(n,t)&&te(e,t,n[t]);return e};const oe={component:v.A,target:"_blank",rel:"noreferrer noopener"},ae=e=>{var n=e,{title:t,subtitle:o,getBenefits:a,ctaCaption:i,ctaStyle:c,onCtaClick:s,dimmed:l,isAnnualPricingSet:d,ctaTestId:u,ctaDisabled:m,isWide:p,hidePriceSection:b,planKey:y,ctaHref:h}=n,g=((e,n)=>{var t={};for(var r in e)ee.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&X)for(var r of X(e))n.indexOf(r)<0&&ne.call(e,r)&&(t[r]=e[r]);return t})(n,["title","subtitle","getBenefits","ctaCaption","ctaStyle","onCtaClick","dimmed","isAnnualPricingSet","ctaTestId","ctaDisabled","isWide","hidePriceSection","planKey","ctaHref"]);const f=z(),[v,T]=(0,x.useState)(d||!1),I={isAnnualPricing:v},k=e=>"function"==typeof e?e(I):e,B=k(c),N="primary"!==B,D=a(v);return(0,r.jsx)(j.A,{className:(0,w.A)({[f.card]:!0,[f.wideCard]:p}),"data-testid":"subscriptionItem",children:(0,r.jsxs)(C.A,{className:f.cardContent,children:[(0,r.jsxs)("div",{className:f.mainSection,children:[(0,r.jsxs)("section",{className:f.titleSection,children:[(0,r.jsx)(P.A,{variant:"h5",className:f.title,"data-testid":"subscriptionName",children:t}),(0,r.jsx)(P.A,{variant:"subtitle1",className:f.subtitle,"data-testid":"subscriptionName",children:o})]}),!b&&(0,r.jsxs)("section",{className:f.priceSection,children:[(0,r.jsx)(H,re({isAnnualPricing:v,dimmed:l},g)),"switch"===g.price.type&&(0,r.jsx)($,{className:f.priceSwitch,value:v,onChange:T})]}),(0,r.jsx)(O.A,{className:f.actionsSection,children:(0,r.jsx)(A.A,(E=re({className:(0,w.A)(f.cta,{[f.ctaOutlined]:N,[f.ctaPrimary]:!N}),variant:N?"outlined":"contained",color:N?"secondary":"primary",onClick:()=>s(I),disableRipple:!0,startIcon:"checked"===B?(0,r.jsx)(S.J,{className:f.ctaCheckIcon}):(0,r.jsx)("span",{}),disabled:"checked"===B||k(m),size:"large","data-testid":k(u),href:h},h?oe:null),R={children:k(i)},J(E,Q(R))))})]}),(0,r.jsx)("section",{className:f.divider}),(0,r.jsx)("div",{className:f.benefitsSection,children:(0,r.jsx)(M.A,{benefits:D,dimmed:l})})]})});var E,R};var ie=Object.defineProperty,ce=Object.defineProperties,se=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,me=(e,n,t)=>n in e?ie(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,pe=(e,n)=>{for(var t in n||(n={}))de.call(n,t)&&me(e,t,n[t]);if(le)for(var t of le(n))ue.call(n,t)&&me(e,t,n[t]);return e};const be={width:"100%",maxWidth:340},ye=(0,c.V)(be,{gridColumnStart:1,gridColumnEnd:-1,maxWidth:"unset"}),he=({cards:e})=>{const n=(0,o.A)((e=>e.breakpoints.up("mobile")));return(0,r.jsx)(r.Fragment,{children:e.map((e=>{const t=e.planKey===i.e5.enterprise;return(0,r.jsx)(a.A,{sx:t?ye:be,children:(0,r.jsx)(ae,(o=pe({},e),c={isWide:t&&n},ce(o,se(c))))}
1,e.planKey);var o,c}))})};var ge=t(68153),fe=t(63022),xe=t(9814),ve=Object.defineProperty,je=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Oe=(e,n,t)=>n in e?ve(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const we=()=>{const[e,n]=(0,x.useState)(!1),[t,o]=(0,x.useState)(!1),[a,i]=(0,x.useState)(!1),[c,s]=(0,x.useState)(!1),l=(0,x.useMemo)((()=>({openCancelCurrentSubscriptionDialog:()=>{n(!0)},openCancelFutureSubscriptionDialog:()=>{o(!0)},openEmailVerificationDialog:()=>{i(!0)},openLicensesDialog:()=>{s(!0)}})),[]);return((e,n)=>{for(var t in n||(n={}))Ce.call(n,t)&&Oe(e,t,n[t]);if(je)for(var t of je(n))Pe.call(n,t)&&Oe(e,t,n[t]);return e})({dialogsElement:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(xe.W$,{isOpen:e,handleClose:()=>n(!1)}),(0,r.jsx)(xe._p,{isOpen:t,handleClose:()=>o(!1)}),(0,r.jsx)(fe.E,{isVerifiedModalOpen:a,setVerifiedModalOpen:i,firstParagraphText:"emailVerification.verificationModal.selectPlan"}),(0,r.jsx)(xe.Vs,{isOpen:c,onClose:()=>s(!1)})]}),isCancelCurrentSubscriptionDialogOpen:e,isCancelFutureSubscriptionDialogOpen:t},l)};var Ae=t(32316),Se=t(57783),Me=t(52714),Te=t(26982),Ie=t(50794),ke=t(63266),Be=t(76853),Ne=t(52211),De=t(78375),Ee=t(83433),Re=t(65722),Le=t(36290),Ge=t(20856),Fe=t(55947);const We={[i.e5.standard]:Fe.d,[i.e5.premium]:Le.R,[i.e5.pro]:Ge.l,[i.e5.business1]:De.A,[i.e5.business2]:De.A,[i.e5.business3]:De.A,[i.e5.enterprise]:Re.p},Ue=({subscriptions:e,openEmailVerificationDialog:n,proceedToPurchase:t,openCancelCurrentSubscriptionDialog:r,ignoreCards:o,currentPlan:a,nextPlan:i,openLicensesDialog:c})=>{const{t:s}=(0,T.Bd)(),l=(0,Ae.d4)(Te.rm),d=(0,Ae.d4)(Te.lL),u=(0,Ae.d4)(Ie.OQ),m=(0,Ae.d4)(Me.yW),p=(0,Ae.d4)(Me.v),{discounts:b}=(0,Ae.d4)(Ie.KY),y=(0,Se.S)(null!=o?o:[]),h=(0,x.useMemo)((()=>{if(!e)return[];const o={openEmailVerificationDialog:n,proceedToPurchase:({subscription:n,discounts:r,isDowngrade:o})=>{a&&t({purchase:(0,Be.Gf)({subscriptions:e,subscription:n,discounts:r,currentSubscription:a,isDowngrade:o,t:s})})},cancelCurrentSubscription:r,handleEnterpriseClick:()=>{(0,ke.sx)(ke.SZ.clickContactUsPurchasePlan)},openLicensesDialog:c};return((e,n,t,r)=>{const o=e.findIndex((e=>(0,Ee.nP)(e,n))),a=n.ignoreCards||[],i=e.filter((e=>!a.includes(e.title)));return(0,Ee.yP)(i).map(((e,a)=>{const i=a<o,c=We[e[0].title];return c?c(e,n,{canBeDowngraded:i,onClickHandlers:t},r):null})).filter(Ne.R)})(e,{currentPlan:a,nextPlan:i,planId:null==a?void 0:a.planId,isEmailVerified:l,userDataLoaded:d&&!u&&!m&&!p,discounts:b,ignoreCards:y},o,s)}),[e,n,r,c,a,i,l,d,u,m,p,b,y,s,t]);return h};var Ke=t(81043)},10851:(e,n,t)=>{t.d(n,{g:()=>g});var r=t(74848),o=t(96540),a=t(15360),i=t(55383),c=t(8027),s=t(82970),l=t(29283),d=t(79379),u=Object.defineProperty,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,n,t)=>n in e?u(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,h=(e,n)=>{for(var t in n||(n={}))p.call(n,t)&&y(e,t,n[t]);if(m)for(var t of m(n))b.call(n,t)&&y(e,t,n[t]);return e};const g=({purchases:e,onSuccess:n,onCancel:t,onClose:u,title:m,instrumentationProps:p})=>{const b=(0,a.zy)(),y=(0,o.useMemo)((()=>h({Source:"Upsell Modal"},p)),[p]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.W,{children:[(0,r.jsx)(d.s,{children:m}),(0,r.jsx)(c.s,{onClick:u})]}),(0,r.jsx)(s.$,{children:(0,r.jsx)(i.V,{purchases:e,onPurchaseComplete:t=>{n(h({purchases:e},t))},onClose:t,purchaseRedirect:b.pathname,instrumentationProps:y})})]})}},8027:(e,n,t)=>{t.d(n,{s:()=>h});var r=t(74848),o=t(11848),a=t(11641),i=t(10388),c=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(e,n,t)=>n in e?c(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const b=(0,o.Ay)(a.A,{name:"UpsellClose"})((({theme:{spacing:e}})=>({position:"absolute",top:0,right:0,margin:e(1)}))),y=(0,o.Ay)(i.F,{name:"UpsellClose",slot:"icon"})({width:20,height:20}),h=e=>{return(0,r.jsx)(b,(n=((e,n)=>{for(var t in n||(n={}))u.call(n,t)&&p(e,t,n[t]);if(d)for(var t of d(n))m.call(n,t)&&p(e,t,n[t]);return e})({"aria-label":"close"},e),s(n,l({children:(0,r.jsx)(y,{})}))));var n}},82970:(e,n,t)=>{t.d(n,{$:()=>m});var r=t(11848),o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,n,t)=>n in e?o(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,u=(e,n)=>{for(var t in n||(n={}))s.call(n,t)&&d(e,t,n[t]);if(c)for(var t of c(n))l.call(n,t)&&d(e,t,n[t]);return e};const m=(0,r.Ay)("div",{name:"UpsellContainer"})((({content:e,theme:{spacing:n,breakpoints:t}})=>{return r=u(u({position:"relative",display:"flex",flexDirection:"column",gridArea:"content",overflowY:"auto"},"plans"===e&&{" & > div":{padding:n(0,1.5,1.5),marginTop:n(-1)}}),"fees"===e&&{padding:n(0,4,4),"& >
1 :not(:last-child)":{marginBottom:n(4)}}),o={[t.down("mobile")]:{paddingTop:n(3)}},a(r,i(o));var r,o}))},29283:(e,n,t)=>{t.d(n,{W:()=>r});const r=(0,t(11848).Ay)("div",{name:"UpsellModalHeader"})({position:"relative",gridArea:"header",minHeight:52})},15086:(e,n,t)=>{t.d(n,{A:()=>c,r:()=>i});var r=t(11848),o=t(23414);const a=({theme:{palette:e}})=>({display:"grid",flexDirection:"row",justifyContent:"stretch",height:"100%",backgroundColor:"dark"===e.mode?o.T.almostBlack:o.T.white}),i=(0,r.Ay)("div",{name:"UpsellModalLayout"})(a,(({theme:{breakpoints:e}})=>({gridTemplate:'\n      "marketing header" auto\n      "marketing content" 1fr\n      / 350px 1fr\n    ',[e.down("desktop")]:{gridTemplate:'\n        "marketing header" auto\n        "marketing content" 1fr\n        / 230px 1fr\n      '},[e.down("tablet")]:{gridTemplate:'\n        "marketing header" auto\n        "marketing content" 1fr\n        / 200px 1fr\n      '},[e.down("mobile")]:{gridTemplate:'\n        "header" auto\n        "marketing" auto\n        "content" 1fr\n        / 100%\n      '}}))),c=(0,r.Ay)("div",{name:"UpsellModalLayout"})(a,{width:"100%",gridTemplate:'\n      "header" auto\n      "content" 1fr\n    '})},81149:(e,n,t)=>{t.d(n,{W:()=>l,t:()=>d});var r=t(68997),o=t(11848),a=t(77037);const i=`.${r.A.paper}`,c=({theme:{palette:e}})=>({[i]:{backgroundColor:e.secondary.dark}}),s=({theme:{breakpoints:e,spacing:n}})=>({[i]:{[e.down("mobile")]:{width:"auto",height:"auto",maxWidth:"auto",marginRight:n(.5),marginLeft:n(.5)}}}),l=(0,o.Ay)(a.A,{name:"UpsellModal",shouldForwardProp:e=>"small"!==e})(c,(({theme:{breakpoints:e,palette:n},small:t})=>({[i]:{height:t?500:700,maxWidth:t?1e3:1100,width:t?1e3:1100,backgroundColor:n.secondary.dark,[e.down("desktop")]:{maxWidth:1e3,width:1e3},[e.down("tablet")]:{maxWidth:t?700:900,width:t?700:900}}})),s),d=(0,o.Ay)(a.A,{name:"UpsellModalNarrow"})(c,{[i]:{height:700,maxWidth:800,width:800}},s)},64407:(e,n,t)=>{t.d(n,{a:()=>I});var r=t(74848),o=t(92688),a=t(63710),i=t(11848),c=t(18850),s=t(75765),l=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,n,t)=>n in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const h=e=>{return(0,r.jsx)(s.A,(n=((e,n)=>{for(var t in n||(n={}))p.call(n,t)&&y(e,t,n[t]);if(m)for(var t of m(n))b.call(n,t)&&y(e,t,n[t]);return e})({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21"},e),d(n,u({children:(0,r.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M16.3334 10.5H4.66669"}),(0,r.jsx)("path",{d:"M10.5 16.3346L4.66669 10.5013L10.5 4.66797"})]})}))));var n};var g=Object.defineProperty,f=Object.defineProperties,x=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,P=(e,n,t)=>n in e?g(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const O=(0,i.Ay)(c.A,{name:"UpsellBack"})((({theme:{spacing:e}})=>({position:"absolute",left:0,top:0,margin:e(2)})));O.defaultProps={disableRipple:!0};const w=e=>{const{t:n}=(0,a.Bd)();return(0,r.jsxs)(O,(t=((e,n)=>{for(var t in n||(n={}))j.call(n,t)&&P(e,t,n[t]);if(v)for(var t of v(n))C.call(n,t)&&P(e,t,n[t]);return e})({},e),o={children:[(0,r.jsx)(h,{fontSize:"small",sx:{marginRight:1}}),(0,r.jsx)("span",{children:n("button.back")})]},f(t,x(o))));var t,o};var A=t(8027),S=t(82970),M=t(29283),T=t(79379);const I=({cards:e,dialogs:n,onClose:t,onBack:a,title:i})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(M.W,{children:[a&&(0,r.jsx)(w,{onClick:a}),i&&(0,r.jsx)(T.s,{children:i}),(0,r.jsx)(A.s,{onClick:t})]}),(0,r.jsx)(S.$,{content:"plans",children:(0,r.jsx)(o.MW,{children:(0,r.jsx)(o._d,{cards:e})})}),n]})},79379:(e,n,t)=>{t.d(n,{s:()=>a});var r=t(11848),o=t(46831);const a=(0,r.Ay)(o.A,{name:"UpsellTitle"})({fontWeight:500,textAlign:"center"});a.defaultProps={variant:"body2"}},74980:(e,n,t)=>{t.d(n,{T:()=>d});var r=t(96540),o=t(32316),a=t(75981),i=t(92688),c=t(14379),s=t(50794),l=t(63266);const d=(e,n,t,d)=>{const{subscription:u,isLoading:m}=(0,a.R)(),{trackPurchaseConfirmationOpen:p}=(0,c.P)(),{dialogsElement:b,openCancelCurrentSubscriptionDialog:y,openEmailVerificationDialog:h,openLicensesDialog:g}=(0,i.dN)(),{currentPlan:f}=(0,o.d4)(s.KY),{id:x,title:v}=(null==e?void 0:e.model)||{},j=(0,r.useMemo)((()=>x&&v?{planId:x,title:v,date:(new Date).toISOString()}:void 0),[x,v]);return{isLoading:m,cards:(0,i.O7)({subscriptions:u,openEmailVerificationDialog:h,openCancelCurrentSubscriptionDialog:y,ignoreCards:d,openLicensesDialog:g,proceedToPurchase:({purchase:e})=>{p(l.SZ.upgradeSubscriptionInUpsellModal,[e],t),n(e)},currentPlan:f,nextPlan:j}),dialogs:b}}},43795:(e,n,t)=>{t.d(n,{R:()=>u});var r=t(74848),o=t(96540),a=t(63710),i=t(15636),c=t(10851),s=t(82970),l=t(64407),d=t(74980);const u=({onClose:e,onPurchaseComplete:n,instrumentationProps:t,ignoreCards:u})=>{const{t:m}=(0,a.Bd)(),[p,b]=(0,o.useState)(null),{isLoading:y,cards:h,dialogs:g}=(0,d.T)(p,b,t,u);return y?(0,r.jsx)(s.$,{children:(0,r.jsx)(i.P,{})}):p?(0,r.jsx)(c.g,{title:m("upsellModal.purchaseConfirmation"),purchases:[p],onSuccess:n,onCancel:()=>b(null),onClose:e,instrumentationProps:t}):(0,r.jsx)(l.a,{title:m("upsellModal.planDetails"),cards:h,dialogs:g,onClose:e})}},78328:(e,n,t)=>{t.d(n,{j:()=>C,J:()=>P});var r=t(74848),o=t(96540),a=t(63710),i=t(15360),c=t(75981),s=t(9132),l=t(90083),d=t(52211),u=t(21781),m=t(79822),p=t(90560),b=t(94243),y=Object.defineProperty,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,x=(e,n,t)=>n in e?y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,v=(e,n)=>{for(var t in n||(n={}))g.call(n,t)&&x(e,t,n[t]);if(h)for(var t of h(n))f.call(n,t)&&x(e,t,n[t]);return e};const j=(0,o.createContext)(d.lQ),C=({children:e})=>{const[n,t]=(0,o.useState)(null),[d,y]=(0,o.useState)(null),{t:h}=(0,a.Bd)(),g=(0,i.zy)(),f=(0,i.W6)(),x=(0,o.useCallback)((({serverMessage:e,showCongratsModal:n,purchases:r})=>{if(e&&!n)return void(0,u.tP)(e);const o=r.find((e=>e.category===l.ch.collaboration)),a=r.find((e=>e.category===l.ch.subscription));if(!a&&!o)return void r.forEach((e=>{(0,u.tP)(function(e,n){switch(e.category){case l.ch.subscription:return(0,p.wT)(e.originalTitle,n);case l.ch.bundle:return(0,b.vi)(e.originalTitle,n);case l.ch.collaboration:return e.displayTitle}}(e,h))}));const i=O(o),c=O(a);o&&!i||a&&!c?t({templateId:null==o?void 0:o.productId,subscriptionId:null==a?void 0:a.productId}):y({template:i,subscription:c})}),[h]);(0,o.useEffect)((()=>{g.state&&"object"==typeof g.state&&"purchaseCompleted"in g.state&&(x(g.state.purchaseCompleted),f.replace({state:null}))}),[x,f,g]);const{subscription:C}
1=(0,c.R)(),{templates:P,getTemplateById:w}=(0,s.b)();return(0,o.useEffect)((()=>{n&&(n.templateId&&!(null==P?void 0:P.length)||n.subscriptionId&&!(null==C?void 0:C.length)||(y({subscription:null==C?void 0:C.find((({id:e})=>e===n.subscriptionId)),template:n.templateId?w(n.templateId):null}),t(null)))}),[n,C,P,w]),(0,r.jsxs)(j.Provider,{value:x,children:[e,(0,r.jsx)(m.z,v({onClose:()=>y(null),isOpen:!!d},d))]})},P=()=>(0,o.useContext)(j);function O(e){return e&&"model"in e?e.model:null}},92816:(e,n,t)=>{t.d(n,{T:()=>l});var r=t(74848),o=t(78328),a=t(43418),i=t(69240),c=t(49539),s=t(62746);const l=({children:e})=>(0,r.jsx)(a.li,{children:(0,r.jsx)(i.$,{children:(0,r.jsxs)(o.j,{children:[(0,r.jsx)(c.Y,{children:e}),(0,r.jsx)(s.C,{})]})})})},43418:(e,n,t)=>{t.d(n,{li:()=>g,t2:()=>f});var r=t(74848),o=t(96540),a=t(22926),i=t(57573);const c=(0,t(22037).c)(`${window.env.STRIPE_KEY}`);var s=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,b=(e,n,t)=>n in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const y=(0,o.createContext)({}),h=({children:e})=>{const n=(0,a.useStripe)(),t=(0,a.useElements)(),c=(0,o.useCallback)((e=>{return r=function*(){var r;if(!n||!t)throw new Error("Stripe is not initialized");const o=t.getElement(a.CardNumberElement);if(!o)throw new Error("CardNumberElement is not rendered");const c=(s=((e,n)=>{for(var t in n||(n={}))m.call(n,t)&&b(e,t,n[t]);if(u)for(var t of u(n))p.call(n,t)&&b(e,t,n[t]);return e})({},e),y={address_country:null==(r=e.address_country)?void 0:r.code,address_state:e.address_state||""},l(s,d(y)));var s,y;const{token:h,error:g}=yield n.createToken(o,c);if(h)return h.id;throw new i.E(null==g?void 0:g.message,g)},new Promise(((e,n)=>{var t=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=n=>n.done?e(n.value):Promise.resolve(n.value).then(t,o);a((r=r.apply(undefined,null)).next())}));var r}),[t,n]),s={stripe:n,elements:t,createCardToken:c};return(0,r.jsx)(y.Provider,{value:s,children:e})},g=({children:e})=>(0,r.jsx)(a.Elements,{stripe:c,children:(0,r.jsx)(h,{children:e})}),f=()=>(0,o.useContext)(y)},83434:(e,n,t)=>{t.d(n,{f:()=>m,t:()=>p});var r=t(74848),o=t(96540),a=t(74789),i=t(14743);const c=[1e3,1e4,6e4,6e5,36e5];var s=t(52211),l=t(51155),d=t(90720);const u=(0,o.createContext)((()=>s.lQ)),m=({children:e})=>{const n=d.Jd?`${d.Jd}?authorizationToken=${(0,l.Pm)()}`:null,{subscribe:t}=(e=>{const n=(0,o.useRef)(null),t=(0,o.useRef)(1),r=(0,o.useRef)(!0),s=(0,o.useRef)(new Map),l=(0,o.useCallback)(((e,n)=>{var t;const r=s.current;return r.has(e)||r.set(e,[]),null==(t=r.get(e))||t.push(n),()=>{const t=r.get(e);if(!t||0===t.length)return;const o=t.indexOf(n);o>=0&&t.splice(o,1)}}),[]),d=(0,o.useCallback)((()=>{if(!e)return;if((e=>{if(!e)return!1;const n=e.readyState;return n===WebSocket.OPEN||n===WebSocket.CONNECTING})(n.current))return;const o=new WebSocket(e);n.current=o;const l=()=>{const e=(n=t.current,c[(0,i.q)(n,1,c.length)-1]);var n;t.current+=1,setTimeout(d,e)};o.onopen=()=>{t.current=1},o.onclose=()=>{r.current&&l()},o.onerror=e=>{console.error("WebSocket error, reconnecting",e),l()},o.onmessage=e=>{try{const n=JSON.parse(e.data),t=s.current.get(n.eventType);t&&t.forEach((e=>{const t=e(n);t&&"catch"in t&&t.catch((e=>{(0,a.H4)(e,void 0,{category:"WEBSOCKET_MESSAGE"})}))}))}catch(e){(0,a.H4)(e,void 0,{category:"WEBSOCKET_MESSAGE"})}}}),[e]),u=(0,o.useCallback)((()=>{n.current&&n.current.close()}),[]),m=(0,o.useCallback)((()=>{document.hidden?(r.current=!1,setTimeout((()=>{r.current||u()}),6e5)):(r.current=!0,d())}),[u,d]);return(0,o.useEffect)((()=>{if(Boolean(e&&e.match(/^(ws|wss):\/\//)))d(),document.addEventListener("visibilitychange",m);else{const n=e?`Invalid socket URL: ${e}`:"Socket URL is not defined";(0,a.H4)(n,void 0,{category:"WEBSOCKET_CONNECT"})}return()=>{document.removeEventListener("visibilitychange",m),u()}}),[e,u,d,m]),{subscribe:l}})(n);return(0,r.jsx)(u.Provider,{value:t,children:e})},p=()=>(0,o.useContext)(u)},6932:(e,n,t)=>{t.d(n,{p:()=>r});var r=(e=>(e.canceled="canceled",e.processing="processing",e.requiresAction="requires_action",e.requiresCapture="requires_capture",e.requiresConfirmation="requires_confirmation",e.requiresPaymentMethod="requires_payment_method",e.succeeded="succeeded",e))(r||{})},25218:(e,n,t)=>{t.d(n,{s:()=>l});var r=t(31181),o=t(6932),a=t(57573),i=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;const l=(e,n,t)=>()=>{return r=function*(){var r,i,c,s,l,u,m,p,b,y,h,g,f,x,v;const{data:j}=yield t.createPaymentIntent();if("result"in j&&j.result)return null==(r=null==t?void 0:t.onSuccess)||r.call(t),{successMessage:j.result,showCongratsModal:!!j.showCongratsModal};const C="paymentIntent"in j?j.paymentIntent:null;if(!C)return!1;let P=yield e.retrievePaymentIntent(C.clientSecret);
1if(null==P?void 0:P.error)throw null==(i=null==t?void 0:t.onFail)||i.call(t),new a.E("errors.payment.unknown",Object(P.error));if((null==(c=P.paymentIntent)?void 0:c.status)===o.p.succeeded)return null==(s=null==t?void 0:t.onSuccess)||s.call(t),!0;if(P=yield e.confirmCardPayment(C.clientSecret,{payment_method:n,return_url:d(t)},{handleActions:!1}),null==P?void 0:P.error)throw null==(l=null==t?void 0:t.onFail)||l.call(t),new a.E("errors.payment.unknown",Object(P.error));if((null==(u=P.paymentIntent)?void 0:u.status)===o.p.succeeded)return null==(m=null==t?void 0:t.onSuccess)||m.call(t),!0;if((null==(p=P.paymentIntent)?void 0:p.status)===o.p.requiresAction){if(null==(y=null==(b=P.paymentIntent.next_action)?void 0:b.redirect_to_url)?void 0:y.url)return window.location.href=null==(g=null==(h=P.paymentIntent.next_action)?void 0:h.redirect_to_url)?void 0:g.url,!1;const n=yield e.confirmCardPayment(C.clientSecret);if(null==n?void 0:n.error)throw null==(f=null==t?void 0:t.onFail)||f.call(t),new a.E("errors.payment.unknown",Object(n.error));"succeeded"===(null==(x=null==n?void 0:n.paymentIntent)?void 0:x.status)&&(null==(v=null==t?void 0:t.onSuccess)||v.call(t))}return!0},new Promise(((e,n)=>{var t=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=n=>n.done?e(n.value):Promise.resolve(n.value).then(t,o);a((r=r.apply(undefined,null)).next())}));var r};function d(e){const n=new URL(r.Jv.purchase,window.location.origin),t={purchases:e.purchases.map((e=>{const n=e,{model:t,getPriceBreakdown:r}=n;return((e,n)=>{var t={};for(var r in e)c.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&i)for(var r of i(e))n.indexOf(r)<0&&s.call(e,r)&&(t[r]=e[r]);return t})(n,["model","getPriceBreakdown"])})),meta:e.instrumentationData};return n.searchParams.set("props",JSON.stringify(t)),n.searchParams.set("redirect",e.redirect),n.toString()}},58110:(e,n,t)=>{t.d(n,{m:()=>y});var r=t(96540),o=t(22926),a=t(43418),i=t(93711),c=t(24749),s=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,b=(e,n,t)=>n in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const y=()=>{const{elements:e}=(0,a.t2)(),[n,t]=(0,r.useState)({cardNumber:!1,expiration:!1,cvvCode:!1}),s=(0,r.useCallback)(((e,n)=>{t((t=>{return r=((e,n)=>{for(var t in n||(n={}))m.call(n,t)&&b(e,t,n[t]);if(u)for(var t of u(n))p.call(n,t)&&b(e,t,n[t]);return e})({},t),l(r,d({[e]:n}));var r}))}),[]);return{isFormComplete:(0,r.useCallback)((()=>{if(!e)return!1;const t={cardNumber:e.getElement(o.CardNumberElement),expiration:e.getElement(o.CardExpiryElement),cvvCode:e.getElement(o.CardCvcElement)};let r=!0,a=!0;const s=[];(0,c.kt)(t,((e,t)=>
1{const o=n[e];if(r=r&&o,t){const n=(e=>"_complete"in e&&e._complete)(t);a=a&&n,o!==n&&s.push(e)}else a=!1,o&&s.push(e)}));const l=a||r;return i.bW.info("Is credit card form complete?",{category:"CREDIT_CARD_FORM",details:{result:l,resultsDiffer:a!==r,isFormCompleteInternally:a,isFormCompleteByEvents:r,differenceInFields:s,fieldsCompletedByEvent:n}}),l}),[e,n]),setIsFieldComplete:s}}},41490:(e,n,t)=>{t.d(n,{m:()=>s});var r=t(96540),o=t(32316),a=t(89423),i=t(52714),c=t(26982);const s=()=>{const e=(0,o.wA)(),n=(0,o.d4)(c.on),t=(0,o.d4)(i.xi),s=(0,o.d4)(i.$Q),l=(0,o.d4)(i.kr);return(0,r.useEffect)((()=>{null!==t||!n||s||l||e(a.n5.request())}),[n,e,t,s,l]),t}},9132:(e,n,t)=>{t.d(n,{b:()=>u});var r=t(96540),o=t(95592),a=t(70362),i=t(20130),c=t(87906),s=t(71521),l=t(21058);const d=e=>encodeURIComponent(JSON.stringify(e)),u=e=>{const{genresSequence:n}=(0,l.S)(),t=(null==e?void 0:e.pageSize)?`&pageSize=${null==e?void 0:e.pageSize}&start=${null==e?void 0:e.start}`:"",u=(null==e?void 0:e.sortBy)?`&sortBy=${e.sortBy}&sortDirection=${e.sortDirection||c.v.asc}`:"",m=`/templates${e?(({category:e,genre:n})=>{const t=[];return e&&t.push(`criteria=${d([{key:"category",function:"eq",value:e}])}`),n&&t.push(`criteria=${d([{key:"rootGenreKey",function:"eq",value:n}])}`),`/?${t.join("&")}`})(e):""}${t}${u}`,{data:p,isValidating:b}=(0,o.Ay)(m,a.sY,i.$2),y=(0,r.useMemo)((()=>(null==p?void 0:p.data)||[]),[p]),h=(0,r.useMemo)((()=>(0,s.lK)(y)),[y]),g=(0,r.useMemo)((()=>(0,s.a_)(h,n)),[n,h]),f=(0,r.useMemo)((()=>{const e=new Map;return y.forEach((n=>{e.set(n.id,n)})),n=>e.get(n)||null}),[y]),x=(0,r.useMemo)((()=>{const e=new Map;return y.forEach((n=>{e.set(n.templateKey,n)})),n=>e.get(n)||null}),[y]);return{templates:y,templatesByGenre:h,templateEntries:g,isValidating:b,getTemplateById:f,getTemplateByKey:x}}},53646:(e,n,t)=>{t.d(n,{x:()=>p});var r=t(95592),o=t(70362),a=t(20130),i=Object.defineProperty,c=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(e,n,t)=>n in e?i(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const p=()=>{const{data:e,error:n}=(0,r.Ay)("/tracks/metrics",o.dC,(t=((e,n)=>{for(var t in n||(n={}))d.call(n,t)&&m(e,t,n[t]);if(l)for(var t of l(n))u.call(n,t)&&m(e,t,n[t]);return e})({}
1,a.$2),c(t,s({revalidateIfStale:!0}))));var t;return{trackMetrics:null!=e?e:{createdTracks:0,favoriteTracks:0},isLoading:!n&&!e,isError:Boolean(n)}}},57783:(e,n,t)=>{t.d(n,{S:()=>o});var r=t(96540);const o=e=>(0,r.useMemo)((()=>e),e)},86381:(e,n,t)=>{t.d(n,{X:()=>r});const r=[{code:"US",code3:"USA",name:"United States of America (USA)",number:"840"},{code:"GB",code3:"GBR",name:"United Kingdom of Great Britain and Northern Ireland (UK)",number:"826"},{code:"AF",code3:"AFG",name:"Afghanistan",number:"004"},{code:"AL",code3:"ALB",name:"Albania",number:"008"},{code:"DZ",code3:"DZA",name:"Algeria",number:"012"},{code:"AS",code3:"ASM",name:"American Samoa",number:"016"},{code:"AD",code3:"AND",name:"Andorra",number:"020"},{code:"AO",code3:"AGO",name:"Angola",number:"024"},{code:"AI",code3:"AIA",name:"Anguilla",number:"660"},{code:"AQ",code3:"ATA",name:"Antarctica",number:"010"},{code:"AG",code3:"ATG",name:"Antigua and Barbuda",number:"028"},{code:"AR",code3:"ARG",name:"Argentina",number:"032"},{code:"AM",code3:"ARM",name:"Armenia",number:"051"},{code:"AW",code3:"ABW",name:"Aruba",number:"533"},{code:"AU",code3:"AUS",name:"Australia",number:"036"},{code:"AT",code3:"AUT",name:"Austria",number:"040"},{code:"AZ",code3:"AZE",name:"Azerbaijan",number:"031"},{code:"BS",code3:"BHS",name:"Bahamas",number:"044"},{code:"BH",code3:"BHR",name:"Bahrain",number:"048"},{code:"BD",code3:"BGD",name:"Bangladesh",number:"050"},{code:"BB",code3:"BRB",name:"Barbados",number:"052"},{code:"BY",code3:"BLR",name:"Belarus",number:"112"},{code:"BE",code3:"BEL",name:"Belgium",number:"056"},{code:"BZ",code3:"BLZ",name:"Belize",number:"084"},{code:"BJ",code3:"BEN",name:"Benin",number:"204"},{code:"BM",code3:"BMU",name:"Bermuda",number:"060"},{code:"BT",code3:"BTN",name:"Bhutan",number:"064"},{code:"BO",code3:"BOL",name:"Bolivia",number:"068"},{code:"BQ",code3:"BES",name:"Bonaire, Sint Eustatius and Saba",number:"535"},{code:"BA",code3:"BIH",name:"Bosnia and Herzegovina",number:"070"},{code:"BW",code3:"BWA",name:"Botswana",number:"072"},{code:"BV",code3:"BVT",name:"Bouvet Island",number:"074"},{code:"BR",code3:"BRA",name:"Brazil",number:"076"},{code:"IO",code3:"IOT",name:"British Indian Ocean Territory",number:"086"},{code:"BN",code3:"BRN",name:"Brunei Darussalam",number:"096"},{code:"BG",code3:"BGR",name:"Bulgaria",number:"100"},{code:"BF",code3:"BFA",name:"Burkina Faso",number:"854"},{code:"BI",code3:"BDI",name:"Burundi",number:"108"},{code:"CV",code3:"CPV",name:"Cabo Verde",number:"132"},{code:"KH",code3:"KHM",name:"Cambodia",number:"116"},{code:"CM",code3:"CMR",name:"Cameroon",number:"120"},{code:"CA",code3:"CAN",name:"Canada",number:"124"},{code:"KY",code3:"CYM",name:"Cayman Islands",number:"136"},{code:"CF",code3:"CAF",name:"Central African Republic",number:"140"},{code:"TD",code3:"TCD",name:"Chad",number:"148"},{code:"CL",code3:"CHL",name:"Chile",number:"152"},{code:"CN",code3:"CHN",name:"China",number:"156"},{code:"CX",code3:"CXR",name:"Christmas Island",number:"162"},{code:"CC",code3:"CCK",name:"Cocos (Keeling) Islands",number:"166"},{code:"CO",code3:"COL",name:"Colombia",number:"170"},{code:"KM",code3:"COM",name:"Comoros",number:"174"},{code:"CD",code3:"COD",name:"Congo (the Democratic Republic of the)",number:"180"},{code:"CG",code3:"COG",name:"Congo",number:"178"},{code:"CK",code3:"COK",name:"Cook Islands",number:"184"},{code:"CR",code3:"CRI",name:"Costa Rica",number:"188"},{code:"HR",code3:"HRV",name:"Croatia",number:"191"},{code:"CU",code3:"CUB",name:"Cuba",number:"192"},{code:"CW",code3:"CUW",name:"Curaçao",number:"531"},{code:"CY",code3:"CYP",name:"Cyprus",number:"196"},{code:"CZ",code3:"CZE",name:"Czechia",number:"203"},{code:"CI",code3:"CIV",name:"Côte d'Ivoire",number:"384"},{code:"DK",code3:"DNK",name:"Denmark",number:"208"},{code:"DJ",code3:"DJI",name:"Djibouti",number:"262"},{code:"DM",code3:"DMA",name:"Dominica",number:"212"},{code:"DO",code3:"DOM",name:"Dominican Republic",number:"214"},{code:"EC",code3:"ECU",name:"Ecuador",number:"218"},{code:"EG",code3:"EGY",name:"Egypt",number:"818"},{code:"SV",code3:"SLV",name:"El Salvador",number:"222"},{code:"GQ",code3:"GNQ",name:"Equatorial Guinea",number:"226"},{code:"ER",code3:"ERI",name:"Eritrea",number:"232"},{code:"EE",code3:"EST",name:"Estonia",number:"233"},{code:"SZ",code3:"SWZ",name:"Eswatini",number:"748"},{code:"ET",code3:"ETH",name:"Ethiopia",number:"231"},{code:"FK",code3:"FLK",name:"Falkland Islands [Malvinas]",number:"238"},{code:"FO",code3:"FRO",name:"Faroe Islands",number:"234"},{code:"FJ",code3:"FJI",name:"Fiji",number:"242"},{code:"FI",code3:"FIN",name:"Finland",number:"246"},{code:"FR",code3:"FRA",name:"France",number:"250"},{code:"GF",code3:"GUF",name:"French Guiana",number:"254"},{code:"PF",code3:"PYF",name:"French Polynesia",number:"258"},{code:"TF",code3:"ATF",name:"French Southern Territories",number:"260"},{code:"GA",code3:"GAB",name:"Gabon",number:"266"},{code:"GM",code3:"GMB",name:"Gambia",number:"270"},{code:"GE",code3:"GEO",name:"Georgia",number:"268"},{code:"DE",code3:"DEU",name:"Germany",number:"276"},{code:"GH",code3:"GHA",name:"Ghana",number:"288"},{code:"GI",code3:"GIB",name:"Gibraltar",number:"292"},{code:"GR",code3:"GRC",name:"Greece",number:"300"},{code:"GL",code3:"GRL",name:"Greenland",number:"304"},{code:"GD",code3:"GRD",name:"Grenada",number:"308"},{code:"GP",code3:"GLP",name:"Guadeloupe",number:"312"},{code:"GU",code3:"GUM",name:"Guam",number:"316"},{code:"GT",code3:"GTM",name:"Guatemala",number:"320"},{code:"GG",code3:"GGY",name:"Guernsey",number:"831"},{code:"GN",code3:"GIN",name:"Guinea",number:"324"},{code:"GW",code3:"GNB",name:"Guinea-Bissau",number:"624"},{code:"GY",code3:"GUY",name:"Guyana",number:"328"},{code:"HT",code3:"HTI",name:"Haiti",number:"332"},{code:"HM",code3:"HMD",name:"Heard Island and McDonald Islands",number:"334"},{code:"VA",code3:"VAT",name:"Holy See",number:"336"},{code:"HN",code3:"HND",name:"Honduras",number:"340"},{code:"HK",code3:"HKG",name:"Hong Kong",number:"344"},{code:"HU",code3:"HUN",name:"Hungary",number:"348"},{code:"IS",code3:"ISL",name:"Iceland",number:"352"},{code:"IN",code3:"IND",name:"India",number:"356"},{code:"ID",code3:"IDN",name:"Indonesia",number:"360"},{code:"IR",code3:"IRN",name:"Iran",number:"364"},{code:"IQ",code3:"IRQ",name:"Iraq",number:"368"},{code:"IE",code3:"IRL",name:"Ireland",number:"372"},{code:"IM",code3:"IMN",name:"Isle of Man",number:"833"},{code:"IL",code3:"ISR",name:"Israel",number:"376"},{code:"IT",code3:"ITA",name:"Italy",number:"380"},{code:"JM",code3:"JAM",name:"Jamaica",number:"388"},{code:"JP",code3:"JPN",name:"Japan",number:"392"},{code:"JE",code3:"JEY",name:"Jersey",number:"832"},{code:"JO",code3:"JOR",name:"Jordan",number:"400"},{code:"KZ",code3:"KAZ",name:"Kazakhstan",number:"398"},{code:"KE",code3:"KEN",name:"Kenya",number:"404"},{code:"KI",code3:"KIR",name:"Kiribati",number:"296"},{code:"KP",code3:"PRK",name:"Korea (the Democratic People's Republic of)",number:"408"},{code:"KR",code3:"KOR",name:"Korea (the Republic of)",number:"410"},{code:"KW",code3:"KWT",name:"Kuwait",number:"414"},{code:"KG",code3:"KGZ",name:"Kyrgyzstan",number:"417"},{code:"LA",code3:"LAO",name:"Lao People's Democratic Republic",number:"418"},{code:"LV",code3:"LVA",name:"Latvia",number:"428"}
1,{code:"LB",code3:"LBN",name:"Lebanon",number:"422"},{code:"LS",code3:"LSO",name:"Lesotho",number:"426"},{code:"LR",code3:"LBR",name:"Liberia",number:"430"},{code:"LY",code3:"LBY",name:"Libya",number:"434"},{code:"LI",code3:"LIE",name:"Liechtenstein",number:"438"},{code:"LT",code3:"LTU",name:"Lithuania",number:"440"},{code:"LU",code3:"LUX",name:"Luxembourg",number:"442"},{code:"MO",code3:"MAC",name:"Macao",number:"446"},{code:"MG",code3:"MDG",name:"Madagascar",number:"450"},{code:"MW",code3:"MWI",name:"Malawi",number:"454"},{code:"MY",code3:"MYS",name:"Malaysia",number:"458"},{code:"MV",code3:"MDV",name:"Maldives",number:"462"},{code:"ML",code3:"MLI",name:"Mali",number:"466"},{code:"MT",code3:"MLT",name:"Malta",number:"470"},{code:"MH",code3:"MHL",name:"Marshall Islands",number:"584"},{code:"MQ",code3:"MTQ",name:"Martinique",number:"474"},{code:"MR",code3:"MRT",name:"Mauritania",number:"478"},{code:"MU",code3:"MUS",name:"Mauritius",number:"480"},{code:"YT",code3:"MYT",name:"Mayotte",number:"175"},{code:"MX",code3:"MEX",name:"Mexico",number:"484"},{code:"FM",code3:"FSM",name:"Micronesia",number:"583"},{code:"MD",code3:"MDA",name:"Moldova",number:"498"},{code:"MC",code3:"MCO",name:"Monaco",number:"492"},{code:"MN",code3:"MNG",name:"Mongolia",number:"496"},{code:"ME",code3:"MNE",name:"Montenegro",number:"499"},{code:"MS",code3:"MSR",name:"Montserrat",number:"500"},{code:"MA",code3:"MAR",name:"Morocco",number:"504"},{code:"MZ",code3:"MOZ",name:"Mozambique",number:"508"},{code:"MM",code3:"MMR",name:"Myanmar",number:"104"},{code:"NA",code3:"NAM",name:"Namibia",number:"516"},{code:"NR",code3:"NRU",name:"Nauru",number:"520"},{code:"NP",code3:"NPL",name:"Nepal",number:"524"},{code:"NL",code3:"NLD",name:"Netherlands",number:"528"},{code:"NC",code3:"NCL",name:"New Caledonia",number:"540"},{code:"NZ",code3:"NZL",name:"New Zealand",number:"554"},{code:"NI",code3:"NIC",name:"Nicaragua",number:"558"},{code:"NE",code3:"NER",name:"Niger",number:"562"},{code:"NG",code3:"NGA",name:"Nigeria",number:"566"},{code:"NU",code3:"NIU",name:"Niue",number:"570"},{code:"NF",code3:"NFK",name:"Norfolk Island",number:"574"},{code:"MP",code3:"MNP",name:"Northern Mariana Islands",number:"580"}
1,{code:"NO",code3:"NOR",name:"Norway",number:"578"},{code:"OM",code3:"OMN",name:"Oman",number:"512"},{code:"PK",code3:"PAK",name:"Pakistan",number:"586"},{code:"PW",code3:"PLW",name:"Palau",number:"585"},{code:"PS",code3:"PSE",name:"Palestine, State of",number:"275"},{code:"PA",code3:"PAN",name:"Panama",number:"591"},{code:"PG",code3:"PNG",name:"Papua New Guinea",number:"598"},{code:"PY",code3:"PRY",name:"Paraguay",number:"600"},{code:"PE",code3:"PER",name:"Peru",number:"604"},{code:"PH",code3:"PHL",name:"Philippines",number:"608"},{code:"PN",code3:"PCN",name:"Pitcairn",number:"612"},{code:"PL",code3:"POL",name:"Poland",number:"616"},{code:"PT",code3:"PRT",name:"Portugal",number:"620"},{code:"PR",code3:"PRI",name:"Puerto Rico",number:"630"},{code:"QA",code3:"QAT",name:"Qatar",number:"634"},{code:"MK",code3:"MKD",name:"Republic of North Macedonia",number:"807"},{code:"RO",code3:"ROU",name:"Romania",number:"642"},{code:"RU",code3:"RUS",name:"Russian Federation",number:"643"},{code:"RW",code3:"RWA",name:"Rwanda",number:"646"},{code:"RE",code3:"REU",name:"Réunion",number:"638"},{code:"BL",code3:"BLM",name:"Saint Barthélemy",number:"652"},{code:"SH",code3:"SHN",name:"Saint Helena, Ascension and Tristan da Cunha",number:"654"},{code:"KN",code3:"KNA",name:"Saint Kitts and Nevis",number:"659"},{code:"LC",code3:"LCA",name:"Saint Lucia",number:"662"},{code:"MF",code3:"MAF",name:"Saint Martin (French part)",number:"663"},{code:"PM",code3:"SPM",name:"Saint Pierre and Miquelon",number:"666"},{code:"VC",code3:"VCT",name:"Saint Vincent and the Grenadines",number:"670"},{code:"WS",code3:"WSM",name:"Samoa",number:"882"},{code:"SM",code3:"SMR",name:"San Marino",number:"674"},{code:"ST",code3:"STP",name:"Sao Tome and Principe",number:"678"},{code:"SA",code3:"SAU",name:"Saudi Arabia",number:"682"},{code:"SN",code3:"SEN",name:"Senegal",number:"686"},{code:"RS",code3:"SRB",name:"Serbia",number:"688"},{code:"SC",code3:"SYC",name:"Seychelles",number:"690"},{code:"SL",code3:"SLE",name:"Sierra Leone",number:"694"},{code:"SG",code3:"SGP",name:"Singapore",number:"702"},{code:"SX",code3:"SXM",name:"Sint Maarten (Dutch part)",number:"534"},{code:"SK",code3:"SVK",name:"Slovakia",number:"703"},{code:"SI",code3:"SVN",name:"Slovenia",number:"705"},{code:"SB",code3:"SLB",name:"Solomon Islands",number:"090"},{code:"SO",code3:"SOM",name:"Somalia",number:"706"},{code:"ZA",code3:"ZAF",name:"South Africa",number:"710"},{code:"GS",code3:"SGS",name:"South Georgia and the South Sandwich Islands",number:"239"},{code:"SS",code3:"SSD",name:"South Sudan",number:"728"},{code:"ES",code3:"ESP",name:"Spain",number:"724"},{code:"LK",code3:"LKA",name:"Sri Lanka",number:"144"},{code:"SD",code3:"SDN",name:"Sudan",number:"729"},{code:"SR",code3:"SUR",name:"Suriname",number:"740"},{code:"SJ",code3:"SJM",name:"Svalbard and Jan Mayen",number:"744"},{code:"SE",code3:"SWE",name:"Sweden",number:"752"},{code:"CH",code3:"CHE",name:"Switzerland",number:"756"},{code:"SY",code3:"SYR",name:"Syrian Arab Republic",number:"760"},{code:"TW",code3:"TWN",name:"Taiwan",number:"158"},{code:"TJ",code3:"TJK",name:"Tajikistan",number:"762"},{code:"TZ",code3:"TZA",name:"Tanzania, United Republic of",number:"834"},{code:"TH",code3:"THA",name:"Thailand",number:"764"},{code:"TL",code3:"TLS",name:"Timor-Leste",number:"626"},{code:"TG",code3:"TGO",name:"Togo",number:"768"},{code:"TK",code3:"TKL",name:"Tokelau",number:"772"},{code:"TO",code3:"TON",name:"Tonga",number:"776"},{code:"TT",code3:"TTO",name:"Trinidad and Tobago",number:"780"},{code:"TN",code3:"TUN",name:"Tunisia",number:"788"},{code:"TR",code3:"TUR",name:"Turkey",number:"792"},{code:"TM",code3:"TKM",name:"Turkmenistan",number:"795"},{code:"TC",code3:"TCA",name:"Turks and Caicos Islands",number:"796"},{code:"TV",code3:"TUV",name:"Tuvalu",number:"798"},{code:"UG",code3:"UGA",name:"Uganda",number:"800"},{code:"UA",code3:"UKR",name:"Ukraine",number:"804"},{code:"AE",code3:"ARE",name:"United Arab Emirates",number:"784"},{code:"GB",code3:"GBR",name:"United Kingdom of Great Britain and Northern Ireland",number:"826"},{code:"UM",code3:"UMI",name:"United States Minor Outlying Islands",number:"581"},{code:"US",code3:"USA",name:"United States of America",number:"840"},{code:"UY",code3:"URY",name:"Uruguay",number:"858"},{code:"UZ",code3:"UZB",name:"Uzbekistan",number:"860"}
1,{code:"VU",code3:"VUT",name:"Vanuatu",number:"548"},{code:"VE",code3:"VEN",name:"Venezuela",number:"862"},{code:"VN",code3:"VNM",name:"Viet Nam",number:"704"},{code:"VG",code3:"VGB",name:"Virgin Islands (British)",number:"092"},{code:"VI",code3:"VIR",name:"Virgin Islands (U.S.)",number:"850"},{code:"WF",code3:"WLF",name:"Wallis and Futuna",number:"876"},{code:"EH",code3:"ESH",name:"Western Sahara",number:"732"},{code:"YE",code3:"YEM",name:"Yemen",number:"887"},{code:"ZM",code3:"ZMB",name:"Zambia",number:"894"},{code:"ZW",code3:"ZWE",name:"Zimbabwe",number:"716"},{code:"AX",code3:"ALA",name:"Åland Islands",number:"248"}]},94243:(e,n,t)=>{t.d(n,{BU:()=>o.B,Dc:()=>r.D,vi:()=>a.v});var r=t(22983),o=t(92259),a=t(22781)},14379:(e,n,t)=>{t.d(n,{P:()=>f});var r=t(96540),o=t(32316),a=t(53646),i=t(90083),c=t(88820),s=t(13448),l=t(26982),d=t(50794),u=t(63266),m=Object.defineProperty,p=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(e,n,t)=>n in e?m(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,g=(e,n)=>{for(var t in n||(n={}))b.call(n,t)&&h(e,t,n[t]);if(p)for(var t of p(n))y.call(n,t)&&h(e,t,n[t]);return e};const f=()=>{var e;const n=(0,o.d4)(d.KY),{createdOn:t}=(0,o.d4)(l.Qg),m=null==(e=null==n?void 0:n.currentPlan)?void 0:e.title,{trackMetrics:{createdTracks:p,downloadedTracks:b}}=(0,a.x)();return{trackPurchaseConfirmationOpen:(0,r.useCallback)(((e,n,r)=>{n.forEach((n=>{(0,u.sx)(e,g({existingSubscription:m,createdTracks:p,downloadedTracks:b,newSubscription:(0,s.O)(n.type,n.displayTitle),accountBirthDate:(0,c.iC)(t)},r))}))}),[t,p,m,b]),getPurchaseInstrumentationData:(e,n,t)=>{const r=g({existingSubscription:m,createdTracks:p,downloadedTracks:b},t);switch(e.category){case i.ch.subscription:return{mixpanelEventName:u.SZ.subscriptionPurchase,data:g({newSubscription:(0,s.O)(e.type,e.displayTitle)},r)};case i.ch.bundle:{const[t=""]=e.displayTitle.split(" ");return{mixpanelEventName:u.SZ.stemPackPurchase,data:g({trackPackQuantity:t,trackPackPrice:n||e.price},r)}}case i.ch.collaboration:return{mixpanelEventName:u.SZ.premiumPlusTemplatePurchase,data:g({templateName:e.displayTitle},r)}}}}}},10276:(e,n,t)=>{t.d(n,{j:()=>v});var r=t(74848),o=t(96540),a=t(47337),i=t(64043),c=t(10112),s=t(74474),l=t(34642),d=t(56561),u=Object.defineProperty,m=Object.defineProperties,p=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,n,t)=>n in e?u(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,f=(e,n)=>{for(var t in n||(n={}))y.call(n,t)&&g(e,t,n[t]);if(b)for(var t of b(n))h.call(n,t)&&g(e,t,n[t]);return e},x=(e,n)=>{var t={};for(var r in e)y.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&b)for(var r of b(e))n.indexOf(r)<0&&h.call(e,r)&&(t[r]=e[r]);return t};const v=(0,o.memo)((e=>{const n=e,{label:t,renderInputProps:o={},getTagProps:u,options:b,inputToOption:y,delimiters:h}=n,g=x(n,["label","renderInputProps","getTagProps","options","inputToOption","delimiters"]),v=(0,l.I)(),j=(0,i.k)(e),{onKeyDown:C}=j,P=x(j,["onKeyDown"]),O=(0,c.q)({classes:{root:v.root}},(0,d.Q)(e,v),P,g);return(0,r.jsx)(a.A,f({fullWidth:!0,options:b,renderInput:e=>{const n=f(f({},e),o),a=(0,c.q)(n.InputProps,{classes:{root:v.inputRoot,input:v.input}});return(0,r.jsx)(s.A,(i=f({label:t,variant:"outlined"},n),m(i,p({InputProps:a,onKeyDown:C}))));var i}},O))}))},62193:(e,n,t)=>{t.d(n,{F:()=>y,g:()=>b});var r=t(74848),o=t(75765),a=Object.defineProperty,i=Object.defineProperties,c=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=(e,n,t)=>n in e?a(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,m=(e,n)=>{for(var t in n||(n={}))l.call(n,t)&&u(e,t,n[t]);if(s)for(var t of s(n))d.call(n,t)&&u(e,t,n[t]);return e},p=(e,n)=>i(e,c(n));const b=e=>(0,r.jsx)("svg",p(m({viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,r.jsx)("path",{d:"M 1.34, 8 a 6.66,6.66 0 1,0 13.32,0 a 6.66,6.66 0 1,0 -13.32,0 M7.25 10.67 V 8 a 0.75 0.75, 1 1, 1 1.5, 0 v 2.67 a 0.75 0.75, 1 1, 1 -1.5, 0 M7.25 5.35 a 0.75 0.75, 1 1, 1 1.5, 0 a 0.75 0.75, 1 1, 1 -1.5, 0"})})),y=e=>(0,r.jsx)(o.A,p(m({viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,r.jsx)("path",{d:"M 1.34, 8 a 6.66,6.66 0 1,0 13.32,0 a 6.66,6.66 0 1,0 -13.32,0 M7.25 10.67 V 8 a 0.75 0.75, 1 1, 1 1.5, 0 v 2.67 a 0.75 0.75, 1 1, 1 -1.5, 0 M7.25 5.35 a 0.75 0.75, 1 1, 1 1.5, 0 a 0.75 0.75, 1 1, 1 -1.5, 0"})}))},51868:(e,n,t)=>{t.d(n,{H:()=>u});var r=t(74848),o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,n,t)=>n in e?o(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;const u=e=>{return(0,r.jsx)("svg",(n=((e,n)=>{for(var t in n||(n={}))s.call(n,t)&&d(e,t,n[t]);if(c)for(var t of c(n))l.call(n,t)&&d(e,t,n[t]);return e})({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"
1currentColor"},e),a(n,i({children:(0,r.jsx)("path",{d:"M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H12H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12H6C5.58579 12.75 5.25 12.4142 5.25 12Z"})}))));var n}},63022:(e,n,t)=>{t.d(n,{E:()=>b});var r=t(74848),o=t(96540),a=t(63710),i=t(32316),c=t(8239),s=t(14073),l=t(21781),d=t(94128),u=t(16843),m=t(26982),p=t(64644);const b=(0,o.memo)((({isVerifiedModalOpen:e,setVerifiedModalOpen:n,firstParagraphText:t})=>{const b=(0,d.I)(),y=(0,i.wA)(),h=(0,i.d4)(m.AS),{t:g}=(0,a.Bd)(),f=(0,i.d4)(m.rm);return(0,o.useEffect)((()=>{e&&f&&(n(!1),(0,l.tP)(g("emailVerification.verificationPage.successTitle")))}),[e,n,f,g]),(0,r.jsx)(p.l,{isOpen:e,setModalOpen:n,titleText:"emailVerification.verificationModal.title",submitBtnText:g("emailVerification.verificationModal.resend"),handleSubmitBtnClick:()=>{y(u.se.request(h))},children:(0,r.jsxs)(c.Ay,{item:!0,container:!0,flexDirection:"column",className:b.container,children:[(0,r.jsx)(s.A,{variant:"body2",className:b.firstParagraphContainer,children:g(t)}),(0,r.jsx)(s.A,{variant:"body2",className:b.secondParagraphContainer,children:g("emailVerification.verificationModal.secondParagraph")})]})})}))},48707:(e,n,t)=>{t.d(n,{CT:()=>l,FY:()=>c,Hk:()=>d,LR:()=>u,P_:()=>i,lJ:()=>s});var r=t(85660),o=t(59742),a=t(74789);const i=e=>{if(!e)return"";const n=e.currency;return n?(0,o.CU)(n,r.H):((0,a.H4)("Copyright pricing data is missing",{remoteLog:!0},{category:"COPYRIGHT"},{copyright:e}),"")},c=e=>{if(!e)return{currency:"",integer:"0",decimal:".",fraction:"00"};const n=Number(r.H),t={style:"currency",currency:e.currency},o=new Intl.NumberFormat("en-US",t),[{value:a},{value:i},{value:c},{value:s}]=o.formatToParts(n);return{currency:a,integer:i,decimal:c,fraction:s}},s=e=>{const n=Number(e).toFixed(2);return Number(n.replace(".",""))},l=e=>{const n=e.toFixed(0).padStart(3,"0"),t=n.slice(-2);return`${n.slice(0,-2)}.${t}`},d=e=>{const n=e.reduce(((e,n)=>s(n)+e),0);return l(n)},u=e=>{const n=e.map((e=>e.price));return d(n)}},53779:(e,n,t)=>{t.d(n,{h:()=>o});var r=t(69421);const o=r.Ik().shape({name:r.Yj().required("errors.form.required").min(2).max(26),address_country:r.Ik().shape({code:r.Yj(),name:r.Yj()}).nullable().required("errors.form.required"),fullName:r.Yj().required("errors.form.required").min(2).max(26),address_line1:r.Yj().required("errors.form.required").min(2).max(50),address_city:r.Yj().required("errors.form.required").min(2).max(50),address_state:r.Yj().nullable().when("address_country.code",{is:"US",then:r.Yj().nullable().required("errors.form.required")}),address_zip:r.Yj().required("errors.form.required").when("address_country.code",{is:"US",then:r.Yj().required("errors.form.required").max(5)}),address_line2:r.Yj().optional().max(50).matches(/.{2,}/,{excludeEmptyString:!0,message:"errors.form.min2"})})}}]);
2//# sourceMappingURL=816.8a666d5e05d0cfa0b056.bundle.js.map

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.