1import{o as e,q as n,as as o,c as t,e as i,h as r,az as l,aC as s,b as a,aD as d,ag as f,aE as y,aA as p,r as c}from"./client-c7cf1e30.js";import{unauthorizedReducer as u}from"./actions-571e1b1f.js";const m="401",g="login",k="clearValidationTokenInfo",C="refresh_token";let I=null,h=0,E=0;function*T(){for(;;){const e=yield t("endpointComplete");"refresh"===e.endpointId||"ccRefreshUser"===e.endpointId||"verify"===e.endpointId?h=Date.now():E=Date.now()}}function*b(e){const n=yield i({...e,endpointId:"getCurrentProfile"});if(!0===n.ok){const n=yield r();if(l(n))return e.payload={},yield i({...e,endpointId:"listSiteProperties"})}return n}function*v(){for(;;){let e=yield r(f);for(;e;){if(E>h){const e=yield r(y);if(e){const n={[C]:e};yield p({type:"refresh",payload:n})}else yield p({type:"refresh"})}yield c(3e4),e=yield r(f)}yield t(["loginComplete","registerProfileComplete"])}}function*w(e){return null===I&&(I=yield s(v)),yield a([b(e),i({...e,endpointId:"getCart"})])}function*x(e){const n=yield i(e),o=yield r(d);if(!0===n.ok&&!o)for(const n of yield w(e))if(!1===n.ok)return n;return n}var D={reducer:e({configRepository:n({[g]:(e,{payload:{rememberUserEmail:n=!1}})=>{"string"==typeof n&&(n="true"===n.toLowerCase());const{settings:o={}}=e;return{...e,settings:{...o,rememberMeEnabled:n}}}}),clientRepository:e({context:e({session:n({[m]:u,[k]:e=>({...e,token:null,tokenExpires:null,tokenType:null,validationToken:null,validationTokenExpiryTime:null})})})})}),*saga(){yield o("login",x)}};export{D as default,b as getCurrentProfileSaga,w as initAuthenticatedSaga,x as loginSaga,T as registerEndpointsInvokedTime}; 2//# sourceMappingURL=login-bd8aa0b1.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.