1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cbf62217-8d17-47ce-992c-557d38ca118e",e._sentryDebugIdIdentifier="sentry-dbid-cbf62217-8d17-47ce-992c-557d38ca118e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6921],{16105:(e,n,t)=>{"use strict";t.d(n,{a$:()=>G,gR:()=>W});var i=t(26514),r=t(46225),a=t(2069),l=t(6158),s=t(19487),o=t(62030),c=t(82046),d=t(55402),p=t(76715),u=t(26097),x=t(86273),h=t(7368);function g(){let{data:e}=(0,x.$Z)(),n=e?.hasAllAppsPackPlanOfferingSubscription&&e.displayMarketAllAppsPackAppPlans;return e?.app?n?(0,i.jsxs)(f,{children:["\xa0",(0,i.jsx)("b",{children:"All Apps Pack"})]}):(0,i.jsxs)(f,{children:["\xa0",(0,i.jsx)("b",{children:e.app.name})]}):null}let f=u.default.span.withConfig({componentId:"sc-73ddbff9-0"})(["> b{font-weight:700;","{font-weight:600;}}"],o.ND);function m(){let{claim:e,isLoading:n,data:t}=(0,x.$Z)();if(!t)return null;let r=j(t,e),a=!t?.hasPaidSubscription&&!e;return(0,i.jsx)(c.ss,{_padding:[0,32],children:!n&&(0,i.jsxs)(c.nv,{_textCenter:!0,children:[(0,i.jsx)(b,{mb:8,_bold:a,children:r}),(0,i.jsx)(y,{color:"gray70",children:"14-day money back guarantee. Risk-free, you can cancel anytime."})]})})}let j=(e,n)=>n?({[h.J1.REMOVE_BRANDING]:(0,i.jsxs)(i.Fragment,{children:["Upgrade",(0,i.jsx)(g,{})," to remove Elfsight branding"]}),[h.J1.UPGRADE_PLAN]:(0,i.jsxs)(i.Fragment,{children:["Upgrade your",(0,i.jsx)(g,{})," plan"]})})[n]:e?.isFreeSubscription&&!e?.isFreeSubscriptionConfirmed?(0,i.jsx)(i.Fragment,{children:"Pick a plan to install the widget"}):e?.isFreeSubscriptionConfirmed?(0,i.jsx)(i.Fragment,{children:"Choose your plan"}):(0,i.jsxs)(i.Fragment,{children:["Upgrade your",(0,i.jsx)(g,{})," plan"]}),b=(0,u.default)(o.H1).withConfig({componentId:"sc-8e35c5f1-0"})(["padding:0 20px;font-size:28px;line-height:36px;font-weight:",";","{font-size:24px;line-height:30px;font-weight:600;}"],e=>{let{_bold:n}=e;return n?700:400},o.ND),y=(0,u.default)(o.H3).withConfig({componentId:"sc-8e35c5f1-1"})(["font-weight:400;"]);var w=t(32866),v=t(88933);function C(e){let{onCloseRequest:n}=e,t=(0,v._N)();return(0,i.jsx)(P,{children:t.isWixSession?(0,i.jsx)(A,{variation:"text",onClick:n,children:"Later"}):(0,i.jsx)(I,{large:!0,icon:w.A,onClick:n})})}let P=u.default.div.withConfig({componentId:"sc-ae1717ac-0"})(["position:relative;box-sizing:border-box;display:flex;height:32px;justify-content:flex-end;align-items:center;padding:0 12px;"]),A=(0,u.default)(o.$n).withConfig({componentId:"sc-ae1717ac-1"})(["position:absolute;top:12px;z-index:1;"]),I=(0,u.default)(o.K0).withConfig({componentId:"sc-ae1717ac-2"})(["position:absolute;top:12px;z-index:1;"]);var S=t(32901),k=t(83496),E=t(75834);function _(){let{data:e,isPackUpgradeDeal:n}=(0,x.$Z)(),{activeTab:t,setActiveTab:r,tabs:a}=(0,o.uc)(),l=(0,E.useMemo)(()=>a.filter(n=>{let{id:t}=n;return({[h.hs.SINGLE]:e?.displayMarketSingleAppPlans,[h.hs.PACKS]:e?.displayMarketAllAppsPackAppPlans})[t]}),[e?.displayMarketSingleAppPlans,e?.displayMarketAllAppsPackAppPlans]);return((0,E.useEffect)(()=>{if(0===l.length)return;let e=e=>l.find(n=>{let{id:t}=n;return t===e});t!==h.hs.SINGLE||e(h.hs.SINGLE)?t!==h.hs.PACKS||e(h.hs.PACKS)||r(h.hs.SINGLE):r(h.hs.PACKS)},[t,l.length]),1===l.length)?null:(0,i.jsx)(D,{children:(0,i.jsx)($,{children:(0,i.jsx)(T,{role:"navigation",children:l.map(e=>{let{id:a,title:l}=e;return(0,i.jsxs)(N,{_active:a===t,_highlight:a===h.hs.PACKS,onClick:()=>r(a),children:[l,a===h.hs.PACKS&&(0,i.jsx)(R,{_backgroundColor:"black",children:n?"\uD83D\uDD25 LIMITED DEAL":"Top deal"})]},a)})})})})}let D=u.default.div.withConfig({componentId:"sc-49cabc6a-0"})(["position:relative;&::after{position:absolute;z-index:1;right:0;bottom:0;left:0;border-bottom:1px solid #e7e7e7;content:'';}"]),$=u.default.div.withConfig({componentId:"sc-49cabc6a-1"})(["display:flex;justify-content:center;padding:0 20px;box-sizing:border-box;"]),T=u.default.nav.withConfig({componentId:"sc-49cabc6a-2"})(["max-width:600px;width:100%;display:flex;gap:8px;"]),N=u.default.div.withConfig({componentId:"sc-49cabc6a-3"})(["position:relative;z-index:2;font-size:20px;line-height:24px;font-weight:600;cursor:pointer;border:1px solid #e7e7e7;border-bottom:0;border-radius:12px 12px 0 0;","{padding:16px 20px;}","{padding:12px;}box-sizing:border-box;display:flex;flex:1 1 50%;align-items:center;justify-content:center;text-align:center;color:",";",";"],o.Vp,o.ND,e=>{let{theme:n,_highlight:t,_active:i}=e;return t&&!i?n.colors.accent:n.colors.black},e=>{let{_active:n,theme:{colors:t}}=e;return n&&(0,u.css)(["background:",";color:",";"],t.background,t.black)}),R=u.default.div.withConfig({componentId:"sc-49cabc6a-4"})(["position:absolute;overflow:hidden;top:-4px;right:-5px;padding:2px 6px;border-radius:32px;",";color:",";background:",";text-transform:uppercase;"],e=>{let{theme:n}=e;return n.font.captionSmall},e=>{let{theme:n}=e;return n.colors.white},e=>{let{theme:n,_backgroundColor:t="brand"}=e;return n.colors[t]});var O=t(45357),L=t(32748);function U(e){let{data:n}=(0,x.$Z)(),t=(0,O.Ot)({marketAppPricingTable:n?.pricingTables?.marketSingleAppPricingTable,appsCount:n?.appsCount,usedMarketAppPlan:n?.usedMarketAppPlan,app:n?.app});return(0,i.jsx)(L.lL,{plans:t,appName:n?.app?.name,...e})}var z=t(27154);function F(){let{data:e,isReady:n}=(0,x.$Z)();
1return(0,i.jsx)(c.ss,{_withBackground:!0,_minHeight:470,_padding:[32,40],_paddingMobile:[24,40],children:n?(0,i.jsxs)(c.nv,{_width:1200,children:[e?.displayMarketSingleAppPlans&&(0,i.jsx)(o.Kp,{tabID:h.hs.SINGLE,children:(0,i.jsx)(M,{children:(0,i.jsx)(U,{})})}),e?.displayMarketAllAppsPackAppPlans&&(0,i.jsx)(o.Kp,{tabID:h.hs.PACKS,children:(0,i.jsx)(M,{children:(0,i.jsx)(z.c,{})})})]}):(0,i.jsx)(o.aH,{})})}let M=u.default.div.withConfig({componentId:"sc-f1310e24-0"})(["display:flex;flex-direction:column;flex-grow:1;"]);function H(){let{data:e}=(0,x.$Z)(),[n,t]=(0,o.WJ)(0),r=[{id:h.hs.SINGLE,title:e?.app?.name??"Single App"},{id:h.hs.PACKS,title:`${e?.appsCount??"All"} Apps Pack`}];return(0,i.jsxs)(o.O_,{defaultTab:e?.pricingTables?.marketSingleAppPricingTable?h.hs.SINGLE:h.hs.PACKS,queryParam:n,onSetActiveTab:t,tabs:r,children:[(0,i.jsx)(_,{}),(0,i.jsx)(F,{})]})}var B=t(62385);function K(){let{data:e}=(0,x.$Z)(),[n]=(0,o.WJ)(0),t=e?.app?.alias===s.Gq&&!!e?.pricingTables?.marketSingleAppPricingTable&&!!e?.displayMarketSingleAppPlans&&n!==h.hs.PACKS;return(0,i.jsx)(p.Y,{isSingleAIChatbot:t})}let G=()=>{let{back:e}=(0,k.W6)(),{query:n,push:t}=(0,r.useRouter)(),{isOpen:s}=(0,S.Pc)(),o=n[h.Pg]?()=>t(`${n[h.Pg]}`):()=>e("/");return(0,i.jsx)(c.Ad,{children:(0,i.jsx)(l.A,{enabled:s,children:(0,i.jsxs)(x.ET,{children:[(0,i.jsx)(B.p,{}),(0,i.jsx)(C,{onCloseRequest:o}),(0,i.jsx)(m,{}),(0,i.jsx)(H,{}),(0,i.jsx)(c.ss,{_padding:[60,40],children:(0,i.jsxs)(c.nv,{_width:1e3,children:[(0,i.jsx)(d.$,{}),(0,i.jsx)(a.L,{widgetId:"ec8f8062-2d58-4e32-92b8-07ef973dc830",lazy:!0})]})}),(0,i.jsx)(K,{})]})})})};var V=t(16900),J=t.n(V),Y=t(19688),Q=t.n(Y);let Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.toString()?`?${e}`:""},W=function(){let{tab:e="single",app:n,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=new URLSearchParams(J()(t,Q()));return`/apps/${n}/pricing/${e}${Z(i)}`}},18448:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>ny});var i,r,a,l,s,o,c,d,p,u,x,h=t(26514),g=t(82046),f=t(62030),m=t(53048),j=t(31044),b=t(26097),y=t(76263),w=t(83496),v=t(2483),C=t(75834),P=t(97593),A=t(27238),I=t(53591);function S(e){let{subscription:n}=e,{pid:t,offering:i,pauseDurationMonths:r}=n,[a,l]=(0,C.useState)(!1),s=(0,A.Y)(),{mutate:o,isSuccess:c}=(0,I.vs)({b0SubscriptionPid:t},{onSuccess:()=>{v.oR.success(r?`The pause has been cancelled for ${i.properties.name} subscription.`:`Auto-renewal has been successfully activated for ${i.properties.name} subscription.`)},onError:()=>{l(!1)}});return(0,P.U3)(c,()=>{l(!1),s()}),(0,h.jsx)(f.$n,{small:!0,variation:"accentPrimary",isLoading:a,onClick:()=>{l(!0),o()},children:r?"Cancel Pause":"Reactivate"})}var k=t(53896);function E(e){let{subscription:n,isContextButton:t=!1}=e,[i,r]=(0,k.R)(n.pid);return t?(0,h.jsx)(f.VJ,{onClick:r,children:"Manage Payment Method"}):(0,h.jsx)(f.$n,{small:!0,variation:"accentPrimary",isLoading:i,onClick:r,children:"Update Payment Method"})}function _(e){let{subscription:n}=e,t=`/cancel-auto-renewal?pid=${n.pid}`;return(0,h.jsx)(f.VJ,{danger:!0,href:t,children:"Cancel Auto-Renewal"})}var D=t(16105);function $(e){let{subscription:n,isContextButton:t=!1}=e,{pid:i,app:r,upgradeAssociatedApp:a}=n,l=(0,D.gR)({app:a?.alias,tab:r?.alias?"single":"packs",flow:!0,redirectBack:!0,subscriptionPid:i});return t?(0,h.jsx)(f.VJ,{href:l,children:"Change Plan"}):(0,h.jsx)(f.$n,{small:!0,variation:"secondary",href:l,children:"Change Plan"})}function T(e){let{subscription:n}=e,{app:t,offering:i}=n,r=`/switch-app?app=${t?.alias}`;return i.type!==y.LI.SINGLE_APP_PLAN?null:(0,h.jsx)(f.VJ,{href:r,children:"Switch App"})}var N=t(2981),R=t(37900),O=t(2520);function L(e){let{children:n,badgeText:t,variation:i,href:r,hasAnnualUpgradeDeal:a=!1,hasLimitedPackUpgradeDeal:l=!1}=e;return(0,h.jsxs)(U,{children:[(0,h.jsx)(z,{$hasAnnualUpgradeDeal:a,$hasLimitedPackUpgradeDeal:l,children:t}),(0,h.jsx)(F,{small:!0,$hasAnnualUpgradeDeal:a,variation:i,href:r,children:n})]})}let U=b.default.div.withConfig({componentId:"sc-c80f214f-0"})(["position:relative;"]),z=b.default.span.withConfig({componentId:"sc-c80f214f-1"})(["z-index:1;position:absolute;top:-10px;right:0;padding:2px 6px;font-size:10px;line-height:12px;font-weight:800;text-transform:uppercase;background:",";color:",";border-radius:10px;"],e=>{let{theme:n,$hasAnnualUpgradeDeal:t,$hasLimitedPackUpgradeDeal:i}=e;return t?n.colors.annualUpgrade:i?n.colors.brand:"#1c91ff"},e=>{let{theme:n}=e;return n.colors.white}),F=(0,b.default)(f.$n).withConfig({componentId:"sc-c80f214f-2"})(["",""],e=>{let{theme:n,$hasAnnualUpgradeDeal:t}=e;return t&&(0,b.css)(["background-color:",";color:",";:hover{color:",";}"],n.colors.annualUpgradeTransparent,n.colors.annualUpgrade,n.colors.annualUpgrade)});function M(e){let{subscription:n,isContextButton:t=!1}=e,{pid:i,suitableAllAppsPackOfferingPid:r}=n,{suitableDeal:a}=(0,N.F)([R.lw]),l=(0,P.vh)({from:i,to:r??""});return t?(0,h.jsx)(f.VJ,{href:l,children:"Upgrade to Pack"}):(0,h.jsx)(L,{hasLimitedPackUpgradeDeal:!0,badgeText:`+${a?.data.numberOfGiftFreeMonths} ${(0,O.U)(a?.data.numberOfGiftFreeMonths)}`,variation:"brandSecondary",href:l,children:"Upgrade to Pack"})}var H=t(93796),B=t(32748);function K(e){let{subscription:n,isContextButton:t=!1}=e,{pid:i,offering:r,suitableYearlyOfferingPid:a,hasAnnualUpgradeDeal:l}=n;if(!a)return null;let s=(0,H.Wm)(r.properties.tier)?B.a9:B.Dp,o=(0,P.vh)({from:i,to:a});return t?(0,h.jsx)(f.VJ,{href:o,children:"Switch to Annual"}):(0,h.jsx)(L,{hasAnnualUpgradeDeal:l,badgeText:`Save ${s}%`,variation:"accentSecondary",href:o,children:"Switch to Annual"})}function G(e){let{subscription:n,isContextButton:t=!1}=e,{suitableDeal:i}=(0,N.F)([R.$g]),{suitableDeal:r}=(0,N.F)([R.lw]);if(i)return null;let{hasAnnualUpgradeDeal:a,suitableAllAppsPackOfferingPid:l}=n;return!a&&r?.customData.isLimitedDiscountPhaseNow&&l?(0,h.jsx)(M,{subscription:n,isContextButton:t}):(0,h.jsx)(K,{subscription:n,isContextButton:t})}var V=t(41889);function J(e){let{subscription:n}=e,{pid:t,suitableYearlyOfferingPid:i,offering:r}=n,{suitableDeal:a}=(0,N.F)([R.$g]),l=(0,V.HA)(a?.data.campaign);if(!l||!i)return null;let s=(0,P.vh)({from:t,to:i,marketDealAlias:R.$g});return(0,h.jsx)(L,{badgeText:`Save ${(0,V.Bn)(l,r.properties.tier)}%`,variation:"accentSecondary",href:s,children:"Switch to Annual"})}function Y(e){let{subscription:n,meta:t}=e,{pid:i,suitableAllAppsPackOfferingPid:r,offering:a}=n,{suitableDeal:l}=(0,N.F)([R.$g]),s=(0,V.HA)(l?.data.campaign);if(!s||t.hasAllAppsPackAppPlanOffering||n.pid!==t.highestTierAppPlanSubscriptionPid||!r)return null;let o=(0,P.vh)({from:i,to:r,marketDealAlias:R.$g}),c=`Save ${(0,V.Bn)(s,a.properties.tier)}%`;return(0,h.jsx)(L,{hasLimitedPackUpgradeDeal:!0,badgeText:c,variation:"primary",href:o,children:"Upgrade to Pack"})}function Q(e){let{subscription:n,meta:t}=e,{paddleBillingSubscriptionData:i,isSubscriptionScheduledCancel:r,paymentMethodSummary:a}=n;return r?(0,h.jsx)(Z,{children:(0,h.jsx)(S,{subscription:n})}):i?.status==="past_due"?(0,h.jsxs)(Z,{children:[(0,h.jsx)(E,{subscription:n}),(0,h.jsx)(f.tz,{primaryButton:!0,children:(0,h.jsx)(_,{subscription:n})})]}):a?.isExpiringSoon?(0,h.jsxs)(Z,{children:[(0,h.jsx)(E,{subscription:n}),(0,h.jsxs)(f.tz,{primaryButton:!0,children:[(0,h.jsx)($,{subscription:n,isContextButton:!0}),(0,h.jsx)(G,{subscription:n,isContextButton:!0}),(0,h.jsx)(T,{subscription:n}),(0,h.jsx)(f.ug,{}),(0,h.jsx)(_,{subscription:n})]})]}):(0,h.jsxs)(Z,{children:[(0,h.jsx)(G,{subscription:n}),(0,h.jsx)(J,{subscription:n}),(0,h.jsx)(Y,{subscription:n,meta:t}),(0,h.jsx)($,{subscription:n}),(0,h.jsxs)(f.tz,{primaryButton:!0,children:[(0,h.jsx)(E,{subscription:n,isContextButton:!0}),(0,h.jsx)(T,{subscription:n}),(0,h.jsx)(f.ug,{}),(0,h.jsx)(_,{subscription:n})]})]})}let Z=b.default.div.withConfig({componentId:"sc-28aded5f-0"})(["display:flex;flex-wrap:wrap;gap:8px;align-items:center;","{row-gap:12px;}"],f.ND);function W(e){let{title:n,icon:t,pastDueBadge:i=!1,children:r}=e;return(0,h.jsxs)(q,{children:[t,(0,h.jsxs)(ee,{children:[(0,h.jsxs)(en,{children:[n,i&&(0,h.jsxs)(h.Fragment,{children:["\xa0",(0,h.jsx)(X,{backgroundColor:"alert",backgroundColorOpacity:1,textColor:"white",yOffset:0,children:"Past Due"})]})]}),r&&(0,h.jsx)(et,{children:r})]})]})}let X=(0,b.default)(f.vu).withConfig({componentId:"sc-5adc64f4-0"})(["display:inline;padding:1.5px 6px;vertical-align:unset;"]),q=b.default.div.withConfig({componentId:"sc-5adc64f4-1"})(["display:flex;max-width:440px;gap:8px;","{max-width:none;}"],f.ND),ee=b.default.div.withConfig({componentId:"sc-5adc64f4-2"})(["display:flex;flex-direction:column;gap:4px;"]),en=b.default.div.withConfig({componentId:"sc-5adc64f4-3"})(["",";color:",";"],e=>{let{theme:n}=e;return n.font.title4},e=>{let{theme:n}=e;return n.colors.black}),et=b.default.div.withConfig({componentId:"sc-5adc64f4-4"})(["",";display:flex;flex-direction:column;gap:4px;color:",";"],e=>{let{theme:n}=e;return n.font.text},e=>{let{theme:n}=e;return n.colors.gray70});var ei=t(47647),er=t(19487);function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}function eo(){return(eo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}function ec(e){let{icon:n,label:t,tooltip:i}=e,r=(0,C.useRef)(null),[a,l]=(0,C.useState)(!1);(0,C.useEffect)(()=>{let e=r.current;if(!e)return;let n=()=>
1{l(e.scrollWidth>e.clientWidth)};n();let t=new ResizeObserver(n);return t.observe(e),()=>t.disconnect()},[t]);let s=(0,h.jsxs)(ed,{textColor:"gray70",backgroundColor:"black",backgroundColorOpacity:.05,yOffset:0,children:[n,(0,h.jsx)(ep,{ref:r,children:t})]});return i?(0,h.jsx)(f.m_,{content:i,preventOpen:!a,children:s}):s}let ed=(0,b.default)(f.vu).withConfig({componentId:"sc-9d665941-0"})(["display:inline;vertical-align:unset;text-transform:none;"]),ep=b.default.span.withConfig({componentId:"sc-9d665941-1"})(["display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;position:relative;top:-1px;"]);function eu(e){let{summary:n}=e,{type:t,card:i}=n;if("paypal"===t){let{email:e}=n;return(0,h.jsx)(ec,{icon:(0,h.jsx)(eg,{}),label:e||"PayPal",tooltip:e?`PayPal: ${e}`:void 0})}return"card"===t?(0,h.jsx)(ec,{icon:(0,h.jsx)(eh,{}),label:i?.last4?`â¢â¢â¢â¢ ${i.last4}`:"Card"}):"google_pay"===t?(0,h.jsx)(ec,{icon:(0,h.jsx)(ef,{}),label:"Google Pay"}):"apple_pay"===t?(0,h.jsx)(ec,{icon:(0,h.jsx)(em,{}),label:"Apple Pay"}):null}let ex=` 2 width: 12px; 3 height: 12px; 4 vertical-align: middle; 5 margin-right: 4px; 6 position: relative; 7 top: -1px; 8`,eh=(0,b.default)(e=>C.createElement("svg",ea({viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=C.createElement("rect",{x:1.5,y:3.5,width:11,height:7,rx:1.25,stroke:"currentColor",strokeWidth:1.25})),r||(r=C.createElement("path",{stroke:"currentColor",strokeWidth:1.25,d:"M1.5 6h11"})))).withConfig({componentId:"sc-47bd20ea-0"})(["",""],ex),eg=(0,b.default)(e=>C.createElement("svg",el({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=C.createElement("path",{fill:"currentColor",fillOpacity:.85,d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106z"})),l||(l=C.createElement("path",{fill:"currentColor",fillOpacity:.55,d:"M21.222 6.917a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.59 3.025-2.566 4.5-5.682 4.5H10.85c-.524 0-.968.382-1.05.9l-1.12 7.106-.32 2.034a.641.641 0 0 0 .633.74h4.606c.524 0 .968-.382 1.05-.9l.043-.224.836-5.301.054-.291c.082-.519.526-.9 1.05-.9h.661c4.298 0 7.664-1.748 8.647-6.797.292-1.867.146-3.42-.764-4.578z"})))).withConfig({componentId:"sc-47bd20ea-1"})(["",""],ex),ef=(0,b.default)(e=>C.createElement("svg",es({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=C.createElement("path",{fill:"currentColor",fillOpacity:.85,d:"M12.24 10.285v3.42h4.748a4.135 4.135 0 0 1-1.804 2.71v2.25h2.91c1.704-1.572 2.687-3.89 2.687-6.638 0-.64-.058-1.255-.166-1.847H12.24z"})),o||(o=C.createElement("path",{fill:"currentColor",fillOpacity:.6,d:"M12.24 21c2.43 0 4.467-.806 5.954-2.184l-2.91-2.25c-.806.54-1.837.86-3.044.86-2.343 0-4.328-1.583-5.036-3.711H4.21v2.32A8.997 8.997 0 0 0 12.24 21z"})),c||(c=C.createElement("path",{fill:"currentColor",fillOpacity:.45,d:"M7.204 13.715a5.41 5.41 0 0 1 0-3.43v-2.32H4.21a9 9 0 0 0 0 8.07l2.994-2.32z"})),d||(d=C.createElement("path",{fill:"currentColor",fillOpacity:.7,d:"M12.24 6.575c1.32 0 2.508.454 3.44 1.345l2.582-2.583C16.703 3.872 14.667 3 12.24 3a8.997 8.997 0 0 0-8.03 4.965l2.994 2.32c.708-2.128 2.693-3.71 5.036-3.71z"})))).withConfig({componentId:"sc-47bd20ea-2"})(["",""],ex),em=(0,b.default)(e=>C.createElement("svg",eo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p||(p=C.createElement("path",{fill:"currentColor",fillOpacity:.85,d:"M17.05 12.536c-.024-2.43 1.987-3.594 2.078-3.65-1.131-1.654-2.892-1.88-3.519-1.906-1.498-.151-2.924.882-3.683.882-.76 0-1.937-.86-3.187-.836-1.638.024-3.149.952-3.992 2.418-1.703 2.954-.435 7.328 1.222 9.728.811 1.175 1.78 2.495 3.05 2.448 1.225-.05 1.687-.793 3.166-.793s1.895.793 3.187.769c1.317-.024 2.151-1.198 2.954-2.378.93-1.366 1.314-2.69 1.337-2.758-.029-.012-2.566-.985-2.613-3.924zM14.658 5.4c.676-.82 1.132-1.96 1.008-3.094-.974.04-2.155.65-2.853 1.469-.626.726-1.176 1.886-1.028 3.001 1.087.084 2.196-.553 2.873-1.376z"})))).withConfig({componentId:"sc-47bd20ea-3"})(["",""],ex),ej=(0,b.default)(f.N_).withConfig({componentId:"sc-160fd80-0"})(["text-align:left;padding:0;border:none;background-color:transparent;"]),eb=b.default.div.withConfig({componentId:"sc-160fd80-1"})(["display:flex;align-items:center;gap:6px;flex-wrap:wrap;"]);function ey(e){let{subscription:n,meta:t}=e,{pid:i,app:r,offering:a,provider:l,isSubscriptionScheduledCancel:s,paddleBillingSubscriptionData:o,subscriptionScheduledCancelAt:c,pauseDurationMonths:d,subscriptionExpiresAt:p,paymentMethodSummary:u}=n,{user:x}=(0,w.Jd)(),m=l===y.bN.PADDLE,j=m&&o?.status!=="paused",b=m&&o?.status==="past_due",v=!!u?.isExpiringSoon&&!b&&!s;return(0,h.jsxs)(ew,{children:[(0,h.jsx)(W,{icon:r?(0,h.jsx)(f.z9,{icon:r.icon,size:32}):(0,h.jsx)(g.Rc,{size:32}),title:a.properties.name,backgroundColor:r&&r.category.color,pastDueBadge:b,children:(e=>{let{nextBillDate:n,nextPaymentAmount:t,currencyCode:i,language:r,isPastDuePayment:a,isSubscriptionCancellationScheduled:l,pauseDurationMonths:s,isPaymentMethodExpiringSoon:o,subscriptionScheduledCancelAt:c,subscriptionPid:d,subscriptionExpiresAt:p,paymentMethodSummary:u}=e,[,x]=(0,k.R)(d);if(l&&c){if(s){let e=(0,ei.A)(new Date(c),s);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.P,{color:"accent",children:"Your subscription will be paused."}),"The pause starts on"," ",(0,f._Q)(c,!0)," and ends on"," ",(0,f._Q)(e,!0),"."]})}return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.P,{color:"alert",children:"You have cancelled your subscription."}),"Your Elfsight subscription expires on"," ",(0,f._Q)(c,!0),"."]})}let g=u&&(0,h.jsxs)(eb,{children:["Payment method: ",(0,h.jsx)(eu,{summary:u})]});if(a)return(0,h.jsxs)(h.Fragment,{children:[g,(0,h.jsx)(ej,{forwardedAs:"button",color:"alert",onClick:x,children:"Please, update your payment method ASAP."})]});if(p)return(0,h.jsxs)(h.Fragment,{children:["Expires on ",(0,f._Q)(p,!0)]});if(void 0===t)return(0,h.jsx)(h.Fragment,{});let m=u?.card,j=m?`${String(m.expiryMonth).padStart(2,"0")}/${String(m.expiryYear).slice(-2)}`:null;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{children:["Next payment:"," ",(0,er.N)(t,i,r),!!n&&` on ${(0,f._Q)(n,
8!0)}`]}),g,o&&(0,h.jsxs)(ej,{forwardedAs:"button",color:"alert",onClick:x,children:[j&&(0,h.jsxs)(h.Fragment,{children:["Your card expires on ",j,".",(0,h.jsx)("br",{})]}),"Please, update your payment method ASAP."]})]})})({nextBillDate:o?.nextBilledAt??null,nextPaymentAmount:o?.nextTransaction?.details.totals.grandTotal,currencyCode:o?.nextTransaction?.details.totals.currencyCode,language:x?.language,isPastDuePayment:b,isSubscriptionCancellationScheduled:s,pauseDurationMonths:d,isPaymentMethodExpiringSoon:v,subscriptionScheduledCancelAt:c,subscriptionPid:i,subscriptionExpiresAt:p,paymentMethodSummary:u})}),j&&(0,h.jsx)(Q,{subscription:n,meta:t})]})}let ew=b.default.div.withConfig({componentId:"sc-2be94776-0"})(["display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;padding-top:20px;padding-bottom:20px;border-top:1px solid ",";&:last-of-type{border-bottom:1px solid ",";}","{flex-direction:column;}"],e=>{let{theme:n}=e;return n.colors.gray10},e=>{let{theme:n}=e;return n.colors.gray10},f.ND);function ev(){let{data:e,isPending:n}=(0,j.RI)();if(n)return(0,h.jsx)(g.YL,{title:"Active Subscriptions",children:(0,h.jsx)(f.aH,{})});if(!e)return null;let{payload:t=[],meta:i}=e;return 0===t.length?(0,h.jsx)(g.Sz,{title:"Active Subscriptions",children:(0,h.jsxs)(f.P,{children:["You donât have any active subscription.",(0,h.jsx)("br",{}),"As soon as you subscribe, you will be able to manage your subscriptions and payments here."]})}):(0,h.jsx)(g.Sz,{title:"Active Subscriptions",children:(0,h.jsx)("div",{children:t.map(e=>(0,h.jsx)(ey,{subscription:e,meta:i},e.pid))})})}var eC=t(75563);function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}let eA=e=>C.createElement("svg",eP({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u||(u=C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 11.067a.6.6 0 0 1 .592.502l.008.098v4.166c0 1.2-.932 2.182-2.112 2.262l-.155.005H4.167c-1.2 0-2.182-.932-2.262-2.112l-.005-.155v-4.166a.6.6 0 0 1 1.192-.098l.008.098v4.166c0 .55.416 1.003.95 1.06l.117.007h11.666c.55 0 1.003-.416 1.06-.95l.007-.117v-4.166a.6.6 0 0 1 .6-.6ZM10 1.9a.6.6 0 0 1 .592.503l.008.097-.001 8.384 3.143-3.142.083-.069a.6.6 0 0 1 .766.918l-4.167 4.167a.604.604 0 0 1-.073.062l-.01.007a.653.653 0 0 1-.171.082.607.607 0 0 1-.17.024h-.024a.558.558 0 0 1-.05-.004l.074.004a.603.603 0 0 1-.424-.175l.073.062a.603.603 0 0 1-.073-.062L5.409 8.59l-.07-.083a.6.6 0 0 1 .07-.766l.083-.069a.6.6 0 0 1 .766.07l3.14 3.141L9.4 2.5a.6.6 0 0 1 .6-.6Z",fill:"#111"})));function eI(e){let{label:n,value:t,valueColor:i="black"}=e;return n?(0,h.jsx)(f.ge,{label:n,children:(0,h.jsx)(eS,{_color:i,children:t})}):(0,h.jsx)(eS,{_color:i,children:t})}let eS=b.default.div.withConfig({componentId:"sc-b3798360-0"})(["",";color:",";"],e=>{let{theme:n}=e;return n.font.text},e=>{let{theme:n,_color:t}=e;return n.colors[t]});function ek(e){let{payment:n}=e,{offering:t,amount:i,currencyCode:r,createdAt:a,pid:l,type:s,payment:o}=n,{user:c}=(0,w.Jd)(),d=(0,H.wV)(),{mutateAsync:p,isPending:u}=(0,I.OM)(),{mutate:x,isPending:g}=(0,eC.Om)({onError:()=>{v.oR.error("Something went wrong. Please try again later or contact support if the issue persists.")}}),m=t.provider===y.bN.PADDLE_CLASSIC&&!!o,j=t.provider===y.bN.PADDLE,b=m||j,C=async()=>{if(j){let{invoiceURL:e}=await p({b0PaymentPid:l});d(e,"_top")}m&&x({paymentPid:o.pid})};return(0,h.jsxs)(eE,{children:[(0,h.jsxs)(e_,{children:[(0,h.jsx)(eI,{label:"Date",value:(0,f._Q)(a,!0)}),(0,h.jsx)(eI,{label:"Amount",value:(0,er.N)(i,r,c?.language)})]}),(0,h.jsx)(eD,{children:(0,h.jsx)(f.H4,{children:t.properties.name})}),(0,h.jsx)(e$,{children:b&&({[y.dm.SUCCEEDED]:(0,h.jsx)(h.Fragment,{children:u||g?(0,h.jsx)(eT,{small:!0,backgroundColor:"gray5",spacing:6}):(0,h.jsx)(f.m_,{content:"Download Invoice",children:(0,h.jsx)(f.K0,{onClick:C,icon:eA,primary:!0})})}),[y.dm.FAILED]:(0,h.jsx)(f.P,{alignCenter:!0,color:"alert",children:"Payment Failed"})})[s]})]})}let eE=b.default.div.withConfig({componentId:"sc-6cc4aa42-0"})(["padding-top:20px;border-top:1px solid ",";&:not(:last-child){padding-bottom:20px;}"],e=>{let{theme:n}=e;return n.colors.gray10}),e_=b.default.div.withConfig({componentId:"sc-6cc4aa42-1"})(["display:flex;align-items:center;justify-content:space-between;"]),eD=b.default.div.withConfig({componentId:"sc-6cc4aa42-2"})(["margin-top:16px;"]),e$=b.default.div.withConfig({componentId:"sc-6cc4aa42-3"})(["margin-top:16px;display:flex;gap:8px;"]),eT=(0,b.default)(f.aH).withConfig({componentId:"sc-6cc4aa42-4"})(["border-radius:4px;max-width:32px;"]);function eN(e){let{payment:n}=e,{offering:t,amount:i,currencyCode:r,createdAt:a,pid:l,type:s,payment:o}=n,{user:c}=(0,w.Jd)(),d=(0,H.wV)(),{mutateAsync:p,isPending:u}=(0,I.OM)(),{mutate:x,isPending:g}=(0,eC.Om)({onError:()=>{v.oR.error("Something went wrong. Please try again later or contact support if the issue persists.")}}),m=t.provider===y.bN.PADDLE_CLASSIC&&!!o,j=t.provider===y.bN.PADDLE,b=m||j,C=async()=>
8{if(j){let{invoiceURL:e}=await p({b0PaymentPid:l});d(e,"_top")}m&&x({paymentPid:o.pid})};return(0,h.jsxs)(f.TR,{children:[(0,h.jsx)(f.TD,{children:(0,h.jsx)(eI,{value:(0,f._Q)(a,!0)})}),(0,h.jsx)(f.TD,{children:(0,h.jsx)(f.H4,{children:t.properties.name})}),(0,h.jsx)(f.TD,{_alignRight:!0,children:(0,h.jsx)(eI,{value:(0,er.N)(i,r,c?.language)})}),(0,h.jsx)(eR,{_alignRight:!0,children:(0,h.jsx)(eO,{children:b&&({[y.dm.SUCCEEDED]:(0,h.jsx)(h.Fragment,{children:u||g?(0,h.jsx)(eL,{small:!0,backgroundColor:"gray5",spacing:6}):(0,h.jsx)(f.m_,{content:"Download Invoice",children:(0,h.jsx)(f.K0,{onClick:C,icon:eA,primary:!0})})}),[y.dm.FAILED]:(0,h.jsx)(f.P,{alignCenter:!0,color:"alert",children:"Payment Failed"})})[s]})})]})}let eR=(0,b.default)(f.TD).withConfig({componentId:"sc-4d83d538-0"})(["width:72px;"]),eO=b.default.div.withConfig({componentId:"sc-4d83d538-1"})(["margin-left:20px;display:flex;gap:8px;justify-content:flex-end;"]),eL=(0,b.default)(f.aH).withConfig({componentId:"sc-4d83d538-2"})(["border-radius:4px;max-width:32px;"]);function eU(){let{data:e={payload:[]},isLoading:n}=(0,j.wk)(),t=(0,w.al)();return 0===e.payload.length?null:n?(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:(0,h.jsx)(f.aH,{})}):t?(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:e.payload.map(e=>(0,h.jsx)(ek,{payment:e},e.pid))}):(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:(0,h.jsx)(ez,{children:e.payload.map(e=>(0,h.jsx)(eN,{payment:e},e.pid))})})}let ez=(0,b.default)(function(e){let{children:n,...t}=e;return(0,h.jsxs)(f.XI,{_gap:[12,0],...t,children:[(0,h.jsx)(f.D1,{children:(0,h.jsxs)(f.TR,{children:[(0,h.jsx)(f.TH,{children:"DATE"}),(0,h.jsx)(f.TH,{children:"DESCRIPTION"}),(0,h.jsx)(f.TH,{_alignRight:!0,children:"AMOUNT"}),(0,h.jsx)(f.TH,{_alignRight:!0,children:"INVOICE"})]})}),(0,h.jsx)(f.vc,{children:n})]})}).withConfig({componentId:"sc-6dd08c66-0"})(["margin-top:-10px;"]),eF=()=>(0,h.jsx)(g.Ad,{header:(0,h.jsx)(m.Y9,{}),leftSidebar:(0,h.jsx)(g.Ux,{activeItemURL:g.By.BILLING}),children:(0,h.jsx)(g.ss,{children:(0,h.jsxs)(g.nv,{children:[(0,h.jsx)(g.z$,{offset:[40,26],children:"Billing"}),(0,h.jsx)(ev,{}),(0,h.jsx)(eU,{})]})})});var eM=t(18513),eH=t(85398),eB=t(30944),eK=t(11713),eG=t(79518),eV=t(7786),eJ=t(44403),eY=t(33428);function eQ(e){let{subscription:n}=e,t=(0,eH.jE)(),{pid:i,app:r,status:a,plan:l,data:s,canRevokeSubscriptionCancellation:o,canReactivateSubscription:c,canScheduleSubscriptionCancellation:d,upgradeToYearlyPlanPid:p,upgradeAssociatedApp:u,hasAnnualUpgradeDeal:x}=n,{mutate:g,isPending:m}=(0,eC.vs)({pid:i,planName:l.name},{onSuccess:()=>{t.invalidateQueries({queryKey:[eB.fu]})}}),[j,b]=function(e){let{openCheckoutURL:n,setLoading:t,isLoading:i}=(0,eK.QV)(),{mutate:r}=(0,eC.gA)({onSuccess:()=>{t(!1),e()}}),{mutate:a}=(0,eC.rY)({onSuccess:e=>{let{payLink:t}=e;n({override:t,successCallback:async e=>{r({pid:JSON.parse(e.checkout.passthrough).subscriptionPid,checkoutId:e.checkout.id})}})}});return[i,e=>{t(!0),a({subscriptionPid:e})}]}(()=>{v.oR.success(`Auto-renewal has been successfully activated for ${l.name} subscription.`),t.invalidateQueries({queryKey:[eB.fu]})}),y=(0,eY.X)(s.updateUrl),w=(0,eG.e_)(l.properties.grade)?eV.a9:eV.Dp,C=`/switch-app?app=${r?.alias}`,P=`/cancel-auto-renewal?pid=${i}`,A=(0,eJ.gR)({app:u?.alias,tab:r?.alias?"single":"packs",flow:!0,redirectBack:!0,subscriptionPid:n.pid}),I=new URLSearchParams({to:p??"",from:i}),S=`/upgrade-confirm?${I}`;return c?(0,h.jsx)(eZ,{children:(0,h.jsx)(f.$n,{small:!0,variation:"accentPrimary",isLoading:j,onClick:()=>b(n.pid),children:"Reactivate"})}):o?(0,h.jsx)(eZ,{children:(0,h.jsx)(f.$n,{small:!0,variation:"accentPrimary",isLoading:m,onClick:()=>g(),children:"Reactivate"})}):a===eM.it.PAST_DUE?(0,h.jsxs)(eZ,{children:[(0,h.jsx)(f.$n,{small:!0,variation:"accentPrimary",onClick:y,children:"Update Payment Method"}),d&&(0,h.jsx)(f.tz,{primaryButton:!0,children:(0,h.jsx)(f.VJ,{danger:!0,href:P,children:"Cancel Auto-Renewal"})})]}):(0,h.jsxs)(eZ,{children:[p&&(0,h.jsxs)(eW,{children:[(0,h.jsx)(eX,{_hasAnnualUpgradeDeal:x,children:`Save ${w}%`}
8),(0,h.jsx)(eq,{small:!0,_hasAnnualUpgradeDeal:x,variation:"accentSecondary",href:S,children:"Switch to Annual"})]}),(0,h.jsx)(f.$n,{small:!0,variation:"secondary",href:A,children:"Change Plan"}),(0,h.jsxs)(f.tz,{primaryButton:!0,children:[(0,h.jsx)(f.VJ,{onClick:y,children:"Manage Payment Method"}),l.type===eM.OL.SINGLE_APP&&(0,h.jsx)(f.VJ,{href:C,children:"Switch App"}),d&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.ug,{}),(0,h.jsx)(f.VJ,{danger:!0,href:P,children:"Cancel Auto-Renewal"})]})]})]})}let eZ=b.default.div.withConfig({componentId:"sc-cf24a475-0"})(["display:flex;gap:0 8px;align-items:center;"]),eW=b.default.div.withConfig({componentId:"sc-cf24a475-1"})(["position:relative;"]),eX=b.default.span.withConfig({componentId:"sc-cf24a475-2"})(["z-index:1;position:absolute;top:-10px;right:0;padding:2px 6px;font-size:10px;line-height:12px;font-weight:800;text-transform:uppercase;background:",";color:",";border-radius:10px;"],e=>{let{theme:n,_hasAnnualUpgradeDeal:t}=e;return t?n.colors.annualUpgrade:"#1c91ff"},e=>{let{theme:n}=e;return n.colors.white}),eq=(0,b.default)(f.$n).withConfig({componentId:"sc-cf24a475-3"})(["",""],e=>{let{theme:n,_hasAnnualUpgradeDeal:t}=e;return t&&(0,b.css)(["background-color:",";color:",";&:hover{color:",";}"],n.colors.annualUpgradeTransparent,n.colors.annualUpgrade,n.colors.annualUpgrade)});function e0(e){let{title:n,icon:t,pastDueBadge:i=!1,children:r}=e;return(0,h.jsxs)(e2,{children:[t,(0,h.jsxs)(e4,{children:[(0,h.jsxs)(e6,{children:[n,i&&(0,h.jsxs)(h.Fragment,{children:["\xa0",(0,h.jsx)(e1,{backgroundColor:"alert",backgroundColorOpacity:1,textColor:"white",yOffset:0,children:"Past Due"})]})]}),r&&(0,h.jsx)(e3,{children:r})]})]})}let e1=(0,b.default)(f.vu).withConfig({componentId:"sc-544e989b-0"})(["display:inline;padding:1.5px 6px;vertical-align:unset;"]),e2=b.default.div.withConfig({componentId:"sc-544e989b-1"})(["display:flex;max-width:440px;gap:8px;","{max-width:none;}"],f.ND),e4=b.default.div.withConfig({componentId:"sc-544e989b-2"})(["display:flex;flex-direction:column;gap:4px;"]),e6=b.default.div.withConfig({componentId:"sc-544e989b-3"})(["",";color:",";"],e=>{let{theme:n}=e;return n.font.title4},e=>{let{theme:n}=e;return n.colors.black}),e3=b.default.div.withConfig({componentId:"sc-544e989b-4"})(["",";display:flex;flex-direction:column;gap:4px;color:",";","{gap:0;}"],e=>{let{theme:n}=e;return n.font.text},e=>{let{theme:n}=e;return n.colors.gray70},f.ND),e5=(0,b.default)(f.N_).withConfig({componentId:"sc-14a43893-0"})(["padding:0;border:none;background-color:transparent;"]);function e8(e){let{subscription:n}=e,{app:t,status:i,plan:r,isUnverifiedSubscription:a,isPausedSubscription:l,isSubscriptionCancellationScheduled:s,isSubscriptionCancelled:o,data:{nextPaymentAmount:c,nextBillDate:d,updateUrl:p}}=n;return(0,h.jsxs)(e7,{children:[(0,h.jsx)(e0,{icon:t?(0,h.jsx)(f.z9,{icon:t.icon,size:32}):(0,h.jsx)(g.Rc,{size:32}),title:(0,H.S3)(r.name,r.properties.billingInterval),backgroundColor:t&&t.category.color,pastDueBadge:i===eM.it.PAST_DUE,children:(e=>{let{nextBillDate:n,nextPaymentAmount:t,isPastDuePayment:i,isSubscriptionCancellationScheduled:r,isSubscriptionCancelled:a,updateUrl:l}=e,s=(0,eY.X)(l);return r||a?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.P,{color:"alert",children:"You have cancelled your subscription."}),"Your Elfsight subscription expires on"," ",(0,f._Q)(n,!0),"."]}):i?(0,h.jsx)(e5,{forwardedAs:"button",color:"alert",onClick:s,children:"Please, update your payment method ASAP."}):void 0!==t?(0,h.jsxs)(h.Fragment,{children:["Next payment: $",t,!!n&&` on ${(0,f._Q)(n,!0)}`]}):(0,h.jsx)(h.Fragment,{})})({nextBillDate:d,nextPaymentAmount:c,isPastDuePayment:i===eM.it.PAST_DUE,isSubscriptionCancellationScheduled:s,isSubscriptionCancelled:o,updateUrl:p})}),!a&&!l&&(0,h.jsx)(eQ,{subscription:n})]})}let e7=b.default.div.withConfig({componentId:"sc-ddc13498-0"})(["display:flex;justify-content:space-between;gap:20px;padding-top:20px;padding-bottom:20px;border-top:1px solid ",";&:last-of-type{border-bottom:1px solid ",";}","{flex-direction:column;}"],e=>{let{theme:n}=e;return n.colors.gray10},e=>{let{theme:n}=e;return n.colors.gray10},f.ND);function e9(){let{data:e,isPending:n}=(0,eC.Cg)();if(n)return(0,h.jsx)(g.YL,{title:"Active Subscriptions",children:(0,h.jsx)(f.aH,{})});if(!e)return null;let{payload:t=[]}=e;return 0===t.length?(0,h.jsx)(g.Sz,{title:"Active Subscriptions",children:(0,h.jsxs)(f.P,{children:["You donât have any active subscription.",(0,h.jsx)("br",{}),"As soon as you subscribe, you will be able to manage your subscriptions and payments here."]})}):(0,h.jsx)(g.Sz,{title:"Active Subscriptions",children:(0,h.jsx)("div",{children:t.map(e=>(0,h.jsx)(e8,{subscription:e},e.pid))})})}var ne=t(65782);function nn(){return(nn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}let nt=e=>C.createElement("svg",nn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),x||(x=C.createElement("g",{fillRule:"evenodd",clipRule:"evenodd",fill:"#111"},C.createElement("path",{d:"M13.75 10a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Zm-1.2 0a2.55 2.55 0 1 1-5.1 0 2.55 2.55 0 0 1 5.1 0Z"}),C.createElement("path",{d:"M19.565 9.673a.6.6 0 0 1 0 .654L19.063 10c.504.327.503.328.503.328v.001l-.004.005-.01.015-.038.057a18.546 18.546 0 0 1-.69.94 20.798 20.798 0 0 1-2.001 2.213c-1.67 1.591-4.08 3.291-6.822 3.291-2.741 0-5.152-1.7-6.822-3.29A20.807 20.807 0 0 1 .63 10.614l-.144-.209c-.016-.024-.03-.043-.038-.057l-.01-.015-.003-.005-.002-.002a.6.6 0 0 1 0-.654L.937 10c-.503-.327-.502-.328-.502-.328v-.001l.004-.004.01-.016a7.328 7.328 0 0 1 .182-.266A20.811 20.811 0 0 1 3.177 6.44C4.848 4.85 7.26 3.15 10 3.15c2.741 0 5.152 1.7 6.822 3.29a20.803 20.803 0 0 1 2.546 2.945l.145.209.038.057.01.016.003.004.001.002Zm-17.443.934c-.19-.242-.342-.45-.455-.
8607a19.61 19.61 0 0 1 2.339-2.69C5.616 5.774 7.736 4.35 10 4.35s4.384 1.425 5.994 2.96A19.61 19.61 0 0 1 18.333 10a19.621 19.621 0 0 1-2.339 2.69c-1.61 1.535-3.73 2.96-5.994 2.96s-4.384-1.425-5.994-2.96a19.623 19.623 0 0 1-1.884-2.083ZM19.062 10l.503-.327-.503.327Z"}))));function ni(e){let{label:n,value:t,valueColor:i="black"}=e;return n?(0,h.jsx)(f.ge,{label:n,children:(0,h.jsx)(nr,{_color:i,children:t})}):(0,h.jsx)(nr,{_color:i,children:t})}let nr=b.default.div.withConfig({componentId:"sc-29e0450-0"})(["",";color:",";"],e=>{let{theme:n}=e;return n.font.text},e=>{let{theme:n,_color:t}=e;return n.colors[t]});function na(e){let{payment:n}=e,{plan:t,amount:i,data:r,createdAt:a,type:l,pid:s}=n,{mutate:o,isPending:c}=(0,eC.Om)({onError:()=>{v.oR.error("Something went wrong. Please try again later or contact support if the issue persists.")}});return(0,h.jsxs)(nl,{children:[(0,h.jsxs)(ns,{children:[(0,h.jsx)(ni,{label:"Date",value:(0,f._Q)(a,!0)}),(0,h.jsx)(ni,{label:"Amount",value:`$${i}`})]}),(0,h.jsx)(no,{children:(0,h.jsx)(f.H4,{children:t.name})}),(0,h.jsx)(nc,{children:{[ne.dm.SUCCEEDED]:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.m_,{content:"View Invoice",children:(0,h.jsx)(f.K0,{onClick:()=>window.open(r.receiptUrl,"_blank"),icon:nt,primary:!0})}),c?(0,h.jsx)(nd,{small:!0,backgroundColor:"gray5",spacing:6}):(0,h.jsx)(f.m_,{content:"Download Invoice",children:(0,h.jsx)(f.K0,{onClick:()=>{o({paymentPid:s})},icon:eA,primary:!0})})]}),[ne.dm.FAILED]:(0,h.jsx)(f.P,{mb:4,alignCenter:!0,color:"alert",children:"Payment Failed"})}[l]})]})}let nl=b.default.div.withConfig({componentId:"sc-ad2dc39b-0"})(["padding-top:20px;border-top:1px solid ",";&:not(:last-child){padding-bottom:20px;}"],e=>{let{theme:n}=e;return n.colors.gray10}),ns=b.default.div.withConfig({componentId:"sc-ad2dc39b-1"})(["display:flex;align-items:center;justify-content:space-between;"]),no=b.default.div.withConfig({componentId:"sc-ad2dc39b-2"})(["margin-top:16px;"]),nc=b.default.div.withConfig({componentId:"sc-ad2dc39b-3"})(["margin-top:16px;display:flex;gap:8px;"]),nd=(0,b.default)(f.aH).withConfig({componentId:"sc-ad2dc39b-4"})(["border-radius:4px;max-width:32px;"]);function np(e){let{payment:n}=e,{plan:t,amount:i,data:r,createdAt:a,type:l,pid:s}=n,{mutate:o,isPending:c}=(0,eC.Om)({onError:()=>{v.oR.error("Something went wrong. Please try again later or contact support if the issue persists.")}});return(0,h.jsxs)(f.TR,{children:[(0,h.jsx)(f.TD,{children:(0,h.jsx)(ni,{value:(0,f._Q)(a,!0)})}),(0,h.jsx)(f.TD,{children:(0,h.jsx)(f.H4,{children:t.name})}),(0,h.jsx)(f.TD,{_alignRight:!0,children:(0,h.jsx)(ni,{value:`$${i}`})}
8),(0,h.jsx)(nu,{_alignRight:!0,children:(0,h.jsx)(nx,{children:{[ne.dm.SUCCEEDED]:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(f.m_,{content:"View Invoice",children:(0,h.jsx)(f.K0,{onClick:()=>window.open(r.receiptUrl,"_blank"),icon:nt,primary:!0})}),c?(0,h.jsx)(nh,{small:!0,backgroundColor:"gray5",spacing:6}):(0,h.jsx)(f.m_,{content:"Download Invoice",children:(0,h.jsx)(f.K0,{onClick:()=>{o({paymentPid:s})},icon:eA,primary:!0})})]}),[ne.dm.FAILED]:(0,h.jsx)(f.P,{alignCenter:!0,color:"alert",children:"Payment Failed"})}[l]})})]})}let nu=(0,b.default)(f.TD).withConfig({componentId:"sc-7034f00a-0"})(["width:72px;"]),nx=b.default.div.withConfig({componentId:"sc-7034f00a-1"})(["margin-left:20px;display:flex;gap:8px;"]),nh=(0,b.default)(f.aH).withConfig({componentId:"sc-7034f00a-2"})(["border-radius:4px;"]);function ng(){let{data:e={payload:[]},isLoading:n}=(0,eC.wk)(),t=(0,w.al)();return 0===e.payload.length?null:n?(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:(0,h.jsx)(f.aH,{})}):t?(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:e.payload.map(e=>(0,h.jsx)(na,{payment:e},e.pid))}):(0,h.jsx)(g.Sz,{title:"Payment History",margin:0,children:(0,h.jsx)(nf,{children:e.payload.map(e=>(0,h.jsx)(np,{payment:e},e.pid))})})}let nf=(0,b.default)(function(e){let{children:n,...t}=e;return(0,h.jsxs)(f.XI,{_gap:[12,0],...t,children:[(0,h.jsx)(f.D1,{children:(0,h.jsxs)(f.TR,{children:[(0,h.jsx)(f.TH,{children:"DATE"}),(0,h.jsx)(f.TH,{children:"DESCRIPTION"}),(0,h.jsx)(f.TH,{_alignRight:!0,children:"AMOUNT"}),(0,h.jsx)(f.TH,{_alignRight:!0,children:"INVOICE"})]})}),(0,h.jsx)(f.vc,{children:n})]})}).withConfig({componentId:"sc-a3a7f162-0"})(["margin-top:-10px;"]),nm=()=>(0,h.jsx)(g.Ad,{header:(0,h.jsx)(m.Y9,{}),leftSidebar:(0,h.jsx)(g.Ux,{activeItemURL:g.By.BILLING}),children:(0,h.jsx)(g.ss,{children:(0,h.jsxs)(g.nv,{children:[(0,h.jsx)(g.z$,{offset:[40,26],children:"Billing"}),(0,h.jsx)(e9,{}),(0,h.jsx)(ng,{})]})})});var nj=t(53959);function nb(){let{isPaddleBilling:e,isFetched:n,isLoading:t}=(0,nj.HA)();return t||!n?(0,h.jsx)(f.aH,{large:!0,absolute:!0}):(0,h.jsx)(h.Fragment,{children:e?(0,h.jsx)(eF,{}):(0,h.jsx)(nm,{})})}function ny(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(g.pD,{title:"Billing"}),(0,h.jsx)(nb,{})]})}},33428:(e,n,t)=>{"use strict";t.d(n,{X:()=>a});var i=t(2483),r=t(11713);function a(e){let{openCheckoutURL:n,setLoading:t}=(0,r.QV)();return()=>{e?(t(!0),i.oR.remove(),n({override:e,successCallback:()=>{i.oR.success("Payment method was successfully changed")}})):i.oR.error("Payment method cannot be changed for this subscription")}}},47902:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/billing",function(){return t(18448)}])},79518:(e,n,t)=>{"use strict";t.d(n,{zN:()=>u,dX:()=>p,or:()=>l,P8:()=>c,XN:()=>i,UU:()=>o,Ux:()=>a,wB:()=>x,T8:()=>s,AE:()=>d,e_:()=>j,TJ:()=>f});let i=(e,n)=>{if(e!==n)return null===e?"success":null===n?"alert":e>n?"success":"alert"};var r=t(62030);let a=(e,n)=>null!==e?`${(0,r.a)(e)} views ${n>1?"per app":""}`:"Unlimited views ",l=e=>`${e} ${1===e?"app":"apps"}`,s=(e,n)=>`${(0,r.a)(e)} widgets ${n>1?"per app":""}`,o=e=>`${e>0?(0,r.a)(e):"No"} projects`,c=e=>`${e>0?e:"No"} ${1===e?"collaborator":"collaborators"}`,d=e=>e?"Widget sharing":"No widget sharing",p=e=>`${(0,r.a)(e)} messages`,u=e=>`${(0,r.a)(e)} chars storage`,x=e=>e?"White label":"No white label";var h=t(19487),g=t(18513);function f(e,n,t){return n===g.OL.SINGLE_APP&&t===g.OL.SINGLE_APP&&e===h.Gq}let m=[g.dI.ENTERPRISE_T1,g.dI.ENTERPRISE_T2,g.dI.ENTERPRISE_T3,g.dI.ENTERPRISE_T4];function j(e){return m.includes(e)}}},e=>{e.O(0,[2677,6593,636,8792],()=>e(e.s=47902)),_N_E=e.O()}]);
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.