PageSourceSearch

https://szerzi.hu/common-5c1882a6.1bcb7a52cc0b1a6f.js

js szerzi.hu collected 2026-10-04 13:25:40 UTC 33,748 bytes, 27 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[7076],{52153:(yt,f,r)=>{r.d(f,{k:()=>b});var U=r(97582),s=r(71997),t=r(94650),E=r(92961),h=r(44224),N=r(45218),y=r(25156),m=r(32925),B=r(50211),L=r(3417),F=r(81664),K=r(81404),z=r(31495),Z=r(61479),k=r(52632),V=r(3674),w=r(75489),D=r(36895),G=r(47216),W=r(66616),Q=r(47044),Y=r(21811),j=r(51971),J=r(47423),H=r(6497),$=r(6672),q=r(37570),X=r(45144),tt=r(12987),it=r(70087);
2/*
3     * @license
4     * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL
5     * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved.
6     *
7     * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt)
8     * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt)
9     * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by
10     * trade secret or copyright law.
11     *
12     * Dissemination of this information or reproduction of this material is strictly forbidden
13     * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
14     * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees,
15     * managers or contractors who have executed Confidentiality and Non-disclosure agreements
16     * explicitly covering such access.
17     *
18     * The copyright notice above does not evidence any actual or intended publication or disclosure
19     * of this source code, which includes information that is confidential and/or proprietary,
20     * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION,
21     * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE
22     * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF
23     * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE
24     * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR
25     * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE,
26     * IN WHOLE OR IN PART.
27     */const et=["cancelFooter"],nt=["defaultUpgradeText"],at=["defaultDowngradeText"];function st(n,a){1&n&&(t.TgZ(0,"nz-tag",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.CURRENT_PLAN")," "))}const rt=function(){return{xxl:20,xl:15,lg:19,md:19,sm:31,phone:13,x:21}},ot=function(n){return{number:n}};function ct(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",22)(5,"span",23),t._uU(6),t.ALo(7,"limitTo"),t.ALo(8,"translate"),t.qZA()(),t.BQk()),2&n){const i=t.oxw(3).$implicit,e=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,3,"CLIENT.PROFILE.SUBSCRIPTIONS.PAYMENT_METHOD")," "),t.xp6(3),t.Q6J("nzTooltipTitle",i.payment?i.payment.name:""),t.xp6(1),t.hij(" ",i.payment.kind.type===e.PaymentMethodType.PayPal?t.gM2(7,5,i.payment.name,t.DdM(13,rt),e.width,"mail"):t.xi3(8,10,"CLIENT.PROFILE.SUBSCRIPTIONS.PAYMENT",t.VKq(14,ot,i.payment.name))," ")}}function ut(n,a){if(1&n&&(t.TgZ(0,"div",15),t._uU(1),t.ALo(2,"as"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()),2&n){const i=t.oxw(3).$implicit,e=t.oxw(2);t.xp6(1),t.hij(" ",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&!t.xi3(2,1,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd?t.lcZ(3,4,"CLIENT.PROFILE.SUBSCRIPTIONS.QUOTA"):t.lcZ(4,6,"CLIENT.PROFILE.SUBSCRIPTIONS.QUOTA_EXPIRES")," ")}}function St(n,a){if(1&n&&(t.TgZ(0,"div",16)(1,"span",17),t._uU(2),t.qZA()()),2&n){const i=t.oxw(3).$implicit;t.xp6(2),t.hij(" ",i.quota," ")}}function pt(n,a){1&n&&(t.TgZ(0,"div",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.QUOTA_EXPIRE_DATE")," "))}function dt(n,a){if(1&n&&(t.TgZ(0,"div",16)(1,"span",17),t._uU(2),t.ALo(3,"date"),t.qZA()()),2&n){const i=t.oxw(3).$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,i.expiration,"yyyy-MM-dd")," ")}}const lt=function(){return{"padding-top":"1rem"}};function _t(n,a){if(1&n&&(t.TgZ(0,"nz-card",8)(1,"div",9)(2,"div",10),t.YNc(3,st,3,3,"nz-tag",11),t.qZA(),t.TgZ(4,"div",12)(5,"nz-tag",13),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"as"),t.ALo(9,"as"),t.ALo(10,"as"),t.qZA()()(),t.TgZ(11,"div",14),t.YNc(12,ct,9,16,"ng-container",1),t.TgZ(13,"div",15),t._uU(14),t.ALo(15,"as"),t.ALo(16,"translate"),t.ALo(17,"as"),t.ALo(18,"translate"),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",16)(21,"span",17),t._uU(22),t.ALo(23,"date"),t.ALo(24,"date"),t.qZA()(),t.YNc(25,ut,5,8,"div",18),t.YNc(26,St,3,1,"div",19),t.YNc(27,pt,3,3,"div",18),t.ALo(28,"as"),t.YNc(29,dt,4,4,"div",19),t.ALo(30,"as"),t.qZA()()),2&n){const i=t.oxw(2).$implicit,e=t.oxw(2);t.Q6J("nzBodyStyle",t.DdM(45,lt)),t.xp6(3),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE||i.providerData.status&&i.periodEnd),t.xp6(3),t.hij(" ",t.lcZ(7,10,"CLIENT.PROFILE.SUBSCRIPTIONS."+(i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&(t.xi3(8,12,
27i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd||!t.xi3(9,15,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd&&t.xi3(10,18,i.providerData,e.StripeSubscriptionData).subscriptionKeyAtNextPeriod!==i.key&&e.relatedSubscriptionKeys[i.key]&&e.Array.isArray(e.relatedSubscriptionKeys[i.key])&&e.relatedSubscriptionKeys[i.key].includes(e.plan.ID))?"STRIPE_CANCELED":i.providerData.status))," "),t.xp6(6),t.Q6J("ngIf",i.payment),t.xp6(2),t.hij(" ",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&!t.xi3(15,21,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd?t.lcZ(16,24,"CLIENT.PROFILE.SUBSCRIPTIONS.NEXT_CYCLE"):i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&t.xi3(17,26,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd?t.lcZ(18,29,"CLIENT.PROFILE.SUBSCRIPTIONS.EXPIRES"):t.lcZ(19,31,"CLIENT.PROFILE.SUBSCRIPTIONS.STARTS")," "),t.xp6(8),t.hij(" ",i.periodEnd?t.xi3(23,33,i.periodEnd,"yyyy-MM-dd"):t.xi3(24,36,i.billingStart,"yyyy-MM-dd")," "),t.xp6(3),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED),t.xp6(1),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED),t.xp6(1),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&t.xi3(28,39,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd),t.xp6(2),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&t.xi3(30,42,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd)}}function Tt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,_t,31,46,"nz-card",7),t.ALo(2,"as"),t.BQk()),2&n){const i=t.oxw().$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.providerData.status===e.BraintreeSubscriptionStatus.BRAINTREE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_CANCELED||i.providerData.status===e.StripeSubscriptionStatus.STRIPE_ACTIVE&&t.xi3(2,1,i.providerData,e.StripeSubscriptionData).cancelAtPeriodEnd?i.periodStart:i)}}function Et(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Tt,3,4,"ng-container",1),t.BQk()),2&n){const i=a.$implicit;t.xp6(1),t.Q6J("ngIf",i.providerData.status)}}function bt(n,a){if(1&n&&(t.TgZ(0,"div",5),t.YNc(1,Et,2,1,"ng-container",6),t.qZA()),2&n){const i=t.oxw();t.xp6(1),t.Q6J("ngForOf",i.allSubscriptionStates.get(i.plan.ID))}}function It(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"li",32)(2,"div",33)(3,"span",43),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t._UZ(7,"i",44),t.qZA()()(),t.BQk()),2&n){const i=a.$implicit,e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"CLIENT.PROFILE.SUBSCRIPTIONS.FEATURES."+i.toUpperCase())),t.xp6(2),t.Gre("",e.plan.features.includes(i)?"text-success successIcon":"text-danger dangerIcon"," font-size-18 m-l-10"),t.xp6(1),t.Q6J("nzType",e.plan.features.includes(i)?"check":"close")}}const At=function(n,a){return[n,a,!1]};function Ct(n,a){if(1&n&&(t._UZ(0,"app-multi-state-button",45),t.ALo(1,"translate")),2&n){const i=t.oxw(2);t.Q6J("nzGhost",!i.loadedActiveSubscriptions)("nzTooltipTitle",i.loadedActiveSubscriptions?null:t.lcZ(1,6,"CLIENT.PROFILE.SUBSCRIPTIONS.LOAD_FAILED_TOOLTIP"))("defaultFunction",i.subscribeFunction)("defaultFunctionParameters",t.WLB(8,At,i.plan,i.index))("stickResult",!1)("nzTextKeys",i.startSubscriptionText)}}const M=function(n,a,i){return[n,a,!0,i]};function Ot(n,a){if(1&n&&t._UZ(0,"app-multi-state-button",46),2&n){const i=t.oxw(2);t.Q6J("defaultFunction",i.subscribeFunction)("defaultFunctionParameters",t.kEZ(4,M,i.plan,i.index,i.UpdateType.Upgrade))("stickResult",!1)("nzTextKeys",i.upgradeSubscriptionText)}}function vt(n,a){if(1&n&&t._UZ(0,"app-multi-state-button",46),2&n){const i=t.oxw(2);t.Q6J("defaultFunction",i.subscribeFunction)("defaultFunctionParameters",t.kEZ(4,M,i.plan,i.index,i.UpdateType.Downgrade))("stickResult",!1)("nzTextKeys",i.downgradeSubscriptionText)}}const Rt=function(n){return[n]};function Pt(n,a){if(1&n&&t._UZ(0,"app-multi-state-button",46),2&n){const i=t.oxw(2);t.Q6J("defaultFunction",i.unsubscribeModalFunction)("defaultFunctionParameters",t.VKq(4,Rt,i.plan))("stickResult",!1)("nzTextKeys",i.unsubscribeModalText)}}function ht(n,a){if(1&n&&t._UZ(0,"app-feedback",47),2&n){const i=t.oxw(2);t.Q6J("feature",i.FeedbackFeature.Settings)("unit",i.FeedbackUnit.Subscriptions)("title","COMMON.FEEDBACK.TITLES.SUBSCRIPTIONS")}}const Nt=function(n){return{quota:n}};function Dt(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"nz-card")(1,"div",24)(2,"div",25),t._UZ(3,"img",26),t.TgZ(4,"div",27)(5,"h2",28),t._uU(6),t.ALo(7,"formatCurrencyName"),t.qZA(),t._UZ(8,"br"),t.TgZ(9,"span",29),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"h4",30),t._uU(13),t.qZA()()()(),t.TgZ(14,"ul",31),t.YNc(15,It,8,7,"ng-container",6),t.TgZ(16,"li",32)(17,"div",33)(18,"span",34),t._uU(19),t.ALo(20,"translate"),t._UZ(21,"i",35),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"div",36),t._uU(24),t.qZA()()(),t.TgZ(25,"li",32)(26,"p",37),t.NdJ("click",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.modalService.contractsForQuotaModal(o.plan.quota,!0))}),t._UZ(27,"i",38),t._uU(28),t.ALo(29,"translate"),t.qZA()()(),t.TgZ(30,"div",39),t.YNc(31,Ct,2,11,"app-multi-state-button",40),t.ALo(32,"as"),t.YNc(33,Ot,1,8,"app-multi-state-button",41),t.ALo(34,"as"),t.ALo(35,"as"),t.ALo(36,"as"),t.ALo(37,"as"),t.YNc(38,vt,1,8,"app-multi-state-button",41),t.ALo(39,"as"),t.ALo(40,"as"),t.ALo(41,"as"),t.YNc(42,Pt,1,6,"app-multi-state-button",41),t.ALo(43,"as"),t.ALo(44,"as"),t.ALo(45,"as"),t.ALo(46,"as"),t.ALo(47,"as"),t.ALo(48,"as"),t.ALo(49,"as"),t.ALo(50,"as"),t.qZA(),t.YNc(51,ht,1,3,"app-feedback",42),t.qZA()}if(2&n){const i=t.oxw();
27t.xp6(3),t.MGl("src","assets/images/subscriptions/subscription-",i.index%5,".svg",t.LSH),t.xp6(3),t.AsE(" ",i.plan.price,"\xa0",t.lcZ(7,17,i.plan.currency)," * "),t.xp6(4),t.hij("/ ",t.lcZ(11,19,i.duration),""),t.xp6(3),t.Oqu(i.plan.translations[i.currentLanguageDashedServerFormat]),t.xp6(2),t.Q6J("ngForOf",i.features),t.xp6(4),t.hij("",t.lcZ(20,21,"CLIENT.PROFILE.SUBSCRIPTIONS.FEATURES.QUOTA")," "),t.xp6(2),t.Q6J("nzTooltipTitle",t.lcZ(22,23,"CLIENT.PROFILE.SUBSCRIPTIONS.QUOTA_DESC"))("nzTooltipTrigger","click")("nzTooltipPlacement","bottomRight"),t.xp6(3),t.Oqu(i.plan.quota),t.xp6(4),t.hij(" ",t.xi3(29,25,"CLIENT.PROFILE.BUNDLES.INFO",t.VKq(76,Nt,i.plan.quota))," "),t.xp6(3),t.Q6J("ngIf",!i.activeSubscriptionPlan||i.activeSubscriptionState&&i.activeSubscriptionState.providerData.status!==i.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE&&i.activeSubscriptionState.providerData.status!==i.BraintreeSubscriptionStatus.BRAINTREE_PENDING&&(i.activeSubscriptionState.providerData.status!==i.StripeSubscriptionStatus.STRIPE_ACTIVE||t.xi3(32,28,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).cancelAtPeriodEnd&&i.relatedSubscriptionKeys[i.activeSubscriptionState.key]&&i.Array.isArray(i.relatedSubscriptionKeys[i.activeSubscriptionState.key])&&i.relatedSubscriptionKeys[i.activeSubscriptionState.key].includes(i.plan.ID))),t.xp6(2),t.Q6J("ngIf",i.activeSubscriptionPlan&&((i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_PENDING||i.activeSubscriptionState.providerData.status===i.StripeSubscriptionStatus.STRIPE_ACTIVE)&&i.activeSubscriptionPlan.rank<i.plan.rank||i.activeSubscriptionState.providerData.status===i.StripeSubscriptionStatus.STRIPE_ACTIVE&&!t.xi3(34,31,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).cancelAtPeriodEnd&&i.relatedSubscriptionKeys[i.activeSubscriptionState.key]&&i.Array.isArray(i.relatedSubscriptionKeys[i.activeSubscriptionState.key])&&i.relatedSubscriptionKeys[i.activeSubscriptionState.key].includes(i.plan.ID)&&(!i.relatedSubscriptionKeys[t.xi3(35,34,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod]||!i.Array.isArray(i.relatedSubscriptionKeys[t.xi3(36,37,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod])||!i.relatedSubscriptionKeys[t.xi3(37,40,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod].includes(i.plan.ID)))&&(!i.pendingPlan||i.pendingPlan.rank<i.plan.rank)),t.xp6(5),t.Q6J("ngIf",i.activeSubscriptionPlan&&(i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_PENDING||i.activeSubscriptionState.providerData.status===i.StripeSubscriptionStatus.STRIPE_ACTIVE&&(!i.relatedSubscriptionKeys[t.xi3(39,43,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod]||!i.Array.isArray(i.relatedSubscriptionKeys[t.xi3(40,46,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod])||!i.relatedSubscriptionKeys[t.xi3(41,49,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod].includes(i.plan.ID)))&&(i.activeSubscriptionPlan.rank>i.plan.rank||i.pendingPlan&&i.pendingPlan.rank>i.plan.rank)),t.xp6(4),t.Q6J("ngIf",i.activeSubscriptionPlan&&(i.activeSubscriptionPlan.rank===i.plan.rank&&(i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_ACTIVE||i.activeSubscriptionState.providerData.status===i.BraintreeSubscriptionStatus.BRAINTREE_PENDING||i.activeSubscriptionState.providerData.status===i.StripeSubscriptionStatus.STRIPE_ACTIVE&&!t.xi3(43,52,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).cancelAtPeriodEnd&&i.relatedSubscriptionKeys[t.xi3(44,55,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod]&&i.Array.isArray(i.relatedSubscriptionKeys[t.xi3(45,58,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod])&&i.relatedSubscriptionKeys[t.xi3(46,61,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod].includes(i.plan.ID))||i.activeSubscriptionState.providerData.status===i.Str
27ipeSubscriptionStatus.STRIPE_ACTIVE&&!t.xi3(47,64,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).cancelAtPeriodEnd&&i.relatedSubscriptionKeys[t.xi3(48,67,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod]&&i.Array.isArray(i.relatedSubscriptionKeys[t.xi3(49,70,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod])&&i.relatedSubscriptionKeys[t.xi3(50,73,i.activeSubscriptionState.providerData,i.StripeSubscriptionData).subscriptionKeyAtNextPeriod].includes(i.plan.ID))),t.xp6(9),t.Q6J("ngIf",i.showFeedback)}}function gt(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"div",48)(1,"div",49)(2,"button",50),t.NdJ("click",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.stopUnsubscribe())}),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",51)(6,"app-multi-state-button",52),t.NdJ("nzOnConfirm",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.runUnsubscribe())}),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",53)}if(2&n){const i=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,i.unsubscribeText[i.ButtonState.Default]))("nzCancelText",t.lcZ(9,16,"COMMON.CANCEL"))("runFunction",i.runUnsubscribeFunction)("nzTextKeys",i.unsubscribeText)("stickResult",!1),t.xp6(4),t.hij(" ",t.lcZ(11,18,"CLIENT.PROFILE.SUBSCRIPTIONS.UNSUBSCRIBE.CANCEL_CONFIRM"),""),t.xp6(2),t.Q6J("unit",i.FeedbackUnit.ImageUpload)("feature",i.FeedbackFeature.Modal)}}function mt(n,a){1&n&&(t._UZ(0,"i",54),t._uU(1),t.ALo(2,"translate")),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.UPGRADE"),"\n"))}function Mt(n,a){1&n&&(t._UZ(0,"i",55),t._uU(1),t.ALo(2,"translate")),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.DOWNGRADE"),"\n"))}let b=class{constructor(a,i,e,o,l,d,C,I,O,v,R){this.nzModal=a,this.translate=i,this.clientService=e,this.languageService=o,this.modalService=l,this.paymentModalService=d,this.onepage=C,this.resizeService=I,this.paymentService=O,this.utilService=v,this.eventService=R,this.visiblePlans=[],this.relatedSubscriptionKeys={},this.allPlans=[],this.relatedModuleKeys={},this.subscriptionChanged=new t.vpe,this.features=["Manage","Share","Concurrency","History","Revert","Copy","Conversations"],this.phoneView=!0,this.BraintreeSubscriptionStatus=s.gUs,this.StripeSubscriptionStatus=s.uxK,this.ButtonState=E.BN,this.VATValue=s.di5,this.width=window.innerWidth,this.Array=Array,this.FeedbackFeature=s.lrp,this.FeedbackUnit=s._0Z,this.PaymentMethodType=s.LtK,this.UpdateType=s.$om,this.StripeSubscriptionData=s.Oud,this.unsubscribeReject=()=>{}}ngOnInit(){this.resizeService.width.subscribe(a=>{this.phoneView=a<1185,this.width=a}),this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(this.languageService.currentLanguage),this.translate.onLangChange.subscribe(a=>{this.currentLanguageDashedServerFormat=this.languageService.dashedServerLanguageFromLanguageKey(a.lang)}),window.innerWidth<1185&&(this.phoneView=!0),this.setButtonTranslations(),this.clientStatus=this.eventService.clientStatus,this.eventService.changedClientStatus.subscribe(a=>{this.clientStatus=a}),this.idempotencyKey=this.utilService.randomString(128),this.subscribeFunction=(a,i,e,o)=>this.subscribe(a,i,e,o),this.unsubscribeModalFunction=a=>this.unsubscribeModal(a)}ngAfterViewInit(){this.setButtonTranslations()}runUnsubscribe(){this.runUnsubscribeFunction=()=>this.unsubscribe()}subscribe(a,i,e,o){if(this.loadedActiveSubscriptions){let l,d;const C=new Promise((u,S)=>{l=u,d=S}),I=this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:s.di5.Standard,O=Object.keys(s.CyS),v=Object.keys(s.b__),R=I===s.di5.Standard?O:v,P=this.activeSubscriptionState&&!R.includes(this.activeSubscriptionState.key);if(this.hasBilling&&this.hasPayment){const u=I===s.di5.Standard?this.VATIncludedModuleKeysArr:this.VATExcludedModuleKeysArr,S=!this.activeSubscriptionState||this.activeSubscriptionState.providerData.cancelAtPeriodEnd?[]:this.activeSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(p=>this.allModules.find(_=>_.ID===p)).map(p=>this.allModules.find(_=>_.kindCode===p.kindCode&&u.includes(_.ID)));!e||o!==s.$om.Upgrade||(this.activeSubscriptionState.realStatus?this.activeSubscriptionState.realStatus:this.activeSubscriptionState.providerData.status)!==s.gUs.BRAINTREE_ACTIVE&&(this.activeSubscriptionState.realStatus?this.activeSubscriptionState.realStatus:this.activeSubscriptionState.providerData.status)!==s.uxK.STRIPE_ACTIVE?this.paymentModalService.choosePaymentModalForPlan(this.activeSubscriptionPlan,this.activeSubscriptionState,a,this.currentLanguageDashedServerFormat,e,o,this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:null,N.L.config.currentPaymentProvider===s.OHy.Str
27ipe&&this.activeSubscriptionState&&this.activeSubscriptionState.providerData.status===s.uxK.STRIPE_ACTIVE?0:null,()=>l(),p=>d(p),()=>d({status:499}),P,this.pendingPlan,S):this.paymentModalService.getUpdatePrice(a,P,this.activeSubscriptionState,this.idempotencyKey).then(_=>{this.paymentModalService.choosePaymentModalForPlan(this.activeSubscriptionPlan,this.activeSubscriptionState,a,this.currentLanguageDashedServerFormat,e,o,this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:null,_,()=>l(),g=>d(g),()=>d({status:499}),P,this.pendingPlan,S)},_=>{d(_)})}else{const u=this.relatedSubscriptionKeys[a.ID].find(c=>Object.keys(s.CyS).includes(c)),S=this.allPlans.find(c=>c.ID===u),p=this.relatedSubscriptionKeys[a.ID].find(c=>Object.keys(s.b__).includes(c)),_=this.allPlans.find(c=>c.ID===p),g=S,xt=I===s.di5.Standard?this.VATIncludedModuleKeysArr:this.VATExcludedModuleKeysArr,x=!this.activeSubscriptionState||this.activeSubscriptionState.providerData.cancelAtPeriodEnd?[]:this.activeSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(c=>this.allModules.find(T=>T.ID===c)).map(c=>this.allModules.find(T=>T.kindCode===c.kindCode&&xt.includes(T.ID))),ft=x.map(c=>{const T=this.relatedModuleKeys[c.ID].find(A=>this.VATIncludedModuleKeysArr.includes(A));return this.allModules.find(A=>A.ID===T)}),Ut=x.map(c=>{const T=this.relatedModuleKeys[c.ID].find(A=>this.VATExcludedModuleKeysArr.includes(A));return this.allModules.find(A=>A.ID===T)});this.paymentModalService.onepagecheckoutModalForPlan(!this.hasBilling,!this.hasPayment,this.phoneView,a.price,a.currency,S,g,this.index,this.duration,this.activeSubscriptionState,e,o,()=>l(),c=>d(c),this.pendingPlan,_,ft,void 0,void 0,this.currentLanguageDashedServerFormat,Ut)}return C}return Promise.reject()}unsubscribeModal(a){let i;const e=new Promise((o,l)=>{i=o,this.unsubscribeReject=l});return this.paymentModalService.unsubscribeModal(a,this.currentLanguageDashedServerFormat,this.activeSubscriptionPlan,this.activeSubscriptionState,this.duration,this.hasBilling,this.hasPayment,this.visiblePlans,this.loadedActiveSubscriptions,this.pendingPlan,this.relatedSubscriptionKeys,this.cancelFooter,()=>this.unsubscribeReject({status:499})),e}stopUnsubscribe(){this.unsubscribeReject({status:499}),this.nzModal.closeAll()}unsubscribe(){const a=this.allSubscriptionStates.get(this.plan.ID);let i;if(a&&a.length>0&&(i=a.find(e=>e.providerData.status===s.gUs.BRAINTREE_PENDING||e.providerData.status===s.gUs.BRAINTREE_ACTIVE||e.providerData.status===s.uxK.STRIPE_ACTIVE&&!e.providerData.cancelAtPeriodEnd)),!i&&this.activeSubscriptionState.providerData.status===s.uxK.STRIPE_ACTIVE&&!this.activeSubscriptionState.providerData.cancelAtPeriodEnd&&(i=this.activeSubscriptionState),i){let e;if(N.L.config.currentPaymentProvider===s.OHy.Braintree)e=this.clientService.unsubscribePlanBraintree(new s.OG2(i.ID,i.key,i.realStatus?i.realStatus:i.providerData.status)).pipe((0,h.t)(this)).toPromise();else if(N.L.config.currentPaymentProvider===s.OHy.Stripe)if(this.activeSubscriptionState.providerData.subscriptionModulesAtNextPeriod.length>0){const o=this.clientStatus&&this.clientStatus.valueAddedTax?this.clientStatus.valueAddedTax:s.di5.Standard,l=Object.keys(s.CyS),d=Object.keys(s.b__),C=o===s.di5.Standard?l:d,I=this.activeSubscriptionState&&!C.includes(this.activeSubscriptionState.key),O=o===s.di5.Standard?this.VATIncludedModuleKeysArr:this.VATExcludedModuleKeysArr,v=!this.activeSubscriptionState||this.activeSubscriptionState.providerData.cancelAtPeriodEnd?[]:this.activeSubscriptionState.providerData.subscriptionModulesAtNextPeriod.map(u=>this.allModules.find(S=>S.ID===u)).map(u=>this.allModules.find(S=>S.kindCode===u.kindCode&&O.includes(S.ID))),R=this.allPlans.find(this.clientStatus&&this.clientStatus.valueAddedTax!==s.di5.Standard?u=>u.ID===s.b__.SUBSCRIPTION_ZERO_MONTHLY_HUF_VE_v1.toString():u=>u.ID===s.CyS.SUBSCRIPTION_ZERO_MONTHLY_HUF_VI_v1.toString()),P=this.paymentModalService.getPlanRequest(this.activeSubscriptionPlan,this.activeSubscriptionState,R,!0,s.$om.Downgrade,0,I,v,[]);e=new Promise((u,S)=>{P(new s.BAK(void 0,this.activeSubscriptionState.methodToken,this.idempotencyKey)).subscribe(p=>{u(p)},p=>{S(p)})})}else e=this.clientService.unsubscribePlanStripe(new s.IIR(i.ID,i.key,i.modules,i.realStatus?i.realStatus:i.providerData.status,this.idempotencyKey)).pipe((0,h.t)(this)).toPromise();else e=Promise.reject();return e.then(o=>{this.onepage.sendSubscriptionChanged(o),setTimeout(()=>{this.nzModal.closeAll()},1500)},o=>{}),e}return Promise.reject()}setButtonTranslations(){const a=new Map;a.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.OTHER"),a.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.401"),a.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.499"),a.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.ERROR.503"),this.startSubscriptionText=new E.PR("CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.START","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.SUBSCRIBE.CHANGED",a);const i=new Map;i.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.OTHER"),i.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.401"),i.set(428,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.428"),i.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.499"),i.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.ERROR.503"),this.upgradeSubscriptionText=new E.PR(this.defaultUpgradeText?this.defaultUpgradeText:"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.UPGRADE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UPGRADE.CHANGED",i);const e=new Map;e.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.OTHER"),e.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.401"),e.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.499"),e.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.ERROR.503"),this.downgradeSubscriptionText=new E.PR(this.defaultDowngradeText?this.defaultDowngradeText:"CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.DOWNGRADE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.DOWNGRADE.CHANGED",e);const o=new Map;o.set(0,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.OTHER"),o.set(440,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.401"),o.set(499,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.499"),o.set(503,"COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.ERROR.503"),this.unsubscribeText=new E.PR("COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.CHANGE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.CHANGED",o),this.unsubscribeModalText=new E.PR("CLIENT.PROFILE.SUBSCRIPTIONS.FUNCTIONS.UNSUBSCRIBE","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.CHANGING","COMMON.FORM.SUBSCRIPTIONS.BUTTON_STATES.UNSUBSCRIBE.CHANGED",o)}};b.\u0275fac=function(a){return new(a||b)(t.Y36(y.Sf),t.Y36(m.sK),t.Y36(B.y),t.Y36(L.T),t.Y36(F.Z),t.Y36(K.u),t.Y36(z.g),t.Y36(Z._),t.Y36(k.t),t.Y36(V.f),t.Y36(w.P))},b.\u0275cmp=t.Xpm({type:b,selectors:[["app-subscription-card"]],viewQuery:function(a,i){if(1&a&&(t.Gf(et,5),t.Gf(nt,5),t.Gf(at,5)),2&a){let e;t.iGM(e=t.CRH())&&(i.cancelFooter=e.first),t.iGM(e=t.CRH())&&(i.defaultUpgradeText=e.first),t.iGM(e=t.CRH())&&(i.defaultDowngradeText=e.first)}},inputs:{activeSubscriptionPlan:"activeSubscriptionPlan",activeSubscriptionState:"activeSubscriptionState",duration:"duration",hasBilling:"hasBilling",hasPayment:"hasPayment",index:"index",plan:"plan",pendingPlan:"pendingPlan",visiblePlans:"visiblePlans",allSubscriptionStates:"allSubscriptionStates",showFeedback:"showFeedback",loadedActiveSubscriptions:"loadedActiveSubscriptions",relatedSubscriptionKeys:"relatedSubscriptionKeys",allPlans:"allPlans",VATIncludedModuleKeysArr:"VATIncludedModuleKeysArr",VATExcludedModuleKeysArr:"VATExcludedModuleKeysArr",allModules:"allModules",relatedModuleKeys:"relatedModuleKeys"},outputs:{subscriptionChanged:"subscriptionChanged"},decls:8,vars:2,consts:[["class","mb-2",4,"ngIf"],[4,"ngIf"],["cancelFooter",""],["defaultUpgradeText",""],["defaultDowngradeText",""],[1,"mb-2"],[4,"ngFor","ngForOf"],["class","mb-0 h-100",3,"nzBodyStyle",4,"ngIf"],[1,"mb-0","h-100",3,"nzBodyStyle"],[1,"row","justify-content-between"],[1,"col-6","text-left"],["class","border-primary-1",4,"ngIf"],[1,"col-6","text-right","p-0"],[1,"border-primary-1","m-0"],[1,"row","empty-row"],[1,"col-5","text-left","font-size-12","align-self-end"],[1,"col-7","text-right","align-self-end"],[1,"opacity-07"],["class","col-5 text-left font-size-12 align-self-end",4,"ngIf"],["class","col-7 text-right al
27ign-self-end",4,"ngIf"],[1,"border-primary-1"],[1,"col-5","text-left","font-size-12"],[1,"col-7","text-right"],["nz-tooltip","",1,"opacity-07",3,"nzTooltipTitle"],[1,"d-flex","justify-content-between","p-b-20","border-bottom"],[1,"media","align-items-center"],["alt","Subscription/briefcase icon",3,"src"],[1,"m-l-15"],[1,"font-weight-bold","responsive-h2-size","m-b-0","inline-block","subscription-price"],[1,"font-size-13","font-weight-semibold","inline-block"],[1,"m-t-15","m-b-0","responsive-h4-size"],[1,"list-unstyled","m-v-30"],[1,"m-b-20"],[1,"d-flex","justify-content-between"],[1,"text-dark","font-weight-semibold"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",1,"pl-1","cursor-pointer",3,"nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement"],[1,"text-success","font-size-16","m-l-10","quota-point","text-right","font-weight-bold"],[1,"cursor-pointer","font-size-13",3,"click"],["nz-icon","","nzType","info-circle","nzTheme","outline"],[1,"text-center"],["nzType","primary","nz-tooltip","","class","multiLineButton",3,"nzGhost","nzTooltipTitle","defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys",4,"ngIf"],["nzType","primary","class","multiLineButton",3,"defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys",4,"ngIf"],["class","feedback-positioning",3,"feature","unit","title",4,"ngIf"],[1,"text-dark","font-weight-semibold","pt-1"],["nz-icon","","theme","outline",3,"nzType"],["nzType","primary","nz-tooltip","",1,"multiLineButton",3,"nzGhost","nzTooltipTitle","defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys"],["nzType","primary",1,"multiLineButton",3,"defaultFunction","defaultFunctionParameters","stickResult","nzTextKeys"],[1,"feedback-positioning",3,"feature","unit","title"],[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"],["nz-icon","","nzType","up-circle","nzTheme","outline"],["nz-icon","","nzType","down-circle","nzTheme","outline"]],template:function(a,i){1&a&&(t.YNc(0,bt,2,1,"div",0),t.YNc(1,Dt,52,78,"nz-card",1),t.YNc(2,gt,13,20,"ng-template",null,2,t.W1O),t.YNc(4,mt,3,3,"ng-template",null,3,t.W1O),t.YNc(6,Mt,3,3,"ng-template",null,4,t.W1O)),2&a&&(t.Q6J("ngIf",i.allSubscriptionStates&&0!==i.allSubscriptionStates.size&&i.allSubscriptionStates.has(i.plan.ID)&&i.allSubscriptionStates.get(i.plan.ID).length>0),t.xp6(1),t.Q6J("ngIf",i.plan))},dependencies:[D.sg,D.O5,G.X,E.P4,W.ix,Q.w,Y.dQ,j.bd,J.Ls,H.JW,$.j,q.SY,D.uU,m.X$,X.j,tt.U2,it.L],styles:['@charset "UTF-8";.brand-success[_ngcontent-%COMP%]{color:#92ddea!important}.brand-failure[_ngcontent-%COMP%]{color:#9579d1!important}.brand-red[_ngcontent-%COMP%]{color:#de4436!important}.brand-success-bg-border[_ngcontent-%COMP%]{background-color:#92ddea!important;border-color:#92ddea!important;color:#fff!important}.brand-failure-bg-border[_ngcontent-%COMP%]{background-color:#ffa5d8!important;border-color:#ffa5d8!important;color:#fff!important}.quota-point[_ngcontent-%COMP%]{min-width:21px}.subscription-price[_ngcontent-%COMP%]{line-height:25px}.empty-row[_ngcontent-%COMP%]{min-height:42px!important}.successIcon[_ngcontent-%COMP%]     svg{stroke:#92ddea;stroke-width:100}.dangerIcon[_ngcontent-%COMP%]     svg{stroke:#de4436;stroke-width:100}']}),b=(0,U.gn)([(0,h.c)()],b)}}]);

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.