PageSourceSearch

https://learn.americanai.org/chunk-4RCU5FMU.js

js americanai.org collected 2026-10-05 22:57:21 UTC 41,694 bytes, 1 lines download raw bytes

1import{a as be,b as fe}from"./chunk-AAU36XJF.js";import{a as Ce}from"./chunk-B5RTZSTB.js";import{a as ge}from"./chunk-2LNXN3ND.js";import{b as ue}from"./chunk-BUNR6PC6.js";import{a as _e}from"./chunk-BEMKPBTZ.js";import{a as me,f as pe}from"./chunk-J4OYH7H6.js";import{c as oe,g as re,h as ae,i as le,j as de,k as se,t as ce}from"./chunk-EAQ5LFAL.js";import{a as ie}from"./chunk-4NXOW3EY.js";import"./chunk-WPCBDL5J.js";import"./chunk-CCETXN2X.js";import"./chunk-JGIRMNBY.js";import{a as f}from"./chunk-JN4DMXBZ.js";import{a as ne}from"./chunk-FQBLPB57.js";import{h as te}from"./chunk-HXNDRLAU.js";import"./chunk-623CW2JR.js";import"./chunk-HPOPUXXC.js";import{A as H,Cb as x,Ea as K,Eb as X,Ib as u,Kb as P,Lb as k,Mb as o,Nb as n,O as v,Ob as m,Sb as w,Vb as p,X as U,Xb as c,cb as W,ec as l,fa as G,fc as C,fd as J,gb as V,gc as h,hc as D,ia as E,ib as d,ic as Y,jc as y,kc as S,lc as M,ld as Q,ma as q,md as ee,nc as Z,pc as j,uc as B,vc as I,xa as g,ya as b,zb as _}from"./chunk-Y2QVL34R.js";import{a as A,i as N}from"./chunk-2AVGQ2MQ.js";var ve="https://js.stripe.com/v3",ke=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,he="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Te=function(){for(var t=document.querySelectorAll('script[src^="'.concat(ve,'"]')),e=0;e<t.length;e++){var i=t[e];if(ke.test(i.src))return i}return null},xe=function(t){var e=t&&!t.advancedFraudSignals?"?advancedFraudSignals=false":"",i=document.createElement("script");i.src="".concat(ve).concat(e);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(i),i},Be=function(t,e){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"2.4.0",startTime:e})},O=null,F=null,R=null,Ie=function(t){return function(){t(new Error("Failed to load Stripe.js"))}},Oe=function(t,e){return function(){window.Stripe?t(window.Stripe):e(new Error("Stripe.js not available"))}},Le=function(t){return O!==null?O:(O=new Promise(function(e,i){if(typeof window>"u"||typeof document>"u"){e(null);return}if(window.Stripe&&t&&console.warn(he),window.Stripe){e(window.Stripe);return}try{var a=Te();if(a&&t)console.warn(he);else if(!a)a=xe(t);else if(a&&R!==null&&F!==null){var s;a.removeEventListener("load",R),a.removeEventListener("error",F),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(t)}R=Oe(e,i),F=Ie(i),a.addEventListener("load",R),a.addEventListener("error",F)}catch(T){i(T);return}}),O.catch(function(e){return O=null,Promise.reject(e)}))},Ve=function(t,e,i){if(t===null)return null;var a=t.apply(void 0,e);return Be(a,i),a},L,ye=!1,Se=function(){return L||(L=Le(null).catch(function(t){return L=null,Promise.reject(t)}),L)};Promise.resolve().then(function(){return Se()}).catch(function(r){ye||console.warn(r)});var Me=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];ye=!0;var a=Date.now();return Se().then(function(s){return Ve(s,e,a)})};var we=new G("STRIPE_LOADER",{providedIn:"root",factory:()=>()=>Me(ie.stripeKey)});var z=(r,t)=>t.id,Pe=(r,t)=>t.iso2,De=(r,t)=>t.subscription_id,Fe=(r,t)=>t.name,Re=r=>({bordered:r}),Ae=r=>({"col-md-12 text-center":r});function Ne(r,t){r&1&&(o(0,"div",5),m(1,"img",62),n())}function We(r,t){r&1&&(o(0,"div",68)(1,"div",91),m(2,"i",92),o(3,"p",93),l(4,"No active memberships found"),n()()())}function je(r,t){if(r&1&&(o(0,"span",101),l(1),n()),r&2){let e=c().$implicit;d(),h("Trial: ",e.trial_days_remaining,"d left")}}function $e(r,t){if(r&1&&l(0),r&2){let e=c(2).$implicit;h(" \xB7 ",e.discount.percent_off,"% off ")}}function ze(r,t){if(r&1&&(o(0,"div",107)(1,"div",111),m(2,"i",112),o(3,"span",113),l(4,"Coupon Applied"),n()(),o(5,"div",114),l(6),_(7,$e,1,1),n()()),r&2){let e=c().$implicit;d(6),h(" ",e.discount.coupon_code||e.discount.code," "),d(),u(e.discount.percent_off?7:-1)}}function He(r,t){if(r&1&&(o(0,"div",108),m(1,"i",115),l(2),B(3,"date"),n()),r&2){let e=c().$implicit;d(2),h(" Cancels on ",I(3,1,e.current_period_end)," ")}}function Ue(r,t){if(r&1){let e=w();o(0,"div",109)(1,"button",116),p("click",function(){g(e);let a=c().$implicit,s=c(2);return b(s.manageSubscription(a))}),l(2," Manage Plan "),n(),o(3,"div",117)(4,"button",118),p("click",function(a){g(e);let s=c().$implicit,T=c(2);return a.stopPropagation(),b(T.toggleMenu(s.subscription_id))}),m(5,"i",119),n(),o(6,"ul",120)(7,"li")(8,"a",121),p("click",function(){g(e);let a=c().$implicit,s=c(2);return b(s.toggleCoupon(a))}),m(9,"i",122),l(10,"Redeem Coupon "),n()(),m(11,"li",123),o(12,"li")(13,"a",124),p("click",function(){g(e);let a=c().$implicit,s=c(2);return b(s.openCancelModal(a))}),m(14,"i",125),l(15,"Cancel Membership "),n()()()()()}if(r&2){let e=c().$implicit,i=c(2);d(3),X("open",i.openMenuId===e.subscription_id)}}function Ge(r,t){r&1&&m(0,"img",34)}function qe(r,t){if(r&1){let e=w();o(0,"div",110)(1,"div",126)(2,"input",127),M("ngModelChange",function(a){g(e);let s=c().$implicit,T=c(2);return S(T.couponCodes[s.subscription_id],a)||(T.couponCodes[s.subscription_id]=a),b(a)}),n(),o(3,"button",53),p("click",function(){g(e);let a=c().$implicit,s=c(2);return b(s.applyCoupon(a))}),l(4," Apply "),_(5,Ge,1,0,"img",34),n(),o(6,"button",56),p("click",function(){g(e);let a=c().$implicit,s=c(2);return b(s.toggleCoupon(a))}),l(7,"Cancel"),n()()()}if(r&2){let e=c().$implicit,i=c(2);d(2),y("ngModel",i.couponCodes[e.subscription_id]),d(),x("disabled",i.couponLoading),d(2),u(i.couponLoading?5:-1)}}function Ke(r,t){if(r&1&&(o(0,"div",69)(1,"div",94)(2,"div",95)(3,"div",96),m(4,"img",97),n(),o(5,"div")(6,"h5",73),l(7),n(),o(8,"div",98)(9,"span",99),l(10),B(11,"titlecase"),n(),o(12,"span",100),l(13),n(),_(14,je,2,1,"span",101),n()()(),o(15,"div",102)(16,"div",103)(17,"span",104),l(18,"Next billing date"),n(),o(19,"span",105),l(20),B(21,"date"),n()(),o(22,"div",103)(23,"span",104),l(24,"Amount"),n(),o(25,"span",106),l(26),n()(),_(27,ze,8,2,"div",107)(28,He,4,3,"div",108),n(),_(29,Ue,16,2,"div",109)(30,qe,8,3,"div",110),n()()),r&2){let e=t.$implicit,i=c(2);d(4),x("src",(e.product==null?null:e.product.cover_image)||"assets/images/courses/course-1.jpg",W),d(3),h("",e.product==null?null:e.product.title," Membership"),d(3),C(I(11,11,e.status)),d(3),h(" ",(e.price==null||e.price.recurring==null?null:e.price.recurring.interval)==="year"?"Annual":"Monthly"," "),d(),u(e.trial&&e.trial_days_remaining>0?14:-1),d(6),C(I(21,13,e.current_period_end)),d(6),C(i.formatCurrency(e.price==null?null:e.price.unit_amount)),d(),u(e.discount?27:-1),d(),u(e.cancel_at_period_end?28:-1),d(),u(e.cancel_at_period_end?-1:29),d(),u(i.couponExpanded[e.subscription_id]?30:-1)}}function Xe(r,t){if(r&1&&(o(0,"div",76)(1,"div",128),m(2,"i",129),n(),o(3,"div",130)(4,"p",131),l(5),n(),o(6,"p",132),l(7),n()(),o(8,"span",133),l(9,"Default"),n()()),r&2){let e=c(2);d(5),D("",e.defaultCard.brand," ending in ",e.defaultCard.card_number,""),d(2),D("Expires ",e.defaultCard.exp_month,"/",e.defaultCard.exp_year,"")}}function Ye(r,t){r&1&&(o(0,"p",65),l(1,"No payment method on file."),n())}function Ze(r,t){if(r&1&&(o(0,"p",83),l(1),n()),r&2){let e=c(2);d(),C(e.billingInformation.street_address)}}function Je(r,t){if(r&1&&l(0),r&2){let e=c(2).$implicit;h(" \xB7 ",e.discount_percent,"% off ")}}function Qe(r,t){if(r&1&&(o(0,"div",114),l(1),_(2,Je,1,1),n()),r&2){let e=c().$implicit;d(),h(" ",e.coupon_code," "),d(),u(e.discount_percent?2:-1)}}function et(r,t){if(r&1){let e=w();o(0,"tr")(1,"td",134),l(2),n(),o(3,"td"),l(4),_(5,Qe,3,2,"div",114),n(),o(6,"td",106),l(7),n(),o(8,"td",135)(9,"button",136),p("click",function(){let a=g(e).$implicit,s=c(2);return b(s.downloadReceipt(a))}),m(10,"i",137),n(),o(11,"button",138),p("click",function(){let a=g(e).$implicit,s=c(2);return b(s.emailReceipt(a))}),m(12,"i",139),n()()()}if(r&2){let e=t.$implicit,i=c(2);
1d(2),C(e.date),d(2),h(" ",e.description," "),d(),u(e.coupon_code?5:-1),d(2),C(i.formatCurrency(e.amount)),d(2),x("disabled",!e.receipt_available||i.receiptActionId===e.id),d(2),x("disabled",!e.receipt_available||i.receiptActionId===e.id)}}function tt(r,t){r&1&&(o(0,"tr")(1,"td",140),l(2,"No transactions yet"),n()())}function it(r,t){if(r&1){let e=w();o(0,"div",63)(1,"div")(2,"h3",64),l(3,"Billing & Subscriptions"),n(),o(4,"p",65),l(5,"Manage your professional society memberships and billing preferences."),n()(),o(6,"button",66),p("click",function(){g(e);let a=c();return b(a.openTransactionHistory())}),l(7," View History Archive "),n()(),o(8,"div",67),_(9,We,5,0,"div",68),P(10,Ke,31,15,"div",69,De),n(),o(12,"div",13)(13,"div",70)(14,"div",71)(15,"div",72)(16,"div")(17,"h5",73),l(18,"Default Payment Method"),n(),o(19,"p",74),m(20,"i",75),l(21," Secured by Stripe"),n()(),o(22,"button",66),p("click",function(){g(e);let a=c();return b(a.openManageCards())}),l(23,"Manage"),n()(),_(24,Xe,10,4,"div",76)(25,Ye,2,0,"p",65),o(26,"button",77),p("click",function(){g(e);let a=c();return b(a.openManageCards())}),m(27,"i",78),l(28," Add Backup Card "),n()(),o(29,"div",79)(30,"div",72)(31,"h5",80),l(32,"Billing Information"),n(),o(33,"button",66),p("click",function(){g(e);let a=c();return b(a.openEditProfile())}),l(34,"Edit"),n()(),o(35,"div",81)(36,"p",82),l(37),n(),_(38,Ze,2,1,"p",83),o(39,"p",83),l(40),n(),o(41,"p",83),l(42),n(),o(43,"p",84),l(44),n()()()(),o(45,"div",70)(46,"div",85)(47,"div",86)(48,"h5",80),l(49,"Recent Activity"),n()(),o(50,"div",87)(51,"table",88)(52,"thead")(53,"tr")(54,"th"),l(55,"Date"),n(),o(56,"th"),l(57,"Description"),n(),o(58,"th"),l(59,"Amount"),n(),o(60,"th",89),l(61,"Action"),n()()(),o(62,"tbody"),P(63,et,13,6,"tr",null,z),_(65,tt,3,0,"tr"),n()()(),o(66,"button",90),p("click",function(){g(e);let a=c();return b(a.openTransactionHistory())}),l(67," See All Transactions "),n()()()()}if(r&2){let e=c();d(9),u(e.subscriptions.length===0?9:-1),d(),k(e.subscriptions),d(14),u(e.defaultCard?24:25),d(13),C(e.billingInformation.name),d(),u(e.billingInformation.street_address?38:-1),d(2),Y("",e.billingInformation.city,", ",e.billingInformation.state," ",e.billingInformation.zip,""),d(2),C(e.billingInformation.country),d(2),h("VAT ID: ",e.billingInformation.vat_id||"Not provided",""),d(19),k(e.recentTransactions),d(2),u(e.recentTransactions.length===0?65:-1)}}function nt(r,t){if(r&1){let e=w();o(0,"div",144)(1,"i",147),p("click",function(){g(e);let a=c().$implicit,s=c();return b(s.updateCard(a.id))}),n()()}}function ot(r,t){if(r&1){let e=w();o(0,"div",16)(1,"div",141)(2,"a",142),m(3,"img",143),n()(),o(4,"div",28)(5,"p"),l(6),n()(),o(7,"div",28)(8,"p"),l(9),n()(),o(10,"div",28)(11,"p"),l(12),n()(),o(13,"div",13),_(14,nt,2,0,"div",144),o(15,"div",145)(16,"i",146),p("click",function(){let a=g(e).$implicit,s=c();return b(s.toggleDeleteModal(a.id,"show"))}),n()()()()}if(r&2){let e=t.$implicit,i=c();x("ngClass",j(8,Re,e.primary)),d(3),x("src",i.brandIcon(e.brand),W),d(3),C(e.holder_name),d(3),h("**** **** **** **** ",e.card_number,""),d(3),D("",e.exp_month,"/",e.exp_year,""),d(2),u(e.primary?-1:14),d(),x("ngClass",j(10,Ae,e.primary))}}function rt(r,t){r&1&&m(0,"img",34)}function at(r,t){r&1&&m(0,"img",34)}function lt(r,t){if(r&1&&(o(0,"ng-option",49),l(1),n()),r&2){let e=t.$implicit;x("value",e.name),d(),C(e.name)}}function dt(r,t){if(r&1&&(o(0,"ng-option",49),l(1),n()),r&2){let e=t.$implicit;x("value",e.name),d(),C(e.name)}}function st(r,t){if(r&1){let e=w();o(0,"div",50)(1,"mat-label"),l(2,"State"),n(),o(3,"ng-select",148),M("ngModelChange",function(a){g(e);let s=c();return S(s.editProfile.state,a)||(s.editProfile.state=a),b(a)}),p("change",function(){g(e);let a=c();return b(a.setFormControlValue("state",a.editProfile.state))}),P(4,dt,2,2,"ng-option",49,Pe),n()()}if(r&2){let e=c();d(3),y("ngModel",e.editProfile.state),d(),k(e.statesList)}}function ct(r,t){if(r&1&&(o(0,"ng-option",49),l(1),n()),r&2){let e=t.$implicit;x("value",e.name),d(),C(e.name)}}function mt(r,t){if(r&1){let e=w();o(0,"div",50)(1,"mat-label"),l(2,"City"),n(),o(3,"ng-select",149),M("ngModelChange",function(a){g(e);let s=c();return S(s.editProfile.city,a)||(s.editProfile.city=a),b(a)}),P(4,ct,2,2,"ng-option",49,Fe),n()()}if(r&2){let e=c();d(3),y("ngModel",e.editProfile.city),d(),k(e.citiesList)}}function pt(r,t){r&1&&m(0,"img",34)}function ut(r,t){if(r&1&&(o(0,"p",55),l(1),B(2,"date"),n()),r&2){let e=c();d(),h(" Your current billing period runs through ",I(2,1,e.cancelTarget.current_period_end),". ")}}function _t(r,t){r&1&&m(0,"img",34)}function gt(r,t){r&1&&(o(0,"div",60),m(1,"img",150),n())}function bt(r,t){if(r&1&&l(0),r&2){let e=c(2).$implicit;h(" \xB7 ",e.discount_percent,"% off ")}}function ft(r,t){if(r&1&&(o(0,"div",114),l(1),_(2,bt,1,1),n()),r&2){let e=c().$implicit;d(),h(" ",e.coupon_code," "),d(),u(e.discount_percent?2:-1)}}function Ct(r,t){if(r&1){let e=w();o(0,"tr")(1,"td",134),l(2),n(),o(3,"td"),l(4),_(5,ft,3,2,"div",114),n(),o(6,"td",106),l(7),n(),o(8,"td",135)(9,"button",136),p("click",function(){let a=g(e).$implicit,s=c(2);return b(s.downloadReceipt(a))}),m(10,"i",137),n(),o(11,"button",138),p("click",function(){let a=g(e).$implicit,s=c(2);return b(s.emailReceipt(a))}),m(12,"i",139),n()()()}if(r&2){let e=t.$implicit,i=c(2);
1d(2),C(e.date),d(2),h(" ",e.description," "),d(),u(e.coupon_code?5:-1),d(2),C(i.formatCurrency(e.amount)),d(2),x("disabled",!e.receipt_available||i.receiptActionId===e.id),d(2),x("disabled",!e.receipt_available||i.receiptActionId===e.id)}}function ht(r,t){r&1&&(o(0,"tr")(1,"td",140),l(2,"No transactions found"),n()())}function xt(r,t){if(r&1&&(o(0,"div",61)(1,"table",88)(2,"thead")(3,"tr")(4,"th"),l(5,"Date"),n(),o(6,"th"),l(7,"Description"),n(),o(8,"th"),l(9,"Amount"),n(),o(10,"th",89),l(11,"Action"),n()()(),o(12,"tbody"),P(13,Ct,13,6,"tr",null,z),_(15,ht,3,0,"tr"),n()()()),r&2){let e=c();d(13),k(e.allTransactions),d(2),u(e.allTransactions.length===0?15:-1)}}var Ee=class r{router=E(te);toastr=E(ne);_userDataService=E(ge);_sharedCountryService=E(_e);_tiersService=E(Ce);stripeLoader=E(we);destroyRef=E(K);constructor(){this.destroyRef.onDestroy(()=>this.destroyCardElement())}pageLoading=!0;billingInformation={};paymentMethods=[];subscriptions=[];recentTransactions=[];get defaultCard(){return this.paymentMethods.find(t=>t.primary)}stripe;elements;card;cardholderName="";cardId;cardLoading=!1;openMenuId=null;couponExpanded={};couponCodes={};couponLoading=!1;cancelTarget=null;cancelLoading=!1;editProfile={};profileLoading=!1;countryList=[];statesList=[];citiesList=[];countryObj;allTransactions=[];transactionsLoaded=!1;transactionsLoading=!1;receiptActionId=null;ngOnInit(){this.loadInitialData(),this.loadCountries()}onDocumentClick(t){t.target.closest(".dropdown-wrap")||(this.openMenuId=null)}onBsModalShown(t){t.target?.id==="addCard"&&this.mountCardElement()}onBsModalHidden(t){t.target?.id==="addCard"&&this.destroyCardElement()}loadInitialData(){this.pageLoading=!0,H({settings:this._userDataService.getBillingSettings(),subs:this._userDataService.getUserSubscriptions()}).pipe(f(this.destroyRef),v(()=>{this.pageLoading=!1})).subscribe({next:t=>{let e=t.settings?.data||{};this.billingInformation=e.billing_information||{},this.paymentMethods=e.payment_methods||[],this.recentTransactions=e.recent_transactions||[],this.subscriptions=t.subs?.data||[]},error:()=>{}})}refreshSubscriptions(){this._userDataService.getUserSubscriptions().pipe(f(this.destroyRef)).subscribe({next:t=>{this.subscriptions=t.data||[]},error:()=>{}})}refreshCards(){this._userDataService.getCard().pipe(f(this.destroyRef)).subscribe({next:t=>{this.paymentMethods=t.data||[]},error:()=>{}})}toggleMenu(t){this.openMenuId=this.openMenuId===t?null:t}ensureStripeLoaded(){return N(this,null,function*(){return this.stripe&&this.elements?!0:(this.stripe=yield this.stripeLoader(),this.stripe?(this.elements=this.stripe.elements(),!0):!1)})}mountCardElement(){return N(this,null,function*(){if(!(yield this.ensureStripeLoaded())){this.toastr.error("Unable to load the payment form. Please try again.");return}this.destroyCardElement(),this.card=this.elements.create("card"),this.card.mount("#card-element")})}destroyCardElement(){this.card&&(this.card.destroy(),this.card=void 0)}static BRAND_ICONS={visa:"visacard.png",mastercard:"mastercard.png",unionpay:"unionpay.png",jcb:"jcb.png",discover:"discover.png"};brandIcon(t){let e=(t??"").toLowerCase().replace(/[\s_-]/g,"");return`assets/images/courses/${r.BRAND_ICONS[e]??"unknown.png"}`}formatCurrency(t){let e=Number(t)||0;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)}openManageCards(){this.refreshCards(),$("#manageCardsModal").modal("show")}toggleModal(t){t==="hide"?($("#addCard").modal("hide"),$("#manageCardsModal").modal("show")):($("#manageCardsModal").modal("hide"),$("#addCard").modal("show"))}toggleDeleteModal(t,e){let i=this.paymentMethods.findIndex(a=>a.id===t);if(i!==-1&&this.paymentMethods[i].primary){this.toastr.info("Cannot delete Primary Card");return}t&&(this.cardId=t),e==="show"?($("#manageCardsModal").modal("hide"),$("#deleteCard").modal("show")):($("#deleteCard").modal("hide"),$("#manageCardsModal").modal("show"))}createToken(){if(!this.stripe||!this.card){this.toastr.error("Payment form is still loading. Please try again in a moment.");return}this.cardLoading=!0,this.stripe.createToken(this.card,{name:this.cardholderName}).then(t=>{t.error?(this.toastr.error("Please Enter Correct info"),this.cardLoading=!1):this.sendToApi(t)}).catch(()=>{this.cardLoading=!1,this.toastr.error("Something went wrong. Please try again.")})}sendToApi(t){let e={token_obj:t.token};this._userDataService.addCard(e).pipe(f(this.destroyRef),v(()=>{this.cardLoading=!1})).subscribe({next:()=>{this.toastr.success("Information Saved Successfully"),this.toggleModal("hide"),this.resetCardForm(),this.refreshCards()},error:()=>{}})}resetCardForm(){this.cardholderName="";let t=document.getElementById("card-errors");t&&(t.textContent="")}deleteCard(){this.cardLoading=!0;let t={card_id:this.cardId,delete:!0};this._userDataService.updateCard(t).pipe(f(this.destroyRef),v(()=>{this.cardLoading=!1})).subscribe({next:()=>{this.toastr.success("Card Deleted Successfully"),this.paymentMethods.splice(this.paymentMethods.findIndex(e=>e.id===this.cardId),1),this.toggleDeleteModal(0,"hide")},error:()=>{}})}updateCard(t){let e={card_id:t,primary:!0};this._userDataService.updateCard(e).pipe(f(this.destroyRef)).subscribe({next:()=>{this.toastr.success("Card Updated Successfully"),this.setCardPrimary(t)},error:()=>{}})}setCardPrimary(t){let e=this.paymentMethods.findIndex(i=>i.id===t);e!==-1&&(this.paymentMethods[e].primary=!0),this.paymentMethods.forEach((i,a)=>{a!==e&&(i.primary=!1)})}loadCountries(){this._sharedCountryService.getAllCountryList().pipe(f(this.destroyRef)).subscribe({next:t=>{this.excludeCountries(t)},error:()=>{}})}excludeCountries(t){let e=["North Korea","Iran","Cuba","Syria","Crimea","Sudan","Belarus","Venezuela","Israel"];this.countryList=t.filter(i=>!e.includes(i.name))}openEditProfile(){this.profileLoading=!0,this._userDataService.getUserProfile().pipe(f(this.destroyRef),v(()=>{this.profileLoading=!1})).subscribe({next:t=>{this.editProfile=t.data||{},this.editProfile.country&&this.setFormControlValue("country",this.editProfile.country),$("#editBillingInfo").modal("show")},error:()=>{}})}
1setFormControlValue(t,e){switch(t){case"country":{let i=this.countryList.find(a=>a.name===e);i&&(this.countryObj=i,this._sharedCountryService.getAllStatesByCountries(i.iso2).pipe(f(this.destroyRef)).subscribe({next:a=>{this.statesList=a,this.editProfile.state&&this.setFormControlValue("state",this.editProfile.state)},error:()=>{}}));break}case"state":{let i=this.statesList.find(a=>a.name===e);i&&this.countryObj&&this._sharedCountryService.getAllCitiesByState(this.countryObj.iso2,i.iso2).pipe(f(this.destroyRef)).subscribe({next:a=>{this.citiesList=a},error:()=>{}});break}default:break}}saveProfile(){this.profileLoading=!0,this._userDataService.updateUserProfile(this.editProfile).pipe(f(this.destroyRef),v(()=>{this.profileLoading=!1})).subscribe({next:t=>{this.toastr.success("Billing Information Updated"),this.billingInformation=t?.data??A(A({},this.billingInformation),this.editProfile),$("#editBillingInfo").modal("hide")},error:()=>{}})}manageSubscription(t){this.router.navigate(["/societies",t.product.id,"pricing"])}toggleCoupon(t){this.openMenuId=null,this.couponExpanded[t.subscription_id]=!this.couponExpanded[t.subscription_id]}applyCoupon(t){let e=this.couponCodes[t.subscription_id];if(!e){this.toastr.info("Please enter a coupon code");return}this.couponLoading=!0,this._tiersService.applyCoupon({society_id:t.product.id,coupon_code:e}).pipe(f(this.destroyRef),v(()=>{this.couponLoading=!1})).subscribe({next:()=>{this.toastr.success("Coupon applied successfully"),this.couponCodes[t.subscription_id]="",this.couponExpanded[t.subscription_id]=!1,this.refreshSubscriptions()},error:()=>{}})}openCancelModal(t){this.openMenuId=null,this.cancelTarget=t,$("#cancelMembershipModal").modal("show")}closeCancelModal(){$("#cancelMembershipModal").modal("hide")}confirmCancelMembership(){let t=this.cancelTarget;if(!t)return;this.cancelLoading=!0;let e={society_id:t.product.id,tier_id:t.tier_id,stripe_subscription_id:t.subscription_id};this._tiersService.cancelSubscription(e).pipe(U(()=>this._userDataService.getUserSubscriptions()),f(this.destroyRef),v(()=>{this.cancelLoading=!1})).subscribe({next:i=>{this.subscriptions=i.data||[];let a=this.subscriptions.find(s=>s.subscription_id===t.subscription_id);a?.cancel_at_period_end&&a?.current_period_end?this.toastr.success(`Membership cancelled. Access continues until ${new Date(a.current_period_end).toLocaleDateString()}.`):this.toastr.success("Membership cancelled."),this.closeCancelModal()},error:()=>{}})}openTransactionHistory(){$("#transactionHistoryModal").modal("show"),this.transactionsLoaded||(this.transactionsLoading=!0,this._userDataService.getTransactions().pipe(f(this.destroyRef),v(()=>{this.transactionsLoading=!1})).subscribe({next:t=>{this.allTransactions=t.data||[],this.transactionsLoaded=!0},error:()=>{}}))}extractReceiptUrl(t){let e=t?.data;return e?typeof e=="string"?e:e.url||e.receipt_url||null:null}downloadReceipt(t){t.receipt_available&&(this.receiptActionId=t.id,this._userDataService.downloadReceipt(t.id).pipe(f(this.destroyRef),v(()=>{this.receiptActionId=null})).subscribe({next:e=>{let i=this.extractReceiptUrl(e);i?window.open(i,"_blank"):this.toastr.success(e?.message==="success"?"Receipt ready":e?.message||"Receipt ready")},error:()=>{}}))}emailReceipt(t){t.receipt_available&&(this.receiptActionId=t.id,this._userDataService.emailReceipt(t.id).pipe(f(this.destroyRef),v(()=>{this.receiptActionId=null})).subscribe({next:e=>{this.toastr.success(e?.message==="success"?"Receipt emailed successfully":e?.message||"Receipt emailed successfully")},error:()=>{}}))}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=q({type:r,selectors:[["app-billing-subscriptions"]],hostBindings:function(e,i){e&1&&p("click",function(s){return i.onDocumentClick(s)},!1,V)("shown.bs.modal",function(s){return i.onBsModalShown(s)},!1,V)("hidden.bs.modal",function(s){return i.onBsModalHidden(s)},!1,V)},standalone:!0,features:[Z],decls:152,vars:21,consts:[[1,"db-main-content-area"],[1,"container-fluid","cstm-padding"],[1,"user-area","pb120","pt-50"],[1,"container"],[1,"billing-content"],[1,"spinner","text-center","pt-5"],["id","manageCardsModal",1,"modal","fade","modal
1-lg"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header","modal-header-custom"],[1,"modal-title","modal-title-custom"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"row"],[1,"col-md-4","m-2","card","d-flex","align-items-center","justify-content-center","card-link",3,"click"],[1,"ri-add-box-line","card-container"],[1,"col-md-4","m-2","card",3,"ngClass"],["id","addCard",1,"modal","fade","modal-lg"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],[1,"container-fluid","cstm-padding-modal"],[1,"user-area"],[1,"user-form-content"],[1,"row","user-form"],[1,"w-100"],["matInput","","type","text","placeholder","Name",3,"ngModelChange","ngModel"],["action","/charge","method","post","id","payment-form",1,"user-form"],[1,"form-group"],["id","card-element",1,"user-form-content"],[1,"row","text-center"],[1,"image"],["src","assets/images/courses/stripe.png","alt","Image","width","500px","height","200px"],[1,"modal-footer"],[1,"col-lg-12"],["type","submit",1,"btn","billing-btn-primary","m-2",3,"click"],["src","assets/images/spinner-white.svg","alt","Image",1,"custom-spinner-height"],["id","deleteCard",1,"modal","fade","modal-md"],[1,"modal-dialog","modal
1-dialog-centered"],[1,"col-lg-6"],["type","button",1,"btn","billing-btn-primary","ms-2","me-2",3,"click"],["type","button",1,"btn","billing-btn-outline","ms-2","me-2",3,"click"],["id","editBillingInfo",1,"modal","fade","modal-lg"],[1,"col-lg-6","col-sm-6"],["matInput","","placeholder","Name","type","text",3,"ngModelChange","ngModel"],["matInput","","placeholder","Email","type","email",3,"ngModelChange","ngModel"],["matInput","","placeholder","VAT ID","type","text",3,"ngModelChange","ngModel"],[1,"col-lg-12","col-sm-12"],["matInput","","placeholder","Street Address","type","text",3,"ngModelChange","ngModel"],[1,"col-lg-6","col-sm-6","mb-2"],[3,"ngModelChange","change","ngModel"],[3,"value"],[1,"col-lg-3","col-sm-6","mb-2"],["matInput","","placeholder","Zip","type","text",3,"ngModelChange","ngModel"],["type","button","data-bs-dismiss","modal",1,"btn","billing-btn-outline"],["type","button",1,"btn","billing-btn-primary",3,"click","disabled"],["id","cancelMembershipModal",1,"modal","fade","modal-md"],[1,"text-muted","small"],["type","button",1,"btn","billing-btn-outline",3,"click"],["type","button",1,"btn","btn-danger",3,"click","disabled"],["id","transactionHistoryModal",1,"modal","fade","modal-xl"],[1,"modal-dialog","modal
1-dialog-scrollable"],[1,"spinner","text-center","py-4"],[1,"table-responsive"],["src","assets/images/spinner.svg","alt","Image"],[1,"d-flex","justify-content-between","align-items-start","flex-wrap","gap-3","mb-4"],[1,"cstm-h3","mb-1"],[1,"text-muted","mb-0"],["type","button",1,"btn","billing-link-btn",3,"click"],[1,"row","mb-2"],[1,"col-12"],[1,"col-md-6","mb-4"],[1,"col-lg-6","mb-4"],[1,"billing-card","mb-3"],[1,"d-flex","justify-content-between","align-items-start","mb-3"],[1,"mb-1"],[1,"small","text-muted","mb-0"],[1,"ri-lock-2-line"],[1,"payment-row"],["type","button",1,"btn","billing-link-btn","mt-3","p-0",3,"click"],[1,"ri-add-line"],[1,"billing-card"],[1,"mb-0"],[1,"small"],[1,"fw-semibold","mb-1"],[1,"mb-1","text-muted"],[1,"mt-2","fst-italic","text-muted"],[1,"billing-card","h-100","d-flex","flex-column"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"table-responsive","flex-fill"],[1,"table","billing-table"],[1,"text-end"],["type","button",1,"btn","billing-btn-outline","w-100","mt-3",3,"click"],[1,"billing-card","billing-empty-card","text-center"],[1,"ri-vip-crown-2-line"],[1,"mb-0","mt-2"],[1,"billing-card","membership-card","h-100"],[1,"d-flex","align-items-center","gap-3","mb-3"],[1,"membership-logo"],["alt","Society logo",3,"src"],[1,"d-flex","flex-wrap","gap-2"],[1,"badge-pill","badge-status"],[1,"badge-pill","badge-interval"],[1,"badge-pill","badge-trial"],[1,"membership-details"],[1,"d-flex","justify-content-between","py-1"],[1,"text-muted"],[1,"fw-semibold"],[1,"fw-bold","billing-amount"],[1,"discount-block","mt-2","pt-2"],[1,"cancel-notice","mt-2","pt-2"],[1,"d-flex","gap-2","mt-3"],[1,"coupon-inline","mt-3","pt-3"],[1,"d-flex","align-items-center","gap-1","mb-1"],[1,"ri-price-tag-3-fill"],[1,"discount-label"],[1,"small","text-muted"],[1,"ri-time-line"],["type","button",1,"btn","billing-btn-primary","flex-fill",3,"click"],[1,"dropdown-wrap"],["type","button",1,"btn","billing-btn-outline","dropdown-toggle-no-caret",3,"click"],[1,"ri-more-2-fill"],[1,"dropdown-menu-custom"],["href","javascript:void(0)",3,"click"],[1,"ri-coupon-3-line","me-2"],[1,"divider"],["href","javascript:void(0)",1,"text-danger",3,"click"],[1,"ri-close-circle-line","me-2"],[1,"d-flex","gap-2","flex-wrap"],["type","text","placeholder","Enter coupon code",1,"form-control","coupon-input",3,"ngModelChange","ngModel"],[1,"card-brand-icon"],[1,"ri-bank-card-2-line"],[1,"flex-fill"],[1,"mb-0","fw-semibold"],[1,"mb-0","small","text-muted"],[1,"badge-pill","badge-default"],[1,"text-nowrap"],[1,"text-end","text-nowrap"],["type","button","title","Download Receipt",1,"table-action-btn",3,"click","disabled"],[1,"ri-download-2-line"],["type","button","title","Email Receipt",1,"table-action-btn",3,"click","disabled"],[1,"ri-mail-line"],["colspan","4",1,"text-center","text-muted","py-4"],[1,"row","text-center","m-2","border-bottom"],[1,"image","mb-1"],["alt","Image",1,"brand-icon",3,"src"],[1,"col-md-6","text-end"],[1,"col-md-6",3,"ngClass"],["data-toggle","tooltip","data-placement","top","title","Delete Card",1,"ri-delete-bin-fill","delete-icon",3,"click"],["data-toggle","tooltip","data-placement","top","title","Make this Card Primary",1,"ri-check-line","primary","card-action",3,"click"],["placeholder","Select State",3,"ngModelChange","change","ngModel"],["placeholder","Select City",3,"ngModelChange","ngModel"],["src","assets/images/spinner.svg","alt","Image","height","80px","width","80px"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),_(5,Ne,2,0,"div",5)(6,it,68,10),n()()()()(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"h5",10),l(12,"Payment Methods"),n(),m(13,"button",11),n(),o(14,"div",12)(15,"div",13)(16,"a",14),p("click",function(){return i.toggleModal("show")}),m(17,"i",15),n(),P(18,ot,17,12,"div",16,z),n()()()()(),o(20,"div",17)(21,"div",7)(22,"div",8)(23,"div",9)(24,"h5",10),l(25,"Add Card"),n(),o(26,"button",18),p("click",function(){return i.toggleModal("hide")}),n()(),o(27,"div",12)(28,"div",0)(29,"div",19)(30,"div",20)(31,"div",21)(32,"h3"),l(33,"Add Card"),n(),o(34,"p"),l(35,"We Accept All major credit and debit cards"),n(),o(36,"div",22)(37,"mat-label"),l(38,"Full Name *"),n(),o(39,"mat-form-field",23)(40,"input",24),M("ngModelChange",function(s){return S(i.cardholderName,s)||(i.cardholderName=s),s}),n()()(),o(41,"form",25)(42,"div",26)(43,"label"),l(44,"Card Info *"),n(),m(45,"div",27),n(),o(46,"div",28)(47,"a",29),m(48,"img",30),n()()()()()()()(),o(49,"div",31)(50,"div",13)(51,"div",32)(52,"button",33),p("click",function(){return i.createToken()}),l(53," Save Card "),_(54,rt,1,0,"img",34),n()()()()()()(),o(55,"div",35)(56,"div",36)(57,"div",8)(58,"div",9)(59,"h5",10),l(60,"Delete Card"),n(),o(61,"button",18),p("click",function(){return i.toggleDeleteModal(0,"hide")}),n()(),o(62,"div",12)(63,"h5"),l(64,"Are you sure you want to delete this card?"),n()(),o(65,"div",31)(66,"div",13)(67,"div",37)(68,"button",38),p("click",function(){return i.deleteC
1ard()}),l(69," Yes "),_(70,at,1,0,"img",34),n()(),o(71,"div",37)(72,"button",39),p("click",function(){return i.toggleDeleteModal(0,"hide")}),l(73,"No"),n()()()()()()(),o(74,"div",40)(75,"div",7)(76,"div",8)(77,"div",9)(78,"h5",10),l(79,"Edit Billing Information"),n(),m(80,"button",11),n(),o(81,"div",12)(82,"div",22)(83,"div",41)(84,"mat-label"),l(85,"Name"),n(),o(86,"mat-form-field",23)(87,"input",42),M("ngModelChange",function(s){return S(i.editProfile.name,s)||(i.editProfile.name=s),s}),n()()(),o(88,"div",41)(89,"mat-label"),l(90,"Email"),n(),o(91,"mat-form-field",23)(92,"input",43),M("ngModelChange",function(s){return S(i.editProfile.email,s)||(i.editProfile.email=s),s}),n()()(),o(93,"div",41)(94,"mat-label"),l(95,"VAT ID"),n(),o(96,"mat-form-field",23)(97,"input",44),M("ngModelChange",function(s){return S(i.editProfile.vat_id,s)||(i.editProfile.vat_id=s),s}),n()()(),o(98,"div",45)(99,"mat-label"),l(100,"Street Address"),n(),o(101,"mat-form-field",23)(102,"input",46),M("ngModelChange",function(s){return S(i.editProfile.street_address,s)||(i.editProfile.street_address=s),s}),n()()(),o(103,"div",47)(104,"mat-label"),l(105,"Country"),n(),o(106,"ng-select",48),M("ngModelChange",function(s){return S(i.editProfile.country,s)||(i.editProfile.country=s),s}),p("change",function(){return i.setFormControlValue("country",i.editProfile.country)}),P(107,lt,2,2,"ng-option",49,Pe),n()(),_(109,st,6,1,"div",50)(110,mt,6,1,"div",50),o(111,"div",41)(112,"mat-label"),l(113,"Zip / Postal Code"),n(),o(114,"mat-form-field",23)(115,"input",51),M("ngModelChange",function(s){return S(i.editProfile.zip,s)||(i.editProfile.zip=s),s}),n()()()()(),o(116,"div",31)(117,"button",52),l(118,"Discard"),n(),o(119,"button",53),p("click",function(){return i.saveProfile()}),l(120," Save Changes "),_(121,pt,1,0,"img",34),n()()()()(),o(122,"div",54)(123,"div",36)(124,"div",8)(125,"div",9)(126,"h5",10),l(127,"Cancel Membership"),n(),m(128,"button",11),n(),o(129,"div",12)(130,"p"),l(131," Are you sure you want to cancel your "),o(132,"strong"),l(133),n(),l(134," membership? "),n(),_(135,ut,3,3,"p",55),n(),o(136,"div",31)(137,"button",56),p("click",function(){return i.closeCancelModal()}),l(138,"Keep Membership"),n(),o(139,"button",57),p("click",function(){return i.confirmCancelMembership()}),l(140," Cancel Membership "),_(141,_t,1,0,"img",34),n()()()()(),o(142,"div",58)(143,"div",59)(144,"div",8)(145,"div",9)(146,"h5",10),l(147,"Transaction History"),n(),m(148,"button",11),n(),o(149,"div",12),_(150,gt,2,0,"div",60)(151,xt,16,1,"div",61),n()()()()),e&2&&(d(5),u(i.pageLoading?5:-1),d(),u(i.pageLoading?-1:6),d(12),k(i.paymentMethods),d(22),y("ngModel",i.cardholderName),d(14),u(i.cardLoading?54:-1),d(16),u(i.cardLoading?70:-1),d(17),y("ngModel",i.editProfile.name),d(5),y("ngModel",i.editProfile.email),d(5),y("ngModel",i.editProfile.vat_id),d(5),y("ngModel",i.editProfile.street_address),d(4),y("ngModel",i.editProfile.country),d(),k(i.countryList),d(2),u(i.statesList.length>0?109:-1),d(),u(i.citiesList.length>0?110:-1),d(5),y("ngModel",i.editProfile.zip),d(4),x("disabled",i.profileLoading),d(2),u(i.profileLoading?121:-1),d(12),C(i.cancelTarget==null||i.cancelTarget.product==null?null:i.cancelTarget.product.title),d(2),u(i.cancelTarget!=null&&i.cancelTarget.current_period_end?135:-1),d(4),x("disabled",i.cancelLoading),d(2),u(i.cancelLoading?141:-1),d(9),u(i.transactionsLoading?150:-1),d(),u(i.transactionsLoading?-1:151))},dependencies:[ee,Q,J,me,pe,ue,ce,se,oe,re,ae,de,le,fe,be],styles:[".billing-content[_ngcontent-%COMP%]{max-width:75rem;margin:auto}.cstm-h3[_ngcontent-%COMP%]{font-weight:700}.billing-card[_ngcontent-%COMP%]{background:#fff;border:.0625rem solid #e5e7eb;border-radius:.75rem;padding:1.5rem;box-shadow:0 .0625rem .1875rem #0000000f}.billing-empty-card[_ngcontent-%COMP%]{padding:3rem 1.5rem;color:#6b7280}.billing-empty-card[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:2.5rem}.billing-amount[_ngcontent-%COMP%]{color:var(--primaryColor)}.billing-link-btn[_ngcontent-%COMP%]{color:var(--primaryColor);font-weight:600;padding:0;background:none;border:none}.billing-link-btn[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--primaryColor)}.billing-btn-primary[_ngcontent-%COMP%]{background-color:var(--primaryColor);color:#fff;border:.0625rem solid var(--primaryColor);border-radius:.5rem;padding:.625rem 1.25rem;font-weight:600;transition:opacity .2s ease}.billing-btn-primary[_ngcontent-%COMP%]:hover{opacity:.92;color:#fff}.billing-btn-primary[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.billing-btn-outline[_ngcontent-%COMP%]{background-color:#fff;color:var(--primaryColor);border:.0625rem solid #d1d5db;border-radius:.5rem;padding:.625rem 1.25rem;font-weight:600}.billing-btn-outline[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.membership-logo[_ngcontent-%COMP%]{width:3.75rem;height:3.75rem;border-radius:.5rem;background:#f3f4f6;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.membership-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain}.badge-pill[_ngcontent-%COMP%]{display:inline-block;padding:.15rem .6rem;border-radius:.25rem;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.badge-status[_ngcontent-%COMP%]{background:#d1fae5;color:#065f46}.badge-interval[_ngcontent-%COMP%]{background:#e5e7eb;color:#374151}.badge-trial[_ngcontent-%COMP%]{background:var(--primaryColor);color:#fff}.badge-default[_ngcontent-%COMP%]{background:#e0e7ff;color:var(--primaryColor)}.membership-details[_ngcontent-%COMP%]{font-size:.875rem}.discount-block[_ngcontent-%COMP%], .cancel-notice[_ngcontent-%COMP%]{border-top:.0625rem solid #e5e7eb}.discount-label[_ngcontent-%COMP%]{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#76517b}.discount-block[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#76517b;font-size:1rem}
1.cancel-notice[_ngcontent-%COMP%]{color:#9a3412;font-size:.8125rem}.cancel-notice[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.25rem}.coupon-inline[_ngcontent-%COMP%]{border-top:.0625rem solid #e5e7eb}.coupon-input[_ngcontent-%COMP%]{flex:1 1 12rem}.dropdown-wrap[_ngcontent-%COMP%]{position:relative}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-toggle-no-caret[_ngcontent-%COMP%]:after{display:none}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]{display:none;position:absolute;right:0;top:100%;margin-top:.5rem;min-width:12rem;background:#fff;border:.0625rem solid #e5e7eb;border-radius:.5rem;box-shadow:0 .5rem 1rem #0000001f;list-style:none;padding:.375rem 0;margin-left:0;z-index:60}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem 1rem;color:#191c1e;text-decoration:none;font-size:.875rem}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background:#f3f4f6}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.text-danger[_ngcontent-%COMP%]:hover{background:#ba1a1a0f}.dropdown-wrap[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]   li.divider[_ngcontent-%COMP%]{height:.0625rem;background:#e5e7eb;margin:.375rem 0}.dropdown-wrap.open[_ngcontent-%COMP%]   .dropdown-menu-custom[_ngcontent-%COMP%]{display:block}.payment-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;background:#f8f9fa;border:.0625rem solid #e5e7eb;border-radius:.5rem;padding:1rem}.card-brand-icon[_ngcontent-%COMP%]{width:3rem;height:2rem;background:#fff;border:.0625rem solid #e5e7eb;border-radius:.25rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#6b7280}.billing-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#6b7280;border-bottom-width:.0625rem}.billing-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:middle;font-size:.875rem}.table-action-btn[_ngcontent-%COMP%]{background:none;border:none;padding:.375rem;border-radius:.375rem;color:#6b7280}.table-action-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#e0e7ff;color:var(--primaryColor)}.table-action-btn[_ngcontent-%COMP%]:disabled{opacity:.35;cursor:not-allowed}.tier-option-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.tier-option[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:.0625rem solid #e5e7eb;border-radius:.5rem;padding:1rem;flex-wrap:wrap}.tier-option.current[_ngcontent-%COMP%]{border-color:var(--primaryColor);background:#f5f7ff}.tier-interval-toggle[_ngcontent-%COMP%]{display:inline-flex;border:.0625rem solid #d1d5db;border-radius:.375rem;overflow:hidden}.tier-interval-toggle[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:#fff;border:none;padding:.25rem .75rem;font-size:.75rem;color:#374151}.tier-interval-toggle[_ngcontent-%COMP%]   button.active[_ngcontent-%COMP%]{background:var(--primaryColor);color:#fff}.modal-header-custom[_ngcontent-%COMP%]{background-color:var(--primaryColor)}.modal-header-custom[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]{filter:invert(1) grayscale(100%) brightness(200%)}.modal-title-custom[_ngcontent-%COMP%]{color:#fff}.custom-spinner-height[_ngcontent-%COMP%]{height:1.5625rem}.card-link[_ngcontent-%COMP%]{cursor:pointer;height:20vh}.card-container[_ngcontent-%COMP%], .card-action[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1.5rem;cursor:pointer}.brand-icon[_ngcontent-%COMP%]{width:3.125rem!important;object-fit:contain;height:2.375rem!important}.delete-icon[_ngcontent-%COMP%]{font-size:1.4rem;cursor:pointer;color:var(--errorColor)}.primary[_ngcontent-%COMP%]{color:#fff;cursor:pointer;background:var(--primaryColor);padding:.5rem;border-radius:50%}.bordered[_ngcontent-%COMP%]{border:.125rem solid var(--primaryColor);border-radius:.5rem}#card-element[_ngcontent-%COMP%]{background-color:#f8f8f9;border-color:#f8f8f9;padding:1.25rem;box-shadow:0 .0625rem .1875rem #0000001a}.cstm-padding-modal[_ngcontent-%COMP%]{padding-right:4.375rem}.db-main-content-area[_ngcontent-%COMP%]{padding-left:5rem;padding-right:.75rem;padding-top:7.4375rem}@media only screen and (min-width: 320px) and (max-width: 764px){.cstm-padding[_ngcontent-%COMP%]{padding-right:1.875rem}.cstm-padding-modal[_ngcontent-%COMP%]{padding-right:0}.db-main-content-area[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.tier-option[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}"]})};export{Ee as BillingSubscriptionsComponent};

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.