@isardsat/editorial-admin 6.20.0 → 6.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/{clear-button-DDlOMSPc.js → clear-button-DehdxgmB.js} +1 -1
- package/build/client/assets/dashboard-CXsgx-dc.js +1 -0
- package/build/client/assets/dashboard._collection._document-BiIWfKiL.js +1 -0
- package/build/client/assets/dashboard._collection.new-PercY47A.js +1 -0
- package/build/client/assets/{dashboard._layout-BcvvHYJk.js → dashboard._layout-BLI8ZXFq.js} +1 -1
- package/build/client/assets/{date-picker-BdkIUMlY.js → date-picker-6Pg8PIj8.js} +1 -1
- package/build/client/assets/{datetime-picker-D5KjBZgW.js → datetime-picker-XkOBOVOZ.js} +1 -1
- package/build/client/assets/{home-DkI84frB.js → home-BsBPywQn.js} +1 -1
- package/build/client/assets/{index-6Qui8hKi.js → index-B5ynPIRP.js} +1 -1
- package/build/client/assets/{index-DVXSV0SY.js → index-CU6_POhE.js} +1 -1
- package/build/client/assets/{index-F1mp4zFe.js → index-DutSppa2.js} +2 -2
- package/build/client/assets/{index-BWbeFPrX.js → index-nnJosT4e.js} +1 -1
- package/build/client/assets/itemForm-BLyILW73.js +8 -0
- package/build/client/assets/{manifest-31b20659.js → manifest-9cecc256.js} +1 -1
- package/build/client/assets/{markdownEditor-DmTXZRsO.js → markdownEditor-CZVz5-rL.js} +1 -1
- package/build/client/assets/root-DZYAU5bq.css +1 -0
- package/build/client/assets/{zod-3z1GyiF_.js → zod-DU3Qlmru.js} +1 -1
- package/build/client/index.html +2 -2
- package/package.json +2 -2
- package/build/client/assets/dashboard-Z-q3vTcz.js +0 -1
- package/build/client/assets/dashboard._collection._document-DsM6Ccoi.js +0 -1
- package/build/client/assets/dashboard._collection.new-CSCI2lHu.js +0 -1
- package/build/client/assets/itemForm-DLH0QBUu.js +0 -8
- package/build/client/assets/root-CKQ4Xhj3.css +0 -1
- /package/build/client/assets/{root-BYBo3WgS.js → root-dzmn7V-J.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,p as e,w as j,v as g}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{S as b,L as N}from"./Loading-C1QGFwZC.js";import{B as w}from"./button-BEFuP7Ru.js";import{u as F,a as L,F as v,b as t,c as n,d,e as i,f as m,C as y}from"./zod-
|
|
1
|
+
import{a as u,p as e,w as j,v as g}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{S as b,L as N}from"./Loading-C1QGFwZC.js";import{B as w}from"./button-BEFuP7Ru.js";import{u as F,a as L,F as v,b as t,c as n,d,e as i,f as m,C as y}from"./zod-DU3Qlmru.js";import{I as x}from"./input-C3iFdiD8.js";import{u as C,c,l as S}from"./authSlice-DWtXmmFR.js";import{o as E,s as p,b as k}from"./schemas-CPJfa6mm.js";import"./utils-B48p8Qal.js";import"./loader-circle-BDUbeTTe.js";import"./createLucideIcon-BvSqmaUO.js";import"./index-CbaefyjV.js";import"./index-B5ynPIRP.js";import"./index-DLIEpuwL.js";import"./check-DF0ucE8d.js";const P=E({email:p().nonempty("Please enter your email").email(),password:p().nonempty("Please enter your password"),remember:k()});function A(){"use no memo";const o=C(),r=c(s=>s.auth.isLoading),a=F({resolver:L(P),disabled:r,defaultValues:{email:"",password:"",remember:!1}}),l=u.useCallback(({email:s,password:h,remember:f})=>{o(S({email:s,password:h,remember:f}))},[o]);return e.jsx("div",{className:"flex flex-col",children:e.jsx(v,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(l),className:"space-y-4",children:[e.jsx(t,{control:a.control,name:"email",rules:{required:!0},render:({field:s})=>e.jsxs(n,{children:[e.jsx(d,{className:"flex gap-1 items-baseline",children:"Email"}),e.jsx(i,{children:e.jsx(x,{placeholder:"callasmaria@example.com",...s,autoComplete:"email"})}),e.jsx(m,{})]})}),e.jsx(t,{name:"password",control:a.control,rules:{required:!0},render:({field:s})=>e.jsxs(n,{children:[e.jsx(d,{className:"flex gap-1 items-baseline",children:"Password"}),e.jsx(i,{children:e.jsx(x,{type:"password",...s,autoComplete:"current-password"})}),e.jsx(m,{})]})}),e.jsx(t,{name:"remember",control:a.control,render:({field:s})=>e.jsxs(n,{children:[e.jsx(i,{children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(y,{id:"remember",checked:s.value,onCheckedChange:s.onChange}),e.jsx("label",{htmlFor:"remember",className:"text-sm leading-none",children:"Remember me"})]})}),e.jsx(m,{})]})}),e.jsx(w,{type:"submit",disabled:!a.formState.isValid||r,className:"w-full",children:r?e.jsx(b,{className:"absolute"}):"Login"})]})})})}const Q=j(function(){const r=g(),a=c(s=>s.auth.user),l=c(s=>s.auth.isLoading);return u.useEffect(()=>{a&&r("/admin/dashboard")},[r,a]),l||a?e.jsx(N,{message:"Logging in..."}):e.jsx("div",{className:"flex w-full h-full",children:e.jsxs("div",{className:"self-center space-y-8 w-72 mx-auto",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight leading-none",children:"Editorial Admin"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your details below to login"})]}),e.jsx(A,{})]})})});export{Q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,p as v,B as b}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{u as x,a as C,b as w}from"./index-CbaefyjV.js";import{a as P}from"./index-DLIEpuwL.js";function k(e,t){const n=s.createContext(t),o=i=>{const{children:u,...c}=i,a=s.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:a,children:u})};o.displayName=e+"Provider";function r(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function Z(e,t=[]){let n=[];function o(i,u){const c=s.createContext(u),a=n.length;n=[...n,u];const l=f=>{const{scope:p,children:m,...S}=f,g=p?.[e]?.[a]||c,N=s.useMemo(()=>S,Object.values(S));return v.jsx(g.Provider,{value:N,children:m})};l.displayName=i+"Provider";function d(f,p){const m=p?.[e]?.[a]||c,S=s.useContext(m);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const r=()=>{const i=n.map(u=>s.createContext(u));return function(c){const a=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,R(r,...t)]}function R(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const u=o.reduce((c,{useScope:a,scopeName:l})=>{const f=a(i)[`__scope${l}`];return{...c,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var y=globalThis?.document?s.useLayoutEffect:()=>{},A=b[" useInsertionEffect ".trim().toString()]||y;function G({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,u]=O({defaultProp:t,onChange:n}),c=e!==void 0,a=c?e:r;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${c?"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.`),d.current=c},[c,o])}const l=s.useCallback(d=>{if(c){const f=M(d)?d(e):d;f!==e&&u.current?.(f)}else i(d)},[c,e,i,u]);return[a,l]}function O({defaultProp:e,onChange:t}){const[n,o]=s.useState(e),r=s.useRef(n),i=s.useRef(t);return A(()=>{i.current=t},[t]),s.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function M(e){return typeof e=="function"}function J(e){const[t,n]=s.useState(void 0);return y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let u,c;if("borderBoxSize"in i){const a=i.borderBoxSize,l=Array.isArray(a)?a[0]:a;u=l.inlineSize,c=l.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function $(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var I=e=>{const{present:t,children:n}=e,o=T(t),r=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),i=x(o.ref,_(r));return typeof n=="function"||o.isPresent?s.cloneElement(r,{ref:i}):null};I.displayName="Presence";function T(e){const[t,n]=s.useState(),o=s.useRef(null),r=s.useRef(e),i=s.useRef("none"),u=e?"mounted":"unmounted",[c,a]=$(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=h(o.current);i.current=c==="mounted"?l:"none"},[c]),y(()=>{const l=o.current,d=r.current;if(d!==e){const p=i.current,m=h(l);e?a("MOUNT"):m==="none"||l?.display==="none"?a("UNMOUNT"):a(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=m=>{const g=h(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(a("ANIMATION_END"),!r.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},p=m=>{m.target===t&&(i.current=h(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function h(e){return e?.animationName||"none"}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function j(e){const t=D(e),n=s.forwardRef((o,r)=>{const{children:i,...u}=o,c=s.Children.toArray(i),a=c.find(U);if(a){const l=a.props.children,d=c.map(f=>f===a?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return v.jsx(t,{...u,ref:r,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return v.jsx(t,{...u,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function D(e){const t=s.forwardRef((n,o)=>{const{children:r,...i}=n;if(s.isValidElement(r)){const u=z(r),c=W(i,r.props);return r.type!==s.Fragment&&(c.ref=o?C(o,u):u),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var E=Symbol("radix.slottable");function K(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=E,t}function U(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===E}function W(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...c)=>{const a=i(...c);return r(...c),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function z(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=L.reduce((e,t)=>{const n=j(`Primitive.${t}`),o=s.forwardRef((r,i)=>{const{asChild:u,...c}=r,a=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function X(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}var F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=F.reduce((e,t)=>{const n=w(`Primitive.${t}`),o=s.forwardRef((r,i)=>{const{asChild:u,...c}=r,a=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});export{Y as P,Q as a,q as b,Z as c,I as d,y as e,
|
|
1
|
+
import{a as s,p as v,B as b}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{u as x,a as C,b as w}from"./index-CbaefyjV.js";import{a as P}from"./index-DLIEpuwL.js";function k(e,t){const n=s.createContext(t),o=i=>{const{children:u,...c}=i,a=s.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:a,children:u})};o.displayName=e+"Provider";function r(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function Z(e,t=[]){let n=[];function o(i,u){const c=s.createContext(u),a=n.length;n=[...n,u];const l=f=>{const{scope:p,children:m,...S}=f,g=p?.[e]?.[a]||c,N=s.useMemo(()=>S,Object.values(S));return v.jsx(g.Provider,{value:N,children:m})};l.displayName=i+"Provider";function d(f,p){const m=p?.[e]?.[a]||c,S=s.useContext(m);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const r=()=>{const i=n.map(u=>s.createContext(u));return function(c){const a=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,R(r,...t)]}function R(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const u=o.reduce((c,{useScope:a,scopeName:l})=>{const f=a(i)[`__scope${l}`];return{...c,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var y=globalThis?.document?s.useLayoutEffect:()=>{},A=b[" useInsertionEffect ".trim().toString()]||y;function G({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,u]=O({defaultProp:t,onChange:n}),c=e!==void 0,a=c?e:r;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${c?"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.`),d.current=c},[c,o])}const l=s.useCallback(d=>{if(c){const f=M(d)?d(e):d;f!==e&&u.current?.(f)}else i(d)},[c,e,i,u]);return[a,l]}function O({defaultProp:e,onChange:t}){const[n,o]=s.useState(e),r=s.useRef(n),i=s.useRef(t);return A(()=>{i.current=t},[t]),s.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function M(e){return typeof e=="function"}function J(e){const[t,n]=s.useState(void 0);return y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let u,c;if("borderBoxSize"in i){const a=i.borderBoxSize,l=Array.isArray(a)?a[0]:a;u=l.inlineSize,c=l.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function $(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var I=e=>{const{present:t,children:n}=e,o=T(t),r=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),i=x(o.ref,_(r));return typeof n=="function"||o.isPresent?s.cloneElement(r,{ref:i}):null};I.displayName="Presence";function T(e){const[t,n]=s.useState(),o=s.useRef(null),r=s.useRef(e),i=s.useRef("none"),u=e?"mounted":"unmounted",[c,a]=$(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=h(o.current);i.current=c==="mounted"?l:"none"},[c]),y(()=>{const l=o.current,d=r.current;if(d!==e){const p=i.current,m=h(l);e?a("MOUNT"):m==="none"||l?.display==="none"?a("UNMOUNT"):a(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=m=>{const g=h(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(a("ANIMATION_END"),!r.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},p=m=>{m.target===t&&(i.current=h(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function h(e){return e?.animationName||"none"}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function j(e){const t=D(e),n=s.forwardRef((o,r)=>{const{children:i,...u}=o,c=s.Children.toArray(i),a=c.find(U);if(a){const l=a.props.children,d=c.map(f=>f===a?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return v.jsx(t,{...u,ref:r,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return v.jsx(t,{...u,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function D(e){const t=s.forwardRef((n,o)=>{const{children:r,...i}=n;if(s.isValidElement(r)){const u=z(r),c=W(i,r.props);return r.type!==s.Fragment&&(c.ref=o?C(o,u):u),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var E=Symbol("radix.slottable");function K(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=E,t}function U(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===E}function W(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...c)=>{const a=i(...c);return r(...c),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function z(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=L.reduce((e,t)=>{const n=j(`Primitive.${t}`),o=s.forwardRef((r,i)=>{const{asChild:u,...c}=r,a=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function X(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}var F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=F.reduce((e,t)=>{const n=w(`Primitive.${t}`),o=s.forwardRef((r,i)=>{const{asChild:u,...c}=r,a=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});export{Y as P,Q as a,q as b,Z as c,I as d,y as e,K as f,j as g,J as h,X as i,k as j,G as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,p}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{c as W,u as $,a as z,b as m,d as H,
|
|
1
|
+
import{a as s,p}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{c as W,u as $,a as z,b as m,d as H,f as J}from"./index-B5ynPIRP.js";import{u as N}from"./index-CbaefyjV.js";import{d as S,u as Q,e as Z,A as ee,f as te,m as oe,k as re,l as ne,n as se}from"./index-DutSppa2.js";var[O]=W("Tooltip",[S]),A=S(),G="TooltipProvider",ae=700,D="tooltip.open",[ie,j]=O(G),F=t=>{const{__scopeTooltip:o,delayDuration:e=ae,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:c}=t,i=s.useRef(!0),v=s.useRef(!1),a=s.useRef(0);return s.useEffect(()=>{const d=a.current;return()=>window.clearTimeout(d)},[]),p.jsx(ie,{scope:o,isOpenDelayedRef:i,delayDuration:e,onOpen:s.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:v,onPointerInTransitChange:s.useCallback(d=>{v.current=d},[]),disableHoverableContent:n,children:c})};F.displayName=G;var R="Tooltip",[ce,_]=O(R),B=t=>{const{__scopeTooltip:o,children:e,open:r,defaultOpen:n,onOpenChange:c,disableHoverableContent:i,delayDuration:v}=t,a=j(R,t.__scopeTooltip),d=A(o),[l,f]=s.useState(null),h=Q(),u=s.useRef(0),x=i??a.disableHoverableContent,C=v??a.delayDuration,T=s.useRef(!1),[g,y]=$({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(D))):a.onClose(),c?.(I)},caller:R}),w=s.useMemo(()=>g?T.current?"delayed-open":"instant-open":"closed",[g]),P=s.useCallback(()=>{window.clearTimeout(u.current),u.current=0,T.current=!1,y(!0)},[y]),E=s.useCallback(()=>{window.clearTimeout(u.current),u.current=0,y(!1)},[y]),M=s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>{T.current=!0,y(!0),u.current=0},C)},[C,y]);return s.useEffect(()=>()=>{u.current&&(window.clearTimeout(u.current),u.current=0)},[]),p.jsx(Z,{...d,children:p.jsx(ce,{scope:o,contentId:h,open:g,stateAttribute:w,trigger:l,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{a.isOpenDelayedRef.current?M():P()},[a.isOpenDelayedRef,M,P]),onTriggerLeave:s.useCallback(()=>{x?E():(window.clearTimeout(u.current),u.current=0)},[E,x]),onOpen:P,onClose:E,disableHoverableContent:x,children:e})})};B.displayName=R;var L="TooltipTrigger",U=s.forwardRef((t,o)=>{const{__scopeTooltip:e,...r}=t,n=_(L,e),c=j(L,e),i=A(e),v=s.useRef(null),a=N(o,v,n.onTriggerChange),d=s.useRef(!1),l=s.useRef(!1),f=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(ee,{asChild:!0,...i,children:p.jsx(z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:m(t.onPointerMove,h=>{h.pointerType!=="touch"&&!l.current&&!c.isPointerInTransitRef.current&&(n.onTriggerEnter(),l.current=!0)}),onPointerLeave:m(t.onPointerLeave,()=>{n.onTriggerLeave(),l.current=!1}),onPointerDown:m(t.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:m(t.onFocus,()=>{d.current||n.onOpen()}),onBlur:m(t.onBlur,n.onClose),onClick:m(t.onClick,n.onClose)})})});U.displayName=L;var k="TooltipPortal",[le,ue]=O(k,{forceMount:void 0}),V=t=>{const{__scopeTooltip:o,forceMount:e,children:r,container:n}=t,c=_(k,o);return p.jsx(le,{scope:o,forceMount:e,children:p.jsx(H,{present:e||c.open,children:p.jsx(te,{asChild:!0,container:n,children:r})})})};V.displayName=k;var b="TooltipContent",Y=s.forwardRef((t,o)=>{const e=ue(b,t.__scopeTooltip),{forceMount:r=e.forceMount,side:n="top",...c}=t,i=_(b,t.__scopeTooltip);return p.jsx(H,{present:r||i.open,children:i.disableHoverableContent?p.jsx(q,{side:n,...c,ref:o}):p.jsx(pe,{side:n,...c,ref:o})})}),pe=s.forwardRef((t,o)=>{const e=_(b,t.__scopeTooltip),r=j(b,t.__scopeTooltip),n=s.useRef(null),c=N(o,n),[i,v]=s.useState(null),{trigger:a,onClose:d}=e,l=n.current,{onPointerInTransitChange:f}=r,h=s.useCallback(()=>{v(null),f(!1)},[f]),u=s.useCallback((x,C)=>{const T=x.currentTarget,g={x:x.clientX,y:x.clientY},y=he(g,T.getBoundingClientRect()),w=xe(g,y),P=Te(C.getBoundingClientRect()),E=ye([...w,...P]);v(E),f(!0)},[f]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(a&&l){const x=T=>u(T,l),C=T=>u(T,a);return a.addEventListener("pointerleave",x),l.addEventListener("pointerleave",C),()=>{a.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",C)}}},[a,l,u,h]),s.useEffect(()=>{if(i){const x=C=>{const T=C.target,g={x:C.clientX,y:C.clientY},y=a?.contains(T)||l?.contains(T),w=!Ce(g,i);y?h():w&&(h(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,l,i,d,h]),p.jsx(q,{...t,ref:c})}),[de,fe]=O(R,{isInside:!1}),ve=J("TooltipContent"),q=s.forwardRef((t,o)=>{const{__scopeTooltip:e,children:r,"aria-label":n,onEscapeKeyDown:c,onPointerDownOutside:i,...v}=t,a=_(b,e),d=A(e),{onClose:l}=a;return s.useEffect(()=>(document.addEventListener(D,l),()=>document.removeEventListener(D,l)),[l]),s.useEffect(()=>{if(a.trigger){const f=h=>{h.target?.contains(a.trigger)&&l()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,l]),p.jsx(re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:l,children:p.jsxs(ne,{"data-state":a.stateAttribute,...d,...v,ref:o,style:{...v.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(ve,{children:r}),p.jsx(de,{scope:e,isInside:!0,children:p.jsx(se,{id:a.contentId,role:"tooltip",children:n||r})})]})})});Y.displayName=b;var X="TooltipArrow",K=s.forwardRef((t,o)=>{const{__scopeTooltip:e,...r}=t,n=A(e);return fe(X,e).isInside?null:p.jsx(oe,{...n,...r,ref:o})});K.displayName=X;function he(t,o){const e=Math.abs(o.top-t.y),r=Math.abs(o.bottom-t.y),n=Math.abs(o.right-t.x),c=Math.abs(o.left-t.x);switch(Math.min(e,r,n,c)){case c:return"left";case n:return"right";case e:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xe(t,o,e=5){const r=[];switch(o){case"top":r.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":r.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":r.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":r.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return r}function Te(t){const{top:o,right:e,bottom:r,left:n}=t;return[{x:n,y:o},{x:e,y:o},{x:e,y:r},{x:n,y:r}]}function Ce(t,o){const{x:e,y:r}=t;let n=!1;for(let c=0,i=o.length-1;c<o.length;i=c++){const v=o[c],a=o[i],d=v.x,l=v.y,f=a.x,h=a.y;l>r!=h>r&&e<(f-d)*(r-l)/(h-l)+d&&(n=!n)}return n}function ye(t){const o=t.slice();return o.sort((e,r)=>e.x<r.x?-1:e.x>r.x?1:e.y<r.y?-1:e.y>r.y?1:0),ge(o)}function ge(t){if(t.length<=1)return t.slice();const o=[];for(let r=0;r<t.length;r++){const n=t[r];for(;o.length>=2;){const c=o[o.length-1],i=o[o.length-2];if((c.x-i.x)*(n.y-i.y)>=(c.y-i.y)*(n.x-i.x))o.pop();else break}o.push(n)}o.pop();const e=[];for(let r=t.length-1;r>=0;r--){const n=t[r];for(;e.length>=2;){const c=e[e.length-1],i=e[e.length-2];if((c.x-i.x)*(n.y-i.y)>=(c.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}var Ee=F,Re=B,_e=U,Oe=V,Ae=Y,De=K;export{De as A,Ae as C,Ee as P,Re as R,_e as T,Oe as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,B as Xn,p as S}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{e as Pe,a as $,b as J,i as Kn,u as Gn,c as It,d as et,f as qn,j as Zn,h as Qn}from"./index-6Qui8hKi.js";import{u as ne}from"./index-CbaefyjV.js";import{R as Jn,a as er}from"./index-DLIEpuwL.js";import{_ as Q,B as Wt,C as tr}from"./utils-B48p8Qal.js";var nr=Xn[" useId ".trim().toString()]||(()=>{}),rr=0;function Be(e){const[t,n]=l.useState(nr());return Pe(()=>{n(r=>r??String(rr++))},[e]),e||(t?`radix-${t}`:"")}function ue(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function or(e,t=globalThis?.document){const n=ue(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ir="DismissableLayer",Ge="dismissableLayer.update",sr="dismissableLayer.pointerDownOutside",ar="dismissableLayer.focusOutside",mt,Bt=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=l.useContext(Bt),[u,h]=l.useState(null),p=u?.ownerDocument??globalThis?.document,[,m]=l.useState({}),v=ne(t,C=>h(C)),f=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(g),w=u?f.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,E=ur(C=>{const P=C.target,D=[...c.branches].some(O=>O.contains(P));!x||D||(o?.(C),s?.(C),C.defaultPrevented||a?.())},p),R=fr(C=>{const P=C.target;[...c.branches].some(O=>O.contains(P))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},p);return or(C=>{w===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},p),l.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(mt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pt(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=mt)}},[u,p,n,c]),l.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pt())},[u,c]),l.useEffect(()=>{const C=()=>m({});return document.addEventListener(Ge,C),()=>document.removeEventListener(Ge,C)},[]),S.jsx($.div,{...d,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,R.onFocusCapture),onBlurCapture:J(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,E.onPointerDownCapture)})});$t.displayName=ir;var cr="DismissableLayerBranch",lr=l.forwardRef((e,t)=>{const n=l.useContext(Bt),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx($.div,{...e,ref:o})});lr.displayName=cr;function ur(e,t=globalThis?.document){const n=ue(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){jt(sr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fr(e,t=globalThis?.document){const n=ue(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&jt(ar,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pt(){const e=new CustomEvent(Ge);document.dispatchEvent(e)}function jt(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kn(o,i):o.dispatchEvent(i)}var $e="focusScope.autoFocusOnMount",je="focusScope.autoFocusOnUnmount",gt={bubbles:!1,cancelable:!0},dr="FocusScope",Ht=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=l.useState(null),c=ue(o),u=ue(i),h=l.useRef(null),p=ne(t,f=>d(f)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let f=function(b){if(m.paused||!a)return;const x=b.target;a.contains(x)?h.current=x:Z(h.current,{select:!0})},g=function(b){if(m.paused||!a)return;const x=b.relatedTarget;x!==null&&(a.contains(x)||Z(h.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&Z(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",g);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",g),w.disconnect()}}},[r,a,m.paused]),l.useEffect(()=>{if(a){yt.add(m);const f=document.activeElement;if(!a.contains(f)){const y=new CustomEvent($e,gt);a.addEventListener($e,c),a.dispatchEvent(y),y.defaultPrevented||(hr(yr(Vt(a)),{select:!0}),document.activeElement===f&&Z(a))}return()=>{a.removeEventListener($e,c),setTimeout(()=>{const y=new CustomEvent(je,gt);a.addEventListener(je,u),a.dispatchEvent(y),y.defaultPrevented||Z(f??document.body,{select:!0}),a.removeEventListener(je,u),yt.remove(m)},0)}}},[a,c,u,m]);const v=l.useCallback(f=>{if(!n&&!r||m.paused)return;const g=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(g&&y){const w=f.currentTarget,[b,x]=mr(w);b&&x?!f.shiftKey&&y===x?(f.preventDefault(),n&&Z(b,{select:!0})):f.shiftKey&&y===b&&(f.preventDefault(),n&&Z(x,{select:!0})):y===w&&f.preventDefault()}},[n,r,m.paused]);return S.jsx($.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});Ht.displayName=dr;function hr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function mr(e){const t=Vt(e),n=vt(t,e),r=vt(t.reverse(),e);return[n,r]}function Vt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vt(e,t){for(const n of e)if(!pr(n,{upTo:t}))return n}function pr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gr(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gr(e)&&t&&e.select()}}var yt=vr();function vr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wt(e,t),e.unshift(t)},remove(t){e=wt(e,t),e[0]?.resume()}}}function wt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yr(e){return e.filter(t=>t.tagName!=="A")}var wr="Portal",zt=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=l.useState(!1);Pe(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Jn.createPortal(S.jsx($.div,{...r,ref:t}),s):null});zt.displayName=wr;var He=0;function xr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xt()),document.body.insertAdjacentElement("beforeend",e[1]??xt()),He++,()=>{He===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),He--}},[])}function xt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Se="right-scroll-bar-position",Re="width-before-scroll-bar",br="with-scroll-bars-hidden",Er="--removed-body-scroll-bar-size";function Ve(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cr(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sr=typeof window<"u"?l.useLayoutEffect:l.useEffect,bt=new WeakMap;function Rr(e,t){var n=Cr(null,function(r){return e.forEach(function(o){return Ve(o,r)})});return Sr(function(){var r=bt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ve(a,null)}),i.forEach(function(a){o.has(a)||Ve(a,s)})}bt.set(n,e)},[e]),n}function Ar(e){return e}function Pr(e,t){t===void 0&&(t=Ar);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function Or(e){e===void 0&&(e={});var t=Pr(null);return t.options=Q({async:!0,ssr:!1},e),t}var Yt=function(e){var t=e.sideCar,n=Wt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Q({},n))};Yt.isSideCarExport=!0;function Dr(e,t){return e.useMedium(t),Yt}var Ut=Or(),ze=function(){},Me=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:ze,onWheelCapture:ze,onTouchMoveCapture:ze}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,u=e.enabled,h=e.shards,p=e.sideCar,m=e.noRelative,v=e.noIsolation,f=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,b=e.gapMode,x=Wt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=Rr([n,t]),C=Q(Q({},x),o);return l.createElement(l.Fragment,null,u&&l.createElement(E,{sideCar:Ut,removeScrollBar:c,shards:h,noRelative:m,noIsolation:v,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?l.cloneElement(l.Children.only(a),Q(Q({},C),{ref:R})):l.createElement(w,Q({},C,{className:d,ref:R}),a))});Me.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Me.classNames={fullWidth:Re,zeroRight:Se};var Tr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tr();return t&&e.setAttribute("nonce",t),e}function Lr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Fr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nr())&&(Lr(t,n),Mr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kr=function(){var e=Fr();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xt=function(){var e=kr(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_r={left:0,top:0,right:0,gap:0},Ye=function(e){return parseInt(e||"",10)||0},Ir=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ye(n),Ye(r),Ye(o)]},Wr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _r;var t=Ir(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Br=Xt(),ce="data-scroll-locked",$r=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{a as l,B as Xn,p as S}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{e as Pe,a as $,b as J,i as Kn,u as Gn,c as It,d as et,g as qn,j as Zn,h as Qn}from"./index-B5ynPIRP.js";import{u as ne}from"./index-CbaefyjV.js";import{R as Jn,a as er}from"./index-DLIEpuwL.js";import{_ as Q,B as Wt,C as tr}from"./utils-B48p8Qal.js";var nr=Xn[" useId ".trim().toString()]||(()=>{}),rr=0;function Be(e){const[t,n]=l.useState(nr());return Pe(()=>{n(r=>r??String(rr++))},[e]),e||(t?`radix-${t}`:"")}function ue(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function or(e,t=globalThis?.document){const n=ue(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ir="DismissableLayer",Ge="dismissableLayer.update",sr="dismissableLayer.pointerDownOutside",ar="dismissableLayer.focusOutside",mt,Bt=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=l.useContext(Bt),[u,h]=l.useState(null),p=u?.ownerDocument??globalThis?.document,[,m]=l.useState({}),v=ne(t,C=>h(C)),f=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(g),w=u?f.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,E=ur(C=>{const P=C.target,D=[...c.branches].some(O=>O.contains(P));!x||D||(o?.(C),s?.(C),C.defaultPrevented||a?.())},p),R=fr(C=>{const P=C.target;[...c.branches].some(O=>O.contains(P))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},p);return or(C=>{w===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},p),l.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(mt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pt(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=mt)}},[u,p,n,c]),l.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pt())},[u,c]),l.useEffect(()=>{const C=()=>m({});return document.addEventListener(Ge,C),()=>document.removeEventListener(Ge,C)},[]),S.jsx($.div,{...d,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,R.onFocusCapture),onBlurCapture:J(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,E.onPointerDownCapture)})});$t.displayName=ir;var cr="DismissableLayerBranch",lr=l.forwardRef((e,t)=>{const n=l.useContext(Bt),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx($.div,{...e,ref:o})});lr.displayName=cr;function ur(e,t=globalThis?.document){const n=ue(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){jt(sr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fr(e,t=globalThis?.document){const n=ue(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&jt(ar,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pt(){const e=new CustomEvent(Ge);document.dispatchEvent(e)}function jt(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kn(o,i):o.dispatchEvent(i)}var $e="focusScope.autoFocusOnMount",je="focusScope.autoFocusOnUnmount",gt={bubbles:!1,cancelable:!0},dr="FocusScope",Ht=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=l.useState(null),c=ue(o),u=ue(i),h=l.useRef(null),p=ne(t,f=>d(f)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let f=function(b){if(m.paused||!a)return;const x=b.target;a.contains(x)?h.current=x:Z(h.current,{select:!0})},g=function(b){if(m.paused||!a)return;const x=b.relatedTarget;x!==null&&(a.contains(x)||Z(h.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&Z(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",g);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",g),w.disconnect()}}},[r,a,m.paused]),l.useEffect(()=>{if(a){yt.add(m);const f=document.activeElement;if(!a.contains(f)){const y=new CustomEvent($e,gt);a.addEventListener($e,c),a.dispatchEvent(y),y.defaultPrevented||(hr(yr(Vt(a)),{select:!0}),document.activeElement===f&&Z(a))}return()=>{a.removeEventListener($e,c),setTimeout(()=>{const y=new CustomEvent(je,gt);a.addEventListener(je,u),a.dispatchEvent(y),y.defaultPrevented||Z(f??document.body,{select:!0}),a.removeEventListener(je,u),yt.remove(m)},0)}}},[a,c,u,m]);const v=l.useCallback(f=>{if(!n&&!r||m.paused)return;const g=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(g&&y){const w=f.currentTarget,[b,x]=mr(w);b&&x?!f.shiftKey&&y===x?(f.preventDefault(),n&&Z(b,{select:!0})):f.shiftKey&&y===b&&(f.preventDefault(),n&&Z(x,{select:!0})):y===w&&f.preventDefault()}},[n,r,m.paused]);return S.jsx($.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});Ht.displayName=dr;function hr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function mr(e){const t=Vt(e),n=vt(t,e),r=vt(t.reverse(),e);return[n,r]}function Vt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vt(e,t){for(const n of e)if(!pr(n,{upTo:t}))return n}function pr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gr(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gr(e)&&t&&e.select()}}var yt=vr();function vr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wt(e,t),e.unshift(t)},remove(t){e=wt(e,t),e[0]?.resume()}}}function wt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yr(e){return e.filter(t=>t.tagName!=="A")}var wr="Portal",zt=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=l.useState(!1);Pe(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Jn.createPortal(S.jsx($.div,{...r,ref:t}),s):null});zt.displayName=wr;var He=0;function xr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xt()),document.body.insertAdjacentElement("beforeend",e[1]??xt()),He++,()=>{He===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),He--}},[])}function xt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Se="right-scroll-bar-position",Re="width-before-scroll-bar",br="with-scroll-bars-hidden",Er="--removed-body-scroll-bar-size";function Ve(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cr(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sr=typeof window<"u"?l.useLayoutEffect:l.useEffect,bt=new WeakMap;function Rr(e,t){var n=Cr(null,function(r){return e.forEach(function(o){return Ve(o,r)})});return Sr(function(){var r=bt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ve(a,null)}),i.forEach(function(a){o.has(a)||Ve(a,s)})}bt.set(n,e)},[e]),n}function Ar(e){return e}function Pr(e,t){t===void 0&&(t=Ar);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function Or(e){e===void 0&&(e={});var t=Pr(null);return t.options=Q({async:!0,ssr:!1},e),t}var Yt=function(e){var t=e.sideCar,n=Wt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Q({},n))};Yt.isSideCarExport=!0;function Dr(e,t){return e.useMedium(t),Yt}var Ut=Or(),ze=function(){},Me=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:ze,onWheelCapture:ze,onTouchMoveCapture:ze}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,u=e.enabled,h=e.shards,p=e.sideCar,m=e.noRelative,v=e.noIsolation,f=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,b=e.gapMode,x=Wt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=Rr([n,t]),C=Q(Q({},x),o);return l.createElement(l.Fragment,null,u&&l.createElement(E,{sideCar:Ut,removeScrollBar:c,shards:h,noRelative:m,noIsolation:v,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?l.cloneElement(l.Children.only(a),Q(Q({},C),{ref:R})):l.createElement(w,Q({},C,{className:d,ref:R}),a))});Me.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Me.classNames={fullWidth:Re,zeroRight:Se};var Tr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tr();return t&&e.setAttribute("nonce",t),e}function Lr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Fr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nr())&&(Lr(t,n),Mr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kr=function(){var e=Fr();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xt=function(){var e=kr(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_r={left:0,top:0,right:0,gap:0},Ye=function(e){return parseInt(e||"",10)||0},Ir=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ye(n),Ye(r),Ye(o)]},Wr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _r;var t=Ir(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Br=Xt(),ce="data-scroll-locked",$r=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(br,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -42,4 +42,4 @@ import{a as l,B as Xn,p as S}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{e as Pe,a
|
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},mo="DialogDescriptionWarning",po=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pn(mo).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Vi=en,zi=nn,Yi=on,Ui=sn,Xi=an,Ki=ln,Gi=fn,qi=hn;const go=["top","right","bottom","left"],ee=Math.min,W=Math.max,De=Math.round,Ce=Math.floor,U=e=>({x:e,y:e}),vo={left:"right",right:"left",bottom:"top",top:"bottom"},yo={start:"end",end:"start"};function Ze(e,t,n){return W(e,ee(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function ot(e){return e==="x"?"y":"x"}function it(e){return e==="y"?"height":"width"}const wo=new Set(["top","bottom"]);function Y(e){return wo.has(q(e))?"y":"x"}function st(e){return ot(Y(e))}function xo(e,t,n){n===void 0&&(n=!1);const r=de(e),o=st(e),i=it(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Te(s)),[s,Te(s)]}function bo(e){const t=Te(e);return[Qe(e),t,Qe(t)]}function Qe(e){return e.replace(/start|end/g,t=>yo[t])}const At=["left","right"],Pt=["right","left"],Eo=["top","bottom"],Co=["bottom","top"];function So(e,t,n){switch(e){case"top":case"bottom":return n?t?Pt:At:t?At:Pt;case"left":case"right":return t?Eo:Co;default:return[]}}function Ro(e,t,n,r){const o=de(e);let i=So(q(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qe)))),i}function Te(e){return e.replace(/left|right|bottom|top/g,t=>vo[t])}function Ao(e){return{top:0,right:0,bottom:0,left:0,...e}}function gn(e){return typeof e!="number"?Ao(e):{top:e,right:e,bottom:e,left:e}}function Ne(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ot(e,t,n){let{reference:r,floating:o}=e;const i=Y(t),s=st(t),a=it(s),d=q(t),c=i==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(de(t)){case"start":m[s]-=p*(n&&c?-1:1);break;case"end":m[s]+=p*(n&&c?-1:1);break}return m}const Po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=Ot(c,r,d),p=r,m={},v=0;for(let f=0;f<a.length;f++){const{name:g,fn:y}=a[f],{x:w,y:b,data:x,reset:E}=await y({x:u,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=w??u,h=b??h,m={...m,[g]:{...m[g],...x}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:h}=Ot(c,p,d)),f=-1)}return{x:u,y:h,placement:p,strategy:o,middlewareData:m}};async function pe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=G(t,e),v=gn(m),g=a[p?h==="floating"?"reference":"floating":h],y=Ne(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:d})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=Ne(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:d}):w);return{top:(y.top-E.top+v.top)/x.y,bottom:(E.bottom-y.bottom+v.bottom)/x.y,left:(y.left-E.left+v.left)/x.x,right:(E.right-y.right+v.right)/x.x}}const Oo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:u=0}=G(e,t)||{};if(c==null)return{};const h=gn(u),p={x:n,y:r},m=st(o),v=it(m),f=await s.getDimensions(c),g=m==="y",y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[m]-p[m]-i.floating[v],E=p[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let C=R?R[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(R)))&&(C=a.floating[b]||i.floating[v]);const P=x/2-E/2,D=C/2-f[v]/2-1,O=ee(h[y],D),N=ee(h[w],D),k=O,L=C-f[v]-N,T=C/2-f[v]/2+P,I=Ze(k,T,L),M=!d.arrow&&de(o)!=null&&T!==I&&i.reference[v]/2-(T<k?O:N)-f[v]/2<0,F=M?T<k?T-k:T-L:0;return{[m]:p[m]+F,data:{[m]:I,centerOffset:T-I-F,...M&&{alignmentOffset:F}},reset:M}}}),Do=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:f=!0,...g}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=q(o),w=Y(a),b=q(a)===a,x=await(d.isRTL==null?void 0:d.isRTL(c.floating)),E=p||(b||!f?[Te(a)]:bo(a)),R=v!=="none";!p&&R&&E.push(...Ro(a,f,v,x));const C=[a,...E],P=await pe(t,g),D=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(P[y]),h){const T=xo(o,s,x);D.push(P[T[0]],P[T[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(T=>T<=0)){var N,k;const T=(((N=i.flip)==null?void 0:N.index)||0)+1,I=C[T];if(I&&(!(h==="alignment"?w!==Y(I):!1)||O.every(A=>Y(A.placement)===w?A.overflows[0]>0:!0)))return{data:{index:T,overflows:O},reset:{placement:I}};let M=(k=O.filter(F=>F.overflows[0]<=0).sort((F,A)=>F.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!M)switch(m){case"bestFit":{var L;const F=(L=O.filter(A=>{if(R){const _=Y(A.placement);return _===w||_==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(_=>_>0).reduce((_,z)=>_+z,0)]).sort((A,_)=>A[1]-_[1])[0])==null?void 0:L[0];F&&(M=F);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Dt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tt(e){return go.some(t=>e[t]>=0)}const To=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=G(e,t);switch(r){case"referenceHidden":{const i=await pe(t,{...o,elementContext:"reference"}),s=Dt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Tt(s)}}}case"escaped":{const i=await pe(t,{...o,altBoundary:!0}),s=Dt(i,n.floating);return{data:{escapedOffsets:s,escaped:Tt(s)}}}default:return{}}}}},vn=new Set(["left","top"]);async function No(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=q(n),a=de(n),d=Y(n)==="y",c=vn.has(s)?-1:1,u=i&&d?-1:1,h=G(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),d?{x:m*u,y:p*c}:{x:p*c,y:m*u}}const Lo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await No(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},Mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...d}=G(e,t),c={x:n,y:r},u=await pe(t,d),h=Y(q(o)),p=ot(h);let m=c[p],v=c[h];if(i){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=m+u[g],b=m-u[y];m=Ze(w,m,b)}if(s){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=v+u[g],b=v-u[y];v=Ze(w,v,b)}const f=a.fn({...t,[p]:m,[h]:v});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:i,[h]:s}}}}}},Fo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=G(e,t),u={x:n,y:r},h=Y(o),p=ot(h);let m=u[p],v=u[h];const f=G(a,t),g=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=p==="y"?"height":"width",x=i.reference[p]-i.floating[b]+g.mainAxis,E=i.reference[p]+i.reference[b]-g.mainAxis;m<x?m=x:m>E&&(m=E)}if(c){var y,w;const b=p==="y"?"width":"height",x=vn.has(q(o)),E=i.reference[h]-i.floating[b]+(x&&((y=s.offset)==null?void 0:y[h])||0)+(x?0:g.crossAxis),R=i.reference[h]+i.reference[b]+(x?0:((w=s.offset)==null?void 0:w[h])||0)-(x?g.crossAxis:0);v<E?v=E:v>R&&(v=R)}return{[p]:m,[h]:v}}}},ko=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=G(e,t),u=await pe(t,c),h=q(o),p=de(o),m=Y(o)==="y",{width:v,height:f}=i.floating;let g,y;h==="top"||h==="bottom"?(g=h,y=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,g=p==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=v-u.left-u.right,x=ee(f-u[g],w),E=ee(v-u[y],b),R=!t.middlewareData.shift;let C=x,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),R&&!p){const O=W(u.left,0),N=W(u.right,0),k=W(u.top,0),L=W(u.bottom,0);m?P=v-2*(O!==0||N!==0?O+N:W(u.left,u.right)):C=f-2*(k!==0||L!==0?k+L:W(u.top,u.bottom))}await d({...t,availableWidth:P,availableHeight:C});const D=await s.getDimensions(a.floating);return v!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};function ke(){return typeof window<"u"}function he(e){return yn(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K(e){var t;return(t=(yn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yn(e){return ke()?e instanceof Node||e instanceof B(e).Node:!1}function j(e){return ke()?e instanceof Element||e instanceof B(e).Element:!1}function X(e){return ke()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function Nt(e){return!ke()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}const _o=new Set(["inline","contents"]);function ve(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_o.has(o)}const Io=new Set(["table","td","th"]);function Wo(e){return Io.has(he(e))}const Bo=[":popover-open",":modal"];function _e(e){return Bo.some(t=>{try{return e.matches(t)}catch{return!1}})}const $o=["transform","translate","scale","rotate","perspective"],jo=["transform","translate","scale","rotate","perspective","filter"],Ho=["paint","layout","strict","content"];function at(e){const t=ct(),n=j(e)?H(e):e;return $o.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jo.some(r=>(n.willChange||"").includes(r))||Ho.some(r=>(n.contain||"").includes(r))}function Vo(e){let t=te(e);for(;X(t)&&!fe(t);){if(at(t))return t;if(_e(t))return null;t=te(t)}return null}function ct(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zo=new Set(["html","body","#document"]);function fe(e){return zo.has(he(e))}function H(e){return B(e).getComputedStyle(e)}function Ie(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(he(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nt(e)&&e.host||K(e);return Nt(t)?t.host:t}function wn(e){const t=te(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&ve(t)?t:wn(t)}function ge(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=B(o);if(i){const a=Je(s);return t.concat(s,s.visualViewport||[],ve(o)?o:[],a&&n?ge(a):[])}return t.concat(o,ge(o,[],n))}function Je(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xn(e){const t=H(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=X(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=De(n)!==i||De(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function lt(e){return j(e)?e:e.contextElement}function le(e){const t=lt(e);if(!X(t))return U(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=xn(t);let s=(i?De(n.width):n.width)/r,a=(i?De(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yo=U(0);function bn(e){const t=B(e);return!ct()||!t.visualViewport?Yo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=lt(e);let s=U(1);t&&(r?j(r)&&(s=le(r)):s=le(e));const a=Uo(i,n,r)?bn(i):U(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(i){const p=B(i),m=r&&j(r)?B(r):r;let v=p,f=Je(v);for(;f&&r&&m!==v;){const g=le(f),y=f.getBoundingClientRect(),w=H(f),b=y.left+(f.clientLeft+parseFloat(w.paddingLeft))*g.x,x=y.top+(f.clientTop+parseFloat(w.paddingTop))*g.y;d*=g.x,c*=g.y,u*=g.x,h*=g.y,d+=b,c+=x,v=B(f),f=Je(v)}}return Ne({width:u,height:h,x:d,y:c})}function We(e,t){const n=Ie(e).scrollLeft;return t?t.left+n:oe(K(e)).left+n}function En(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-We(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=K(r),a=t?_e(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=U(1);const u=U(0),h=X(r);if((h||!h&&!i)&&((he(r)!=="body"||ve(s))&&(d=Ie(r)),X(r))){const m=oe(r);c=le(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const p=s&&!h&&!i?En(s,d):U(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-d.scrollTop*c.y+u.y+p.y}}function Ko(e){return Array.from(e.getClientRects())}function Go(e){const t=K(e),n=Ie(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+We(e);const a=-n.scrollTop;return H(r).direction==="rtl"&&(s+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Lt=25;function qo(e,t){const n=B(e),r=K(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=ct();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=We(r);if(c<=0){const u=r.ownerDocument,h=u.body,p=getComputedStyle(h),m=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-m);v<=Lt&&(i-=v)}else c<=Lt&&(i+=c);return{width:i,height:s,x:a,y:d}}const Zo=new Set(["absolute","fixed"]);function Qo(e,t){const n=oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=X(e)?le(e):U(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function Mt(e,t,n){let r;if(t==="viewport")r=qo(e,n);else if(t==="document")r=Go(K(e));else if(j(t))r=Qo(t,n);else{const o=bn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ne(r)}function Cn(e,t){const n=te(e);return n===t||!j(n)||fe(n)?!1:H(n).position==="fixed"||Cn(n,t)}function Jo(e,t){const n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(a=>j(a)&&he(a)!=="body"),o=null;const i=H(e).position==="fixed";let s=i?te(e):e;for(;j(s)&&!fe(s);){const a=H(s),d=at(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&Zo.has(o.position)||ve(s)&&!d&&Cn(e,s))?r=r.filter(u=>u!==s):o=a,s=te(s)}return t.set(e,r),r}function ei(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?_e(t)?[]:Jo(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,u)=>{const h=Mt(t,u,o);return c.top=W(h.top,c.top),c.right=ee(h.right,c.right),c.bottom=ee(h.bottom,c.bottom),c.left=W(h.left,c.left),c},Mt(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ti(e){const{width:t,height:n}=xn(e);return{width:t,height:n}}function ni(e,t,n){const r=X(t),o=K(t),i=n==="fixed",s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=U(0);function c(){d.x=We(o)}if(r||!r&&!i)if((he(t)!=="body"||ve(o))&&(a=Ie(t)),r){const m=oe(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?En(o,a):U(0),h=s.left+a.scrollLeft-d.x-u.x,p=s.top+a.scrollTop-d.y-u.y;return{x:h,y:p,width:s.width,height:s.height}}function Xe(e){return H(e).position==="static"}function Ft(e,t){if(!X(e)||H(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return K(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=B(e);if(_e(e))return n;if(!X(e)){let o=te(e);for(;o&&!fe(o);){if(j(o)&&!Xe(o))return o;o=te(o)}return n}let r=Ft(e,t);for(;r&&Wo(r)&&Xe(r);)r=Ft(r,t);return r&&fe(r)&&Xe(r)&&!at(r)?n:r||Vo(e)||n}const ri=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,r=await n(e.floating);return{reference:ni(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oi(e){return H(e).direction==="rtl"}const ii={convertOffsetParentRelativeRectToViewportRelativeRect:Xo,getDocumentElement:K,getClippingRect:ei,getOffsetParent:Sn,getElementRects:ri,getClientRects:Ko,getDimensions:ti,getScale:le,isElement:j,isRTL:oi};function Rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function si(e,t){let n=null,r;const o=K(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:u,top:h,width:p,height:m}=c;if(a||t(),!p||!m)return;const v=Ce(h),f=Ce(o.clientWidth-(u+p)),g=Ce(o.clientHeight-(h+m)),y=Ce(u),b={rootMargin:-v+"px "+-f+"px "+-g+"px "+-y+"px",threshold:W(0,ee(1,d))||1};let x=!0;function E(R){const C=R[0].intersectionRatio;if(C!==d){if(!x)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Rn(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return s(!0),i}function ai(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=lt(e),u=o||i?[...c?ge(c):[],...ge(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=c&&a?si(c,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!d&&m.observe(c),m.observe(t));let v,f=d?oe(e):null;d&&g();function g(){const y=oe(e);f&&!Rn(f,y)&&n(),f=y,v=requestAnimationFrame(g)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(v)}}const ci=Lo,li=Mo,ui=Do,fi=ko,di=To,kt=Oo,hi=Fo,mi=(e,t,n)=>{const r=new Map,o={platform:ii,...n},i={...o.platform,_c:r};return Po(e,t,{...o,platform:i})};var pi=typeof document<"u",gi=function(){},Ae=pi?l.useLayoutEffect:gi;function Le(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Le(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function An(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _t(e,t){const n=An(e);return Math.round(t*n)/n}function Ke(e){const t=l.useRef(e);return Ae(()=>{t.current=e}),t}function vi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[u,h]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=l.useState(r);Le(p,r)||m(r);const[v,f]=l.useState(null),[g,y]=l.useState(null),w=l.useCallback(A=>{A!==R.current&&(R.current=A,f(A))},[]),b=l.useCallback(A=>{A!==C.current&&(C.current=A,y(A))},[]),x=i||v,E=s||g,R=l.useRef(null),C=l.useRef(null),P=l.useRef(u),D=d!=null,O=Ke(d),N=Ke(o),k=Ke(c),L=l.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:t,strategy:n,middleware:p};N.current&&(A.platform=N.current),mi(R.current,C.current,A).then(_=>{const z={..._,isPositioned:k.current!==!1};T.current&&!Le(P.current,z)&&(P.current=z,er.flushSync(()=>{h(z)}))})},[p,t,n,N,k]);Ae(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(A=>({...A,isPositioned:!1})))},[c]);const T=l.useRef(!1);Ae(()=>(T.current=!0,()=>{T.current=!1}),[]),Ae(()=>{if(x&&(R.current=x),E&&(C.current=E),x&&E){if(O.current)return O.current(x,E,L);L()}},[x,E,L,O,D]);const I=l.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:b}),[w,b]),M=l.useMemo(()=>({reference:x,floating:E}),[x,E]),F=l.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const _=_t(M.floating,u.x),z=_t(M.floating,u.y);return a?{...A,transform:"translate("+_+"px, "+z+"px)",...An(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:z}},[n,a,M.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:L,refs:I,elements:M,floatingStyles:F}),[u,L,I,M,F])}const yi=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kt({element:r.current,padding:o}).fn(n):{}:r?kt({element:r,padding:o}).fn(n):{}}}},wi=(e,t)=>({...ci(e),options:[e,t]}),xi=(e,t)=>({...li(e),options:[e,t]}),bi=(e,t)=>({...hi(e),options:[e,t]}),Ei=(e,t)=>({...ui(e),options:[e,t]}),Ci=(e,t)=>({...fi(e),options:[e,t]}),Si=(e,t)=>({...di(e),options:[e,t]}),Ri=(e,t)=>({...yi(e),options:[e,t]});var Ai="Arrow",Pn=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx($.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pn.displayName=Ai;var Pi=Pn,ut="Popper",[On,Zi]=It(ut),[Oi,Dn]=On(ut),Tn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return S.jsx(Oi,{scope:t,anchor:r,onAnchorChange:o,children:n})};Tn.displayName=ut;var Nn="PopperAnchor",Ln=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Dn(Nn,n),s=l.useRef(null),a=ne(t,s),d=l.useRef(null);return l.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:S.jsx($.div,{...o,ref:a})});Ln.displayName=Nn;var ft="PopperContent",[Di,Ti]=On(ft),Mn=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:v,...f}=e,g=Dn(ft,n),[y,w]=l.useState(null),b=ne(t,me=>w(me)),[x,E]=l.useState(null),R=Qn(x),C=R?.width??0,P=R?.height??0,D=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},N=Array.isArray(c)?c:[c],k=N.length>0,L={padding:O,boundary:N.filter(Li),altBoundary:k},{refs:T,floatingStyles:I,placement:M,isPositioned:F,middlewareData:A}=vi({strategy:"fixed",placement:D,whileElementsMounted:(...me)=>ai(...me,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[wi({mainAxis:o+P,alignmentAxis:s}),d&&xi({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?bi():void 0,...L}),d&&Ei({...L}),Ci({...L,apply:({elements:me,rects:ht,availableWidth:Vn,availableHeight:zn})=>{const{width:Yn,height:Un}=ht.reference,ye=me.floating.style;ye.setProperty("--radix-popper-available-width",`${Vn}px`),ye.setProperty("--radix-popper-available-height",`${zn}px`),ye.setProperty("--radix-popper-anchor-width",`${Yn}px`),ye.setProperty("--radix-popper-anchor-height",`${Un}px`)}}),x&&Ri({element:x,padding:a}),Mi({arrowWidth:C,arrowHeight:P}),p&&Si({strategy:"referenceHidden",...L})]}),[_,z]=_n(M),dt=ue(v);Pe(()=>{F&&dt?.()},[F,dt]);const Wn=A.arrow?.x,Bn=A.arrow?.y,$n=A.arrow?.centerOffset!==0,[jn,Hn]=l.useState();return Pe(()=>{y&&Hn(window.getComputedStyle(y).zIndex)},[y]),S.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:F?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Di,{scope:n,placedSide:_,onArrowChange:E,arrowX:Wn,arrowY:Bn,shouldHideArrow:$n,children:S.jsx($.div,{"data-side":_,"data-align":z,...f,ref:b,style:{...f.style,animation:F?void 0:"none"}})})})});Mn.displayName=ft;var Fn="PopperArrow",Ni={top:"bottom",right:"left",bottom:"top",left:"right"},kn=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Ti(Fn,r),s=Ni[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(Pi,{...o,ref:n,style:{...o.style,display:"block"}})})});kn.displayName=Fn;function Li(e){return e!==null}var Mi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,u]=_n(n),h={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+d/2;let v="",f="";return c==="bottom"?(v=s?h:`${p}px`,f=`${-d}px`):c==="top"?(v=s?h:`${p}px`,f=`${r.floating.height+d}px`):c==="right"?(v=`${-d}px`,f=s?h:`${m}px`):c==="left"&&(v=`${r.floating.width+d}px`,f=s?h:`${m}px`),{data:{x:v,y:f}}}});function _n(e){const[t,n="center"]=e.split("-");return[t,n]}var Qi=Tn,Ji=Ln,es=Mn,ts=kn,Fi=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ki="VisuallyHidden",In=l.forwardRef((e,t)=>S.jsx($.span,{...e,ref:t,style:{...Fi,...e.style}}));In.displayName=ki;var ns=In;export{Ji as A,Xi as C,Gi as D,Ht as F,Ui as O,Yi as P,Vi as R,Ki as T,Fi as V,Hi as W,qi as a,Qi as b,Zi as c,zt as d,ue as e,xr as f,Zt as g,io as h,$t as i,es as j,ts as k,ji as l,zi as m,ns as n,Be as u};
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},mo="DialogDescriptionWarning",po=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pn(mo).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Vi=en,zi=nn,Yi=on,Ui=sn,Xi=an,Ki=ln,Gi=fn,qi=hn;const go=["top","right","bottom","left"],ee=Math.min,W=Math.max,De=Math.round,Ce=Math.floor,U=e=>({x:e,y:e}),vo={left:"right",right:"left",bottom:"top",top:"bottom"},yo={start:"end",end:"start"};function Ze(e,t,n){return W(e,ee(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function ot(e){return e==="x"?"y":"x"}function it(e){return e==="y"?"height":"width"}const wo=new Set(["top","bottom"]);function Y(e){return wo.has(q(e))?"y":"x"}function st(e){return ot(Y(e))}function xo(e,t,n){n===void 0&&(n=!1);const r=de(e),o=st(e),i=it(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Te(s)),[s,Te(s)]}function bo(e){const t=Te(e);return[Qe(e),t,Qe(t)]}function Qe(e){return e.replace(/start|end/g,t=>yo[t])}const At=["left","right"],Pt=["right","left"],Eo=["top","bottom"],Co=["bottom","top"];function So(e,t,n){switch(e){case"top":case"bottom":return n?t?Pt:At:t?At:Pt;case"left":case"right":return t?Eo:Co;default:return[]}}function Ro(e,t,n,r){const o=de(e);let i=So(q(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qe)))),i}function Te(e){return e.replace(/left|right|bottom|top/g,t=>vo[t])}function Ao(e){return{top:0,right:0,bottom:0,left:0,...e}}function gn(e){return typeof e!="number"?Ao(e):{top:e,right:e,bottom:e,left:e}}function Ne(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ot(e,t,n){let{reference:r,floating:o}=e;const i=Y(t),s=st(t),a=it(s),d=q(t),c=i==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(de(t)){case"start":m[s]-=p*(n&&c?-1:1);break;case"end":m[s]+=p*(n&&c?-1:1);break}return m}const Po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=Ot(c,r,d),p=r,m={},v=0;for(let f=0;f<a.length;f++){const{name:g,fn:y}=a[f],{x:w,y:b,data:x,reset:E}=await y({x:u,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=w??u,h=b??h,m={...m,[g]:{...m[g],...x}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:h}=Ot(c,p,d)),f=-1)}return{x:u,y:h,placement:p,strategy:o,middlewareData:m}};async function pe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=G(t,e),v=gn(m),g=a[p?h==="floating"?"reference":"floating":h],y=Ne(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:d})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=Ne(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:d}):w);return{top:(y.top-E.top+v.top)/x.y,bottom:(E.bottom-y.bottom+v.bottom)/x.y,left:(y.left-E.left+v.left)/x.x,right:(E.right-y.right+v.right)/x.x}}const Oo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:u=0}=G(e,t)||{};if(c==null)return{};const h=gn(u),p={x:n,y:r},m=st(o),v=it(m),f=await s.getDimensions(c),g=m==="y",y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[m]-p[m]-i.floating[v],E=p[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let C=R?R[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(R)))&&(C=a.floating[b]||i.floating[v]);const P=x/2-E/2,D=C/2-f[v]/2-1,O=ee(h[y],D),N=ee(h[w],D),k=O,L=C-f[v]-N,T=C/2-f[v]/2+P,I=Ze(k,T,L),M=!d.arrow&&de(o)!=null&&T!==I&&i.reference[v]/2-(T<k?O:N)-f[v]/2<0,F=M?T<k?T-k:T-L:0;return{[m]:p[m]+F,data:{[m]:I,centerOffset:T-I-F,...M&&{alignmentOffset:F}},reset:M}}}),Do=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:f=!0,...g}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=q(o),w=Y(a),b=q(a)===a,x=await(d.isRTL==null?void 0:d.isRTL(c.floating)),E=p||(b||!f?[Te(a)]:bo(a)),R=v!=="none";!p&&R&&E.push(...Ro(a,f,v,x));const C=[a,...E],P=await pe(t,g),D=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(P[y]),h){const T=xo(o,s,x);D.push(P[T[0]],P[T[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(T=>T<=0)){var N,k;const T=(((N=i.flip)==null?void 0:N.index)||0)+1,I=C[T];if(I&&(!(h==="alignment"?w!==Y(I):!1)||O.every(A=>Y(A.placement)===w?A.overflows[0]>0:!0)))return{data:{index:T,overflows:O},reset:{placement:I}};let M=(k=O.filter(F=>F.overflows[0]<=0).sort((F,A)=>F.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!M)switch(m){case"bestFit":{var L;const F=(L=O.filter(A=>{if(R){const _=Y(A.placement);return _===w||_==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(_=>_>0).reduce((_,z)=>_+z,0)]).sort((A,_)=>A[1]-_[1])[0])==null?void 0:L[0];F&&(M=F);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Dt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tt(e){return go.some(t=>e[t]>=0)}const To=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=G(e,t);switch(r){case"referenceHidden":{const i=await pe(t,{...o,elementContext:"reference"}),s=Dt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Tt(s)}}}case"escaped":{const i=await pe(t,{...o,altBoundary:!0}),s=Dt(i,n.floating);return{data:{escapedOffsets:s,escaped:Tt(s)}}}default:return{}}}}},vn=new Set(["left","top"]);async function No(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=q(n),a=de(n),d=Y(n)==="y",c=vn.has(s)?-1:1,u=i&&d?-1:1,h=G(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),d?{x:m*u,y:p*c}:{x:p*c,y:m*u}}const Lo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await No(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},Mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...d}=G(e,t),c={x:n,y:r},u=await pe(t,d),h=Y(q(o)),p=ot(h);let m=c[p],v=c[h];if(i){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=m+u[g],b=m-u[y];m=Ze(w,m,b)}if(s){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=v+u[g],b=v-u[y];v=Ze(w,v,b)}const f=a.fn({...t,[p]:m,[h]:v});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:i,[h]:s}}}}}},Fo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=G(e,t),u={x:n,y:r},h=Y(o),p=ot(h);let m=u[p],v=u[h];const f=G(a,t),g=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=p==="y"?"height":"width",x=i.reference[p]-i.floating[b]+g.mainAxis,E=i.reference[p]+i.reference[b]-g.mainAxis;m<x?m=x:m>E&&(m=E)}if(c){var y,w;const b=p==="y"?"width":"height",x=vn.has(q(o)),E=i.reference[h]-i.floating[b]+(x&&((y=s.offset)==null?void 0:y[h])||0)+(x?0:g.crossAxis),R=i.reference[h]+i.reference[b]+(x?0:((w=s.offset)==null?void 0:w[h])||0)-(x?g.crossAxis:0);v<E?v=E:v>R&&(v=R)}return{[p]:m,[h]:v}}}},ko=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=G(e,t),u=await pe(t,c),h=q(o),p=de(o),m=Y(o)==="y",{width:v,height:f}=i.floating;let g,y;h==="top"||h==="bottom"?(g=h,y=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,g=p==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=v-u.left-u.right,x=ee(f-u[g],w),E=ee(v-u[y],b),R=!t.middlewareData.shift;let C=x,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),R&&!p){const O=W(u.left,0),N=W(u.right,0),k=W(u.top,0),L=W(u.bottom,0);m?P=v-2*(O!==0||N!==0?O+N:W(u.left,u.right)):C=f-2*(k!==0||L!==0?k+L:W(u.top,u.bottom))}await d({...t,availableWidth:P,availableHeight:C});const D=await s.getDimensions(a.floating);return v!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};function ke(){return typeof window<"u"}function he(e){return yn(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K(e){var t;return(t=(yn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yn(e){return ke()?e instanceof Node||e instanceof B(e).Node:!1}function j(e){return ke()?e instanceof Element||e instanceof B(e).Element:!1}function X(e){return ke()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function Nt(e){return!ke()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}const _o=new Set(["inline","contents"]);function ve(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_o.has(o)}const Io=new Set(["table","td","th"]);function Wo(e){return Io.has(he(e))}const Bo=[":popover-open",":modal"];function _e(e){return Bo.some(t=>{try{return e.matches(t)}catch{return!1}})}const $o=["transform","translate","scale","rotate","perspective"],jo=["transform","translate","scale","rotate","perspective","filter"],Ho=["paint","layout","strict","content"];function at(e){const t=ct(),n=j(e)?H(e):e;return $o.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jo.some(r=>(n.willChange||"").includes(r))||Ho.some(r=>(n.contain||"").includes(r))}function Vo(e){let t=te(e);for(;X(t)&&!fe(t);){if(at(t))return t;if(_e(t))return null;t=te(t)}return null}function ct(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zo=new Set(["html","body","#document"]);function fe(e){return zo.has(he(e))}function H(e){return B(e).getComputedStyle(e)}function Ie(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(he(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nt(e)&&e.host||K(e);return Nt(t)?t.host:t}function wn(e){const t=te(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&ve(t)?t:wn(t)}function ge(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=B(o);if(i){const a=Je(s);return t.concat(s,s.visualViewport||[],ve(o)?o:[],a&&n?ge(a):[])}return t.concat(o,ge(o,[],n))}function Je(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xn(e){const t=H(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=X(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=De(n)!==i||De(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function lt(e){return j(e)?e:e.contextElement}function le(e){const t=lt(e);if(!X(t))return U(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=xn(t);let s=(i?De(n.width):n.width)/r,a=(i?De(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yo=U(0);function bn(e){const t=B(e);return!ct()||!t.visualViewport?Yo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=lt(e);let s=U(1);t&&(r?j(r)&&(s=le(r)):s=le(e));const a=Uo(i,n,r)?bn(i):U(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(i){const p=B(i),m=r&&j(r)?B(r):r;let v=p,f=Je(v);for(;f&&r&&m!==v;){const g=le(f),y=f.getBoundingClientRect(),w=H(f),b=y.left+(f.clientLeft+parseFloat(w.paddingLeft))*g.x,x=y.top+(f.clientTop+parseFloat(w.paddingTop))*g.y;d*=g.x,c*=g.y,u*=g.x,h*=g.y,d+=b,c+=x,v=B(f),f=Je(v)}}return Ne({width:u,height:h,x:d,y:c})}function We(e,t){const n=Ie(e).scrollLeft;return t?t.left+n:oe(K(e)).left+n}function En(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-We(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=K(r),a=t?_e(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=U(1);const u=U(0),h=X(r);if((h||!h&&!i)&&((he(r)!=="body"||ve(s))&&(d=Ie(r)),X(r))){const m=oe(r);c=le(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const p=s&&!h&&!i?En(s,d):U(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-d.scrollTop*c.y+u.y+p.y}}function Ko(e){return Array.from(e.getClientRects())}function Go(e){const t=K(e),n=Ie(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+We(e);const a=-n.scrollTop;return H(r).direction==="rtl"&&(s+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Lt=25;function qo(e,t){const n=B(e),r=K(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=ct();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=We(r);if(c<=0){const u=r.ownerDocument,h=u.body,p=getComputedStyle(h),m=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-m);v<=Lt&&(i-=v)}else c<=Lt&&(i+=c);return{width:i,height:s,x:a,y:d}}const Zo=new Set(["absolute","fixed"]);function Qo(e,t){const n=oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=X(e)?le(e):U(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function Mt(e,t,n){let r;if(t==="viewport")r=qo(e,n);else if(t==="document")r=Go(K(e));else if(j(t))r=Qo(t,n);else{const o=bn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ne(r)}function Cn(e,t){const n=te(e);return n===t||!j(n)||fe(n)?!1:H(n).position==="fixed"||Cn(n,t)}function Jo(e,t){const n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(a=>j(a)&&he(a)!=="body"),o=null;const i=H(e).position==="fixed";let s=i?te(e):e;for(;j(s)&&!fe(s);){const a=H(s),d=at(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&Zo.has(o.position)||ve(s)&&!d&&Cn(e,s))?r=r.filter(u=>u!==s):o=a,s=te(s)}return t.set(e,r),r}function ei(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?_e(t)?[]:Jo(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,u)=>{const h=Mt(t,u,o);return c.top=W(h.top,c.top),c.right=ee(h.right,c.right),c.bottom=ee(h.bottom,c.bottom),c.left=W(h.left,c.left),c},Mt(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ti(e){const{width:t,height:n}=xn(e);return{width:t,height:n}}function ni(e,t,n){const r=X(t),o=K(t),i=n==="fixed",s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=U(0);function c(){d.x=We(o)}if(r||!r&&!i)if((he(t)!=="body"||ve(o))&&(a=Ie(t)),r){const m=oe(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?En(o,a):U(0),h=s.left+a.scrollLeft-d.x-u.x,p=s.top+a.scrollTop-d.y-u.y;return{x:h,y:p,width:s.width,height:s.height}}function Xe(e){return H(e).position==="static"}function Ft(e,t){if(!X(e)||H(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return K(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=B(e);if(_e(e))return n;if(!X(e)){let o=te(e);for(;o&&!fe(o);){if(j(o)&&!Xe(o))return o;o=te(o)}return n}let r=Ft(e,t);for(;r&&Wo(r)&&Xe(r);)r=Ft(r,t);return r&&fe(r)&&Xe(r)&&!at(r)?n:r||Vo(e)||n}const ri=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,r=await n(e.floating);return{reference:ni(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oi(e){return H(e).direction==="rtl"}const ii={convertOffsetParentRelativeRectToViewportRelativeRect:Xo,getDocumentElement:K,getClippingRect:ei,getOffsetParent:Sn,getElementRects:ri,getClientRects:Ko,getDimensions:ti,getScale:le,isElement:j,isRTL:oi};function Rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function si(e,t){let n=null,r;const o=K(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:u,top:h,width:p,height:m}=c;if(a||t(),!p||!m)return;const v=Ce(h),f=Ce(o.clientWidth-(u+p)),g=Ce(o.clientHeight-(h+m)),y=Ce(u),b={rootMargin:-v+"px "+-f+"px "+-g+"px "+-y+"px",threshold:W(0,ee(1,d))||1};let x=!0;function E(R){const C=R[0].intersectionRatio;if(C!==d){if(!x)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Rn(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return s(!0),i}function ai(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=lt(e),u=o||i?[...c?ge(c):[],...ge(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=c&&a?si(c,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!d&&m.observe(c),m.observe(t));let v,f=d?oe(e):null;d&&g();function g(){const y=oe(e);f&&!Rn(f,y)&&n(),f=y,v=requestAnimationFrame(g)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(v)}}const ci=Lo,li=Mo,ui=Do,fi=ko,di=To,kt=Oo,hi=Fo,mi=(e,t,n)=>{const r=new Map,o={platform:ii,...n},i={...o.platform,_c:r};return Po(e,t,{...o,platform:i})};var pi=typeof document<"u",gi=function(){},Ae=pi?l.useLayoutEffect:gi;function Le(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Le(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function An(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _t(e,t){const n=An(e);return Math.round(t*n)/n}function Ke(e){const t=l.useRef(e);return Ae(()=>{t.current=e}),t}function vi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[u,h]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=l.useState(r);Le(p,r)||m(r);const[v,f]=l.useState(null),[g,y]=l.useState(null),w=l.useCallback(A=>{A!==R.current&&(R.current=A,f(A))},[]),b=l.useCallback(A=>{A!==C.current&&(C.current=A,y(A))},[]),x=i||v,E=s||g,R=l.useRef(null),C=l.useRef(null),P=l.useRef(u),D=d!=null,O=Ke(d),N=Ke(o),k=Ke(c),L=l.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:t,strategy:n,middleware:p};N.current&&(A.platform=N.current),mi(R.current,C.current,A).then(_=>{const z={..._,isPositioned:k.current!==!1};T.current&&!Le(P.current,z)&&(P.current=z,er.flushSync(()=>{h(z)}))})},[p,t,n,N,k]);Ae(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(A=>({...A,isPositioned:!1})))},[c]);const T=l.useRef(!1);Ae(()=>(T.current=!0,()=>{T.current=!1}),[]),Ae(()=>{if(x&&(R.current=x),E&&(C.current=E),x&&E){if(O.current)return O.current(x,E,L);L()}},[x,E,L,O,D]);const I=l.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:b}),[w,b]),M=l.useMemo(()=>({reference:x,floating:E}),[x,E]),F=l.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const _=_t(M.floating,u.x),z=_t(M.floating,u.y);return a?{...A,transform:"translate("+_+"px, "+z+"px)",...An(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:z}},[n,a,M.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:L,refs:I,elements:M,floatingStyles:F}),[u,L,I,M,F])}const yi=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kt({element:r.current,padding:o}).fn(n):{}:r?kt({element:r,padding:o}).fn(n):{}}}},wi=(e,t)=>({...ci(e),options:[e,t]}),xi=(e,t)=>({...li(e),options:[e,t]}),bi=(e,t)=>({...hi(e),options:[e,t]}),Ei=(e,t)=>({...ui(e),options:[e,t]}),Ci=(e,t)=>({...fi(e),options:[e,t]}),Si=(e,t)=>({...di(e),options:[e,t]}),Ri=(e,t)=>({...yi(e),options:[e,t]});var Ai="Arrow",Pn=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx($.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pn.displayName=Ai;var Pi=Pn,ut="Popper",[On,Zi]=It(ut),[Oi,Dn]=On(ut),Tn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return S.jsx(Oi,{scope:t,anchor:r,onAnchorChange:o,children:n})};Tn.displayName=ut;var Nn="PopperAnchor",Ln=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Dn(Nn,n),s=l.useRef(null),a=ne(t,s),d=l.useRef(null);return l.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:S.jsx($.div,{...o,ref:a})});Ln.displayName=Nn;var ft="PopperContent",[Di,Ti]=On(ft),Mn=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:v,...f}=e,g=Dn(ft,n),[y,w]=l.useState(null),b=ne(t,me=>w(me)),[x,E]=l.useState(null),R=Qn(x),C=R?.width??0,P=R?.height??0,D=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},N=Array.isArray(c)?c:[c],k=N.length>0,L={padding:O,boundary:N.filter(Li),altBoundary:k},{refs:T,floatingStyles:I,placement:M,isPositioned:F,middlewareData:A}=vi({strategy:"fixed",placement:D,whileElementsMounted:(...me)=>ai(...me,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[wi({mainAxis:o+P,alignmentAxis:s}),d&&xi({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?bi():void 0,...L}),d&&Ei({...L}),Ci({...L,apply:({elements:me,rects:ht,availableWidth:Vn,availableHeight:zn})=>{const{width:Yn,height:Un}=ht.reference,ye=me.floating.style;ye.setProperty("--radix-popper-available-width",`${Vn}px`),ye.setProperty("--radix-popper-available-height",`${zn}px`),ye.setProperty("--radix-popper-anchor-width",`${Yn}px`),ye.setProperty("--radix-popper-anchor-height",`${Un}px`)}}),x&&Ri({element:x,padding:a}),Mi({arrowWidth:C,arrowHeight:P}),p&&Si({strategy:"referenceHidden",...L})]}),[_,z]=_n(M),dt=ue(v);Pe(()=>{F&&dt?.()},[F,dt]);const Wn=A.arrow?.x,Bn=A.arrow?.y,$n=A.arrow?.centerOffset!==0,[jn,Hn]=l.useState();return Pe(()=>{y&&Hn(window.getComputedStyle(y).zIndex)},[y]),S.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:F?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Di,{scope:n,placedSide:_,onArrowChange:E,arrowX:Wn,arrowY:Bn,shouldHideArrow:$n,children:S.jsx($.div,{"data-side":_,"data-align":z,...f,ref:b,style:{...f.style,animation:F?void 0:"none"}})})})});Mn.displayName=ft;var Fn="PopperArrow",Ni={top:"bottom",right:"left",bottom:"top",left:"right"},kn=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Ti(Fn,r),s=Ni[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(Pi,{...o,ref:n,style:{...o.style,display:"block"}})})});kn.displayName=Fn;function Li(e){return e!==null}var Mi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,u]=_n(n),h={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+d/2;let v="",f="";return c==="bottom"?(v=s?h:`${p}px`,f=`${-d}px`):c==="top"?(v=s?h:`${p}px`,f=`${r.floating.height+d}px`):c==="right"?(v=`${-d}px`,f=s?h:`${m}px`):c==="left"&&(v=`${r.floating.width+d}px`,f=s?h:`${m}px`),{data:{x:v,y:f}}}});function _n(e){const[t,n="center"]=e.split("-");return[t,n]}var Qi=Tn,Ji=Ln,es=Mn,ts=kn,Fi=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ki="VisuallyHidden",In=l.forwardRef((e,t)=>S.jsx($.span,{...e,ref:t,style:{...Fi,...e.style}}));In.displayName=ki;var ns=In;export{Ji as A,Xi as C,Gi as D,Ht as F,Ui as O,Yi as P,Vi as R,Ki as T,Fi as V,Hi as W,qi as a,zi as b,ji as c,Zi as d,Qi as e,zt as f,ue as g,io as h,xr as i,Zt as j,$t as k,es as l,ts as m,ns as n,Be as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,p}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{u as G,c as H,a as A,b as P,d as O,
|
|
1
|
+
import{a as c,p}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{u as G,c as H,a as A,b as P,d as O,g as K}from"./index-B5ynPIRP.js";import{u as _}from"./index-CbaefyjV.js";import{d as E,e as $,u as U,A as w,f as V,h as W,j as Z,m as q,i as z,F as B,k as J,l as Q}from"./index-DutSppa2.js";var x="Popover",[j]=H(x,[E]),g=E(),[X,u]=j(x),b=e=>{const{__scopePopover:n,children:t,open:s,defaultOpen:o,onOpenChange:r,modal:a=!1}=e,i=g(n),f=c.useRef(null),[v,h]=c.useState(!1),[C,l]=G({prop:s,defaultProp:o??!1,onChange:r,caller:x});return p.jsx($,{...i,children:p.jsx(X,{scope:n,contentId:U(),triggerRef:f,open:C,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(m=>!m),[l]),hasCustomAnchor:v,onCustomAnchorAdd:c.useCallback(()=>h(!0),[]),onCustomAnchorRemove:c.useCallback(()=>h(!1),[]),modal:a,children:t})})};b.displayName=x;var F="PopoverAnchor",N=c.forwardRef((e,n)=>{const{__scopePopover:t,...s}=e,o=u(F,t),r=g(t),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return c.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(w,{...r,...s,ref:n})});N.displayName=F;var S="PopoverTrigger",y=c.forwardRef((e,n)=>{const{__scopePopover:t,...s}=e,o=u(S,t),r=g(t),a=_(n,o.triggerRef),i=p.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":L(o.open),...s,ref:a,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(w,{asChild:!0,...r,children:i})});y.displayName=S;var R="PopoverPortal",[Y,ee]=j(R,{forceMount:void 0}),D=e=>{const{__scopePopover:n,forceMount:t,children:s,container:o}=e,r=u(R,n);return p.jsx(Y,{scope:n,forceMount:t,children:p.jsx(O,{present:t||r.open,children:p.jsx(V,{asChild:!0,container:o,children:s})})})};D.displayName=R;var d="PopoverContent",M=c.forwardRef((e,n)=>{const t=ee(d,e.__scopePopover),{forceMount:s=t.forceMount,...o}=e,r=u(d,e.__scopePopover);return p.jsx(O,{present:s||r.open,children:r.modal?p.jsx(re,{...o,ref:n}):p.jsx(te,{...o,ref:n})})});M.displayName=d;var oe=K("PopoverContent.RemoveScroll"),re=c.forwardRef((e,n)=>{const t=u(d,e.__scopePopover),s=c.useRef(null),o=_(n,s),r=c.useRef(!1);return c.useEffect(()=>{const a=s.current;if(a)return W(a)},[]),p.jsx(Z,{as:oe,allowPinchZoom:!0,children:p.jsx(k,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,a=>{a.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,f=i.button===0&&i.ctrlKey===!0,v=i.button===2||f;r.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),te=c.forwardRef((e,n)=>{const t=u(d,e.__scopePopover),s=c.useRef(!1),o=c.useRef(!1);return p.jsx(k,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(s.current||t.triggerRef.current?.focus(),r.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(s.current=!0,r.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=r.target;t.triggerRef.current?.contains(a)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&o.current&&r.preventDefault()}})}),k=c.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:h,...C}=e,l=u(d,t),m=g(t);return z(),p.jsx(B,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:r,children:p.jsx(J,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:i,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>l.onOpenChange(!1),children:p.jsx(Q,{"data-state":L(l.open),role:"dialog",id:l.contentId,...m,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",ne=c.forwardRef((e,n)=>{const{__scopePopover:t,...s}=e,o=u(T,t);return p.jsx(A.button,{type:"button",...s,ref:n,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});ne.displayName=T;var se="PopoverArrow",I=c.forwardRef((e,n)=>{const{__scopePopover:t,...s}=e,o=g(t);return p.jsx(q,{...o,...s,ref:n})});I.displayName=se;function L(e){return e?"open":"closed"}var ue=b,le=N,de=y,fe=D,ve=M,Pe=I;export{le as A,ve as C,fe as P,ue as R,de as T,Pe as a};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FilePicker-DGseBDOZ.js","assets/chunk-EPOLDU6W-CiSVlmCe.js","assets/utils-B48p8Qal.js","assets/files-BTW5qTjQ.js","assets/index-CZSVchcX.js","assets/index-DLIEpuwL.js","assets/badge-DTudhbGs.js","assets/index-CbaefyjV.js","assets/upload-DhJ5wU_H.js","assets/createLucideIcon-BvSqmaUO.js","assets/trash-UKLAaALv.js","assets/chevron-down-qxzqwz13.js","assets/check-DF0ucE8d.js","assets/x-D6gZWaAR.js","assets/button-BEFuP7Ru.js","assets/input-C3iFdiD8.js","assets/external-link-ERgO2SVI.js","assets/markdownEditor-CZVz5-rL.js","assets/authSlice-DWtXmmFR.js","assets/index-DutSppa2.js","assets/index-B5ynPIRP.js","assets/zod-DU3Qlmru.js","assets/schemas-CPJfa6mm.js","assets/index-nnJosT4e.js","assets/index-CU6_POhE.js","assets/schemas-D-U8dKAF.js","assets/loader-circle-BDUbeTTe.js","assets/markdownEditor-Dha_UaaS.css","assets/date-picker-6Pg8PIj8.js","assets/clear-button-DehdxgmB.js","assets/chevron-right-BFlMu-RJ.js","assets/calendar-Frbsxn98.js","assets/datetime-picker-XkOBOVOZ.js","assets/URLInput-ATIRZflA.js","assets/ColorPicker-kqchGTe4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as l,p as e,R as $,A as eo,v as to,z as oo}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{c as We,b as k,f as no,g as Pe,u as Ye,a as q,e as ne}from"./index-B5ynPIRP.js";import{u as U}from"./index-CbaefyjV.js";import{c as tt,R as so,W as ro,C as ao,T as lo,D as io,a as ot,P as co,O as uo,b as po,d as nt,e as mo,u as Ke,V as ho,A as fo,f as xo,g as go,h as vo,i as So,j as Co,F as wo,k as yo,l as bo,m as jo}from"./index-DutSppa2.js";import{b as st,B as ve}from"./button-BEFuP7Ru.js";import{b as T,z as No,A as Io,h as _o,n as Eo}from"./utils-B48p8Qal.js";import{B as Ro}from"./badge-DTudhbGs.js";import{g as Do,u as To,a as Ao,F as Po,b as Se,c as Ce,d as xe,e as we,f as ye,C as Xe,h as De}from"./zod-DU3Qlmru.js";import{I as Te}from"./input-C3iFdiD8.js";import{a as rt}from"./index-DLIEpuwL.js";import{C as at}from"./chevron-down-qxzqwz13.js";import{C as Mo}from"./check-DF0ucE8d.js";import{c as qe}from"./createLucideIcon-BvSqmaUO.js";import{R as Oo}from"./schemas-D-U8dKAF.js";import{t as ie}from"./index-CZSVchcX.js";import{X as Me}from"./x-D6gZWaAR.js";import{L as Lo}from"./loader-circle-BDUbeTTe.js";import{s as G,_ as Ze,u as ko,n as $o,l as Vo,o as Fo,a as Bo}from"./schemas-CPJfa6mm.js";const zo=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ho=qe("chevron-up",zo);const Uo=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Qe=qe("rotate-ccw",Uo);const Wo=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ko=qe("save",Wo);function Ae(t){if(!t||t.length!==1)return null;const o=t[0].match(/^\$(.+)$/);return o?o[1]:null}const qo="modulepreload",Go=function(t){return"/"+t},Je={},me=function(o,n,i){let c=Promise.resolve();if(n&&n.length>0){let h=function(f){return Promise.all(f.map(w=>Promise.resolve(w).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),d=s?.nonce||s?.getAttribute("nonce");c=h(n.map(f=>{if(f=Go(f),f in Je)return;Je[f]=!0;const w=f.endsWith(".css"),b=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${b}`))return;const N=document.createElement("link");if(N.rel=w?"stylesheet":qo,w||(N.as="script"),N.crossOrigin="",N.href=f,d&&N.setAttribute("nonce",d),document.head.appendChild(N),w)return new Promise((E,_)=>{N.addEventListener("load",E),N.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function p(s){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=s,window.dispatchEvent(d),!d.defaultPrevented)throw s}return c.then(s=>{for(const d of s||[])d.status==="rejected"&&p(d.reason);return o().catch(p)})};var lt="AlertDialog",[Yo]=We(lt,[tt]),oe=tt(),it=t=>{const{__scopeAlertDialog:o,...n}=t,i=oe(o);return e.jsx(so,{...i,...n,modal:!0})};it.displayName=lt;var Xo="AlertDialogTrigger",Zo=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,c=oe(n);return e.jsx(po,{...c,...i,ref:o})});Zo.displayName=Xo;var Qo="AlertDialogPortal",ct=t=>{const{__scopeAlertDialog:o,...n}=t,i=oe(o);return e.jsx(co,{...i,...n})};ct.displayName=Qo;var Jo="AlertDialogOverlay",dt=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,c=oe(n);return e.jsx(uo,{...c,...i,ref:o})});dt.displayName=Jo;var pe="AlertDialogContent",[en,tn]=Yo(pe),on=no("AlertDialogContent"),ut=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,children:i,...c}=t,p=oe(n),s=l.useRef(null),d=U(o,s),h=l.useRef(null);return e.jsx(ro,{contentName:pe,titleName:pt,docsSlug:"alert-dialog",children:e.jsx(en,{scope:n,cancelRef:h,children:e.jsxs(ao,{role:"alertdialog",...p,...c,ref:d,onOpenAutoFocus:k(c.onOpenAutoFocus,f=>{f.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[e.jsx(on,{children:i}),e.jsx(sn,{contentRef:s})]})})})});ut.displayName=pe;var pt="AlertDialogTitle",mt=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,c=oe(n);return e.jsx(lo,{...c,...i,ref:o})});mt.displayName=pt;var ht="AlertDialogDescription",ft=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,c=oe(n);return e.jsx(io,{...c,...i,ref:o})});ft.displayName=ht;var nn="AlertDialogAction",xt=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,c=oe(n);return e.jsx(ot,{...c,...i,ref:o})});xt.displayName=nn;var gt="AlertDialogCancel",vt=l.forwardRef((t,o)=>{const{__scopeAlertDialog:n,...i}=t,{cancelRef:c}=tn(gt,n),p=oe(n),s=U(o,c);return e.jsx(ot,{...p,...i,ref:s})});vt.displayName=gt;var sn=({contentRef:t})=>{const o=`\`${pe}\` requires a description for the component to be accessible for screen reader users.
|
|
3
|
+
|
|
4
|
+
You can add a description to the \`${pe}\` by passing a \`${ht}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
5
|
+
|
|
6
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${pe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
7
|
+
|
|
8
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(o)},[o,t]),null},rn=it,an=ct,ln=dt,cn=ut,dn=xt,un=vt,pn=mt,mn=ft;function St({...t}){return e.jsx(rn,{"data-slot":"alert-dialog",...t})}function hn({...t}){return e.jsx(an,{"data-slot":"alert-dialog-portal",...t})}function fn({className:t,...o}){return e.jsx(ln,{"data-slot":"alert-dialog-overlay",className:T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...o})}function Ct({className:t,...o}){return e.jsxs(hn,{children:[e.jsx(fn,{}),e.jsx(cn,{"data-slot":"alert-dialog-content",className:T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o})]})}function wt({className:t,...o}){return e.jsx("div",{"data-slot":"alert-dialog-header",className:T("flex flex-col gap-2 text-center sm:text-left",t),...o})}function yt({className:t,...o}){return e.jsx("div",{"data-slot":"alert-dialog-footer",className:T("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o})}function bt({className:t,...o}){return e.jsx(pn,{"data-slot":"alert-dialog-title",className:T("text-lg font-semibold",t),...o})}function jt({className:t,...o}){return e.jsx(mn,{"data-slot":"alert-dialog-description",className:T("text-muted-foreground text-sm",t),...o})}function Nt({className:t,...o}){return e.jsx(dn,{className:T(st(),t),...o})}function It({className:t,...o}){return e.jsx(un,{className:T(st({variant:"outline"}),t),...o})}function et(t,[o,n]){return Math.min(n,Math.max(o,t))}function xn(t){const o=t+"CollectionProvider",[n,i]=We(o),[c,p]=n(o,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:S,children:j}=x,g=$.useRef(null),C=$.useRef(new Map).current;return e.jsx(c,{scope:S,itemMap:C,collectionRef:g,children:j})};s.displayName=o;const d=t+"CollectionSlot",h=Pe(d),f=$.forwardRef((x,S)=>{const{scope:j,children:g}=x,C=p(d,j),A=U(S,C.collectionRef);return e.jsx(h,{ref:A,children:g})});f.displayName=d;const w=t+"CollectionItemSlot",b="data-radix-collection-item",N=Pe(w),E=$.forwardRef((x,S)=>{const{scope:j,children:g,...C}=x,A=$.useRef(null),V=U(S,A),v=p(w,j);return $.useEffect(()=>(v.itemMap.set(A,{ref:A,...C}),()=>{v.itemMap.delete(A)})),e.jsx(N,{[b]:"",ref:V,children:g})});E.displayName=w;function _(x){const S=p(t+"CollectionConsumer",x);return $.useCallback(()=>{const g=S.collectionRef.current;if(!g)return[];const C=Array.from(g.querySelectorAll(`[${b}]`));return Array.from(S.itemMap.values()).sort((v,P)=>C.indexOf(v.ref.current)-C.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:f,ItemSlot:E},_,i]}var gn=l.createContext(void 0);function vn(t){const o=l.useContext(gn);return t||o||"ltr"}var Sn=[" ","Enter","ArrowUp","ArrowDown"],Cn=[" ","Enter"],ce="Select",[je,Ne,wn]=xn(ce),[he]=We(ce,[wn,nt]),Ie=nt(),[yn,se]=he(ce),[bn,jn]=he(ce),_t=t=>{const{__scopeSelect:o,children:n,open:i,defaultOpen:c,onOpenChange:p,value:s,defaultValue:d,onValueChange:h,dir:f,name:w,autoComplete:b,disabled:N,required:E,form:_}=t,x=Ie(o),[S,j]=l.useState(null),[g,C]=l.useState(null),[A,V]=l.useState(!1),v=vn(f),[P,W]=Ye({prop:i,defaultProp:c??!1,onChange:p,caller:ce}),[ee,te]=Ye({prop:s,defaultProp:d,onChange:h,caller:ce}),Y=l.useRef(null),z=S?_||!!S.closest("form"):!0,[X,Z]=l.useState(new Set),H=Array.from(X).map(M=>M.props.value).join(";");return e.jsx(mo,{...x,children:e.jsxs(yn,{required:E,scope:o,trigger:S,onTriggerChange:j,valueNode:g,onValueNodeChange:C,valueNodeHasChildren:A,onValueNodeHasChildrenChange:V,contentId:Ke(),value:ee,onValueChange:te,open:P,onOpenChange:W,dir:v,triggerPointerDownPosRef:Y,disabled:N,children:[e.jsx(je.Provider,{scope:o,children:e.jsx(bn,{scope:t.__scopeSelect,onNativeOptionAdd:l.useCallback(M=>{Z(r=>new Set(r).add(M))},[]),onNativeOptionRemove:l.useCallback(M=>{Z(r=>{const a=new Set(r);return a.delete(M),a})},[]),children:n})}),z?e.jsxs(Xt,{"aria-hidden":!0,required:E,tabIndex:-1,name:w,autoComplete:b,value:ee,onChange:M=>te(M.target.value),disabled:N,form:_,children:[ee===void 0?e.jsx("option",{value:""}):null,Array.from(X)]},H):null]})})};_t.displayName=ce;var Et="SelectTrigger",Rt=l.forwardRef((t,o)=>{const{__scopeSelect:n,disabled:i=!1,...c}=t,p=Ie(n),s=se(Et,n),d=s.disabled||i,h=U(o,s.onTriggerChange),f=Ne(n),w=l.useRef("touch"),[b,N,E]=Qt(x=>{const S=f().filter(C=>!C.disabled),j=S.find(C=>C.value===s.value),g=Jt(S,x,j);g!==void 0&&s.onValueChange(g.value)}),_=x=>{d||(s.onOpenChange(!0),E()),x&&(s.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return e.jsx(fo,{asChild:!0,...p,children:e.jsx(q.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":Zt(s.value)?"":void 0,...c,ref:h,onClick:k(c.onClick,x=>{x.currentTarget.focus(),w.current!=="mouse"&&_(x)}),onPointerDown:k(c.onPointerDown,x=>{w.current=x.pointerType;const S=x.target;S.hasPointerCapture(x.pointerId)&&S.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(_(x),x.preventDefault())}),onKeyDown:k(c.onKeyDown,x=>{const S=b.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&N(x.key),!(S&&x.key===" ")&&Sn.includes(x.key)&&(_(),x.preventDefault())})})})});Rt.displayName=Et;var Dt="SelectValue",Tt=l.forwardRef((t,o)=>{const{__scopeSelect:n,className:i,style:c,children:p,placeholder:s="",...d}=t,h=se(Dt,n),{onValueNodeHasChildrenChange:f}=h,w=p!==void 0,b=U(o,h.onValueNodeChange);return ne(()=>{f(w)},[f,w]),e.jsx(q.span,{...d,ref:b,style:{pointerEvents:"none"},children:Zt(h.value)?e.jsx(e.Fragment,{children:s}):p})});Tt.displayName=Dt;var Nn="SelectIcon",At=l.forwardRef((t,o)=>{const{__scopeSelect:n,children:i,...c}=t;return e.jsx(q.span,{"aria-hidden":!0,...c,ref:o,children:i||"▼"})});At.displayName=Nn;var In="SelectPortal",Pt=t=>e.jsx(xo,{asChild:!0,...t});Pt.displayName=In;var de="SelectContent",Mt=l.forwardRef((t,o)=>{const n=se(de,t.__scopeSelect),[i,c]=l.useState();if(ne(()=>{c(new DocumentFragment)},[]),!n.open){const p=i;return p?rt.createPortal(e.jsx(Ot,{scope:t.__scopeSelect,children:e.jsx(je.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),p):null}return e.jsx(Lt,{...t,ref:o})});Mt.displayName=de;var J=10,[Ot,re]=he(de),_n="SelectContentImpl",En=Pe("SelectContent.RemoveScroll"),Lt=l.forwardRef((t,o)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:p,onPointerDownOutside:s,side:d,sideOffset:h,align:f,alignOffset:w,arrowPadding:b,collisionBoundary:N,collisionPadding:E,sticky:_,hideWhenDetached:x,avoidCollisions:S,...j}=t,g=se(de,n),[C,A]=l.useState(null),[V,v]=l.useState(null),P=U(o,y=>A(y)),[W,ee]=l.useState(null),[te,Y]=l.useState(null),z=Ne(n),[X,Z]=l.useState(!1),H=l.useRef(!1);l.useEffect(()=>{if(C)return vo(C)},[C]),So();const M=l.useCallback(y=>{const[O,...K]=z().map(L=>L.ref.current),[R]=K.slice(-1),D=document.activeElement;for(const L of y)if(L===D||(L?.scrollIntoView({block:"nearest"}),L===O&&V&&(V.scrollTop=0),L===R&&V&&(V.scrollTop=V.scrollHeight),L?.focus(),document.activeElement!==D))return},[z,V]),r=l.useCallback(()=>M([W,C]),[M,W,C]);l.useEffect(()=>{X&&r()},[X,r]);const{onOpenChange:a,triggerPointerDownPosRef:m}=g;l.useEffect(()=>{if(C){let y={x:0,y:0};const O=R=>{y={x:Math.abs(Math.round(R.pageX)-(m.current?.x??0)),y:Math.abs(Math.round(R.pageY)-(m.current?.y??0))}},K=R=>{y.x<=10&&y.y<=10?R.preventDefault():C.contains(R.target)||a(!1),document.removeEventListener("pointermove",O),m.current=null};return m.current!==null&&(document.addEventListener("pointermove",O),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",K,{capture:!0})}}},[C,a,m]),l.useEffect(()=>{const y=()=>a(!1);return window.addEventListener("blur",y),window.addEventListener("resize",y),()=>{window.removeEventListener("blur",y),window.removeEventListener("resize",y)}},[a]);const[u,F]=Qt(y=>{const O=z().filter(D=>!D.disabled),K=O.find(D=>D.ref.current===document.activeElement),R=Jt(O,y,K);R&&setTimeout(()=>R.ref.current.focus())}),Q=l.useCallback((y,O,K)=>{const R=!H.current&&!K;(g.value!==void 0&&g.value===O||R)&&(ee(y),R&&(H.current=!0))},[g.value]),I=l.useCallback(()=>C?.focus(),[C]),B=l.useCallback((y,O,K)=>{const R=!H.current&&!K;(g.value!==void 0&&g.value===O||R)&&Y(y)},[g.value]),ue=i==="popper"?Oe:kt,fe=ue===Oe?{side:d,sideOffset:h,align:f,alignOffset:w,arrowPadding:b,collisionBoundary:N,collisionPadding:E,sticky:_,hideWhenDetached:x,avoidCollisions:S}:{};return e.jsx(Ot,{scope:n,content:C,viewport:V,onViewportChange:v,itemRefCallback:Q,selectedItem:W,onItemLeave:I,itemTextRefCallback:B,focusSelectedItem:r,selectedItemText:te,position:i,isPositioned:X,searchRef:u,children:e.jsx(Co,{as:En,allowPinchZoom:!0,children:e.jsx(wo,{asChild:!0,trapped:g.open,onMountAutoFocus:y=>{y.preventDefault()},onUnmountAutoFocus:k(c,y=>{g.trigger?.focus({preventScroll:!0}),y.preventDefault()}),children:e.jsx(yo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:p,onPointerDownOutside:s,onFocusOutside:y=>y.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:e.jsx(ue,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:y=>y.preventDefault(),...j,...fe,onPlaced:()=>Z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:k(j.onKeyDown,y=>{const O=y.ctrlKey||y.altKey||y.metaKey;if(y.key==="Tab"&&y.preventDefault(),!O&&y.key.length===1&&F(y.key),["ArrowUp","ArrowDown","Home","End"].includes(y.key)){let R=z().filter(D=>!D.disabled).map(D=>D.ref.current);if(["ArrowUp","End"].includes(y.key)&&(R=R.slice().reverse()),["ArrowUp","ArrowDown"].includes(y.key)){const D=y.target,L=R.indexOf(D);R=R.slice(L+1)}setTimeout(()=>M(R)),y.preventDefault()}})})})})})})});Lt.displayName=_n;var Rn="SelectItemAlignedPosition",kt=l.forwardRef((t,o)=>{const{__scopeSelect:n,onPlaced:i,...c}=t,p=se(de,n),s=re(de,n),[d,h]=l.useState(null),[f,w]=l.useState(null),b=U(o,P=>w(P)),N=Ne(n),E=l.useRef(!1),_=l.useRef(!0),{viewport:x,selectedItem:S,selectedItemText:j,focusSelectedItem:g}=s,C=l.useCallback(()=>{if(p.trigger&&p.valueNode&&d&&f&&x&&S&&j){const P=p.trigger.getBoundingClientRect(),W=f.getBoundingClientRect(),ee=p.valueNode.getBoundingClientRect(),te=j.getBoundingClientRect();if(p.dir!=="rtl"){const D=te.left-W.left,L=ee.left-D,ae=P.left-L,le=P.width+ae,_e=Math.max(le,W.width),Ee=window.innerWidth-J,Re=et(L,[J,Math.max(J,Ee-_e)]);d.style.minWidth=le+"px",d.style.left=Re+"px"}else{const D=W.right-te.right,L=window.innerWidth-ee.right-D,ae=window.innerWidth-P.right-L,le=P.width+ae,_e=Math.max(le,W.width),Ee=window.innerWidth-J,Re=et(L,[J,Math.max(J,Ee-_e)]);d.style.minWidth=le+"px",d.style.right=Re+"px"}const Y=N(),z=window.innerHeight-J*2,X=x.scrollHeight,Z=window.getComputedStyle(f),H=parseInt(Z.borderTopWidth,10),M=parseInt(Z.paddingTop,10),r=parseInt(Z.borderBottomWidth,10),a=parseInt(Z.paddingBottom,10),m=H+M+X+a+r,u=Math.min(S.offsetHeight*5,m),F=window.getComputedStyle(x),Q=parseInt(F.paddingTop,10),I=parseInt(F.paddingBottom,10),B=P.top+P.height/2-J,ue=z-B,fe=S.offsetHeight/2,y=S.offsetTop+fe,O=H+M+y,K=m-O;if(O<=B){const D=Y.length>0&&S===Y[Y.length-1].ref.current;d.style.bottom="0px";const L=f.clientHeight-x.offsetTop-x.offsetHeight,ae=Math.max(ue,fe+(D?I:0)+L+r),le=O+ae;d.style.height=le+"px"}else{const D=Y.length>0&&S===Y[0].ref.current;d.style.top="0px";const ae=Math.max(B,H+x.offsetTop+(D?Q:0)+fe)+K;d.style.height=ae+"px",x.scrollTop=O-B+x.offsetTop}d.style.margin=`${J}px 0`,d.style.minHeight=u+"px",d.style.maxHeight=z+"px",i?.(),requestAnimationFrame(()=>E.current=!0)}},[N,p.trigger,p.valueNode,d,f,x,S,j,p.dir,i]);ne(()=>C(),[C]);const[A,V]=l.useState();ne(()=>{f&&V(window.getComputedStyle(f).zIndex)},[f]);const v=l.useCallback(P=>{P&&_.current===!0&&(C(),g?.(),_.current=!1)},[C,g]);return e.jsx(Tn,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:E,onScrollButtonChange:v,children:e.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:e.jsx(q.div,{...c,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});kt.displayName=Rn;var Dn="SelectPopperPosition",Oe=l.forwardRef((t,o)=>{const{__scopeSelect:n,align:i="start",collisionPadding:c=J,...p}=t,s=Ie(n);return e.jsx(bo,{...s,...p,ref:o,align:i,collisionPadding:c,style:{boxSizing:"border-box",...p.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Oe.displayName=Dn;var[Tn,Ge]=he(de,{}),Le="SelectViewport",$t=l.forwardRef((t,o)=>{const{__scopeSelect:n,nonce:i,...c}=t,p=re(Le,n),s=Ge(Le,n),d=U(o,p.onViewportChange),h=l.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),e.jsx(je.Slot,{scope:n,children:e.jsx(q.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:k(c.onScroll,f=>{const w=f.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:N}=s;if(N?.current&&b){const E=Math.abs(h.current-w.scrollTop);if(E>0){const _=window.innerHeight-J*2,x=parseFloat(b.style.minHeight),S=parseFloat(b.style.height),j=Math.max(x,S);if(j<_){const g=j+E,C=Math.min(_,g),A=g-C;b.style.height=C+"px",b.style.bottom==="0px"&&(w.scrollTop=A>0?A:0,b.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});$t.displayName=Le;var Vt="SelectGroup",[An,Pn]=he(Vt),Mn=l.forwardRef((t,o)=>{const{__scopeSelect:n,...i}=t,c=Ke();return e.jsx(An,{scope:n,id:c,children:e.jsx(q.div,{role:"group","aria-labelledby":c,...i,ref:o})})});Mn.displayName=Vt;var Ft="SelectLabel",On=l.forwardRef((t,o)=>{const{__scopeSelect:n,...i}=t,c=Pn(Ft,n);return e.jsx(q.div,{id:c.id,...i,ref:o})});On.displayName=Ft;var be="SelectItem",[Ln,Bt]=he(be),zt=l.forwardRef((t,o)=>{const{__scopeSelect:n,value:i,disabled:c=!1,textValue:p,...s}=t,d=se(be,n),h=re(be,n),f=d.value===i,[w,b]=l.useState(p??""),[N,E]=l.useState(!1),_=U(o,g=>h.itemRefCallback?.(g,i,c)),x=Ke(),S=l.useRef("touch"),j=()=>{c||(d.onValueChange(i),d.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(Ln,{scope:n,value:i,disabled:c,textId:x,isSelected:f,onItemTextChange:l.useCallback(g=>{b(C=>C||(g?.textContent??"").trim())},[]),children:e.jsx(je.ItemSlot,{scope:n,value:i,disabled:c,textValue:w,children:e.jsx(q.div,{role:"option","aria-labelledby":x,"data-highlighted":N?"":void 0,"aria-selected":f&&N,"data-state":f?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...s,ref:_,onFocus:k(s.onFocus,()=>E(!0)),onBlur:k(s.onBlur,()=>E(!1)),onClick:k(s.onClick,()=>{S.current!=="mouse"&&j()}),onPointerUp:k(s.onPointerUp,()=>{S.current==="mouse"&&j()}),onPointerDown:k(s.onPointerDown,g=>{S.current=g.pointerType}),onPointerMove:k(s.onPointerMove,g=>{S.current=g.pointerType,c?h.onItemLeave?.():S.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:k(s.onPointerLeave,g=>{g.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:k(s.onKeyDown,g=>{h.searchRef?.current!==""&&g.key===" "||(Cn.includes(g.key)&&j(),g.key===" "&&g.preventDefault())})})})})});zt.displayName=be;var ge="SelectItemText",Ht=l.forwardRef((t,o)=>{const{__scopeSelect:n,className:i,style:c,...p}=t,s=se(ge,n),d=re(ge,n),h=Bt(ge,n),f=jn(ge,n),[w,b]=l.useState(null),N=U(o,j=>b(j),h.onItemTextChange,j=>d.itemTextRefCallback?.(j,h.value,h.disabled)),E=w?.textContent,_=l.useMemo(()=>e.jsx("option",{value:h.value,disabled:h.disabled,children:E},h.value),[h.disabled,h.value,E]),{onNativeOptionAdd:x,onNativeOptionRemove:S}=f;return ne(()=>(x(_),()=>S(_)),[x,S,_]),e.jsxs(e.Fragment,{children:[e.jsx(q.span,{id:h.textId,...p,ref:N}),h.isSelected&&s.valueNode&&!s.valueNodeHasChildren?rt.createPortal(p.children,s.valueNode):null]})});Ht.displayName=ge;var Ut="SelectItemIndicator",Wt=l.forwardRef((t,o)=>{const{__scopeSelect:n,...i}=t;return Bt(Ut,n).isSelected?e.jsx(q.span,{"aria-hidden":!0,...i,ref:o}):null});Wt.displayName=Ut;var ke="SelectScrollUpButton",Kt=l.forwardRef((t,o)=>{const n=re(ke,t.__scopeSelect),i=Ge(ke,t.__scopeSelect),[c,p]=l.useState(!1),s=U(o,i.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let d=function(){const f=h.scrollTop>0;p(f)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),c?e.jsx(Gt,{...t,ref:s,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null});Kt.displayName=ke;var $e="SelectScrollDownButton",qt=l.forwardRef((t,o)=>{const n=re($e,t.__scopeSelect),i=Ge($e,t.__scopeSelect),[c,p]=l.useState(!1),s=U(o,i.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let d=function(){const f=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<f;p(w)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),c?e.jsx(Gt,{...t,ref:s,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null});qt.displayName=$e;var Gt=l.forwardRef((t,o)=>{const{__scopeSelect:n,onAutoScroll:i,...c}=t,p=re("SelectScrollButton",n),s=l.useRef(null),d=Ne(n),h=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>h(),[h]),ne(()=>{d().find(w=>w.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),e.jsx(q.div,{"aria-hidden":!0,...c,ref:o,style:{flexShrink:0,...c.style},onPointerDown:k(c.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(i,50))}),onPointerMove:k(c.onPointerMove,()=>{p.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(i,50))}),onPointerLeave:k(c.onPointerLeave,()=>{h()})})}),kn="SelectSeparator",Yt=l.forwardRef((t,o)=>{const{__scopeSelect:n,...i}=t;return e.jsx(q.div,{"aria-hidden":!0,...i,ref:o})});Yt.displayName=kn;var Ve="SelectArrow",$n=l.forwardRef((t,o)=>{const{__scopeSelect:n,...i}=t,c=Ie(n),p=se(Ve,n),s=re(Ve,n);return p.open&&s.position==="popper"?e.jsx(jo,{...c,...i,ref:o}):null});$n.displayName=Ve;var Vn="SelectBubbleInput",Xt=l.forwardRef(({__scopeSelect:t,value:o,...n},i)=>{const c=l.useRef(null),p=U(i,c),s=Do(o);return l.useEffect(()=>{const d=c.current;if(!d)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(s!==o&&w){const b=new Event("change",{bubbles:!0});w.call(d,o),d.dispatchEvent(b)}},[s,o]),e.jsx(q.select,{...n,style:{...ho,...n.style},ref:p,defaultValue:o})});Xt.displayName=Vn;function Zt(t){return t===""||t===void 0}function Qt(t){const o=go(t),n=l.useRef(""),i=l.useRef(0),c=l.useCallback(s=>{const d=n.current+s;o(d),(function h(f){n.current=f,window.clearTimeout(i.current),f!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(d)},[o]),p=l.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,c,p]}function Jt(t,o,n){const c=o.length>1&&Array.from(o).every(f=>f===o[0])?o[0]:o,p=n?t.indexOf(n):-1;let s=Fn(t,Math.max(p,0));c.length===1&&(s=s.filter(f=>f!==n));const h=s.find(f=>f.textValue.toLowerCase().startsWith(c.toLowerCase()));return h!==n?h:void 0}function Fn(t,o){return t.map((n,i)=>t[(o+i)%t.length])}var Bn=_t,zn=Rt,Hn=Tt,Un=At,Wn=Pt,Kn=Mt,qn=$t,Gn=zt,Yn=Ht,Xn=Wt,Zn=Kt,Qn=qt,_s=Yt;function Fe({...t}){return e.jsx(Bn,{"data-slot":"select",...t})}function Be({...t}){return e.jsx(Hn,{"data-slot":"select-value",...t})}function ze({className:t,size:o="default",children:n,...i}){return e.jsxs(zn,{"data-slot":"select-trigger","data-size":o,className:T("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i,children:[n,e.jsx(Un,{asChild:!0,children:e.jsx(at,{className:"size-4 opacity-50"})})]})}function He({className:t,children:o,position:n="popper",...i}){return e.jsx(Wn,{children:e.jsxs(Kn,{"data-slot":"select-content",className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...i,children:[e.jsx(Jn,{}),e.jsx(qn,{className:T("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),e.jsx(es,{})]})})}function Ue({className:t,children:o,...n}){return e.jsxs(Gn,{"data-slot":"select-item",className:T("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...n,children:[e.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsx(Xn,{children:e.jsx(Mo,{className:"size-4"})})}),e.jsx(Yn,{children:o})]})}function Jn({className:t,...o}){return e.jsx(Zn,{"data-slot":"select-scroll-up-button",className:T("flex cursor-default items-center justify-center py-1",t),...o,children:e.jsx(Ho,{className:"size-4"})})}function es({className:t,...o}){return e.jsx(Qn,{"data-slot":"select-scroll-down-button",className:T("flex cursor-default items-center justify-center py-1",t),...o,children:e.jsx(at,{className:"size-4"})})}function ts({hasUnsavedChanges:t,title:o="Unsaved Changes",description:n="You have unsaved changes. Are you sure you want to leave this page? Your changes will be lost.",stayButtonText:i="Stay on Page",leaveButtonText:c="Leave Page"}){const p=eo(({currentLocation:w,nextLocation:b})=>t&&w.pathname!==b.pathname),[s,d]=l.useState(!1),h=()=>{p.state==="blocked"&&p.proceed()},f=()=>{p.state==="blocked"&&p.reset()};return l.useEffect(()=>{d(p.state==="blocked")},[p.state,s]),l.useEffect(()=>{const w=b=>{t&&(b.preventDefault(),b.returnValue="")};return t&&window.addEventListener("beforeunload",w),()=>{window.removeEventListener("beforeunload",w)}},[t]),e.jsx(St,{open:s,onOpenChange:d,children:e.jsxs(Ct,{children:[e.jsxs(wt,{children:[e.jsx(bt,{children:o}),e.jsx(jt,{children:n})]}),e.jsxs(yt,{children:[e.jsx(It,{onClick:f,children:i}),e.jsx(Nt,{onClick:h,children:c})]})]})})}const os=({field:t,value:o,resolvedChoices:n,key:i,hasMinMax:c})=>{const p=t.value?String(t.value).split(",").map(s=>s.trim()).filter(Boolean):[];return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"flex flex-wrap gap-2 min-h-[38px] p-2 border rounded-md bg-background",children:p.length>0?p.map(s=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-md text-sm font-medium bg-gray-100 text-black-800",children:[s,e.jsxs("button",{type:"button",onClick:()=>{const d=p.filter(h=>h!==s);t.onChange(d.join(","))},className:"hover:bg-gray-200 rounded-sm p-0.5",children:[e.jsx(Me,{size:14}),e.jsxs("span",{className:"sr-only",children:["Remove ",s]})]})]},s)):e.jsx("span",{className:"text-muted-foreground text-sm",children:o.placeholder??"Select items..."})}),(!o.maxSelectedChoices||p.length<o.maxSelectedChoices)&&e.jsxs(Fe,{value:"",onValueChange:s=>{const d=p;d.includes(s)||t.onChange([...d,s].join(","))},children:[e.jsx(ze,{id:i,className:"w-full",children:e.jsx(Be,{placeholder:"Add item..."})}),e.jsx(He,{children:n.filter(s=>!p.includes(s)).map(s=>e.jsx(Ue,{value:s,children:s},s))})]}),c&&e.jsxs("span",{className:T("text-xs",o.minSelectedChoices&&p.length<o.minSelectedChoices?"text-destructive":"text-muted-foreground"),children:[p.length,o.minSelectedChoices&&o.maxSelectedChoices?`/${o.maxSelectedChoices} (min ${o.minSelectedChoices})`:o.minSelectedChoices?` selected (min ${o.minSelectedChoices})`:`/${o.maxSelectedChoices} selected`]})]})},ns=$.lazy(()=>me(()=>import("./FilePicker-DGseBDOZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),ss=$.lazy(()=>me(()=>import("./markdownEditor-CZVz5-rL.js"),__vite__mapDeps([17,1,18,2,5,19,20,7,21,12,9,22,23,24,14,6,15,11,25,4,13,26,27]))),rs=$.lazy(()=>me(()=>import("./date-picker-6Pg8PIj8.js"),__vite__mapDeps([28,1,14,7,2,29,9,30,11,23,20,5,19,13,31]))),as=$.lazy(()=>me(()=>import("./datetime-picker-XkOBOVOZ.js"),__vite__mapDeps([32,1,14,7,2,29,9,30,11,23,20,5,19,13,15,31]))),ls=$.lazy(()=>me(()=>import("./URLInput-ATIRZflA.js"),__vite__mapDeps([33,1,15,2,16,9]))),is=$.lazy(()=>me(()=>import("./ColorPicker-kqchGTe4.js"),__vite__mapDeps([34,1])));function Es({itemType:t,fields:o,isSingleton:n,data:i,productionData:c,isNew:p,changedFields:s=[],itemStatus:d}){const h=to(),{hash:f}=oo(),[w]=No(),[b]=Io(),{data:N}=_o(),[E,_]=l.useState(!1),[x,S]=l.useState(null),[j,g]=l.useState(null),C=r=>s.includes(r);l.useEffect(()=>{if(!f)return;const r=f.slice(1),a=document.getElementById(r);a&&(window.scrollTo({top:window.scrollY,behavior:"smooth"}),a.focus())},[f]);const A=l.useMemo(()=>({id:n?"default":i?.id??"",isDraft:String(i?.isDraft??!1),...Object.fromEntries(Object.keys(o).map(r=>{const a=o[r].type,m=i?.[r];return m!=null?a==="boolean"?[r,String(m)]:a==="multiselect"?[r,Array.isArray(m)?m:[m]]:[r,String(m)]:a==="boolean"?[r,"false"]:a==="multiselect"?[r,[]]:[r,""]}))}),[i,o,n]),V=l.useMemo(()=>{const r={id:G().min(1,"ID is required").regex(/^[a-z0-9-]+$/,"ID can only include lowercase letters and numbers"),isDraft:G()};return Object.entries(o).forEach(([a,m])=>{let u;switch(m.type){case"boolean":u=Ze(["true","false"]);break;case"number":u=$o();break;case"url":u=ko("Must be a valid URL");break;case"date":u=G();break;case"datetime":u=G();break;case"color":u=Oo;break;case"select":Ae(m.choicesFixed)?u=G():m.choicesFixed&&m.choicesFixed.length>0?u=Ze(m.choicesFixed):u=G();break;case"multiselect":u=Bo(G()),m.minSelectedChoices&&(u=u.min(m.minSelectedChoices,`${m.displayName} requires at least ${m.minSelectedChoices} selection${m.minSelectedChoices>1?"s":""}`)),m.maxSelectedChoices&&(u=u.max(m.maxSelectedChoices,`${m.displayName} allows maximum ${m.maxSelectedChoices} selection${m.maxSelectedChoices>1?"s":""}`));break;case"string":m.isMultiple?Ae(m.choicesFixed)?u=G():m.choicesFixed&&m.choicesFixed.length>0?u=G():u=G():u=G();break;default:u=G()}m.optional?m.type==="multiselect"?m.minSelectedChoices||(u=u.optional()):u=u.optional().or(Vo("")):m.type==="multiselect"&&!m.minSelectedChoices?u=u.min(1,`${m.displayName} requires at least one selection`):m.type!=="boolean"&&m.type!=="select"&&!(m.type==="string"&&m.isMultiple&&m.choicesFixed)&&(u=u.min(1,`${m.displayName} is required`)),r[a]=u}),Fo(r)},[o]),v=To({resolver:Ao(V),defaultValues:A});l.useEffect(()=>{v.reset(A)},[A,v]),l.useEffect(()=>{if(!v)return;const r=window.location.hash;r&&v.setFocus(r.substring(1))},[v]);const P=$.useCallback(r=>{if(!c){ie.error("Production values are not available.");return}const a=c[r];v.setValue(r,a,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),v.trigger(r),ie.success(`Restored "${o[r]?.displayName??r}" to published value.`)},[c,v,o]),W=$.useCallback(()=>{if(!c){ie.error("Production values are not available.");return}s.length&&(s.forEach(r=>{const a=c[r];v.setValue(r,a,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}),ie.success("Restored modified fields to published values."))},[c,s,v]),ee=$.useCallback(r=>{g(r),S("single"),_(!0)},[]),te=$.useCallback(()=>{g(null),S("all"),_(!0)},[]),Y=$.useCallback(()=>{x==="single"&&j?P(j):x==="all"&&W(),_(!1),S(null),g(null),z(v.getValues(),!1)},[x,j,P,W]);async function z(r,a=!0){const m={...r,isDraft:r.isDraft==="true",type:t};Object.entries(o).forEach(([u,F])=>{F.type==="boolean"&&(m[u]=r[u]==="true")});try{if(p){const B=await w(m).unwrap();a&&ie.success("Item created successfully."),h(`/admin/dashboard/${t}/${B.id}`);return}const u=i?.id,F=m.id,Q=u!==F;if(!u)return;const I=await b({...m,id:u,type:t,newId:Q?F:void 0}).unwrap();if(a&&ie.success("Item updated successfully."),Q){h(`/admin/dashboard/${t}/${I.id}`);return}v.reset(r)}catch(u){u.status===409&&v.setError("id",{type:"manual",message:"An item with this ID already exists."}),ie.error(p?"Failed to create item.":"Failed to update item."),console.error(u)}}l.useEffect(()=>{const r=a=>{(a.ctrlKey||a.metaKey)&&a.key==="s"&&(a.preventDefault(),(v.formState.isDirty||p)&&v.handleSubmit(m=>z(m))())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[v,p,z]);const X=l.useMemo(()=>Object.entries(o).filter(([,r])=>r.type==="boolean"),[o]),Z=l.useMemo(()=>{const r={};return Object.entries(o).forEach(([a,m])=>{if(m.type==="select"||m.type==="multiselect"||m.type==="string"&&m.isMultiple&&m.choicesFixed){const u=Ae(m.choicesFixed);if(u&&N){const F=N[u];F?r[a]=Object.values(F).map(Q=>Q.id):r[a]=[]}else r[a]=m.choicesFixed||[]}}),r},[o,N]),H="outline outline-1 outline-yellow-400 outline-offset-4 rounded-sm",M=({fieldKey:r})=>e.jsxs("span",{className:"inline-flex items-center gap-1 text-yellow-800 text-xs",children:["(modified)",e.jsxs(ve,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4",onClick:()=>ee(r),title:"Restore published value",children:[e.jsx(Qe,{size:12,className:"text-black"}),e.jsxs("span",{className:"sr-only",children:["Restore ",r," to production"]})]})]});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i&&i.updatedAt&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Last updated:"}),e.jsx("p",{className:"text-sm",children:new Date(i.updatedAt).toLocaleString()})]}),d&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Unpublished status:"}),e.jsx(Ro,{className:T("capitalize",Eo[d]),children:d}),s.length>0&&e.jsxs(ve,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6",onClick:te,title:"Restore all fields to published values",children:[e.jsx(Qe,{size:14}),e.jsx("span",{className:"sr-only",children:"Restore all modified fields to published values"})]})]})]}),e.jsxs(Po,{...v,children:[e.jsxs("form",{onSubmit:v.handleSubmit(r=>z(r)),className:"space-y-4 max-w-[800px] w-[800px]",children:[e.jsx(Se,{name:"id",control:v.control,rules:{required:!0},render:({field:r})=>e.jsxs(Ce,{id:"id",className:T((i?.id==="default"||n)&&"hidden",C("id")&&H),children:[e.jsxs(xe,{className:"flex gap-1 items-baseline",children:["ID",C("id")&&e.jsx(M,{fieldKey:"id"})]}),e.jsx(we,{children:e.jsx(Te,{placeholder:"item-id",...v.register("id"),...r,value:r.value,onChange:a=>{const m=a.target.value.toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/[^a-z0-9-]/g,"");r.onChange(m)},onBlur:a=>{const m=a.target.value.trim().replace(/^-+|-+$/g,"");r.onChange(m)}})}),e.jsx(ye,{})]})}),e.jsx(Se,{name:"isDraft",control:v.control,render:({field:r})=>e.jsxs(Ce,{id:"isDraft",className:T("flex flex-col items-start",(i?.id==="default"||n)&&"hidden",C("isDraft")&&H),children:[e.jsxs("div",{className:"flex flex-row space-x-2",children:[e.jsx(we,{children:e.jsx(Xe,{id:"isDraft",...v.register("isDraft"),checked:r.value==="true",onCheckedChange:a=>{r.onChange(a===!0?"true":"false")}})}),e.jsxs(xe,{className:"flex gap-1 items-baseline",children:["Draft",C("isDraft")&&e.jsx("span",{className:"text-yellow-600 text-xs",children:e.jsx(M,{fieldKey:"isDraft"})})]})]}),e.jsx(De,{children:"Draft items are not visible on the published site"}),e.jsx(ye,{})]})}),X.length>0&&e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(xe,{children:"Flags"}),e.jsx("div",{className:"flex flex-row flex-wrap gap-4",children:X.map(([r,a])=>e.jsx(Se,{name:r,control:v.control,render:({field:m})=>e.jsxs(Ce,{className:T("flex flex-col items-start",C(r)&&H),children:[e.jsxs("div",{className:"flex flex-row space-x-2",children:[e.jsx(we,{children:e.jsx(Xe,{id:r,...v.register(r),checked:m.value==="true",onCheckedChange:u=>{m.onChange(u===!0?"true":"false")}})}),e.jsxs(xe,{className:"flex gap-1 items-baseline",children:[a.displayName,C(r)&&e.jsx("span",{className:"text-yellow-800 text-xs",children:e.jsx(M,{fieldKey:r})})]})]}),a.displayExtra&&e.jsx(De,{children:a.displayExtra}),e.jsx(ye,{})]})},r))})]}),Object.entries(o).filter(([,r])=>r.type!=="boolean").map(([r,a])=>{const m=Z[r]??[];return e.jsx(Se,{name:r,control:v.control,rules:{required:!a.optional},render:({field:u})=>{const F=u.value?.length??0,Q=(a.type==="multiselect"||a.type==="string"&&a.isMultiple&&a.choicesFixed)&&(a.minSelectedChoices||a.maxSelectedChoices);return e.jsxs(Ce,{id:r,className:T(C(r)&&H),children:[e.jsxs(xe,{className:"flex gap-1 items-baseline",children:[a.displayName,a.optional&&e.jsx("span",{className:"text-gray-400",children:"(optional)"}),C(r)&&e.jsx("span",{className:"text-yellow-600 text-xs",children:e.jsx(M,{fieldKey:r})})]}),e.jsx(we,{children:a.type==="markdown"?e.jsx(ss,{id:r,name:r,register:v.register,className:"h-52",markdown:u.value,onChange:(I,B)=>{B||u.onChange(I)},placeholder:a.placeholder,fieldDisplayName:a.displayName}):a.type==="url"?e.jsx(ls,{id:r,...v.register(r),placeholder:a.placeholder??"https://example.website/",...u,value:u.value}):a.type==="string"&&a.isUploadedFile?e.jsx(ns,{id:r,name:r,register:v.register,value:u.value,onChange:u.onChange}):a.type==="date"?e.jsx(rs,{id:r,...v.register(r),date:u.value?new Date(u.value):void 0,onDateChange:I=>{u.onChange(I?I.toISOString():"")},placeholder:a.placeholder??"Select date",allowClear:a.optional}):a.type==="datetime"?e.jsx("div",{className:"relative",children:e.jsx(as,{id:r,...v.register(r),date:u.value?new Date(u.value):void 0,onDateTimeChange:I=>{u.onChange(I?I.toISOString():"")},placeholder:a.placeholder??"Select date and time",allowClear:a.optional})}):a.type==="color"?e.jsx(is,{id:r,value:u.value,onChange:u.onChange,placeholder:a.placeholder}):a.type==="number"?e.jsx(Te,{id:r,...v.register(r,{valueAsNumber:!0}),type:"number",value:u.value,onChange:u.onChange,placeholder:a.placeholder}):a.type==="select"?e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(Fe,{value:u.value,onValueChange:u.onChange,children:[e.jsx(ze,{id:r,className:"w-full",children:e.jsx(Be,{placeholder:a.placeholder??"Select an item..."})}),e.jsx(He,{children:m.map(I=>e.jsx(Ue,{value:I,children:I},I))})]}),a.optional&&u.value&&e.jsxs(ve,{type:"button",variant:"outline",size:"icon",onClick:()=>u.onChange(""),className:"shrink-0",children:[e.jsx(Me,{size:16}),e.jsx("span",{className:"sr-only",children:"Clear selection"})]})]}):a.type==="multiselect"?e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"flex flex-wrap gap-2 min-h-[38px] p-2 border rounded-md bg-background",children:u.value?.length>0?u.value.map(I=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-md text-sm font-medium bg-gray-100 text-black-800",children:[I,e.jsxs("button",{type:"button",onClick:()=>{const B=u.value.filter(ue=>ue!==I);u.onChange(B)},className:"hover:bg-gray-200 rounded-sm p-0.5",children:[e.jsx(Me,{size:14}),e.jsxs("span",{className:"sr-only",children:["Remove ",I]})]})]},I)):e.jsx("span",{className:"text-muted-foreground text-sm",children:a.placeholder??"Select items..."})}),(!a.maxSelectedChoices||F<a.maxSelectedChoices)&&e.jsxs(Fe,{value:"",onValueChange:I=>{const B=u.value||[];B.includes(I)||u.onChange([...B,I])},children:[e.jsx(ze,{id:r,className:"w-full",children:e.jsx(Be,{placeholder:"Add item..."})}),e.jsx(He,{children:m.filter(I=>!u.value?.includes(I)).map(I=>e.jsx(Ue,{value:I,children:I},I))})]}),Q&&e.jsxs("span",{className:T("text-xs",a.minSelectedChoices&&F<a.minSelectedChoices?"text-destructive":"text-muted-foreground"),children:[F,a.minSelectedChoices&&a.maxSelectedChoices?`/${a.maxSelectedChoices} (min ${a.minSelectedChoices})`:a.minSelectedChoices?` selected (min ${a.minSelectedChoices})`:`/${a.maxSelectedChoices} selected`]})]}):a.type==="string"&&a.isMultiple&&a.choicesFixed?e.jsx(os,{field:u,resolvedChoices:m,value:a,hasMinMax:Q},r):e.jsx(Te,{id:r,...v.register(r),placeholder:a.placeholder,...u,value:u.value})}),a.displayExtra&&e.jsx(De,{children:a.displayExtra}),e.jsx(ye,{})]})}},r)}),e.jsxs(ve,{disabled:!v.formState.isDirty&&!p||v.formState.isSubmitting,type:"submit",children:[v.formState.isSubmitting?e.jsx(Lo,{className:"animate-spin"}):e.jsx(Ko,{}),v.formState.isSubmitting?"Saving":v.watch("isDraft")==="true"?"Save Draft":"Save"]})]}),e.jsx(ts,{hasUnsavedChanges:!v.formState.isSubmitting&&v.formState.isDirty})]}),e.jsx(St,{open:E,onOpenChange:_,children:e.jsxs(Ct,{children:[e.jsxs(wt,{children:[e.jsx(bt,{children:x==="all"?"Restore all modified fields?":"Restore this field?"}),e.jsx(jt,{children:x==="all"?`This will restore ${s.length} modified ${s.length===1?"field":"fields"} to published values.`:`This will restore "${j?o[j]?.displayName??j:"field"}" to its published value.`})]}),e.jsxs(yt,{children:[e.jsx(It,{children:"Cancel"}),e.jsx(Nt,{onClick:Y,children:"Restore"})]})]})})]})}export{Kn as C,Es as I,Wn as P,Bn as R,_s as S,zn as T,Hn as V,Un as a,qn as b,xn as c,Gn as d,Yn as e,vn as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-C94uvdU2.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/index-DLIEpuwL.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/root-
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-C94uvdU2.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/index-DLIEpuwL.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/root-dzmn7V-J.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/index-DLIEpuwL.js","/assets/index-CZSVchcX.js","/assets/loader-circle-BDUbeTTe.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/circle-check-C6CxUIig.js","/assets/utils-B48p8Qal.js","/assets/authSlice-DWtXmmFR.js","/assets/Loading-C1QGFwZC.js"],"css":["/assets/root-DZYAU5bq.css"]},"routes/home":{"id":"routes/home","parentId":"root","path":"/admin","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/home-BsBPywQn.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/Loading-C1QGFwZC.js","/assets/button-BEFuP7Ru.js","/assets/zod-DU3Qlmru.js","/assets/input-C3iFdiD8.js","/assets/authSlice-DWtXmmFR.js","/assets/schemas-CPJfa6mm.js","/assets/utils-B48p8Qal.js","/assets/loader-circle-BDUbeTTe.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/index-CbaefyjV.js","/assets/index-B5ynPIRP.js","/assets/index-DLIEpuwL.js","/assets/check-DF0ucE8d.js"],"css":[]},"routes/dashboard._layout":{"id":"routes/dashboard._layout","parentId":"root","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._layout-BLI8ZXFq.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/authSlice-DWtXmmFR.js","/assets/utils-B48p8Qal.js","/assets/index-CZSVchcX.js","/assets/index-DutSppa2.js","/assets/x-D6gZWaAR.js","/assets/button-BEFuP7Ru.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/index-CbaefyjV.js","/assets/index-B5ynPIRP.js","/assets/index-CU6_POhE.js","/assets/chevron-down-qxzqwz13.js","/assets/loader-circle-BDUbeTTe.js","/assets/arrow-up-C0I0e1Jt.js","/assets/upload-DhJ5wU_H.js","/assets/external-link-ERgO2SVI.js","/assets/Loading-C1QGFwZC.js","/assets/chevron-right-BFlMu-RJ.js","/assets/index-DLIEpuwL.js"],"css":[]},"routes/dashboard":{"id":"routes/dashboard","parentId":"routes/dashboard._layout","path":"/admin/dashboard","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard-CXsgx-dc.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/utils-B48p8Qal.js","/assets/index-Cgk-ojIv.js","/assets/badge-DTudhbGs.js","/assets/schemas-D-U8dKAF.js","/assets/index-CbaefyjV.js","/assets/schemas-CPJfa6mm.js"],"css":[]},"routes/dashboard.$collection.new":{"id":"routes/dashboard.$collection.new","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId/new","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection.new-PercY47A.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/itemForm-BLyILW73.js","/assets/utils-B48p8Qal.js","/assets/index-B5ynPIRP.js","/assets/index-CbaefyjV.js","/assets/index-DLIEpuwL.js","/assets/index-DutSppa2.js","/assets/button-BEFuP7Ru.js","/assets/badge-DTudhbGs.js","/assets/zod-DU3Qlmru.js","/assets/check-DF0ucE8d.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/schemas-CPJfa6mm.js","/assets/input-C3iFdiD8.js","/assets/chevron-down-qxzqwz13.js","/assets/schemas-D-U8dKAF.js","/assets/index-CZSVchcX.js","/assets/x-D6gZWaAR.js","/assets/loader-circle-BDUbeTTe.js"],"css":[]},"routes/dashboard.$collection":{"id":"routes/dashboard.$collection","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection-BJjjgsuR.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/button-BEFuP7Ru.js","/assets/utils-B48p8Qal.js","/assets/input-C3iFdiD8.js","/assets/index-Cgk-ojIv.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/calendar-Frbsxn98.js","/assets/trash-UKLAaALv.js","/assets/check-DF0ucE8d.js","/assets/x-D6gZWaAR.js","/assets/external-link-ERgO2SVI.js","/assets/circle-check-C6CxUIig.js","/assets/arrow-up-C0I0e1Jt.js","/assets/index-CbaefyjV.js"],"css":[]},"routes/dashboard.$collection.$document":{"id":"routes/dashboard.$collection.$document","parentId":"routes/dashboard._layout","path":"/admin/dashboard/:collectionId/:documentId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard._collection._document-BiIWfKiL.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/itemForm-BLyILW73.js","/assets/utils-B48p8Qal.js","/assets/index-B5ynPIRP.js","/assets/index-CbaefyjV.js","/assets/index-DLIEpuwL.js","/assets/index-DutSppa2.js","/assets/button-BEFuP7Ru.js","/assets/badge-DTudhbGs.js","/assets/zod-DU3Qlmru.js","/assets/check-DF0ucE8d.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/schemas-CPJfa6mm.js","/assets/input-C3iFdiD8.js","/assets/chevron-down-qxzqwz13.js","/assets/schemas-D-U8dKAF.js","/assets/index-CZSVchcX.js","/assets/x-D6gZWaAR.js","/assets/loader-circle-BDUbeTTe.js"],"css":[]},"routes/dashboard.files":{"id":"routes/dashboard.files","parentId":"routes/dashboard._layout","path":"/admin/dashboard/files","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dashboard.files-wgFLZCcb.js","imports":["/assets/chunk-EPOLDU6W-CiSVlmCe.js","/assets/files-BTW5qTjQ.js","/assets/utils-B48p8Qal.js","/assets/index-CZSVchcX.js","/assets/index-DLIEpuwL.js","/assets/badge-DTudhbGs.js","/assets/index-CbaefyjV.js","/assets/upload-DhJ5wU_H.js","/assets/createLucideIcon-BvSqmaUO.js","/assets/trash-UKLAaALv.js","/assets/chevron-down-qxzqwz13.js","/assets/check-DF0ucE8d.js","/assets/x-D6gZWaAR.js"],"css":[]}},"url":"/assets/manifest-9cecc256.js","version":"9cecc256"};
|