1import{o as e,q as s,b as t,a as o,as as r,aD as n,e as i,w as a}from"./client-c7cf1e30.js";const c="401",l="logoutSuccess",u="clearUsername",p=e=>(s,t)=>!0===t.isExternalEndpoint?s:e(s,t),d=p((()=>({}))),g=(y=({rememberMe:e=null})=>({rememberMe:e}),(e,s)=>!0===s.isExternalEndpoint||"login"===s.endpointId&&n(e)?e:y(e,s));var y;const m=p((e=>({...e,giftWithPurchaseMessages:{},orders:{},shippingMethods:{}}))),f=p(((e,{profiles:s={}})=>{let t={...e,profiles:{anonymous:s.anonymous},secondaryAddresses:{},savedCards:{}};return e.organizations&&(t={...t,organizations:{}}),e.roles&&(t={...t,roles:{}}),e.accessRights&&(t={...t,accessRights:{}}),e.contactRequests&&(t={...t,contactRequests:{}}),e.contactInfos&&(t={...t,contactInfos:{}}),e.siteProperties&&(t={...t,siteProperties:{}}),t})),h=p((e=>({...e,returns:{}}))),R=p((e=>{let s={...e};return e?.currentOrganization&&(s={...s,currentOrganization:null}),s})),b=p((e=>{let s={...e};return e.purchaseLists&&(s={...s,purchaseLists:{}}),s}));function*L(e){const s=yield i(e);return!0===s.ok?yield a({...e,type:l}):yield a({type:c}),s}function*M(e){yield a({...e,type:l})}var x={reducer:e({orderRepository:s({[c]:m,[l]:m}),profileRepository:s({[c]:f,[l]:f}),purchaseListRepository:s({[c]:b,[l]:b}),clientRepository:e({context:e({global:s({[c]:R,[l]:R}),session:s({[c]:g,[l]:d,[u]:e=>({...e,rememberMe:{}})})})}),csrRepository:s({[c]:h,[l]:h})}),*saga(){yield t([o("logout",L),r("ssoLogin",i),r("openIdLogout",M)])}};export{d as clearReducer,x as default,R as expireGlobalContextReducer,m as expireOrderReducer,f as expireProfileReducer,b as expirePurchaseListReducer,h as expireReturnReducer,g as unauthorizedReducer}; 2//# sourceMappingURL=actions-571e1b1f.js.map
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.