1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_pagesettings_billing_manage-licence_manage-licence_module_ts"],{84983:(G,T,r)=>{r.r(T),r.d(T,{ManageLicenceModule:()=>Ot});var _=r(36895),g=r(51692),L=r(19119),Z=r(15861),u=r(24006),c=r(3940),f=r(8929),m=r(80013),x=r(75778),q=r(24850),j=r(18583),k=r(7625),R=r(68078),E=r(17489),A=r(92340),e=r(94650),z=r(37407),B=r(16785),K=r(59129),w=r(64491),$=r(20388),H=r(59922),V=r(11481),W=r(54391),X=r(1637),ee=r(32320),te=r(4358),ne=r(12553),P=r(38611),I=r(22962),ie=r(42111),v=r(96923),U=r(52712),D=r(70247),oe=r(2854);const ae=["confirmTemplate"],se=["upgradeTemplate"],le=["confirmupdatequantityTemplate"],re=["confirmupgradeplanTemplate"];function ce(i,s){1&i&&(e.TgZ(0,"div",32)(1,"strong"),e._uU(2," Payment Received!"),e.qZA(),e._uU(3," Thanks for the payment - Your Product added on Active Products & Plans\n"),e.qZA())}function pe(i,s){1&i&&(e.TgZ(0,"div",33)(1,"strong"),e._uU(2," Updated "),e.qZA(),e._uU(3," Your Subscription has been Successful updated\n"),e.qZA())}function de(i,s){1&i&&(e.TgZ(0,"div",34)(1,"strong"),e._uU(2,"Error!"),e.qZA(),e._uU(3," Something went Wrong...\n"),e.qZA())}const b=function(i,s){return{oid:i,pid:s}},S=function(i){return{"link-disabled":i}};function ue(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",35)(1,"a",36),e.NdJ("click",function(o){e.CHM(n);const a=e.oxw();return e.KtG(!a.isStripeEnabled&&o.preventDefault())}),e._UZ(2,"i",37),e.qZA(),e.TgZ(3,"a",38),e.NdJ("click",function(o){e.CHM(n);const a=e.oxw();return e.KtG(a.isStripeEnabled?a.checkForQsTooltip():o.preventDefault())}),e._UZ(4,"i",39),e._uU(5," Add Subscription "),e.qZA(),e.TgZ(6,"button",40),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return o.onGenerateSessionID(),e.KtG(o.checkForQsTooltip())}),e._UZ(7,"i",41),e._uU(8," Manage Current Subscriptions "),e.qZA()()}if(2&i){const n=e.oxw();e.xp6(1),e.Q6J("queryParams",e.WLB(8,b,n.queryOID,n.queryPID))("ngClass",e.VKq(11,S,!n.isStripeEnabled)),e.xp6(2),e.Udp("pointer-events",n.isStripeEnabled&&"View Only"!==n.userRole&&"Organization View only"!==n.userRole?null:"none"),e.Q6J("queryParams",e.WLB(13,b,n.queryOID,n.queryPID))("ngClass",e.VKq(16,S,!n.isStripeEnabled||"View Only"===n.userRole||"Organization View only"===n.userRole)),e.uIk("aria-disabled",!n.isStripeEnabled||"View Only"===n.userRole||"Organization View only"===n.userRole),e.xp6(3),e.Q6J("disabled",!n.isStripeEnabled||"View Only"===n.userRole||"Organization View only"===n.userRole)}}function ge(i,s){1&i&&(e.TgZ(0,"tr"),e._UZ(1,"th",45),e.TgZ(2,"th",46),e._uU(3,"Subscription name"),e.qZA(),e.TgZ(4,"th",46),e._uU(5,"Billing Cycle"),e.qZA(),e.TgZ(6,"th",46),e._uU(7,"Renew Date"),e.qZA(),e.TgZ(8,"th",46),e._uU(9,"Status"),e.qZA()())}function _e(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw(2).$implicit;e.xp6(1),e.hij(" Cancels on ",n.cancelled_at.slice(0,10)," ")}}function me(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",null==n?null:n.current_period_end.slice(0,10)," ")}}const O=function(i,s){return{"badge-danger":i,"badge-success":s}},J=function(i,s,n,t){return{"badge-danger":i,"badge-success":s,"badge-warning":n,"badge-info":t}};function he(i,s){if(1&i){const n=e.EpF();e.ynx(0),e.TgZ(1,"td")(2,"button",47),e.NdJ("click",function(){e.CHM(n);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.onGetActivePlanwithId(o))}),e.qZA()(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td")(8,"span",48),e.YNc(9,_e,2,1,"ng-container",17),e.YNc(10,me,2,1,"ng-container",17),e.qZA()(),e.TgZ(11,"td")(12,"span",48),e.ynx(13),e._uU(14),e.BQk(),e.qZA()(),e.BQk()}if(2&i){const n=e.oxw(),t=n.$implicit,o=n.expanded;e.xp6(2),e.Q6J("pRowToggler",t)("icon",o?"pi pi-chevron-down":"pi pi-chevron-right"),e.xp6(2),e.Oqu(t.sub_name),e.xp6(2),e.Oqu(t.cycle),e.xp6(2),e.Q6J("ngClass",e.WLB(9,O,1==t.cancel_at_period_end,null==t.cancel_at_period_end||0==t.cancel_at_period_end)),e.xp6(1),e.Q6J("ngIf",t.cancel_at_period_end),e.xp6(1),e.Q6J("ngIf",null==t.cancel_at_period_end||0==t.cancel_at_period_end),e.xp6(2),e.Q6J("ngClass",e.l5B(12,J,"canceled"==(null==t?null:t.status)||"incomplete"==(null==t?null:t.status)||"incomplete_expired"==(null==t?null:t.status),"active"==(null==t?null:t.status),"past_due"==(null==t?null:t.status)||"unpaid"==(null==t?null:t.status),"trialing"==(null==t?null:t.status))),e.xp6(2),e.hij(" ",null==t?null:t.status," ")}}
1function fe(i,s){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,he,15,17,"ng-container",17),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("ngIf",n.active)}}function xe(i,s){1&i&&(e.TgZ(0,"tr")(1,"th",54),e._uU(2," Product Name "),e.qZA(),e.TgZ(3,"th",55),e._uU(4," Billing Cycle "),e.qZA(),e.TgZ(5,"th",56),e._uU(6," Used / Total Subscription "),e.qZA(),e.TgZ(7,"th",46),e._uU(8,"Renew Date"),e.qZA(),e.TgZ(9,"th",55),e._uU(10," Price "),e.qZA(),e.TgZ(11,"th",57),e._uU(12," Status "),e.qZA(),e.TgZ(13,"th",46),e._uU(14,"Quantity"),e.qZA(),e.TgZ(15,"th",46),e._uU(16,"Action"),e.qZA()())}const Q=function(i){return["/settings/billing/manage/property",i]};function be(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"td")(1,"a",68),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(5);return e.KtG(o.checkForQsTooltip())}),e._uU(2),e.qZA()()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw(3);e.xp6(1),e.Q6J("routerLink",e.VKq(3,Q,n.id))("queryParams",e.WLB(5,b,t.queryOID,t.queryPID)),e.xp6(1),e.hij(" ",n.product_name,"")}}const N=function(i){return["/settings/billing/manage/organizations",i]};function ve(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"td")(1,"a",68),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(5);return e.KtG(o.checkForQsTooltip())}),e._uU(2),e.qZA()()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw(3);e.xp6(1),e.Q6J("routerLink",e.VKq(3,N,n.id))("queryParams",e.WLB(5,b,t.queryOID,t.queryPID)),e.xp6(1),e.hij(" ",n.product_name,"")}}function ye(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw(2).$implicit;e.xp6(1),e.hij(" Cancels on ",n.cancelled_at.slice(0,10)," ")}}function Te(i,s){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const n=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",null==n?null:n.current_period_end.slice(0,10)," ")}}function Ze(i,s){if(1&i){const n=e.EpF();e.ynx(0),e.TgZ(1,"td",69)(2,"button",70),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3),l=e.MAs(40);return e.KtG(a.openModal(l,o))}),e.qZA(),e.TgZ(3,"a",71)(4,"button",72),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.userAction(o.id,a.quickDivID))}),e.qZA()(),e.TgZ(5,"span",73)(6,"button",74),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.contactSalesTeam(o.product_name))}),e.qZA()(),e.TgZ(7,"button",75),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.disableProperty(o,"property"))}),e.qZA()(),e.BQk()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw(3);e.xp6(2),e.Q6J("disabled",n.assigned_licence==n.total_licence),e.xp6(1),e.Q6J("routerLink",e.VKq(7,Q,n.id))("queryParams",e.WLB(9,b,t.queryOID,t.queryPID)),e.xp6(1),e.Q6J("ngClass",6==t.quickDivID&&t.quickDivID==t.currentLinkID&&!t.iswindowclicked||19==t.quickDivID&&t.quickDivID==t.currentLinkID&&!t.iswindowclicked?"btn-qs-hightlight":""),e.xp6(1),e.Q6J("tooltip","true"==n.combo_plan?"This feature is not available for business plans":""),e.xp6(1),e.Q6J("disabled","true"==n.combo_plan),e.xp6(1),e.Q6J("disabled",1==n.cancel_at_period_end)}}function Le(i,s){if(1&i){const n=e.EpF();e.ynx(0),e.TgZ(1,"td",69)(2,"button",76),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3),l=e.MAs(38);return e.KtG(a.openModalOrg(l,o))}),e.qZA(),e.TgZ(3,"a",77)(4,"button",72),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.userActionForOrg(o.id,a.quickDivID))}),e.qZA()(),e.TgZ(5,"span",73)(6,"button",74),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.contactSalesTeam(o.product_name))}),e.qZA()(),e.TgZ(7,"button",78),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.disableProperty(o,"organization"))}),e.qZA()(),e.BQk()}if(2&i){const n=e.oxw(2).$implicit,t=e.oxw(3);e.xp6(2),e.Q6J("disabled",n.assigned_licence==n.total_licence),e.xp6(1),e.Q6J("routerLink",e.VKq(7,N,n.id))("queryParams",e.WLB(9,b,t.queryOID,t.queryPID)),e.xp6(1),e.Q6J("ngClass",12!=t.quickDivID||t.quickDivID!=t.currentLinkID||t.iswindowclicked?"":"btn-qs-hightlight"),e.xp6(1),e.Q6J("tooltip","true"==n.combo_plan?"This feature is not available for business plans":""),e.xp6(1),e.Q6J("disabled","true"==n.combo_plan),e.xp6(1),e.Q6J("disabled",1==n.cancel_at_period_end)}}const Ae=function(i){return{width:i}};
1function Ce(i,s){if(1&i){const n=e.EpF();e.ynx(0),e.YNc(1,be,3,8,"td",17),e.YNc(2,ve,3,8,"td",17),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td")(6,"div",58)(7,"div",59)(8,"div",60)(9,"span",61),e._uU(10),e.qZA(),e._UZ(11,"div",62),e.qZA()()()(),e.TgZ(12,"td")(13,"span",48),e.YNc(14,ye,2,1,"ng-container",17),e.YNc(15,Te,2,1,"ng-container",17),e.qZA()(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"currency"),e.ALo(19,"uppercase"),e.qZA(),e.TgZ(20,"td")(21,"span",48),e.ynx(22),e._uU(23),e.BQk(),e.qZA()(),e.TgZ(24,"td")(25,"span",63)(26,"button",64),e.NdJ("click",function(o){e.CHM(n);const a=e.MAs(28),l=e.oxw().$implicit,d=e.oxw(3);return e.KtG(d.substract(o,a,l))}),e.qZA(),e.TgZ(27,"input",65,66),e.NdJ("input",function(o){e.CHM(n);const a=e.MAs(28),l=e.oxw().$implicit,d=e.oxw(3);return e.KtG(d.mychange(o,a,l))}),e.qZA(),e.TgZ(29,"button",67),e.NdJ("click",function(o){e.CHM(n);const a=e.MAs(28),l=e.oxw().$implicit,d=e.oxw(3);return e.KtG(d.addition(o,a,l))}),e.qZA()()(),e.YNc(30,Ze,8,12,"ng-container",17),e.YNc(31,Le,8,12,"ng-container",17),e.BQk()}if(2&i){const n=e.MAs(28),t=e.oxw().$implicit,o=e.oxw(3);e.xp6(1),e.Q6J("ngIf","property"===t.level),e.xp6(1),e.Q6J("ngIf","property"!==t.level),e.xp6(2),e.Oqu(t.cycle),e.xp6(6),e.AsE(" ",t.assigned_licence," / ",t.total_licence,""),e.xp6(1),e.Q6J("ngStyle",e.VKq(26,Ae,o.onCalculateOptValue(t.assigned_licence,t.total_licence)+"%")),e.xp6(2),e.Q6J("ngClass",e.WLB(28,O,1==t.cancel_at_period_end,null==t.cancel_at_period_end||0==t.cancel_at_period_end)),e.xp6(1),e.Q6J("ngIf",t.cancel_at_period_end),e.xp6(1),e.Q6J("ngIf",null==t.cancel_at_period_end||0==t.cancel_at_period_end),e.xp6(2),e.hij(" ",e.xi3(18,21,t.amount/100,e.lcZ(19,24,t.currency))," "),e.xp6(4),e.Q6J("ngClass",e.l5B(31,J,"canceled"==(null==t?null:t.status)||"incomplete"==(null==t?null:t.status)||"incomplete_expired"==(null==t?null:t.status),"active"==(null==t?null:t.status),"past_due"==(null==t?null:t.status)||"unpaid"==(null==t?null:t.status),"trialing"==(null==t?null:t.status))),e.xp6(2),e.hij(" ",null==t?null:t.status," "),e.xp6(2),e.Q6J("tooltip","true"==t.combo_plan?"This feature is not available for business plans":""),e.xp6(1),e.Q6J("hidden","Free Plan"==t.plan_name)("disabled",n.value<=t.assigned_licence||"true"==t.combo_plan),e.xp6(1),e.Q6J("hidden","Free Plan"==t.plan_name)("value",t.total_licence),e.xp6(2),e.Q6J("hidden","Free Plan"==t.plan_name)("disabled",n.value>=10||"true"==t.combo_plan),e.xp6(1),e.Q6J("ngIf","property"===t.level),e.xp6(1),e.Q6J("ngIf","property"!==t.level)}}function Me(i,s){if(1&i&&(e.TgZ(0,"tr"),e.YNc(1,Ce,32,36,"ng-container",17),e.qZA()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("ngIf",n.active)}}function qe(i,s){1&i&&(e.TgZ(0,"tr")(1,"td",49),e._uU(2,"No records found."),e.qZA()())}function ke(i,s){if(1&i&&(e.TgZ(0,"tr")(1,"td",49)(2,"div",50)(3,"p-divider",51)(4,"b",52),e._uU(5,"Plan"),e.qZA()(),e.TgZ(6,"p-table",53),e.YNc(7,xe,17,0,"ng-template",21),e.YNc(8,Me,2,1,"ng-template",22),e.YNc(9,qe,3,0,"ng-template",23),e.qZA()()()()),2&i){const n=e.oxw(2);e.xp6(6),e.Q6J("loading",n.subloading)("value",n.activeSubscriptionList)}}const Y=function(){return[10,20,30]};function we(i,s){if(1&i){const n=e.EpF();e.ynx(0),e.TgZ(1,"p-table",42),e.NdJ("sortFunction",function(o){e.CHM(n);const a=e.oxw();return e.KtG(a.customSort(o))})("selectionChange",function(o){e.CHM(n);const a=e.oxw();return e.KtG(a.selectedProducts=o)}),e.YNc(2,ge,10,0,"ng-template",21),e.YNc(3,fe,2,1,"ng-template",43),e.YNc(4,ke,10,2,"ng-template",44),e.qZA(),e.BQk()}if(2&i){const n=e.oxw();e.xp6(1),e.Q6J("value",n.planSubscriptionList)("lazy",!0)("rowsPerPageOptions",e.DdM(8,Y))("paginator",!1)("rows",10)("showCurrentPageReport",!0)("totalRecords",n.activeSubscriptionListCount)("selection",n.selectedProducts)}}function Pe(i,s){1&i&&e._UZ(0,"ngx-skeleton-loader",79)}function Ie(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div")(1,"app-contact-sales",80),e.NdJ("closeModal",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.closeModal())})("displayMessage",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.displayMesseage())}),e.qZA()()}if(2&i){const n=e.oxw();e.xp6(1),e.Q6J("selectedOption",n.selectedProductName)}}function Ue(i,s){1&i&&(e.TgZ(0,"tr",81)(1,"th",82),e._uU(2,"Product Name"),e.qZA(),e.TgZ(3,"th",83),e._uU(4,"Plan Name"),e.qZA(),e.TgZ(5,"th",46),e._uU(6,"Status"),e.qZA(),e.TgZ(7,"th",84),e._uU(8," Price "),e._UZ(9,"p-sortIcon",85),e.qZA()())}
1function De(i,s){if(1&i&&(e.TgZ(0,"tr")(1,"td",86)(2,"b"),e._uU(3),e.qZA()(),e.TgZ(4,"td",87),e._uU(5),e.qZA(),e.TgZ(6,"td",88)(7,"span",89),e._UZ(8,"i",90),e._uU(9,"Inactive"),e.qZA(),e._uU(10),e.qZA(),e._uU(11),e.ALo(12,"currency"),e.ALo(13,"uppercase"),e.qZA()),2&i){const n=s.$implicit;e.xp6(3),e.hij(" ",n.product_name,""),e.xp6(2),e.Oqu(n.plan_name),e.xp6(5),e.hij(" Expired on ",n.plan_ends.slice(0,10)," "),e.xp6(1),e.hij(" ",e.xi3(12,4,n.price,e.lcZ(13,7,n.currency))," ")}}function Se(i,s){1&i&&(e.TgZ(0,"tr")(1,"td"),e._uU(2,"No records found"),e.qZA()()),2&i&&(e.xp6(1),e.uIk("colspan",4))}function Oe(i,s){1&i&&e._UZ(0,"ngx-skeleton-loader",79)}function Je(i,s){if(1&i&&(e.TgZ(0,"alert",91),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.Q6J("type",n.alertType)("dismissible",n.dismissible),e.xp6(1),e.Oqu(n.alertMsg)}}function Qe(i,s){1&i&&(e.TgZ(0,"p"),e._uU(1,"This Field is Required"),e.qZA())}const F=function(){return{width:"100%"}};function Ne(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h4",93),e._uU(2,"Assign New Organization"),e.qZA(),e.TgZ(3,"button",94),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",96)(7,"form",97),e.NdJ("ngSubmit",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onSubmitOrg())}),e.TgZ(8,"label",98),e._uU(9,"Select Organization:"),e.qZA(),e.TgZ(10,"div",13)(11,"div",99),e._UZ(12,"p-multiSelect",100),e.qZA(),e.TgZ(13,"div",101)(14,"button",102),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e._uU(15," Cancel "),e.qZA(),e.TgZ(16,"button",103),e._uU(17," Assign "),e.qZA()()(),e.YNc(18,Qe,2,0,"p",17),e.qZA()()}if(2&i){const n=e.oxw();e.xp6(7),e.Q6J("formGroup",n.orgForm),e.xp6(5),e.Akn(e.DdM(8,F)),e.Q6J("disabled",n.totalLicenceOrg-n.assigneLicenceOrg==0)("selectionLimit",n.totalLicenceOrg-n.assigneLicenceOrg)("options",n.allUnSignOrgList),e.xp6(4),e.Q6J("disabled",n.totalLicenceOrg-n.assigneLicenceOrg==0),e.xp6(2),e.Q6J("ngIf",n.orgNameError)}}function Ye(i,s){if(1&i&&(e.TgZ(0,"option",107),e._uU(1),e.qZA()),2&i){const n=s.$implicit;e.Q6J("value",n.id),e.xp6(1),e.hij(" ",n.orgname," ")}}function Fe(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1,"This Field is required"),e.qZA())}function Ge(i,s){if(1&i&&(e.TgZ(0,"div",115),e.YNc(1,Fe,2,0,"div",17),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.f.propID.errors.required)}}function je(i,s){1&i&&(e.TgZ(0,"div",116),e._uU(1," Property is not Valid "),e.qZA())}function Re(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h4",93),e._uU(2,"Assign New Property"),e.qZA(),e.TgZ(3,"button",94),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",96)(7,"form",97),e.NdJ("ngSubmit",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onSubmit())}),e.TgZ(8,"div",104)(9,"label",105),e._uU(10,"Select Organization:"),e.qZA(),e.TgZ(11,"select",106),e.NdJ("change",function(o){e.CHM(n);const a=e.oxw();return e.KtG(a.onGetAllPropertyList(o))}),e.TgZ(12,"option",107),e._uU(13,"-- Select Organization --"),e.qZA(),e.YNc(14,Ye,2,2,"option",108),e.qZA()(),e.TgZ(15,"div")(16,"label",109),e._uU(17,"Select Property:"),e.qZA(),e._UZ(18,"br")(19,"p-multiSelect",110),e.qZA(),e.YNc(20,Ge,2,1,"div",111),e.YNc(21,je,2,0,"div",112),e.TgZ(22,"div",113)(23,"button",114),e._uU(24," Assign "),e.qZA()()()()}if(2&i){const n=e.oxw();e.xp6(7),e.Q6J("formGroup",n.propertyForm),e.xp6(7),e.Q6J("ngForOf",n.orgList),e.xp6(5),e.Akn(e.DdM(9,F)),e.Q6J("disabled",n.totalLicence-n.assigneLicence==0)("selectionLimit",n.totalLicence-n.assigneLicence)("options",n.allUnSignPropertyList),e.xp6(1),e.Q6J("ngIf",n.submitted&&n.f.propID.errors),e.xp6(1),e.Q6J("ngIf",n.propertyNameError)}}function Ee(i,s){1&i&&(e.TgZ(0,"div",121)(1,"h4",122),e._uU(2," Loading... "),e.qZA()())}function ze(i,s){if(1&i&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&i){const n=e.oxw(3);e.xp6(1),e.hij(" This will cancel the ",n.cancelallplans.length," plan/plans as you have purchased all this plan/plans at a single time. Below mentioned plan/plans lie under same subscription")}}function Be(i,s){1&i&&(e.TgZ(0,"strong",128),e._uU(1,"You cannot delete this plan/plans as some of the plans has property/organization assigned to them Kindly remove the Subscription from property/organizations and try again!"),e.qZA())}const Ke=function(i,s){return{greenClass:i,redClass:s}};
1function $e(i,s){if(1&i&&(e.TgZ(0,"div",129)(1,"div",130)(2,"div",131)(3,"p"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.ALo(7,"currency"),e.ALo(8,"uppercase"),e.qZA()(),e.TgZ(9,"div",132)(10,"p"),e._uU(11," Used/Total Subscriptions :- "),e.TgZ(12,"b"),e._uU(13),e.qZA()(),e.TgZ(14,"p"),e._uU(15),e.ALo(16,"currency"),e.ALo(17,"uppercase"),e.qZA()(),e.TgZ(18,"div",133)(19,"h6"),e._uU(20,"Total"),e.qZA(),e.TgZ(21,"h6"),e._uU(22),e.ALo(23,"currency"),e.ALo(24,"uppercase"),e.qZA()()()()),2&i){const n=s.$implicit;e.xp6(1),e.Q6J("ngClass",e.WLB(23,Ke,0==n.assigned_licence,n.assigned_licence>0)),e.xp6(3),e.Oqu(n.planDetails.product_name),e.xp6(2),e.hij(" ",e.xi3(7,8,n.planDetails.price*n.total_licence,e.lcZ(8,11,n.currency))," "),e.xp6(7),e.AsE("",n.assigned_licence," / ",n.total_licence,""),e.xp6(2),e.hij(" ",e.xi3(16,13,n.planDetails.price,e.lcZ(17,16,n.currency))," each "),e.xp6(7),e.AsE(" ",e.xi3(23,18,n.planDetails.price*n.total_licence,e.lcZ(24,21,n.currency))," / ",n.planDetails.cycle," ")}}function He(i,s){1&i&&(e.TgZ(0,"p"),e._uU(1,"Please type "),e.TgZ(2,"strong"),e._uU(3,"'Delete'"),e.qZA(),e._uU(4," to confirm"),e.qZA())}function Ve(i,s){1&i&&(e.TgZ(0,"div",138),e._uU(1," Enter appropriate text "),e.qZA())}function We(i,s){1&i&&(e.TgZ(0,"button",139),e._uU(1," I understand the consequences, delete this plan/plans "),e.qZA())}function Xe(i,s){1&i&&(e.TgZ(0,"button",139),e._uU(1," I understand the consequences, delete this plan/plans "),e.qZA())}const et=function(i){return{"is-invalid":i}};function tt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"form",97),e.NdJ("ngSubmit",function(){e.CHM(n);const o=e.oxw(3);return e.KtG(o.onSubmitConfirmation(o.controlname))}),e._UZ(1,"input",134),e.YNc(2,Ve,2,0,"div",135),e.TgZ(3,"div",136),e.YNc(4,We,2,0,"button",137),e.YNc(5,Xe,2,0,"button",137),e.qZA()()}if(2&i){const n=e.oxw(3);e.Q6J("formGroup",n.confirmationForm),e.xp6(1),e.Q6J("ngClass",e.VKq(5,et,n.isconfirmationsubmitted&&"Delete"!==n.confirmDelete.userInput.value)),e.xp6(1),e.Q6J("ngIf",n.isconfirmationsubmitted&&"Delete"!==n.confirmDelete.userInput.value),e.xp6(2),e.Q6J("ngIf","organization"==n.controlname),e.xp6(1),e.Q6J("ngIf","property"==n.controlname)}}function nt(i,s){if(1&i&&(e.TgZ(0,"div",123),e.YNc(1,ze,2,1,"strong",17),e.YNc(2,Be,2,0,"strong",124),e.TgZ(3,"div",125),e.YNc(4,$e,25,26,"div",126),e.qZA(),e.YNc(5,He,5,0,"p",17),e.YNc(6,tt,6,7,"form",127),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.allow),e.xp6(1),e.Q6J("ngIf",!n.allow),e.xp6(2),e.Q6J("ngForOf",n.cancelallplans),e.xp6(1),e.Q6J("ngIf",n.allow),e.xp6(1),e.Q6J("ngIf",n.allow)}}function it(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h5",117),e._uU(2,"Cancel Plan!"),e.qZA(),e.TgZ(3,"button",118),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onCanceled())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.YNc(6,Ee,3,0,"div",119),e.YNc(7,nt,7,5,"div",120)}if(2&i){const n=e.oxw();e.xp6(6),e.Q6J("ngIf",n.isloading),e.xp6(1),e.Q6J("ngIf",!n.isloading)}}function ot(i,s){if(1&i&&(e.TgZ(0,"div",132)(1,"span",148),e._UZ(2,"i",149),e._uU(3),e.qZA()()),2&i){const n=e.oxw(2);e.xp6(3),e.hij("Discount applied ",n.newplandetails.discount_percentage," %")}}function at(i,s){if(1&i&&(e.TgZ(0,"h6"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"uppercase"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,n.newplandetails.amount/100*n.newquantity-n.newplandetails.amount/100*n.newquantity*n.newplandetails.discount_percentage/100,e.lcZ(3,4,n.newplandetails.currency))," ")}}function st(i,s){if(1&i&&(e.TgZ(0,"h6"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"uppercase"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,n.newplandetails.amount/100*n.newquantity,e.lcZ(3,4,n.newplandetails.currency))," ")}}function lt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h5",117),e._uU(2,"Update Quantity"),e.qZA(),e.TgZ(3,"button",118),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onquantityUpdateCancel())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",140)(7,"div")(8,"h5"),e._uU(9),e.qZA(),e.TgZ(10,"h5"),e._uU(11),e.ALo(12,"currency"),e.ALo(13,"uppercase"),e.qZA()(),e._UZ(14,"hr"),e.TgZ(15,"div",141)(16,"div",142)(17,"div",131)(18,"p"),e._uU(19),e.qZA(),e.TgZ(20,"p"),e._uU(21),e.ALo(22,"currency"),e.ALo(23,"uppercase"),e.qZA()(),e.TgZ(24,"div",132)(25,"p"),e._uU(26," Qty :- "),e.TgZ(27,"b"),e._uU(28),e.qZA()(),e.TgZ(29,"p"),e._uU(30),e.ALo(31,"currency"),e.ALo(32,"uppercase"),e.qZA()(),e.YNc(33,ot,4,1,"div",143),e.TgZ(34,"div",144)(35,"h6"),e._uU(36),e.qZA(),e.YNc(37,at,4,6,"h6",17),e.YNc(38,st,4,6,"h6",17),e.qZA()()(),e.TgZ(39,"div",145)(40,"button",146),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onquantityUpdateCancel())}),e._uU(41," Cancel "),e.qZA(),e.TgZ(42,"button",147),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.quantityupgrade())}),e._uU(43," Confirm "),e.qZA()()()}if(2&i){const n=e.oxw();
1e.xp6(9),e.Oqu(n.newplandetails.product_name),e.xp6(2),e.AsE(" ",e.xi3(12,11,n.newplandetails.amount/100,e.lcZ(13,14,n.newplandetails.currency))," each per ",n.newplandetails.cycle," "),e.xp6(8),e.Oqu(n.newplandetails.product_name),e.xp6(2),e.hij(" ",e.xi3(22,16,n.newplandetails.amount/100*n.newquantity,e.lcZ(23,19,n.newplandetails.currency))," "),e.xp6(7),e.Oqu(n.newquantity),e.xp6(2),e.hij(" ",e.xi3(31,21,n.newplandetails.amount/100,e.lcZ(32,24,n.newplandetails.currency))," each "),e.xp6(3),e.Q6J("ngIf",n.newplandetails.discount_applied),e.xp6(3),e.hij("You will pay ",n.newplandetails.cycle,""),e.xp6(1),e.Q6J("ngIf",n.newplandetails.discount_applied),e.xp6(1),e.Q6J("ngIf",0==n.newplandetails.discount_applied||null==n.newplandetails.discount_applied)}}function rt(i,s){if(1&i&&(e.TgZ(0,"div",132)(1,"span",148),e._UZ(2,"i",149),e._uU(3),e.qZA()()),2&i){const n=e.oxw(2);e.xp6(3),e.hij("Previous plan discount ",n.currentobj.discount_percentage," %")}}function ct(i,s){if(1&i&&(e.TgZ(0,"h6"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"uppercase"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,n.choosenplandetails.price*n.currentobj.total_licence-n.choosenplandetails.price*n.currentobj.total_licence*n.currentobj.discount_percentage/100,e.lcZ(3,4,n.choosenplandetails.currency))," ")}}function pt(i,s){if(1&i&&(e.TgZ(0,"h6"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"uppercase"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,n.choosenplandetails.price*n.currentobj.total_licence,e.lcZ(3,4,n.choosenplandetails.currency))," ")}}function dt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h5",117),e._uU(2,"Are you absolutely sure you want to upgrade?"),e.qZA(),e.TgZ(3,"button",118),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onquantityUpdateCancel())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",140)(7,"div",150)(8,"div",142)(9,"div",131)(10,"h6"),e._uU(11),e.qZA(),e.TgZ(12,"h6"),e._uU(13),e.ALo(14,"currency"),e.ALo(15,"uppercase"),e.qZA()(),e.TgZ(16,"div",132)(17,"p"),e._uU(18),e.qZA(),e.TgZ(19,"p"),e._uU(20),e.ALo(21,"currency"),e.ALo(22,"uppercase"),e.qZA()(),e.YNc(23,rt,4,1,"div",143),e.TgZ(24,"div",151)(25,"h6"),e._uU(26),e.qZA(),e.YNc(27,ct,4,6,"h6",17),e.YNc(28,pt,4,6,"h6",17),e.qZA()()(),e.TgZ(29,"div",145)(30,"button",152),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.onquantityUpdateCancel())}),e._uU(31," Cancel "),e.qZA(),e.TgZ(32,"button",153),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.plansupgrade())}),e._uU(33," Upgrade "),e.qZA()()()}if(2&i){const n=e.oxw();e.xp6(11),e.Oqu(n.choosenplandetails.product_name),e.xp6(2),e.AsE(" ",e.xi3(14,9,n.choosenplandetails.price,e.lcZ(15,12,n.choosenplandetails.currency))," / ",n.choosenplandetails.cycle," "),e.xp6(5),e.hij("Qty - ",n.currentobj.total_licence,""),e.xp6(2),e.hij(" ",e.xi3(21,14,n.choosenplandetails.price*n.currentobj.total_licence,e.lcZ(22,17,n.choosenplandetails.currency))," "),e.xp6(3),e.Q6J("ngIf",n.currentobj.discount_applied),e.xp6(3),e.hij("You will pay ",n.choosenplandetails.cycle,""),e.xp6(1),e.Q6J("ngIf",n.currentobj.discount_applied),e.xp6(1),e.Q6J("ngIf",0==n.currentobj.discount_applied||null==n.currentobj.discount_applied)}}function ut(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1," No Coookie plans Available "),e.qZA())}function gt(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1," No DSAR plans Available "),e.qZA())}function _t(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1," No Consent plans Available "),e.qZA())}function mt(i,s){1&i&&(e.TgZ(0,"div"),e._uU(1," No social fortuna plans Available "),e.qZA())}function ht(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",160)(1,"div",142)(2,"h5",161),e._uU(3),e.qZA(),e.TgZ(4,"p",162),e._uU(5),e.ALo(6,"currency"),e.ALo(7,"uppercase"),e.qZA()(),e.TgZ(8,"div",163)(9,"button",164),e.NdJ("click",function(){e.CHM(n);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.upgradetothisPlan(o))}),e._uU(10," Upgrade to this Plan "),e.qZA()()()}if(2&i){const n=e.oxw().$implicit;e.xp6(3),e.AsE(" ",n.product_name," ",n.cycle," "),e.xp6(2),e.hij(" Price ",e.xi3(6,3,n.price,e.lcZ(7,6,n.currency))," ")}}
1function ft(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,ht,11,8,"div",159),e.qZA()),2&i){const n=s.index,t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n>t.index)}}function xt(i,s){if(1&i&&(e.TgZ(0,"div",157),e.YNc(1,ft,2,1,"div",158),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.subscriptionList)}}function bt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"label",166)(1,"div",160)(2,"div",142)(3,"h5",161),e._uU(4),e.qZA(),e.TgZ(5,"p",162),e._uU(6),e.ALo(7,"currency"),e.ALo(8,"uppercase"),e.qZA()(),e.TgZ(9,"div",163)(10,"button",164),e.NdJ("click",function(){e.CHM(n);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.upgradetothisPlan(o))}),e._uU(11," Upgrade to this Plan "),e.qZA()()()()}if(2&i){const n=e.oxw().$implicit;e.xp6(4),e.AsE(" ",n.product_name," ",n.cycle," "),e.xp6(2),e.hij(" Price ",e.xi3(7,3,n.price,e.lcZ(8,6,n.currency))," ")}}function vt(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,bt,12,8,"label",165),e.qZA()),2&i){const n=s.index,t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n>t.index)}}function yt(i,s){if(1&i&&(e.TgZ(0,"div",157),e.YNc(1,vt,2,1,"div",158),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.dsarPlanList)}}function Tt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"label",166)(1,"div",160)(2,"div",142)(3,"h5",161),e._uU(4),e.qZA(),e.TgZ(5,"p",162),e._uU(6),e.ALo(7,"currency"),e.ALo(8,"uppercase"),e.qZA()(),e.TgZ(9,"div",163)(10,"button",164),e.NdJ("click",function(){e.CHM(n);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.upgradetothisPlan(o))}),e._uU(11," Upgrade to this Plan "),e.qZA()()()()}if(2&i){const n=e.oxw().$implicit;e.xp6(4),e.AsE(" ",n.product_name," ",n.cycle," "),e.xp6(2),e.hij(" Price ",e.xi3(7,3,n.price,e.lcZ(8,6,n.currency))," ")}}function Zt(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Tt,12,8,"label",165),e.qZA()),2&i){const n=s.index,t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n>t.index)}}function Lt(i,s){if(1&i&&(e.TgZ(0,"div",157),e.YNc(1,Zt,2,1,"div",158),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.socialFortunaList)}}function At(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"label",166)(1,"div",160)(2,"div",142)(3,"h5",161),e._uU(4),e.qZA(),e.TgZ(5,"p",162),e._uU(6),e.ALo(7,"currency"),e.ALo(8,"uppercase"),e.qZA()(),e.TgZ(9,"div",163)(10,"button",164),e.NdJ("click",function(){e.CHM(n);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.upgradetothisPlan(o))}),e._uU(11," Upgrade to this Plan "),e.qZA()()()()}if(2&i){const n=e.oxw().$implicit;e.xp6(4),e.AsE(" ",n.product_name," ",n.cycle," "),e.xp6(2),e.hij(" Price ",e.xi3(7,3,n.price,e.lcZ(8,6,n.currency))," ")}}function Ct(i,s){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,At,12,8,"label",165),e.qZA()),2&i){const n=s.index,t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n>t.index)}}function Mt(i,s){if(1&i&&(e.TgZ(0,"div",157),e.YNc(1,Ct,2,1,"div",158),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.consentPreferenceList)}}function qt(i,s){if(1&i){const n=e.EpF();e.TgZ(0,"div",92)(1,"h5",117),e._uU(2,"Upgrade Subscription"),e.qZA(),e.TgZ(3,"button",118),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.cancelModal())}),e.TgZ(4,"span",95),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",140)(7,"div")(8,"h5"),e._uU(9,"Current Plan"),e.qZA(),e.TgZ(10,"div",154)(11,"h6"),e._uU(12),e.qZA(),e.TgZ(13,"h6"),e._uU(14),e.qZA()(),e._UZ(15,"hr"),e.TgZ(16,"h5"),e._uU(17,"Available Plans for Upgradation"),e.qZA(),e.YNc(18,ut,2,0,"div",17),e.YNc(19,gt,2,0,"div",17),e.YNc(20,_t,2,0,"div",17),e.YNc(21,mt,2,0,"div",17),e.TgZ(22,"div",155),e.YNc(23,xt,2,1,"div",156),e.YNc(24,yt,2,1,"div",156),e.YNc(25,Lt,2,1,"div",156),e.YNc(26,Mt,2,1,"div",156),e.qZA()()()}if(2&i){const n=e.oxw();e.xp6(12),e.Oqu(n.currentplan),e.xp6(2),e.AsE("$",n.currentplanprice," - ",n.currentplancycle,""),e.xp6(4),e.Q6J("ngIf",n.index==n.subscriptionListLength&&n.cookiePlans),e.xp6(1),e.Q6J("ngIf",n.index==n.dsarPlanListLength&&n.dsarPlans),e.xp6(1),e.Q6J("ngIf",n.index==n.consentPreferenceListLength&&n.consentPlans),e.xp6(1),e.Q6J("ngIf",n.index==n.socialFortunaListLength&&n.socialfortuna),e.xp6(2),e.Q6J("ngIf",n.cookiePlans&&n.index!==n.subscriptionListLength),e.xp6(1),e.Q6J("ngIf",n.dsarPlans&&n.index!==n.dsarPlanListLength),e.xp6(1),e.Q6J("ngIf",n.socialfortuna&&n.index!==n.socialFortunaListLength),e.xp6(1),e.Q6J("ngIf",n.consentPlans&&n.index!==n.consentPreferenceListLength)}}const kt=function(i){return{hide:i}};let wt=(()=>{const s=class{constructor(t,o,a,l,d,p,h,Jt,Qt,Nt,Yt,Ft,Gt,jt){this.loading=t,this.billingService=o,this.quickmenuService=a,this.userService=l,this.formBuilder=d,this.modalService=p,this.dataService=h,this.orgservice=Jt,this.activatedRoute=Qt,this.cdRef=Nt,this.router=Yt,this.titleService=Ft,this.location=Gt,this.messagingService=jt,this.featurePlanKeywords=["task management"],this.unsubscribeAfterUserAction$=new f.xQ,this.activeSubscriptionList=[],this.isOpen=!1,this.skLoading=!1,this.showManageText=!1,this.inActiveplans=[],this.dismissible=!0,this.submitted=!1,this.assigneLicence=0,this.propertyList=[],this.planID="",this.oID="",this.planType="",this.allUnSignPropertyList=[],this.orgList=[],this.totalLicence=0,this.propertyNameError=!1,this.allUnSignOrgList=[],this.totalLicenceOrg=0,this.assigneLicenceOrg=0,this.orgNameError=null,this.actuallinkstatus=!1,this.actualbtnClickstatus=!1,this.cookieConsentBilling
1Cycle="monthly",this.dsarBillingCycle="monthly",this.consentPreferenceBillingCycle="monthly",this.socialFortunaBillingCycle="monthly",this.cookieConsentBillingCycleYearly="yearly",this.dsarBillingCycleYearly="yearly",this.consentPreferenceBillingCycleYearly="yearly",this.socialFortunaBillingCycleYearly="yearly",this.cookiePlans=!1,this.dsarPlans=!1,this.consentPlans=!1,this.subscriptionList=[],this.dsarPlanList=[],this.consentPreferenceList=[],this.subsList=[],this.timeout=null,this.socialFortunaList=[],this.socialfortuna=!1,this.planSubscriptionList=[],this.selectedProducts=[],this.subloading=!1,this.subscriptionId=[],this.isStripeEnabled="true"===A.N.stripeEnabled,this.search=C=>C.pipe((0,m.b)(200),(0,x.x)(),(0,q.U)(y=>y.length<0?[]:this.allUnSignPropertyList.filter(M=>M.toLowerCase().indexOf(y.toLowerCase())>-1).slice(0,10))),this.searchOrg=C=>C.pipe((0,m.b)(200),(0,x.x)(),(0,q.U)(y=>y.length<0?[]:this.allUnSignOrgList.filter(M=>M.toLowerCase().indexOf(y.toLowerCase())>-1).slice(0,10))),this.titleService.setTitle("Manage Subscriptions - "+A.N.portalPrefix)}ngOnInit(){this.quickmenuService.onClickEmitQSLinkobj.pipe((0,k.R)(this.unsubscribeAfterUserAction$)).subscribe(t=>{this.quickDivID=t.linkid,this.actualbtnClickstatus=t.isactualbtnclicked}),this.activatedRoute.queryParamMap.subscribe(t=>{this.queryOID=t.get("oid"),this.queryPID=t.get("pid")}),this.activatedRoute.queryParams.subscribe(t=>{"true"===t.success?this.isSuccess=!0:"false"===t.success&&(this.isError=!0),t.hasOwnProperty("type")&&(this.showManageText=!0)}),this.userService.getLoggedInUserData.pipe((0,j.g)(1e3)).subscribe(t=>{null!==t&&(this.userRole=t.response.role)}),this.onGetPlanDetails(),this.confirmationForm=this.formBuilder.group({userInput:["",[u.kI.required]]}),this.onGetActivePlan(),this.onGetSubscriptionList(),this.propertyForm=this.formBuilder.group({propID:["",u.kI.required]}),this.orgForm=this.formBuilder.group({orgID:["",u.kI.required]}),this.onGetPropsAndOrgId(),this.getAllOrgList()}get confirmDelete(){return this.confirmationForm.controls}contactSalesTeam(t){this.isOpen=!1,this.selectedProductName=t,this.isContactSalesMadalOpen=!0,this.cdRef.detectChanges()}closeModal(){this.isContactSalesMadalOpen=!1,this.cdRef.detectChanges()}displayMesseage(){this.isContactSalesMadalOpen=!1,this.isOpen=!0,this.alertMsg="Request Sent Successfully",this.alertType="success"}onGetPropsAndOrgId(){if(null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID)this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID;else{let t=(0,R.Dq)(this.location.path());this.currentManagedOrgID=t[0],this.currrentManagedPropID=t[1]}}mychange(t,o,a){clearTimeout(this.timeout);var l=this;this.timeout=setTimeout(function(){13!=t.keyCode&&""!==o.value&&l.openUpdateQuanity(o.value,a)},1e3)}substract(t,o,a){if(clearTimeout(this.timeout),o.value>a.assigned_licence&&o.value>1){o.value--;var l=this;this.timeout=setTimeout(function(){""!==o.value&&o.value>=a.assigned_licence&&a.assigned_licence!==a.total_licence&&l.openUpdateQuanity(o.value,a)},700)}}addition(t,o,a){if(clearTimeout(this.timeout),o.value<10){o.value++;var l=this;this.timeout=setTimeout(function(){""!==o.value&&o.value<=10&&l.openUpdateQuanity(o.value,a)},700)}}openUpdateQuanity(t,o){this.openModalsecond(this.confirmupdatequantityModal),this.newquantity=t,this.newplandetails=o}onquantityUpdateCancel(){this.modalRef.hide(),this.onGetActivePlanwithId(this.subscriptionId)}quantityupgrade(){this.isOpen=!1;
1const t={stripe_sub_id:this.newplandetails.stripe_sub_id,sub_item_id:this.newplandetails.sub_item_id,quantity:Number(this.newquantity)};this.loading.start(),this.billingService.upGradeQuantitySelectedPlan(this.constructor.name,c.e.manageSubscriptionsModule,t).subscribe(o=>{this.loading.stop(),o&&(this.isOpen=!0,this.alertMsg="Successfully updated Quantity",this.alertType="success",this.modalRef.hide(),this.onGetActivePlanwithId(this.subscriptionId))},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o?.error?.error,this.alertType="danger",this.modalRef.hide(),this.onGetActivePlanwithId(this.subscriptionId)})}upgradetothisPlan(t){this.modalRef.hide(),this.openModalsecond(this.confirmupgradeplanModal),this.choosenplandetails=t}plansupgrade(){this.loading.start();const t={stripe_sub_id:this.currentobj.stripe_sub_id,prev_stripe_plan_id:this.currentobj.stripe_plan_id,new_stripe_plan_id:this.choosenplandetails.id,sub_item_id:this.currentobj.sub_item_id,quantity:Number(this.currentobj.total_licence)};this.billingService.upGradePlanSelectedPlan(this.constructor.name,c.e.manageSubscriptionsModule,t).subscribe(o=>{this.loading.stop(),o&&(this.isOpen=!0,this.alertMsg="Successfully Upgraded Plan",this.alertType="success",this.modalRef.hide(),this.onGetActivePlanwithId(this.subscriptionId))},o=>{this.modalRef.hide(),this.loading.stop(),this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}onGetActivePlan(){this.loading.start(),this.skLoading=!0,this.billingService.getActivePlan(this.constructor.name,c.e.manageSubscriptionsModule).subscribe(t=>{this.loading.stop(),this.skLoading=!1,this.inActiveplans=[];const o=this.filterFeaturePlans(t.response);for(const a of o)a.active||(a.price=parseFloat(a.price),this.inActiveplans.push(a));this.inActiveplans=(0,E.orderBy)(this.inActiveplans,["price"],["desc"])},t=>{this.loading.stop(),this.skLoading=!1,this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}onGetActivePlanwithId(t){this.loading.start(),this.subloading=!0,this.activeSubscriptionList=[],this.billingService.getActivePlanwithid(this.constructor.name,c.e.manageSubscriptionsModule,t.stripe_sub_id).subscribe(o=>{200==o.status&&(this.loading.stop(),this.subloading=!1,this.activeSubscriptionList=this.filterFeaturePlans(o.response),this.subscriptionId=t)},o=>{this.loading.stop(),this.subloading=!1,this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}customSort(t){t.data.sort((o,a)=>{const l=o[t.field],d=a[t.field];let p=null;return p=null==l&&null!=d?-1:null!=l&&null==d?1:null==l&&null==d?0:"string"==typeof l&&"string"==typeof d?l.localeCompare(d):l<d?-1:l>d?1:0,t.order*p})}onGetSubscriptionList(){this.loading.start(),this.skLoading=!0,this.billingService.getSubscriptionList(this.constructor.name,c.e.manageSubscriptionsModule).subscribe(t=>{this.loading.stop(),this.skLoading=!1,this.planSubscriptionList=this.filterFeaturePlans(t.response),this.activeSubscriptionListCount=this.planSubscriptionList.filter(o=>o.active).length},t=>{this.loading.stop(),this.skLoading=!1,this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}onGenerateSessionID(){this.isStripeEnabled&&(this.loading.start(),this.billingService.getManageSessionID(this.queryOID,this.queryPID,this.constructor.name,c.e.manageSubscriptionsModule).subscribe(t=>{this.loading.stop(),200===t.status&&window.open(t.response,"_blank")},t=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=t,this.alertType="danger"}))}onCalculateOptValue(t,o){const a=Math.ceil(100*t/o);return isNaN(a)?0:a}openModal(t,o){this.assigneLicence=o.assigned_licence,this.totalLicence=o.total_licence,this.planID=o.id,this.planType=o.type,this.modalRef=this.modalService.show(t)}openModalsecond(t){this.modalRef=this.modalService.show(t)}onSubmit(){var t=this;return(0,Z.Z)(function*(){if(t.submitted=!0,t.propertyNameError=t.propertyForm.value.propID.length>t.totalLicence-t.assigneLicence,t.propertyForm.invalid)return;const o={planID:t.planID,propID:t.propertyForm.value.propID,orgID:t.oID,planType:String(t.planType)};t.loading.start(),t.skLoading=!0,t.billingService.assignPropertyLicence(t.constructor.name,c.e.billingModule,o).subscribe(a=>{t.loading.stop(),t.skLoading=!1,t.modalRef.hide(),t.isOpen=!0,t.alertMsg="License assigned successfully",t.alertType="success",t.propertyForm.reset(),t.onGetSubscriptionList(),t.onGetAssingedProperty(),null!=o.propID&&o.propID==t.currrentManagedPropID&&(0==t.planType&&t.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!0}),2==t.planType&&t.dataService.isConsentPreferenceApplied.next({requesttype:"consentpreference",hasaccess:!0}),3==t.planType&&t.dataService.isSocialFortunaApplied.next({requesttype:"socialfortuna",hasaccess:!0}),t.isCurrentPropertySelected(t.currentManagedOrgID,t.currrentManagedPropID)),t.orgservice.isOrganizationUpdated.next(!0)},a=>{t.loading.stop(),t.skLoading=!1,t.isOpen=!0,t.alertMsg=a,t.alertType="danger"})})()}isCurrentPropertySelected(t,o){var a=this;return(0,Z.Z)(function*(){a.loading.start("2"),a.dataService.getOrgPlanInfo(a.constructor.name,c.e.cookieConsentModule,t).subscribe(l=>{a.loading.stop("2"),a.dataService.setOrgPlanToLocalStorage(l)},l=>{a.loading.stop("2")}),a.loading.start("1"),a.dataService.getPropertyPlanDetails(a.constructor.name,c.e.cookieConsentModule,o).subscribe(l=>{a.dataService.removePropertyPlanFromLocalStorage(),a.dataService.setPropertyPlanToLocalStorage(l),a.loading.stop("1")},l=>{a.loading.stop("1")})})()}onGetAssingedProperty(){this.loading.start(),this.skLoading=!0,this.billingService.getAssignedPropByPlanID(this.constructor.name,c.e.billingModule,this.planID).subscribe(t=>{this.loading.stop(),this.skLoading=!1,this.assigneLicence=t.response.length,this.propertyList=t.response},t=>{this.loading.stop(),this.skLoading=!1,this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}onGetAllPropertyList(t){this.oID=t.target.value;const o={oID:t.target.value,planID:this.planID,planType:String(this.planType)};this.loading.start("2"),this.billingService.getAllPropertyList(this.constructor.name,c.e.billingModule,o).subscribe(a=>{this.loading.stop("2"),this.onGetAllPropertyLicenseList(t,a)},a=>{this.loading.stop("2"),this.isOpen=!0,this.alertMsg=a,this.alertType="danger"})}onGetAllPropertyLicenseList(t,o){const a={oID:t.target.value,licenseType:String(this.planType)};this.loading.start("3"),this.billingService.getAllPropertyLicenseList(this.constructor.name,c.e.billingModule,a).subscribe(l=>{this.loading.stop("3");const d=[...o.response],p=[];for(const h of l.response)p.push(h.pid);this.allUnSignPropertyList=[];for(const h of d)p.includes(h.id)||this.allUnSignPropertyList.push({label:h.name,value:h.id})},l=>{this.loading.stop("3"),this.isOpen=!0,this.alertMsg=l,this.alertType="danger"})}getAllOrgList(){this.loading.start("3"),this.billingService.getAllActiveOrgList(this.constructor.name,c.e.billingModule).subscribe(t=>{this.loading.stop("3"),this.orgList=t.response},t=>{this.loading.stop("3"),this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}get f(){return this.propertyForm.controls}openModalOrg(t,o){this.assigneLicenceOrg=o.assigned_licence,this.totalLicenceOrg=o.total_licence,this.planID=o.id,this.planType=o.type,this.getAllOrgList2(),this.modalRef=this.modalService.show(t)}onSubmitOrg(){if(this.submitted=!0,this.orgNameError=!this.orgForm.value.orgID,this.orgForm.invali
1d)return;const t={planID:this.planID,orgID:this.orgForm.value.orgID};this.loading.start(),this.skLoading=!0,this.billingService.assignOrgLicence(this.constructor.name,c.e.billingModule,t).subscribe(o=>{this.loading.stop(),this.skLoading=!1,this.modalRef.hide(),this.isOpen=!0,this.alertMsg="License assigned successfully",this.alertType="success",this.onGetSubscriptionList(),this.orgForm.reset(),this.getAllOrgList2(),this.isCurrentPropertySelected(this.currentManagedOrgID,this.currrentManagedPropID),this.dataService.isLicenseApplied.next({requesttype:"organization",hasaccess:!0}),this.orgservice.isOrganizationUpdated.next(!0),this.messagingService.orgLicenceChange$.next(!0)},o=>{this.loading.stop(),this.skLoading=!1,this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}getAllOrgList2(){this.loading.start("3"),this.billingService.getAllOrgList(this.constructor.name,c.e.billingModule,this.planID).subscribe(t=>{this.loading.stop("3"),this.allUnSignOrgList=[];for(const o of t.response)this.allUnSignOrgList.push({label:o.orgname,value:o.id})},t=>{this.loading.stop("3"),this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}userAction(t,o){if(void 0===o||6!=o&&19!=o)this.checkForQsTooltip(),this.router.navigate(["/settings/billing/manage/property",t],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1});else{let a={linkid:o,indexid:19===o?5:3,isactualbtnclicked:!0,islinkclicked:!0,divguidetext:"addcookieconsentsubscriptiontoproperty",linkdisplaytext:"Assigning Cookie Consent subscription to property",link:"/settings/billing/manage"};this.quickmenuService.updateQuerymenulist(a),this.quickmenuService.onClickEmitQSLinkobj.next(a),this.userService.onRevistQuickStartmenulink.next({quickstartid:this.quickDivID,reclickqslink:!0,urlchanged:!1});const l=this.quickmenuService.getQuerymenulist();if(0!==l.length){const d=l.findIndex(p=>p.index==a.indexid);(l[d].quicklinks.some(p=>p.linkid==a.linkid&&p.isactualbtnclicked)||l[d].quicklinks.some(p=>p.linkid==a.linkid&&!p.isactualbtnclicked))&&(this.quickDivID="",this.router.navigate(["/settings/billing/manage/property",t],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1}))}}}userActionForOrg(t,o){if(void 0!==o&&12==o){let a={linkid:o,indexid:4,isactualbtnclicked:!0,islinkclicked:!0,divguidetext:"assign-dsar-subscription-to-organization",linkdisplaytext:"Add DSAR subscription",link:"/settings/billing/manage"};this.quickmenuService.updateQuerymenulist(a),this.quickmenuService.onClickEmitQSLinkobj.next(a),this.userService.onRevistQuickStartmenulink.next({quickstartid:this.quickDivID,reclickqslink:!0,urlchanged:!1}),this.quickDivID="";const l=this.quickmenuService.getQuerymenulist();if(0!==l.length){const d=l.findIndex(p=>p.index==a.indexid);l[d].quicklinks.some(p=>p.linkid==a.linkid&&p.isactualbtnclicked)?(this.quickDivID="",this.router.navigate(["/settings/billing/manage/organizations",t],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})):l[d].quicklinks.some(p=>p.linkid==a.linkid&&!p.isactualbtnclicked)&&(this.quickDivID="")}}else this.checkForQsTooltip(),this.router.navigate(["/settings/billing/manage/organizations",t],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})}checkForQsTooltip(){this.userService.onRevistQuickStartmenulink.next({quickstartid:this.quickDivID,reclickqslink:!0,urlchanged:!0}),this.quickDivID=""}cancelModal(){return this.modalRef.hide(),this.confirmationForm.reset(),this.isconfirmationsubmitted=!1,!1}updateplan(t){let o=t;this.currentplan=o.product_name,this.currentplanprice=o.price,this.currentplancycle=o.cycle,this.currentobj=t,1==o.type&&(this.index=this.dsarPlanList.findIndex(a=>a.description===o.description),this.dsarPlans=!0,this.socialfortuna=!1,this.cookiePlans=!1,this.consentPlans=!1,this.openModalsecond(this.upgradeModal)),0==o.type&&(this.index=this.subscriptionList.findIndex(a=>a.description===o.description),this.cookiePlans=!0,this.socialfortuna=!1,this.dsarPlans=!1,this.consentPlans=!1,this.openModalsecond(this.upgradeModal)),2==o.type&&(this.index=this.consentPreferenceList.findIndex(a=>a.description===o.description),this.consentPlans=!0,this.socialfortuna=!1,this.dsarPlans=!1,this.cookiePlans=!1,this.openModalsecond(this.upgradeModal)),3==o.type&&(this.index=this.socialFortunaList.findIndex(a=>a.product_name===o.product_name&&a.cycle===o.cycle),this.consentPlans=!1,this.dsarPlans=!1,this.cookiePlans=!1,this.socialfortuna=!0,this.openModalsecond(this.upgradeModal))}onGetPlanDetails(){this.loading.start(),this.billingService.getCurrentPlanInfo(this.constructor.name,c.e.pricingModule).subscribe(t=>{this.loading.stop(),t&&this.onSetPlans(t.response)},t=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=t,this.alertType="danger"})}onSetPlans(t){this.subscriptionList=t.cookieConsent[`${this.cookieConsentBilling
1Cycle}`],this.yearlysubscriptionList=t.cookieConsent[`${this.cookieConsentBillingCycleYearly}`],this.yearlysubscriptionListLength=this.yearlysubscriptionList.length-1,this.subscriptionList=this.subscriptionList.concat(this.yearlysubscriptionList),this.subscriptionListLength=this.subscriptionList.length-1,this.dsarPlanList=t.dsar[`${this.dsarBillingCycle}`],this.YearlydsarPlanList=t.dsar[`${this.dsarBillingCycleYearly}`],this.YearlydsarPlanListLength=this.YearlydsarPlanList.length-1,this.dsarPlanList=this.dsarPlanList.concat(this.YearlydsarPlanList),this.dsarPlanListLength=this.dsarPlanList.length-1,this.consentPreferenceList=t.consentPreference[`${this.consentPreferenceBillingCycle}`],this.YearlyconsentPreferenceList=t.consentPreference[`${this.consentPreferenceBillingCycleYearly}`],this.YearlyconsentPreferenceListLength=this.YearlyconsentPreferenceList.length-1,this.consentPreferenceList=this.consentPreferenceList.concat(this.YearlyconsentPreferenceList),this.consentPreferenceListLength=this.consentPreferenceList.length-1,this.socialFortunaList=t.socialFortuna[`${this.socialFortunaBillingCycle}`],this.YearlysocialFortunaList=t.socialFortuna[`${this.socialFortunaBillingCycleYearly}`],this.YearlysocialFortunaListLength=this.YearlysocialFortunaList.length-1,this.socialFortunaList=this.socialFortunaList.concat(this.YearlysocialFortunaList),this.socialFortunaListLength=this.socialFortunaList.length-1}showControlContent(){return"organization"===this.controlname?this.organizationName:"property"===this.controlname?this.confirmProperty:void 0}disableProperty(t,o){this.controlname=o,this.stripesubID=t.stripe_sub_id,this.stripeitemID=t.sub_item_id,this.PlanDeleteDetails(),this.isloading=!0,this.openModalsecond(this.confirmModal)}PlanDeleteDetails(){this.billingService.cancelplansubid(this.constructor.name,c.e.pricingModule,this.stripesubID).subscribe(t=>{if(t){this.cancelallplans=t.response,this.alertMsg=t.response,this.isloading=!1;for(let o of this.cancelallplans){if(0!=o.assigned_licence){this.allow=!1;break}this.allow=!0}}},t=>{})}confirmPlanDelete(){this.modalRef.hide(),this.billingService.cancelselectedPlan(this.constructor.name,c.e.pricingModule,{stripe_sub_id:this.stripesubID,sub_item_id:this.stripeitemID}).subscribe(o=>{o&&(this.alertMsg=o.response,this.isOpen=!0,this.alertType="success",this.onGetActivePlanwithId(this.subscriptionId))},o=>{this.alertMsg=o,this.isOpen=!0,this.alertType="danger",this.onCanceled()})}onCanceled(){this.isconfirmationsubmitted=!1,this.modalRef.hide(),this.stripeitemID="",this.stripesubID="",this.confirmationForm.reset()}onSubmitConfirmation(t){return this.isconfirmationsubmitted=!0,!this.confirmationForm.invalid&&"Delete"===this.confirmationForm.value.userInput&&void(("organization"===t||"property"===t)&&this.confirmPlanDelete())}ngAfterViewInit(){this.userService.isRevisitedQSMenuLink.subscribe(t=>{this.isRevistedLink=t.reclickqslink,this.currentLinkID=t.quickstartid,this.iswindowclicked=t.urlchanged}),this.quickmenuService.onClickEmitQSLinkobj.pipe((0,k.R)(this.unsubscribeAfterUserAction$)).subscribe(t=>{this.quickDivID=t.linkid}),this.cdRef.detectChanges()}ngOnDestroy(){this.quickDivID="",this.unsubscribeAfterUserAction$.unsubscribe()}filterFeaturePlans(t=[]){return(t||[]).filter(o=>!this.isFeaturePlan(o))}isFeaturePlan(t){return[t?.product_name,t?.sub_name,t?.plan_name,t?.product,t?.planDetails?.product_name].some(a=>"string"==typeof a&&this.featurePlanKeywords.some(l=>a.toLowerCase().includes(l)))}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(z.LA),e.Y36(B.j),e.Y36(K.K),e.Y36(w.KD),e.Y36(u.QS),e.Y36($.tT),e.Y36(H.D),e.Y36(w.Mn),e.Y36(g.gz),e.Y36(e.sBO),e.Y36(g.F0),e.Y36(V.Dx),e.Y36(_.Ye),e.Y36(W.o))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-manage-subscription"]],viewQuery:function(o,a){if(1&o&&(e.Gf(ae,5),e.Gf(se,5),e.Gf(le,5),e.Gf(re,5)),2&o){let l;e.iGM(l=e.CRH())&&(a.confirmModal=l.first),e.iGM(l=e.CRH())&&(a.upgradeModal=l.first),e.iGM(l=e.CRH())&&(a.confirmupdatequantityModal=l.first),e.iGM(l=e.CRH())&&(a.confirmupgradeplanModal=l.first)}},decls:49,vars:22,consts:[["appTheme",""],["aria-label","breadd-to-cart-btnadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],[1,"breadcrumb-item","active"],["class","mb-0 mt-3 alert alert-success",4,"ngIf"],["class","mb-0 mt-3 alert alert-info",4,"ngIf"],["class","mb-0 mt-3 alert alert-danger",4,"ngIf"],[1,"card","mt-4","manage-license"],[1,"card-header","row","ml-0","mr-0"],[1,"col-md-7","p-0","align-items"],[1,"tx-14","mb-0","tx-spacing-1","tx-color-02","tx-semibold"],["class","col-md-5 text-right p-0",4,"ngIf"],[1,"row"],[1,"col-md-12"],[1,"cl-gray","text-primary","border-bottom","tx-16","p-2","pl-3","mb-0"],[1,"card-body","border-top-0","p-1","mt-0"],[4,"ngIf"],["count","6","class","pt-4",4,"ngIf"],[1,"tx-14","tx-uppercase","mb-0","tx-spacing-1","tx-color-02","tx-semibold",2,"text-transform","none"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",1,"expired-products-plans-table","p-paginator-alignment",3,"value","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","loading","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],["addOrganization",""],["addProperty",""],["confirmTemplate",""],["confirmupdatequantityTemplate",""],["confirmupgradeplanTemplate",""],["upgradeTemplate",""],[1,"mb-0","mt-3","alert","alert-success"],[1,"mb-0","mt-3","alert","alert-info"],[1,"mb-0","mt-3","alert","alert-danger"],[1,"col-md-5","text-right","p-0"],["tooltip","Invoice history","routerLink","/settings/billing/invoice",1,"btn","btn-sm","btn-secondary","btn-uppercase","mr-2",2,"text-transform","none","font-size","smaller",3,"queryParams","ngClass","click"],[1,"fa","fa-file-invoice-dollar"],["routerLink","/settings/billing/pricing",1,"btn","btn-sm","btn-primary","btn-uppercase","mr-2",2,"text-transform","none","font-size","smaller",3,"queryParams","ngClass","click"],["aria-hidden","true",1,"fa","fa-plus","pr-1"],["type","button",1,"btn","btn-sm","btn-uppercase","btn-outline-secondary",2,"text-transform","none","font-size","smaller",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-cogs","pr-1"],["styleClass","p-datatable-sm","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","dataKey","stripe_sub_id","rowExpandMode","single","expandableRows","true",1,"scan-detail
1s","p-paginator-alignment",3,"value","lazy","rowsPerPageOptions","paginator","rows","showCurrentPageReport","totalRecords","selection","sortFunction","selectionChange"],["pTemplate","body","styleClass","p-datatable-responsive-demo"],["pTemplate","rowexpansion"],["scope","col",2,"width","3rem"],["scope","col",1,"text-left","pl-2"],["title","Plans","type","button","pButton","","pRipple","","tooltip","Click here to see plans",1,"p-button-text","p-button-rounded","p-button-plain","p-button-sm",3,"pRowToggler","icon","click"],[1,"badge",3,"ngClass"],["colspan","5"],[1,"mb-3","card",2,"border-color","rgb(200, 198, 198)"],["align","center","type","dashed"],[2,"color","black"],["dataKey","stripe_sub_id","styleClass","p-datatable-sm p-datatable-gridlines",3,"loading","value"],["scope","col",1,"pl-2",2,"width","12rem"],["scope","col",1,"text-left","pl-2",2,"width","6rem"],["scope","col",1,"text-left","pl-2",2,"width","12rem"],["scope","col",1,"text-left","pl-2",2,"width","8rem"],[1,"row","justify-content-center"],[1,"col-md-7","p-0"],[1,"progress","mt-1"],[1,"txt-center-bold"],[1,"progress-bar",3,"ngStyle"],[1,"pr-1","d-flex",3,"tooltip"],["pButton","","type","button","icon","pi pi-minus",1,"p-button-sm",2,"border-radius","3px 0px 0px 3px","font-size","11px","background-color","#7987a1","color","white",3,"hidden","disabled","click"],["disabled","","type","text","id","sel1","required","","pattern","^[1-9][0-9]*$","oninput","if(!this.value.match('^[1-9][0-9]*$'))this.value='';",2,"width","40px","text-align","center","border-radius","0px 0px 0px 0px","border","none",3,"hidden","value","input"],["cartProperty",""],["pButton","","type","button","icon","pi pi-plus",1,"p-button-sm",2,"border-radius","0px 3px 3px 0px","font-size","11px","background-color","#7987a1","color","white",3,"hidden","disabled","click"],[1,"plan-name",3,"routerLink","queryParams","click"],["appTheme","",1,"text-left","d-flex"],["pButton","","type","button","tooltip","Assign Property","icon","pi pi-plus",1,"p-button-sm","input-switch",2,"border-radius","3px 0px 0px 3px","font-size","11px","color","white",3,"disabled","click"],["tooltip","Assign or remove properties from subscription",1,"plan-name",3,"routerLink","queryParams"],["pButton","","icon","pi pi-sliders-h","tooltip","Manage",1,"action-btn","manage-btn","p-button-sm",2,"border-radius","0px 0px 0px 0px","font-size","11px","background-color","#7987a1","color","white",3,"ngClass","click"],["placement","top",3,"tooltip"],["pButton","","type","button","tooltip","Upgrade Plan","icon","pi pi-angle-double-up",1,"p-button-sm",2,"border-radius","0px 0px 0px 0px","font-size","11px","background-color","#0168fa","color","white",3,"disabled","click"],["pButton","","type","button","tooltip","Cancel Plan","icon","pi pi-trash",1,"cancelbutton","p-button-sm",2,"border-radius","0px 3px 3px 0px","font-size","11px","background-color","#dc3545","color","white",3,"disabled","click"],["pButton","","type","button","tooltip","Assign Organization","icon","pi pi-plus",1,"p-button-sm","input-switch",2,"border-radius","3px 0px 0px 3px","font-size","11px","color","white",3,"disabled","click"],["tooltip","Assign or remove organizations from subscription",1,"plan-name",3,"routerLink","queryParams"],["pButton","","type","button","tooltip","Cancel Plan","icon","pi pi-trash",1,"p-button-sm",2,"border-radius","0px 3px 3px 0px","font-size","11px","background-color","#dc3545","color","white",3,"disabled","click"],["count","6",1,"pt-4"],[3,"selectedOption","closeModal","displayMessage"],[2,"text-align","center"],["scope","col",1,"pl-2"],["scope","col"],["pSortableColumn","price",2,"width","125px"],["field","price"],[2,"color","var(--popup-monthly-billing)"],[2,"width","200px"],[2,"width","270px"],[1,"inactiveplan"],["aria-hidden","true",1,"fa","fa-times-circle","pr-2"],["dismissOnTimeout","5000",3,"type","dismissible"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],["appTheme","",1,"modal-body"],[3,"formGroup","ngSubmit"],["for","typeahead-basic"],[1,"col-sm-8"],["formControlName","orgID",1,"gdprSelect",3,"disabled","selectionLimit","options"],[1,"col-sm-4","p-0"],["aria-label","Close","type","button",1,"btn","btn-link","tx-decoration-underline",3,"click"],["type","submit",1,"btn","btn-primary","mr-1",3,"disabled"],[1,"form-group","dp-safari"],["for","sel1"],["id","sel1",1,"form-control",3,"change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["for","propertyNameError"],["placeholder","-- Select Property --","formControlName","propID",1,"gdprSelect",3,"disabled","selectionLimit","options"],["class","invali
1d-feedback",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"mt-4","text-center"],["type","submit",1,"btn","ml-3","btn-primary","btn-sm",2,"float","right"],[1,"invalid-feedback"],[1,"text-danger"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["class","modal-body text-center","style","height: 350px",4,"ngIf"],["class","modal-body text-center","appTheme","",4,"ngIf"],[1,"modal-body","text-center",2,"height","350px"],[2,"display","flex","justify-content","center","align-items","center","text-align","center"],["appTheme","",1,"modal-body","text-center"],["style","color: red",4,"ngIf"],[2,"overflow-y","auto","height","350px"],["class","card mb-2",4,"ngFor","ngForOf"],[3,"formGroup","ngSubmit",4,"ngIf"],[2,"color","red"],[1,"card","mb-2"],[1,"card-body","text-primary",3,"ngClass"],[1,"card-title",2,"display","flex","justify-content","space-between","color","black"],[1,"card-text",2,"display","flex","justify-content","space-between","color","black"],[1,"card-text","mt-2",2,"display","flex","justify-content","space-between"],["type","text","formControlName","userInput","name","userInput","required","",1,"form-control",3,"ngClass"],["class","invalid-feedback text-left",4,"ngIf"],[1,"mt-2","d-flex"],["class","btn btn-xs btn-primary btn-block",4,"ngIf"],[1,"invalid-feedback","text-left"],[1,"btn","btn-xs","btn-primary","btn-block"],["appTheme","",1,"modal-body","text-left"],["appTheme","",1,"card"],[1,"card-body","text-primary"],["class","card-text","style","display: flex; justify-content: space-between; color: black",4,"ngIf"],[1,"card-text","mt-4",2,"display","flex","justify-content","space-between"],[1,"modal-footer"],[1,"btn","ml-3","btn-outline-secondary",3,"click"],["type","submit",1,"btn","ml-2","btn-primary",3,"click"],[1,"promo"],[1,"fas","fa-tag","mr-2","ml-2"],[1,"card"],[1,"card-text","mt-2",2,"display","flex","justify-content","space-between","color","black"],[1,"btn","ml-3","btn-danger",3,"click"],["type","submit",1,"btn","ml-3","btn-primary",3,"click"],[2,"display","flex","justify-content","space-between"],[1,"form-check"],["style","height: 350px; overflow-y: auto",4,"ngIf"],[2,"height","350px","overflow-y","auto"],[4,"ngFor","ngForOf"],["class","card consentpref border-primary mb-3","style","width: 28rem",4,"ngIf"],[1,"card","consentpref","border-primary","mb-3",2,"width","28rem"],[1,"card-title"],[1,"card-text"],[1,"card-footer",2,"display","flex","justify-content","flex-end"],[1,"btn","btn-primary",3,"click"],["class","form-check-label","for","flexRadioDefault1",4,"ngIf"],["for","flexRadioDefault1",1,"form-check-label"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"nav",1)(2,"ol",2)(3,"li",3),e._uU(4,"Billing"),e.qZA(),e.TgZ(5,"li",4),e._uU(6,"Manage Subscriptions"),e.qZA()()()(),e.YNc(7,ce,4,0,"div",5),e.YNc(8,pe,4,0,"div",6),e.YNc(9,de,4,0,"div",7),e.TgZ(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),e._uU(14," Manage Subscriptions "),e.qZA()(),e.YNc(15,ue,9,18,"div",12),e.qZA(),e.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),e._uU(19," Active Subscriptions "),e.qZA()()(),e.TgZ(20,"div",16),e.YNc(21,we,5,9,"ng-container",17),e.YNc(22,Pe,1,0,"ngx-skeleton-loader",18),e.qZA()(),e.YNc(23,Ie,2,1,"div",17),e.TgZ(24,"div",8)(25,"div",9)(26,"div",10)(27,"h4",19),e._uU(28," Expired Products and Plans "),e.qZA()()(),e.TgZ(29,"div",16)(30,"p-table",20),e.YNc(31,Ue,10,0,"ng-template",21),e.YNc(32,De,14,9,"ng-template",22),e.YNc(33,Se,3,1,"ng-template",23),e.qZA(),e.YNc(34,Oe,1,0,"ngx-skeleton-loader",18),e.qZA()(),e.TgZ(35,"div",24),e.YNc(36,Je,2,3,"alert",25),e.qZA(),e.YNc(37,Ne,19,9,"ng-template",null,26,e.W1O),e.YNc(39,Re,25,10,"ng-template",null,27,e.W1O),e.YNc(41,it,8,2,"ng-template",null,28,e.W1O),e.YNc(43,lt,44,26,"ng-template",null,29,e.W1O),e.YNc(45,dt,34,19,"ng-template",null,30,e.W1O),e.YNc(47,qt,27,11,"ng-template",null,31,e.W1O)),2&o&&(e.xp6(7),e.Q6J("ngIf",a.isSuccess),e.xp6(1),e.Q6J("ngIf",a.showManageText),e.xp6(1),e.Q6J("ngIf",a.isError),e.xp6(6),e.Q6J("ngIf",a.isStripeEnabled),e.xp6(6),e.Q6J("ngIf",!a.skLoading),e.xp6(1),e.Q6J("ngIf",a.skLoading),e.xp6(1),e.Q6J("ngIf",a.isContactSalesMadalOpen),e.xp6(7),e.Q6J("value",a.inActiveplans)("responsive",!0)("paginator",!1)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",a.inActiveplans.length)("loading",a.skLoading)("rowsPerPageOptions",e.DdM(19,Y)),e.xp6(4),e.Q6J("ngIf",a.skLoading),e.xp6(1),e.Q6J("ngClass",e.VKq(20,kt,!a.isOpen)),e.xp6(1),e.Q6J("ngIf",a.isOpen))},dependencies:[_.mk,_.sg,_.O5,_.PC,u._Y,u.YN,u.Kr,u.Fj,u.JJ,u.JL,u.Q7,X.xr,ee.i9,te.wx,ne.mh,g.rH,P.Hq,I.NU,ie.jx,u.sg,u.u,v.iA,v.lQ,v.jB,v.fz,U.i,D.Z,oe.E,_.gd,_.H9],styles:[".plan-name{color:var(--user-preference);font-weight:500;white-space:initial}.form-check{padding-left:0rem!important}.input-switch{background-color:var(--user-preference)!important}.cancelbutton:disabled{pointer-events:none!important}.promo{background:#ccc;padding:3px}.badge{font-size:10px;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,Inter UI,Roboto,sans-serif;padding:3px 5px 4px;border-radius:3px}.badge-primary{color:#fff;background-color:#0168fa}.consentpref:hover{background-color:#f1f1f1}.redClass{border:3px solid red}.activeplan>.fa-check-circle{color:#29c429;position:absolute;
1left:5px;top:3px}.fa-times-circle{color:red;position:absolute;left:5px;top:3px}.add-sub-btn{font-size:16px;font-weight:600;color:#555f5e}.cl-gray{color:#555f5e}.cs-alert{text-align:center;font-size:18px;font-weight:500;letter-spacing:1px}.btn-qs-hightlight{border:1px solid #2446a4;box-shadow:0 0 5px #2446a4}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.hide{display:none!important}.cursorpointer{cursor:pointer}.colorblue{color:#00f}.manage-license .card-header{display:flex}.align-items{align-items:center;justify-content:inherit;align-self:center}.manage-license .card-body table{border:1px solid #e8e8e8}.manage-license .card-body .table td:first-child{width:270px}.manage-license .card-body .table td{width:180px}.manage-license .card-body .table thead th{width:auto!important;padding:8px 4px}.manage-license .card-body table thead tr{font-size:14px;vertical-align:super;justify-content:space-around;align-self:initial;background:#f5f6fa}.progress{position:relative;background-color:#3d78d4;border-radius:10px;height:20px}.progress-bar{background-color:#11188f}.txt-center-bold{margin-top:9px;color:#fff;text-align:center;position:absolute;left:35%;top:0!important;text-shadow:1px 1px 0px #11188f;z-index:980;font-weight:600;font-size:13px}.validity{display:flex;flex-direction:column;font-size:13px;width:100%!important}.activeplan{background:#a1fba1;border-radius:30px;height:20px;width:70px;text-align:center;color:#070;position:relative;font-weight:600;padding:0 0 0 15px;border:1px solid #30c330;margin:0;text-shadow:0px 1px 1px #f2fff2}.inactiveplan{background:#fba1a1;border-radius:30px;height:20px;width:85px;text-align:center;color:#700;position:relative;font-weight:600;padding-left:24px!important;padding-right:10px;margin-right:5px;border:1px solid #c33030;text-shadow:0px 1px 1px #f2fff2}.p-multiselect .p-multiselect-panel{margin-left:0!important;min-width:84%!important}.p-button{border:white!important}.modal-dialog{height:90vh;display:flex;justify-content:center;align-items:center}.link-disabled{pointer-events:none;opacity:.5;cursor:not-allowed}\n"],encapsulation:2}),i})();var Pt=r(86789),It=r(23501),Ut=r(55466),Dt=r(91742);const St=[{path:"",component:wt},{path:"organizations/:id",loadChildren:()=>r.e("src_app_pagesettings_billing_manage-licence_manage-organization_manage-organization_module_ts").then(r.bind(r,80661)).then(i=>i.ManageOrganizationModule)},{path:"property/:id",loadChildren:()=>r.e("src_app_pagesettings_billing_manage-licence_manage-property_manage-property_module_ts").then(r.bind(r,73107)).then(i=>i.ManagePropertyModule)}];let Ot=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[_.ez,u.u5,L.J,g.Bz.forChild(St),P.hJ,I.q4,u.UX,Pt.$,v.U$,U.x,D.Z,It.O.forRoot({themes:[Ut.W,Dt.$],active:A.N.theme})]}),i})()},52712:(G,T,r)=>{r.d(T,{i:()=>Z,x:()=>u});var _=r(36895),g=r(94650);const L=["*"];let Z=(()=>{class c{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-divider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["p-divider"]],inputs:{layout:"layout",type:"type",styleClass:"styleClass",style:"style",align:"align"},ngContentSelectors:L,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-div
1ider-content"]],template:function(m,x){1&m&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1),g.Hsn(2),g.qZA()()),2&m&&(g.Tol(x.styleClass),g.Q6J("ngClass",x.containerClass())("ngStyle",x.style))},dependencies:[_.mk,_.PC],styles:['.p-divider-horizontal{align-items:center;display:flex;position:relative;width:100%}.p-divider-horizontal:before{content:"";display:block;left:0;position:absolute;top:50%;width:100%}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{display:flex;justify-content:center;margin:0 1rem;min-height:100%;position:relative}.p-divider-vertical:before{content:"";display:block;height:100%;left:50%;position:absolute;top:0}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted;border-top-style:dotted}'],encapsulation:2,changeDetection:0}),c})(),u=(()=>{class c{}return c.\u0275fac=function(m){return new(m||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[_.ez]}),c})()}}]);
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.