PageSourceSearch

https://www.dorothyperkins.com/build/_shared/chunk-RZLDKGLN.js

js dorothyperkins.com collected 2026-09-26 02:57:21 UTC 1,779 bytes, 1 lines download raw bytes

1import{a as S}from"/build/_shared/chunk-DJYF5FUS.js";import{a as R}from"/build/_shared/chunk-5OBEDPFR.js";import{a as h}from"/build/_shared/chunk-H6S7FWVP.js";import{d as f}from"/build/_shared/chunk-T36URGAI.js";var r=f(h());var g=f(R()),b=r.default.createContext({user:void 0,setUser:void 0,isGuest:!0,isPremier:!1,setIsPremier:void 0,isPremierPlus:!1,setIsPremierPlus:void 0,payPlusLimit:void 0,setPayPlusLimit:void 0,userStateResolved:!1}),D=async(t,a,{setUser:c,setPayPlusLimit:n,setIsPremier:i,setIsPremierPlus:o},{refreshDerivedState:d=!0}={})=>{if(t?window.localStorage.setItem("userSession",JSON.stringify(t)):window.localStorage.removeItem("userSession"),c==null||c(t),!d)return;if(!t||t.guest){n==null||n(void 0),i==null||i(!1),o==null||o(!1);return}await Promise.all([fetch(S("/_api/customer/payPlusLimit",a)).then(e=>e.json()).then(e=>n==null?void 0:n(e!=null&&e.limit?e.limit:void 0)).catch(()=>n==null?void 0:n(void 0)),fetch(S("/_api/customer/getCustomer",a)).then(e=>e.json()).then(e=>{var s,l,p;i==null||i(!!((s=e==null?void 0:e.customer)!=null&&s.isPremierAccountActive)),o==null||o(!!((l=e==null?void 0:e.customer)!=null&&l.isPremierAccountActive)&&((p=e==null?void 0:e.customer)==null?void 0:p.premierType)==="PREMIER_PLUS")}).catch(()=>{i==null||i(!1),o==null||o(!1)})])},U=({user:t,setUser:a,isPremier:c,setIsPremier:n,isPremierPlus:i,setIsPremierPlus:o,payPlusLimit:d,setPayPlusLimit:u,userStateResolved:e=!1,children:s})=>{let l=(0,r.useMemo)(()=>(t==null?void 0:t.guest)||(t==null?void 0:t.guest)===void 0,[t==null?void 0:t.guest]);return(0,g.jsx)(b.Provider,{value:{user:t,setUser:a,isGuest:l,isPremier:c,setIsPremier:n,isPremierPlus:i,setIsPremierPlus:o,payPlusLimit:d,setPayPlusLimit:u,userStateResolved:e},children:s})};export{b as a,D as b,U as c};

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.