vendor: 3,398 bytes, lines 1-2
1import{r as i,a as C}from"./icons-CjXQEFTa.js";import{r as w}from"./account-action-styles-Yym2h9x3.js";import{c as y}from"./_empty.reset-password-DX3By_ya.js";import{j as m}from"./_app.account.orders-B0QsRrI4.js";var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A=E.reduce((e,r)=>{const t=y(`Primitive.${r}`),u=i.forwardRef((c,s)=>{const{asChild:n,...o}=c,f=n?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(f,{...o,ref:s})});return u.displayName=`Primitive.${r}`,{...e,[r]:u}},{});function D(e,r){e&&w.flushSync(()=>e.dispatchEvent(r))}function M(e,r){const t=i.createContext(r),u=s=>{const{children:n,...o}=s,f=i.useMemo(()=>o,Object.values(o));return m.jsx(t.Provider,{value:f,children:n})};u.displayName=e+"Provider";function c(s){const n=i.useContext(t);if(n)return n;if(r!==void 0)return r;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[u,c]}function N(e,r=[]){let t=[];function u(s,n){const o=i.createContext(n),f=t.length;t=[...t,n];const d=a=>{const{scope:p,children:h,...v}=a,S=p?.[e]?.[f]||o,b=i.useMemo(()=>v,Object.values(v));return m.jsx(S.Provider,{value:b,children:h})};d.displayName=s+"Provider";function l(a,p){const h=p?.[e]?.[f]||o,v=i.useContext(h);if(v)return v;if(n!==void 0)return n;throw new Error(`\`${a}\` must be used within \`${s}\``)}return[d,l]}const c=()=>{const s=t.map(n=>i.createContext(n));return function(o){const f=o?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...o,[e]:f}}),[o,f])}};return c.scopeName=e,[u,P(c,...r)]}function P(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const u=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(s){const n=u.reduce((o,{useScope:f,scopeName:d})=>{const a=f(s)[`__scope${d}`];return{...o,...a}},{});return i.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return t.scopeName=r.scopeName,t}var x=globalThis?.document?i.useLayoutEffect:()=>{},g=C[" useInsertionEffect ".trim().toString()]||x;function k({prop:e,defaultProp:r,onChange:t=()=>{},caller:u}){const[c,s,n]=$({defaultProp:r,onChange:t}),o=e!==void 0,f=o?e:c;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const a=l.current;a!==o&&console.warn(`${u} is changing from ${a?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=o},[o,u])}const d=i.useCallback(l=>{if(o){const a=z(l)?l(e):l;a!==e&&n.current?.(a)}else s(l)},[o,e,s,n]);return[f,d]}function $({defaultProp:e,onChange:r}){const[t,u]=i.useState(e),c=i.useRef(t),s=i.useRef(r);return g(()=>{s.current=r},[r]),i.useEffect(()=>{c.current!==t&&(s.current?.(t),c.current=t)},[t,c]),[t,u,s]}function z(e){return typeof e=="function"}function B(e){const[r,t]=i.useState(void 0);return x(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const u=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const s=c[0];let n,o;if("borderBoxSize"in s){const f=s.borderBoxSize,d=Array.isArray(f)?f[0]:f;n=d.inlineSize,o=d.blockSize}else n=e.offsetWidth,o=e.offsetHeight;t({width:n,height:o})});return u.observe(e,{box:"border-box"}),()=>u.unobserve(e)}else t(void 0)},[e]),r}export{A as P,x as a,B as b,N as c,D as d,M as e,k as u}; 2//# sourceMappingURL=index-DG2n_LsU.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.