PageSourceSearch

https://szerzi.hu/common-a638a7f8.2faeadf11eb4847d.js

js szerzi.hu collected 2026-10-04 13:25:47 UTC 48,483 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[7767],{77090:(gn,k,c)=>{c.d(k,{k:()=>P});var J=c(97582),r=c(71997),C=c(44224),M=c(44569),Q=c(78321),H=c(36057),Y=c(52835),m=c(45218),N=c(28736),y=c(5963),v=c(92961),t=c(94650),W=c(25156),R=c(32925),j=c(50211),G=c(31495),q=c(39889),$=c(52632),X=c(75489),tt=c(47959),nt=c(3417),et=c(81404),it=c(3674),st=c(61479),U=c(24006),f=c(36895),ot=c(47216),at=c(79647),rt=c(39597),ct=c(70048),lt=c(66616),ut=c(47044),dt=c(21811),_t=c(51971),pt=c(4788),z=c(17131),ht=c(47423),O=c(66152),St=c(6497),L=c(48521),D=c(20545),gt=c(6672),bt=c(37570),Tt=c(75775),Et=c(52153),It=c(955),B=c(12987),mt=c(81801);const At=["contentTemplate"],Ct=["subscribeFooter"],Ot=["cancelModuleContent"],Pt=["cancelModuleFooter"],Mt=function(s){return{startDate:s}};function vt(s,e){if(1&s&&(t._UZ(0,"nz-alert",13),t.ALo(1,"translate"),t.ALo(2,"date")),2&s){const n=t.oxw();t.Q6J("nzMessage",t.xi3(1,1,"CLIENT.PROFILE.SUBSCRIPTIONS.TAX_CHANGE_WARNING",t.VKq(7,Mt,t.xi3(2,4,n.currentSubscriptionState.periodEnd,"yyyy-MM-dd"))))}}function ft(s,e){if(1&s&&(t.TgZ(0,"nz-tag",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&s){const n=t.oxw(2);t.Q6J("nzColor",n.ColorSettings.Primary),t.xp6(1),t.hij(" ",t.lcZ(2,2,"COMMON.COMING_SOON")," ")}}function xt(s,e){if(1&s&&(t.TgZ(0,"nz-tag",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&s){const n=t.oxw(2);t.Q6J("nzColor",n.ColorSettings.Primary),t.xp6(1),t.hij(" ",t.lcZ(2,2,"COMMON.COMING_SOON")," ")}}const K=function(s){return[s,0]},Z=function(){return[0,0]};function Lt(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.plans=o)}),t.TgZ(1,"nz-badge",15)(2,"label",16),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.planChange())}),t._uU(3),t.ALo(4,"translate"),t.YNc(5,ft,3,4,"nz-tag",17),t.qZA()(),t.TgZ(6,"nz-badge",15)(7,"label",18),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.planChange())}),t._uU(8),t.ALo(9,"translate"),t.YNc(10,xt,3,4,"nz-tag",17),t.qZA()()()}if(2&s){const n=t.oxw();t.Q6J("ngModel",n.plans),t.xp6(1),t.Q6J("nzShowDot",n.hasOtherSubscription&&"monthly"!==n.plans)("nzOffset",t.VKq(15,K,"hu"!==n.dateLocale?-194:-157)),t.xp6(1),t.Q6J("nzDisabled",!n.EnvironmentService.config.subscriptionsMonthlyEnabled),t.xp6(1),t.hij(" ",t.lcZ(4,11,"CLIENT.PROFILE.SUBSCRIPTIONS.PLANS.MONTHLY")," "),t.xp6(2),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsMonthlyEnabled),t.xp6(1),t.Q6J("nzShowDot",n.hasOtherSubscription&&"annually"!==n.plans)("nzOffset",t.DdM(17,Z)),t.xp6(1),t.Q6J("nzDisabled",!n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.hij(" ",t.lcZ(9,13,"CLIENT.PROFILE.SUBSCRIPTIONS.PLANS.ANNUALLY")," "),t.xp6(2),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsAnnualEnabled)}}function Dt(s,e){1&s&&(t._UZ(0,"nz-empty",20),t.ALo(1,"translate")),2&s&&t.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,3,"CLIENT.PROFILE.SUBSCRIPTIONS.COMING_SOON"))}function Nt(s,e){1&s&&(t.ynx(0),t.TgZ(1,"li",40)(2,"div",41),t._UZ(3,"nz-skeleton-element",42),t.qZA()(),t.BQk()),2&s&&(t.xp6(3),t.Q6J("nzActive",!0))}const F=function(){return{"padding-top":"3rem"}};function yt(s,e){1&s&&(t.TgZ(0,"div",28)(1,"nz-card",29)(2,"div",30)(3,"div",31),t._UZ(4,"nz-skeleton-element",32),t.TgZ(5,"div",33),t._UZ(6,"nz-skeleton-element",34)(7,"nz-skeleton-element",35)(8,"nz-skeleton-element",34),t.qZA()()(),t.TgZ(9,"ul",36),t.YNc(10,Nt,4,1,"ng-container",37),t.ALo(11,"numberArray"),t.qZA(),t.TgZ(12,"div",38),t._UZ(13,"nz-skeleton-element",39),t.qZA()()()),2&s&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzBodyStyle",t.DdM(11,F)),t.xp6(3),t.Q6J("nzActive",!0)("nzSize",100),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,9,7)),t.xp6(3),t.Q6J("nzActive",!0))}function Rt(s,e){1&s&&(t.ynx(0),t.YNc(1,yt,14,12,"div",27),t.ALo(2,"numberArray"),t.BQk()),2&s&&(t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,3)))}function Ut(s,e){1&s&&(t.ynx(0),t.TgZ(1,"p",43),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"CLIENT.PROFILE.SUBSCRIPTIONS.LOAD_FAILED")," "))}const zt=function(s,e,n){return{"active-subscription-shadow":s,"pending-subscription-shadow":e,"mixed-subscription-shadow":n}};function Bt(s,e){if(1&s&&t._UZ(0,"div",49),2&s){const n=t.oxw().index,i=t.oxw(3);t.Q6J("ngClass",t.kEZ(1,zt,i.hasDiv[n]&&!i.hasSubscription[n]&&!i.hasPendingDiv[n]&&
1!i.hasPendingSubscription[n],!i.hasDiv[n]&&!i.hasSubscription[n]&&i.hasPendingDiv[n]&&!i.hasPendingSubscription[n],i.hasDiv[n]&&!i.hasSubscription[n]&&i.hasPendingDiv[n]&&i.hasPendingSubscription[n]))}}function Kt(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div",46),t.YNc(1,Bt,1,5,"div",47),t.TgZ(2,"app-subscription-module-card",48),t.NdJ("subscriptionChanged",function(){t.CHM(n);const o=t.oxw(3);return t.KtG(o.getSubscriptions())})("cartEmitter",function(o){const p=t.CHM(n).$implicit,b=t.oxw(3);return t.KtG(b.handleCartChange(o,p))}),t.qZA()()}if(2&s){const n=e.$implicit,i=e.index,o=e.last,a=t.oxw(3);t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngIf",a.hasDiv[i]&&!a.hasSubscription[i]||a.hasPendingDiv[i]&&!a.hasPendingSubscription[i]),t.xp6(1),t.Q6J("id","hasSubscription"+i)("activeSubscriptionPlan",a.subscriptionStatePlan)("activeSubscriptionState",a.currentSubscriptionState)("allSubscriptionStates",a.allSubscriptionState)("duration",a.duration)("hasBilling",a.hasBilling)("hasPayment",a.hasPayment)("index",i)("module",n)("pendingPlan",a.pendingPlan)("visiblePlans",a.shownPlans)("showFeedback",o)("loadedActiveSubscriptions",a.loadedActiveSubscriptions)("relatedSubscriptionKeys",a.relatedSubscriptionKeys)("relatedModuleKeys",a.relatedModuleKeys)("allPlans",a.allPlans)("availableContracts",a.availableContracts)("contractLightIcon",a.contractLightIcons[n.ID])("contractDarkIcon",a.contractDarkIcons[n.ID])("isAddedToCart",a.isAddedToCartList[n.ID])("contract",a.contractsByModule[n.ID])("isActive",a.activeSubscriptions[n.ID])("canceledModule",a.canceledModule[n.ID])("pendingModule",a.pendingModule[n.ID])("allModules",a.allModules)("VATIncludedModuleKeysArr",a.VATIncludedModuleKeysArr)("VATExcludedModuleKeysArr",a.VATExcludedModuleKeysArr)("width",a.width)("phoneView",a.phoneView)}}function Zt(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"div",44),t.YNc(2,Kt,3,31,"div",45),t.qZA(),t.BQk()),2&s){const n=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",n.shownModules)}}function Ft(s,e){1&s&&(t._UZ(0,"i",50),t._uU(1),t.ALo(2,"translate")),2&s&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CART.TITLE")," "))}const wt=function(){return{title:"@todo"}};function Vt(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"nz-list-item",54)(1,"nz-list-item-meta",59)(2,"nz-list-item-meta-title"),t._uU(3),t.qZA(),t.TgZ(4,"nz-list-item-meta-description")(5,"div",60),t._uU(6),t.ALo(7,"translate"),t.qZA()()(),t.TgZ(8,"span",56),t._uU(9),t.ALo(10,"formatCurrency"),t.ALo(11,"formatCurrencyName"),t.qZA(),t.TgZ(12,"ul",57)(13,"nz-list-item-action")(14,"button",61),t.NdJ("click",function(){const a=t.CHM(n).$implicit,p=t.oxw(3);return t.KtG(p.handleCartChange(!1,a))}),t._UZ(15,"i",62),t._uU(16),t.ALo(17,"translate"),t.qZA()()()()}if(2&s){const n=e.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("nzAvatar",i.contractDarkIcons[n.ID]),t.xp6(2),t.hij(" ",n.translations[i.currentLanguageDashedServerFormat]," "),t.xp6(3),t.hij(" ",t.xi3(7,6,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CART.LIST_ITEM_DESC",t.DdM(15,wt))," "),t.xp6(3),t.AsE(" ",t.lcZ(10,9,n.price)," ",t.lcZ(11,11,n.currency)," * "),t.xp6(7),t.hij(" ",t.lcZ(17,13,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.REMOVE_FROM_CART")," ")}}function kt(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"p",51),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"nz-list",52),t.YNc(5,Vt,18,16,"nz-list-item",53),t.qZA(),t.TgZ(6,"nz-list")(7,"nz-list-item",54)(8,"nz-list-item-meta",55)(9,"nz-list-item-meta-title"),t._uU(10),t.ALo(11,"translate"),t.TgZ(12,"p",51),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.ALo(16,"translate"),t.qZA()()(),t.TgZ(17,"span",56),t._uU(18),t.ALo(19,"formatCurrency"),t.ALo(20,"formatCurrencyName"),t.qZA(),t.TgZ(21,"ul",57)(22,"nz-list-item-action"),t._UZ(23,"app-multi-state-button",58),t.ALo(24,"translate"),t.qZA()()()(),t.BQk()),2&s){const n=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,11,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CART.TITLE_DESC")," "),t.xp6(3),t.Q6J("ngForOf",n.cart),t.xp6(5),t.hij(" ",t.lcZ(11,13,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CART.TOTAL")," "),t.xp6(3),t.hij(" * ",n.clientStatus?n.clientStatus.valueAddedTax===n.VATValue.Standard?t.lcZ(1
15,17,"CLIENT.PROFILE.BUNDLES.VAT_INFO_27"):t.lcZ(16,19,"CLIENT.PROFILE.BUNDLES.VAT_INFO_0"):t.lcZ(14,15,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_TEMP_PRICE")," "),t.xp6(5),t.AsE(" ",t.lcZ(19,21,n.moduleSumPrice)," ",t.lcZ(20,23,n.moduleSumCurrency)," * "),t.xp6(5),t.Q6J("nzGhost",!n.loadedActiveSubscriptions)("nzTooltipTitle",n.loadedActiveSubscriptions?null:t.lcZ(24,25,"CLIENT.PROFILE.SUBSCRIPTIONS.LOAD_FAILED_TOOLTIP"))("defaultFunction",n.subscribeFunction)("stickResult",!1)("nzTextKeys",n.startSubscriptionText)}}function Jt(s,e){if(1&s&&(t.TgZ(0,"div"),t._UZ(1,"app-multi-state-button",63),t.TgZ(2,"p",64),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&s){const n=t.oxw(3);t.xp6(1),t.Q6J("defaultIcon","close")("defaultFunction",n.unsubscribeModalFunction)("stickResult",!1)("nzTextKeys",n.unsubscribeModalText),t.xp6(2),t.hij(" ",t.lcZ(4,5,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_DESC")," ")}}function Qt(s,e){if(1&s&&(t.ynx(0),t.YNc(1,Jt,5,7,"div",23),t.BQk()),2&s){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.hasActiveModuleSubscription)}}function Ht(s,e){if(1&s&&(t.TgZ(0,"div",21)(1,"div",22),t.YNc(2,Rt,3,3,"ng-container",23),t.YNc(3,Ut,4,3,"ng-container",23),t.YNc(4,Zt,3,1,"ng-container",23),t.YNc(5,Ft,3,3,"ng-template",null,24,t.W1O),t.TgZ(7,"nz-drawer",25),t.YNc(8,kt,25,27,"ng-container",26),t.qZA()(),t.YNc(9,Qt,2,1,"ng-container",23),t.qZA()),2&s){const n=t.MAs(6),i=t.oxw();t.xp6(2),t.Q6J("ngIf",null==i.hasBilling||null==i.hasPayment||i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.shownPlans&&!i.isLoading),t.xp6(1),t.Q6J("ngIf",i.shownModules&&null!=i.hasBilling&&null!=i.hasPayment&&!i.isLoading),t.xp6(3),t.Q6J("nzZIndex",0)("nzClosable",!1)("nzVisible",i.isCartVisible)("nzTitle",n)("nzMask",!1)("nzHeight","auto"),t.xp6(2),t.Q6J("ngIf",i.shownModules&&null!=i.hasBilling&&null!=i.hasPayment&&!i.isLoading)}}function Yt(s,e){if(1&s&&(t.TgZ(0,"nz-tag",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&s){const n=t.oxw(2);t.Q6J("nzColor",n.ColorSettings.Primary),t.xp6(1),t.hij(" ",t.lcZ(2,2,"COMMON.COMING_SOON")," ")}}function Wt(s,e){if(1&s&&(t.TgZ(0,"nz-tag",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&s){const n=t.oxw(2);t.Q6J("nzColor",n.ColorSettings.Primary),t.xp6(1),t.hij(" ",t.lcZ(2,2,"COMMON.COMING_SOON")," ")}}function jt(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"nz-radio-group",65),t.NdJ("ngModelChange",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.plans=o)}),t.TgZ(1,"nz-badge",15)(2,"label",16),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.planChange())}),t._uU(3),t.ALo(4,"translate"),t.YNc(5,Yt,3,4,"nz-tag",17),t.qZA()(),t.TgZ(6,"nz-badge",15)(7,"label",18),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.planChange())}),t._uU(8),t.ALo(9,"translate"),t.YNc(10,Wt,3,4,"nz-tag",17),t.qZA()()()}if(2&s){const n=t.oxw();t.Q6J("ngModel",n.plans),t.xp6(1),t.Q6J("nzShowDot",n.hasOtherSubscription&&"monthly"!==n.plans)("nzOffset",t.VKq(15,K,"hu"!==n.dateLocale?-194:-157)),t.xp6(1),t.Q6J("nzDisabled",!n.EnvironmentService.config.subscriptionsMonthlyEnabled),t.xp6(1),t.hij(" ",t.lcZ(4,11,"CLIENT.PROFILE.SUBSCRIPTIONS.PLANS.MONTHLY")," "),t.xp6(2),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsMonthlyEnabled),t.xp6(1),t.Q6J("nzShowDot",n.hasOtherSubscription&&"annually"!==n.plans)("nzOffset",t.DdM(17,Z)),t.xp6(1),t.Q6J("nzDisabled",!n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.hij(" ",t.lcZ(9,13,"CLIENT.PROFILE.SUBSCRIPTIONS.PLANS.ANNUALLY")," "),t.xp6(2),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsAnnualEnabled)}}function Gt(s,e){1&s&&(t._UZ(0,"nz-empty",20),t.ALo(1,"translate")),2&s&&t.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",t.lcZ(1,3,"CLIENT.PROFILE.SUBSCRIPTIONS.COMING_SOON"))}function qt(s,e){1&s&&(t.ynx(0),t.TgZ(1,"li",40)(2,"div",41),t._UZ(3,"nz-skeleton-element",42),t.qZA()(),t.BQk()),2&s&&(t.xp6(3),t.Q6J("nzActive",!0))}function $t(s,e){1&s&&(t.TgZ(0,"div",28)(1,"nz-card",29)(2,"div",30)(3,"div",31),t._UZ(4,"nz-skeleton-element",32),t.TgZ(5,"div",33),t._UZ(6,"nz-skeleton-element",34)(7,"nz-skeleton-element",35)(8,"nz-skeleton-element",34),t.qZA()()(),t.TgZ(9,"ul",36),t.YNc(10,qt,4,1,"ng-container",37),t.ALo(11,"numberArray"),t.qZA(),t.TgZ(12,"div",38),t._UZ(13,"nz-skeleton-element",39),t.qZA()()()),2&s&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("nzBodyStyle",t.DdM(11,F)),t.xp6(3),t.Q6J("nzActive",!0)("nzSize",100),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,9,7)),t.xp6(3),t.Q6J("nzActive",!0))}function Xt(s,e){1&s&&(t.ynx(0),t.YNc(1,$t,14,12,"div",27),t.ALo(2,"numberArray"),t.BQk()),2&s&&(t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,3)))}function tn(s,e){1&s&&(t.ynx(0),t.TgZ(1,"p",43),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"CLIENT.PROFILE.SUBSCRIPTIONS.LOAD_FAILED")," "))}function nn(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div",28)(1,"app-subscription-card",71),t.NdJ("subscriptionChanged",function(){t.CHM(n);const o=t.oxw(3);return t.KtG(o.getSubscriptions())}),t.qZA()()}if(2&s){const n=e.$implicit,i=e.index,o=e.last,a=t.oxw(3);t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("activeSubscriptionPlan",a.subscriptionStatePlan)("activeSubscriptionState",a.currentSubscriptionState)("allSubscriptionStates",a.allSubscriptionState)("duration",a.duration)("hasBilling",a.hasBilling)("hasPayment",a.hasPayment)("index",i)("plan",n)("pendingPlan",a.pendingPlan)("visiblePlans",a.shownPlans)("showFeedback",o)("loadedActiveSubscriptions",a.loadedActiveSubscriptions)("relatedSubscriptionKeys",a.relatedSubscriptionKeys)("allPlans",a.allPlans)("VATIncludedModuleKeysArr",a.VATIncludedModuleKeysArr)("VATExcludedModuleKeysArr",a.VATExcludedModuleKeysArr)("allModules",a.allModules)("relatedModuleKeys",a.relatedModuleKeys)}}function en(s,e){if(1&s&&(t.ynx(0),t.YNc(1,nn,2,19,"div",27),t.BQk()),2&s){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.shownPlans)}}function sn(s,e){if(1&s&&(t.TgZ(0,"div",9)(1,"div",66),t.YNc(2,Xt,3,3,"ng-container",23),t.YNc(3,tn,4,3,"ng-container",23),t.YNc(4,en,2,1,"ng-container",23),t.qZA(),t.TgZ(5,"div",67)(6,"p",68),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",69),t._UZ(12,"app-accepted-cards",70),t.qZA()()()),2&s){const n=t.oxw();
1t.xp6(2),t.Q6J("ngIf",null==n.hasBilling||null==n.hasPayment||n.isLoading),t.xp6(1),t.Q6J("ngIf",!n.shownPlans&&!n.isLoading),t.xp6(1),t.Q6J("ngIf",n.shownPlans&&null!=n.hasBilling&&null!=n.hasPayment&&!n.isLoading),t.xp6(3),t.hij(" * ",n.clientStatus?n.clientStatus.valueAddedTax===n.VATValue.Standard?t.lcZ(9,7,"CLIENT.PROFILE.BUNDLES.VAT_INFO_27"):t.lcZ(10,9,"CLIENT.PROFILE.BUNDLES.VAT_INFO_0"):t.lcZ(8,5,"CLIENT.CONTRACTS.FINALIZATION.BENEFITSLIST.MODAL_FOOTER_TEMP_PRICE")," "),t.xp6(5),t.Q6J("alternateStyle",!0)}}function on(s,e){1&s&&(t.TgZ(0,"div",72)(1,"p",73),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"a",74),t._uU(5),t.ALo(6,"translate"),t.qZA()()()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,3,"CLIENT.PROFILE.SUBSCRIPTIONS.DESC")," "),t.xp6(2),t.Q6J("href","/contact-us",t.LSH),t.xp6(1),t.Oqu(t.lcZ(6,5,"CLIENT.PROFILE.SUBSCRIPTIONS.DESC_CONTACT")))}function an(s,e){if(1&s&&(t.TgZ(0,"nz-list-item",78)(1,"nz-list-item-meta",59)(2,"nz-list-item-meta-title"),t._uU(3),t.qZA(),t.TgZ(4,"nz-list-item-meta-description"),t._uU(5),t.ALo(6,"translate"),t.ALo(7,"date"),t.qZA()()()),2&s){const n=e.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzAvatar",i.contractDarkIcons[n.ID]),t.xp6(2),t.hij(" ",n.translations[i.currentLanguageDashedServerFormat]," "),t.xp6(2),t.AsE(" ",t.lcZ(6,4,"CLIENT.PROFILE.SUBSCRIPTIONS.EXPIRES"),": ",t.xi3(7,6,i.currentSubscriptionState.periodEnd,"yyyy-MM-dd")," ")}}function rn(s,e){if(1&s&&(t.TgZ(0,"div",75)(1,"p",51),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"nz-list",76),t.YNc(5,an,8,9,"nz-list-item",77),t.qZA()()),2&s){const n=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,2,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_DESC")," "),t.xp6(3),t.Q6J("ngForOf",n.getSubscriptionModules())}}function cn(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div",79)(1,"div",80)(2,"button",81),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.stopUnsubscribe())}),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",82)(6,"app-multi-state-button",83),t.NdJ("nzOnConfirm",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.runUnsubscribeModule())}),t.ALo(7,"translate"),t.ALo(8,"translate"),t.ALo(9,"translate"),t._uU(10),t.ALo(11,"translate"),t.qZA()()(),t._UZ(12,"app-feedback",84)}if(2&s){const n=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,10,"CLIENT.PROFILE.SUBSCRIPTIONS.UNSUBSCRIBE.CANCEL")," "),t.xp6(3),t.Q6J("nzPopconfirmTitle",t.lcZ(7,12,"CLIENT.PROFILE.PAYMENT.POPCONFIRM.PLAN_UNSUBSCRIBE"))("nzOkText",t.lcZ(8,14,n.unsubscribeText[n.ButtonState.Default]))("nzCancelText",t.lcZ(9,16,"COMMON.CANCEL"))("runFunction",n.runUnsubscribeFunction)("nzTextKeys",n.unsubscribeText)("stickResult",!1),t.xp6(4),t.hij(" ",t.lcZ(11,18,"CLIENT.PROFILE.SUBSCRIPTIONS.UNSUBSCRIBE.CANCEL_CONFIRM"),""),t.xp6(2),t.Q6J("unit",n.FeedbackUnit.ImageUpload)("feature",n.FeedbackFeature.Modal)}}let P=class{constructor(e,n,i,o,a,p,b,l,_,E,u,d){this.nzModal=e,this.translate=n,this.clientService=i,this.onePage=o,this.routerService=a,this.paymentService=p,this.eventService=b,this.contractService=l,this.languageService=_,this.paymentModalService=E,this.utilService=u,this.resizeService=d,this.contracts=[],this.duration=this.translate.instant("CLIENT.ONE_PAGE.MONTH"),this.plans="monthly",this.toRefresh=this.onePage.subscriptionChanged,this.selectedPayment="",this.isUpdate=!1,this.isLoading=!0,this.paymentMethods=[],this.allSubscriptionState=new Map,this.hasOtherSubscription=!1,this.dateLocale="hu",this.loadedActiveSubscriptions=!1,this.relatedSubscriptionKeys={},this.allVATIncludedSubscriptionKeys=Object.keys(r.CyS),this.purchasableVATIncludedSubscriptionKeys=this.allVATIncludedSubscriptionKeys.filter(h=>h!==r.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()&&"SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1"!==h),this.allVATExcludedSubscriptionKeys=Object.keys(r.b__),this.purchasableVATExcludedSubscriptionKeys=this.allVATExcludedSubscriptionKeys.filter(h=>h!==r.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString()&&"SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1"!==h),this.VATIncludedModuleKeysArr=Object.keys(r.z6x),this.VATExcludedModuleKeysArr=Object.keys(r.rwb),this.relatedModuleKeys={},this.contractLightIcons={},this.contractDarkIcons={},this.contractsByModule={},this.cart=[],this.isAddedToCartList={}
1,this.isCartVisible=!1,this.moduleSumPrice=0,this.moduleSumCurrency=r.Fa6.HUF,this.activeSubscriptions={},this.canceledModule={},this.pendingModule={},this.hasActiveModuleSubscription=!1,this.unsubscribeReject=()=>{},this.taxChanged=!1,this.phoneView=!0,this.width=window.innerWidth,this.hasSubscription=[],this.hasDiv=[],this.hasPendingSubscription=[],this.hasPendingDiv=[],this.ButtonState=v.BN,this.ColorSettings=Q.y,this.EnvironmentService=m.L,this.FeedbackFeature=r.lrp,this.FeedbackUnit=r._0Z,this.PageRouter=M.d,this.StripeSubscriptionData=r.Oud,this.VATValue=r.di5}ngOnInit(){this.resizeService.width.subscribe(e=>{this.phoneView=e<1185,this.width=e,this.setHasSubscription()}),window.innerWidth<1185&&(this.phoneView=!0),this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(e=>{this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(e.lang)}),this.navigatorLinks=[{text:"COMMON.NAVIGATOR.ROUTE.INVOICES",href:this.routerService.getRouteToSettingsTab(M.d.settingsInvoicesTab),action:()=>this.routerService.routeToSettingsTab(M.d.settingsInvoicesTab)},{text:"COMMON.NAVIGATOR.ROUTE.ORDERS",href:this.routerService.getRouteToSettingsTab(M.d.settingsOrdersTab),action:()=>this.routerService.routeToSettingsTab(M.d.settingsOrdersTab)}],this.createSubscriptionKeyList(),(m.L.config.subscriptionsMonthlyEnabled||m.L.config.subscriptionsAnnualEnabled)&&(this.translate.currentLang&&(this.dateLocale=this.translate.currentLang),this.translate.onLangChange.subscribe(e=>{this.dateLocale=e.lang}),this.subscriptions=[],this.clientService.getContracts().pipe((0,C.t)(this)).subscribe(e=>{this.contracts=e.sort((n,i)=>n.quota>i.quota?1:-1)}),this.getSubscriptionPlans(),this.toRefresh.subscribe(e=>{this.getSubscriptions(e)})),this.clientStatus=this.eventService.clientStatus,this.planChange(),this.moduleChange(),this.updateTaxChanged(),this.eventService.changedClientStatus.subscribe(e=>{this.clientStatus=e,this.planChange(),this.moduleChange(),this.updateTaxChanged()}),this.subscribeFunction=()=>this.subscribeToModule(this.cart,!0),this.unsubscribeModalFunction=e=>this.unsubscribeModal(e),this.setButtonTranslations()}getSubscriptionPlans(){this.clientService.getSubscriptionPlans().pipe((0,C.t)(this)).subscribe(e=>{this.allPlans=[...e].sort((n,i)=>n.rank>i.rank?1:-1),this.allPlans.forEach(n=>{12===n.months&&(n.rank+=10)}),this.shownPlans=this.allPlans.filter(n=>1!==n.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.purchasableVATExcludedSubscriptionKeys.includes(n.ID):this.purchasableVATIncludedSubscriptionKeys.includes(n.ID)),this.getSubscriptions()}),this.clientService.getModules().pipe((0,C.t)(this)).subscribe(e=>{this.allModules=[...e],this.shownModules=this.allModules.filter(n=>1!==n.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.VATExcludedModuleKeysArr.includes(n.ID):this.VATIncludedModuleKeysArr.includes(n.ID)),this.setHasSubscription(),this.createModuleKeyList(),this.contractService.getAvailableContracts().then(n=>{this.availableContracts=n,this.allModules.forEach(i=>{const o=this.availableContracts.find(a=>a.name===i.kindName);o&&(this.contractLightIcons[i.ID]=N.i.apiRouteContractIcon(o.formDisplayElements.iconLight),this.contractDarkIcons[i.ID]=N.i.apiRouteContractIcon(o.formDisplayElements.iconDark),this.contractsByModule[i.ID]=o)})}),this.getSubscriptions()})}getSubscriptions(e){this.isLoading=!0,this.clientService.getPaymentMethod().pipe((0,C.t)(this)).subscribe(n=>{this.paymentMethods=n},n=>{this.paymentMethods=[]}).add(()=>{this.clientService.getSubscriptionState().pipe((0,C.t)(this)).subscribe(n=>{let i=[];if(i=n.filter(o=>!o.expiration||o.expiration>Date.now()),e){const o=i.findIndex(a=>a.ID===e.ID);-1===o?i.push(e):i[o]=e}this.subscriptions=[...i],this.allSubscriptionState.clear(),this.subscriptionStatePlan=null,this.setHasSubscription(),this.currentSubscriptionState=null,this.currentActiveSubscriptionID=null,this.activeSubscriptions={},this.hasActiveModuleSubscription=!1,this.subscriptions.forEach((o,a)=>{const p=this.paymentMethods.find(_=>_.token===o.methodToken),b=new H.OL(o,p),l=this.relatedSubscriptionKeys[o.key];if(l&&Array.isArray(l)&&l.length>0?l.forEach(_=>this.addSubscriptionState(_,b)):this.addSubscriptionState(o.key,b),o.providerData.status!==r.uxK.STRIPE_ACTIVE||o.providerData.cancelAtPeriodEnd||o.providerData.subscriptionKeyAtNextPeriod===o.key)this.pendingPlan=null;else{const _=o.providerData.subscriptionKeyAtNextPeriod,E=o.providerData.subscriptionModulesAtNextPeriod;this.pendingPlan=this.allPlans.find(h=>h.ID===_);
1const u=new r.pxB(o.ID,o.buyer,_,o.methodToken,o.periodEnd,null,o.periodEnd,this.pendingPlan?this.pendingPlan.quota:0,null,new r.Oud(r.uxK.STRIPE_PENDING,o.providerData.subscriptionKeyAtNextPeriod,o.providerData.subscriptionModulesAtNextPeriod,o.providerData.cancelAtPeriodEnd),null,E),d=this.relatedSubscriptionKeys[_];d&&Array.isArray(d)&&d.length>0?d.forEach(h=>this.addSubscriptionState(h,u)):this.addSubscriptionState(_,u)}if(Object.keys(this.subscriptions).length>0&&(o.providerData.status===r.gUs.BRAINTREE_ACTIVE||o.providerData.status===r.gUs.BRAINTREE_PENDING||o.providerData.status===r.uxK.STRIPE_ACTIVE)){const _=this.allPlans.find(u=>u.ID===o.key);let E=null;if(Object.keys(this.subscriptions).length>1){const u=this.subscriptions.find(d=>o.key!==d.key);u&&(E=this.allPlans.find(d=>d.ID===u.key))}null!=_&&(this.subscriptionStatePlan=_,this.setHasSubscription(),this.currentSubscriptionState=o,this.currentActiveSubscriptionID=_.ID,this.hasOtherSubscription=E&&E.months!==_.months,1!==this.subscriptionStatePlan.months||!m.L.config.subscriptionsMonthlyEnabled&&m.L.config.subscriptionsAnnualEnabled?(this.plans="annually",this.shownPlans=this.allPlans.filter(u=>1===u.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.purchasableVATExcludedSubscriptionKeys.includes(u.ID):this.purchasableVATIncludedSubscriptionKeys.includes(u.ID)),this.duration=this.translate.instant("CLIENT.ONE_PAGE.YEAR")):(this.shownPlans=this.allPlans.filter(u=>1!==u.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.purchasableVATExcludedSubscriptionKeys.includes(u.ID):this.purchasableVATIncludedSubscriptionKeys.includes(u.ID)),this.duration=this.translate.instant("CLIENT.ONE_PAGE.MONTH")),this.hasActiveModuleSubscription=this.currentSubscriptionState&&this.currentSubscriptionState.providerData&&this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod&&this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.length>0&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd,this.canceledModule={},this.currentSubscriptionState.modules.forEach(u=>{this.relatedModuleKeys[u].forEach(d=>{this.activeSubscriptions[d]=!0,this.canceledModule[d]=this.currentSubscriptionState.providerData&&(this.currentSubscriptionState.providerData.cancelAtPeriodEnd||!this.relatedModuleKeys[d].some(h=>this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.includes(h)))})}),this.pendingModule={},this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.forEach(u=>{this.relatedModuleKeys[u].forEach(d=>{this.pendingModule[d]=this.currentSubscriptionState.providerData&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&!this.relatedModuleKeys[d].some(h=>this.currentSubscriptionState.modules.includes(h))})}))}}),0===Object.keys(this.subscriptions).length&&(this.subscriptionStatePlan=null,this.setHasSubscription(),this.currentActiveSubscriptionID=null,!m.L.config.subscriptionsMonthlyEnabled&&m.L.config.subscriptionsAnnualEnabled&&(this.plans="annually",this.planChange())),this.updateTaxChanged(),(0,y.H)(0).pipe((0,C.t)(this)).subscribe(()=>{this.setHasSubscription()}),this.isLoading=!1,this.loadedActiveSubscriptions=!0},n=>{this.isLoading=!1,this.loadedActiveSubscriptions=!1})})}setHasSubscription(){this.hasSubscription=[],this.hasPendingSubscription=[],this.shownModules&&this.subscriptionStatePlan&&this.shownModules.forEach((e,n)=>{this.hasPendingSubscription.push(this.allSubscriptionState.get(this.subscriptionStatePlan.ID).some(i=>!this.relatedModuleKeys[e.ID].some(o=>i.modules.includes(o))&&this.relatedModuleKeys[e.ID].some(o=>i.providerData.subscriptionModulesAtNextPeriod.includes(o)))),this.hasSubscription.push(!this.hasPendingSubscription[n]&&this.allSubscriptionState.get(this.subscriptionStatePlan.ID).some(i=>this.relatedModuleKeys[e.ID].some(o=>i.modules.includes(o))))}),this.calculateEmptyDivsHeight()}calculateEmptyDivsHeight(){this.hasDiv=[],this.hasPendingDiv=[];const e=this.hasSubscription.findIndex(n=>n);if(e>-1){const n=document.getElementById("hasSubscription"+e);let i=0;n&&(i=n.offsetWidth);const o=document.getElementsByClassName("subscription-cards-container")[0]?.offsetWidth,a=Math.floor(o/i);let p,b;for(let l=0;l<this.shownModules.length;l+=a){p=this.hasSubscription.slice(l,l+a);const _=p.find(u=>u);b=this.hasPendingSubscription.slice(l,l+a);const E=b.find(u=>u);for(let u=l;u<Math.min(l+a,this.shownModules.length);u++)this.hasDiv.push(!!_),this.hasPendingDiv.push(!!E)}}}
1planChange(){"annually"===this.plans&&this.allPlans?(this.shownPlans=this.allPlans.filter(e=>1===e.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.purchasableVATExcludedSubscriptionKeys.includes(e.ID):this.purchasableVATIncludedSubscriptionKeys.includes(e.ID)),this.duration=this.translate.instant("CLIENT.ONE_PAGE.YEAR")):this.allPlans&&(this.shownPlans=this.allPlans.filter(e=>1!==e.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.purchasableVATExcludedSubscriptionKeys.includes(e.ID):this.purchasableVATIncludedSubscriptionKeys.includes(e.ID)),this.duration=this.translate.instant("CLIENT.ONE_PAGE.MONTH"))}moduleChange(){this.allModules&&(this.shownModules=this.allModules.filter(e=>1!==e.months||this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?this.VATExcludedModuleKeysArr.includes(e.ID):this.VATIncludedModuleKeysArr.includes(e.ID)),this.setHasSubscription())}updateTaxChanged(){const e=this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:r.di5.Standard,n=Object.keys(r.CyS),i=Object.keys(r.b__);this.taxChanged=this.currentSubscriptionState&&!(e===r.di5.Standard?n:i).includes(this.currentSubscriptionState.key)}addSubscriptionState(e,n){this.allSubscriptionState.has(e)?this.allSubscriptionState.get(e).push(n):this.allSubscriptionState.set(e,[n])}createSubscriptionKeyList(){this.relatedSubscriptionKeys={};const n=this.allVATExcludedSubscriptionKeys;this.allVATIncludedSubscriptionKeys.forEach((i,o)=>{const a=n[o],p=[i,a];this.relatedSubscriptionKeys[i]=p,this.relatedSubscriptionKeys[a]=p})}createModuleKeyList(){this.allModules&&(this.relatedModuleKeys={},this.allModules.forEach(e=>{this.allModules.forEach(n=>{e.kindCode===n.kindCode&&(this.relatedModuleKeys[e.ID]?this.relatedModuleKeys[e.ID].push(n.ID):this.relatedModuleKeys[e.ID]=[n.ID])})}))}handleCartChange(e,n){if(e&&!this.cart.includes(n))this.cart.push(n),this.isAddedToCartList[n.ID]=!0,this.moduleSumPrice+=n.price,this.moduleSumCurrency=n.currency;else if(!e){const i=this.cart.findIndex(o=>o.ID===n.ID);-1!==i&&(this.cart.splice(i,1),this.moduleSumPrice-=n.price),this.isAddedToCartList[n.ID]=!1}this.updateCartVisibility(),this.cart.length>0&&this.buttonUpdateText()}clearCart(){this.cart=[],this.isAddedToCartList={},this.updateCartVisibility()}updateCartVisibility(){if(this.isCartVisible=this.cart&&this.cart.length>0,this.drawerContainer||this.updateCartElementHeight(),this.isCartVisible){let e=window.scrollY;(0,y.H)(0).pipe((0,C.t)(this)).subscribe(()=>{document.documentElement.classList.remove("cdk-global-scrollblock"),window.scrollTo(null,e)})}}updateCartElementHeight(){const e=document.getElementsByClassName("cartDrawer");console.log(e),e.length>0&&(this.drawerContainer=e[0].parentElement,this.drawerContainer&&(this.drawerContainer.style.height="auto"))}buttonUpdateText(){const e=new Map;e.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.OTHER"),e.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.401"),e.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.499"),e.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.503"),this.startSubscriptionText=new v.PR(this.cart.length>1?"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.STARTS":"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.START","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGED",e)}setButtonTranslations(){this.buttonUpdateText();const e=new Map;e.set(0,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.FAILED"),e.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.401"),e.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.499"),e.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.503"),this.unsubscribeText=new v.PR("CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.WORKING","CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.SUCCESS",e),this.unsubscribeModalText=new v.PR("CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.WORKING","CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.CANCEL_ALL_BUTTON_STATES.SUCCESS",e)}getSubscriptionModules(){return this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(n=>this.allModules.find(i=>i.ID===n))}subscribeToModule(e,n,i=!1){if(this.loadedActiveSubscriptions){const o=this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:r.di5.Standard,a=Object.keys(r.CyS),p=Object.keys(r.b__),b=o===r.di5.Standard?a:p,l=this.currentSubscriptionState&&!b.includes(this.currentSubscriptionState.key);let _=[];const E=o===r.di5.Standard?this.VATIncludedModuleKeysArr:this.VATExcludedModuleKeysArr;_=l?[...this.currentSubscriptionState&&this.currentSubscriptionState.providerData&&this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&n?this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(S=>this.allModules.find(I=>I.ID===S)).map(S=>this.allModules.find(I=>I.kindCode===S.kindCode&&E.includes(I.ID))):[],...e]:[...this.currentSubscriptionState&&this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&n?this.currentSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(S=>this.allModules.find(I=>I.ID===S)):[],...e];const u=this.subscriptionStatePlan&&this.currentSubscriptionState&&this.currentSubscriptionState.providerData.status===r.uxK.STRIPE_ACTIVE;let d;this.currentSubscriptionState&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&(d=this.allPlans.find(S=>this.relatedSubscriptionKeys[this.currentSubscriptionState.providerData.subscriptionKeyAtNextPeriod].includes(S.ID)&&b.includes(S.ID))),(!d||this.currentSubscriptionState.providerData.cancelAtPeriodEnd||this.currentSubscriptionState.providerData.subscriptionKeyAtNextPeriod===r.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()||this.currentSubscriptionState.providerData.subscriptionKeyAtNextPeriod===r.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString())&&
1(d=this.allPlans.find(this.clientStatus&&this.clientStatus.valueAddedTax!==r.di5.Standard?S=>S.ID===r.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString():S=>S.ID===r.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()));const h=this.allPlans.find(S=>this.currentSubscriptionState&&S.ID===this.currentSubscriptionState.key);let x=this.currentSubscriptionState&&this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&this.currentSubscriptionState.providerData.subscriptionKeyAtNextPeriod!==r.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()&&this.currentSubscriptionState.providerData.subscriptionKeyAtNextPeriod!==r.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString()||h&&h.rank>d.rank?r.$om.Downgrade:void 0;return this.subscribeToModuleInner(d,u,x,this.currentSubscriptionState,this.subscriptionStatePlan,_,l,e,i)}return Promise.reject()}subscribeToModuleInner(e,n,i,o,a,p,b,l,_=!1){const E=window.innerWidth<1185,u=this.utilService.randomString(128);if(this.loadedActiveSubscriptions){let d,h;const x=new Promise((S,I)=>{d=S,h=I});if(this.hasBilling&&this.hasPayment)_?this.paymentModalService.getPlanRequest(a,o,e,n,i,m.L.config.currentPaymentProvider!==r.OHy.Stripe||!o||o.providerData.status!==r.uxK.STRIPE_ACTIVE||l&&0!==l.length?null:0,b,p,l)(new r.BAK(void 0,o.methodToken,u)).subscribe(()=>{d()},I=>{h(I)}):this.paymentModalService.choosePaymentModalForPlan(a,o,e,this.currentLanguageDashedServerFormat,n,i,this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:null,m.L.config.currentPaymentProvider!==r.OHy.Stripe||!o||o.providerData.status!==r.uxK.STRIPE_ACTIVE||l&&0!==l.length?null:0,()=>d(),S=>h(S),()=>h({status:499}),b,this.pendingPlan,p,l,l&&1===l.length?this.contractDarkIcons[l[0].ID]:void 0);else{const S=this.relatedSubscriptionKeys[e.ID].find(g=>Object.keys(r.CyS).includes(g)),I=this.allPlans.find(g=>g.ID===S),ln=this.relatedSubscriptionKeys[e.ID].find(g=>Object.keys(r.b__).includes(g)),un=this.allPlans.find(g=>g.ID===ln),dn=I,_n=p.map(g=>{const A=this.relatedModuleKeys[g.ID].find(T=>this.VATIncludedModuleKeysArr.includes(T));return this.allModules.find(T=>T.ID===A)}),pn=p.map(g=>{const A=this.relatedModuleKeys[g.ID].find(T=>this.VATExcludedModuleKeysArr.includes(T));return this.allModules.find(T=>T.ID===A)}),w=l.map(g=>{const A=this.relatedModuleKeys[g.ID].find(T=>this.VATIncludedModuleKeysArr.includes(T));return this.allModules.find(T=>T.ID===A)}),V=l.map(g=>{const A=this.relatedModuleKeys[g.ID].find(T=>this.VATExcludedModuleKeysArr.includes(T));return this.allModules.find(T=>T.ID===A)}),hn=w.reduce((g,A)=>g+A.price,0),Sn=V.reduce((g,A)=>g+A.price,0);this.paymentModalService.onepagecheckoutModalForPlan(!this.hasBilling,!this.hasPayment,E,l&&l.length>0?hn:e.price,e.currency,I,dn,0,this.duration,o,n,i,()=>d(),g=>h(g),this.pendingPlan,un,_n,w,l&&1===l.length?this.contractDarkIcons[l[0].ID]:void 0,this.currentLanguageDashedServerFormat,pn,V,Sn)}return x.then(()=>this.clearCart(),S=>{}),x}return Promise.reject()}unsubscribeModal(e){let n;const i=new Promise((a,p)=>{n=a,this.unsubscribeReject=p});return this.paymentModalService.unsubscribeModuleModal(this.currentLanguageDashedServerFormat,this.cancelModuleContent,this.cancelModuleFooter,()=>this.unsubscribeReject({status:499}),e).afterClose.subscribe(()=>{this.runUnsubscribeFunction=null}),i}stopUnsubscribe(){this.unsubscribeReject({status:499}),this.nzModal.closeAll()}runUnsubscribeModule(e){this.runUnsubscribeFunction=()=>this.unsubscribeModule(e)}unsubscribeModule(e){const n=this.utilService.randomString(128);let i;if(!i&&this.currentSubscriptionState.providerData.status===r.uxK.STRIPE_ACTIVE&&!this.currentSubscriptionState.providerData.cancelAtPeriodEnd&&(i=this.currentSubscriptionState),i){let o;return o=i.providerData.subscriptionKeyAtNextPeriod!==r.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()&&i.providerData.subscriptionKeyAtNextPeriod!==r.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString()||e&&(1!==this.currentSubscriptionState.modules.length||this.currentSubscriptionState.modules[0]!==e.ID)?this.subscribeToModule([],!1,!0):m.L.config.currentPaymentProvider===r.OHy.Braintree?this.clientService.unsubscribePlanBraintree(new r.OG2(i.ID,i.key,i.realStatus?i.realStatus:i.providerData.status)).pipe((0,C.t)(this)).toPromise():m.L.config.currentPaymentProvider===r.OHy.Stripe?this.clientService.unsubscribePlanStripe(new r.IIR(i.ID,i.key,i.modules,i.realStatus?i.realStatus:i.providerData.status,n)).pipe((0,C.t)(this)).toPromise():Promise.reject(),o.then(a=>{this.onePage.sendSubscriptionChanged(a),setTimeout(()=>{this.nzModal.closeAll()},1500)},a=>{}),o}return Promise.reject()}};P.\u0275fac=function(e){return new(e||P)(t.Y36(W.Sf),t.Y36(R.sK),t.Y36(j.y),t.Y36(G.g),t.Y36(q.c),t.Y36($.t),t.Y36(X.P),t.Y36(tt.W),t.Y36(nt.T),t.Y36(et.u),t.Y36(it.f),t.Y36(st._))},P.\u0275cmp=t.Xpm({type:P,selectors:[["app-subscriptions"]],viewQuery:function(e,n){if(1&e&&(t.Gf(At,5),t.Gf(Ct,5),t.Gf(Ot,5),t.Gf(Pt,5)),2&e){let i;t.iGM(i=t.CRH())&&(n.contentTemplate=i.first),t.iGM(i=t.CRH())&&(n.subscribeFooter=i.first),t.iGM(i=t.CRH())&&(n.cancelModuleContent=i.first),t.iGM(i=t.CRH())&&(n.cancelModuleFooter=i.first)}},inputs:{hasBilling:"hasBilling",hasPayment:"hasPayment"},decls:27,vars:21,consts:[[1,"text-center","m-t-30","m-b-40"],["nzType","warning","nzShowIcon","",3,"nzMessage",4,"ngIf"],[1,"w-45","m-h-auto","m-b-30"],["style","margin-bottom: 40px",3,"ngModel","ngModelChange",4,"ngIf"],["class","emptyBox",3,"nzNotFoundImage","nzNotFoundContent",4,"ngIf"],["class","container m-b-20",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","container",4,"ngIf"],["class","container text-center contactNote",4,"ngIf"],[1,"container"],[3,"links"],["cancelModuleContent",""],["cancelModuleFooter",""],["nzType","warning","nzShowIcon","",3,"nzMessage"],[2,"margin-bottom","40px",3,"ngModel","ngModelChange"],["nzDot","",3,"nzShowDot","nzOffset"],["nz-radio-button","","nzValue","monthly",3,"nzDisabled","click"],["class","comingSoonTag",3,"nzColor",4,"ngIf"],["nz-radio-button","","nzValue","annually",3,"nzDisabled","click"],[1,"comingSoonTag",3,"nzColor"],[1,"emptyBox",3,"nzNotFoundImage","nzNotFoundContent"],[1,"container","m-b-20"],[1,"row","justify-content-center"],[4,"ngIf"],["cartTitle",""],["nzPlacement","bottom","nzWrapClassName","cartDrawer",3,"nzZIndex","nzClosable","nzVisible","nzTitle","nzMask","nzHeight"],[4,"nzDrawerContent"],["class","col-xl-4 col-md-6 col-12",4,"ngFor","ngForOf"],[1,"col-xl-4","col-md-6","col-12"],[2,"height","100%",3,"nzBodyStyle"],[1,"d-flex","justify-content-between","border-bottom","w-100"],[1,"media","align-items-center","w-100"],["nzType","avatar",1,"p-b-15",3,"nzActive","nzSize"],[1,"m-l-15","w-100"],["nzType","input","nzSize","small",1,"p-b-10","w-70",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-40","smallHeightSkeleton",3,"nzActive"],[1,"list-unstyled","m-v-30","w-100"],[4,"ngFor","ngForOf"],[1,"text-center","w-100"],["nzType","input","nzSize","small",1,"p-b-10","w-40","buttonSkeleton",3,"nzActive"],[1,"m-b-20","w-100"],[1,"d-flex","justify-content-center","text-center"],["nzType","input","nzSize","small",1,"p-b-10","w-80","smallHeightSkeleton",3,"nzActive"],[1,"text-danger"],[1,"subscription-cards-container"],["class","col-xl-4 col-md-6 col-12 d-flex flex-column p-h-10",4,"ngFor","ngForOf"],[1,"col-xl-4","col-md-6","col-12","d-flex","flex-column","p-h-10"],[3,"ngClass",4,"ngIf"],[2,"flex-direction","column","height","100%","align-self","flex-end",3,"id","activeSubscriptionPlan","activeSubscriptionState","allSubscriptionStates","duration","hasBilling","hasPayment","index","module","pendingPlan","visiblePlans","showFeedback","loadedActiveSubscriptions","relatedSubscriptionKeys","relatedModuleKeys","allPlans","availableContracts","contractLightIcon","contractDarkIcon","isAddedToCart","contract","isActive","canceledModule","pendingModule","allModules","VATIncludedModuleKeysArr","VATExcludedModuleKeysArr","width","phoneView","subscriptionChanged","cartEmitter"],[3,"ngClass"],["nz-icon","","nzType","shopping-cart","nzTheme","outline"],[1,"font-size-smaller","text-left","m-b-0"],[1,"overflow-auto"],["class","moduleListItem flex-wrap",4,"ngFor","ngForOf"],[1,"moduleListItem","flex-wrap"],[1,"moduleTitle"],[1,"modulePrice"],["nz-list-item-actions","",1,"moduleButton","text-right","m-b-0"],["nzType","primary","nz-tooltip","",1,"multiLineButton",3,"nzGhost","nzTooltipTitle","defaultFunction","stickResult","nzTextKeys"],[1,"moduleTitle",3,"nzAvatar"],[1,"font-size-smaller","text-left","m-b-0","m-r-20"],["nz-button","",1,"button-text-wrap",3,"click"],["nz-icon","","nzType","close","nzTheme","outline"],["nzType","default",1,"multiLineButton","cancelAllButton",3,"defaultIcon","defaultFunction","stickResult","nzTextKeys"],[1,"font-size-smaller","m-h-auto","m-b-30"],[3,"ngModel","ngModelChange"],[1,"row","justify-content-center","align-items-end"],[1,"d-flex","flex-wrap","m-t-n20"],[1,"font-size-smaller","text-left","m-b-0","mt-4"],[1,"accepted-cards-container","ml-sm-auto","cursor-pointer","mr-sm-0","mr-auto","ml-auto","mt-4"],[3,"alternateStyle"],[3,"activeSubscriptionPlan","activeSubscriptionState","allSubscriptionStates","duration","hasBilling","hasPayment","index","plan","pendingPlan","visiblePlans","showFeedback","loadedActiveSubscriptions","relatedSubscriptionKeys","allPlans","VATIncludedModuleKeysArr","VATExcludedModuleKeysArr","allModules","relatedModuleKeys","subscriptionChanged"],[1,"container","text-center","contactNote"],[1,"w-45","m-h-auto","m-b-0"],["target","_blank","rel","noopener noreferrer",1,"login-link","open-link-brand-16",3,"href"],[1,"row","m-0"],[1,"w-100"],["class","moduleListItem",4,"ngFor","ngForOf"],[1,"moduleListItem"],[1,"row","mb-2"],[1,"col-md-6","col-12","text-md-left","text-center"],["nz-button","",1,"button-text-wrap","mr-md-3","mr-0",3,"click"],[1,"col-md-6","col-12","text-md-right","text-center"],["nzType","primary","nz-popconfirm","",1,"button-text-wrap",3,"nzPopconfirmTitle","nzOkText","nzCancelText","runFunction","nzTextKeys","stickResult","nzOnConfirm"],[1,"feedback-positioning",3,"unit","feature"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.YNc(1,vt,3,9,"nz-alert",1),t.TgZ(2,"h2"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"p",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Lt,11,18,"nz-radio-group",3),t.YNc(9,Dt,2,5,"nz-empty",4),t.YNc(10,Ht,10,10,"div",5),t.TgZ(11,"h2"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"p",2),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,jt,11,18,"nz-radio-group",6),t.YNc(18,Gt,2,5,"nz-empty",4),t.qZA(),t.YNc(19,sn,13,11,"div",7),t.YNc(20,on,7,7,"div",8),t.TgZ(21,"div",9),t._UZ(22,"app-navigator",10),t.qZA(),t.YNc(23,rn,6,4,"ng-template",null,11,t.W1O),t.YNc(25,cn,13,20,"ng-template",null,12,t.W1O)),2&e&&(t.xp6(1),t.Q6J("ngIf",n.taxChanged),t.xp6(2),t.hij(" ",t.lcZ(4,13,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.TITLE")," "),t.xp6(3),t.hij(" ",t.lcZ(7,15,"CLIENT.PROFILE.SUBSCRIPTIONS.MODULES.TITLE_DESC")," "),t.xp6(2),t.Q6J("ngIf",n.EnvironmentService.config.subscriptionsMonthlyEnabled||n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsMonthlyEnabled&&!n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.Q6J("ngIf",n.EnvironmentService.config.subscriptionsMonthlyEnabled||n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(2),t.hij(" ",t.lcZ(13,17,"CLIENT.PROFILE.SUBSCRIPTIONS.TITLE")," "),t.xp6(3),t.hij(" ",t.lcZ(16,19,"CLIENT.PROFILE.SUBSCRIPTIONS.TITLE_DESC")," "),t.xp6(2),t.Q6J("ngIf",n.EnvironmentService.config.subscriptionsMonthlyEnabled||n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.Q6J("ngIf",!n.EnvironmentService.config.subscriptionsMonthlyEnabled&&!n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.Q6J("ngIf",n.EnvironmentService.config.subscriptionsMonthlyEnabled||n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(1),t.Q6J("ngIf",n.EnvironmentService.config.subscriptionsMonthlyEnabled||n.EnvironmentService.config.subscriptionsAnnualEnabled),t.xp6(2),t.Q6J("links",n.navigatorLinks))},dependencies:[U.JJ,U.On,f.mk,f.sg,f.O5,ot.X,at.x,v.P4,rt.r,ct.x7,lt.ix,ut.w,dt.dQ,_t.bd,pt.p9,z.Vz,z.SQ,ht.Ls,O.n_,O.AA,O.yi,O.IO,O.Pb,O.nk,O.KC,St.JW,L.Of,L.Bq,L.Dg,D.Xw,D.yx,D.yg,gt.j,bt.SY,Tt.S,Et.k,It.Z,f.uU,R.X$,B.U2,B.Al,mt.A],styles:['@charset "UTF-8";[_nghost-%COMP%]     .ant-badge-dot{z-index:10}.smallHeightSkeleton[_ngcontent-%COMP%]{height:12px}[_nghost-%COMP%]   .smallHeightSkeleton[_ngcontent-%COMP%]     .ant-skeleton-input{height:12px}.buttonSkeleton[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%]   .buttonSkeleton[_ngcontent-%COMP%]     .ant-skeleton-input{height:40px}.comingSoonTag[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-20px;z-index:5}.contactNote[_ngcontent-%COMP%]{margin-top:1.25rem;margin-bottom:1.25rem}  .moduleTitle nz-avatar{background-color:transparent!important;width:3rem!important;height:3rem!important}  .multiLineButton.cancelAllButton button{padding-top:1rem!important;padding-bottom:1rem!important;margin-top:15px!important}.m-t-n20[_ngcontent-%COMP%]{margin-top:-20px}.subscription-cards-container[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;row-gap:20px}.mixed-subscription-shadow[_ngcontent-%COMP%]{height:40px!important;min-height:40px!important}.pending-subscription-shadow[_ngcontent-%COMP%]{height:110px!important;min-height:110px!important}.active-subscription-shadow[_ngcontent-%COMP%]{height:150px!important;min-height:150px!important}'],data:{animation:[Y.Ln]}}),P=(0,J.gn)([(0,C.c)()],P)}}]);

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.