PageSourceSearch

https://static-v4.bag2bag.in/chunk-D3PMJBFW.js

js bag2bag.in collected 2026-10-02 12:25:58 UTC 11,557 bytes, 1 lines download raw bytes

1import{a as J}from"./chunk-2CORNZ4Z.js";import{a as W,b as B,c as H,d as L}from"./chunk-YH5XXXX2.js";import{b as G}from"./chunk-YKMRCUPE.js";import"./chunk-KAYLHNSB.js";import{a as q}from"./chunk-XY2HXWW2.js";import"./chunk-MAWTGSOV.js";import"./chunk-YX5644MK.js";import"./chunk-YNFHIKTY.js";import{a as O}from"./chunk-QTKO4OJL.js";import"./chunk-KW7DBSQZ.js";import"./chunk-WOCNH4S2.js";import"./chunk-QUJFQN2Y.js";import"./chunk-CBFCXQQU.js";import"./chunk-XONEATYL.js";import"./chunk-2U7I3RVY.js";import"./chunk-GPFZFKHR.js";import"./chunk-AL7KSTRH.js";import"./chunk-6K6CFIK5.js";import{l as $}from"./chunk-FBE7CBTX.js";import"./chunk-VBHKAOCH.js";import{d as j}from"./chunk-G6NUINFV.js";import{b as k}from"./chunk-ACYRCTM3.js";import{a as F}from"./chunk-QILK5OU2.js";import{a as v}from"./chunk-3ZWQCLTE.js";import"./chunk-IGBZWKDE.js";import"./chunk-LN4SZHFK.js";import"./chunk-WX4XIJKH.js";import"./chunk-XYVMHRXA.js";import"./chunk-UAYYDAPC.js";import"./chunk-N4V3NAGB.js";import"./chunk-VZWY4NEG.js";import"./chunk-WI5MSH4N.js";import"./chunk-DQIYUWUV.js";import"./chunk-CKP3SGE2.js";import"./chunk-EBURTGYG.js";import{X as N,Za as z}from"./chunk-2XT7CFQ4.js";import"./chunk-FEOELD27.js";import"./chunk-TPTHGKB6.js";import"./chunk-QJGIS7D3.js";import"./chunk-TGZ4QTSQ.js";import"./chunk-7WB7YB25.js";import"./chunk-7KGURMOZ.js";import{Ja as I,aa as A}from"./chunk-GDICY5PE.js";import"./chunk-J4AQYUSP.js";import{$b as P,Ea as b,Fb as S,Ic as M,Kb as m,Nc as l,Oc as R,Pc as T,Zb as f,_c as U,bc as w,cc as y,dc as D,ec as s,fc as i,gc as r,hc as _,ka as x,lc as c,mc as d,nb as o,nc as C,nd as E,wb as h,zc as p}from"./chunk-UHCKRBMZ.js";import"./chunk-NWGRQJNB.js";import"./chunk-WDBT6XOS.js";import"./chunk-I7HT3WV2.js";import"./chunk-NJ6U53JR.js";import"./chunk-IGDUUSDA.js";import"./chunk-4WFVMWDK.js";import"./chunk-I7A5XM6S.js";import"./chunk-K7C27B2F.js";import"./chunk-PVMEIX5M.js";import"./chunk-DVVH2KKN.js";import"./chunk-NV3QH4JK.js";import"./chunk-42C7ZIID.js";import"./chunk-YJXU6CME.js";function Q(e,n){e&1&&C(0)}function V(e,n){if(e&1&&(i(0,"ion-content",6)(1,"div")(2,"app-new-mobile-header",7),c(3,8),i(4,"div",9),l(5,"My Membership and Rewards"),r(),d(),r()(),i(6,"div",10),_(7,"lib-user-tabs"),r(),m(8,Q,1,0,"ng-container",11),r()),e&2){p(3);let t=M(3);s("fullscreen",!0),o(2),s("hmColor","secondary")("showClose",!1),o(6),s("ngTemplateOutlet",t)}}function X(e,n){e&1&&(c(0),m(1,V,9,4,"ion-content",5),d())}function Y(e,n){e&1&&C(0)}function Z(e,n){if(e&1&&(c(0),i(1,"app-new-mobile-header",7),c(2,8),i(3,"div",9),l(4,"My Membership and Rewards"),r(),d(),r(),i(5,"div")(6,"div",10),_(7,"lib-user-tabs"),r(),m(8,Y,1,0,"ng-container",11),r(),d()),e&2){p(2);let t=M(3);o(),s("hmColor","secondary")("showClose",!1),o(7),s("ngTemplateOutlet",t)}}function ee(e,n){e&1&&(c(0),m(1,X,2,0,"ng-container",3)(2,Z,9,3,"ng-container",4),d())}function te(e,n){e&1&&C(0)}function ne(e,n){if(e&1&&(i(0,"div",12)(1,"div",13),m(2,te,1,0,"ng-container",11),r()()),e&2){p();let t=M(3);o(2),s("ngTemplateOutlet",t)}}function ie(e,n){if(e&1&&(i(0,"div",15),_(1,"free-stay-stats",26),r()),e&2){let t=p(2);o(),s("freeStayStats",t.freeStayStats())("showAvailableFreeStays",t.showAvailableFreeStays())("userInfo",t.user)("termsAndConditions",t.termsAndConditions())}}function re(e,n){if(e&1&&(i(0,"div",22)(1,"div",27),_(2,"img",28),r()()),e&2){let t=p(2);o(2),s("ngSrc",t.membershipData==null||t.membershipData.image==null?null:t.membershipData.image.path)("alt",t.membershipData==null||t.membershipData.image==null?null:t.membershipData.image.alt)}}function ae(e,n){if(e&1&&(i(0,"div",25),l(1),r()),e&2){let t=n.$implicit;o(),T(" ",t," ")}}function oe(e,n){if(e&1&&(i(0,"div",14),f(1,ie,2,4,"div",15),i(2,"section",16)(3,"div",17)(4,"div",18)(5,"div",19),l(6,"My Membership"),r()()(),i(7,"div",20)(8,"div",21),f(9,re,3,2,"div",22),i(10,"div")(11,"div",23)(12,"div",19),l(13),r(),i(14,"div",24),y(15,ae,2,1,"div",25,w),r()()()()()()()),e&2){let t=p();o(),P(t.freeStayStats()&&(t.user!=null&&t.user._id)?1:-1),o(8),P(!(t.membershipData==null||t.membershipData.image==null)&&t.membershipData.image.path?9:-1),o(4),R(t.membershipData==null?null:t.membershipData.title),o(2),D(t.membershipData==null||t.membershipData.benefits==null?null:t.membershipData.benefits.rewards)}}var De=(()=>{let n=class n{constructor(a,g,u,K){this.modalController=a,this.userDashboardService=g,this.toastService=u,this.b2bDeviceUtilService=K,this.isServer=!1,this.isMobileApp=v.mobileAp
1p,this.freeStayStats=b(null),this.showAvailableFreeStays=b(!0),this.termsAndConditions=b(!0),this.environment=v,this.httpClientService=x(k),this.isServer=this.b2bDeviceUtilService?.isServer()}ngOnInit(){this.b2bDeviceUtilService.isServer()||this.init(),this.compData?.loaded&&this.compData?.loaded($?.LOADED)}init(){this.getUserDataSubscription$=this.userDashboardService.getUserData().subscribe({next:a=>{this.user=a,this.callUserStatsApi()},error:a=>{this.toastService.showApiError(a)}}),this.getMembership()}getMembership(){this.membershipDataSubscription$=this.userDashboardService.getUserMembershipData().subscribe({next:a=>{this.membershipData=a},error:a=>{}})}callUserStatsApi(){this.freeStayStatsSubscription=this.httpClientService.get("user-service/fetch/user-rewards/stats",{}).subscribe({next:a=>{a?.length===1&&this.freeStayStats.set(a[0]?.userStats)},error:a=>{}})}ngOnDestroy(){this.getUserDataSubscription$&&this.getUserDataSubscription$.unsubscribe(),this.freeStayStatsSubscription&&this.freeStayStatsSubscription.unsubscribe()}};n.\u0275fac=function(g){return new(g||n)(h(z),h(O),h(j),h(F))},n.\u0275cmp=S({type:n,selectors:[["lib-user-membership-rewards"]],inputs:{compData:"compData"},features:[U([O])],decls:4,vars:0,consts:[["membershipRewardsTemplate",""],[4,"appDesktopNoRender"],["class","",4,"appDesktopRender"],[4,"appWebsiteNoRender"],[4,"appWebsiteRender"],[3,"fullscreen",4,"appDesktopNoRender"],[3,"fullscreen"],[3,"hmColor","showClose"],["mainMiddleContainer",""],[1,"page-title"],[1,"tab-body"],[4,"ngTemplateOutlet"],[1,""],[1,"desktop-container"],[1,"membership-template"],[1,"free-stay-stats-wrap"],[1,"membership-card"],[1,"header"],[1,"info"],[1,"title"],[1,"membership-details"],[1,"membership-img"],[1,"img-wrap"],[1,"membership-list"],[1,"contents"],[1,"benefits"],[3,"freeStayStats","showAvailableFreeStays","userInfo","termsAndConditions"],[1,"img"],["width","294","height","376",3,"ngSrc","alt"]],template:function(g,u){g&1&&m(0,ee,3,0,"ng-container",1)(1,ne,3,1,"div",2)(2,oe,17,3,"ng-template",null,0,E)},dependencies:[N,G,I,L,H,A,B,W,q,J],styles:['[_nghost-%COMP%]   ion-card[_ngcontent-%COMP%]{border-radius:10px;margin:0}[_nghost-%COMP%]   ion-content[_ngcontent-%COMP%]{--padding-bottom: env(safe-area-inset-bottom)}@media screen and (max-width:991px){[_nghost-%COMP%]   .tab-body[_ngcontent-%COMP%]{margin:20px 15px 8px}}[_nghost-%COMP%]   ion-card-content[_ngcontent-%COMP%]{padding:0}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-template[_ngcontent-%COMP%]{padding:0 10px;margin:20px 0}}[_nghost-%COMP%]   .free-stay-stats-wrap[_ngcontent-%COMP%]{margin-bottom:20px;min-height:322px}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]{background-color:var(--ion-color-primary);border-radius:10px;border:1px solid #ddd;margin-bottom:20px}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{padding:20px 30px;border-bottom:1px solid #ddd}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{padding:10px 15px}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:var(--primary-color);color:var(--font-size-16)}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]{padding:40px 20px}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]{padding:20px}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]{display:grid;grid-template-columns:20% 80%;gap:20px;align-items:flex-start}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]{border-radius:5px;background:linear-gradient(180deg,#ffeba3,#ffeba300)}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]{margin-bottom:20px}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:120px;height:150px;margin:auto}@media screen and (max-width:1350px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:75px;height:140px}}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:100px;height:170px}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .membership-list[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:var(--font-size-18);font-family:var(--ion-font-family-extrabold);color:var(--secondary-color);margin-bottom:20px}@media screen and (max-width:991px){[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .membership-list[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:var(--font-size-16)}}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .membership-list[_ngcontent-%COMP%]   .contents[_ngcontent-%COMP%]   .benefits[_ngcontent-%COMP%]{font-size:var(--font-size-13);color:var(--primary-color);margin-bottom:10px;position:relative;margin-left:10px}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .membership-list[_ngcontent-%COMP%]   .contents[_ngcontent-%COMP%]   .benefits[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:-10px;top:7px;background:#3a3a3a;border-radius:50%;width:3px;height:3px}[_nghost-%COMP%]   .membership-card[_ngcontent-%COMP%]   .membership-details[_ngcontent-%COMP%]   .membership-img[_ngcontent-%COMP%]   .membership-list[_ngcontent-%COMP%]   .contents[_ngcontent-%COMP%]   .benefits[_ngcontent-%COMP%]:last-child{margin-bottom:0}  .free-stay-stats-wrap .userTravel{margin-top:0!important}  .free-stay-stats-wrap .userTravel .loyalty-card{margin-top:0!important}']});let e=n;return e})();export{De as default};

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.