1import{c as f}from"./chunk-4MHYHNBE.js";import{Ae as E,Bf as I,Gd as m,H as o,ga as l,ka as a,p as n,sa as u,v as s,va as p,we as c}from"./chunk-ADQO3XXX.js";var d=function(t){return t.MSG_TYPE_CONFIRMATION="[SipGlobalMessage] Confirmation",t.MSG_TYPE_ERROR="[SipGlobalMessage] Error",t.MSG_TYPE_INFO="[SipGlobalMessage] Information",t.MSG_TYPE_WARNING="[SipGlobalMessage] Warning",t.MSG_TYPE_ADDTOCART="[SipGlobalMessage] Add to cart",t.MSG_TYPE_ERROR_MISSING_ADDRESS="[SipGlobalMessage] Error: Missing Address",t}(d||{});var M=(()=>{let i=class i extends I{constructor(r){super(r),this.store=r}add(r,e){super.add(r,e)}remove(r,e){super.remove(r,e)}addMessage(r,e){super.add(r,e)}removeMessage(r,e){super.remove(r,e)}removeAllMessages(){for(let r of Object.keys(d)){let e=r;this.removeMessage(d[e])}}};i.\u0275fac=function(e){return new(e||i)(p(m))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var O=function(t){return t.PRIMARY="PRIMARY",t.SPOUSE="SPOUSE",t.ADDON="ADDON",t}(O||{}),S=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}(S||{}),R="rewardsAvailable",U="membershipUpgradeAvailable",B=(()=>{let i=class i{constructor(r,e){this.userAccountFacade=r,this.userIdService=e,this.BULK_ORDER_ROLE_UID="BULKORDERROLE"}get(){return this.userAccountFacade.get().pipe(s(r=>r||{}))}hasRole(r){return this.get().pipe(o(e=>e.roles&&e.roles.length>0),s(e=>e.roles.find(h=>h.toUpperCase()===r.toUpperCase())!==void 0),l(1))}hasBulkOrderRole(){return this.hasRole(this.BULK_ORDER_ROLE_UID)}hasAnonymousRole(){return this.get().pipe(s(r=>!r.roles||r.roles.length===0))}isAnonymousUser(){return this.userIdService.getUserId().pipe(s(r=>r===c))}getDefaultAddress(){return this.isAnonymousUser().pipe(a(r=>r?n(void 0):this.get().pipe(o(e=>!!e?.uid),s(e=>e.defaultAddress))))}isOnlineOnlyMember(){return this.get().pipe(o(r=>!!r.memberType),s(r=>r.memberType.toUpperCase()===S.ONLINE_SUBSCRIPTION))}isInternationalMember(){return this.isAnonymousUser().pipe(a(r=>r?n(void 0):this.get().pipe(o(e=>"isInternationalMember"in e),s(e=>e.isInternationalMember))))}isRewardsAvailable(){return this.isAnonymousUser().pipe(a(r=>r?n(!1):this.get().pipe(o(e=>R in e),s(e=>e.rewardsAvailable))))}isMembershipUpgradeAvailable(){return this.isAnonymousUser().pipe(a(r=>r?n(!1):this.get().pipe(o(e=>U in e),s(e=>e.membershipUpgradeAvailable))))}isMemberVerified(){return this.isAnonymousUser().pipe(a(r=>r?n(!1):this.get().pipe(o(e=>"idVerified"in e),s(e=>e.idVerified))))}};i.\u0275fac=function(e){return new(e||i)(p(f),p(E))},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();export{d as a,M as b,O as c,S as d,B as e};
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.