1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3771],{74503:function(n,i,t){t.d(i,{V:function(){return l}});var e=t(2784),o=t(68183);let l=()=>{let{showError:n,showSuccess:i,showWarning:t}=(0,e.useContext)(o.w);return{showError:n,showSuccess:i,showWarning:t}}},63771:function(n,i,t){t.d(i,{_:function(){return nE}});var e=t(52322),o=t(54178),l=t(43348),r=t(76026),a=t(20987),c=t(4694),d=t(21307),s=t(38450),u=t(76855),p=t(34537),v=t(27511),f=t(2784),h=t(17160),x=t(35505),g=t(29152),m=t(48980),b=t(30429),y=t(17439),w=t(39694),I=t(60185),C=t(18495);let E=x.ZP.span.withConfig({componentId:"sc-b9aebf79-0"})(['position:relative;white-space:nowrap;&:after{content:"";position:absolute;width:110%;top:50%;border-top:0.15em solid ',";right:0;left:0;}"],n=>n.lineColor),j=n=>{let{lineColor:i,children:t}=n,o=(0,x.Fg)(),l=(()=>{if(i){let n=o.palette[i],t=n&&n.light?n.light:void 0,e=i;return t&&(e=t),e}return"black"})();return(0,e.jsx)(E,{lineColor:l,children:t})};var T=t(74503),z=t(81468),Z=t(15427),P=t(53536);let N=x.ZP.h2.withConfig({componentId:"sc-c903152-0"})(["text-transform:uppercase;text-align:center;font-weight:600;font-size:24px;","{height:60px;}"],n=>{let{theme:i}=n;return i.breakpoints.up("sm")}),A=x.ZP.p.withConfig({componentId:"sc-c903152-1"})(["font-size:14px;font-style:normal;font-weight:400;text-align:center;"]),O=n=>{let{title:i,caption:t}=n;return(0,e.jsxs)(P.K,{spacing:3,direction:"column",children:[i&&(0,e.jsx)(N,{children:i}),t&&(0,e.jsx)(A,{children:t})]})},M=x.ZP.p.withConfig({componentId:"sc-57b10a8e-0"})(["font-size:14px;font-style:normal;font-weight:400;line-height:24px;margin:0;"]);x.ZP.h1.withConfig({componentId:"sc-57b10a8e-1"})(["text-align:center;font-size:40px;font-weight:700;max-width:1000px;margin:0 auto;","{font-size:20px;}"],n=>{let{theme:i}=n;return i.breakpoints.down("sm")});let _=x.ZP.p.withConfig({componentId:"sc-57b10a8e-2"})(["text-align:center;font-size:16px;font-style:normal;font-weight:400;"]),k=x.ZP.span.withConfig({componentId:"sc-57b10a8e-3"})(["font-weight:600;text-align:center;"]),S=n=>r.PT.useMonetizationActions(n),D=n=>{let{monetization:i,purchaseAsVoucherText:t}=n,{selectMonetization:o}=S(!0);return(0,e.jsx)(r.wx.Button,{onClick:()=>{o(i)},size:"large",isFullWidth:!0,variant:"transparent",leftIcon:r.wx.Icons.GiftIcon,children:(0,e.jsx)(k,{children:t})})},B=x.ZP.div.withConfig({componentId:"sc-3ba35dbb-0"})(["display:flex;flex-direction:column;gap:8px;"]),Y=(0,x.ZP)(r.wx.Button).withConfig({componentId:"sc-3ba35dbb-1"})(["",""],n=>{let{$showBorder:i}=n;return i&&"\n border: 1px solid white;\n "}),R=n=>{var i;let{button:t,subscriptionPurchased:o,isPurchasableAsVoucher:l,purchaseAsVoucherText:a,monetization:c}=n,d=(null==c?void 0:null===(i=c.frequency)||void 0===i?void 0:i.unit)===v.MONETIZATION_FREQUENCY.ONE_TIME_PAYMENT;return(0,e.jsxs)(B,{children:[l&&(0,e.jsx)(D,{monetization:c,purchaseAsVoucherText:a}),(0,e.jsx)(Y,{$showBorder:o&&!(o&&d),onClick:()=>{r.fv.reportElementClick(o?v.AnalyticsElementId.BTN_CANCEL_SUBSCRIPTION:v.AnalyticsElementId.BTN_SUBSCRIBE),t.onClick()},size:"large",isFullWidth:!0,variant:o?"secondary":"primary",label:"string"==typeof t.label?t.label:"",isDisabled:o&&d,children:(0,e.jsx)(k,{children:"string"==typeof t.label?null:t.label})}),t.caption&&(0,e.jsx)(M,{children:t.caption})]})},L=x.ZP.img.withConfig({componentId:"sc-81f86f23-0"})(["margin-right:8px;"]),V=x.ZP.div.withConfig({componentId:"sc-81f86f23-1"})(["display:flex;align-items:center;"]),F=n=>{var i,t,o,l;let{benefits:a}=n,{webConfig:c}=(0,y.J)(),d=null===(t=r.DY.organization)||void 0===t?void 0:null===(i=t.application)||void 0===i?void 0:i.organization,s=null===(o=c.monetizationSelectOverlay)||void 0===o?void 0:o.benef
1itLeftIcon;return(null==d?void 0:null===(l=d.settings)||void 0===l?void 0:l.paymentFlow)===v.PaymentFlow.LEGACY?(0,e.jsx)(Z.x,{children:null==a?void 0:a.map(n=>(0,e.jsx)(_,{children:n},n))}):(0,e.jsx)(Z.x,{display:"flex",flexDirection:"column",spacing:1,children:null==a?void 0:a.map(n=>s?(0,e.jsxs)(V,{children:[s&&(0,e.jsx)(L,{src:s,width:24,height:24,alt:"benefit left icon"}),(0,e.jsx)(M,{children:n})]},n):(0,e.jsx)(M,{children:n},n))})},U=x.ZP.h2.withConfig({componentId:"sc-8c1fb406-0"})(["text-transform:uppercase;text-align:center;font-weight:600;font-size:24px;"]),q=x.ZP.p.withConfig({componentId:"sc-8c1fb406-1"})(["font-size:14px;font-style:normal;font-weight:400;text-align:center;"]),G=n=>{let{title:i,caption:t}=n;return(0,e.jsxs)(P.K,{spacing:3,direction:"column",children:[i&&(0,e.jsx)(U,{children:i}),t&&(0,e.jsx)(q,{children:t})]})},H=x.ZP.div.withConfig({componentId:"sc-ac9dd1b2-0"})(["height:75vh;max-height:719px;max-width:347px;background-color:",";color:",";padding:48px 16px 26px 16px;border-radius:","px;position:relative;","{width:100%;height:auto;}"],n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.backgroundColor)&&void 0!==e?e:o.palette.primary.main},n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.color)&&void 0!==e?e:o.palette.primary.contrastText},n=>{var i,t;let{theme:e}=n;return null===(t=e.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.borderRadius},r.HH),Q=x.ZP.div.withConfig({componentId:"sc-ac9dd1b2-1"})(["width:100%;height:1px;background-color:",";"],n=>{let{theme:i}=n;return i.palette.divider}),W=x.ZP.div.withConfig({componentId:"sc-ac9dd1b2-2"})(["width:fit-content;background:white;color:black;padding:4px 8px;border-radius:4px;font-weight:700;position:absolute;top:0;left:50%;transform:translate(-50%,-50%);"]),K=x.ZP.div.withConfig({componentId:"sc-ac9dd1b2-3"})(["width:100%;text-align:center;font-size:12px;color:",";text-transform:uppercase;"],n=>{let{theme:i}=n;return i.palette.text.hint}),$=n=>{var i,t,o;let{title:l,caption:a,benefits:c,subscriptionPurchased:d,button:s,voucherPurchase:u,isPurchasableAsVoucher:p,purchaseAsVoucherText:f,monetization:h}=n,x=null===(t=r.DY.organization)||void 0===t?void 0:null===(i=t.application)||void 0===i?void 0:i.organization,[m]=(0,z.$G)(),b=null==h?void 0:h.seatsLeft,y=b&&(b>5?g.Z.t("More than 5 seats left",{seatsLeft:b}):b>1?g.Z.t("More than 2 seats left",{seatsLeft:b}):g.Z.t("1 seat left")),w=(null==x?void 0:null===(o=x.settings)||void 0===o?void 0:o.paymentFlow)===v.PaymentFlow.LEGACY;return(0,e.jsxs)(H,{children:[d&&!u&&(0,e.jsx)(W,{children:m("Purchased")}),(0,e.jsxs)(P.K,{direction:"column",justifyContent:"space-between",height:"100%",children:[(0,e.jsxs)(P.K,{direction:"column",alignItems:"center",overflowY:"auto",overflowX:"hidden",children:[w?(0,e.jsx)(O,{title:l,caption:a}):(0,e.jsx)(G,{title:l,caption:a}),(0,e.jsx)(Z.x,{width:"100%",mt:4,mb:4,children:(0,e.jsx)(Q,{})}),(0,e.jsx)(F,{benefits:c})]}),s&&h&&(0,e.jsx)(R,{button:s,subscriptionPurchased:!!d,isPurchasableAsVoucher:!!p,purchaseAsVoucherText:f||"",monetization:h}),void 0!==b&&b>0&&(0,e.jsx)(K,{children:y})]})]})},J=x.ZP.div.withConfig({componentId:"sc-11f27c6c-0"})(["background-color:",";border:",";color:",";padding:24px 24px 0;border-radius:","px;width:100%;max-width:347px;display:flex;flex-direction:column;gap:24px;margin-bottom:24px;position:relative;height:575px;"],n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.backgroundColor)&&void 0!==e?e:o.palette.common.white},n=>{var i,t,e,o;let{theme:l}=n;return(null===(t=l.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.borderColor)?"1px solid ".concat(null===(o=l.customizations)||void 0===o?void 0:null===(e=o.Monetization)||void 0===e?void 0:e.borderColor):"none"},n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.color)&&void 0!==e?e:o.palette.text.primary},n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.borderRadius)&&void 0!==e?e:16}),X=x.ZP.div.withConfig({componentId:"sc-11f27c6c-1"}
1)(["height:354px;overflow-y:",";::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],n=>n.$isScrollable?"auto":"hidden"),nn=x.ZP.div.withConfig({componentId:"sc-11f27c6c-2"})(["flex-grow:1;display:flex;flex-direction:column;position:relative;min-height:0;"]),ni=x.ZP.div.withConfig({componentId:"sc-11f27c6c-3"})(["position:relative;bottom:0;width:100%;display:flex;flex-direction:column;gap:24px;background-color:",";padding:24px 0;margin-top:auto;",""],n=>{var i,t,e;let{theme:o}=n;return null!==(e=null===(t=o.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.backgroundColor)&&void 0!==e?e:o.palette.common.white},n=>{var i,t,e;let{$showBefore:o,theme:l}=n;return o&&"\n &::before {\n content: '';\n position: absolute;\n top: -64px;\n left: -24px;\n right: -24px;\n height: 64px;\n background: linear-gradient(to top, ".concat(null!==(e=null===(t=l.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.backgroundColor)&&void 0!==e?e:"#ffffff",", transparent);\n pointer-events: none;\n }\n ")}),nt=x.ZP.h3.withConfig({componentId:"sc-11f27c6c-4"})(["font-size:20px;font-weight:700;line-height:28.8px;margin:0;"]),ne=x.ZP.div.withConfig({componentId:"sc-11f27c6c-5"})(["display:flex;flex-direction:column;align-items:flex-start;gap:0;"]),no=x.ZP.span.withConfig({componentId:"sc-11f27c6c-6"})(["font-size:32px;font-weight:700;line-height:38.4px;",""],n=>{let{theme:i,isPrimary:t}=n;return t&&"\n color: ".concat(i.palette.primary.main,";\n ")}),nl=x.ZP.span.withConfig({componentId:"sc-11f27c6c-7"})(["font-size:14px;color:",";"],n=>{let{theme:i}=n;return i.palette.text.secondary}),nr=x.ZP.span.withConfig({componentId:"sc-11f27c6c-8"})(["font-size:14px;color:",";"],n=>{let{theme:i}=n;return i.palette.text.secondary}),na=x.ZP.div.withConfig({componentId:"sc-11f27c6c-9"})(["display:flex;justify-content:space-between;padding-bottom:1.5rem;position:relative;",""],n=>{var i,t,e;let{$showTitleGradient:o,theme:l}=n;return o&&"\n &::before {\n content: '';\n position: absolute;\n top: var(--title-wrapper-height);\n left: -24px;\n right: -24px;\n height: 64px;\n background: linear-gradient(to bottom, ".concat(null!==(e=null===(t=l.customizations)||void 0===t?void 0:null===(i=t.Monetization)||void 0===i?void 0:i.backgroundColor)&&void 0!==e?e:"#ffffff",", transparent);\n pointer-events: none;\n }\n ")}),nc=x.ZP.div.withConfig({componentId:"sc-11f27c6c-10"})(["top:16px;right:16px;background:#f5f5f5;padding:4px 12px;border-radius:16px;font-size:14px;font-weight:800;"]),nd=x.ZP.div.withConfig({componentId:"sc-11f27c6c-11"})(["display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;"]),ns=(0,x.ZP)(r.wx.Button).withConfig({componentId:"sc-11f27c6c-12"})(["",""],n=>{let{$showBorder:i}=n;return i&&"\n border: 1px solid gray;\n "}),nu=x.ZP.div.withConfig({componentId:"sc-11f27c6c-13"})(["width:fit-content;background:white;color:black;padding:4px 8px;border-radius:4px;font-weight:700;position:absolute;top:0;left:50%;transform:translate(-50%,-50%);"]),np=x.ZP.div.withConfig({componentId:"sc-11f27c6c-14"})(["display:flex;flex-direction:column;align-items:center;"]),nv=x.ZP.span.withConfig({componentId:"sc-11f27c6c-15"})(["font-size:21px;opacity:0.6;font-weight:400;line-height:1.2;display:flex;align-items:baseline;text-decoration:line-through;"]),nf=x.ZP.div.withConfig({componentId:"sc-11f27c6c-16"})(["display:flex;align-items:baseline;"]),nh=n=>{var i,t;let{title:o,benefits:a,button:c,monetization:d,subscriptionPurchased:s,isPurchasableAsVoucher:u,purchaseAsVoucherText:p,voucherPurchase:h}=n,[x]=(0,z.$G)(),[m,b]=(0,f.useState)(1),y=null==d?void 0:d.seatsLeft,[w,I]=(0,f.useState)(!1),C=(0,f.useRef)(null),E=(0,f.useRef)(null),j=(0,f.useRef)(null),[T,Z]=(0,f.useState)(!1),P=!(null==d?void 0:d.price)||0===Number(d.price),N="string"==typeof c.label?c.label.toLowerCase():c.label,A=!!(null==d?void 0:d.cta);(0,f.useEffect)(()=>
1{if(j.current){let n=j.current.offsetHeight;j.current.style.setProperty("--title-wrapper-height","".concat(n,"px"))}},[]),(0,f.useEffect)(()=>{let n=C.current,i=()=>{if(n){let i=Math.round(n.scrollHeight-n.scrollTop)===n.clientHeight;I(!i),Z(n.scrollTop>0),i&&(n.scrollTop=n.scrollHeight-n.clientHeight)}};return i(),null==n||n.addEventListener("scroll",i),()=>{null==n||n.removeEventListener("scroll",i)}},[]);let O=y&&(y>5?g.Z.t("More than 5 seats left",{seatsLeft:y}):y>1?g.Z.t("More than 2 seats left",{seatsLeft:y}):g.Z.t("1 seat left")),M=(null==d?void 0:d.currency)?(0,l.formatCurrency)(d.currency):void 0,_=((null==d?void 0:null===(i=d.frequency)||void 0===i?void 0:i.unit)||(null==d?void 0:d.frequency))===v.MONETIZATION_FREQUENCY.ONE_TIME_PAYMENT||(null==d?void 0:d.type)==="transaction";return(0,e.jsxs)(np,{children:[(0,e.jsxs)(J,{children:[s&&!h&&(0,e.jsx)(nu,{children:x("Purchased")}),(0,e.jsxs)(nn,{children:[(0,e.jsxs)(na,{ref:j,$showTitleGradient:T,children:[(0,e.jsx)(nt,{children:o}),d&&"Q3DVVLo8ZchRdIyIjaix"===d.id&&(0,e.jsx)(nc,{children:x("Best value")})]}),(0,e.jsx)(X,{ref:C,$isScrollable:w||T,children:(0,e.jsx)(F,{benefits:a})}),(0,e.jsxs)(ni,{ref:E,$showBefore:w,children:[!A&&(0,e.jsxs)(nd,{children:[(0,e.jsxs)(ne,{children:[(null==d?void 0:d.regularPrice)&&M&&(0,e.jsxs)(nv,{children:[d.regularPrice.amount," ",M]}),(0,e.jsxs)(nf,{children:[(0,e.jsx)(no,{isPrimary:(null==d?void 0:d.id)==="Q3DVVLo8ZchRdIyIjaix",children:P?"":"".concat((0,l.multiplyPrice)((null==d?void 0:d.price)||0,m)," ").concat(M)}),!h&&(0,e.jsx)(nl,{children:N}),(null==d?void 0:d.trialPeriod)&&(0,e.jsxs)(nr,{children:["(",Math.floor(d.trialPeriod/864e5)," ",g.Z.t("days free"),")"]})]})]}),h&&(0,e.jsx)(r.wx.QuantityRangeInput,{maxQuantity:null!==(t=null==d?void 0:d.maxQuantity)&&void 0!==t?t:100,minQuantity:1,onChange:b,value:m})]}),void 0!==y&&y>0&&(0,e.jsx)(K,{children:O}),(0,e.jsx)(ns,{onClick:()=>{r.fv.reportElementClick(s?v.AnalyticsElementId.BTN_CANCEL_SUBSCRIPTION:v.AnalyticsElementId.BTN_SUBSCRIBE),null==c||c.onClick(h?m:void 0)},$showBorder:s&&!(s&&_),label:A?x("KONTAKTOVAT"):P?x("Free"):h?x("Buy voucher/s"):_?x("Buy"):s?s?x("Cancel subscription"):"string"==typeof c.label?c.label:"":x("Subscribe"),variant:!h&&s?"secondary":"primary",isDisabled:s&&_})]})]})]}),u&&d&&!h&&!A&&(0,e.jsx)(D,{monetization:d,purchaseAsVoucherText:p||x("Buy")})]})},nx=(0,C.observer)(n=>{var i,t,o,a,c,d,s,u;let{monetization:p,voucherPurchase:h}=n,{user:x}=(0,r.aF)(),{selectMonetization:m,errors:b}=S(h),{showError:y}=(0,T.V)(),w=r.PT.useOrganizationSettings("voucher"),[I,C]=f.useState(Number(p.price)),E=!!p.cta,{enabled:z=!0}=null!==(c=null===(t=r.DY.organization)||void 0===t?void 0:null===(i=t.settings)||void 0===i?void 0:i.cancelledSubscriptionDiscount)&&void 0!==c?c:{},Z=null==x?void 0:x.purchasedSubscriptions.find(n=>n.monetizationId===p.id&&n.status!==v.PurchaseStatus.CANCELLING&&!n.isVoucherActivation);(0,f.useEffect)(()=>{(async()=>{var n;if(!z)return;let i=await (null==x?void 0:x.getAllExtendableSubscriptions());if(!i)return;let t=i.find(n=>{var i,t;return n.monetizationRef.id===p.id&&"voucher"!==n.gateway&&(0,l.isLessThanOneMonthBeforeToday)(n.expirationDate)&&(null===(i=n.monetization)||void 0===i?void 0:i.price)&&Number(n.monetization.price)<Number(null!==(t=p.price)&&void 0!==t?t:0)}),e=null==t?void 0:null===(n=t.monetization)||void 0===n?void 0:n.price;null!=e&&C(e)})()},[x]),(0,f.useEffect)(()=>{b&&b.forEach(n=>y(n))},[JSON.stringify(b)]);let P=null===(a=r.DY.organization)||void 0===a?void 0:null===(o=a.settings)||void 0===o?void 0:o.paymentFlow,N=p.currency?(0,l.formatCurrency)(p.currency):void 0,[A,O,M]=(()=>{var n,i,t,o,l,a,c;let d=r.DY.organization,s=null==d?void 0:null===(n=d.application)||void 0===n?void 0:n.organization,u=(null===(i=p.frequency)||void 0===i?void 0:i.unit)||p.frequency,f=p.frequency&&u!==v.MONETIZATION_FREQUENCY.ONE_TIME_PAYMENT?p.frequencyInfo&&p.frequencyInfo.value>1?" / ".concat(p.frequencyInfo.value," ").concat(g.Z.t(u)):" / ".concat(g.Z.t(u)):"",h=null===(l=p.frequencyInfo)||void 0===l?void 0:null===(o=l.title)||void 0===o?void 0:null===(t=o[null!==(c=null==s?void 0:s.defaultLanguage)&&void 0!==c?c:"cs"])||void 0===t?void 0:t.trim(),x=(null==s?void 0:s.showDurationDays)&&(null==p?void 0:p.durationDays)&&(null==p?void 0:p.durationDays)>0?" / ".concat(p.durationDays," ").concat((0,r.zL)(g.Z.t,p.durationDays)):"";if(Number(I)<p.originalPrice&&0!==I){let n=p.originalPrice,i="".concat(f);return["primary",(0,e.jsxs)("span",{children:[(0,e.jsx)(j,{children:n}),(0,e.jsx)("span",{children:" ".concat(i)})]}),!1]}if(0===I)return["primary",P===v.PaymentFlow.LEGACY?g.Z.t("Activate voucher"):"",!1];let m=(null===(a=p.frequency)||void 0===a?void 0:a.unit)===v.MONETIZATION_FREQUENCY.ONE_TIME_PAYMENT,b="".concat(g.Z.t("Buy for")).concat(g.Z.t(" {{price}} {{currencySymbol}}",{price:I,currencySymbol:N})),y=m?"":(h?" / ".concat(h):"")||f,w=m?(n=>{if((null==s?void 0:s.showDurationDaysForOneTimeSubscription)&&n)switch(n){case v.MONETIZATION_DURATION.DAY:return"/ ".concat(g.Z.t("day"));case 2:case 3:case 4:return"/ ".concat(g.Z.t("{{days}} Days",{days:n}));case v.MONETIZATION_DURATION.WEEK:return"/ ".concat(g.Z.t("Week"));case v.MONETIZATION_DURATION.MONTH:return"/ ".concat(g.Z.t("Month"));case v.MONETIZATION_DURATION.HALF_YEAR:return"/ ".concat(g.Z.t("Half year"));case v.MONETIZATION_DURATION.YEAR:return"/ ".concat(g.Z.t("Year"));case v.MONETIZATION_DURATION.UNLIMITED:return"/ ".concat(g.Z.t("Unlimited"));default:return"/ ".concat(n.toString()," ").concat(g.Z.t("daysShort"))}return""})(p.durationDays):x;return["primary",P===v.PaymentFlow.LEGACY?"".concat(b).concat(y).concat(w):"".concat(y).concat(w),!1]})(),_=E?{onClick:()=>{var n;(null===(n=p.cta)||void 0===n?void 0:n.type)==="email"&&(window.location.href="mailto:".concat(p.cta.payload.email))},color:"primary",label:g.Z.t("KONTAKTOVAT"),disabled:!1,id:v.AnalyticsElementId.BTN_SELECT_MONETIZATION}:{onClick:n=>{var i;r.fv.reportElementClick(v.AnalyticsElementId.BTN_SELECT_MONETIZATION),r.fv.reportLocationChange(v.AnalyticsConversionPage.SubscriptionCard,p.id,{price:null===(i=p.price)||void 0===i?void 0:i.toString(),currency:p.currency,frequency:(0,l.getFrequencyString)(p),monetization_name:p.name}),m(p,n)},color:A,label:O,disabled:M,id:v.AnalyticsElementId.BTN_SELECT_MONETIZATION},k=P===v.PaymentFlow.LEGACY?$:nh;return(0,e.jsx)(k,{title:null!==(d=null==p?void 0:p.name)&&void 0!==d?d:"",caption:null!==(s=null==p?void 0:p.description)&&void 0!==s?s:"",benefits:null!==(u=null==p?void 0:p.localizedBenefits)&&void 0!==u?u:[],button:_,subscriptionPurchased:void 0!==Z,voucherPurchase:!E&&h,isPurchasableAsVoucher:!E&&p.isPurchasableAsVoucher&&!(null==w?void 0:w.disableVoucherButtonInMonetizationCard),purchaseAsVoucherText:p.isPurchasableAsVoucher?"".concat(g.Z.t("Gift for {{price}} {{currencySymbol}}",{price:p.price,currencySymbol:N})):g.Z.t("Buy"),monetization:p})}),ng=(0,x.ZP)(o.Z).withConfig({componentId:"sc-30f51288-0"})(["padding-top:4rem;","{padding-top:2rem;}"],n=>{let{theme:i}=n;return i.breakpoints.down("sm")}),nm=x.ZP.div.withConfig({componentId:"sc-30f51288-1"})(["display:flex;justify-content:center;align-items:center;min-height:50vh;padding:","px 0;width:100%;"],n=>{let{theme:i}=n;return i.spacing(4)}),nb=x.ZP.div.withConfig({componentId:"sc-30f51288-2"})(["max-width:","px;width:100%;margin:0 auto;"],I.C),ny=x.ZP.div.withConfig({componentId:"sc-30f51288-3"})(["display:flex;flex-wrap:wrap;gap:24px;justify-content:center;padding-bottom:","px;align-items:stretch;> div{flex:1;
1flex-basis:320px;max-width:347px;height:725px;","{max-width:50%;}","{max-width:420px;}}"],n=>{let{theme:i}=n;return i.spacing(4)},n=>{let{theme:i}=n;return i.breakpoints.down("sm")},n=>{let{theme:i}=n;return i.breakpoints.down(710)}),nw=n=>{let{onClick:i}=n;return(0,e.jsx)(w.X,{rowProps:{justifyContent:"center",style:{marginTop:32}},spacing:4,children:(0,e.jsx)(r.wx.Button,{variant:"secondary",size:"large",leftIcon:r.wx.Icons.GiftIcon,onClick:()=>{i(),r.fv.reportElementClick(v.AnalyticsElementId.BTN_ACTIVATE_VOUCHER_OVERLAY)},label:g.Z.t("Activate voucher"),id:v.AnalyticsElementId.BTN_ACTIVATE_VOUCHER_OVERLAY})})},nI=()=>{let{webConfig:n}=(0,y.J)(),{applicationOrganizationID:i}=r.PT.useCurrentApplication(),{subscriptions:t}=(0,r.c3)(void 0,void 0,i,!0),{user:o}=(0,r.aF)(),{allowFrequencySwitcher:v,selectedSubscription:x,selectedFrequency:g,availableFrequencies:w,setSelectedSubscription:I}=(0,u.iw)(),C=(0,h.useMediaQuery)({maxWidth:m.I}),E=n.monetizationOverride,j=t.filter(n=>null==E?void 0:E.includes(n.id)),T=(0,l.populateMonetizations)({allOrganizationSubscriptions:t,user:o,overrideSubscriptions:j}).filter(n=>{var i,t,e;return n.organizationId===(null===(e=r.DY.organization)||void 0===e?void 0:null===(t=e.application)||void 0===t?void 0:null===(i=t.organization)||void 0===i?void 0:i.id)}).sort((n,i)=>{var t,e;return(null!==(t=n.order)&&void 0!==t?t:0)-(null!==(e=i.order)&&void 0!==e?e:0)});return((0,f.useEffect)(()=>{var n;if(!v||!g||0===T.length)return;let i=g.unit;if(!x||(null===(n=x.frequency)||void 0===n?void 0:n.unit)!==i){let n=T.find(n=>{var t;return(null===(t=n.frequency)||void 0===t?void 0:t.unit)===i});n&&I(n)}},[v,g,T,x,I]),x)?(0,e.jsx)(ng,{maxWidth:"xl",children:(0,e.jsx)(nm,{children:(0,e.jsxs)(nb,{children:[v&&(0,e.jsx)(s.I,{allowFrequencySwitcher:v,availableFrequencies:w}),(0,e.jsx)(c.R,{subscription:x,disableChooseButton:!0})]})})}):(0,e.jsxs)(ng,{maxWidth:"xl",children:[(0,e.jsx)(p.I,{subscriptions:T,renderSubscription:n=>C?(0,e.jsx)(a.W,{subscription:n},n.id):(0,e.jsx)(d.U,{subscription:n,showPaymentMode:!1,isSubscriptionsPage:!0},n.id)}),n.supportVouchers&&(0,e.jsx)(nw,{onClick:()=>{(0,b.YV)()}})]})},nC=()=>{let{webConfig:n}=(0,y.J)(),{applicationOrganizationID:i}=r.PT.useCurrentApplication(),{subscriptions:t}=(0,r.c3)(void 0,void 0,i,!0),{user:o}=(0,r.aF)(),a=n.monetizationOverride,c=t.filter(n=>null==a?void 0:a.includes(n.id)),d=(0,l.populateMonetizations)({allOrganizationSubscriptions:t,user:o,overrideSubscriptions:c}).filter(n=>{var i,t,e;return n.organizationId===(null===(e=r.DY.organization)||void 0===e?void 0:null===(t=e.application)||void 0===t?void 0:null===(i=t.organization)||void 0===i?void 0:i.id)}).sort((n,i)=>{var t,e;return(null!==(t=n.order)&&void 0!==t?t:0)-(null!==(e=i.order)&&void 0!==e?e:0)});return(0,e.jsxs)(ng,{maxWidth:"xl",children:[(0,e.jsx)(ny,{children:d.map(n=>(0,e.jsx)(nx,{monetization:n},n.id))}),n.supportVouchers&&(0,e.jsx)(nw,{onClick:()=>{(0,b.YV)()}})]})},nE=()=>{var n,i,t,o;let l=null===(i=r.DY.organization)||void 0===i?void 0:null===(n=i.application)||void 0===n?void 0:n.organization;return(null!==(o=null==l?void 0:null===(t=l.settings)||void 0===t?void 0:t.paymentFlow)&&void 0!==o?o:v.PaymentFlow.NEW)===v.PaymentFlow.LEGACY?(0,e.jsx)(nC,{}):(0,e.jsx)(u.YH,{children:(0,e.jsx)(nI,{})})}}}]);
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.