PageSourceSearch

https://www.commudle.com/1050.392270821d01c237.js

js commudle.com collected 2026-09-24 08:37:29 UTC 105,502 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcommudle_admin=self.webpackChunkcommudle_admin||[]).push([[1050],{41050:($,x,a)=>{a.r(x),a.d(x,{PaymentCheckoutModule:()=>mt});var C=a(98434),k=a(69262),j=a(69377),e=a(23214),d=a(89417),_=a(45383),F=a(36908),g=a(52050),h=a(76800),D=a(21413),u=a(56977),P=a(70980),w=a(98426),O=a(14481),I=a(20060),E=a(20365),l=a(60557),b=a(68513);function p(n,i){if(1&n&&(e.j41(0,"div",1)(1,"h4",2),e.EFF(2,"Wallet"),e.k0s(),e.j41(3,"table",3)(4,"tbody")(5,"tr")(6,"td",4),e.EFF(7,"Balance"),e.k0s(),e.j41(8,"td",4),e.EFF(9,"Available balance"),e.k0s(),e.j41(10,"td",4),e.EFF(11,"Reserved balance"),e.k0s()(),e.j41(12,"tr")(13,"td",5),e.EFF(14),e.nI1(15,"currency"),e.k0s(),e.j41(16,"td",5),e.EFF(17),e.nI1(18,"currency"),e.k0s(),e.j41(19,"td",5),e.EFF(20),e.nI1(21,"currency"),e.k0s()()()()()),2&n){const t=e.XpG();e.R7$(14),e.SpI(" ",e.i5U(15,3,t.wallet.balance,t.currencyType)," "),e.R7$(3),e.SpI(" ",e.i5U(18,6,t.wallet.available_balance,t.currencyType)," "),e.R7$(3),e.SpI(" ",e.i5U(21,9,t.wallet.reserved_balance,t.currencyType)," ")}}let s=(()=>{class n{constructor(t,r){this.walletService=t,this.campaignService=r,this.isLoading=!0}ngOnInit(){this.campaignId&&!this.wallet&&(this.isLoading=!0,this.campaignService.fetchCampaign(this.campaignId).subscribe(t=>{this.currencyType=t.currency_type,this.walletService.getFundStatus(this.currencyType).subscribe(r=>{this.wallet=r,this.isLoading=!1})}))}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(h.FT),e.rXU(h.OF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["commudle-wallet-details"]],inputs:{campaignId:"campaignId"},standalone:!1,decls:1,vars:1,consts:[["class","wallet-details-section",4,"ngIf"],[1,"wallet-details-section"],[1,"wallet-details-heading"],[1,"wallet-details-table"],[1,"wallet-details-label"],[1,"wallet-details-value"]],template:function(r,o){1&r&&e.DNE(0,p,22,12,"div",0),2&r&&e.Y8G("ngIf",o.wallet)},dependencies:[C.bT,C.oe],styles:[".wallet-details-section[_ngcontent-%COMP%]{padding:.75rem 1rem .5rem}.wallet-details-section[_ngcontent-%COMP%]   .wallet-details-heading[_ngcontent-%COMP%]{margin:0;margin-bottom:.75rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--color-yankees-blue)}.wallet-details-section[_ngcontent-%COMP%]   .wallet-details-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.5rem}.wallet-details-section[_ngcontent-%COMP%]   .wallet-details-table[_ngcontent-%COMP%]   .wallet-details-label[_ngcontent-%COMP%]{padding-top:6px;padding-bottom:6px;padding-right:1rem;color:var(--color-gray-600)}.wallet-details-section[_ngcontent-%COMP%]   .wallet-details-table[_ngcontent-%COMP%]   .wallet-details-value[_ngcontent-%COMP%]{padding-top:6px;padding-bottom:6px;text-align:left;font-weight:500}"]})}}return n})();function R(n,i){1&n&&e.nrm(0,"app-loading-spinner")}function S(n,i){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.productPrice.trial_period_days,"-day free trial ")}}function Y(n,i){if(1&n&&(e.j41(0,"p",14),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.productPrice.description)}}function z(n,i){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"nb-icon",22),e.j41(2,"span"),e.EFF(3),e.nI1(4,"currency"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(3),e.SpI("You save ",e.i5U(4,1,12*(t.productPrice.original_price-t.productPrice.final_price),t.productPrice.currency)," vs monthly billing")}}
1function U(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",15)(2,"span",16),e.EFF(3),e.nI1(4,"currency"),e.k0s(),e.j41(5,"span",17),e.EFF(6,"/mo \xa0\xb7\xa0 billed annually"),e.k0s()(),e.j41(7,"div",18),e.nrm(8,"nb-icon",19),e.j41(9,"span"),e.EFF(10," Total billed today: "),e.j41(11,"strong"),e.EFF(12),e.nI1(13,"currency"),e.k0s(),e.EFF(14," for 12 months "),e.k0s()(),e.DNE(15,z,5,4,"div",20),e.bVm()),2&n){const t=e.XpG(2);e.R7$(3),e.JRh(e.i5U(4,3,t.productPrice.final_price,t.productPrice.currency)),e.R7$(9),e.JRh(e.i5U(13,6,12*t.productPrice.final_price,t.productPrice.currency)),e.R7$(3),e.Y8G("ngIf",t.hasDiscount)}}function A(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",15)(2,"span",16),e.EFF(3),e.nI1(4,"currency"),e.k0s(),e.j41(5,"span",17),e.EFF(6,"/mo \xa0\xb7\xa0 billed monthly"),e.k0s()(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(3),e.JRh(e.i5U(4,1,t.productPrice.final_price,t.productPrice.currency))}}function L(n,i){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.productPrice.discount_percentage,"% OFF ")}}
1function N(n,i){if(1&n&&(e.j41(0,"div",23)(1,"span",24),e.EFF(2),e.nI1(3,"currency"),e.k0s(),e.DNE(4,L,2,1,"span",25),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.i5U(3,2,t.productPrice.original_price,t.productPrice.currency)),e.R7$(2),e.Y8G("ngIf",t.productPrice.discount_percentage)}}function X(n,i){if(1&n&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),e.EFF(4),e.nI1(5,"titlecase"),e.k0s(),e.DNE(6,S,2,1,"div",6),e.k0s(),e.j41(7,"h3",7),e.EFF(8),e.k0s(),e.j41(9,"p",8),e.EFF(10),e.k0s(),e.DNE(11,Y,2,1,"p",9),e.k0s(),e.j41(12,"div",10),e.DNE(13,U,16,9,"ng-container",0)(14,A,7,4,"ng-container",0)(15,N,5,5,"div",11),e.k0s(),e.j41(16,"p",12),e.EFF(17,"Pricing is per community"),e.k0s()()),2&n){const t=e.XpG();e.R7$(4),e.SpI("",e.bMT(5,8,t.productPrice.billing_cycle)," Plan"),e.R7$(2),e.Y8G("ngIf",t.productPrice.trial_enabled&&t.productPrice.trial_period_days&&t.withTrial),e.R7$(2),e.JRh(t.productPrice.product_name),e.R7$(2),e.JRh(t.productPrice.plan_name),e.R7$(),e.Y8G("ngIf",t.productPrice.description),e.R7$(2),e.Y8G("ngIf","yearly"===t.productPrice.billing_cycle),e.R7$(),e.Y8G("ngIf","yearly"!==t.productPrice.billing_cycle),e.R7$(),e.Y8G("ngIf",t.hasDiscount)}}let B=(()=>{class n{constructor(t){this.productPriceService=t,this.productPriceLoaded=new e.bkB,this.hasDiscount=!1,this.isLoading=!0}ngOnInit(){this.fetchProductPrice()}fetchProductPrice(){this.productPriceService.showById(this.productPriceId).subscribe(t=>{this.productPrice=t,this.isLoading=!1,this.productPriceLoaded.emit(this.productPrice),this.hasDiscount=this.productPrice.discount_percentage>0})}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(h.Kw))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["commudle-product-price-details"]],inputs:{productPriceId:"productPriceId",withTrial:"withTrial"},outputs:{productPriceLoaded:"productPriceLoaded"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],["class","product-price-container",4,"ngIf"],[1,"product-price-container"],[1,"pp-header"],[1,"pp-badges"],[1,"pp-plan-badge"],["class","pp-trial-badge",4,"ngIf"],[1,"pp-product-name"],[1,"pp-plan-name"],["class","pp-description",4,"ngIf"],[1,"pp-pricing"],["class","pp-discount-row",4,"ngIf"],[1,"pp-per-community"],[1,"pp-trial-badge"],[1,"pp-description"],[1,"pp-price-row"],[1,"pp-price"],[1,"pp-price-label"],[1,"pp-annual-total"],["icon","calendar-outline"],["class","pp-saving",4,"ngIf"],[1,"pp-saving"],["icon","checkmark-circle-2-outline"],[1,"pp-discount-row"],[1,"pp-original-price"],["class","pp-discount-badge",4,"ngIf"],[1,"pp-discount-badge"]],template:function(r,o){1&r&&e.DNE(0,R,1,0,"app-loading-spinner",0)(1,X,18,10,"div",1),2&r&&(e.Y8G("ngIf",o.isLoading),e.R7$(),e.Y8G("ngIf",o.productPrice&&!o.isLoading))},dependencies:[C.bT,O.tHu,E.N,C.PV,C.oe],styles:[".product-price-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-badges[_ngcontent-%COMP%]{margin-bottom:.75rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-plan-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .625rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-trial-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .625rem;--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-product-name[_ngcontent-%COMP%]{margin:0;margin-bottom:.25rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;color:var(--color-yankees-blue)}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-plan-name[_ng
1content-%COMP%]{margin:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-gray-500)}.product-price-container[_ngcontent-%COMP%]   .pp-header[_ngcontent-%COMP%]   .pp-description[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;line-height:1.625;color:var(--color-gray-600)}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-price-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.375rem}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-price-row[_ngcontent-%COMP%]   .pp-price[_ngcontent-%COMP%]{font-size:1.875rem;line-height:2.25rem;font-weight:700;color:var(--color-yankees-blue)}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-price-row[_ngcontent-%COMP%]   .pp-price-label[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-annual-total[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.75rem 1rem;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1));font-size:.875rem;line-height:1.25rem}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-annual-total[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{flex-shrink:0}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-annual-total[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:700}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-saving[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));padding:.625rem 1rem;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-saving[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{flex-shrink:0;--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-discount-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-discount-row[_ngcontent-%COMP%]   .pp-original-price[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.product-price-container[_ngcontent-%COMP%]   .pp-pricing[_ngcontent-%COMP%]   .pp-discount-row[_ngcontent-%COMP%]   .pp-discount-badge[_ngcontent-%COMP%]{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--color-white)}.product-price-container[_ngcontent-%COMP%]   .pp-per-community[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1rem;font-style:italic;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}"]})}}return n})();var q=a(40983),V=a(9405),W=a(47961);const Q=["paymentErrorDialog"],J=["loadingDialog"];function H(n,i){if(1&n&&(e.qex(0),e.j41(1,"h1",21),e.EFF(2),e.k0s(),e.j41(3,"p",22),e.EFF(4),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI(" ","invoice_requested"===(null==t.purchaseOrder?null:t.purchaseOrder.status)?"Invoice requested \u{1f4c4}":t.isProratedAddon?"Communities added \u{1f389}":"Order confirmed \u{1f389}"," "),e.R7$(2),e.SpI(" ","invoice_requested"===(null==t.purchaseOrder?null:t.purchaseOrder.status)?"Our team will send you bank details within 24 hours. Your plan will be activated once payment is confirmed.":t.isProratedAddon?"Your new community slots are ready. You can start creating them now.":"Your payment was processed successfully. A confirmation is on its way to your inbox."," ")}}function K(n,i){1&n&&(e.qex(0),e.j41(1,"p",23),e.EFF(2,"Subscription add-on"),e.k0s(),e.j41(3,"h1",21),e.EFF(4,"Add more communities"),e.k0s(),e.j41(5,"p",22),e.EFF(6," You're expanding your current plan. Pay only the prorated amount for the days left in this billing cycle. "),e.k0s(),e.bVm())}function Z(n,i){1&n&&(e.qex(0),e.j41(1,"h1",21),e.EFF(2,"Complete your purchase"),e.k0s(),e.bVm())}function ee(n,i){if(1&n&&(e.j41(0,"div",24)(1,"div",25)(2,"span",26),e.nrm(3,"fa-icon",18),e.k0s(),e.j41(4,"div",27)(5,"span",28),e.EFF(6,"Prorated fairly"),e.k0s(),e.j41(7,"span",29),e.EFF(8,"Only pay for days left in the cycle"),e.k0s()()(),e.j41(9,"div",25)(10,"span",26),e.nrm(11,"fa-icon",18),e.k0s(),e.j41(12,"div",27)(13,"span",28),e.EFF(14,"Instant slots"),e.k0s(),e.j41(15,"span",29),e.EFF(16,"Unlock right after payment"),e.k0s()()(),e.j41(17,"div",25)(18,"span",26),e.nrm(19,"fa-icon",18),e.k0s(),e.j41(20,"div",27)(21,"span",28),e.EFF(22,"Auto-renews"),e.k0s(),e.j41(23,"span",29),e.EFF(24,"Included from your next cycle"),e.k0s()()()()),2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("icon",t.icons.faTag),e.R7$(8),e.Y8G("icon",t.icons.faBolt),e.R7$(8),e.Y8G("icon",t.icons.faRotateRight)}}function te(n,i){if(1&n&&(e.j41(0,"com-card",12)(1,"div",13)(2,"div",14)(3,"span",15),e.EFF(4),e.nI1(5,"titlecase"),e.j41(6,"span",16),e.EFF(7,"\u{1f44b}"),e.k0s()(),e.j41(8,"span",17),e.nrm(9,"fa-icon",18),e.EFF(10," Secure checkout "),e.k0s()(),e.DNE(11,H,5,2,"ng-container",19)(12,K,7,0,"ng-container",19)(13,Z,3,0,"ng-container",19),e.k0s(),e.DNE(14,ee,25,3,"div",20),e.k0s()),2&n){const t=e.XpG();e.R7$(4),e.SpI(" Hey ",e.bMT(5,6,null==t.currentUser?null:t.currentUser.name)||"there"," "),e.R7$(5),e.Y8G("icon",t.icons.faLock),e.R7$(2),e.Y8G("ngIf",t.paymentPaid),e.R7$(),e.Y8G("ngIf",!t.paymentPaid&&t.isProratedAddon),e.R7$(),e.Y8G("ngIf",!t.paymentPaid&&!t.isProratedAddon),e.R7$(),e.Y8G("ngIf",t.isProratedAddon)}}function ne(n,i){if(1&n&&(e.j41(0,"com-card",30)(1,"com-card-header",31)(2,"span",32),e.nrm(3,"fa-icon",18),e.k0s(),e.j41(4,"span"),e.EFF(5,"What you're buying"),e.k0s()(),e.j41(6,"com-card-body"),e.nrm(7,"commudle-campaign-details",33)(8,"commudle-wallet-details",33),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.Y8G("icon",t.icons.faBagShopping),e.R7$(4),e.Y8G("campaignId",t.purchaseOrder.notes.campaign.id),e.R7$(),e.Y8G("campaignId",t.purchaseOrder.notes.campaign.id)}}function re(n,i){if(1&n){const t=e.RV6();e.j41(0,"com-card",30)(1,"com-card-header",31)(2,"span",32),e.nrm(3,"fa-icon",18),e.k0s(),e.j41(4,"span"),e.EFF(5,"What you're buying"),e.k0s()(),e.j41(6,"com-card-body")(7,"commudle-product-price-details",34),e.bIt("productPriceLoa
1ded",function(o){e.eBV(t);const c=e.XpG();return e.Njj(c.onProductPriceLoaded(o))}),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(3),e.Y8G("icon",t.icons.faBagShopping),e.R7$(4),e.Y8G("productPriceId",t.purchaseOrder.orderable_id)("withTrial",t.withTrial)}}function oe(n,i){if(1&n&&(e.j41(0,"com-card",30)(1,"com-card-header",31)(2,"span",32),e.nrm(3,"fa-icon",18),e.k0s(),e.j41(4,"span"),e.EFF(5,"Adding communities to your plan"),e.k0s()(),e.j41(6,"com-card-body")(7,"div",35)(8,"div",36)(9,"span",37),e.nrm(10,"fa-icon",18),e.k0s(),e.j41(11,"div",38)(12,"span",39),e.EFF(13),e.k0s(),e.j41(14,"span",40),e.EFF(15,"Added to your active subscription"),e.k0s()()(),e.j41(16,"div",41)(17,"div",42),e.nrm(18,"fa-icon",18),e.j41(19,"div",43)(20,"span",44),e.EFF(21,"Prorated for this cycle"),e.k0s(),e.j41(22,"span",45),e.EFF(23,"You only pay for the days remaining in your current billing period."),e.k0s()()(),e.j41(24,"div",42),e.nrm(25,"fa-icon",18),e.j41(26,"div",43)(27,"span",44),e.EFF(28,"Slots unlock instantly"),e.k0s(),e.j41(29,"span",45),e.EFF(30,"Create your new communities as soon as payment succeeds."),e.k0s()()(),e.j41(31,"div",42),e.nrm(32,"fa-icon",18),e.j41(33,"div",43)(34,"span",44),e.EFF(35,"Included from next cycle"),e.k0s(),e.j41(36,"span",45),e.EFF(37,"Your recurring charge will automatically cover these slots."),e.k0s()()()()()()()),2&n){const t=e.XpG();e.R7$(3),e.Y8G("icon",t.icons.faLayerGroup),e.R7$(7),e.Y8G("icon",t.icons.faLayerGroup),e.R7$(3),e.Lme(" ",null==t.purchaseOrder.notes?null:t.purchaseOrder.notes.extra_communities," more ",1==+(null==t.purchaseOrder.notes?null:t.purchaseOrder.notes.extra_communities)?"community":"communities"," "),e.R7$(5),e.Y8G("icon",t.icons.faCircleCheck),e.R7$(7),e.Y8G("icon",t.icons.faCircleCheck),e.R7$(7),e.Y8G("icon",t.icons.faCircleCheck)}}function ie(n,i){1&n&&e.nrm(0,"commudle-alert",79),2&n&&e.Y8G("error",!0)}function ae(n,i){1&n&&e.nrm(0,"commudle-alert",80),2&n&&e.Y8G("error",!0)}function ce(n,i){1&n&&e.nrm(0,"commudle-alert",80),2&n&&e.Y8G("error",!0)}function se(n,i){1&n&&e.nrm(0,"commudle-alert",81),2&n&&e.Y8G("error",!0)}function de(n,i){1&n&&e.nrm(0,"commudle-alert",82),2&n&&e.Y8G("error",!0)}function le(n,i){if(1&n&&(e.j41(0,"option",83),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.Y8G("value",t.code),e.R7$(),e.JRh(t.name)}}function pe(n,i){if(1&n&&(e.j41(0,"option",83),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.Y8G("value",t.name),e.R7$(),e.JRh(t.name)}}function me(n,i){if(1&n&&(e.j41(0,"div",51)(1,"label",84),e.EFF(2,"State "),e.j41(3,"span",53),e.EFF(4,"*"),e.k0s()(),e.j41(5,"div",69)(6,"select",85)(7,"option",71),e.EFF(8,"Select state"),e.k0s(),e.DNE(9,pe,2,2,"option",72),e.k0s()(),e.nrm(10,"commudle-alert",86),e.k0s()),2&n){let t;const r=e.XpG(3);e.R7$(9),e.Y8G("ngForOf",r.indianStates),e.R7$(),e.Y8G("error",!(null==(t=r.contactInfoForm.get("state"))||!t.invalid||null==(t=r.contactInfoForm.get("state"))||!t.touched))}}function ue(n,i){1&n&&e.nrm(0,"commudle-alert",91),2&n&&e.Y8G("error",!0)}function ge(n,i){1&n&&e.nrm(0,"commudle-alert",92),2&n&&e.Y8G("error",!0)}function _e(n,i){if(1&n&&(e.j41(0,"div",51)(1,"label",87),e.EFF(2,"Zip Code "),e.j41(3,"span",53),e.EFF(4,"*"),e.k0s()(),e.nrm(5,"input",88),e.DNE(6,ue,1,1,"commudle-alert",89)(7,ge,1,1,"commudle-alert",90),e.k0s()),2&n){let t,r;const o=e.XpG(3);e.R7$(6),e.Y8G("ngIf",(null==(t=o.contactInfoForm.get("pinCode"))?null:t.touched)&&(null==(t=o.contactInfoForm.get("pinCode"))||null==t.errors?null:t.errors.required)),e.R7$(),e.Y8G("ngIf",(null==(r=o.contactInfoForm.get("pinCode"))?null:r.touched)&&(null==(r=o.contactInfoForm.get("pinCode"))||null==r.errors?null:r.errors.pattern))}}function he(n,i){1&n&&e.nrm(0,"commudle-alert",97),2&n&&e.Y8G("error",!0)}function fe(n,i){1&n&&e.nrm(0,"commudle-alert",98),2&n&&e.Y8G("error",!0)}function ye(n,i){if(1&n&&(e.j41(0,"div",59)(1,"div",51)(2,"label",87),e.EFF(3,"Pin Code "),e.j41(4,"span",53),e.EFF(5,"*"),e.k0s()(),e.nrm(6,"input",93),e.DNE(7,he,1,1,"commudle-alert",94)(8,fe,1,1,"commudle-alert",95),e.k0s(),e.nrm(9,"div",96),e.k0s()),2&n){let t,r;const o=e.XpG(3);e.R7$(7),e.Y8G("ngIf",(null==(t=o.contactInfoForm.get("pinCode"))?null:t.touched)&&(null==(t=o.contactInfoForm.get("pinCode"))||null==t.errors?null:t.errors.required)),e.R7$(),e.Y8G("ngIf",(null==(r=o.contactInfoForm.get("pinCode"))?null:r.touched)&&(null==(r=o.contactInfoForm.get("pinCode"))||null==r.errors?null:r.errors.pattern))}}function Ce(n,i){1&n&&(e.j41(0,"div",51)(1,"label",104),e.EFF(2,"GSTIN "),e.j41(3,"span",57),e.EFF(4,"(optional)"),e.k0s()(),e.nrm(5,"input",105),e.k0s())}function Pe(n,i){if(1&n&&(e.qex(0),e.j41(1,"label",99),e.nrm(2,"nb-checkbox",100),e.j41(3,"div")(4,"p",101),e.EFF(5,"Are you registered for GSTIN?"),e.k0s(),e.j41(6,"p",102),e.EFF(7,"Add your GSTIN to receive a GST invoice"),e.k0s()()(),e.DNE(8,Ce,6,0,"div",103),e.bVm()),2&n){const t=e.XpG(3);e.R7$(8),e.Y8G("ngIf",t.isGstRegistered)}}function Oe(n,i){if(1&n&&(e.j41(0,"div",49)(1,"div",50)(2,"div",51)(3,"label",52),e.EFF(4,"Full Name "),e.j41(5,"span",53),e.EFF(6,"*"),e.k0s()(),e.nrm(7,"input",54)(8,"commudle-alert",55),e.k0s(),e.j41(9,"div",51)(10,"label",56),e.EFF(11,"Company Name "),e.j41(12,"span",57),e.EFF(13,"(optional)"),e.k0s()(),e.nrm(14,"input",58),e.k0s(),e.j41(15,"div",59)(16,"div",51)(17,"label",60),e.EFF(18,"Email "),e.j41(19,"span",53),e.EFF(20,"*"),e.k0s()(),e.nrm(21,"input",61),e.DNE(22,ie,1,1,"commudle-alert",62)(23,ae,1,1,"commudle-alert",63)(24,ce,1,1,"commudle-alert",63),e.k0s(),e.j41(25,"div",51)(26,"label",64),e.EFF(27,"Phone "),e.j41(28,"span",53),e.EFF(29,"*"),e.k0s()(),e.nrm(30,"input",65),e.DNE(31,se,1,1,"commudle-alert",66)(32,de,1,1,"commudle-alert",67),e.k0s()(),e.j41(33,"div",59)(34,"div",51)(35,"label",68),e.EFF(36,"Country "),e.j41(37,"span",53),e.EFF(38,"*"),e.k0s()(),e.j41(39,"div",69)(40,"select",70)(41,"option",71),e.EFF(42,"Select country"),e.k0s(),e.DNE(43,le,2,2,"option",72),e.k0s()(),e.nrm(44,"commudle-alert",73),e.k0s(),e.DNE(45,me,11,2,"div",74)(46,_e,8,2,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(48,ye,10,2,"div",75),e.j41(49,"div",51)(50,"label",76),e.EFF(51,"Address "),e.j41(52,"span",53),e.EFF(53,"*"),e.k0s()(),e.nrm(54,"textarea",77)(55,"commudle-alert",78),e.k0s(),e.DNE(56,Pe,9,1,"ng-container",19),e.k0s()()),2&n){let t,r,o,c,f,y,v,M;const T=e.sdS(47),m=e.XpG(2);e.Y8G("formGroup",m.contactInfoForm),e.R7$(8),e.Y8G("error",!(null==(t=m.contactInfoForm.get("name"))||
1!t.invalid||null==(t=m.contactInfoForm.get("name"))||!t.touched)),e.R7$(14),e.Y8G("ngIf",(null==(r=m.contactInfoForm.get("email"))?null:r.touched)&&(null==(r=m.contactInfoForm.get("email"))||null==r.errors?null:r.errors.required)),e.R7$(),e.Y8G("ngIf",(null==(o=m.contactInfoForm.get("email"))?null:o.touched)&&(null==(o=m.contactInfoForm.get("email"))||null==o.errors?null:o.errors.email)),e.R7$(),e.Y8G("ngIf",(null==(c=m.contactInfoForm.get("email"))?null:c.touched)&&(null==(c=m.contactInfoForm.get("email"))||null==c.errors?null:c.errors.pattern)),e.R7$(7),e.Y8G("ngIf",(null==(f=m.contactInfoForm.get("phone"))?null:f.touched)&&(null==(f=m.contactInfoForm.get("phone"))||null==f.errors?null:f.errors.required)),e.R7$(),e.Y8G("ngIf",(null==(y=m.contactInfoForm.get("phone"))?null:y.touched)&&(null==(y=m.contactInfoForm.get("phone"))||null==y.errors?null:y.errors.pattern)),e.R7$(11),e.Y8G("ngForOf",m.countries),e.R7$(),e.Y8G("error",!(null==(v=m.contactInfoForm.get("country"))||!v.invalid||null==(v=m.contactInfoForm.get("country"))||!v.touched)),e.R7$(),e.Y8G("ngIf",m.isIndiaSelected)("ngIfElse",T),e.R7$(3),e.Y8G("ngIf",m.isIndiaSelected),e.R7$(7),e.Y8G("error",!(null==(M=m.contactInfoForm.get("address"))||!M.invalid||null==(M=m.contactInfoForm.get("address"))||!M.touched)),e.R7$(),e.Y8G("ngIf",m.isIndiaSelected)}}function be(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Billed to"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,1,null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.company_name))}}function ve(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Email"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(t.purchaseOrder.contact_info.email)}}function Me(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Phone"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(t.purchaseOrder.contact_info.phone_number)}}function xe(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Address"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.address)}}function ke(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"State"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.state)}}function Fe(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Pin Code / Zip Code"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.pin_code)}}function we(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"Country"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(t.purchaseOrder.contact_info.country_code)}}function Ie(n,i){if(1&n&&(e.j41(0,"div",108)(1,"span",109),e.EFF(2,"GSTIN"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(null==t.purchaseOrder.contact_info.tax_info?null:t.purchaseOrder.contact_info.tax_info.gst)}}function Ee(n,i){if(1&n&&(e.j41(0,"div",106),e.DNE(1,be,6,3,"div",107)(2,ve,5,
11,"div",107)(3,Me,5,1,"div",107)(4,xe,5,1,"div",107)(5,ke,5,1,"div",107)(6,Fe,5,1,"div",107)(7,we,5,1,"div",107)(8,Ie,5,1,"div",107),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.company_name),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.contact_info.email),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.contact_info.phone_number),e.R7$(),e.Y8G("ngIf",null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.address),e.R7$(),e.Y8G("ngIf",null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.state),e.R7$(),e.Y8G("ngIf",null==t.purchaseOrder.contact_info.address?null:t.purchaseOrder.contact_info.address.pin_code),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.contact_info.country_code),e.R7$(),e.Y8G("ngIf",null==t.purchaseOrder.contact_info.tax_info?null:t.purchaseOrder.contact_info.tax_info.gst)}}function Re(n,i){if(1&n&&(e.j41(0,"com-card",46)(1,"com-card-header",31)(2,"span",32),e.nrm(3,"fa-icon",18),e.k0s(),e.j41(4,"span"),e.EFF(5,"Billing details"),e.k0s()(),e.j41(6,"com-card-body"),e.DNE(7,Oe,57,14,"div",47)(8,Ee,9,8,"div",48),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.Y8G("icon",t.icons.faBuilding),e.R7$(4),e.Y8G("ngIf",t.purchaseOrder.status!==t.EPurchaseOrderStatus.PAID),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.status===t.EPurchaseOrderStatus.PAID)}}function De(n,i){if(1&n&&(e.j41(0,"div",133),e.nrm(1,"fa-icon",18),e.j41(2,"p",134),e.EFF(3),e.k0s(),e.j41(4,"p",135),e.EFF(5),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("icon",t.icons.faCircleCheck),e.R7$(2),e.SpI(" ","invoice_requested"===(null==t.purchaseOrder?null:t.purchaseOrder.status)?"Invoice Requested!":"Payment Successful!"," "),e.R7$(2),e.SpI(" ","invoice_requested"===(null==t.purchaseOrder?null:t.purchaseOrder.status)?"Bank details will be sent to your email within 24 hours.":"A confirmation has been sent to your email."," ")}}function Te(n,i){1&n&&(e.j41(0,"span",138),e.EFF(1,"/mo"),e.k0s())}function je(n,i){if(1&n&&(e.j41(0,"div",136)(1,"span",109),e.EFF(2,"Price per community"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.nI1(5,"currency"),e.DNE(6,Te,2,0,"span",137),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(4),e.SpI(" ",e.i5U(5,2,t.purchaseOrder.price/100,t.purchaseOrder.currency)," "),e.R7$(2),e.Y8G("ngIf","yearly"===(null==t.productPrice?null:t.productPrice.billing_cycle))}}function Ge(n,i){if(1&n&&(e.j41(0,"div",136)(1,"span",109),e.EFF(2,"Billing"),e.k0s(),e.j41(3,"span",110),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(4),e.SpI(" ",e.bMT(5,1,t.productPrice.billing_cycle)," ")}}function $e(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",141)(1,"button",142),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.decreaseQuantity())}),e.nrm(2,"fa-icon",18),e.k0s(),e.j41(3,"span",143),e.EFF(4),e.k0s(),e.j41(5,"button",144),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.increaseQuantity())}),e.nrm(6,"fa-icon",18),e.k0s()()}if(2&n){const t=e.XpG(3);e.R7$(),e.Y8G("disabled",t.quantity<=t.minQuantity),e.R7$(),e.Y8G("icon",t.icons.faMinus),e.R7$(2),e.JRh(t.quantity),e.R7$(2),e.Y8G("icon",t.icons.faPlus)}}function Se(n,i){if(1&n&&(e.j41(0,"span",110),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.purchaseOrder.quantity," ")}}function Ye(n,i){if(1&n&&(e.j41(0,"div",136)(1,"span",109),e.EFF(2,"Number of communities"),e.k0s(),e.DNE(3,$e,7,4,"div",139)(4,Se,2,1,"span",140),e.k0s()),2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",t.purchaseOrder.status!==t.EPurchaseOrderStatus.PAID),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.status===t.EPurchaseOrderStatus.PAID)}}function ze(n,i){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Lme(" \xd7 ",t.subscriptionMonths," ",1===t.subscriptionMonths?"month":"months"," ")}}function Ue(n,i){if(1&n&&(e.j41(0,"div",145)(1,"span",109),e.EFF(2," Subtotal "),e.j41(3,"span",146),e.EFF(4),e.nI1(5,"currency"),e.DNE(6,ze,2,2,"ng-container",19),e.k0s()(),e.j41(7,"span",110),e.EFF(8),e.nI1(9,"currency"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(4),e.E5c(" ",e.i5U(5,5,t.purchaseOrder.price/100,t.purchaseOrder.currency)," \xd7 ",t.quantity," ",1===t.quantity?"community":"communities"," "),e.R7$(2),e.Y8G("ngIf",t.subscriptionMonths),e.R7$(2),e.JRh(e.i5U(9,8,t.subtotal,t.purchaseOrder.currency))}}function Ae(n,i){if(1&n&&(e.j41(0,"div",147)(1,"span",109),e.nrm(2,"fa-icon",18),e.EFF(3," Discount "),e.k0s(),e.j41(4,"span",110),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("icon",t.icons.faTag),e.R7$(3),e.SpI("-",e.i5U(6,2,t.discountValue,t.purchaseOrder.currency),"")}}function Le(n,i){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" (",t.purchaseOrder.tax_rate,"%)")}}function Ne(n,i){if(1&n&&(e.j41(0,"div",148)(1,"span",109),e.EFF(2," Tax"),e.DNE(3,Le,2,1,"ng-container",19),e.k0s(),e.j41(4,"span",110),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",t.purchaseOrder.tax_rate),e.R7$(2),e.JRh(e.i5U(6,2,t.purchaseOrder.tax_amount/100,t.purchaseOrder.currency))}}function Xe(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",156),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.applyDiscountCode())}),e.EFF(1," Apply "),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.discountCode||t.discountCodeApplied)}}function Be(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",157),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.removePromoCode(!0))}),e.EFF(1," Remove "),e.k0s()}}function qe(n,i){if(1&n&&(e.j41(0,"p",158),e.nrm(1,"fa-icon",18),e.EFF(2," Code applied successfully "),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("icon",t.icons.faCircleCheck)}}function Ve(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",149)(1,"label",150),e.nrm(2,"fa-icon",18),e.EFF(3," Have a discount code? "),e.k0s(),e.j41(4,"div",151)(5,"input",152),e.mxI("ngModelChange",function(o){e.eBV(t);const c=e.XpG(2);return e.DH7(c.discountCode,o)||(c.discountCode=o),e.Njj(o)}),e.bIt("input",function(o){e.eBV(t);const c=e.XpG(2);return e.Njj(c.onDiscountCodeInput(o))}
1),e.k0s(),e.DNE(6,Xe,2,1,"button",153)(7,Be,2,0,"button",154),e.k0s(),e.DNE(8,qe,3,1,"p",155),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("icon",t.icons.faTag),e.R7$(3),e.R50("ngModel",t.discountCode),e.Y8G("disabled",t.discountCodeApplied),e.R7$(),e.Y8G("ngIf",!t.discountCodeApplied),e.R7$(),e.Y8G("ngIf",t.discountCodeApplied),e.R7$(),e.Y8G("ngIf",t.discountCodeApplied)}}function We(n,i){if(1&n&&(e.j41(0,"div",159),e.nrm(1,"commudle-alert",160),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("warning",t.trialIneligibleReason)}}function Qe(n,i){if(1&n&&(e.j41(0,"div",161),e.nrm(1,"fa-icon",18),e.j41(2,"span",162),e.EFF(3),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"currency"),e.k0s(),e.EFF(7," verification charge "),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("icon",t.icons.faCircleCheck),e.R7$(2),e.SpI(" ",t.trialDays,"-day free trial \xb7 "),e.R7$(2),e.JRh(e.i5U(6,3,t.cardVerificationCharge,t.purchaseOrder.currency))}}function Je(n,i){if(1&n&&(e.j41(0,"p",163),e.EFF(1),e.nI1(2,"currency"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Lme(" Refundable card verification. Then ",e.i5U(2,2,t.totalPrice,t.purchaseOrder.currency)," after your ",t.trialDays,"-day trial. ")}}function He(n,i){if(1&n&&(e.j41(0,"p",164),e.nrm(1,"fa-icon",18),e.EFF(2," You can cancel your subscription anytime. "),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("icon",t.icons.faCircleInfo)}}function Ke(n,i){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"commudle-alert",129)(2,"div",130),e.EFF(3),e.nI1(4,"currency"),e.k0s()(),e.j41(5,"button",166),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.RequestInvoice())}),e.nrm(6,"fa-icon",18),e.EFF(7," Request Invoice "),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(3);e.R7$(),e.Y8G("info",!0),e.R7$(2),e.SpI(" Orders above ",e.ii3(4,4,t.effectiveBankTransferThreshold,t.purchaseOrder.currency,"symbol","1.0-0")," require bank transfer. Request an invoice and our team will send bank details within 24 hours. "),e.R7$(2),e.Y8G("disabled",t.isLoadingPayment),e.R7$(),e.Y8G("icon",t.icons.faReceipt)}}function Ze(n,i){if(1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"currency"),e.bVm()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("Pay ",e.i5U(2,1,t.purchaseOrder.amount_to_be_paid/100,t.purchaseOrder.currency),"")}}function et(n,i){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("Start ",t.trialDays,"-day free trial")}}function tt(n,i){if(1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"currency"),e.bVm()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" Pay ",e.i5U(2,1,t.totalPrice,t.purchaseOrder.currency)," ")}}function nt(n,i){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",167),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.hasTrial&&o.withTrial?o.StartTrial():o.Pay())}),e.nrm(2,"fa-icon",18),e.DNE(3,Ze,3,4,"ng-container",19)(4,et,2,1,"ng-container",19)(5,tt,3,4,"ng-container",19),e.k0s(),e.j41(6,"div",168)(7,"span",169),e.nrm(8,"fa-icon",18),e.EFF(9," Encrypted & secure "),e.k0s(),e.nrm(10,"span",170),e.j41(11,"span",169),e.EFF(12,"Powered by Razorpay"),e.k0s()(),e.bVm()}if(2&n){const t=e.XpG(3);e.R7$(),e.Y8G("disabled",t.isLoadingPayment||t.isCheckingTrialEligibility),e.R7$(),e.Y8G("icon",t.icons.faLock),e.R7$(),e.Y8G("ngIf",t.isProratedAddon),e.R7$(),e.Y8G("ngIf",!t.isProratedAddon&&t.hasTrial&&t.withTrial),e.R7$(),e.Y8G("ngIf",!(t.isProratedAddon||t.hasTrial&&t.withTrial)),e.R7$(3),e.Y8G("icon",t.icons.faShieldHalved)}}function rt(n,i){if(1&n&&(e.j41(0,"div",165),e.DNE(1,Ke,8,9,"ng-container",19)(2,nt,13,6,"ng-container",19),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.isBankTransfer),e.R7$(),e.Y8G("ngIf",!t.isBankTransfer)}}function ot(n,i){if(1&n&&(e.j41(0,"div",111)(1,"com-card",112)(2,"com-card-header",113)(3,"span",32),e.nrm(4,"fa-icon",18),e.k0s(),e.j41(5,"span"),e.EFF(6,"Order summary"),e.k0s()(),e.j41(7,"com-card-body")(8,"p",114),e.EFF(9),e.k0s(),e.DNE(10,De,6,3,"div",115),e.j41(11,"div",116),e.DNE(12,je,7,5,"div",117)(13,Ge,6,3,"div",117)(14,Ye,5,2,"div",117)(15,Ue,10,11,"div",118)(16,Ae,7,5,"div",119)(17,Ne,7,5,"div",120),e.k0s(),e.DNE(18,Ve,9,6,"div",121)(19,We,2,1,"div",122)(20,Qe,8,6,"div",123),e.j41(21,"div",124)(22,"span",109),e.EFF(23),e.k0s(),e.j41(24,"span",110),e.EFF(25),e.nI1(26,"currency"),e.k0s()(),e.DNE(27,Je,3,5,"p",125)(28,He,3,1,"p",126)(29,rt,3,2,"div",127),e.k0s()(),e.j41(30,"div",128)(31,"commudle-alert",129)(32,"div",130),e.EFF(33," For any technical support please reach out to "),e.j41(34,"a",131),e.EFF(35,"[email protected]"),e.k0s(),e.EFF(36,". Read our "),e.j41(37,"a",132),e.EFF(38," refund & cancellation policy"),e.k0s(),e.EFF(39,". "),e.k0s()()()()),2&n){const t=e.XpG();e.R7$(4),e.Y8G("icon",t.icons.faReceipt),e.R7$(5),e.SpI("Prices are in ",t.purchaseOrder.currency,""),e.R7$(),e.Y8G("ngIf",t.paymentPaid),e.R7$(2),e.Y8G("ngIf",!t.isProratedAddon),e.R7$(),e.Y8G("ngIf",(null==t.productPrice?null:t.productPrice.is_subscription_plan)&&(null==t.productPrice?null:t.productPrice.billing_cycle)&&!t.isProratedAddon),e.R7$(),e.Y8G("ngIf",(null==t.purchaseOrder?null:t.purchaseOrder.orderable_type)===t.EDbModels.PRODUCT_PRICE&&!t.isProratedAddon),e.R7$(),e.Y8G("ngIf",(null==t.purchaseOrder?null:t.purchaseOrder.orderable_type)===t.EDbModels.PRODUCT_PRICE&&!t.isProratedAddon),e.R7$(),e.Y8G("ngIf",t.discountCodeApplied&&t.discountValue),e.R7$(),e.Y8G("ngIf",t.purchaseOrder.tax_amount),e.R7$(),e.Y8G("ngIf",!(t.paymentPaid||t.hasTrial&&t.withTrial)),e.R7$(),e.Y8G("ngIf",t.trialIneligibleReason&&!t.paymentPaid),e.R7$(),e.Y8G("ngIf",t.hasTrial&&t.withTrial&&!t.paymentPaid&&!t.isProratedAddon),e.R7$(3),e.JRh(t.isProratedAddon?"Due today (prorated)":t.hasTrial&&t.withTrial?"Due today":"Total payable"),e.R7$(2),e.SpI(" ",e.i5U(26,18,t.isProratedAddon?t.purchaseOrder.amount_to_be_paid/100:t.hasTrial&&t.withTrial?t.cardVerificationCharge:t.totalPrice,t.purchaseOrder.currency)," "),e.R7$(2),e.Y8G("ngIf",t.hasTrial&&t.withTrial),e.R7$(),e.Y8G("ngIf",(null==t.productPrice?null:t.productPrice.is_subscription_plan)&&!t.paymentPaid),e.R7$(),e.Y8G("ngIf",!t.paymentPaid),e.R7$(2),e.Y8G("info",!0)}}function it(n,i){if(1&n){const t=e.RV6();e.j41(0,"com-card",171)(1,"com-card-body")(2,"div",172)(3,"div"),e.nrm(4,"fa-icon",18),e.k0s()(),e.j41(5,"p",173),e.EFF(6,"Seems like there is a problem with payment"),e.k0s(),e.j41(7,"p",174),e.bIt("click",function(){const o=e.eBV(t).dialogRef;return e.XpG().reload(),e.Njj(o.close())}),e.nrm(8,"fa-icon",18),e.EFF(9," Refresh to retry payment "),e.k0s(),e.j41(10,"p",175),e.EFF(11,"If money was deducted from your account, please reach out to our support"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.Y8G("icon",t.icons.faTriangleExclamation),e.R7$(4),e.Y8G("icon",t.icons.faRotateRight)}}function at(n,i){1&n&&e.nrm(0,"app-loading-spinner")}let G=(()=>{class n{get effectiveBankTransferThreshold(){return this.purchaseOrder?.bank_transfer_threshold_usd??this.bankTransferThreshold}constructor(t,r,o,c,f,y,v,M,T,m,ut,gt,_t,ht){this.activatedRoute=t,this.router=r,this.fb=o,this.authWatchService=c,this.purchaseOrderService=f,this.razorpayService=y,this.userSubscriptionService=v,this.toastrService=M,this.dialogService=T,this.discountCodesService=m,this.gtm=ut,this.seoService=gt,this.confettiService=_t,this.platformId=ht,this.isLoadingPayment=!1,this.totalPrice=0,this.totalTaxAmount=0,this.campaignId=null,this.paymentPaid=!1,this.quantity=1,this.minQuantity=1,this.subscriptionMonths=1,this.withTrial=!1,this.trialLocked=void 0,this.isCheckingTrialEligibility=!1,this.trialIneligibleReason=null,this.countries=h.aE,this.indianStates=h.$J,this.discountCode="",this.discountCodeApplied=!1,this.discountAmount=0,this.finalDiscountAmount=0,this.icons={faTriangleExclamation:_.JAe,faRotateRight:_.lLb,faCircleCheck:_.QRE,faPlus:_.QLR,faMinus:_.EZy,faLock:_.DW4,faShieldHalved:_.fLc,faTag:_._2z,faReceipt:_.Mf0,faBolt:_.zm_,faBagShopping:_.WfV,faBuilding:_.URI,faCircleInfo:_.mEO,faLayerGroup:_.qIE},this.EPurchaseOrderStatus=g.z6,this.EDbModels=g.ag,this.cardVerificationCharge=1,this.bankTransferThreshold=4500,this.destroy$=new D.B,this.isBrowser=(0,j.UE)(this.platformId),this.contactInfoForm=this.initCheckoutForm()}initCheckoutForm(){return this.fb.group({name:["",d.k0.required],companyName:[""],email:["",[d.k0.required,d.k0.email,d.k0.pattern(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)]],phone:["",[d.k0.required,d.k0.pattern(/^\+?[0-9 +]{7,15}$/)]],country:["",d.k0.required],state:[""],address:["",d.k0.required],pinCode:["",[d.k0.required,d.k0.pattern(/^[A-Za-z0-9 ]{4,10}$/)]],isGstRegistered:[!1],gst:[""]})}
1ngOnInit(){this.seoService.noIndex(!0),this.openLoadingDialog(),this.fetchCurrentUser(),this.setupBillingTypeListener(),this.activatedRoute.params.pipe((0,u.Q)(this.destroy$)).subscribe(t=>{const r=t.purchase_order_uuid;r&&this.fetchPurchaseOrder(r)}),this.activatedRoute.queryParams.pipe((0,u.Q)(this.destroy$)).subscribe(t=>{"1"===t.with_trial?(this.trialLocked=!0,this.withTrial=!0):(this.trialLocked=!1,this.withTrial=!1)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.closeLoadingDialog(),this.seoService.noIndex(!1)}fetchPurchaseOrder(t){const r=this.activatedRoute.snapshot.url[this.activatedRoute.snapshot.url.length-1]?.path||"";this.purchaseOrderService.showPurchaseOrder(t).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>this.closeLoadingDialog())).subscribe({next:o=>{this.purchaseOrder=o,this.quantity=this.purchaseOrder.quantity||1,this.purchaseOrder.notes?.subscription_months&&(this.subscriptionMonths=this.purchaseOrder.notes?.subscription_months),this.purchaseOrder.discount_code?.code&&(this.discountCode=this.purchaseOrder.discount_code.code,this.totalPrice=this.purchaseOrder.amount_to_be_paid/100),this.handleOrderStatus(r),this.purchaseOrder.contact_info&&this.prefillContactForm(this.purchaseOrder.contact_info),this.purchaseOrder.status===g.z6.PAID?this.updateTotalPrice():this.discountCode?this.applyDiscountCode():this.refreshOrderTotals()},error:()=>{this.toastrService.errorDialog("Failed to fetch purchase order"),this.closeLoadingDialog()}})}prefillContactForm(t){if(!t)return;const r=t.address?.contact_email,o=t.address?.contact_phone,c=t.address?.contact_person_name||t.address?.company_name||this.currentUser?.name||"",f=t.address?.company_name||"";this.contactInfoForm.patchValue({name:c,companyName:f&&f!==c?f:"",email:t.email||r||this.currentUser?.email||"",phone:t.phone_number?.toString()||o||this.currentUser?.phone||"",country:t.country_code||this.getUserCountryCode(),state:t.address?.state||"",address:t.address?.address||"",pinCode:t.address?.pin_code||"",isGstRegistered:!!t.tax_info?.gst,gst:t.tax_info?.gst||""}),this.updateBillingValidators()}handleOrderStatus(t){this.purchaseOrder.status===g.z6.PAID?(this.paymentPaid=!0,"complete"!==t?this.router.navigate(["checkout",this.purchaseOrder.uuid,"complete"]):this.purchaseOrder.orderable_type===g.ag.PRODUCT_PRICE&&(this.productPrice?.is_subscription_plan||this.isProratedAddon)&&this.router.navigate(["/subscriptions"])):this.purchaseOrder.status===g.z6.INVOICE_REQUESTED?this.paymentPaid=!0:"complete"===t&&this.router.navigate(["checkout",this.purchaseOrder.uuid])}fetchCurrentUser(){this.authWatchService.currentUser$.pipe((0,u.Q)(this.destroy$)).subscribe(t=>{if(this.currentUser=t,!t)return;const r={};this.contactInfoForm.get("name")?.value||(r.name=t.name||""),this.contactInfoForm.get("email")?.value||(r.email=t.email||""),this.contactInfoForm.get("phone")?.value||(r.phone=t.phone||""),this.contactInfoForm.get("country")?.value||(r.country=this.getUserCountryCode()),Object.keys(r).length&&(this.contactInfoForm.patchValue(r,{emitEvent:!1}),this.updateBillingValidators()),this.refreshOrderTotals()})}setupBillingTypeListener(){this.updateBillingValidators(),this.contactInfoForm.get("country")?.valueChanges.pipe((0,u.Q)(this.destroy$)).subscribe(()=>{this.updateBillingValidators(),this.refreshOrderTotals()}),this.contactInfoForm.get("state")?.valueChanges.pipe((0,u.Q)(this.destroy$)).subscribe(()=>this.refreshOrderTotals())}refreshOrderTotals(){this.paymentPaid||!this.purchaseOrder?.uuid||(this.discountCodeApplied?this.applyDiscountCode():this.updatePurchaseOrder())}updateBillingValidators(){const t=this.contactInfoForm.get("state");this.isIndiaSelected?t?.setValidators(d.k0.required):t?.clearValidators(),t?.updateValueAndValidity({emitEvent:!1})}getUserCountryCode(){const t=this.currentUser?.phone_country_code;if(t){const r=this.countries.find(o=>String(o.phone)===String(t));if(r)return r.code}return"IN"}get isIndiaSelected(){return"IN"===this.contactInfoForm.get("country")?.value}get isGstRegistered(){return!!this.contactInfoForm.get("isGstRegistered")?.value}get billingCountryCode(){return this.contactInfoForm.get("country")?.value||this.getUserCountryCode()}buildContactInfoPayload(){const t=this.contactInfoForm.get("country")?.value||this.getUserCountryCode(),r=this.contactInfoForm.get("name")?.value||"",o=(this.contactInfoForm.get("companyName")?.value||"").trim(),c="IN"===t;return{country_code:t,email:this.contactInfoForm.get("email")?.value||"",phone_number:(this.contactInfoForm.get("phone")?.value||"").replace(/\D/g,""),tax_info:{gst:c&&this.isGstRegistered&&this.contactInfoForm.get("gst")?.value||"",pan_card:""},address:{address:this.contactInfoForm.get("address")?.value||"",company_name:o||r,pin_code:this.contactInfoForm.get("pinCode")?.value||"",state:c&&this.contactInfoForm.get("state")?.value||"",contact_person_name:r}}}
1StartTrial(){if(this.productPrice?.id)if(this.hasTrial&&this.withTrial){if(this.purchaseOrder?.id)return this.contactInfoForm.invalid?(this.contactInfoForm.markAllAsTouched(),void this.toastrService.errorDialog("Please fill all the required fields")):(this.isLoadingPayment=!0,void this.saveContactInfoThenStartTrial());this.toastrService.errorDialog("Invalid purchase order")}else this.toastrService.errorDialog("Trial is not available for this plan");else this.toastrService.errorDialog("Invalid product price")}saveContactInfoThenStartTrial(){if(!this.purchaseOrder?.uuid)return void(this.isLoadingPayment=!1);const t=this.buildContactInfoPayload();(this.purchaseOrder.contact_info?this.purchaseOrderService.updateContactInfo(this.purchaseOrder.uuid,t):this.purchaseOrderService.createContactInfo(this.purchaseOrder.uuid,t)).pipe((0,u.Q)(this.destroy$)).subscribe({next:()=>{this.razorpayService.createOrFindOrder({},{po_id:this.purchaseOrder.id},{trial_verification:!0}).pipe((0,u.Q)(this.destroy$)).subscribe({next:o=>this.openTrialVerificationCheckout(o),error:o=>{this.isLoadingPayment=!1,this.toastrService.errorDialog(o?.error?.message||"Could not start the trial. Please try again.")}})},error:o=>{this.isLoadingPayment=!1,this.toastrService.errorDialog(o?.error?.message||"Failed to save contact information. Please try again.")}})}openTrialVerificationCheckout(t){const r=this.productPrice?.id;if(!r)return this.isLoadingPayment=!1,void this.toastrService.errorDialog("Invalid product price");const o=this.trialDays>0?`${this.trialDays}-day free trial`:"free trial",c={key:F.c.razorpay_key,order_id:t.rzp_order_id,amount:String(t.amount),currency:t.currency,name:this.productPrice?.product_name||"Commudle",description:`Card verification for ${o}`,handler:y=>{this.openLoadingDialog(),this.userSubscriptionService.startTrial(r,{razorpay_payment_id:y.razorpay_payment_id,razorpay_order_id:y.razorpay_order_id,razorpay_signature:y.razorpay_signature,po_id:this.purchaseOrder?.id}).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>{this.isLoadingPayment=!1,this.closeLoadingDialog()})).subscribe({next:()=>{this.paymentPaid=!0,this.celebratePurchase(),this.toastrService.successDialog(this.trialDays>0?`Your ${this.trialDays}-day free trial has started`:"Your free trial has started"),this.router.navigate(["/subscriptions"])},error:v=>{this.toastrService.errorDialog(v?.error?.message||"Could not start the trial. Please try again.")}})},prefill:{name:this.currentUser?.name||"",email:this.currentUser?.email||"",contact:this.currentUser?.phone||""},modal:{escape:!1,ondismiss:()=>{this.isLoadingPayment=!1,this.dialogService.open(this.paymentErrorDialog,{closeOnBackdropClick:!1})}}},f=new Razorpay(c);f.on("payment.failed",y=>{this.isLoadingPayment=!1,this.toastrService.errorDialog(`Card verification failed: ${y.error.description}`)}),f.open()}get isBankTransfer(){return!this.isProratedAddon&&!(this.hasTrial&&this.withTrial)&&this.totalPrice>=this.effectiveBankTransferThreshold}RequestInvoice(){if(!this.purchaseOrder?.uuid)return void this.toastrService.errorDialog("Invalid purchase order");if(this.purchaseOrder.orderable_type===g.ag.PRODUCT_PRICE&&this.contactInfoForm.invalid)return this.contactInfoForm.markAllAsTouched(),void this.toastrService.errorDialog("Please fill all the required fields");this.isLoadingPayment=!0;const t=this.buildContactInfoPayload();(this.purchaseOrder.contact_info?this.purchaseOrderService.updateContactInfo(this.purchaseOrder.uuid,t):this.purchaseOrderService.createContactInfo(this.purchaseOrder.uuid,t)).pipe((0,u.Q)(this.destroy$)).subscribe({next:()=>{this.purchaseOrderService.requestInvoice(this.purchaseOrder.uuid).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>this.isLoadingPayment=!1)).subscribe({next:o=>{this.purchaseOrder={...this.purchaseOrder,...o},this.paymentPaid=!0,this.toastrService.successDialog("Invoice request sent! Our team will share bank details within 24 hours.")},error:o=>{this.toastrService.errorDialog(o?.error?.message||"Could not send the invoice request. Please try again.")}})},error:o=>{this.isLoadingPayment=!1,this.toastrService.errorDialog(o?.error?.message||"Failed to save contact information.")}})}Pay(){if(this.purchaseOrder?.id){if(this.purchaseOrder.orderable_type===g.ag.PRODUCT_PRICE){if(this.contactInfoForm.invali
1d)return this.contactInfoForm.markAllAsTouched(),void this.toastrService.errorDialog("Please fill all the required fields");if(this.quantity<this.minQuantity)return void this.toastrService.errorDialog(`Minimum quantity required is ${this.minQuantity}`)}this.discountCode&&this.discountCodeApplied?this.validateDiscountCode(t=>{t?this.proceedWithPayment():(this.isLoadingPayment=!1,this.dialogService.open(this.paymentErrorDialog,{closeOnBackdropClick:!1}))}):this.proceedWithPayment()}else this.toastrService.errorDialog("Invalid purchase order")}proceedWithPayment(){this.isLoadingPayment=!0,this.purchaseOrder.orderable_type===g.ag.PRODUCT_PRICE?this.createOrUpdateContactInfo():this.createRazorpayOrder(this.purchaseOrder.id)}createOrUpdateContactInfo(){if(!this.purchaseOrder?.uuid)return;const t=this.buildContactInfoPayload();(this.purchaseOrder.contact_info?this.purchaseOrderService.updateContactInfo(this.purchaseOrder.uuid,t):this.purchaseOrderService.createContactInfo(this.purchaseOrder.uuid,t)).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>{this.purchaseOrder.id||(this.isLoadingPayment=!1)})).subscribe({next:o=>{o&&this.purchaseOrder.id?this.createRazorpayOrder(this.purchaseOrder.id):(this.isLoadingPayment=!1,this.toastrService.errorDialog("Failed to save contact information"))},error:o=>{this.isLoadingPayment=!1,this.toastrService.errorDialog("Failed to save contact information",o)}})}createRazorpayOrder(t){const r=Math.round(100*this.totalPrice),o={subscription_months:this.subscriptionMonths};0===r?this.handleFullDiscount():this.razorpayService.createOrFindOrder(o,{po_id:t}).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>{this.isLoadingPayment||(this.isLoadingPayment=!1)})).subscribe({next:c=>this.razorPaySubmit(c),error:()=>{this.isLoadingPayment=!1,this.toastrService.errorDialog("Failed to create payment order")}})}handleFullDiscount(){this.purchaseOrderService.markPaidForFullyDiscounted(this.purchaseOrder.uuid).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>this.isLoadingPayment=!1)).subscribe({next:()=>{this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.toastrService.successDialog("Order completed successfully"),this.paymentPaid=!0,this.celebratePurchase(),this.router.navigate(this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.productPrice?.is_subscription_plan?["/subscriptions"]:["checkout",this.purchaseOrder.uuid,"complete"])},error:()=>{this.toastrService.errorDialog("Failed to complete order")}})}razorPaySubmit(t){if(!t?.rzp_order_id)return void this.toastrService.errorDialog("Invalid payment order");const o=new Razorpay({key:F.c.razorpay_key,order_id:t.rzp_order_id,handler:c=>{this.openLoadingDialog(),this.razorpayService.createOrUpdatePayment(c,!1,t?.razorpay_payment?.rzp_payment_id).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>{this.isLoadingPayment=!1,this.closeLoadingDialog()})).subscribe({next:f=>{f&&(this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.toastrService.successDialog("Your Payment Was Received Successfully"),this.paymentPaid=!0,this.celebratePurchase(),this.router.navigate(this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&(this.productPrice?.is_subscription_plan||this.isProratedAddon)?["/subscriptions"]:["checkout",this.purchaseOrder.uuid,"complete"]))},error:()=>{this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.toastrService.errorDialog("Payment processing failed")}})},prefill:{name:this.currentUser?.name||"",email:this.currentUser?.email||"",contact:this.currentUser?.phone||""},modal:{escape:!1,reload:!1,ondismiss:()=>{this.isLoadingPayment=!1,this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.dialogService.open(this.paymentErrorDialog,{closeOnBackdropClick:!1})}}});o.on("payment.failed",c=>{this.razorpayService.createOrUpdatePayment(c.error,!0,t?.razorpay_payment?.rzp_payment_id).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>this.isLoadingPayment=!1)).subscribe({next:()=>{this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.toastrService.errorDialog(`Payment failed: ${c.error.description}`),this.reload()},error:()=>{this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.gtmDataLayerPushEvent("community-subscription-po-completed",{com_purchase_order:this.purchaseOrder.uuid,com_product_price_plan_name:this.productPrice?.plan_name,com_product_price_product_name:this.productPrice?.product_name,com_purchase_order_quantity:this.purchaseOrder.quantity,com_purchase_order_subscription_months:this.purchaseOrder.notes?.subscription_months}),this.toastrService.errorDialog("Failed to process payment failure")}})}),o.open()}reload(){this.isBrowser&&window.location.reload()}increaseQuantity(){this.quantity++,this.discountCodeApplied?this.applyDiscountCode():this.updatePurchaseOrder()}decreaseQuantity(){this.quantity>this.minQuantity&&(this.quantity--,this.discountCodeApplied?this.applyDiscountCode():this.updatePurchaseOrder())}
1onProductPriceLoaded(t){t&&(this.seoService.setTitle(`Checkout | ${t.product_name} - ${t.plan_name} | Commudle`),this.productPrice=t,this.minQuantity=t.min_quantity||1,this.quantity=Math.max(this.minQuantity,this.quantity),void 0===this.trialLocked&&(this.withTrial=this.hasTrial),this.updateTotalPrice(),this.withTrial&&t.id&&this.checkTrialEligibility(t.id))}checkTrialEligibility(t){this.isCheckingTrialEligibility=!0,this.userSubscriptionService.checkTrialEligibility(t).pipe((0,u.Q)(this.destroy$),(0,P.j)(()=>this.isCheckingTrialEligibility=!1)).subscribe({next:r=>{r.eligible||(this.withTrial=!1,this.trialIneligibleReason=r.reason||"Trial is not available for this plan. You can still subscribe at the regular price.",this.toastrService.warningDialog(this.trialIneligibleReason))}})}increaseMonths(){this.productPrice?.min_subscription_duration_months&&(this.subscriptionMonths+=this.productPrice.min_subscription_duration_months,this.discountCodeApplied?this.applyDiscountCode():this.updatePurchaseOrder())}decreaseMonths(){this.productPrice?.min_subscription_duration_months&&(this.subscriptionMonths<=this.productPrice.min_subscription_duration_months||(this.subscriptionMonths-=this.productPrice.min_subscription_duration_months,this.discountCodeApplied?this.applyDiscountCode():this.updatePurchaseOrder()))}openLoadingDialog(){this.closeLoadingDialog(),this.dialogRef=this.dialogService.open(this.loadingDialog,{closeOnBackdropClick:!1,closeOnEsc:!1,hasScroll:!1})}closeLoadingDialog(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=void 0)}onDiscountCodeInput(t){this.discountCode=t.target.value.toUpperCase()}applyDiscountCode(){this.discountCode&&this.purchaseOrder?this.validateDiscountCode():this.toastrService.warningDialog("Please enter a valid discount code")}validateDiscountCode(t){this.discountCodesService.canBeApplied({code:this.discountCode.toUpperCase(),amount:this.purchaseOrder.price*this.quantity*this.subscriptionMonths,usersCount:1,edfegId:null,eventId:null,objectType:this.purchaseOrder.orderable_type}).pipe((0,u.Q)(this.destroy$)).subscribe({next:r=>{r?.can_be_applied?(this.discountAmount=r.discount_amount,this.discountCodeApplied=!0,this.discountType=r.discount_type,this.finalDiscountAmount=this.discountAmount,this.updatePurchaseOrder(),t&&t(!0)):(this.toastrService.errorDialog("This discount code has expired or reached its usage limit."),this.removePromoCode(),t&&t(!1))},error:r=>{this.toastrService.errorDialog(r?.error?.message||r?.error?.error||"Invalid discount code."),this.removePromoCode(),t&&t(!1)}})}removePromoCode(t=!1){this.discountCodeApplied=!1,this.discountCode="",this.discountAmount=0,this.finalDiscountAmount=0,this.discountType=void 0,this.updatePurchaseOrder(),t&&this.toastrService.successDialog("Discount code removed successfully")}updateTotalPrice(){if(null==this.purchaseOrder?.amount_to_be_paid)return;const t=this.discountCodeApplied?this.finalDiscountAmount/100:0;if(this.discountCodeApplied&&t>this.purchaseOrder.price/100*this.quantity*this.subscriptionMonths)return this.toastrService.warningDialog("Discount amount exceeds order total. Discount coupon will auto remove."),void this.removePromoCode();this.calcTotalPrice(t)}calcTotalPrice(t=0){this.purchaseOrder?.price&&(this.totalPrice=null==this.purchaseOrder.amount_to_be_paid?Math.max(0,this.purchaseOrder.price/100*this.quantity*this.subscriptionMonths-t):this.purchaseOrder.amount_to_be_paid/100)}updatePurchaseOrder(){this.purchaseOrder?.uuid&&this.purchaseOrderService.updatePurchaseOrder(this.purchaseOrder.uuid,{quantity:this.quantity,subscription_months:this.subscriptionMonths,discount_code:this.discountCode,country_code:this.billingCountryCode,state:this.isIndiaSelected&&this.contactInfoForm.get("state")?.value||""}).pipe((0,u.Q)(this.destroy$)).subscribe({next:t=>{this.purchaseOrder=t,this.updateTotalPrice()},error:()=>{this.toastrService.errorDialog("Failed to update purchase order")}})}gtmDataLayerPushEvent(t,r={}){this.gtm.dataLayerPushEvent(t,r)}celebratePurchase(){this.purchaseOrder?.orderable_type===g.ag.PRODUCT_PRICE&&this.confettiService.celebrate()}get subtotal(){return this.purchaseOrder?.price?this.purchaseOrder.price/100*this.quantity*this.subscriptionMonths:0}get discountValue(){return this.discountCodeApplied?this.finalDiscountAmount/100:0}get hasTrial(){return!!this.productPrice?.trial_enabled&&(this.productPrice?.trial_period_days||0)>0&&!this.isProratedAddon}get trialDays(){return this.productPrice?.trial_period_days||0}get isProratedAddon(){return"true"===this.purchaseOrder?.notes?.prorated_addon}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(w.nX),e.rXU(w.Ix),e.rXU(d.ok),e.rXU(h.uR),e.rXU(h.jx),e.rXU(h.a1),e.rXU(h.MS),e.rXU(h.tw),e.rXU(O.S0W),e.rXU(h.dP),e.rXU(h.AR),e.rXU(h.B2),e.rXU(h.o5),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["commudle-checkout-page"]],viewQuery:function(r,o){if(1&r&&(e.GBs(Q,7),e.GBs(J,7)),2&r){let c;e.mGM(c=e.lsd())&&(o.paymentErrorDialog=c.first),e.mGM(c=e.lsd())&&(o.loadingDialog=c.first)}},standalone:!1,decls:15,vars:6,consts:[["paymentErrorDialog",""],["loadingDialog",""],["zipInCountryRow",""],[1,"base-layout","checkout-page","medium"],[1,"container"],["class","checkout-banner",4,"ngIf"],[1,"two-column-layout","medium"],[1,"main-column"],["class","order-details-card",4,"ngIf"],["class","company-detail
1s-card",4,"ngIf"],[1,"right-column"],["class","payment-details-section",4,"ngIf"],[1,"checkout-banner"],[1,"banner-main"],[1,"banner-top-row"],[1,"banner-greeting"],[1,"wave"],[1,"banner-badge"],[3,"icon"],[4,"ngIf"],["class","banner-features",4,"ngIf"],[1,"banner-title"],[1,"banner-subtitle"],[1,"banner-eyebrow"],[1,"banner-features"],[1,"feature"],[1,"feature-icon"],[1,"feature-text"],[1,"feature-title"],[1,"feature-desc"],[1,"order-details-card"],[1,"card-title"],[1,"card-title-icon"],[3,"campaignId"],[3,"productPriceLoaded","productPriceId","withTrial"],[1,"addon-summary"],[1,"addon-hero"],[1,"addon-hero-badge"],[1,"addon-hero-text"],[1,"addon-hero-title"],[1,"addon-hero-sub"],[1,"addon-steps"],[1,"addon-step"],[1,"addon-step-text"],[1,"addon-step-title"],[1,"addon-step-desc"],[1,"company-details-card"],["class","billing-form-container",3,"formGroup",4,"ngIf"],["class","company-details",4,"ngIf"],[1,"billing-form-container",3,"formGroup"],[1,"business-fields"],[1,"form-field"],["for","name"],[1,"required"],["nbInput","","fullWidth","","id","name","formControlName","name","placeholder","Enter your full name"],["errorMessage","Full name is required",3,"error"],["for","companyName"],[1,"optional"],["nbInput","","fullWidth","","id","companyName","formControlName","companyName","placeholder","Company name for invoice"],[1,"form-row"],["for","email"],["nbInput","","fullWidth","","id","email","type","email","formControlName","email","placeholder","Enter email"],["errorMessage","Email is required",3,"error",4,"ngIf"],["errorMessage","Enter a valid email address",3,"error",4,"ngIf"],["for","phone"],["nbInput","","fullWidth","","id","phone","type","tel","formControlName","phone","placeholder","Enter phone number"],["errorMessage","Phone number is required",3,"error",4,"ngIf"],["errorMessage","Enter a valid phone number (7\u201315 digits)",3,"error",4,"ngIf"],["for","country"],[1,"native-select"],["id","country","formControlName","country"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],["errorMessage","Country is required",3,"error"],["class","form-field",4,"ngIf","ngIfElse"],["class","form-row",4,"ngIf"],["for","address"],["nbInput","","fullWidth","","id","address","formControlName","address","placeholder","Enter company or business address if purchasing for a business","rows","3"],["errorMessage","Address is required",3,"error"],["errorMessage","Email is required",3,"error"],["errorMessage","Enter a valid email address",3,"error"],["errorMessage","Phone number is required",3,"error"],["errorMessage","Enter a valid phone number (7\u201315 digits)",3,"error"],[3,"value"],["for","state"],["id","state","formControlName","state"],["errorMessage","State is required",3,"error"],["for","pinCode"],["nbInput","","fullWidth","","id","pinCode","formControlName","pinCode","placeholder","Enter zip code"],["errorMessage","Zip code is required",3,"error",4,"ngIf"],["errorMessage","Enter a valid zip code",3,"error",4,"ngIf"],["errorMessage","Zip code is required",3,"error"],["errorMessage","Enter a valid zip code",3,"error"],["nbInput","","fullWidth","","id","pinCode","formControlName","pinCode","placeholder","Enter pin code"],["errorMessage","Pin code is required",3,"error",4,"ngIf"],["errorMessage","Enter a valid 6-digit pin code",3,"error",4,"ngIf"],[1,"form-field-spacer"],["errorMessage","Pin code is required",3,"error"],["errorMessage","Enter a valid 6-digit pin code",3,"error"],[1,"business-toggle-box"],["formControlName","isGstRegistered"],[1,"toggle-label"],[1,"toggle-sub"],["class","form-field",4,"ngIf"],["for","gst"],["nbInput","","fullWidth","","id","gst","formControlName","gst","placeholder","Enter your GSTIN"],[1,"company-details"],["class","detail-row",4,"ngIf"],[1,"detail-row"],[1,"heading"],[1,"value"],[1,"payment-details-section"],[1,"summary-card"],[1,"card-title","summary-header"],[1,"currency-note"],["class","paid-message-container",4,"ngIf"],[1,"summary-body"],["class","summary-row",4,"ngIf"],["class","summary-row subtotal-row",4,"ngIf"],["class","summary-row discount-applied",4,"ngIf"],["class","summary-row tax-row",4,"ngIf"],["class","promo-code",4,"ngIf"],["class","trial-ineligible-notice",4,"ngIf"],["class","trial-option",4,"ngIf"],[1,"summary-total"],["class","trial-billing-note",4,"ngIf"],["class","cancel-note",4,"ngIf"],["class","pay-button-wrapper",4,"ngIf"],[1,"info-container"],[3,"info"],["infoContent",""],["href","mailto:[email protected]"],["href","https://www.commudle.com/policies/refund-cancellation-policy","target","_blank","rel","noopener"],[1,"paid-message-container"],[1,"message"],[1,"sub-message"],[1,"summary-row"],["class","billing-cycle-note",4,"ngIf"],[1,"billing-cycle-note"],["class","quantity-control",4,"ngIf"],["class","value",4,"ngIf"],[1,"quantity-control"],["nbButton","","ghost","","size","small","status","basic",3,"click","disabled"],[1,"quantity-value"],["nbButton","","ghost","","size","small","status","basic",3,"click"],[1,"summary-row","subtotal-row"],[1,"breakdown"],[1,"summary-row","discount-applied"],[1,"summary-row","tax-row"],[1,"promo-code"],[1,"promo-label"],[1,"promo-input-row"],["nbInput","","fullWidth","","fieldSize","small","placeholder","Enter Discount Code",3,"ngModelChange","input","ngModel","disabled"],["nbButton","","size","small","status","primary",3,"disabled","click",4,"ngIf"],["nbButton","","size","small","status","danger","outline","",3,"click",4,"ngIf"],["class","promo-success",4,"ngIf"],["nbButton","","size","small","status","primary",3,"click","disabled"],["nbButton","","size","small","status","danger","outline","",3,"click"],[1,"promo-success"],[1,"trial-ineligible-notice"],[3,"warning"],[1,"trial-option"],[1,"trial-summary"],[1,"trial-billing-note"],[1,"cancel-note"],[1,"pay-button-wrapper"],["nbButton","","status","primary","fullWidth","","size","large",1,"com-mt-3",3,"click","disabled"],["nbButton","","status","primary","fullWidth","","size","large",3,"click","disabled"],[1,"trust-footer"],[1,"trust-footer-item"],[1,"dot"],[1,"payment-error-dialog"],[1,"exclamation-container"],[1,"primary-text"],[1,"reload-button",3,"click"],[1,"secondary-text"]],template:function(r,o){1&r&&(e.j41(0,"div",3)(1,"div",4),e.DNE(2,te,15,8,"com-card",5),e.j41(3,"div",6)(4,"div",7),e.DNE(5,ne,9,3,"com-card",8)(6,re,8,3,"com-card",8)(7,oe,38,7,"com-card",8)(8,Re,9,3,"com-card",9),e.k0s(),e.j41(9,"div",10),e.DNE(10,ot,40,21,"div",11),e.k0s()()()(),e.DNE(11,it,12,2,"ng-template",null,0,e.C5r)(13,at,1,0,"ng-template",null,1,e.C5r)),2&r&&(e.R7$(2),e.Y8G("ngIf",o.purchaseOrder),e.R7$(3),e.Y8G("ngIf",(null==o.purchaseOrder?null:o.purchaseOrder.orderable_type)===o.EDbModels.WALLET),e.R7$(),e.Y8G("ngIf",(null==o.purchaseOrder?null:o.purchaseOrder.orderable_type)===o.EDbModels.PRODUCT_PRICE&&!o.isProratedAddon),e.R7$(),e.Y8G("ngIf",(null==o.purchaseOrder?null:o.purchaseOrder.orderable_type)===o.EDbModels.PRODUCT_PRICE&&o.isProratedAddon),e.R7$(),e.Y8G("ngIf",(null==o.purchaseOrder?null:o.purchaseOrder.orderable_type)===o.EDbModels.PRODUCT_PRICE),e.R7$(2),e.Y8G("ngIf",o.purchaseOrder))},dependencies:[C.Sq,C.bT,I.aY,E.N,l.C,b.c,s,B,d.xH,d.y7,d.me,d.wz,d.BC,d.cb,d.vS,q.v,V.W,W.H,O.YP2,O.i6h,d.j4,d.JD,O.DMy,C.PV,C.oe],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.checkout-page[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1.5rem}.checkout-banner[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;background-color:var(--color-white);padding:1.25rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
1--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.checkout-banner[_ngcontent-%COMP%]{padding:1.5rem}}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-top-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-top-row[_ngcontent-%COMP%]   .banner-greeting[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-gray-500)}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-top-row[_ngcontent-%COMP%]   .banner-greeting[_ngcontent-%COMP%]   .wave[_ngcontent-%COMP%]{display:inline-block;transform-origin:70% 70%;animation:_ngcontent-%COMP%_waveHand 2.4s ease-in-out infinite}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;border-radius:9999px;padding:.25rem .75rem;--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-badge[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(0 214 143 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-eyebrow[_ngcontent-%COMP%]{margin:0;margin-bottom:.25rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;line-height:2rem;font-weight:700;color:var(--color-yankees-blue)}@media (min-width: 640px){.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-title[_ngcontent-%COMP%]{font-size:1.875rem;line-height:2.25rem}}.checkout-banner[_ngcontent-%COMP%]   .banner-main[_ngcontent-%COMP%]   .banner-subtitle[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:.75rem}@media (min-width: 640px){.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;border-radius:.75rem;background-color:var(--color-gray-50);padding:.75rem}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]   .feature-icon[_ngcontent-%COMP%]{display:flex;height:2.5rem;width:2.5rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:.5rem;font-size:1rem;line-height:1.5rem}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]:nth-child(1)   .feature-icon[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]:nth-child(2)   .feature-icon[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]:nth-child(3)   .feature-icon[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]   .feature-text[_ngcontent-%COMP%]{display:flex;min-width:0px;flex-direction:column}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]   .feature-text[_ngcontent-%COMP%]   .feature-title[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.checkout-banner[_ngcontent-%COMP%]   .banner-features[_ngcontent-%COMP%]   .feature[_ngcontent-%COMP%]   .feature-text[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.card-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.card-title[_ngcontent-%COMP%]   .card-title-icon[_ngcontent-%COMP%]{display:flex;height:2rem;width:2rem;align-items:center;justify-content:center;border-radius:.5rem;background-color:var(--color-gray-100);font-size:.875rem;line-height:1.25rem;color:var(--color-gray-600)}
1.order-details-card[_ngcontent-%COMP%], .company-details-card[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem;margin-bottom:1rem;overflow:hidden}.addon-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.addon-summary[_ngcontent-%COMP%]   .addon-hero[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;border-radius:1rem;padding:1rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(173 194 255 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1))}.addon-summary[_ngcontent-%COMP%]   .addon-hero[_ngcontent-%COMP%]   .addon-hero-badge[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center;height:3rem;width:3rem;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));font-size:1.125rem;line-height:1.75rem;color:var(--color-white)}.addon-summary[_ngcontent-%COMP%]   .addon-hero[_ngcontent-%COMP%]   .addon-hero-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.addon-summary[_ngcontent-%COMP%]   .addon-hero[_ngcontent-%COMP%]   .addon-hero-text[_ngcontent-%COMP%]   .addon-hero-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.addon-summary[_ngcontent-%COMP%]   .addon-hero[_ngcontent-%COMP%]   .addon-hero-text[_ngcontent-%COMP%]   .addon-hero-sub[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]   .addon-step[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]   .addon-step[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-top:.125rem;flex-shrink:0;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]   .addon-step[_ngcontent-%COMP%]   .addon-step-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]   .addon-step[_ngcontent-%COMP%]   .addon-step-text[_ngcontent-%COMP%]   .addon-step-title[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.addon-summary[_ngcontent-%COMP%]   .addon-steps[_ngcontent-%COMP%]   .addon-step[_ngcontent-%COMP%]   .addon-step-text[_ngcontent-%COMP%]   .addon-step-desc[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;line-height:1.625;color:var(--color-gray-500)}.company-details-card[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]{padding:0}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;border-radius:.75rem;padding:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50)}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]   .personal-details[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]   .personal-details[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]   .personal-details[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%], .company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]   .personal-details[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}
1.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .personal-billing[_ngcontent-%COMP%]   .verified[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(0 214 143 / var(--tw-text-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-toggle-box[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;border-radius:.75rem;padding:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-Bright-Gray-opacity-30);cursor:pointer;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-toggle-box[_ngcontent-%COMP%]:hover{--tw-border-opacity: 1;border-color:rgb(133 163 255 / var(--tw-border-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-toggle-box[_ngcontent-%COMP%]   nb-checkbox[_ngcontent-%COMP%]{margin-top:.125rem;flex-shrink:0}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-toggle-box[_ngcontent-%COMP%]   .toggle-label[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-toggle-box[_ngcontent-%COMP%]   .toggle-sub[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .business-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:1rem}@media (min-width: 640px){.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field-spacer[_ngcontent-%COMP%]{display:none}@media (min-width: 640px){.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field-spacer[_ngcontent-%COMP%]{display:block}}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .required[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 61 113 / var(--tw-text-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .native-select[_ngcontent-%COMP%]{position:relative;width:100%}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .native-select[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%;appearance:none;padding:.5rem 2.5rem .5rem 1rem;background-color:var(--color-white);font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue);border-radius:.375rem;border-width:1px;border-color:var(--color-bright-gray)}
1.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .native-select[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(51 102 255 / var(--tw-ring-opacity, 1))}.company-details-card[_ngcontent-%COMP%]   .billing-form-container[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .native-select[_ngcontent-%COMP%]:after{content:"";pointer-events:none;position:absolute;right:1rem;top:50%;height:.5rem;width:.5rem;border-width:0px;border-right-width:1px;border-bottom-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(143 155 179 / var(--tw-border-opacity, 1));transform:translateY(-65%) rotate(45deg)}.company-details-card[_ngcontent-%COMP%]   .company-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}.company-details-card[_ngcontent-%COMP%]   .company-details[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;padding-top:.625rem;padding-bottom:.625rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.company-details-card[_ngcontent-%COMP%]   .company-details[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]:last-child{border-bottom-width:0px}.company-details-card[_ngcontent-%COMP%]   .company-details[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.company-details-card[_ngcontent-%COMP%]   .company-details[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{text-align:right;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]{position:sticky;top:5rem;margin-left:.5rem;margin-right:.5rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]{margin-bottom:.5rem;overflow:hidden}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]{padding:0}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .currency-note[_ngcontent-%COMP%]{margin:0;padding-left:1rem;padding-right:1rem;padding-top:.75rem;text-align:right;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .paid-message-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;padding:1.5rem 1rem;margin:1rem;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .paid-message-container[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{font-size:3rem;line-height:1;--tw-text-opacity: 1;color:rgb(0 214 143 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .paid-message-container[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;line-height:1.75rem;font-weight:600;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .paid-message-container[_ngcontent-%COMP%]   .sub-message[_ngcontent-%COMP%]{margin:0;text-align:center;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:1rem;padding-right:1rem;padding-top:1rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.625rem;padding-bottom:.625rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row.subtotal-row[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.125rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row.subtotal-row[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .breakdown[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]   .billing-cycle-note[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row.discount-applied[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row.discount-applied[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(0 214 143 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .summary-row.discount-applied[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-weight:600;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .quantity-control[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .quantity-control[_ngcontent-%COMP%]   .quantity-value[_ngcontent-%COMP%]{min-width:2rem;text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .annual-billing-callout[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem;border-radius:.5rem;padding:.625rem .75rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .annual-billing-callout[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{flex-shrink:0;font-size:.875rem;line-height:1.25rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-body[_ngcontent-%COMP%]   .annual-billing-callout[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:700}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem;padding:.75rem 1rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]   .promo-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:400;color:var(--color-gray-500)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]   .promo-label[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]   .promo-input-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]   .promo-success[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .promo-code[_ngcontent-%COMP%]   .promo-success[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(0 214 143 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-ineligible-notice[_ngcontent-%COMP%]{margin:.75rem 1rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-option[_ngcontent-%COMP%]{margin:.75rem 1rem;display:flex;align-items:center;gap:.5rem;border-radius:.5rem;padding:.5rem .75rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(173 194 255 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-option[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{flex-shrink:0;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-option[_ngcontent-%COMP%]   .trial-summary[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;line-height:1.375;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-option[_ngcontent-%COMP%]   .trial-summary[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:600}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .trial-billing-note[_ngcontent-%COMP%]{margin:0;padding-left:1rem;padding-right:1rem;padding-bottom:.5rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .cancel-note[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center;gap:.375rem;padding-left:1rem;padding-right:1rem;padding-bottom:.75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .cancel-note[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{flex-shrink:0;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-total[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-total[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .summary-total[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ng
1content-%COMP%]{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .recipient-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.025em;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .recipient-details[_ngcontent-%COMP%]{display:flex;flex-direction:column}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .recipient-details[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .recipient-details[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%], .payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .recipient-details[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .pay-button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding-left:1rem;padding-right:1rem;padding-bottom:1rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .pay-button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:.5rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .pay-button-wrapper[_ngcontent-%COMP%]   .trust-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .pay-button-wrapper[_ngcontent-%COMP%]   .trust-footer[_ngcontent-%COMP%]   .trust-footer-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem}.payment-details-section[_ngcontent-%COMP%]   .summary-card[_ngcontent-%COMP%]   .pay-button-wrapper[_ngcontent-%COMP%]   .trust-footer[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{height:.25rem;width:.25rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.payment-details-section[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem}.payment-error-dialog[_ngcontent-%COMP%]{width:24rem}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .exclamation-container[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;display:flex;justify-content:center}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .exclamation-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));padding:.25rem .5rem}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .exclamation-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;font-size:2.25rem;line-height:2.5rem;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .primary-text[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .reload-button[_ngcontent-%COMP%]{cursor:pointer;padding:.25rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .reload-button[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-right:.5rem}.payment-error-dialog[_ngcontent-%COMP%]   com-card-body[_ngcontent-%COMP%]   .secondary-text[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;font-style:italic}@keyframes _ngcontent-%COMP%_waveHand{0%,60%,to{transform:rotate(0)}10%,30%{transform:rotate(14deg)}20%{transform:rotate(-8deg)}40%{transform:rotate(-4deg)}50%{transform:rotate(10deg)}}@media (prefers-reduced-motion: reduce){.checkout-banner[_ngcontent-%COMP%]   .banner-greeting[_ngcontent-%COMP%]   .wave[_ng
1content-%COMP%]{animation:none}}']})}}return n})();const st=k.iI.forChild([{path:":purchase_order_uuid",component:G},{path:":purchase_order_uuid/complete",component:G}]);var dt=a(17366),lt=a(68142),pt=a(10049);let mt=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[C.MD,st,I.dX,lt.u_,pt.u,d.YN,dt.Hz,O.P5N,O.pty,d.X1,O.pty,O.Ad8]})}}return n})()},68513:($,x,a)=>{a.d(x,{c:()=>E});var C=a(76800),k=a(97586),e=a(23214),d=a(98434),_=a(28156),F=a(20365),g=a(16042);function h(l,b){1&l&&e.nrm(0,"app-loading-spinner")}function D(l,b){if(1&l&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&l){const p=b.$implicit;e.R7$(),e.JRh(p.text)}}function u(l,b){if(1&l&&(e.j41(0,"div",6),e.DNE(1,D,2,1,"p",10),e.k0s()),2&l){const p=e.XpG(2);e.R7$(),e.Y8G("ngForOf",p.campaign.unapproved_reasons)}}function P(l,b){if(1&l&&(e.j41(0,"li",13),e.nrm(1,"img",14),e.j41(2,"p"),e.EFF(3," Url: "),e.j41(4,"a",15),e.EFF(5),e.k0s()()()),2&l){const p=b.$implicit;e.R7$(),e.Y8G("src",p.image.url?p.image.url:"--",e.B4B)("alt",p.headline),e.R7$(3),e.Y8G("href",p.url?p.url:"--",e.B4B),e.R7$(),e.JRh(p.url?p.url:"--")}}function w(l,b){if(1&l&&(e.j41(0,"ul",11),e.DNE(1,P,6,4,"li",12),e.k0s()),2&l){const p=e.XpG(2);e.R7$(),e.Y8G("ngForOf",p.campaign.campaign_assets)}}function O(l,b){1&l&&e.EFF(0," No Assets ")}function I(l,b){if(1&l&&(e.j41(0,"div",3)(1,"h3",4),e.EFF(2,"Campaign Details"),e.k0s(),e.j41(3,"div",5)(4,"p",6)(5,"strong"),e.EFF(6,"Campaign Name:"),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",6)(9,"strong"),e.EFF(10,"Start Date:"),e.k0s(),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"p",6)(14,"strong"),e.EFF(15,"End Date:"),e.k0s(),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"p",6)(19,"strong"),e.EFF(20,"Start Time:"),e.k0s(),e.EFF(21),e.nI1(22,"date"),e.k0s(),e.j41(23,"p",6)(24,"strong"),e.EFF(25,"End Time:"),e.k0s(),e.EFF(26),e.k0s(),e.j41(27,"p",6)(28,"strong"),e.EFF(29,"Budget:"),e.k0s(),e.EFF(30),e.nI1(31,"currency"),e.k0s(),e.j41(32,"p",6)(33,"strong"),e.EFF(34,"Status: "),e.k0s(),e.j41(35,"span"),e.EFF(36),e.nI1(37,"capitalizeAndRemoveUnderscore"),e.k0s()(),e.j41(38,"p",6)(39,"strong"),e.EFF(40,"Created At:"),e.k0s(),e.EFF(41),e.nI1(42,"date"),e.k0s(),e.j41(43,"p",6)(44,"strong"),e.EFF(45,"CTA Label:"),e.k0s(),e.EFF(46),e.k0s(),e.DNE(47,u,2,1,"div",7),e.j41(48,"p",6)(49,"strong"),e.EFF(50,"Created by:"),e.k0s(),e.EFF(51),e.k0s()(),e.j41(52,"div",8)(53,"h6"),e.EFF(54,"Campaign Assets"),e.k0s(),e.DNE(55,w,2,1,"ul",9)(56,O,1,0,"ng-template",null,0,e.C5r),e.k0s()()),2&l){const p=e.sdS(57),s=e.XpG();e.R7$(7),e.SpI(" ",s.campaign.name?s.campaign.name:"--",""),e.R7$(4),e.SpI(" ",s.campaign.start_at?e.i5U(12,13,s.campaign.start_at,"longDate"):"--"," "),e.R7$(5),e.SpI(" ",s.campaign.end_at?e.i5U(17,16,s.campaign.end_at,"longDate"):"--"," "),e.R7$(5),e.SpI(" ",s.campaign.start_at?e.i5U(22,19,s.campaign.start_at,"HH:mm"):"--"," "),e.R7$(5),e.SpI(" ",s.campaign.end_at?s.moment.utc(s.campaign.end_at,"HH:mm").local().format("HH:mm"):"--"," "),e.R7$(4),e.SpI(" ",s.campaign.budget?e.i5U(31,22,s.campaign.budget,s.campaign.currency_type):"--"," "),e.R7$(6),e.JRh(s.campaign.status?e.bMT(37,25,s.campaign.status):"--"),e.R7$(5),e.SpI(" ",s.campaign.created_at?e.i5U(42,27,s.campaign.created_at,"longDate"):"--"," "),e.R7$(5),e.SpI(" ",s.campaign.cta_label?s.campaign.cta_label:"--",""),e.R7$(),e.Y8G("ngIf",(null==s.campaign.unapproved_reasons?null:s.campaign.unapproved_reasons.length)>0),e.R7$(4),e.SpI(" ",null==s.campaign.user?null:s.campaign.user.name,""),e.R7$(4),e.Y8G("ngIf",null==s.campaign.campaign_assets?null:s.campaign.campaign_assets.length)("ngIfElse",p)}}let E=(()=>{class l{constructor(p){this.campaignService=p,this.isLoading=!0,this.moment=k}ngOnInit(){this.campaignId&&this.campaignService.fetchCampaign(this.campaignId).subscribe(p=>{this.campaign=p,this.isLoading=!1})}static{this.\u0275fac=function(s){return new(s||l)(e.rXU(C.OF))}}static{this.\u0275cmp=e.VBU({type:l,selectors:[["commudle-campaign-details"]],inputs:{campaignId:"campaignId",campaign:"campaign"},standalone:!1,decls:2,vars:2,consts:[["noAssets",""],[4,"ngIf"],["class","campaign-container",4,"ngIf"],[1,"campaign-container"],[1,"title"],[1,"campaign-info"],[1,"campaign-item"],["class","campaign-item",4,"ngIf"],[1,"campaign-section"],["class","assets-list",4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"assets-list"],["class","asset-item",4,"ngFor","ngForOf"],[1,"asset-item"],[1,"asset-image",3,"src","alt"],[3,"href"]],template:function(s,R){1&s&&e.DNE(0,h,1,0,"app-loading-spinner",1)(1,I,58,30,"div",2),2&s&&(e.Y8G("ngIf",!R.campaign),e.R7$(),e.Y8G("ngIf",R.campaign))},dependencies:[d.Sq,d.bT,_.G,F.N,d.oe,d.vh,g.I],styles:[".title[_ngcontent-%COMP%]{margin:0;margin-bottom:1.25rem}.campaign-info[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.75rem;row-gap:1.5rem}.campaign-item[_ngcontent-%COMP%]{margin:0;border-radius:.375rem;background-color:var(--color-gray-50);padding:.5rem;font-size:.875rem;line-height:1.25rem}.campaign-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{appearance:none}.campaign-section[_ngcontent-%COMP%]{margin-top:1.25rem}.campaign-section[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin:0}.assets-list[_ngcontent-%COMP%]{list-style-type:none;padding:0}.asset-item[_ngcontent-%COMP%]{margin-bottom:.25rem;border-radius:.375rem;background-color:var(--color-gray-50);padding:.5rem}.asset-image[_ngcontent-%COMP%]{margin-top:.5rem;display:block;height:auto;width:100%;max-width:13rem;border-radius:.375rem}"]})}}return l})()}}]);

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.