PageSourceSearch

https://timelesstoday.tv/en/chunk-5ADDQTWF.js

js timelesstoday.tv collected 2026-09-24 17:49:41 UTC 139,786 bytes, 5 lines download raw bytes

1import{a as ui}from"./chunk-JQLDUQU2.js";import{a as Dn}from"./chunk-4NMIDTFI.js";import{a as ri}from"./chunk-5PB5OLUS.js";import{a as Qe,b as mi,c as Xn}from"./chunk-OVTGFJTF.js";import{a as Je}from"./chunk-4VLTQRGV.js";import{d as kn}from"./chunk-Z66V5CRX.js";import{d as pi}from"./chunk-H5B44PTY.js";import"./chunk-2D23ORKK.js";import{d as Gn}from"./chunk-4ZMAFG47.js";import"./chunk-HDLDB5VJ.js";import{a as Hn}from"./chunk-4W5B55ZN.js";import{a as zn}from"./chunk-FDNQY2NZ.js";import{b as Ci}from"./chunk-LKZYDVQJ.js";import{a as Un,c as wn,d as Fn}from"./chunk-PMCCMCWD.js";import"./chunk-JH6YTPG4.js";import{a as De}from"./chunk-Q2HVBBZJ.js";import{a as Bn}from"./chunk-XBY4GJ6H.js";import{a as ke}from"./chunk-ODEQGRKU.js";import"./chunk-RUKRHW3F.js";import{a as We}from"./chunk-XGHVWBVH.js";import{a as on,c as _n,d as rn}from"./chunk-44ADV35A.js";import{a as Ae}from"./chunk-PDFVMYQS.js";import{a as $n,b as Ln}from"./chunk-DG7FKYYX.js";import{a as bn}from"./chunk-7VLLEOF2.js";import"./chunk-2SKOT6TH.js";import{b as yn,g as vn}from"./chunk-2QLTDSMP.js";import"./chunk-I2D3ZYGH.js";import{b as xn,d as Ke}from"./chunk-VZMLDNJ3.js";import"./chunk-UMIV7HLL.js";import{A as Ze,B as An,E as Si,F as J,G as Le,t as sn,w as Pn,x as Nn,y as On,z as En}from"./chunk-IL773DK5.js";import{a as ci,b as Mn,c as fn,d as In,e as di,f as Rn,h as hn,i as ze}from"./chunk-A7RP4OBW.js";import{a as an}from"./chunk-X47IZ7SZ.js";import{b as ln,d as H,f as cn,g as dn,j as _i,l as Sn,o as Cn,p as pn,s as mn,t as un,u as gn,v as qe,w as Tn}from"./chunk-MPMIKSPR.js";import"./chunk-D644MLVN.js";import{a as Ee,b as Me}from"./chunk-EJL2J6GM.js";import"./chunk-E4DGUVRG.js";import"./chunk-3S5ITY7R.js";import"./chunk-5ISKTFP2.js";import"./chunk-PWVOVZER.js";import{e as nn,k as je,m as Oe,n as he}from"./chunk-DUNKPRHK.js";import{a as Xe}from"./chunk-7SEWS3NW.js";import"./chunk-DYC5XCN6.js";import{a as G,b as tn}from"./chunk-F6BJ4PYD.js";import{d as en,j as L}from"./chunk-5QULWX2Z.js";import{h as Fe,i as Be,j as Zi,l as Ki,m as Ji,n as He,o as Qi,s as oi}from"./chunk-LNREQFXW.js";import{Ac as S,Bc as E,Cc as w,Dc as Ne,Ic as Re,Jb as C,Ka as Ye,Lb as p,Lc as b,Mb as be,Mc as $,Nb as Ui,Nc as Bi,Ob as v,Oc as K,Pb as x,Pc as we,Qb as l,Qc as Ge,Rb as n,Sb as o,Sc as qi,T as ji,Tb as d,Wc as Ue,Xb as ni,Yb as ti,Za as u,Zb as wi,_a as y,_b as f,aa as Wi,bd as fe,cb as _,cc as si,dc as li,ec as a,fa as P,hb as Te,jc as M,ka as N,la as O,lb as $e,lc as s,m as Gi,qa as Ie,rb as Pe,vc as Fi,wa as h,wb as ai}from"./chunk-UNWOG4YV.js";import"./chunk-TYCPUVLJ.js";function _t(i,t){if(i&1&&(n(0,"div",20)(1,"h3"),a(2,1),o(),d(3,"mat-spinner",22),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function rt(i,t){i&1&&(n(0,"span"),a(1,2),o());}function at(i,t){i&1&&(n(0,"span"),a(1,3),o());}function st(i,t){if(i&1){let e=f();n(0,"div",26)(1,"mat-card",27),d(2,"img",28),n(3,"mat-card-content")(4,"div",29)(5,"h3",30),a(6,4),o()(),n(7,"div",31)(8,"p")(9,"span"),a(10,5),o(),S(11),K(12,"uppercase"),n(13,"span"),a(14,6),o()()()(),n(15,"mat-card-actions")(16,"button",32),M("click",function(){N(e);let c=s(3);return O(c.manageSubscription());}),a(17,7),o()()()();}if(i&2){let e=s(),r=s(2);_(2),l("src","/"+r.locale+"/store_subscription.webp",y),_(9),w(" ",we(12,2,e.subscription)," ");}}function lt(i,t){i&1&&wi(0);}function ct(i,t){if(i&1&&ai(0,lt,1,0,"ng-container",33),i&2){s(2);let e=Fi(12);l("ngTemplateOutlet",e);}}function dt(i,t){if(i&1&&C(0,st,18,4,"div",26)(1,ct,1,1,"ng-container"),i&2){let e=t;p(e.subscription=="premier"||e.subscription=="classic"?0:1);}}function St(i,t){i&1&&wi(0);}function Ct(i,t){if(i&1&&ai(0,St,1,0,"ng-container",33),i&2){s();let e=Fi(12);l("ngTemplateOutlet",e);}}function pt(i,t){if(i&1){let e=f();n(0,"div",26)(1,"mat-card",34),d(2,"img",35),n(3,"mat-card-content")(4,"div",29)(5,"h3",30),a(6,8),o()(),n(7,"div",31)(8,"p"),a(9,9),o()(),n(10,"div",31),si(11,10),d(12,"p"),li(),o()(),n(13,"mat-card-actions")(14,"button",32),M("click",function(){N(e);let c=s(2);return O(c.buyGift());}),a(15,11),o()()()();}if(i&2){let e=s(2);_(2),l("src","/"+e.locale+"/store_gift.webp",y);}}function mt(i,t){if(i&1){let e=f();n(0,"div",26)(1,"mat-card",36),d(2,"img",37),n(3,"mat-card-content")(4,"div",29)(5,"h3",30),a(6,12),o()(),n(7,"div",31)(8,"p"),a(9,13),o()(),n(10,"div",31),si(11,14),d(12,"p"),li(),o()(),n(13,"mat-card-actions")(14,"button",32),M("click",function(){N(e);let c=s(2);return O(c.buySponsorship());}),a(15,15),o()()()();}if(i&2){let e=s(2);_(2),l("src","/"+e.locale+"/store_sponsorship.webp",y);}}function ut(i,t){if(i&1){let e=f();n(0,"div",26)(1,"mat-card",27),d(2,"img",28),n(3,"mat-card-content")(4,"div",29)(5,"h3",30),a(6,16),o()(),n(7,"div",31)(8,"p"),a(9,17),o()(),n(10,"div",31),si(11,18),d(12,"p"),li(),o()(),n(13,"mat-card-actions")(14,"button",32),M("click",function(){N(e);let c=s(2);return O(c.buySubscription());}),a(15,19),o()()()();}if(i&2){let e=s(2);_(2),l("src","/"+e.locale+"/store_subscription.webp",y);}}function gt(i,t){if(i&1&&(n(0,"div",21),d(1,"app-one-off-purchase",23),n(2,"div",24)(3,"h2"),C(4,rt,2,0,"span")(5,at,2,0,"span"),o()(),n(6,"div",25),C(7,dt,2,1)(8,Ct,1,1,"ng-container"),C(9,pt,16,1,"div",26),C(10,mt,16,1,"div",26),ai(11,ut,16,1,"ng-template",null,0,qi),o()()),i&2){let e,r=s();_(4),p(r.country!=="IN"?4:5),_(3),p((e=r.subscriptionData())?7:8,e),_(2),p(r.country!=="NP"?9:-1),_(),p(r.country!=="NP"&&r.country!=="IN"?10:-1);}}var gi=class i{constructor(t){this.platformId=t;this.countryCode=this.regionService.getUserCountryCode(),Te(()=>{Promise.resolve().then(()=>{this.country=localStorage.getItem("country-code"),this.profile$=this.#n.profile$,this.get
1SubsriptionDate();});});}#i=P(De);#e=P(J);#n=P(Gn);regionService=P(Hn);themeService=P(Ae);#_=P(Oe);#o=P(je);#t=P(We);#r=P(Ie);gatewayCustomerId;sessionSecret;sponsorshipPriceTableId;subscriptionPriceTableId;profile$;user$=this.#e.currentUser$;currentUser;isV1PhoneNumberEmail=!1;country;loading=h(!0);language;color="warn";canceled=!1;locale="en";countryCode;hideGoogleIcon=h(!1);isLatamUser=h(!1);userSubscriptionStatusService=P(ke);subscriptionData=this.userSubscriptionStatusService.subscription;ngOnInit(){oi(this.platformId)&&this.getClientOS()&&this.hideGoogleIcon.set(!0),this.profile$=this.#n.profile$,this.getSubsriptionDate(),this.sponsorshipPriceTableId=L.STRIPE_SPONSORSHIP_PRICE_TABLE1,this.subscriptionPriceTableId=L.STRIPE_SUBSCRIPTION_PRICE_TABLE,this.language=this.#t.preferredLanguage().tt_short_code,this.#o.queryParams.pipe(G(this.#r)).subscribe(t=>{this.canceled=t.canceled,this.canceled&&this.#i.showError("Transaction Canceled");});}getClientOS(){return navigator.userAgent.includes("TT_IOS");}getSubsriptionDate(){this.regionService.isLatamCountry(this.countryCode)&&this.isLatamUser.set(!0),this.user$.pipe(G(this.#r)).subscribe(t=>{t&&(this.currentUser=t,this.currentUser.email?.match(ui)&&(this.isV1PhoneNumberEmail=!0));}),this.loading.set(!1);}buySubscription(){switch(this.country){case"IN":this.goTo("/store/india-subscriptions");break;case"NP":this.goTo("/store/nepal-subscriptions");break;default:this.goTo("/store/subscriptions");}}buyGift(){switch(this.country){case"IN":this.goTo("/store/gifts");break;case"NP":break;default:this.goTo("/store/gifts");}}buySponsorship(){switch(this.country){case"NP":case"IN":this.language==="IN"?this.#i.showError(`Sponsorship is currently unavailable for users living in India or Nepal. 
2          If the opportunity to sponsor TimelessToday\u2019s efforts to deliver free content changes,
3          we will update you.`):this.#i.showError(`Sponsorship is currently unavailable for users living in India or Nepal. 
4          If the opportunity to sponsor TimelessToday\u2019s efforts to deliver free content changes, 
5          we will update you.`);break;default:this.goTo("/store/sponsorship");}}onDarkModeSwitched(){this.themeService.setTheme(this.themeService.themeSignal()),oi(this.platformId)&&localStorage.setItem("theme",this.themeService.themeSignal());}manageSubscription(){switch(this.country){case"IN":this.goTo("/store/india-subscriptions");break;case"NP":this.goTo("/store/nepal-subscriptions");break;default:this.goTo("/store/subscriptions");}}goTo(t){this.#_.navigate([`${t}`]);}static ɵfac=function(e){return new(e||i)($e(Ye));};static ɵcmp=Pe({type:i,selectors:[["app-store"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Subscriptions, Gifting, Sponsorship";let r;r="Subscriptions";let c;c="Subscriptions";let T;T="You have a";let g;g="subscription";let F;F="Manage your subscription";let B;B="Gifting";let U;U=" Gift a Subscription";let z;z=""+"\uFFFD#12\uFFFD"+"Give the gift of TimelessToday subscription and share unlimited access to Prem Rawat's premium content."+"\uFFFD/#12\uFFFD"+"";let X;X="Buy a Gift";let D;D="Sponsorship";let k;k=" Become a sponsor";let V;V=""+"\uFFFD#12\uFFFD"+"Your sponsorship helps us capture, produce and publish all of Prem Rawat\u2019s global events, interviews, and broadcasts."+"\uFFFD/#12\uFFFD"+"";let Y;Y="Sponsor TimelessToday";let j;j="Subscriptions";let W;W=" Subscribe to TimelessToday";let q;q=""+"\uFFFD#12\uFFFD"+"Enjoy instant access on our mobile app and website to all of Prem Rawat\u2019s LiveStreams, Express Streams, and Global Virtual Events, plus hours of Replays and full-length premium videos & audios."+"\uFFFD/#12\uFFFD"+"";let Z;return Z="Buy a Subscription",[["buySubscriptionTemplate",""],t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,[1,"loading-progress"],[1,"container"],[3,"color","diameter","strokeWidth"],[1,"add-margin-top"],[1,"searchTitle"],[1,"store-grid"],[1,"store-card"],["appearance","outlined",1,"first-mat"],["mat-card-image","","alt","Subscription",3,"src"],[1,"title"],[1,"store-item-header"],[1,"subtitle"],["mat-stroked-button","",3,"click"],[4,"ngTemplateOutlet"],["appearance","outlined",1,"second-mat"],["mat-card-image","","alt","Gifts",3,"src"],["appearance","outlined",1,"third-mat"],["mat-card-image","","alt","Sponsorship",3,"src"]];},template:function(e,r){e&1&&C(0,_t,4,3,"div",20)(1,gt,13,4,"div",21),e&2&&p(r.loading()?0:1);},dependencies:[Me,Ee,ze,ci,di,fn,hn,Zi,Dn,Ji],styles:[".add-margin-top[_ngcontent-%COMP%]{margin-top:1.2rem}.store-grid[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;flex-wrap:wrap;justify-content:center}.store-card[_ngcontent-%COMP%]{margin:20px 0}.store-card[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]{height:450px;width:260px;position:relative}.store-card[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:258px;height:166px}.store-card[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.store-card[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:.875rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:20px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.store-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:absolute;bottom:10px;min-width:93%;height:40px;border-radius:32px;font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;cursor:pointer;padding:8px 16px}.store-card[_ngcontent-%COMP%]   .first-mat[_ngcontent-%COMP%]{background-color:var(--shades-style-2)}.store-card[_ngcontent-%COMP%]   .first-mat[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid var(--supporting-video);background-color:var(--supporting-video);color:var(--grey-scale-grey-000-common-white)}.store-card[_ngcontent-%COMP%]   .second-mat[_ngcontent-%COMP%]{background-color:var(--shades-style-5)}.store-card[_ngcontent-%COMP%]   .second-mat[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid var(--supporting-gift-sub);background-color:var(--grey-scale-grey-000-common-white);color:var(--supporting-gift-sub)}.store-card[_ngcontent-%COMP%]   .third-mat[_ngcontent-%COMP%]{background-color:var(--shades-style-3)}.store-card[_ngcontent-%COMP%]   .third-mat[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid var(--supporting-sponsorship);background-color:var(--grey-scale-grey-000-common-white);color:var(--supporting-sponsorship)}.indiviual[_ngcontent-%COMP%]{margin:20px 0}.disabled[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none;opacity:.6}.banner-container[_ngcontent-%COMP%]{margin-top:30px;background-color:var(--shades-style-5);width:100%}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]{max-width:100%;display:grid;grid-template-columns:50px auto;padding:10px}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:var(--supporting-gift-sub);font-size:40px}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]{min-width:0}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:.875rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:20px;text-decoration:none;color:var(--grey-scale-grey-800-primary);
5word-break:break-word}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .downloadApp[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:bolder;font-style:normal;line-height:23px;text-decoration:none}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .apps[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;margin-top:10px}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .apps[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:120px}.banner-container[_ngcontent-%COMP%]   .banner[_ngcontent-%COMP%]   .banner-message[_ngcontent-%COMP%]   .apps[_ngcontent-%COMP%]   .ios[_ngcontent-%COMP%]{height:36.8px}"]});};var Pt=()=>["/help/purchasing"];function Nt(i,t){if(i&1&&(n(0,"div",8)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",10),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function Ot(i,t){if(i&1){let e=f();n(0,"div",14)(1,"div",20)(2,"h3"),a(3,6),o(),n(4,"h1"),S(5),o()(),n(6,"div",21)(7,"button",22),M("click",function(){let c=N(e).$implicit,T=s(2);return O(T.doStripePurchase(c.productId));}),a(8,7),o()()();}if(i&2){let e=t.$implicit;_(5),E(e.cost);}}function Et(i,t){if(i&1&&d(0,"img",17),i&2){let e=s(2);l("src",Re(e.logoDark),y);}}function Mt(i,t){if(i&1&&d(0,"img",17),i&2){let e=s(2);l("src",Re(e.logoLight),y);}}function ft(i,t){if(i&1&&(n(0,"div",9)(1,"h3"),a(2,1),o(),n(3,"div",11)(4,"p"),a(5,2),o()(),n(6,"div",12)(7,"div",13),v(8,Ot,9,1,"div",14,be),o()(),n(10,"div",15)(11,"div",16),C(12,Et,1,2,"img",17)(13,Mt,1,2,"img",17),n(14,"div",18)(15,"h2"),a(16,3),o(),n(17,"span"),a(18,4),o(),n(19,"span")(20,"a",19),a(21,5),o()()()()()()),i&2){let e=s();_(7),l("ngClass",e.isHandset()?"sponsorship-grid-card-small-devices":"sponsorship-grid-card"),_(),x(e.cardDetails),_(4),p(e.themeService.themeSignal()==="dark-theme"?12:13),_(8),l("routerLink",b(3,Pt));}}var It=fe()?L.STRIPE_SESSION_SUCCESS_URL_DEV:L.STRIPE_SESSION_SUCCESS_URL,Rt=fe()?L.STRIPE_SESSION_CANCEL_URL_DEV:L.STRIPE_SESSION_CANCEL_URL,Ti=class i{constructor(t,e){this.route=t;this.platformId=e;Te(()=>{this.country=localStorage.getItem("country-code"),this.checkCustomerEmail();});}loading=h(!0);color="warn";#i=P(Ie);themeService=P(Ae);#e=P(J);#n=P(Qe);#_=P(Le);preferredLanguage=P(We);isHandset=P(Xe).isHandset;country="";language;currentUser$=this.#e.currentUser$;customerEmail;prefilled_email;prefilled_promo_code;sponsorshipPricingTable1=L.STRIPE_SPONSORSHIP_PRICE_TABLE1;logoDark="/Stripe_Dark.webp";logoLight="/Stripe_Light.webp";#o=P(Je);#t=h(!1);cardDetails=[{id:1,cost:"US$ 50",productId:"sponsorT1-50"},{id:2,cost:"US$ 100",productId:"sponsorT1-100"},{id:3,cost:"US$ 250",productId:"sponsorT1-250"},{id:4,cost:"US$ 500",productId:"sponsorT2-500"},{id:5,cost:"US$ 1000",productId:"sponsorT2-1000"},{id:6,cost:"US$ 5000",productId:"sponsorT2-5000"}];ngOnInit(){this.checkCustomerEmail();}checkCustomerEmail(){this.currentUser$.pipe(G(this.#i)).subscribe(t=>{this.customerEmail=t?.email;}),this.loading.set(!1);}userLoggedIn(t){if(this.#_.isUserLoggedIn())this.#t.set(!0),this.doStripePurchase(t);else{let r={queryParams:{context:"store"}};this.route.navigate(["customer/login"],r);}}doStripePurchase(t){if(this.#t()&&!this.customerEmail){this.#n.showEmailInput().subscribe(r=>{r&&this.runStripeCheckout(t,r);});return;}this.runStripeCheckout(t);}runStripeCheckout(t,e){this.#o.CreateCheckoutSession(t,It,Rt,e).pipe(G(this.#i)).subscribe(r=>{r&&window.open(r.sessionURL,"_self");});}static ɵfac=function(e){return new(e||i)($e(Oe),$e(Ye));};static ɵcmp=Pe({type:i,selectors:[["app-sponsorship"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e=" Sponsorship ";let r;r=" Support a wide range of digital media initiatives designed to engage individuals interested in Prem Rawat\u2019s message of personal peace.Thank you for your contribution. ";let c;c="Need Help?";let T;T="Browse our help section for more information";let g;g="Subscription and Purchasing help";let F;F="Sponsor for";let B;return B="Pay",[t,e,r,c,T,g,F,B,[1,"loading-progress"],[1,"purchase-container"],[3,"color","diameter","strokeWidth"],[1,"g
5ift-information"],[1,"card-box"],[1,"sponsorship-grid-card",3,"ngClass"],[1,"sponsorship-card"],[1,"purchase-footer"],[1,"footer"],["alt","",3,"src"],[1,"text"],[3,"routerLink"],[1,"left-side"],[1,"right-side"],[3,"click"]];},template:function(e,r){e&1&&C(0,Nt,4,3,"div",8)(1,ft,22,4,"div",9),e&2&&p(r.loading()?0:1);},dependencies:[Me,Ee,ze,Ke,kn,he,Fe],encapsulation:2,changeDetection:0});};var Ni=()=>["/help/purchasing/gifting"],Yn=i=>({"border-color":i}),jn=i=>({"background-color":i}),Wn=()=>["/help/legal/terms-and-conditions"],qn=(i,t)=>({"disable-button":i,"action-button":t}),Oi=()=>({"background-color":"var(--shades-style-1)"}),Ei=()=>({}),Zn=()=>["/customer/login"],Mi=(i,t)=>t.id;function ht(i,t){if(i&1&&(n(0,"div",49)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",51),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function At(i,t){if(i&1){let e=f();n(0,"button",75),M("click",function(){N(e);let c=s(6);return O(c.showThePrice("stripePremier"));}),a(1,11),o();}}function yt(i,t){if(i&1){let e=f();n(0,"button",75),M("click",function(){N(e);let c=s(6);return O(c.gotoLogin());}),a(1,12),o();}}function vt(i,t){if(i&1){let e=f();n(0,"button",76),M("click",function(){N(e);let c=s(6);return O(c.showThePrice("stripeClassic"));}),a(1,13),o();}}function xt(i,t){if(i&1){let e=f();n(0,"button",76),M("click",function(){N(e);let c=s(6);return O(c.gotoLogin());}),a(1,14),o();}}function bt(i,t){if(i&1&&(n(0,"div",61)(1,"div",63)(2,"div",64),d(3,"h3",65),n(4,"h3",66),a(5,4),o()(),n(6,"div",67)(7,"div",68)(8,"section")(9,"span",59),S(10,"check"),o(),n(11,"span"),a(12,5),o()(),n(13,"section")(14,"span",59),S(15,"check"),o(),n(16,"span"),a(17,6),o()(),n(18,"span",69),C(19,At,2,0,"button",70),C(20,yt,2,0,"button",70),o()()()(),n(21,"div",71)(22,"div",72)(23,"h3",73),a(24,7),o(),n(25,"h3",66),a(26,8),o()(),n(27,"div",67)(28,"div",68)(29,"section")(30,"span",59),S(31,"check"),o(),n(32,"span"),a(33,9),o()(),n(34,"section")(35,"span",59),S(36,"check"),o(),n(37,"span"),a(38,10),o()(),n(39,"span",69),C(40,vt,2,0,"button",74),C(41,xt,2,0,"button",74),o()()()()()),i&2){let e=s(5);_(3),l("innerHTML",e.safeHtmlSignle(e.pElements[2]),u),_(16),p(e.isUserloggedIn()?19:-1),_(),p(e.isUserloggedIn()?-1:20),_(),l("ngStyle",$(7,Yn,e.classicColor("border"))),_(),l("ngStyle",$(9,jn,e.classicColor("head"))),_(18),p(e.isUserloggedIn()?40:-1),_(),p(e.isUserloggedIn()?-1:41);}}function $t(i,t){if(i&1){let e=f();n(0,"button",75),M("click",function(){N(e);let c=s(6);return O(c.showThePrice("razorpayPremier"));}),a(1,22),o();}}function Lt(i,t){if(i&1){let e=f();n(0,"button",75),M("click",function(){N(e);let c=s(6);return O(c.gotoLogin());}),a(1,23),o();}}function Gt(i,t){if(i&1){let e=f();n(0,"button",76),M("click",function(){N(e);let c=s(6);return O(c.showThePrice("razorpayClassic"));}),a(1,24),o();}}function Ut(i,t){if(i&1){let e=f();n(0,"button",76),M("click",function(){N(e);let c=s(6);return O(c.gotoLogin());}),a(1,25),o();}}function wt(i,t){if(i&1&&(n(0,"div",61)(1,"div",63)(2,"div",64),d(3,"h3",65),n(4,"h3",66),a(5,15),o()(),n(6,"div",67)(7,"div",68)(8,"section")(9,"span",59),S(10,"check"),o(),n(11,"span"),a(12,16),o()(),n(13,"section")(14,"span",59),S(15,"check"),o(),n(16,"span"),a(17,17),o()(),n(18,"span",69),C(19,$t,2,0,"button",70),C(20,Lt,2,0,"button",70),o()()()(),n(21,"div",71)(22,"div",72)(23,"h3",73),a(24,18),o(),n(25,"h3",66),a(26,19),o()(),n(27,"div",67)(28,"div",68)(29,"section")(30,"span",59),S(31,"check"),o(),n(32,"span"),a(33,20),o()(),n(34,"section")(35,"span",59),S(36,"check"),o(),n(37,"span"),a(38,21),o()(),n(39,"span",69),C(40,Gt,2,0,"button",74),C(41,Ut,2,0,"button",74),o()()()()()),i&2){let e=s(5);_(3),l("innerHTML",e.safeHtmlSignle(e.pElements[2]),u),_(16),p(e.isUserloggedIn()?19:-1),_(),p(e.isUserloggedIn()?-1:20),_(),l("ngStyle",$(7,Yn,e.classicColor("border"))),_(),l("ngStyle",$(9,jn,e.classicColor("head"))),_(18),p(e.isUserloggedIn()?40:-1),_(),p(e.isUserloggedIn()?-1:41);}}function Ft(i,t){if(i&1&&(d(0,"h3",57),n(1,"section",52)(2,"div",58)(3,"span",59),S(4," redeem "),o(),n(5,"div",60),d(6,"h3",57)(7,"p",57),o()(),C(8,bt,42,11,"div",61),C(9,wt,42,11,"div",61),n(10,"div",62),d(11,"h3",57
5),n(12,"ul"),d(13,"li",57)(14,"li",57)(15,"li",57)(16,"li",57)(17,"li",57),o()()()),i&2){let e=s(4);l("innerHTML",e.safeHtmlSignle(e.pElements[0]),u),_(6),l("innerHTML",e.safeHtmlSignle(e.pElements[0]),u),_(),l("innerHTML",e.safeHtmlSignle(e.pElements[1]),u),_(),p(e.country!=="IN"?8:-1),_(),p(e.country==="IN"?9:-1),_(2),l("innerHTML",e.safeHtmlSignle(e.pElements[3]),u),_(2),l("innerHTML",e.safeHtmlSignle(e.pElements[4]),u),_(),l("innerHTML",e.safeHtmlSignle(e.pElements[5]),u),_(),l("innerHTML",e.safeHtmlSignle(e.pElements[6]),u),_(),l("innerHTML",e.safeHtmlSignle(e.pElements[7]),u),_(),l("innerHTML",e.safeHtmlSignle(e.pElements[8]),u);}}function Bt(i,t){if(i&1&&(n(0,"span"),d(1,"mat-radio-button",97),n(2,"div",55)(3,"div",98),S(4),o(),n(5,"div",99),S(6),o()()()),i&2){let e=t.$implicit,r=s(7);_(),l("value",e.id),_(3),Ne("",e.monthsLabel," ",e.monthsLabel==="1"?r.descriptionFirstPtags[19]:r.descriptionFirstPtags[20]),_(2),w("INR \u20B9",e.price);}}function Ht(i,t){if(i&1&&(n(0,"div",93)(1,"div",94),d(2,"p",95)(3,"p",95),o(),n(4,"mat-radio-group",96),v(5,Bt,7,4,"span",null,Mi),o()()),i&2){let e=s(6);_(2),l("ngClass",e.isHandset()?"choose-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[9]),u),_(),l("ngClass",e.isHandset()?"premier-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[10]),u),_(2),x(e.indiaPremierPlans);}}function zt(i,t){if(i&1&&(n(0,"span"),d(1,"mat-radio-button",97),n(2,"div",55)(3,"div",98),S(4),o(),n(5,"div",99),S(6),o()()()),i&2){let e=t.$implicit,r=s(7);_(),l("value",e.id),_(3),Ne("",e.monthsLabel," ",e.monthsLabel==="1"?r.descriptionFirstPtags[19]:r.descriptionFirstPtags[20]),_(2),w("INR \u20B9",e.price);}}function Xt(i,t){if(i&1&&(n(0,"div",93)(1,"div",94),d(2,"p",95)(3,"p",95),o(),n(4,"mat-radio-group",100),v(5,zt,7,4,"span",null,Mi),o()()),i&2){let e=s(6);_(2),l("ngClass",e.isHandset()?"choose-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[9]),u),_(),l("ngClass",e.isHandset()?"premier-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[11]),u),_(2),x(e.indiaClassicPlans);}}function Dt(i,t){if(i&1&&(C(0,Ht,7,4,"div",93),C(1,Xt,7,4,"div",93)),i&2){let e=s(5);p(e.razorPayPremier()?0:-1),_(),p(e.razorPayClassic()?1:-1);}}function kt(i,t){if(i&1&&(n(0,"span"),d(1,"mat-radio-button",97),n(2,"div",55)(3,"div",98),S(4),o(),n(5,"div",99),S(6),o()()()),i&2){let e=t.$implicit,r=s(7);_(),l("value",e.id),_(3),Ne("",e.monthsLabel," ",e.monthsLabel==="1"?r.descriptionFirstPtags[19]:r.descriptionFirstPtags[20]),_(2),w("USD $",e.price);}}function Vt(i,t){if(i&1&&(n(0,"div",93)(1,"div",94),d(2,"p",95)(3,"p",95),o(),n(4,"mat-radio-group",101),v(5,kt,7,4,"span",null,Mi),o()()),i&2){let e=s(6);_(2),l("ngClass",e.isHandset()?"choose-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[9]),u),_(),l("ngClass",e.isHandset()?"premier-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[10]),u),_(2),x(e.plans);}}function Yt(i,t){if(i&1&&(n(0,"span"),d(1,"mat-radio-button",97),n(2,"div",55)(3,"div",98),S(4),o(),n(5,"div",99),S(6),o()()()),i&2){let e=t.$implicit,r=s(7);_(),l("value",e.id),_(3),Ne("",e.monthsLabel," ",e.monthsLabel==="1"?r.descriptionFirstPtags[19]:r.descriptionFirstPtags[20]),_(2),w("USD $",e.price);}}function jt(i,t){if(i&1&&(n(0,"div",93)(1,"div",94),d(2,"p",95)(3,"p",95),o(),n(4,"mat-radio-group",102),v(5,Yt,7,4,"span",null,Mi),o()()),i&2){let e=s(6);_(2),l("ngClass",e.isHandset()?"choose-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[9]),u),_(),l("ngClass",e.isHandset()?"premier-subscription":"")("innerHTML",e.safeHtmlSignle(e.pElements[11]),u),_(2),x(e.plansClassic);}}function Wt(i,t){if(i&1&&(C(0,Vt,7,4,"div",93),C(1,jt,7,4,"div",93)),i&2){let e=s(5);p(e.stripePremier()?0:-1),_(),p(e.stripeClassic()?1:-1);}}function qt(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(5);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[1]),u);}}function Zt(i,t){if(i&1&&(n(0,"mat-option",107),S(1),o()),i&2){let e=t.$implicit;l("value",e.dial_code),_(),Ne("",e.flag," ",e.dial_code);}}function Kt(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[6]),u);}}function Jt(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[7]),u);}}function Qt(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[9]),u);}}function eo(i,t){if(i&1&&d(0,"mat-error",113),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[10]),u);}}function io(i,t){if(i&1){let e=f();ni(0),n(1,"div",103),d(2,"div",79),n(3,"div",104)(4,"mat-form-field",105)(5,"mat-select",106),v(6,Zt,2,3,"mat-option",107,Ui),o()(),n(8,"mat-form-field",108)(9,"input",109),M("input",function(c){N(e);let T=s(5);return O(T.removeZeroOrPlusAtStart(c));}
5)("keypress",function(c){N(e);let T=s(5);return O(T.allowOnlyNumbers(c));})("input",function(c){N(e);let T=s(5);return O(T.sanitizePhone(c));}),o(),C(10,Kt,1,1,"mat-error",57),C(11,Jt,1,1,"mat-error",57),o()()(),n(12,"div",110),d(13,"div",79),n(14,"div",104)(15,"mat-form-field",105),d(16,"input",111),o(),n(17,"mat-form-field",108)(18,"input",112),M("keypress",function(c){N(e);let T=s(5);return O(T.allowOnlyNumbers(c));})("input",function(c){N(e);let T=s(5);return O(T.removeZeroOrPlusAtStart(c));})("input",function(c){N(e);let T=s(5);return O(T.sanitizePhone(c));}),o(),C(19,Qt,1,1,"mat-error",57),o()(),d(20,"div"),C(21,eo,1,1,"mat-error",113),o(),ti();}if(i&2){let e,r,c,T,g=s(5);_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[5]),u),_(4),x(g.countries),_(4),p((e=g.form.get("phone"))!=null&&e.hasError("required")?10:-1),_(),p((r=g.form.get("phone"))!=null&&r.hasError("pattern")?11:-1),_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[8]),u),_(3),l("value",(c=g.form.get("country"))==null?null:c.value),_(2),l("placeholder",g.descriptionFirstPtags[8]),_(),p((T=g.form.get("phoneConfirm"))!=null&&T.hasError("required")?19:-1),_(2),p(g.mismatch&&g.showPhone?21:-1);}}function no(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(7);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[18]),u);}}function to(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(7);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[12]),u);}}function oo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(7);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[14]),u);}}function _o(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(7);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[12]),u);}}function ro(i,t){if(i&1&&d(0,"mat-error",113),i&2){let e=s(7);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[15]),u);}}function ao(i,t){if(i&1&&(ni(0),n(1,"div",103),d(2,"div",79),n(3,"mat-form-field",80),d(4,"input",114),C(5,no,1,1,"mat-error",57),C(6,to,1,1,"mat-error",57),o()(),n(7,"div",110),d(8,"div",79),n(9,"mat-form-field",80),d(10,"input",115),C(11,oo,1,1,"mat-error",57),C(12,_o,1,1,"mat-error",57),o(),d(13,"div"),C(14,ro,1,1,"mat-error",113),o(),ti()),i&2){let e,r,c,T,g=s(6);_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[11]),u),_(2),l("placeholder",g.descriptionFirstPtags[4]),_(),p((e=g.form.get("email"))!=null&&e.hasError("required")?5:-1),_(),p((r=g.form.get("email"))!=null&&r.hasError("email")?6:-1),_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[13]),u),_(2),l("placeholder",g.descriptionFirstPtags[13]),_(),p((c=g.form.get("emailConfirm"))!=null&&c.hasError("required")?11:-1),_(),p((T=g.form.get("emailConfirm"))!=null&&T.hasError("email")?12:-1),_(2),p(g.mismatch&&!g.showPhone?14:-1);}}function so(i,t){if(i&1&&C(0,ao,15,9,"ng-container"),i&2){let e=s(5);p(e.showEmail?0:-1);}}function lo(i,t){if(i&1&&(d(0,"p",57),n(1,"p"),a(2,27),o()),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.pElements[2]),u);}}function co(i,t){i&1&&(n(0,"p"),a(1,28),o(),n(2,"p"),a(3,29),o());}function So(i,t){if(i&1&&(n(0,"p"),S(1),d(2,"span",57),o(),n(3,"p"),S(4),d(5,"span",57),o()),i&2){let e=s(6);_(),Ne("",e.selectedPlanLabel," ",e.selectedPlanLabel==="1"?e.descriptionFirstPtags[19]:e.descriptionFirstPtags[20]," "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[1]),u),_(2),w("USD ",e.selectedPlanPrice," + "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[2]),u);}}function Co(i,t){if(i&1&&(n(0,"p"),S(1),d(2,"span",57),o(),n(3,"p"),S(4),d(5,"span",57),o()),i&2){let e=s(6);_(),Ne("",e.selectedPlanLabel," ",e.selectedPlanLabel==="1"?e.descriptionFirstPtags[19]:e.descriptionFirstPtags[20]," "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[1]),u),_(2),w("USD ",e.selectedPlanPrice," + "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[2]),u);}}function po(i,t){if(i&1&&(n(0,"div",88)(1,"div",116),C(2,lo,3,1),C(3,co,4,0),o(),n(4,"div",117),C(5,So,6,5),C(6,Co,6,5),o()()),i&2){let e=s(5);l("ngStyle",e.stripeClassic()?b(5,Oi):b(6,Ei)),_(2),p(e.stripePremier()?2:-1),_(),p(e.stripeClassic()?3:-1),_(2),p(e.stripePremier()?5:-1),_(),p(e.stripeClassic()?6:-1);}}function mo(i,t){if(i&1&&(d(0,"p",57),n(1,"p"),a(2,30),o()),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.pElements[2]),u);}}function uo(i,t){i&1&&(n(0,"p"),a(1,31),o(),n(2,"p"),a(3,32),o());}function go(i,t){if(i&1&&(n(0,"p"),S(1),d(2,"span",57),o(),n(3,"p"),S(4),o()),i&2){let e=s(6);_(),Ne("",e.selectedPlanLabel," ",e.selectedPlanLabel==="1"?e.descriptionFirstPtags[19]:e.descriptionFirstPtags[20]," "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[1]),u),_(2),w("INR \u20B9",e.selectedPlanPrice," (With GST)");}}function To(i,t){if(i&1&&(n(0,"p"),S(1),d(2,"span",57),o(),n(3,"p"),S(4),o()),i&2){let e=s(6);_(),Ne("",e.selectedPlanLabel," ",e.selectedPlanLabel==="1"?e.descriptionFirstPtags[19]:e.descriptionFirstPtags[20]," "),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[1]),u),_(2),w("INR \u20B9",e.selectedPlanPrice," (With GST)");}}function Po(i,t){if(i&1&&(n(0,"div",88)(1,"div",116),C(2,mo,3,1),C(3,uo,4,0),o(),n(4,"div",117),C(5,go,5,4),C(6,To,5,4),o()()),i&2){let e=s(5);l("ngStyle",e.razorPayClassic()?b(5,Oi):b(6,Ei)),_(2),p(e.razorPayPremier()?2:-1),_(),p(e.razorPayClassic()?3:-1),_(2),p(e.razorPayPremier()?5:-1),_(),p(e.razorPayClassic()?6:-1);}}function No(i,t){if(i&1){let e=f();n(0,"h3"),a(1,26),o(),n(2,"form",77),M("ngSubmit",function(){N(e);let c=s(4);return O(c.userLoggedIn());}),C(3,Dt,2,2),C(4,Wt,2,2),n(5,"div",78),d(6,"div",79),n(7,"mat-form-field",80),d(8,"input",81),C(9,qt,1,1,"mat-error",57),o()(),n(10,"div",82),d(11,"div",79),n(12,"mat-radio-group",83)(13,"mat-radio-button",84),S(14),o(),n(15,"mat-radio-button",85),S(16),o()()(),C(17,io,22,8,"ng-container")(18,so,1,1),n(19,"div",86),d(20,"div",79),n(21,"mat-form-field",80),d(22,"textarea",87),o()(),C(23,po,7,7,"div",88),C(24,Po,7,7,"div",88),n(25,"div",89)(26,"mat-checkbox",90),d(27,"span",57),n(28,"a",91),d(29,"span",57),o(),d(30,"span",57),o(),d(31,"button",92),o()();}if(i&2){let e,r=s(4);_(2),l("formGroup",r.form),_(),p(r.country==="IN"?3:-1),_(),p(r.country!=="IN"?4:-1),_(2),l("innerHTML",r.safeHtmlSignle(r.descriptionFirstPtags[0]),u),_(2),l("placeholder",r.descriptionFirstPtags[16]),_(),p((e=r.form.get("recipientName"))!=null&&e.hasError("required")?9:-1),_(2),l("innerHTML",r.safeHtmlSignle(r.descriptionFirstPtags[2]),u),_(3),E(r.descriptionFirstPtags[3]),_(2),E(r.descriptionFirstPtags[4]),_(),p(r.showPhone?17:18),_(3),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[0]),u),_(2),l("placeholder",r.descriptionFirstPtags[17]),_(),p(r.country!=="IN"?23:-1),_(),p(r.country==="IN"?24:-1),_(3),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[3]),u),_(),l("routerLink",b(21,Wn)),_(),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[4]),u),_(),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[13]),u),_(),l("ngClass",Bi(22,qn,r.form.invali
5d||r.mismatch,r.isHandset()))("disabled",r.form.invalid||r.mismatch)("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[5]),u);}}function Oo(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoDarkRazorPay),y);}}function Eo(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoLightRazorPay),y);}}function Mo(i,t){if(i&1&&C(0,Oo,1,2,"img",118)(1,Eo,1,2,"img",118),i&2){let e=s(4);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function fo(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoDark),y);}}function Io(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoLight),y);}}function Ro(i,t){if(i&1&&C(0,fo,1,2,"img",118)(1,Io,1,2,"img",118),i&2){let e=s(4);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function ho(i,t){if(i&1&&(C(0,Ft,18,11)(1,No,32,25),n(2,"div",53)(3,"div",54),C(4,Mo,2,1)(5,Ro,2,1),n(6,"div",55)(7,"h2"),a(8,1),o(),n(9,"span"),a(10,2),o(),n(11,"span")(12,"a",56),a(13,3),o()()()()()),i&2){let e=s(3);p(e.showPrice()?1:0),_(4),p(e.country==="IN"?4:5),_(8),l("routerLink",b(3,Ni));}}function Ao(i,t){i&1&&(n(0,"div",121)(1,"p"),a(2,37),o(),n(3,"button",125),a(4,38),o()()),i&2&&(_(3),l("routerLink",b(1,Zn)));}function yo(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(6);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[7]),u),_(2),E(e.recipientDetails.giftRecipientPhone);}}function vo(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(6);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[8]),u),_(2),E(e.recipientDetails.giftRecipientEmail);}}function xo(i,t){if(i&1){let e=f();n(0,"div",62),d(1,"h3",57),n(2,"div",126)(3,"div",127),d(4,"p",57),n(5,"h3"),S(6),o()(),C(7,yo,4,2,"div",127)(8,vo,4,2,"div",127),o(),n(9,"div",126)(10,"div",127),d(11,"p",57),n(12,"h3"),S(13),o()(),n(14,"div",127),d(15,"p",57),n(16,"h3"),S(17),n(18,"span",128),M("click",function(){N(e);let c=s(5);return O(c.copyToClipboard());}),S(19,"content_copy"),o()()()(),n(20,"div",126)(21,"div",127),d(22,"p",57),n(23,"h3"),S(24),K(25,"date"),d(26,"span",57),o()()()();}if(i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[6]),u),_(3),l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[0]),u),_(2),E(e.recipientDetails.giftRecipientName),_(),p(e.recipientDetails.giftRecipientPhone?7:8),_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[9]),u),_(2),E(e.recipientDetails.productDescription),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[10]),u),_(2),w("",e.recipientDetails.giftRedemptionCode," "),_(5),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[11]),u),_(2),w("",Ge(25,11,e.recipientDetails.giftRedemptionExpiryDate,"dd MMM, yyyy")," "),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[12]),u);}}function bo(i,t){if(i&1&&C(0,xo,27,14,"div",62),i&2){let e=s(4);p(e.recipientDetails?0:-1);}}function $o(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(6);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[7]),u),_(2),E(e.razorPayRecipientDetails.recipientPhone);}}function Lo(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(6);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[8]),u),_(2),E(e.razorPayRecipientDetails.recipientEmail);}}function Go(i,t){if(i&1){let e=f();n(0,"div",62),d(1,"h3",57),n(2,"div",126)(3,"div",127),d(4,"p",57),n(5,"h3"),S(6),o()(),C(7,$o,4,2,"div",127)(8,Lo,4,2,"div",127),o(),n(9,"div",126)(10,"div",127),d(11,"p",57),n(12,"h3"),S(13),o()(),n(14,"div",127),d(15,"p",57),n(16,"h3"),S(17),n(18,"span",128),M("click",function(){N(e);let c=s(5);return O(c.copyToClipboardRazorPay());}),S(19,"content_copy"),o()()()(),n(20,"div",126)(21,"div",127),d(22,"p",57),n(23,"h3"),S(24),K(25,"date"),d(26,"span",57),o()()()();}if(i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[6]),u),_(3),l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[0]),u),_(2),E(e.razorPayRecipientDetails.recipientName),_(),p(e.razorPayRecipientDetails.recipientPhone?7:8),_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[9]),u),_(2),E(e.razorPayRecipientDetails.giftProductName),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[10]),u),_(2),w("",e.razorPayRecipientDetails.giftRedemptionCode," "),_(5),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[11]),u),_(2),w("",Ge(25,11,e.razorPayRecipientDetails.giftRedemptionExpiryDate,"dd MMM, yyyy")," "),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[12]),u);}}function Uo(i,t){if(i&1&&C(0,Go,27,14,"div",62),i&2){let e=s(4);p(e.razorPayRecipientDetails?0:-1);}}function wo(i,t){if(i&1){let e=f();n(0,"section",52)(1,"div",119)(2,"span",120),S(3,"check_circle"),o(),d(4,"h3",57)(5,"p",57),C(6,Ao,5,2,"div",121),o(),C(7,bo,1,1),C(8,Uo,1,1),n(9,"div",122),d(10,"h3",57
5),n(11,"ul"),d(12,"li",57)(13,"li",57)(14,"li",57)(15,"li",57),o(),n(16,"h3",123),a(17,33),o(),n(18,"p",124),a(19,34),o(),n(20,"p",124)(21,"a",56),a(22,35),o()(),n(23,"span",69)(24,"button",75),M("click",function(){N(e);let c=s(3);return O(c.showThePrice("sendAnotherGift"));}),a(25,36),o()()()();}if(i&2){let e=s(3);_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionForthPtags[2]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionForthPtags[3]),u),_(),p(e.isUserloggedIn()?-1:6),_(),p(e.isPurchasedCompleted()?7:-1),_(),p(e.isPurchasedCompleted()?8:-1),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[0]),u),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[1]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[2]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[3]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[4]),u),_(6),l("routerLink",b(11,Ni));}}function Fo(i,t){if(i&1&&C(0,ho,14,4)(1,wo,26,12,"section",52),i&2){let e=s(2);p(e.showPurchaseMessage()?1:0);}}function Bo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(4);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[1]),u);}}function Ho(i,t){if(i&1&&(n(0,"mat-option",107),S(1),o()),i&2){let e=t.$implicit;l("value",e.dial_code),_(),Ne("",e.flag," ",e.dial_code);}}function zo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(5);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[6]),u);}}function Xo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(5);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[7]),u);}}function Do(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(5);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[9]),u);}}function ko(i,t){if(i&1&&d(0,"mat-error",113),i&2){let e=s(5);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[10]),u);}}function Vo(i,t){if(i&1){let e=f();ni(0),n(1,"div",103),d(2,"div",79),n(3,"div",104)(4,"mat-form-field",105)(5,"mat-select",106),v(6,Ho,2,3,"mat-option",107,Ui),o()(),n(8,"mat-form-field",108)(9,"input",130),M("input",function(c){N(e);let T=s(4);return O(T.removeZeroOrPlusAtStart(c));})("keypress",function(c){N(e);let T=s(4);return O(T.allowOnlyNumbers(c));})("input",function(c){N(e);let T=s(4);return O(T.sanitizePhone(c));}),o(),C(10,zo,1,1,"mat-error",57),C(11,Xo,1,1,"mat-error",57),o()()(),n(12,"div",110),d(13,"div",79),n(14,"div",104)(15,"mat-form-field",105),d(16,"input",111),o(),n(17,"mat-form-field",108)(18,"input",112),M("keypress",function(c){N(e);let T=s(4);return O(T.allowOnlyNumbers(c));})("input",function(c){N(e);let T=s(4);return O(T.removeZeroOrPlusAtStart(c));})("input",function(c){N(e);let T=s(4);return O(T.sanitizePhone(c));}),o(),C(19,Do,1,1,"mat-error",57),o()(),d(20,"div"),C(21,ko,1,1,"mat-error",113),o(),ti();}if(i&2){let e,r,c,T,g=s(4);_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[5]),u),_(4),x(g.countries),_(4),p((e=g.form.get("phone"))!=null&&e.hasError("required")?10:-1),_(),p((r=g.form.get("phone"))!=null&&r.hasError("pattern")?11:-1),_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[8]),u),_(3),l("value",(c=g.form.get("country"))==null?null:c.value),_(2),l("placeholder",g.descriptionFirstPtags[8]),_(),p((T=g.form.get("phoneConfirm"))!=null&&T.hasError("required")?19:-1),_(2),p(g.mismatch&&g.showPhone?21:-1);}}function Yo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[18]),u);}}function jo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[12]),u);}}function Wo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[14]),u);}}function qo(i,t){if(i&1&&d(0,"mat-error",57),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[12]),u);}}function Zo(i,t){if(i&1&&d(0,"mat-error",113),i&2){let e=s(6);l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[15]),u);}}function Ko(i,t){if(i&1&&(ni(0),n(1,"div",103),d(2,"div",79),n(3,"mat-form-field",80),d(4,"input",114),C(5,Yo,1,1,"mat-error",57),C(6,jo,1,1,"mat-error",57),o()(),n(7,"div",110),d(8,"div",79),n(9,"mat-form-field",80),d(10,"input",115),C(11,Wo,1,1,"mat-error",57),C(12,qo,1,1,"mat-error",57),o(),d(13,"div"),C(14,Zo,1,1,"mat-error",113),o(),ti()),i&2){let e,r,c,T,g=s(5);_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[11]),u),_(2),l("placeholder",g.descriptionFirstPtags[4]),_(),p((e=g.form.get("email"))!=null&&e.hasError("required")?5:-1),_(),p((r=g.form.get("email"))!=null&&r.hasError("email")?6:-1),_(2),l("innerHTML",g.safeHtmlSignle(g.descriptionFirstPtags[13]),u),_(2),l("placeholder",g.descriptionFirstPtags[13]),_(),p((c=g.form.get("emailConfirm"))!=null&&c.hasError("required")?11:-1),_(),p((T=g.form.get("emailConfirm"))!=null&&T.hasError("email")?12:-1),_(2),p(g.mismatch&&!g.showPhone?14:-1);}}function Jo(i,t){if(i&1&&C(0,Ko,15,9,"ng-container"),i&2){let e=s(4);p(e.showEmail?0:-1);}}function Qo(i,t){if(i&1&&(n(0,"div",129)(1,"div",116),d(2,"h4",57),o(),n(3,"div",117)(4,"p"),S(5,"USD $179.00 + "),d(6,"span",131),o()()()),i&2){let e=s(4);l("ngStyle",e.stripeClassic()?b(3,Oi):b(4,Ei)),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirtheenPtags[1]),u),_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[2]),u);}}function e_(i,t){if(i&1&&(n(0,"div",129)(1,"div",116),d(2,"h4",57),o(),n(3,"div",117)(4,"p"),S(5,"INR \u20B910000 (With GST)"),o()()()),i&2){let e=s(4);l("ngStyle",e.stripeClassic()?b(2,Oi):b(3,Ei)),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirtheenPtags[1]),u);}}function i_(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoDarkRazorPay),y);}}function n_(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoLightRazorPay),y);}}function t_(i,t){if(i&1&&C(0,i_,1,2,"img",118)(1,n_,1,2,"img",118),i&2){let e=s(4);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function o_(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoDark),y);}}function __(i,t){if(i&1&&d(0,"img",118),i&2){let e=s(5);l("src",Re(e.logoLight),y);}}
5function r_(i,t){if(i&1&&C(0,o_,1,2,"img",118)(1,__,1,2,"img",118),i&2){let e=s(4);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function a_(i,t){if(i&1){let e=f();n(0,"h3"),a(1,39),o(),n(2,"form",77),M("ngSubmit",function(){N(e);let c=s(3);return O(c.userLoggedIn());}),n(3,"div",73),d(4,"h3",57),o(),n(5,"div",78),d(6,"div",79),n(7,"mat-form-field",80),d(8,"input",81),C(9,Bo,1,1,"mat-error",57),o()(),n(10,"div",82),d(11,"div",79),n(12,"mat-radio-group",83)(13,"mat-radio-button",84),S(14),o(),n(15,"mat-radio-button",85),S(16),o()()(),C(17,Vo,22,8,"ng-container")(18,Jo,1,1),n(19,"div",86),d(20,"div",79),n(21,"mat-form-field",80),d(22,"textarea",87),o()(),C(23,Qo,7,5,"div",129),C(24,e_,6,4,"div",129),n(25,"div",89)(26,"mat-checkbox",90),d(27,"span",57),n(28,"a",91),d(29,"span",57),o(),d(30,"span",57),o(),d(31,"button",92),o()(),n(32,"div",53)(33,"div",54),C(34,t_,2,1)(35,r_,2,1),n(36,"div",55)(37,"h2"),a(38,40),o(),n(39,"span"),a(40,41),o(),n(41,"span")(42,"a",56),a(43,42),o()()()()();}if(i&2){let e,r=s(3);_(2),l("formGroup",r.form),_(2),l("innerHTML",r.safeHtmlSignle(r.descriptionThirtheenPtags[0]),u),_(2),l("innerHTML",r.safeHtmlSignle(r.descriptionFirstPtags[0]),u),_(2),l("placeholder",r.descriptionFirstPtags[16]),_(),p((e=r.form.get("recipientName"))!=null&&e.hasError("required")?9:-1),_(2),l("innerHTML",r.safeHtmlSignle(r.descriptionFirstPtags[2]),u),_(3),E(r.descriptionFirstPtags[3]),_(2),E(r.descriptionFirstPtags[4]),_(),p(r.showPhone?17:18),_(3),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[0]),u),_(2),l("placeholder",r.descriptionFirstPtags[17]),_(),p(r.country!=="IN"?23:-1),_(),p(r.country==="IN"?24:-1),_(3),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[3]),u),_(),l("routerLink",b(22,Wn)),_(),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[4]),u),_(),l("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[13]),u),_(),l("ngClass",Bi(23,qn,r.form.invalid||r.mismatch,r.isHandset()))("disabled",r.form.invalid||r.mismatch)("innerHTML",r.safeHtmlSignle(r.descriptionSecondPtags[5]),u),_(3),p(r.country==="IN"?34:35),_(8),l("routerLink",b(26,Ni));}}function s_(i,t){i&1&&(n(0,"div",121)(1,"p"),a(2,47),o(),n(3,"button",125),a(4,48),o()()),i&2&&(_(3),l("routerLink",b(1,Zn)));}function l_(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[7]),u),_(2),E(e.recipientDetails.giftRecipientPhone);}}function c_(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[8]),u),_(2),E(e.recipientDetails.giftRecipientEmail);}}function d_(i,t){if(i&1){let e=f();n(0,"div",62),d(1,"h3",57),n(2,"div",126)(3,"div",127),d(4,"p",57),n(5,"h3"),S(6),o()(),C(7,l_,4,2,"div",127)(8,c_,4,2,"div",127),o(),n(9,"div",126)(10,"div",127),d(11,"p",57),n(12,"h3"),S(13),o()(),n(14,"div",127),d(15,"p",57),n(16,"h3"),S(17),n(18,"span",128),M("click",function(){N(e);let c=s(4);return O(c.copyToClipboard());}),S(19,"content_copy"),o()()()()();}if(i&2){let e=s(4);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[6]),u),_(3),l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[0]),u),_(2),E(e.recipientDetails.giftRecipientName),_(),p(e.recipientDetails.giftRecipientPhone?7:8),_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[9]),u),_(2),E(e.recipientDetails.productDescription),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[10]),u),_(2),w("",e.recipientDetails.giftRedemptionCode," ");}}function S_(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[7]),u),_(2),E(e.razorPayRecipientDetails.recipientPhone);}}function C_(i,t){if(i&1&&(n(0,"div",127),d(1,"p",57),n(2,"h3"),S(3),o()()),i&2){let e=s(5);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[8]),u),_(2),E(e.razorPayRecipientDetails.recipientEmail);}}function p_(i,t){if(i&1){let e=f();n(0,"div",62),d(1,"h3",57),n(2,"div",126)(3,"div",127),d(4,"p",57),n(5,"h3"),S(6),o()(),C(7,S_,4,2,"div",127)(8,C_,4,2,"div",127),o(),n(9,"div",126)(10,"div",127),d(11,"p",57),n(12,"h3"),S(13),o()(),n(14,"div",127),d(15,"p",57),n(16,"h3"),S(17),n(18,"span",128),M("click",function(){N(e);let c=s(4);return O(c.copyToClipboardRazorPay());}),S(19,"content_copy"),o()()()()();}if(i&2){let e=s(4);_(),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[6]),u),_(3),l("innerHTML",e.safeHtmlSignle(e.descriptionFirstPtags[0]),u),_(2),E(e.razorPayRecipientDetails.recipientName),_(
5),p(e.razorPayRecipientDetails.recipientPhone?7:8),_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[9]),u),_(2),E(e.razorPayRecipientDetails.giftProductName),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionSecondPtags[10]),u),_(2),w("",e.razorPayRecipientDetails.giftRedemptionCode," ");}}function m_(i,t){if(i&1){let e=f();n(0,"section",52)(1,"div",119)(2,"span",120),S(3,"check_circle"),o(),d(4,"h3",57)(5,"p",57),C(6,s_,5,2,"div",121),o(),C(7,d_,20,8,"div",62),C(8,p_,20,8,"div",62),n(9,"div",122),d(10,"h3",57),n(11,"ul"),d(12,"li",57)(13,"li",57)(14,"li",57),o(),n(15,"h3",123),a(16,43),o(),n(17,"p",124),a(18,44),o(),n(19,"p",124)(20,"a",56),a(21,45),o()(),n(22,"span",69)(23,"button",75),M("click",function(){N(e);let c=s(3);return O(c.showThePrice("specialGifts"));}),a(24,46),o()()()();}if(i&2){let e=s(3);_(4),l("innerHTML",e.safeHtmlSignle(e.descriptionForthPtags[2]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionForthPtags[3]),u),_(),p(e.isUserloggedIn()?-1:6),_(),p(e.recipientDetails?7:-1),_(),p(e.razorPayRecipientDetails?8:-1),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirdPtags[0]),u),_(2),l("innerHTML",e.safeHtmlSignle(e.descriptionThirtheenPtags[2]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionThirtheenPtags[3]),u),_(),l("innerHTML",e.safeHtmlSignle(e.descriptionThirtheenPtags[4]),u),_(6),l("routerLink",b(10,Ni));}}function u_(i,t){if(i&1&&(C(0,a_,44,27),C(1,m_,25,11,"section",52)),i&2){let e=s(2);p(e.isSpecialPurchasedCompleted()?-1:0),_(),p(e.isSpecialPurchasedCompleted()?1:-1);}}function g_(i,t){if(i&1&&(n(0,"div",50),C(1,Fo,2,1)(2,u_,2,2),o()),i&2){let e=s();_(),p(e.isSpecialGift()?2:1);}}function Vn(i,t){return e=>{let r=e.get(i)?.value??"",c=e.get(t)?.value??"";return r&&c&&r!==c?{mismatch:!0}:null;};}var T_=fe()?L.RAZORPAY_KEY_DEV:L.RAZORPAY_KEY_PROD,Pi=class i{constructor(t,e,r,c){this.route=t;this.singleEventService=e;this.sanitizer=r;this.platformId=c;Te(()=>{this.getThedata(),this.getCustomerEmail();});}#i=P(J);#e=P(Ie);currentUser$=this.#i.currentUser$;#n=P(Je);themeService=P(Ae);#_=P(Le);#o=P(Qe);#t=P(je);#r=P(De);#a=P(mi);giftPriceId;giftProductId;giftSubscriptionPriceTableId;customerEmail;gifting$;loading=h(!0);logoDark="/Stripe_Dark.webp";logoLight="/Stripe_Light.webp";color="warn";country="";giftAction="Purchase Gift";isHandset=P(Xe).isHandset;showPrice=h(!1);fb=P(gn);phoneNumber=new _n();countries=on;purchaseStatus="";showPurchaseMessage=h(!1);recipientDetails;razorPayRecipientDetails;logoDarkRazorPay="/RZP_Dark.webp";logoLightRazorPay="/RZP_Light.webp";customerName="";customerPhone="";razorPayPremier=h(!1);razorPayClassic=h(!1);stripePremier=h(!1);stripeClassic=h(!1);isSpecialGift=h(!1);selectedPlanLabel="";selectedPlanPrice=0;options;pElements=[];descriptionFirstPtags=[];descriptionSecondPtags=[];descriptionThirdPtags=[];descriptionForthPtags=[];descriptionThirtheenPtags=[];isPurchasedCompleted=h(!1);isSpecialPurchasedCompleted=h(!1);isUserloggedIn=h(!1);plans=[{id:"premier1SGift",monthsLabel:"1",price:20},{id:"premier3SGift",monthsLabel:"3",price:60},{id:"premier12SGift",monthsLabel:"12",price:200}];plansClassic=[{id:"classic1SGift",monthsLabel:"1",price:5.99},{id:"classic3SGift",monthsLabel:"3",price:17.99},{id:"classic12SGift",monthsLabel:"12",price:62.99}];specialPlans=[{id:"Amaroo_2026_Gift",monthsLabel:"1",price:179}];indiaPremierPlans=[{id:"premier1Gift",monthsLabel:"1",price:620},{id:"premier3Gift",monthsLabel:"3",price:1738},{id:"premier12Gift",monthsLabel:"12",price:6112}];indiaClassicPlans=[{id:"classic1Gift",monthsLabel:"1",price:112},{id:"classic3Gift",monthsLabel:"3",price:257},{id:"classic12Gift",monthsLabel:"12",price:1334}];specialPlansIndia=[{id:"Amaroo_2026_Gift",monthsLabel:"1",price:1e4}];form=this.fb.group({plan:["premier1SGift",H.required],stripePlanClassic:["classic1SGift",H.required],razorpayPremierPlan:["premier1Gift",H.required],razorpayClassicPlan:["classic1Gift",H.required],specialGift:["Amaroo_2026_Gift"],recipientName:["",H.required],contactMethod:["phone",H.required],country:["+1",H.required],phone:["",[]],phoneConfirm:["",[]],email:["",[]],emailConfirm:["",[]],note:["",H.maxLength(300)],terms:[!1,H.requiredTrue]});method=Ue(()=>this.form.get("contactMethod")?.value??"phone");plan=new _i("premier1SGift",{nonNullable:!0});stripePlanClassic=new _i("classic1SGift",{nonNullable:!0});razorpayPremierPlan=new _i("premier1Gift",{nonNullable:!0});razorpayClassicPlan=new _i("classic1Gift",{nonNullable:!0});#s=P(zn);ngOnInit(){if(oi(this.platformId)){this.purchaseStatus=this.#t.snapshot.queryParams.session_id;let t=this.#t.snapshot.queryParams.status;if(this.#t.snapshot.queryParams.special==="true"&&this.isSpecialGift.set(!0),(this.purchaseStatus||t)&&(this.showPurchaseMessage.set(!0),this.purchaseStatus&&this.getTheStripeSessionDetail
5s(this.purchaseStatus)),this.country=localStorage.getItem("country-code"),this.country){for(let r of this.countries)if(this.country===r.code){this.phoneNumber.country=r.dial_code,this.form.get("country")?.setValue(r.dial_code);break;}}}this.getCustomerEmail(),this.form.get("contactMethod").valueChanges.pipe(G(this.#e)).subscribe(()=>this.configureValidators()),this.configureValidators(),this.form.get("plan")?.valueChanges.pipe(G(this.#e)).subscribe(t=>{let e=this.plans.find(r=>r.id===t);this.selectedPlanLabel=e?e.monthsLabel:"",this.selectedPlanPrice=e?e.price:0;}),this.form.get("stripePlanClassic")?.valueChanges.pipe(G(this.#e)).subscribe(t=>{let e=this.plansClassic.find(r=>r.id===t);this.selectedPlanLabel=e?e.monthsLabel:"",this.selectedPlanPrice=e?e.price:0;}),this.form.get("razorpayPremierPlan")?.valueChanges.pipe(G(this.#e)).subscribe(t=>{let e=this.indiaPremierPlans.find(r=>r.id===t);this.selectedPlanLabel=e?e.monthsLabel:"",this.selectedPlanPrice=e?e.price:0;}),this.form.get("razorpayClassicPlan")?.valueChanges.pipe(G(this.#e)).subscribe(t=>{let e=this.indiaClassicPlans.find(r=>r.id===t);this.selectedPlanLabel=e?e.monthsLabel:"",this.selectedPlanPrice=e?e.price:0;});}
5getThedata(){this.gifting$=this.singleEventService.giftsPage(),this.gifting$.pipe(G(this.#e)).subscribe(t=>{let e=t?.data?.[0];e&&(this.pElements=this.parseParagraphs(e.tt_html_description??""),this.descriptionFirstPtags=this.parseParagraphs(e.tt_html_description_1??""),this.descriptionSecondPtags=this.parseParagraphs(e.tt_html_description_2??""),this.descriptionThirdPtags=this.parseParagraphs(e.tt_html_description_3??""),this.descriptionForthPtags=this.parseParagraphs(e.tt_html_description_4??""),this.descriptionThirtheenPtags=this.parseParagraphs(e.tt_html_description_13??""),this.loading.set(!1));});}configureValidators(){let t=this.form.get("contactMethod").value,e=this.form.get("country"),r=this.form.get("phone"),c=this.form.get("phoneConfirm"),T=this.form.get("email"),g=this.form.get("emailConfirm");t==="phone"?(e.setValidators([H.required]),r.setValidators([H.required,H.pattern(/^[0-9\-()\s]{6,20}$/)]),c.setValidators([H.required]),T.clearValidators(),g.clearValidators(),this.form.setValidators([Vn("phone","phoneConfirm")])):(T.setValidators([H.required,H.email]),g.setValidators([H.required,H.email]),e.clearValidators(),r.clearValidators(),c.clearValidators(),this.form.setValidators([Vn("email","emailConfirm")])),e.updateValueAndValidity({emitEvent:!1}),r.updateValueAndValidity({emitEvent:!1}),c.updateValueAndValidity({emitEvent:!1}),T.updateValueAndValidity({emitEvent:!1}),g.updateValueAndValidity({emitEvent:!1}),this.form.updateValueAndValidity({emitEvent:!1});}get showPhone(){return this.form.get("contactMethod").value==="phone";}get showEmail(){return this.form.get("contactMethod").value==="email";}get mismatch(){return!!this.form.errors?.mismatch;}getCustomerEmail(){this.currentUser$.pipe(G(this.#e)).subscribe(t=>{t&&(this.isUserloggedIn.set(!0),this.customerEmail=t.email===null?"":t.email,this.customerName=t?.displayName===null?"":t.displayName,this.customerPhone=t.phoneNumber===null?"":t.phoneNumber);});}submit(){if(this.form.invalid){this.form.markAllAsTouched();return;}this.country==="IN"?this.doRazorPay():this.doStripe();}doRazorPay(){this.#a.loadRazorpayData();let t=this.form.getRawValue(),e;this.razorPayClassic()?e=this.indiaClassicPlans.find(c=>c.id===t.razorpayClassicPlan):e=this.indiaPremierPlans.find(c=>c.id===t.razorpayPremierPlan),this.isSpecialGift()&&(e=this.specialPlansIndia.find(c=>c.id===t.specialGift));let r={productId:e.id?e.id:"",giftRecipientName:t.recipientName?t.recipientName:"",giftRecipientPhone:t.contactMethod==="phone"?`${t.country}${t.phone}`:"",giftRecipientEmail:t.contactMethod==="email"?`${t.email}`:"",giftRecipientMessage:t.note?t.note:""};this.#a.getOrderIdForGifting(r.productId,r.giftRecipientName,r.giftRecipientEmail,r.giftRecipientPhone,r.giftRecipientMessage).pipe(G(this.#e)).subscribe(c=>{c&&(this.isPurchasedCompleted.set(!0),this.razorPayRecipientDetails=c.notes,this.callRazorPay(c));});}callRazorPay(t){this.options={key:T_,amount:JSON.stringify(t.amount),currency:t.currency,name:"TimelessToday",description:"Gifting",image:"https://images.timelesstoday.tv/img/TTnewlogo32x32.png",order_id:t.id,prefill:{name:this.customerName,email:this.customerEmail,contact:this.customerPhone},notes:{customerId:t.notes.customerId},theme:{color:"#8b0000"},handler:r=>{this.isSpecialGift()?this.isSpecialPurchasedCompleted.set(!0):this.showPurchaseMessage.set(!0);},modal:{ondismiss:()=>{this.reloadCurrentRoute();}}},this.form.reset(),new Razorpay(this.options).open();}doStripe(){let t=this.form.getRawValue(),e;this.stripeClassic()?e=this.plansClassic.find(c=>c.id===t.stripePlanClassic):e=this.plans.find(c=>c.id===t.plan),this.isSpecialGift()&&(e=this.specialPlans.find(c=>c.id===t.specialGift));let r={productId:e.id?e.id:"",giftRecipientName:t.recipientName?t.recipientName:"",giftRecipientPhone:t.contactMethod==="phone"?`${t.country}${t.phone}`:"",giftRecipientEmail:t.contactMethod==="email"?`${t.email}`:"",giftRecipientMessage:t.note?t.note:""};this.customerEmail&&this.callTheStripeCheckOutSession(r),this.customerEmail||this.#o.showEmailInput().subscribe(c=>{c&&this.callTheStripeCheckOutSession(r,c);});}callTheStripeCheckOutSession(t,e){this.form.reset(),this.#n.CreateGiftCheckoutSession(t.productId,"","",t.giftRecipientEmail,t.g
5iftRecipientPhone,t.giftRecipientName,t.giftRecipientMessage,e).pipe(G(this.#e)).subscribe(r=>{r?window.open(`${r.sessionURL}`,"_self"):alert("Checkout session not available!");});}getTheStripeSessionDetails(t){this.#n.StripeCheckoutSessinSessionId(t).pipe(G(this.#e)).subscribe(e=>{e&&(this.isSpecialGift()?this.isSpecialPurchasedCompleted.set(!0):this.isPurchasedCompleted.set(!0),this.recipientDetails=e);});}copyToClipboard(){this.#s.copy(this.recipientDetails.giftRedemptionCode),this.#r.information("copied-to-clipboard");}copyToClipboardRazorPay(){this.#s.copy(this.razorPayRecipientDetails.giftRedemptionCode),this.#r.information("copied-to-clipboard");}reloadCurrentRoute(){let t=this.route.url;this.route.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.route.navigateByUrl(t);});}allowOnlyNumbers(t){let e=t.key.charCodeAt(0);(e<48||e>57)&&t.preventDefault();}sanitizePhone(t){let e=t.target,r=e.value.replace(/\D+/g,"");r=r.replace(/^[0+]+/,""),e.value=r,this.phoneNumber.line=r;}showThePrice(t){switch(t){case"razorpayPremier":this.selectedPlanLabel="1",this.selectedPlanPrice=620,this.razorPayPremier.set(!0),this.razorPayClassic.set(!1),this.stripePremier.set(!1),this.stripeClassic.set(!1),this.showPrice.set(!0),this.showPurchaseMessage.set(!1);break;case"razorpayClassic":this.selectedPlanPrice=112,this.selectedPlanLabel="1",this.razorPayClassic.set(!0),this.razorPayPremier.set(!1),this.stripePremier.set(!1),this.stripeClassic.set(!1),this.showPrice.set(!0),this.showPurchaseMessage.set(!1);break;case"stripePremier":this.selectedPlanPrice=20,this.selectedPlanLabel="1",this.stripePremier.set(!0),this.stripeClassic.set(!1),this.razorPayClassic.set(!1),this.razorPayPremier.set(!1),this.showPrice.set(!0),this.showPurchaseMessage.set(!1);break;case"stripeClassic":this.selectedPlanPrice=5.99,this.selectedPlanLabel="1",this.stripeClassic.set(!0),this.stripePremier.set(!1),this.razorPayClassic.set(!1),this.razorPayPremier.set(!1),this.showPrice.set(!0),this.showPurchaseMessage.set(!1);break;case"specialGifts":this.isSpecialPurchasedCompleted.set(!1);break;default:this.razorPayClassic.set(!1),this.razorPayPremier.set(!1),this.stripeClassic.set(!1),this.stripePremier.set(!1),this.showPrice.set(!1),this.showPurchaseMessage.set(!1);break;}}classicColor(t){return t==="button"||t==="border"||t==="purchase"?"var(--supporting-classic-sub)":"var(--shades-style-1)";}userLoggedIn(){this.#_.isUserLoggedIn()?this.submit():this.gotoLogin();}gotoLogin(){let e={queryParams:{context:"store-gifting"}};this.route.navigate(["customer/login"],e);}parseParagraphs(t){if(!t)return[];let e=document.createElement("div");return e.innerHTML=t,Array.from(e.querySelectorAll("p")).map(r=>r.innerHTML);}safeHtmlSignle(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):"";}removeZeroOrPlusAtStart(t){let e=t.target,r=e.value;(r.startsWith("0")||r.startsWith("+"))&&(r=r.substring(1),e.value=r);}static ɵfac=function(e){return new(e||i)($e(Oe),$e(Bn),$e(nn),$e(Ye));};static ɵcmp=Pe({type:i,selectors:[["app-gifts"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Need Help?";let r;r="Browse our help section for more information";let c;c="Subscription and Purchasing help";let T;T="(Video & Audio)";let g;g="Livestreams and Replays";let F;F="Events, Interviews, Series, Music and more";let B;B="Classic Subscription";let U;U="(Audio Only)";let z;z="Livestreams and Replays";let X;X="Events, Interviews, Series, Music and more";let D;D="Gift Now";let k;k="Gift Now";let V;V="Gift Now";let Y;Y="Gift Now";let j;j="(Video & Audio)";let W;W="Livestreams and Replays";let q;q="Events, Interviews, Series, Music and more";let Z;Z="Classic Subscription";let A;A="(Audio Only)";let Q;Q="Livestreams and Replays";let ee;ee="Events, Interviews, Series, Music and more";let ie;ie="Gift Now";let ne;ne="Gift Now";let te;te="Gift Now";let oe;oe="Gift Now";let _e;_e="Gift Now";let re;re="Phone Number";let ae;ae="(Video & Audio)";let se;se="Classic Subscription";let le;le="(Audio Only)";let ce;ce="(Video & Audio)";let de;de="Classic Subscription";let Se;Se="(Audio Only)";let Ce;Ce="Need help?";let pe;pe="Browse our help section for more information on Gifting";let me;me="Gifting help";let ue;ue="Send another Gift";let ge;ge="To finish things up, please log in once more. You added an email address during payment, and signing in again helps us securely link it to your account.";let I;I="Log in Now";let ye;ye="Gift Now";let ve;ve="Need Help?";let xe;xe="Browse our help section for more information";let m;m="Subscription and Purchasing help";let Hi;Hi="Phone Number";let zi;zi="Need help?";let Xi;Xi="Browse our help section for more information on Gifting";let Di;Di="Gifting help";let ki;ki="Send another Gift";let Vi;Vi="To finish things up, please log in once more. You added an email address during payment, and signing in again helps us securely link it to your account.";let Yi;return Yi="Log in Now",[t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,A,Q,ee,ie,ne,te,oe,_e,ae,se,le,ce,de,Se,Ce,pe,me,ue,ge,I,ye,ve,xe,m,zi,Xi,Di,ki,Vi,Yi,[1,"loading-progress"],[1,"purchase-container"],[3,"color","diameter","strokeWidth"],[1,"grid-custom"],[1,"purchase-footer"],[1,"footer"],[1,"text"],[3,"routerLink"],[3,"innerHTML"],[1,"g
5ift-information","gift-information-custom"],[1,"material-symbols-outlined"],[1,"gift-information-text"],[1,"cards","cards-custom"],[1,"about-gifting"],[1,"purchase-card"],[1,"head"],[1,"title",3,"innerHTML"],[1,"subtitle"],[1,"body"],[1,"body-part-one"],[1,"button-grid"],[1,"btn"],[1,"purchase-card",3,"ngStyle"],[1,"head",3,"ngStyle"],[1,"title"],[1,"btn","classic"],[1,"btn",3,"click"],[1,"btn","classic",3,"click"],[1,"gift-form",3,"ngSubmit","formGroup"],[1,"row","recipient"],[1,"label",3,"innerHTML"],["appearance","outline",1,"field"],["matInput","","formControlName","recipientName",3,"placeholder"],[1,"row","recipient_contact"],["formControlName","contactMethod",1,"contact"],["value","phone"],["value","email"],[1,"row","note"],["matInput","","rows","3","maxlength","300","formControlName","note",3,"placeholder"],[1,"row","totalBox",3,"ngStyle"],[1,"row","actions"],["formControlName","terms"],[1,"terms",3,"routerLink"],["mat-raised-button","","color","primary","type","submit",3,"ngClass","disabled","innerHTML"],[1,"row","price"],[1,"label"],[3,"ngClass","innerHTML"],["formControlName","razorpayPremierPlan","aria-label","Gift length",1,"plans"],[1,"plan",3,"value"],[1,"months"],[1,"price"],["formControlName","razorpayClassicPlan","aria-label","Gift length",1,"plans"],["formControlName","plan","aria-label","Gift length",1,"plans"],["formControlName","stripePlanClassic","aria-label","Gift length",1,"plans"],[1,"row","recipient_phone"],[1,"field","phone-grid"],["appearance","outline"],["formControlName","country"],[3,"value"],["appearance","outline",1,"phone"],["matInput","","pattern","[0-9]*","inputmode","numeric","formControlName","phone","placeholder",re,3,"input","keypress"],[1,"row","recipient_phone_confirm"],["matInput","","disabled","",3,"value"],["matInput","","pattern","[0-9]*","inputmode","numeric","formControlName","phoneConfirm",3,"keypress","input","placeholder"],[1,"mat-error-custom",3,"innerHTML"],["matInput","","formControlName","email",3,"placeholder"],["matInput","","formControlName","emailConfirm",3,"placeholder"],[1,"planDetails"],[1,"planTotal"],["alt","",3,"src"],[1,"gift-information","gift-information-custom","thank-you"],[1,"material-symbols-outlined","span-custom-color"],[1,"user-not-login-message"],[1,"what-happens-next","about-gifting"],[1,"need-help"],[1,"help-text"],[1,"btn",3,"routerLink"],[1,"thank-you-grid"],[1,"item"],[1,"material-symbols-outlined","copy-icon",3,"click"],[1,"special-row","totalBox","special-totalBox",3,"ngStyle"],["matInput","","pattern","[0-9]*","inputmode","numeric","formControlName","phone","placeholder",Hi,3,"input","keypress"],[1,"special-plan",3,"innerHTML"]];},template:function(e,r){e&1&&C(0,ht,4,3,"div",49)(1,g_,3,1,"div",50),e&2&&p(r.loading()?0:1);},dependencies:[Me,Ee,Ke,xn,ze,he,Tn,Sn,ln,cn,dn,mn,un,pn,Cn,Qi,Fe,Be,Nn,Pn,Ze,On,En,bn,vn,yn,Ln,$n,Fn,wn,Un,qe,He],styles:['.grid-custom[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr minmax(300px,600px) 1fr}.gift-information-custom[_ngcontent-%COMP%]{grid-area:1/2/2/3;display:grid;grid-template-columns:auto auto;width:auto!important;align-items:center}.gift-information-custom[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:48px;color:var(--supporting-gift-sub)}.gift-information-custom[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-800-primary);margin-bottom:0}.gift-information-custom[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0;color:var(--grey-scale-grey-800-primary)}.gift-information-custom[_ngcontent-%COMP%]   .span-custom-color[_ngcontent-%COMP%]{color:var(--supporting-success)}.gift-information-custom[_ngcontent-%COMP%]   .gift-information-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-left:16px}.cards[_ngcontent-%COMP%]{grid-area:2/2/2/3;display:flex;justify-content:center;gap:16px;margin-top:20px}.cards[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]{display:flex;justify-content:center;border-top:1px solid var(--grey-scale-grey-300)}.cards[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:120px;max-height:40px;height:100%;padding:8px 16px;border:none;border-radius:32px;background-color:var(--primary-primary-800-main-brand);color:var(--grey-scale-grey-000-white);text-align:center;cursor:pointer;outline:none;margin-top:18px;font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;display:flex;justify-content:center;align-items:center;margin-bottom:10px}.cards[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]   .classic[_ngcontent-%COMP%]{background-color:var(--supporting-classic-sub)}.thank-you[_ngcontent-%COMP%]{margin-top:20px;background-color:transparent!important;border:1px solid var(--grey-scale-grey-300);justify-content:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;padding:16px 24px}.thank-you[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px!important}.thank-you[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]{border-top:1px solid var(--grey-scale-grey-300);display:flex;flex-direction:column;justify-content:center;align-items:center}.thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--supporting-gift-sub);font-size:.875rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:20px;text-decoration:none;margin-top:10px}.thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{max-width:280px;max-height:37px;height:100%;width:100%;padding:8px 12px;border:none;border-radius:4px;background-color:var(--primary-primary-800-main-brand);color:var(--grey-scale-grey-000-white);text-align:center;cursor:pointer;outline:none}  .span-custom-color{font-variation-settings:"FILL" 1!important}.purchase-footer[_ngcontent-%COMP%]{grid-area:3/2/3/3}.what-happens-next[_ngcontent-%COMP%]{grid-area:4/2/4/3!important;margin-top:20px}.what-happens-next[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center}.what-happens-next[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0!important}.what-happens-next[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]{margin-bottom:65px}.what-happens-next[_ngcontent-%COMP%]   .need-help[_ngcontent-%COMP%]{text-align:left!important;margin:0}.what-happens-next[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--supporting-link);font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none}.about-gifting[_ngcontent-%COMP%]{grid-area:3/2/3/3}.about-gifting[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.about-gifting[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:14px}.about-gifting[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;color:var(--grey-scale-grey-800-primary);margin-top:16px}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]{margin-top:20px;
5display:grid;grid-template-columns:1fr 1fr;gap:12px}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:bolder;font-style:normal;line-height:23px;text-decoration:none;font-weight:700}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%]{font-size:20px;cursor:pointer;color:var(--grey-scale-grey-600)}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}.about-gifting[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]{display:flex;justify-content:center}.about-gifting[_ngcontent-%COMP%]   .button-grid[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{max-height:40px;height:100%;padding:8px 16px;border:none;border-radius:32px;background-color:var(--primary-primary-800-main-brand);color:var(--grey-scale-grey-000-white);text-align:center;cursor:pointer;outline:none;margin-top:18px;font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;display:flex;justify-content:center;align-items:center}.purchase-footer[_ngcontent-%COMP%]{border-top:none!important}.gift-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr minmax(300px,600px) 1fr;gap:16px}.gift-form[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{grid-area:1/2/1/3;display:flex;flex-direction:row;justify-content:center;align-items:center}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{grid-area:1/2/1/3}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .plans[_ngcontent-%COMP%]{display:flex;gap:32px}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .plans[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .plans[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{text-align:center;font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .plans[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-weight:500}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;color:var(--grey-scale-grey-800-primary)}.gift-form[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-weight:500}.gift-form[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]{grid-area:2/2/2/3}.gift-form[_ngcontent-%COMP%]   .recipient_contact[_ngcontent-%COMP%]{align-items:center;grid-area:3/2/3/3}.gift-form[_ngcontent-%COMP%]   .recipient_phone[_ngcontent-%COMP%]{grid-area:4/2/4/3}.gift-form[_ngcontent-%COMP%]   .recipient_phone_confirm[_ngcontent-%COMP%]{grid-area:5/2/5/3}.gift-form[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{grid-area:6/2/6/3}.gift-form[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;color:var(--grey-scale-grey-800-primary);font-weight:500}.gift-form[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{width:100%;min-width:0}.gift-form[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:220px 1fr;gap:24px;justify-content:center}.gift-form[_ngcontent-%COMP%]   .special-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:250px 1fr;gap:24px;justify-content:center}.gift-form[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]{display:flex;gap:24px}.gift-form[_ngcontent-%COMP%]   .phone-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:110px 1fr;gap:12px}.gift-form[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{align-items:center;grid-area:8/2/8/3;grid-template-columns:1.6fr 1fr!important}.gift-form[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .terms[_ngcontent-%COMP%]{color:var(--supporting-link)}.gift-form[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{max-height:40px;height:100%;padding:8px 12px;border:none;border-radius:32px;background-color:var(--primary-primary-800-main-brand);color:var(--grey-scale-grey-000-white);text-align:center;cursor:pointer;outline:none;margin-left:auto}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]{grid-area:7/2/7/3;background-color:var(--shades-style-2);border-radius:8px;padding:8px 12px;
5height:70px;width:100%}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planDetails[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-child, .gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planTotal[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-child{font-weight:700}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planDetails[_ngcontent-%COMP%], .gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planTotal[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;line-height:24px;text-decoration:none;font-weight:400;display:flex;flex-direction:column;gap:3px;justify-content:center}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planDetails[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planTotal[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-style:normal;line-height:24px;text-decoration:none;font-weight:700;margin:0}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planTotal[_ngcontent-%COMP%]{margin-left:auto;text-align:end}.gift-form[_ngcontent-%COMP%]   .totalBox[_ngcontent-%COMP%]   .planTotal[_ngcontent-%COMP%]   .special-plan[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none}.gift-form[_ngcontent-%COMP%]   .special-totalBox[_ngcontent-%COMP%]{height:auto!important}.gift-form[_ngcontent-%COMP%]   .disable-button[_ngcontent-%COMP%]{opacity:.5}.gift-form[_ngcontent-%COMP%]   .mat-error-custom[_ngcontent-%COMP%]{margin-top:-39px;font-size:12px}.gift-form[_ngcontent-%COMP%]   .choose-subscription[_ngcontent-%COMP%]{display:inline}.gift-form[_ngcontent-%COMP%]   .premier-subscription[_ngcontent-%COMP%]{display:inline-block}.gift-form[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]{margin-right:auto}.plan[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;align-items:center}.plan[_ngcontent-%COMP%]   .mdc-form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px}  .mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--primary-primary-800-main-brand)!important}  .mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--primary-primary-800-main-brand)!important}  .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background{border-color:var(--primary-primary-800-main-brand)!important;background-color:var(--primary-primary-800-main-brand)!important}  .mat-mdc-form-field-subscript-wrapper{margin-top:-10px!important}@media(max-width:720px){.gift-form[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{grid-template-columns:1fr}.gift-form[_ngcontent-%COMP%]   .mismatch[_ngcontent-%COMP%]{margin-left:0}.gift-form[_ngcontent-%COMP%]   .phone-grid[_ngcontent-%COMP%]{grid-template-columns:110 1fr}.gift-form[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{grid-template-columns:1fr!important}.about-gifting[_ngcontent-%COMP%]   .thank-you-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.what-happens-next[_ngcontent-%COMP%]{padding-left:10px!important}.cards[_ngcontent-%COMP%]{flex-wrap:wrap}.totalBox[_ngcontent-%COMP%]{width:auto!important;grid-template-columns:1fr 1fr!important}}.footer[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:4px}'],changeDetection:0});};var Kn=fe()?L.STRIPE_API_HOST_DEV:L.STRIPE_API_HOST_PROD,fi=class i{http=P(en);authService=P(J);customerUid;currentUser$=this.authService.currentUser$;stripeCustomerId;constructor(){this.currentUser$.subscribe(t=>{t&&(this.customerUid=t.uid,this.getCustomerStripeIdFromDatabase());});}getCustomerStripeIdFromDatabase(){this.http.get(Kn+"stripe_customerId_from_subscription/"+this.customerUid).subscribe(t=>{this.stripeCustomerId=t?.stripe_customerId;});}manageSubscriptionPortal(){let t=`${Kn}stripe_portal_session/${this.stripeCustomerId}`;return this.http.post(t,{});}static ɵfac=function(e){return new(e||i)();};static ɵprov=Wi({token:i,factory:i.ɵfac,providedIn:"root"});};var Jn=()=>["/help/purchasing"],P_=i=>({color:i}),Qn=i=>({"border-color":i}),Ri=i=>({"background-color":i}),hi=(i,t)=>t.id;function N_(i,t){if(i&1&&(n(0,"div",39)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",41),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function O_(i,t){i&1&&(n(0,"h3"),a(1,4),o());}function E_(i,t){i&1&&(n(0,"h3"),a(1,5),o());}function M_(i,t){i&1&&(n(0,"h3"),a(1,9),o());}function f_(i,t){if(i&1&&(n(0,"h3",49),a(1,10),o()),i&2){let e=s(4);l("ngStyle",$(1,P_,e.classicColor("purchase")));}}function I_(i,t){i&1&&(n(0,"h3"),a(1,11),o());}function R_(i,t){i&1&&(n(0,"h3"),a(1,12),o());}function h_(i,t){if(i&1){let e=f();n(0,"div",54)(1,"p"),a(2,13),o(),n(3,"button",55),M("click",function(){N(e);let c=s(4);return O(c.manageSubscription());}),a(4,14),o()();}}function A_(i,t){if(i&1&&(n(0,"div",43)(1,"div",48),C(2,M_,2,0,"h3")(3,f_,2,3,"h3",49),n(4,"div",50)(5,"span"),a(6,6),o(),n(7,"span"),S(8),K(9,"date"),o()(),n(10,"span"),S(11),o()(),n(12,"div",51),C(13,I_,2,0,"h3")(14,R_,2,0,"h3"),n(15,"div",52)(16,"section")(17,"span",53),S(18," check "),o(),n(19,"span"),a(20,7),o()(),n(21,"section")(22,"span",53),S(23," check "),o(),n(24,"span"),a(25,8),o()()(),C(26,h_,5,0,"div",54),o()()),i&2){let e=s(),r=s(2);_(2),p(e.subscription==="premier"||e.subscription==="privilege"?2:3),_(6),E(Ge(9,5,e.end_date,"medium")),_(3),E(r.gatewayLabel()),_(2),p(e.subscription==="premier"||e.subscription==="privilege"?13:14),_(13),p(r.isStripe()?26:-1);}}function y_(i,t){if(i&1){let e=f();n(0,"div",61)(1,"div",62)(2,"h2"),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",54)(9,"button",55),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.doStripePurchase(c.tier,c.duration));}),a(10,19),o()()();}if(i&2){let e=t.$implicit;_(3),E(e.cost),_(2),E(e.gst),_(2),E(e.access);}}function v_(i,t){if(i&1&&(n(0,"div",56)(1,"div",58)(2,"h3",48),a(3,15),o(),n(4,"h3",59),a(5,16),o()(),n(6,"div",60)(7,"div",52)(8,"section")(9,"span",53),S(10," check "),o(),n(11,"span"),a(12,17),o()(),n(13,"section")(14,"span",53),S(15," check "),o(),n(16,"span"),a(17,18),o()()(),v(18,y_,11,3,"div",61,hi),o()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function x_(i,t){if(i&1){let e=f();n(0,"div",61)(1,"div",62)(2,"h2"),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",54)(9,"button",64),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.doStripePurchase(c.tier,c.duration));}),a(10,24),o()()();}if(i&2){let e=t.$implicit,r=s(6);_(3),E(e.cost),_(2),E(e.gst),_(2),E(e.access),_(2),l("ngStyle",$(4,Ri,r.classicColor("button")));}}function b_(i,t){if(i&1&&(n(0,"div",57)(1,"div",63)(2,"h3",48),a(3,20),o(),n(4,"h3",59),a(5,21),o()(),n(6,"div",60)(7,"div",52)(8,"section")(9,"span",53),S(10," check "),o(),n(11,"span"),a(12,22),o()(),n(13,"section")(14,"span",53),S(15," check "),o(),n(16,"span"),a(17,23),o()()(),v(18,x_,11,6,"div",61,hi),o()()),i&2){let e=s().$implicit,r=s(4);l("ngStyle",$(2,Qn,r.classicColor("border"))),_(),l("ngStyle",$(4,Ri,r.classicColor("head"))),_(17),x(e.classic);}}function $_(i,t){if(i&1&&(C(0,v_,20,0,"div",56),C(1,b_,20,6,"div",57)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function L_(i,t){if(i&1&&v(0,$_,2,2,null,null,be),i&2){let e=s(3);
5x(e.cardDetails);}}function G_(i,t){if(i&1&&d(0,"img",65),i&2){let e=s(4);l("src","/"+e.locale+e.logoDark,y);}}function U_(i,t){if(i&1&&d(0,"img",65),i&2){let e=s(4);l("src","/"+e.locale+e.logoLight,y);}}function w_(i,t){if(i&1&&C(0,G_,1,1,"img",65)(1,U_,1,1,"img",65),i&2){let e=s(3);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function F_(i,t){if(i&1&&(C(0,O_,2,0,"h3")(1,E_,2,0,"h3"),n(2,"div",42),C(3,A_,27,8,"div",43)(4,L_,2,0),o(),n(5,"div",44)(6,"div",45),C(7,w_,2,1),n(8,"div",46)(9,"h2"),a(10,1),o(),n(11,"span"),a(12,2),o(),n(13,"span")(14,"a",47),a(15,3),o()()()()()),i&2){let e=t;p(e.subscription=="premier"||e.subscription=="classic"||e.subscription=="privilege"?0:1),_(3),p(e.subscription=="premier"||e.subscription=="classic"||e.subscription=="privilege"?3:4),_(4),p(e.subscription!=="premier"&&e.subscription!=="classic"?7:-1),_(7),l("routerLink",b(4,Jn));}}function B_(i,t){if(i&1){let e=f();n(0,"div",61)(1,"div",62)(2,"h2"),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",54)(9,"button",55),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(10,33),o()()();}if(i&2){let e=t.$implicit;_(3),E(e.cost),_(2),E(e.gst),_(2),E(e.access);}}function H_(i,t){if(i&1&&(n(0,"div",56)(1,"div",58)(2,"h3",48),a(3,29),o(),n(4,"h3",59),a(5,30),o()(),n(6,"div",60)(7,"div",52)(8,"section")(9,"span",53),S(10," check "),o(),n(11,"span"),a(12,31),o()(),n(13,"section")(14,"span",53),S(15," check "),o(),n(16,"span"),a(17,32),o()()(),v(18,B_,11,3,"div",61,hi),o()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function z_(i,t){if(i&1){let e=f();n(0,"div",61)(1,"div",62)(2,"h2"),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",54)(9,"button",64),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(10,38),o()()();}if(i&2){let e=t.$implicit,r=s(5);_(3),E(e.cost),_(2),E(e.gst),_(2),E(e.access),_(2),l("ngStyle",$(4,Ri,r.classicColor("button")));}}function X_(i,t){if(i&1&&(n(0,"div",57)(1,"div",63)(2,"h3",48),a(3,34),o(),n(4,"h3",59),a(5,35),o()(),n(6,"div",60)(7,"div",52)(8,"section")(9,"span",53),S(10," check "),o(),n(11,"span"),a(12,36),o()(),n(13,"section")(14,"span",53),S(15," check "),o(),n(16,"span"),a(17,37),o()()(),v(18,z_,11,6,"div",61,hi),o()()),i&2){let e=s().$implicit,r=s(3);l("ngStyle",$(2,Qn,r.classicColor("border"))),_(),l("ngStyle",$(4,Ri,r.classicColor("head"))),_(17),x(e.classic);}}function D_(i,t){if(i&1&&(C(0,H_,20,0,"div",56),C(1,X_,20,6,"div",57)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function k_(i,t){if(i&1&&d(0,"img",65),i&2){let e=s(3);l("src","/"+e.locale+e.logoDark,y);}}function V_(i,t){if(i&1&&d(0,"img",65),i&2){let e=s(3);l("src","/"+e.locale+e.logoLight,y);}}function Y_(i,t){if(i&1&&(n(0,"h3"),a(1,25),o(),n(2,"div",42),v(3,D_,2,2,null,null,be),o(),n(5,"div",44)(6,"div",45),C(7,k_,1,1,"img",65)(8,V_,1,1,"img",65),n(9,"div",46)(10,"h2"),a(11,26),o(),n(12,"span"),a(13,27),o(),n(14,"span")(15,"a",47),a(16,28),o()()()()()),i&2){let e=s(2);_(3),x(e.cardDetails),_(4),p(e.themeService.themeSignal()==="dark-theme"?7:8),_(8),l("routerLink",b(2,Jn));}}function j_(i,t){if(i&1&&(n(0,"div",40),C(1,F_,16,5)(2,Y_,17,3),o()),i&2){let e,r=s();_(),p((e=r.subscriptionData())?1:2,e);}}var W_=L.STRIPE_SESSION_SUCCESS_URL,q_=L.STRIPE_SESSION_CANCEL_URL,Z_={Google:"Purchased via Google Playstore",Apple:"Purchased via Apple AppStore",Complimentary:"Complimentary",Gift:"Received as Gift",Razorpay:"Purchased via Timelesstoday Website (Razorpay)",eSewa:"Purchased via Timelesstoday Website (eSewa)",PayTm:"Purchased via Timelesstoday Website (PayTm)","CC Avenue":"Purchased via Timelesstoday Website (CC Avenue)",Stripe:"Purchased via Timelesstoday Website (Stripe)"},Ii=class i{#i=P(J);#e=P(Ie);#n=P(De);#_=P(Qe);#o=P(Oe);#t=P(Je);#r=P(Le);themeService=P(Ae);#a=P(fi);loading=h(!0);showThedialogBox=h(!1);theStripeCustomerIdExist=h(!1);getTier=h("");getDuration=h(0);color="warn";subscriptionPricingTableId=L.STRIPE_SUBSCRIPTION_PRICE_TABLE;logoDark="/Stripe_Dark.webp";logoLight="/Stripe_Light.webp";checkStripeCustomerId$=tn(this.#t.stripeCustomerIdExists);user$=this.#i.currentUser$;currentUser;customerEmail;subscriptionsAction="Learn more & purchase";locale="en";isV1PhoneNumberEmail=!1;applicableTaxes="+ applicable taxes";
5oneYearAccess="1 year access";oneMonthAccess="1 month access";cardDetails=[{premier:[{id:1,tier:"premier",duration:12,cost:"$220.00",gst:this.applicableTaxes,access:this.oneYearAccess},{id:2,tier:"premier",duration:1,cost:"$22.00",gst:this.applicableTaxes,access:this.oneMonthAccess}],classic:[{id:1,tier:"classic",duration:12,cost:"$66.00",gst:this.applicableTaxes,access:this.oneYearAccess},{id:2,tier:"classic",duration:1,cost:"$6.50",gst:this.applicableTaxes,access:this.oneMonthAccess}]}];userSubscriptionStatusService=P(ke);subscriptionData=this.userSubscriptionStatusService.subscription;gatewayLabel=Ue(()=>Z_[this.userSubscriptionStatusService.gateway()??""]??"Purchased via Timelesstoday Website");isStripe=Ue(()=>this.userSubscriptionStatusService.gateway()==="Stripe");constructor(){Te(()=>{this.getSubscriptionDate(),this.loading.set(!1);});}getSubscriptionDate(){this.checkStripeCustomerId$.pipe(G(this.#e)).subscribe(t=>{t?this.theStripeCustomerIdExist.set(!0):this.showThedialogBox.set(!0);}),this.user$.pipe(G(this.#e)).subscribe(t=>{t&&(this.currentUser=t,this.isV1PhoneNumberEmail=!!t.email?.match(ui));});}goToLogin(){if(!this.#r.isUserLoggedIn()){let t={queryParams:{context:"store-subscriptions"}};this.#o.navigate(["customer/login"],t);}}classicColor(t){return t==="button"||t==="border"||t==="purchase"?"var(--supporting-classic-sub)":"var(--shades-style-1)";}manageSubscription(){if(this.isV1PhoneNumberEmail){this.#o.navigate(["/customer/settings"]).then(()=>{this.#n.information("v1-phone-email");});return;}(this.currentUser.email||this.theStripeCustomerIdExist()&&!this.isV1PhoneNumberEmail)&&this.#a.manageSubscriptionPortal().pipe(G(this.#e)).subscribe(t=>{t&&window.open(t.sessionURL,"_self");});}doStripePurchase(t,e){this.currentUser.email?this.runStripeCheckout(t,e):(this.getTier.set(t),this.getDuration.set(e),this.#_.showEmailInput().subscribe(r=>{r&&this.runStripeCheckout(this.getTier(),this.getDuration(),r);}));}runStripeCheckout(t,e,r){this.#t.CreateCheckoutSession(t+e+"S",W_,q_,r).pipe(G(this.#e)).subscribe(c=>{c&&window.open(c.sessionURL,"_self");});}static ɵfac=function(e){return new(e||i)();};static ɵcmp=Pe({type:i,selectors:[["app-subscriptions"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Need Help?";let r;r="Browse our help section for more information";let c;c="Subscription and Purchasing help";let T;T=" My Subscription ";let g;g=" Buy Premier or Classic Access ";let F;F=" Valid till: ";let B;B="Livestreams and Replays";let U;U="Events, Interviews, Series, Music and more";let z;z="Premier Subscription";let X;X="Classic Subscription";let D;D="Your Premier subscription gives you full access to:";let k;k="Your Classic subscription gives you Audio only access to:";let V;V="Go to Stripe to manage your subscription.";let Y;Y="Manage Subscription";let j;j="Premier Subscription";let W;W="(Video & Audio)";let q;q="Livestreams and Replays";let Z;Z="Events, Interviews, Series, Music and more";let A;A="Buy Now";let Q;Q="Classic Subscription";let ee;ee="(Audio Only)";let ie;ie="Livestreams and Replays";let ne;ne="Events, Interviews, Series, Music and more";let te;te="Buy Now";let oe;oe=" Buy Premier or Classic Access ";let _e;_e="Need Help?";let re;re="Browse our help section for more information";let ae;ae="Subscription and Purchasing help";let se;se="Premier Subscription";let le;le="(Video & Audio)";let ce;ce="Livestreams and Replays";let de;de="Events, Interviews, Series, Music and more";let Se;Se="Buy Now";let Ce;Ce="Classic Subscription";let pe;pe="(Audio Only)";let me;me="Livestreams and Replays";let ue;ue="Events, Interviews, Series, Music and more";let ge;return ge="Buy Now",[t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,A,Q,ee,ie,ne,te,oe,_e,re,ae,se,le,ce,de,Se,Ce,pe,me,ue,ge,[1,"loading-progress"],[1,"purchase-container"],[3,"color","diameter","strokeWidth"],[1,"card-box"],[1,"purchase-box-message"],[1,"purchase-footer"],[1,"footer"],[1,"text"],[3,"routerLink"],[1,"title"],[3,"ngStyle"],[1,"expiry-row"],[1,"purchase-box-body"],[1,"body-part-one"],[1,"material-symbols-outlined"],[1,"action-button"],[3,"click"],[1,"purchase-card"],[1,"purchase-card",3,"ngStyle"],[1,"head"],[1,"subtitle"],[1,"body"],[1,"body-part-two"],[1,"price"],[1,"head",3,"ngStyle"],[3,"click","ngStyle"],["alt","",3,"src"]];},template:function(e,r){e&1&&C(0,N_,4,3,"div",39)(1,j_,3,1,"div",40),e&2&&p(r.loading()?0:1);},dependencies:[Me,Ee,he,Be,He],encapsulation:2});};var et=()=>["/help/purchasing"],K_=i=>({color:i}),it=i=>({"border-color":i}),yi=i=>({"background-color":i}),vi=(i,t)=>t.id;function J_(i,t){if(i&1&&(n(0,"div",43)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",45),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function Q_(i,t){i&1&&(n(0,"h3"),a(1,4),o());}function er(i,t){i&1&&(n(0,"h3"),a(1,5),o());}function ir(i,t){i&1&&(n(0,"h3"),a(1,9),o());}function nr(i,t){if(i&1&&(n(0,"h3",54),a(1,10),o()),i&2){let e=s(4);l("ngStyle",$(1,K_,e.classicColor("purchase")));}}function tr(i,t){i&1&&(n(0,"h3"),a(1,11),o());}function or(i,t){i&1&&(n(0,"h3"),a(1,12),o());}function _r(i,t){if(i&1&&(n(0,"div",47)(1,"div",53),C(2,ir,2,0,"h3")(3,nr,2,3,"h3",54),n(4,"div",55)(5,"span"),a(6,6),o(),n(7,"span"),S(8),K(9,"date"),o()(),n(10,"span"),S(11),o()(),n(12,"div",56),C(13,tr,2,0,"h3")(14,or,2,0,"h3"),n(15,"div",57)(16,"section")(17,"span",58),S(18," check "),o(),n(19,"span"),a(20,7),o()(),n(21,"section")(22,"span",58),S(23," check "),o(),n(24,"span"),a(25,8),o()()()()()),i&2){let e=s(),r=s(2);_(2),p(e.subscription==="premier"?2:3),_(6),E(Ge(9,4,e.end_date,"medium")),_(3),E(r.gatewayLabel()),_(2),p(e.subscription==="premier"?13:14);}}function rr(i,t){if(i&1){let e=f();n(0,"div",64)(1,"div",66)(2,"h2",67),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",68)(9,"button",69),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.purchaseSubscription(c.tier,c.duration));}),a(10,18),o()()();}if(i&2){let e=t.$implicit;_(2),l("ngClass",e.id===2?"custom-margin-top":""),_(),E(e.cost),_(2),w("with ",e.gst),_(2),E(e.access);}}function ar(i,t){if(i&1&&(n(0,"div",59)(1,"div",61)(2,"h3",53),a(3,13),o(),n(4,"h3",62),a(5,14),o()(),n(6,"div",63)(7,"div",57)(8,"section")(9,"span",58),S(10," check "),o(),n(11,"span"),a(12,15),o()(),n(13,"section")(14,"span",58),S(15," check "),o(),n(16,"span"),a(17,16),o()()(),v(18,rr,11,4,"div",64,vi),n(20,"div",65)(21,"p"),a(22,17),o()()()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function sr(i,t){if(i&1){let e=f();n(0,"div",64)(1,"div",66)(2,"h2",67),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",68)(9,"button",71),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.purchaseSubscription(c.tier,c.duration));}),a(10,24),o()()();}if(i&2){let e=t.$implicit,r=s(6);_(2),l("ngClass",e.id===2?"custom-margin-top":""),_(),E(e.cost),_(2),w("with ",e.gst),_(2),E(e.access),_(2),l("ngStyle",$(5,yi,r.classicColor("button")));}}function lr(i,t){if(i&1&&(n(0,"div",60)(1,"div",70)(2,"h3",53),a(3,19),o(),n(4,"h3",62),a(5,20),o()(),n(6,"div",63)(7,"div",57)(8,"section")(9,"span",58),S(10," check "),o(),n(11,"span"),a(12,21),o()(),n(13,"section")(14,"span",58),S(15," check "),o(),n(16,"span"),a(17,22),o()()(),v(18,sr,11,7,"div",64,vi),n(20,"div",65)(21,"p"),a(22,23),o()()()()),i&2){let e=s().$implicit,r=s(4);l("ngStyle",$(2,it,r.classicColor("border"))),_(),l("ngStyle",$(4,yi,r.classicColor("head"))),_(17),x(e.classic);}}function cr(i,t){if(i&1&&(C(0,ar,23,0,"div",59),C(1,lr,23,6,"div",60)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function dr(i,t){if(i&1&&v(0,cr,2,2,null,null,be),i&2){let e=s(3);
5x(e.cardDetails);}}function Sr(i,t){if(i&1&&d(0,"img",72),i&2){let e=s(4);l("src","/"+e.locale+e.logoDark,y);}}function Cr(i,t){if(i&1&&d(0,"img",72),i&2){let e=s(4);l("src","/"+e.locale+e.logoLight,y);}}function pr(i,t){if(i&1&&C(0,Sr,1,1,"img",72)(1,Cr,1,1,"img",72),i&2){let e=s(3);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function mr(i,t){i&1&&(n(0,"div",52)(1,"p"),a(2,25),o()());}function ur(i,t){if(i&1&&(C(0,Q_,2,0,"h3")(1,er,2,0,"h3"),n(2,"div",46),C(3,_r,26,7,"div",47)(4,dr,2,0),o(),n(5,"div",48)(6,"div",49),C(7,pr,2,1),n(8,"div",50)(9,"h2"),a(10,1),o(),n(11,"span"),a(12,2),o(),n(13,"span")(14,"a",51),a(15,3),o()()()(),C(16,mr,3,0,"div",52),o()),i&2){let e=t;p(e.subscription=="premier"||e.subscription=="classic"?0:1),_(3),p(e.subscription=="premier"||e.subscription=="classic"?3:4),_(4),p(e.subscription!=="premier"&&e.subscription!=="classic"?7:-1),_(7),l("routerLink",b(5,et)),_(2),p(e.subscription!=="premier"&&e.subscription!=="classic"?16:-1);}}function gr(i,t){if(i&1){let e=f();n(0,"div",64)(1,"div",66)(2,"h2",67),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",68)(9,"button",69),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(10,36),o()()();}if(i&2){let e=t.$implicit;_(2),l("ngClass",e.id===2?"custom-margin-top":""),_(),E(e.cost),_(2),w("with ",e.gst),_(2),E(e.access);}}function Tr(i,t){if(i&1&&(n(0,"div",59)(1,"div",61)(2,"h3",53),a(3,31),o(),n(4,"h3",62),a(5,32),o()(),n(6,"div",63)(7,"div",57)(8,"section")(9,"span",58),S(10," check "),o(),n(11,"span"),a(12,33),o()(),n(13,"section")(14,"span",58),S(15," check "),o(),n(16,"span"),a(17,34),o()()(),v(18,gr,11,4,"div",64,vi),n(20,"div",65)(21,"p"),a(22,35),o()()()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function Pr(i,t){if(i&1){let e=f();n(0,"div",64)(1,"div",66)(2,"h2",67),S(3),o(),n(4,"span"),S(5),o(),n(6,"span"),S(7),o()(),n(8,"div",68)(9,"button",71),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(10,42),o()()();}if(i&2){let e=t.$implicit,r=s(5);_(2),l("ngClass",e.id===2?"custom-margin-top":""),_(),E(e.cost),_(2),w("with ",e.gst),_(2),E(e.access),_(2),l("ngStyle",$(5,yi,r.classicColor("button")));}}function Nr(i,t){if(i&1&&(n(0,"div",60)(1,"div",70)(2,"h3",53),a(3,37),o(),n(4,"h3",62),a(5,38),o()(),n(6,"div",63)(7,"div",57)(8,"section")(9,"span",58),S(10," check "),o(),n(11,"span"),a(12,39),o()(),n(13,"section")(14,"span",58),S(15," check "),o(),n(16,"span"),a(17,40),o()()(),v(18,Pr,11,7,"div",64,vi),n(20,"div",65)(21,"p"),a(22,41),o()()()()),i&2){let e=s().$implicit,r=s(3);l("ngStyle",$(2,it,r.classicColor("border"))),_(),l("ngStyle",$(4,yi,r.classicColor("head"))),_(17),x(e.classic);}}function Or(i,t){if(i&1&&(C(0,Tr,23,0,"div",59),C(1,Nr,23,6,"div",60)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function Er(i,t){if(i&1&&d(0,"img",72),i&2){let e=s(3);l("src","/"+e.locale+e.logoDark,y);}}function Mr(i,t){if(i&1&&d(0,"img",72),i&2){let e=s(3);l("src","/"+e.locale+e.logoLight,y);}}function fr(i,t){if(i&1&&(n(0,"h3"),a(1,26),o(),n(2,"div",46),v(3,Or,2,2,null,null,be),o(),n(5,"div",48)(6,"div",49),C(7,Er,1,1,"img",72)(8,Mr,1,1,"img",72),n(9,"div",50)(10,"h2"),a(11,27),o(),n(12,"span"),a(13,28),o(),n(14,"span")(15,"a",51),a(16,29),o()()()(),n(17,"div",52)(18,"p"),a(19,30),o()()()),i&2){let e=s(2);_(3),x(e.cardDetails),_(4),p(e.themeService.themeSignal()==="dark-theme"?7:8),_(8),l("routerLink",b(2,et));}}function Ir(i,t){if(i&1&&(n(0,"div",44),C(1,ur,17,6)(2,fr,20,3),o()),i&2){let e,r=s();_(),p((e=r.subscriptionData())?1:2,e);}}var Oc=fe()?L.RAZORPAY_CALLBACK_URL_DEV:L.RAZORPAY_CALLBACK_URL_PROD,Rr=fe()?L.RAZORPAY_KEY_DEV:L.RAZORPAY_KEY_PROD,Ai=class i{#i=P(De);#e=P(mi);themeService=P(Ae);#n=P(Ie);#_=P(J);#o=P(Oe);#t=P(We);anguage;currentUser$=this.#_.currentUser$;customerId;customerName;customerEmail;customerPhone;loading=h(!0);tier="classic";tiers=["classic","premier"];duration=1;color="warn";subscription="three-month-sub";logoDark="/RZP_Dark.webp";logoLight="/RZP_Light.webp";country="";razorpayPlans=this.#e.razorpayPlans;razorpayProducts=this.#e.razorpayProducts;options;orderId="";language;locale="en";transaction=null;#r=P(Le);#a=P(sn);isHandset=P(Xe).isHandset;userSubscriptionStatusService=P(ke);subscriptionStateService=P(Si);subscriptionData=this.userSubscriptionStatusService.subscription;gatewayLabel=Ue(()=>{switch(this.userSubscriptionStatusService.gateway()){case"Google":return"Purchased via Google Playstore";case"Apple":return"Purchased via Apple AppStore";case"Complimentary":return"Complimentary";case"Gift":return"Recieved as Gift";case"Razorpay":return"Purchased via Timelesstoday Website (Razorpay)";case"eSewa":return"Purchased via Timelesstoday Website (eSewa)";case"PayTm":return"Purchased via Timelesstoday Website (PayTm)";case"CC Avenue":return"Purchased via Timelesstoday Website (CC Avenue)";case"Stripe":return"Purchased via Timelesstoday Website (Stripe)";default:return"Purchased via Timelesstoday Website";}});
5cardDetails=[{premier:[{id:1,tier:"premier",duration:12,cost:"INR \u20B96112",gst:"GST",access:"1 year access",discount:""},{id:2,tier:"premier",duration:1,cost:"INR \u20B9620",gst:"GST",access:"1 month access"}],classic:[{id:1,tier:"classic",duration:12,cost:"INR \u20B91334",gst:"GST",access:"1 year access",discount:""},{id:2,tier:"classic",duration:1,cost:"INR \u20B9112",gst:"GST",access:"1 month access"}]}];constructor(){this.#e.loadRazorpayData(),Te(()=>{this.country=localStorage.getItem("country-code"),this.getCustomerDetails();});}ngOnInit(){this.getCustomerDetails();}showRazorpaySubscription(t){this.validURL(t)?window.open(t,"_self"):this.#i.information("payment-link-unavailable");}getCustomerDetails(){this.#e.currentUser$.pipe(G(this.#n)).subscribe(t=>{t&&(this.customerId=t.uid,this.customerName=t.displayName===null?"":t.displayName,this.customerEmail=t.email===null?"":t.email,this.customerPhone=t.phoneNumber===null?"":t.phoneNumber);}),this.language=this.#t.preferredLanguage().tt_short_code,this.loading.set(!1);}showNepalSubscriptions(){window.open("https://timelesstoday.com.np/","_blank");}purchaseSubscription(t,e){this.#e.getOrderId(t+e).pipe(G(this.#n)).subscribe(r=>{r&&(this.orderId=r.id,this.buy(t,e));});}discountSubcription(t,e){this.#e.getOrderId(t+e).pipe(G(this.#n)).subscribe(r=>{r&&(this.orderId=r.id,this.buy(t,1,!0));});}parseDuration(t){switch(t){case 1:return 1;case 3:return 3;case 12:return 12;default:return t;}}validURL(t){var e=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return!!e.test(t);}goToLogin(){if(!this.#r.isUserLoggedIn()){let e={queryParams:{context:"store"}};this.#o.navigate(["customer/login"],e);}}buy(t,e,r=!1){let c=t+e,T=`${t.charAt(0).toUpperCase()+t.slice(1)} ${e} Month(s) Subscription Status:`,g=this.orderId;this.transaction={orderId:g,productId:c,productDescription:T,status:"pending"},this.options={key:Rr,amount:this.getAmount(t+e).toString(),currency:"INR",name:"TimelessToday",description:"One-off Subscription",image:"https://images.timelesstoday.tv/img/TTnewlogo32x32.png",order_id:this.orderId,prefill:{name:this.customerName,email:this.customerEmail,contact:this.customerPhone},notes:{customerId:this.customerId},theme:{color:"#8b0000"},handler:B=>{this.transaction.status="success",this.subscriptionStateService.refresh(this.customerId).subscribe({error:U=>console.error("Failed to refresh subscription after purchase",U)}),this.showTheMessage("yes");},modal:{ondismiss:()=>{this.transaction.status="failed",this.showTheMessage("no");}}},new Razorpay(this.options).open(),this.orderId="";}getAmount(t){return rn[t];}classicColor(t){return t==="button"||t==="border"||t==="purchase"?"var(--supporting-classic-sub)":"var(--shades-style-1)";}showTheMessage(t){let e;this.transaction?.status==="success"?e="Thank you for your purchase!":e="Your purchase failed",this.#a.open(An,{width:"90%",maxWidth:"480px",data:{showUnderConstructionMessage:!0,title:"Your Purchase",message:`${this.transaction?.productDescription} ${this.transaction?.status.toUpperCase()}`,messageSecondLine:e,showCancelButton:!1,showTheActionButton:!0,actionButtonParameter:t},panelClass:"custom-dialog-container"}).afterClosed().subscribe(c=>{c?.value==="yes"&&window.location.reload();});}static ɵfac=function(e){return new(e||i)();};static ɵcmp=Pe({type:i,selectors:[["app-india-subscriptions"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Need Help?";let r;r="Browse our help section for more information";let c;c="Subscription and Purchasing help";let T;T=" My Subscription ";let g;g=" Buy Premier or Classic Access ";let F;F=" Valid till: ";let B;B="Livestreams and Replays";let U;U="Events, Interviews, Series, Music and more";let z;z="Premier Subscription";let X;X="Classic Subscription";let D;D="Your Premier subscription gives you full access to:";let k;k="Your Classic subscription gives you Audio only access to:";let V;V="Premier Subscription";let Y;Y="(Video & Audio)";let j;j="Livestreams and Replays";let W;W="Events, Interviews, Series, Music and more";let q;q="One time non-recurring payment";let Z;Z="Buy Now";let A;A="Classic Subscription";let Q;Q="(Audio Only)";let ee;ee="Livestreams and Replays";let ie;ie="Events, Interviews, Series, Music and more";let ne;ne="One time non-recurring payment";let te;te="Buy Now";let oe;oe="Payment will be made to: GMAX Media Private Limited";let _e;_e=" Buy Premier or Classic Access ";let re;re="Need Help?";let ae;ae="Browse our help section for more information";let se;se="Subscription and Purchasing help";let le;le="Payment will be made to: GMAX Media Private Limited";
5let ce;ce="Premier Subscription";let de;de="(Video & Audio)";let Se;Se="Livestreams and Replays";let Ce;Ce="Events, Interviews, Series, Music and more";let pe;pe="One time non-recurring payment";let me;me="Buy Now";let ue;ue="Classic Subscription";let ge;ge="(Audio Only)";let I;I="Livestreams and Replays";let ye;ye="Events, Interviews, Series, Music and more";let ve;ve="One time non-recurring payment";let xe;return xe="Buy Now",[t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,A,Q,ee,ie,ne,te,oe,_e,re,ae,se,le,ce,de,Se,Ce,pe,me,ue,ge,I,ye,ve,xe,[1,"loading-progress"],[1,"purchase-container"],[3,"color","diameter","strokeWidth"],[1,"card-box"],[1,"purchase-box-message"],[1,"purchase-footer"],[1,"footer"],[1,"text"],[3,"routerLink"],[1,"footer-message"],[1,"title"],[3,"ngStyle"],[1,"expiry-row"],[1,"purchase-box-body"],[1,"body-part-one"],[1,"material-symbols-outlined"],[1,"purchase-card"],[1,"purchase-card",3,"ngStyle"],[1,"head"],[1,"subtitle"],[1,"body"],[1,"body-part-two"],[1,"body-part-three"],[1,"price"],[3,"ngClass"],[1,"action-button"],[3,"click"],[1,"head",3,"ngStyle"],[3,"click","ngStyle"],["alt","",3,"src"]];},template:function(e,r){e&1&&C(0,J_,4,3,"div",43)(1,Ir,3,1,"div",44),e&2&&p(r.loading()?0:1);},dependencies:[Ze,qe,pi,Ci,he,Be,Me,Ee,Fe,He],styles:['.payment-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(1,1fr);gap:0px 0px;grid-auto-flow:row;grid-template-areas:"supported-payment-options" "razorpay-logo" "need-more-help";grid-area:payment-options;align-items:center;justify-items:center}.supported-payment-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:0px 0px;grid-auto-flow:row;grid-template-areas:"payment-options-title payment-options-title payment-options-title payment-options-title" "upi net-banking card wallets";grid-area:supported-payment-options;align-items:center;justify-items:center}.razorpay-logo[_ngcontent-%COMP%]{grid-area:razorpay-logo}.razorpay-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100px}.need-more-help[_ngcontent-%COMP%]{grid-area:need-more-help;justify-items:center;align-items:center;margin:auto}.payment-options-title[_ngcontent-%COMP%]{font-style:bold;grid-area:payment-options-title}.upi[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-area:upi}.upi[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:30px}.net-banking[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-area:net-banking}.card[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-area:card}.wallets[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-area:wallets}.custom-width[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:30px}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]{box-sizing:border-box;background-image:linear-gradient(to bottom,#ffebd8,#fff);width:672px;display:flex;flex-direction:column;border-radius:8px;box-shadow:0 2px 0 1px #b0b0b04d;padding:12px 8px}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .first-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:37px 197px 37px;align-items:center;justify-content:center}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .first-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-800-primary);font-weight:500;text-align:center}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .second-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .second-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#ff6900,#a52d6c);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .second-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:bolder;font-style:normal;line-height:23px;text-decoration:none}.custom-width[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]   .second-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-of-type(2){font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none}.main-body-small-devices[_ngcontent-%COMP%]   .event-box[_ngcontent-%COMP%]{width:100%!important}.custom-action-button[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:end;align-items:end;margin-top:10px}.custom-action-button[_ngcontent-%COMP%]   .event-text[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:10px;justify-content:end;gap:5px}.custom-action-button[_ngcontent-%COMP%]   .event-text[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:20px}.custom-action-button[_ngcontent-%COMP%]   .event-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.875rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:20px;text-decoration:none;width:104px;color:var(--supporting-gift-sub)}.custom-action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:80%!important}'],changeDetection:0});};var nt=()=>["/help/purchasing"],hr=i=>({color:i}),tt=i=>({"border-color":i}),bi=i=>({"background-color":i}),$i=(i,t)=>t.id;function Ar(i,t){if(i&1&&(n(0,"div",43)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",45),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function yr(i,t){i&1&&(n(0,"h3"),a(1,4),o());}function vr(i,t){i&1&&(n(0,"h3"),a(1,5),o());}function xr(i,t){i&1&&(n(0,"h3"),a(1,9),o());}function br(i,t){if(i&1&&(n(0,"h3",53),a(1,10),o()),i&2){let e=s(4);l("ngStyle",$(1,hr,e.classicColor("purchase")));}}function $r(i,t){i&1&&(n(0,"h3"),a(1,11),o());}function Lr(i,t){i&1&&(n(0,"h3"),a(1,12),o());}function Gr(i,t){if(i&1){let e=f();n(0,"div",58)(1,"p"),a(2,13),o(),n(3,"button",59),M("click",function(){N(e);let c=s(4);return O(c.manageSubscription());}),a(4,14),o()();}}function Ur(i,t){if(i&1&&(n(0,"div",47)(1,"div",52),C(2,xr,2,0,"h3")(3,br,2,3,"h3",53),n(4,"div",54)(5,"span"),a(6,6),o(),n(7,"span"),S(8),K(9,"date"),o()(),n(10,"span"),S(11),o()(),n(12,"div",55),
5C(13,$r,2,0,"h3")(14,Lr,2,0,"h3"),n(15,"div",56)(16,"section")(17,"span",57),S(18," check "),o(),n(19,"span"),a(20,7),o()(),n(21,"section")(22,"span",57),S(23," check "),o(),n(24,"span"),a(25,8),o()()(),C(26,Gr,5,0,"div",58),o()()),i&2){let e=s(),r=s(2);_(2),p(e.subscription==="premier"?2:3),_(6),E(Ge(9,5,e.end_date,"medium")),_(3),E(r.gatewayLabel()),_(2),p(e.subscription==="premier"?13:14),_(13),p(r.isEsewa?26:-1);}}function wr(i,t){if(i&1){let e=f();n(0,"div",65)(1,"div",67)(2,"h2"),S(3),o(),n(4,"span"),S(5),o()(),n(6,"div",58)(7,"button",59),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.purchaseSubscription(c.tier,c.duration));}),a(8,20),o()()();}if(i&2){let e=t.$implicit;_(3),E(e.cost),_(2),E(e.access);}}function Fr(i,t){if(i&1&&(n(0,"div",60)(1,"div",62)(2,"h3",52),a(3,15),o(),n(4,"h3",63),a(5,16),o()(),n(6,"div",64)(7,"div",56)(8,"section")(9,"span",57),S(10," check "),o(),n(11,"span"),a(12,17),o()(),n(13,"section")(14,"span",57),S(15," check "),o(),n(16,"span"),a(17,18),o()()(),v(18,wr,9,2,"div",65,$i),n(20,"div",66)(21,"p"),a(22,19),o()()()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function Br(i,t){if(i&1){let e=f();n(0,"div",65)(1,"div",67)(2,"h2"),S(3),o(),n(4,"span"),S(5),o()(),n(6,"div",58)(7,"button",69),M("click",function(){let c=N(e).$implicit,T=s(6);return O(T.purchaseSubscription(c.tier,c.duration));}),a(8,26),o()()();}if(i&2){let e=t.$implicit,r=s(6);_(3),E(e.cost),_(2),E(e.access),_(2),l("ngStyle",$(3,bi,r.classicColor("button")));}}function Hr(i,t){if(i&1&&(n(0,"div",61)(1,"div",68)(2,"h3",52),a(3,21),o(),n(4,"h3",63),a(5,22),o()(),n(6,"div",64)(7,"div",56)(8,"section")(9,"span",57),S(10," check "),o(),n(11,"span"),a(12,23),o()(),n(13,"section")(14,"span",57),S(15," check "),o(),n(16,"span"),a(17,24),o()()(),v(18,Br,9,5,"div",65,$i),n(20,"div",66)(21,"p"),a(22,25),o()()()()),i&2){let e=s().$implicit,r=s(4);l("ngStyle",$(2,tt,r.classicColor("border"))),_(),l("ngStyle",$(4,bi,r.classicColor("head"))),_(17),x(e.classic);}}function zr(i,t){if(i&1&&(C(0,Fr,23,0,"div",60),C(1,Hr,23,6,"div",61)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function Xr(i,t){if(i&1&&v(0,zr,2,2,null,null,be),i&2){let e=s(3);x(e.cardDetails);}}function Dr(i,t){if(i&1&&d(0,"img",70),i&2){let e=s(4);l("src","/"+e.locale+e.logoDark,y);}}function kr(i,t){if(i&1&&d(0,"img",70),i&2){let e=s(4);l("src","/"+e.locale+e.logoLight,y);}}function Vr(i,t){if(i&1&&C(0,Dr,1,1,"img",70)(1,kr,1,1,"img",70),i&2){let e=s(3);p(e.themeService.themeSignal()==="dark-theme"?0:1);}}function Yr(i,t){if(i&1&&(C(0,yr,2,0,"h3")(1,vr,2,0,"h3"),n(2,"div",46),C(3,Ur,27,8,"div",47)(4,Xr,2,0),o(),n(5,"div",48)(6,"div",49),C(7,Vr,2,1),n(8,"div",50)(9,"h2"),a(10,1),o(),n(11,"span"),a(12,2),o(),n(13,"span")(14,"a",51),a(15,3),o()()()()()),i&2){let e=t;p(e.subscription=="premier"||e.subscription=="classic"?0:1),_(3),p(e.subscription=="premier"||e.subscription=="classic"?3:4),_(4),p(e.subscription!=="premier"&&e.subscription!=="classic"?7:-1),_(7),l("routerLink",b(4,nt));}}function jr(i,t){if(i&1){let e=f();n(0,"div",65)(1,"div",67)(2,"h2"),S(3),o(),n(4,"span"),S(5),o()(),n(6,"div",58)(7,"button",59),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(8,36),o()()();}if(i&2){let e=t.$implicit;_(3),E(e.cost),_(2),E(e.access);}}function Wr(i,t){if(i&1&&(n(0,"div",60)(1,"div",62)(2,"h3",52),a(3,31),o(),n(4,"h3",63),a(5,32),o()(),n(6,"div",64)(7,"div",56)(8,"section")(9,"span",57),S(10," check "),o(),n(11,"span"),a(12,33),o()(),n(13,"section")(14,"span",57),S(15," check "),o(),n(16,"span"),a(17,34),o()()(),v(18,jr,9,2,"div",65,$i),n(20,"div",66)(21,"p"),a(22,35),o()()()()),i&2){let e=s().$implicit;_(18),x(e.premier);}}function qr(i,t){if(i&1){let e=f();n(0,"div",65)(1,"div",67)(2,"h2"),S(3),o(),n(4,"span"),S(5),o()(),n(6,"div",58)(7,"button",69),M("click",function(){N(e);let c=s(5);return O(c.goToLogin());}),a(8,42),o()()();}if(i&2){let e=t.$implicit,r=s(5);_(3),E(e.cost),_(2),E(e.access),_(2),l("ngStyle",$(3,bi,r.classicColor("button")));}}function Zr(i,t){if(i&1&&(n(0,"div",61)(1,"div",68)(2,"h3",52),a(3,37),o(),n(4,"h3",63),a(5,38),o()(),n(6,"div",64)(7,"div",56)(8,"section")(9,"span",57),S(10," check "),o(),n(11,"span"),a(12,39),o()(),n(13,"section")(14,"span",57),S(15," check "),o(),n(16,"span"),a(17,40),o()()(),v(18,qr,9,5,"div",65,$i),n(20,"div",66)(21,"p"),a(22,41),o()()()()),i&2){let e=s().$implicit,r=s(3);l("ngStyle",$(2,tt,r.classicColor("border"))),_(),l("ngStyle",$(4,bi,r.classicColor("head"))),_(17),x(e.classic);}}function Kr(i,t){if(i&1&&(C(0,Wr,23,0,"div",60),C(1,Zr,23,6,"div",61)),i&2){let e=t.$implicit;p(e.premier?0:-1),_(),p(e.classic?1:-1);}}function Jr(i,t){if(i&1&&d(0,"img",70),i&2){let e=s(3);l("src","/"+e.locale+e.logoDark,y);}}function Qr(i,t){if(i&1&&d(0,"img",70),i&2){let e=s(3);l("src","/"+e.locale+e.logoLight,y);}}function ea(i,t){if(i&1&&(n(0,"h3"),a(1,27),o(),n(2,"div",46),v(3,Kr,2,2,null,null,be),o(),n(5,"div",48)(6,"div",49),C(7,Jr,1,1,"img",70)(8,Qr,1,1,"img",70),n(9,"div",50)(10,"h2"),a(11,28),o(),n(12,"span"),a(13,29),o(),n(14,"span")(15,"a",51),a(16,30),o()()()()()),i&2){let e=s(2);
5_(3),x(e.cardDetails),_(4),p(e.themeService.themeSignal()==="dark-theme"?7:8),_(8),l("routerLink",b(2,nt));}}function ia(i,t){if(i&1&&(n(0,"div",44),C(1,Yr,16,5)(2,ea,17,3),o()),i&2){let e,r=s();_(),p((e=r.subscriptionData())?1:2,e);}}var na=fe()?L.PST_SERVER_SUCCESS_URL_DEV:L.PST_SERVER_SUCCESS_URL,ta=fe()?L.PST_SERVER_FAIL_URL_DEV:L.PST_SERVER_FAIL_URL,xi=class i{loading=h(!0);nepalService=P(Xn);themeService=P(Ae);#i=P(Oe);auth=P(J);paymentUrl="";showPayment=!1;classicMonthly={oneMonth:1.69,twelveMonths:17.99};premierMonthly={oneMonth:8.49,twelveMonths:87.99};requestBody;#e=P(Ie);customerUid;tier="premier";duration=12;color="warn";logoDark="/Esewa_Dark.webp";logoLight="/Esewa_Light.webp";locale="en";isEsewa=!1;#n=P(Le);userSubscriptionStatusService=P(ke);subscriptionData=this.userSubscriptionStatusService.subscription;gatewayLabel=Ue(()=>{switch(this.userSubscriptionStatusService.gateway()){case"Google":return"Purchased via Google Playstore";case"Apple":return"Purchased via Apple AppStore";case"Complimentary":return"Complimentary";case"Gift":return"Recieved as Gift";case"Razorpay":return"Purchased via Timelesstoday Website (Razorpay)";case"eSewa":return"Purchased via Timelesstoday Website (eSewa)";case"PayTm":return"Purchased via Timelesstoday Website (PayTm)";case"CC Avenue":return"Purchased via Timelesstoday Website (CC Avenue)";case"Stripe":return"Purchased via Timelesstoday Website (Stripe)";default:return"Purchased via Timelesstoday Website";}});cardDetails=[{premier:[{id:1,tier:"premier",duration:12,cost:"$87.99",gst:"+GST",access:"1 year access"},{id:2,tier:"premier",duration:1,cost:"$8.49",gst:"+GST",access:"1 month access"}],classic:[{id:1,tier:"classic",duration:12,cost:"$17.99",gst:"+GST",access:"1 year access"},{id:2,tier:"classic",duration:1,cost:"$1.69",gst:"+GST",access:"1 month access"}]}];constructor(){Te(()=>{this.getCustomerUUID();});}ngOnInit(){this.getCustomerUUID();}getCustomerUUID(){this.auth.currentUser$.pipe(G(this.#e)).subscribe(t=>{t&&(this.customerUid=t?.uid);}),this.loading.set(!1);}parseDuration(t){switch(t){case 1:return 1;case 12:return 12;default:return t;}}goToLogin(){if(!this.#n.isUserLoggedIn()){let e={queryParams:{context:"store"}};this.#i.navigate(["customer/login"],e);}}purchaseSubscription(t,e){let r={timelesstoday_customer_code:this.customerUid,timelesstoday_product_code:t+e,timelesstoday_product_type:"Subscription",timelesstoday_product_price:this.getPrice(t,e).toString(),timelesstoday_timestamp:Math.floor(Date.now()/1e3),timelesstoday_return_url_success:na,timelesstoday_return_url_fail:ta};this.nepalService.getPstOrderId(r).then(c=>{window.open(c.pst_payment_url,"_self");});}getPrice(t,e){return t==="classic"&&e===1?this.classicMonthly.oneMonth:t==="classic"&&e===12?this.classicMonthly.twelveMonths:t==="premier"&&e===1?this.premierMonthly.oneMonth:t==="premier"&&e===12?this.premierMonthly.twelveMonths:this.classicMonthly.oneMonth;}classicColor(t){return t==="button"||t==="border"||t==="purchase"?"var(--supporting-classic-sub)":"var(--shades-style-1)";}manageSubscription(){window.open("https://timelesstoday.com.np/","_blank");}static ɵfac=function(e){return new(e||i)();};static ɵcmp=Pe({type:i,selectors:[["app-nepal-subscriptions"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Need Help?";let r;r="Browse our help section for more information";let c;c="Subscription and Purchasing help";let T;T=" My Subscription ";let g;g=" Buy Premier or Classic Access ";let F;F=" Valid till: ";let B;B="Livestreams and Replays";let U;U="Events, Interviews, Series, Music and more";let z;z="Premier Subscription";let X;X="Classic Subscription";let D;D="Your Premier subscription gives you full access to:";let k;k="Your Classic subscription gives you Audio only access to:";let V;V="Go to eSewa to manage your subscription.";let Y;Y="Manage Subscription";let j;j="Premier Subscription";let W;W="(Video & Audio)";let q;q="Livestreams and Replays";let Z;Z="Events, Interviews, Series, Music and more";let A;A="One time non-recurring payment";let Q;Q="Buy Now";let ee;ee="Classic Subscription";let ie;ie="(Audio Only)";let ne;ne="Livestreams and Replays";let te;te="Events, Interviews, Series, Music and more";let oe;oe="One time non-recurring payment";let _e;_e="Buy Now";let re;re=" Buy Premier or Classic Access ";let ae;ae="Need Help?";let se;se="Browse our help section for more information";let le;le="Subscription and Purchasing help";let ce;ce="Premier Subscription";let de;de="(Video & Audio)";let Se;Se="Livestreams and Replays";let Ce;Ce="Events, Interviews, Series, Music and more";let pe;pe="One time non-recurring payment";let me;me="Buy Now";let ue;ue="Classic Subscription";let ge;ge="(Audio Only)";let I;I="Livestreams and Replays";let ye;ye="Events, Interviews, Series, Music and more";let ve;ve="One time non-recurring payment";let xe;return xe="Buy Now",[t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,A,Q,ee,ie,ne,te,oe,_e,re,ae,se,le,ce,de,Se,Ce,pe,me,ue,ge,I,ye,ve,xe,[1,"loading-progress"],[1,"purchase-container"],[3,"color","diameter","strokeWidth"],[1,"card-box"],[1,"purchase-box-message"],[1,"purchase-footer"],[1,"footer"],[1,"text"],[3,"routerLink"],[1,"title"],[3,"ngStyle"],[1,"expiry-row"],[1,"purchase-box-body"],[1,"body-part-one"],[1,"material-symbols-outlined"],[1,"action-button"],[3,"click"],[1,"purchase-card"],[1,"purchase-card",3,"ngStyle"],[1,"head"],[1,"subtitle"],[1,"body"],[1,"body-part-two"],[1,"body-part-three"],[1,"price"],[1,"head",3,"ngStyle"],[3,"click","ngStyle"],["alt","",3,"src"]];},template:function(e,r){e&1&&C(0,Ar,4,3,"div",43)(1,ia,3,1,"div",44),e&2&&p(r.loading()?0:1);},dependencies:[Ze,qe,pi,Ci,Me,Ee,he,Be,He],encapsulation:2});};var oa=()=>["/customer/login"];function _a(i,t){if(i&1&&(n(0,"div",43)(1,"h3"),a(2,0),o(),d(3,"mat-spinner",45),o()),i&2){let e=s();_(3),l("color",e.color)("diameter",40)("strokeWidth",2);}}function ra(i,t){i&1&&(n(0,"p"),a(1,3),o());}function aa(i,t){i&1&&(n(0,"p"),a(1,4),o());}function sa(i,t){i&1&&(n(0,"p"),a(1,5),o());}function la(i,t){if(i&1){let e=f();n(0,"div",48)(1,"mat-card",49)(2,"mat-card-header")(3,"mat-card-title"),S(4),K(5,"titlecase"),K(6,"titlecase"),o(),n(7,"mat-card-subtitle"),C(8,ra,2,0,"p")(9,aa,2,0,"p")(10,sa,2,0,"p"),o()(),n(11,"mat-card-actions")(12,"button",50),M("click",function(){N(e);let c=s(3);return O(c.proceed("/home"));}),a(13,2),o()()()();}if(i&2){let e,r=s(3);_(4),Ne("",we(5,3,r.purchasedProduct)," Status: ",we(6,5,r.purchaseStatus)),_(4),p((e=r.purchaseStatus)==="success"?8:e==="canceled"?9:e==="failed"?10:-1);}}function ca(i,t){if(i&1&&(n(0,"span",60),S(1),o()),i&2){let e=s(5);_(),w(" ",e.getUserAccountEmail," ");}}function da(i,t){if(i&1&&(n(0,"span",60),S(1),o()),i&2){let e=s(5);_(),w(" ",e.getUserPhoneNumber," ");}}function Sa(i,t){if(i&1){let e=f();n(0,"span",53),S(1," check_circle "),o(),n(2,"p",54),a(3,6),o(),n(4,"p",55)(5,"span"),a(6,7),o(),n(7,"span",56),M("click",function(){N(e);let c=s(4);return O(c.goToOneOffPurchase());}),S(8),o()(),d(9,"span",57),n(10,"div",58)(11,"p",59),a(12,8),o(),C(13,ca,2,1,"span",60),C(14,da,2,1,"span",60),o(),n(15,"p",59)(16,"span"),a(17,9),o(),n(18,"span",61),a(19,10),o(),n(20,"span"),a(21,11),o()(),d(22,"span",57);}if(i&2){let e=s(4);_(8),E(e.bundleName()),_(5),p(e.getUserAccountEmail?13:-1),_(),p(e.getUserPhoneNumber?14:-1);}}function Ca(i,t){if(i&1){let e=f();n(0,"span",62),S(1,"error"),o(),n(2,"p",54),a(3,12),o(),n(4,"p",59),a(5,13),o(),d(6,"span",63),n(7,"button",64),M("click",function(){N(e);let c=s(4);return O(c.goToOneOffPurchase());}),a(8,14),o();}}function pa(i,t){if(i&1){let e=f();n(0,"span",62),S(1,"error"),o(),n(2,"p",54),a(3,15),o(),n(4,"p",59),a(5,16),o(),d(6,"span",63),n(7,"button",64),M("click",function(){N(e);let c=s(4);return O(c.goToOneOffPurchase());}),a(8,17),o();}}function ma(i,t){if(i&1&&(n(0,"div")(1,"mat-card",51)(2,"div",52),C(3,Sa,23,3)(4,Ca,9,0)(5,pa,9,0),o()()()),i&2){let e=s(3);_(3),p(e.purchaseStatus==="success"?3:e.purchaseStatus==="canceled"?4:e.purchaseStatus==="failed"?5:-1);}}function ua(i,t){if(i&1&&C(0,la,14,7,"div",48)(1,ma,6,1,"div"),i&2){let e=s(2);p(e.isBundle()?1:0);}}function ga(i,t){i&1&&(n(0,"span",53),S(1," check_circle "),o(),n(2,"h3"),a(3,21),o());}function Ta(i,t){i&1&&(n(0,"span",62),S(1,"error"),o());}function Pa(i,t){i&1&&(n(0,"span",62),S(1,"error"),o());}function Na(i,t){i&1&&(n(0,"p"),a(1,22),o(),n(2,"p"),a(3,23),o());}function Oa(i,t){i&1&&(n(0,"p"),a(1,24),o());}function Ea(i,t){i&1&&(n(0,"p"),a(1,25),o());}function Ma(i,t){if(i&1&&(n(0,"div",66),C(1,ga,4,0)(2,Ta,2,0,"span",62)(3,Pa,2,0,"span",62),n(4,"h3")(5,"span"),a(6,20),o(),S(7),K(8,"titlecase"),o(),C(9,Na,4,0)(10,Oa,2,0,"p")(11,Ea,2,0,"p"),o()),i&2){let e,r=s(3);_(),p(r.purchaseStatus==="success"?1:r.purchaseStatus==="canceled"?2:r.purchaseStatus==="failed"?3:-1),_(6),w(" ",we(8,3,r.purchasedProduct)),_(2),p((e=r.purchaseStatus)==="success"?9:e==="canceled"?10:e==="failed"?11:-1);}}function fa(i,t){if(i&1){let e=f();n(0,"span",53),S(1," check_circle "),o(),n(2,"p",54),a(3,26),o(),n(4,"p",59)(5,"span",61),a(6,27),o(),n(7,"span"),a(8,28),o(),n(9,"span",61),S(10),o()(),n(11,"p",59)(12,"span"),a(13,29),o(),n(14,"span",61),a(15,30),o(),n(16,"span"),a(17,31),o()(),n(18,"button",50),M("click",function(){N(e);let c=s(4);return O(c.proceed("/home"));}),a(19,32),o();}if(i&2){let e=s(4);_(10),w(" ",e.getUserAccountEmail?e.getUserAccountEmail:e.getUserPhoneNumber,". ");}}function Ia(i,t){if(i&1){let e=f();n(0,"span",62),S(1,"error"),o(),n(2,"p",54),a(3,33),o(),n(4,"p",59),a(5,34),o(),n(6,"button",50),M("click",function(){N(e);let c=s(4);return O(c.proceed("/home"));}),a(7,35),o();}}function Ra(i,t){if(i&1){let e=f();n(0,"span",62),S(1,"error"),o(),n(2,"p",54),a(3,36),o(),n(4,"p",59),a(5,37),o(),n(6,"button",50),M("click",function(){N(e);let c=s(4);return O(c.proceed("/home"));}),a(7,38),o();}}
5function ha(i,t){if(i&1&&(n(0,"div",52),C(1,fa,20,1)(2,Ia,8,0)(3,Ra,8,0),o()),i&2){let e=s(3);_(),p(e.purchaseStatus==="success"?1:e.purchaseStatus==="canceled"?2:e.purchaseStatus==="failed"?3:-1);}}function Aa(i,t){if(i&1&&(n(0,"div",47)(1,"div",65),C(2,Ma,12,5,"div",66)(3,ha,4,1,"div",52),n(4,"div",67)(5,"p"),a(6,18),o(),n(7,"button",68),a(8,19),o()()()()),i&2){let e=s(2);_(),l("ngClass",e.isHandset()?"custom-width":""),_(),p(e.isBundle()?3:2),_(5),l("routerLink",b(3,oa));}}function ya(i,t){i&1&&(n(0,"p"),a(1,40),o());}function va(i,t){i&1&&(n(0,"p"),a(1,41),o());}function xa(i,t){i&1&&(n(0,"p"),a(1,42),o());}function ba(i,t){if(i&1){let e=f();n(0,"div",48)(1,"mat-card",49)(2,"mat-card-header")(3,"mat-card-title"),S(4),K(5,"titlecase"),K(6,"titlecase"),o(),n(7,"mat-card-subtitle"),C(8,ya,2,0,"p")(9,va,2,0,"p")(10,xa,2,0,"p"),o()(),n(11,"mat-card-actions")(12,"button",50),M("click",function(){N(e);let c=s(2);return O(c.proceed("/home"));}),a(13,39),o()()()();}if(i&2){let e,r=s(2);_(4),Ne("",we(5,3,r.purchasedProduct)," Status: ",we(6,5,r.purchaseStatus)),_(4),p((e=r.purchaseStatus)==="success"?8:e==="canceled"?9:e==="failed"?10:-1);}}function $a(i,t){if(i&1&&(n(0,"div",44)(1,"div",46)(2,"h2"),a(3,1),o()(),C(4,ua,2,1),C(5,Aa,9,4,"div",47)(6,ba,14,7,"div",48),o()),i&2){let e=s();_(4),p(e.isUserLoggedIn()?4:-1),_(),p(!e.isUserLoggedIn()&&!e.purchasedProduct.includes("Sponsorship")?5:!e.isUserLoggedIn()&&e.purchasedProduct.includes("Sponsorship")?6:-1);}}var Li=class i{#i=P(je);#e=P(Oe);#n=P(J);subscriptionStateService=P(Si);logger=P(an);isHandset=P(Xe).isHandset;loading=h(!0);isBundle=h(!1);isUserLoggedIn=h(!1);color="warn";purchaseStatus="";purchasedProduct="";getUserAccountEmail="";getUserPhoneNumber="";bundleName=h("");bundleUUID=h("");constructor(){Te(()=>this.initializeWithToken());}ngOnInit(){this.purchaseStatus=this.#i.snapshot.queryParams.status;let t=this.#i.snapshot.queryParams.product,e=localStorage.getItem("bundleUUID");switch(this.bundleName.set(t),this.bundleUUID.set(e??""),t){case"premier12S":this.purchasedProduct="Premier 12 Months Subscription";break;case"premier1S":this.purchasedProduct="Premier 1 Month Subscription";break;case"classic1S":this.purchasedProduct="Classic 1 Month Subscription";break;case"classic12S":this.purchasedProduct="Classic 12 Months Subscription";break;case"classic3S":this.purchasedProduct="Classic 3 Months Subscription";break;case"premier3S":this.purchasedProduct="Premier 3 Months Subscription";break;case"sponsorT1-50":this.purchasedProduct="Sponsorship $50";break;case"sponsorT1-100":this.purchasedProduct="Sponsorship $100";break;case"sponsorT1-250":this.purchasedProduct="Sponsorship $250";break;case"sponsorT2-500":this.purchasedProduct="Sponsorship $500";break;case"sponsorT2-1000":this.purchasedProduct="Sponsorship $1000";break;case"sponsorT2-5000":this.purchasedProduct="Sponsorship $5000";break;default:this.isBundle.set(!0);break;}}initializeWithToken(){this.#n.currentUser$.pipe(ji(t=>t?(this.isUserLoggedIn.set(!0),this.getUserAccountEmail=t.email??"",this.getUserPhoneNumber=t.phoneNumber??"",this.purchaseStatus==="success"&&this.subscriptionStateService.refresh(t.uid).subscribe({error:e=>this.logger.logMessage("ERROR","Auth Service",`Subscription refresh after token refresh failed: ${e?.message}`)}),this.loading.set(!1),Gi(!0)):(this.loading.set(!1),Gi(null)))).subscribe();}proceed(t){this.#e.navigate([t]);}goToOneOffPurchase(){this.#e.navigate(["/home/one-off-purchase/",this.bundleUUID()]);}ngOnDestroy(){localStorage.removeItem("bundleUUID");}static ɵfac=function(e){return new(e||i)();};static ɵcmp=Pe({type:i,selectors:[["app-purchase-confirmation"]],decls:2,vars:1,consts:()=>{let t;t="Loading...";let e;e="Your Purchase";let r;r="Continue";let c;c="Thank you for your purchase!";let T;T="Your purchase was canceled";let g;g="Your purchase failed";let F;F=" Your purchase was successful. ";let B;B="Enjoy your purchase at: ";let U;U="Account used for Purchase:";let z;z="Be sure to ";let X;X="Log In with this account ";let D;D="whenever you want to access it on our Website or the Mobile App";let k;k="Your purchase was canceled";let V;V="Please try again";let Y;Y="Try Again";let j;j="Your purchase failed";let W;W="Please try again";let q;q="Try Again";let Z;Z="To finish things up, please log in once more. You added an email address during payment, and signing in again helps us securely link it to your account.";let A;A="Log in Now";let Q;Q="Purchase: ";let ee;ee="Thank You";let ie;ie=" Your purchase was successful. ";let ne;ne="Enjoy your subscription.";let te;te="Your purchase was canceled";let oe;oe="Your purchase failed";let _e;_e=" Your purchase was successful. ";let re;re="Note: ";let ae;ae="Your purchase is linked to";let se;se="Be sure to ";let le;le="Log In with this account ";let ce;ce="whenever you want to access it";let de;de="Continue";let Se;Se="Your purchase was canceled";let Ce;Ce="Please try again later.";let pe;pe="Continue";let me;me="Your purchase failed";let ue;ue="Please try again later.";let ge;ge="Continue";let I;I="Continue";let ye;
5ye="Thank you for your purchase!";let ve;ve="Your purchase was canceled";let xe;return xe="Your purchase failed",[t,e,r,c,T,g,F,B,U,z,X,D,k,V,Y,j,W,q,Z,A,Q,ee,ie,ne,te,oe,_e,re,ae,se,le,ce,de,Se,Ce,pe,me,ue,ge,I,ye,ve,xe,[1,"loading-progress"],[1,"container"],[3,"color","diameter","strokeWidth"],[1,"searchTitle"],[1,"box-custom-grid"],[1,"payment-confirmation"],["appearance","outlined",1,"purchase-status"],[3,"click"],[1,"purchase-status","custom-card"],[1,"card-center-content"],[1,"material-symbols-outlined","span-custom-color"],[1,"title"],[1,"subtitle-second"],[1,"bundle-title",3,"click"],[1,"line"],[1,"flex-text"],[1,"subtitle"],[1,"account"],[1,"highlighted-text"],[1,"material-symbols-outlined","span-failure-custom-color"],[1,"line-no-margin"],[1,"custom-btn",3,"click"],[1,"thank-you",3,"ngClass"],[1,"card-center-content","remove-gap"],[1,"user-not-login-message"],[1,"btn",3,"routerLink"]];},template:function(e,r){e&1&&C(0,_a,4,3,"div",43)(1,$a,7,2,"div",44),e&2&&p(r.loading()?0:1);},dependencies:[Ke,ze,ci,di,Rn,In,Mn,he,Me,Ee,Fe,Ki],styles:['.payment-confirmation[_ngcontent-%COMP%]{padding-top:80px}.purchase-status[_ngcontent-%COMP%]{padding-top:20px;margin:auto}button[_ngcontent-%COMP%]{width:120px;padding:8px;border-radius:4px;color:var(--grey-scale-grey-common-primary-button-text);background-color:var(--primary-primary-800-main-brand);border:none;font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none;cursor:pointer}.card-center-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1rem;gap:20px}.card-center-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.card-center-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   .highlighted-text[_ngcontent-%COMP%]{font-weight:700}.card-center-content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:bolder;font-style:normal;line-height:23px;text-decoration:none;color:var(--grey-scale-grey-800-primary);text-align:center}.card-center-content[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:bolder;font-style:normal;line-height:23px;text-decoration:none;color:var(--grey-scale-grey-600-secondary);font-weight:400;text-align:center}.card-center-content[_ngcontent-%COMP%]   .span-custom-color[_ngcontent-%COMP%]{font-size:44px;color:var(--supporting-success)}.card-center-content[_ngcontent-%COMP%]   .span-failure-custom-color[_ngcontent-%COMP%]{font-size:44px;color:var(--supporting-failure)}.box-custom-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]{margin-top:20px;background-color:transparent!important;border:1px solid var(--grey-scale-grey-300);justify-content:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;padding:16px 24px;width:494px}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px!important}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]{border-top:1px solid var(--grey-scale-grey-300);display:flex;flex-direction:column;justify-content:center;align-items:center}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--supporting-gift-sub);font-size:.875rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:20px;text-decoration:none;margin-top:10px}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   .user-not-login-message[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{max-width:280px;max-height:37px;height:100%;width:100%;padding:8px 12px;border:none;border-radius:4px;background-color:var(--primary-primary-800-main-brand);color:var(--grey-scale-grey-000-white);text-align:center;cursor:pointer;outline:none}.box-custom-grid[_ngcontent-%COMP%]   .thank-you[_ngcontent-%COMP%]   .remove-gap[_ngcontent-%COMP%]{gap:0!important}.box-custom-grid[_ngcontent-%COMP%]   .custom-width[_ngcontent-%COMP%]{width:90%!important}.subtitle-second[_ngcontent-%COMP%]{font-size:1rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:400;font-style:normal;line-height:24px;text-decoration:none}.subtitle-second[_ngcontent-%COMP%]   .bundle-title[_ngcontent-%COMP%]{color:var(--supporting-link);cursor:pointer}.custom-card[_ngcontent-%COMP%]{background-color:transparent;box-shadow:none}.line[_ngcontent-%COMP%]{border:1px solid var(--grey-scale-grey-300);width:60%;margin:10px 0}.line-no-margin[_ngcontent-%COMP%]{border:1px solid var(--grey-scale-grey-300);width:60%}.flex-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:center;margin-bottom:20px}.flex-text[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;color:var(--grey-scale-grey-600-secondary);font-weight:400;text-align:center}.flex-text[_ngcontent-%COMP%]   .account[_ngcontent-%COMP%]{color:var(--primary-primary-900);font-size:1.25rem;font-family:Roboto,Noto Sans Devanagari,serif;font-weight:700;font-style:normal;letter-spacing:.38px;text-decoration:none;font-weight:500}.material-symbols-outlined[_ngcontent-%COMP%]{font-variation-settings:"FILL" 1,"wght" 400,"GRAD" 0,"opsz" 24}.custom-btn[_ngcontent-%COMP%]{width:199px!important;height:40px!important}'],changeDetection:0});};var Cd=[{path:"",component:gi},{path:"purchase-confirmation",component:Li},{path:"gifts",component:Pi,resolve:{razorpay:ri}},{path:"india-subscriptions",component:Ai,resolve:{razorpay:ri}}
5,{path:"nepal-subscriptions",component:xi},{path:"sponsorship",component:Ti,resolve:{stripe:ri}},{path:"subscriptions",component:Ii,resolve:{stripe:ri}},{path:"**",redirectTo:"/store"}];export{Cd as storeRoutes};/**i18n:9329bb7fbf100b7bae35e37bb015b70e55486adb3449bfabeaea9a1e68803427*/

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.