PageSourceSearch

https://www.costco.com.au/spartacus/assets/chunk-OQ4Y2D57.js

js costco.com.au collected 2026-10-02 06:08:13 UTC 2,589 bytes, 1 lines download raw bytes

1import{c as v,d as g}from"./chunk-BEHWAJ2I.js";import{a as d}from"./chunk-YGD5LXH5.js";import{Be as U,Df as S,Fe as A,Gf as E,H as n,Kd as I,R as l,ga as f,ha as h,ka as o,p as a,sa as u,u as m,v as s,va as p}from"./chunk-ZIECK5QA.js";var D=(()=>{let i=class i extends E{constructor(e){super(e),this.store=e}add(e,r){super.add(e,r)}remove(e,r){super.remove(e,r)}addMessage(e,r){super.add(e,r)}removeMessage(e,r){super.remove(e,r)}removeAllMessages(){for(let e of Object.keys(d)){let r=e;this.removeMessage(d[r])}}};i.\u0275fac=function(r){return new(r||i)(p(I))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var N=function(t){return t.PRIMARY="PRIMARY",t.SPOUSE="SPOUSE",t.ADDON="ADDON",t}(N||{}),O=function(t){return t.GOLD="GOLD",t.BUSINESS="BUSINESS",t.GOLD_EXECUTIVE="GOLD_EXECUTIVE",t.BUSINESS_EXECUTIVE="BUSINESS_EXECUTIVE",t.ONLINE_SUBSCRIPTION="ONLINE_SUBSCRIPTION",t.EMPLOYEE="EMPLOYEE",t}(O||{}),y="rewardsAvailable",R="membershipUpgradeAvailable",x=(()=>{let i=class i{constructor(e,r,c){this.userAccountFacade=e,this.userIdService=r,this.eventService=c}get(){return this.userAccountFacade.get().pipe(s(e=>e||{}))}hasRole(e){return this.get().pipe(n(r=>r.roles&&r.roles.length>0),s(r=>r.roles.find(c=>c.toUpperCase()===e.toUpperCase())!==void 0),f(1))}hasAnonymousRole(){return this.get().pipe(s(e=>!e.roles||e.roles.length===0))}isAnonymousUser(){return this.userIdService.getUserId().pipe(s(e=>e===U))}getDefaultAddress(){return this.isAnonymousUser().pipe(o(e=>e?a(void 0):this.get().pipe(n(r=>!!r?.uid),s(r=>r.defaultAddress))))}isOnlineOnlyMember(){return this.get().pipe(n(e=>!!e.memberType),s(e=>e.memberType.toUpperCase()===O.ONLINE_SUBSCRIPTION))}isInternationalMember(){return this.isAnonymousUser().pipe(o(e=>e?a(void 0):this.get().pipe(n(r=>"isInternationalMember"in r),s(r=>r.isInternationalMember))))}isRewardsAvailable(){return this.isAnonymousUser().pipe(o(e=>e?a(!1):this.get().pipe(n(r=>y in r),s(r=>r.rewardsAvailable))))}isMembershipUpgradeAvailable(){return this.isAnonymousUser().pipe(o(e=>e?a(!1):this.get().pipe(n(r=>R in r),s(r=>r.membershipUpgradeAvailable))))}isMemberVerified(){return this.isAnonymousUser().pipe(o(e=>e?a(!1):this.get().pipe(n(r=>"idVerified"in r),s(r=>r.idVerified))))}reloadUser(){return this.isAnonymousUser().pipe(o(e=>e?this.get():(this.eventService.dispatch(void 0,g),this.get().pipe(h(1),m(1e4)))),l(1))}};i.\u0275fac=function(r){return new(r||i)(p(v),p(A),p(S))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();export{D as a,N as b,O as c,x as d};

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.