vendor: 4,879 bytes, line 1
1import{r,b as h,j as A}from"./app-Dpdn6RkY.js";import{u as w}from"./primary-button-Cc1Q7518.js";function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var M=globalThis!=null&&globalThis.document?r.useLayoutEffect:()=>{},C=h[" useInsertionEffect ".trim().toString()]||M;function $({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[o,u,c]=O({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:o;{const m=r.useRef(e!==void 0);r.useEffect(()=>{const d=m.current;d!==i&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${i?"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.`),m.current=i},[i,s])}const f=r.useCallback(m=>{var d;if(i){const l=R(m)?m(e):m;l!==e&&((d=c.current)==null||d.call(c,l))}else u(m)},[i,e,u,c]);return[a,f]}function O({defaultProp:e,onChange:t}){const[n,s]=r.useState(e),o=r.useRef(n),u=r.useRef(t);return C(()=>{u.current=t},[t]),r.useEffect(()=>{var c;o.current!==n&&((c=u.current)==null||c.call(u,n),o.current=n)},[n,o]),[n,s,u]}function R(e){return typeof e=="function"}function j(e,t){const n=r.createContext(t),s=u=>{const{children:c,...i}=u,a=r.useMemo(()=>i,Object.values(i));return A.jsx(n.Provider,{value:a,children:c})};s.displayName=e+"Provider";function o(u){const c=r.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[s,o]}function L(e,t=[]){let n=[];function s(u,c){const i=r.createContext(c),a=n.length;n=[...n,c];const f=d=>{var S;const{scope:l,children:p,...N}=d,v=((S=l==null?void 0:l[e])==null?void 0:S[a])||i,x=r.useMemo(()=>N,Object.values(N));return A.jsx(v.Provider,{value:x,children:p})};f.displayName=u+"Provider";function m(d,l){var v;const p=((v=l==null?void 0:l[e])==null?void 0:v[a])||i,N=r.useContext(p);if(N)return N;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${u}\``)}return[f,m]}const o=()=>{const u=n.map(c=>r.createContext(c));return function(i){const a=(i==null?void 0:i[e])||u;return r.useMemo(()=>({[`__scope${e}`]:{...i,[e]:a}}),[i,a])}};return o.scopeName=e,[s,g(o,...t)]}function g(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const c=s.reduce((i,{useScope:a,scopeName:f})=>{const d=a(u)[`__scope${f}`];return{...i,...d}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function E(e,t){return r.useReducer((n,s)=>t[n][s]??n,e)}var T=e=>{const{present:t,children:n}=e,s=b(t),o=typeof n=="function"?n({present:s.isPresent}):r.Children.only(n),u=w(s.ref,y(o));return typeof n=="function"||s.isPresent?r.cloneElement(o,{ref:u}):null};T.displayName="Presence";function b(e){const[t,n]=r.useState(),s=r.useRef(null),o=r.useRef(e),u=r.useRef("none"),c=e?"mounted":"unmounted",[i,a]=E(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const f=P(s.current);u.current=i==="mounted"?f:"none"},[i]),M(()=>{const f=s.current,m=o.current;if(m!==e){const l=u.current,p=P(f);e?a("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?a("UNMOUNT"):a(m&&l!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),M(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,d=p=>{const v=P(s.current).includes(p.animationName);if(p.target===t&&v&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},l=p=>{p.target===t&&(u.current=P(s.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:r.useCallback(f=>{s.current=f?getComputedStyle(f):null,n(f)},[])}}function P(e){return(e==null?void 0:e.animationName)||"none"}function y(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function D(e){const t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}export{T as P,M as a,L as b,_ as c,D as d,j as e,$ as u};
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.