@isardsat/editorial-admin 6.11.0 → 6.11.1

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.
Files changed (90) hide show
  1. package/build/client/assets/{ColorPicker-IW3vBXSN.js → ColorPicker-cMAyYT0T.js} +1 -1
  2. package/build/client/assets/{FilePicker-BoyljzKd.js → FilePicker-Cl1xE7Nb.js} +1 -1
  3. package/build/client/assets/Loading-BkOvB9cm.js +1 -0
  4. package/build/client/assets/URLInput-Ck27J_vV.js +1 -0
  5. package/build/client/assets/arrow-up-C0I0e1Jt.js +1 -0
  6. package/build/client/assets/authSlice-DyBWbN7g.js +18 -0
  7. package/build/client/assets/{button-Dxr-3uFz.js → button-CAQsSeJv.js} +1 -1
  8. package/build/client/assets/calendar-Frbsxn98.js +1 -0
  9. package/build/client/assets/chevron-down-qxzqwz13.js +1 -0
  10. package/build/client/assets/chevron-right-BFlMu-RJ.js +1 -0
  11. package/build/client/assets/chunk-EPOLDU6W-CiSVlmCe.js +26 -0
  12. package/build/client/assets/circle-check-C6CxUIig.js +1 -0
  13. package/build/client/assets/clear-button-BT0-SaS2.js +1 -0
  14. package/build/client/assets/createLucideIcon-BvSqmaUO.js +1 -0
  15. package/build/client/assets/{dashboard-eVXdEFvy.js → dashboard-DADSOZ-_.js} +1 -1
  16. package/build/client/assets/dashboard._collection-CtVDeSsn.js +1 -0
  17. package/build/client/assets/dashboard._collection._document-D6oCwVGC.js +1 -0
  18. package/build/client/assets/dashboard._collection.new-CQfN_irk.js +1 -0
  19. package/build/client/assets/dashboard._layout-D1s9unut.js +1 -0
  20. package/build/client/assets/dashboard.files-xlUtjOxw.js +1 -0
  21. package/build/client/assets/date-picker-D1xkYBxv.js +1 -0
  22. package/build/client/assets/{datetime-picker-RVcJa-hA.js → datetime-picker-IFDqN0ae.js} +1 -1
  23. package/build/client/assets/entry.client-C94uvdU2.js +13 -0
  24. package/build/client/assets/external-link-ERgO2SVI.js +1 -0
  25. package/build/client/assets/files-BFmouRir.js +1 -0
  26. package/build/client/assets/home-CYNfeuaU.js +1 -0
  27. package/build/client/assets/index-B-2LEQwB.js +1 -0
  28. package/build/client/assets/index-B45LLRRA.js +1 -0
  29. package/build/client/assets/index-BuuBEQuS.js +1 -0
  30. package/build/client/assets/index-C0hImMcN.js +1 -0
  31. package/build/client/assets/{index-CttGRTCZ.js → index-CDZBGZah.js} +2 -20
  32. package/build/client/assets/{index-BTe_3Ala.js → index-CZSVchcX.js} +1 -1
  33. package/build/client/assets/index-Cxe-PO-X.js +1 -0
  34. package/build/client/assets/index-DLIEpuwL.js +1 -0
  35. package/build/client/assets/index-DgNySWwD.js +45 -0
  36. package/build/client/assets/{input-xJI2b5Sp.js → input-BuAmKgZ9.js} +1 -1
  37. package/build/client/assets/itemForm-D719CaIj.js +8 -0
  38. package/build/client/assets/manifest-37e8fc05.js +1 -0
  39. package/build/client/assets/markdownEditor-CrmMLADy.js +100 -0
  40. package/build/client/assets/markdownEditor-Dha_UaaS.css +1 -0
  41. package/build/client/assets/root--tn719HN.css +1 -0
  42. package/build/client/assets/root-CchL-zdR.js +1 -0
  43. package/build/client/assets/schemas-DSUGmKgQ.js +40 -0
  44. package/build/client/assets/trash-UKLAaALv.js +1 -0
  45. package/build/client/assets/tslib.es6-Dm3DwgL9.js +1 -0
  46. package/build/client/assets/upload-DhJ5wU_H.js +1 -0
  47. package/build/client/assets/utils-oJIM4U5n.js +1 -0
  48. package/build/client/assets/x-D6gZWaAR.js +1 -0
  49. package/build/client/index.html +3 -3
  50. package/package.json +2 -2
  51. package/build/client/assets/Loading-DkkTJbsn.js +0 -6
  52. package/build/client/assets/URLInput-DZIiMxgx.js +0 -1
  53. package/build/client/assets/arrow-up-LKnZ72Ym.js +0 -11
  54. package/build/client/assets/authSlice-DFHOkK9j.js +0 -2763
  55. package/build/client/assets/calendar-DVBBYeOW.js +0 -6
  56. package/build/client/assets/chevron-down-CtNmiOMb.js +0 -6
  57. package/build/client/assets/chevron-right-haBQNeuE.js +0 -6
  58. package/build/client/assets/chunk-EF7DTUVF-CaKisB5m.js +0 -51
  59. package/build/client/assets/circle-check-94P8iWMg.js +0 -6
  60. package/build/client/assets/clear-button-wZQNsrkz.js +0 -6
  61. package/build/client/assets/createLucideIcon-BweVylaW.js +0 -21
  62. package/build/client/assets/dashboard._collection-C25Nlh67.js +0 -26
  63. package/build/client/assets/dashboard._collection._document-Clg8DIhx.js +0 -1
  64. package/build/client/assets/dashboard._collection.new-CBIwONjS.js +0 -1
  65. package/build/client/assets/dashboard._layout-BT5UJmod.js +0 -36
  66. package/build/client/assets/dashboard.files-D1Oj8glB.js +0 -1
  67. package/build/client/assets/date-picker-CYFCrG85.js +0 -1
  68. package/build/client/assets/entry.client-Be049MAC.js +0 -29
  69. package/build/client/assets/external-link-LWykkN17.js +0 -6
  70. package/build/client/assets/files-DwkfV9QP.js +0 -26
  71. package/build/client/assets/home-BsxAOkSU.js +0 -1
  72. package/build/client/assets/index-46piFQ87.js +0 -1
  73. package/build/client/assets/index-BJ-ODQ_I.js +0 -9
  74. package/build/client/assets/index-Be3bqnxd.js +0 -1
  75. package/build/client/assets/index-BxJwj7VX.js +0 -45
  76. package/build/client/assets/index-CEA_25hA.js +0 -1
  77. package/build/client/assets/index-CQnetejS.js +0 -1
  78. package/build/client/assets/index-PuNjdK9F.js +0 -1
  79. package/build/client/assets/itemForm-CFpASfjf.js +0 -15
  80. package/build/client/assets/manifest-6d3a9622.js +0 -1
  81. package/build/client/assets/markdownEditor-BmmlxrMb.js +0 -128
  82. package/build/client/assets/markdownEditor-D2iPtBtk.css +0 -1
  83. package/build/client/assets/root-1Wb14VaX.css +0 -1
  84. package/build/client/assets/root-BeK-V6m1.js +0 -16
  85. package/build/client/assets/schemas-Cg4zf3bl.js +0 -26
  86. package/build/client/assets/trash-BPu8wmdf.js +0 -11
  87. package/build/client/assets/tslib.es6-Dilv5nzk.js +0 -6
  88. package/build/client/assets/upload-C84AIRF5.js +0 -6
  89. package/build/client/assets/utils-fIb4EhUB.js +0 -9
  90. package/build/client/assets/x-BI8YVnoZ.js +0 -6
@@ -0,0 +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-B-2LEQwB.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,X as h,j as i,k as j,G as u};
@@ -0,0 +1 @@
1
+ import{r as O,C as S}from"./chunk-EPOLDU6W-CiSVlmCe.js";var d={exports:{}},n={};var l;function R(){if(l)return n;l=1;var u=O();function g(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(g(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(e,r,t){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:c==null?null:""+c,children:e,containerInfo:r,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,r){if(e==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(e,r){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(g(299));return v(e,r,null,t)},n.flushSync=function(e){var r=f.T,t=i.p;try{if(f.T=null,i.p=2,e)return e()}finally{f.T=r,i.p=t,i.d.f()}},n.preconnect=function(e,r){typeof e=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,i.d.C(e,r))},n.prefetchDNS=function(e){typeof e=="string"&&i.d.D(e)},n.preinit=function(e,r){if(typeof e=="string"&&r&&typeof r.as=="string"){var t=r.as,c=s(t,r.crossOrigin),y=typeof r.integrity=="string"?r.integrity:void 0,o=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;t==="style"?i.d.S(e,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:c,integrity:y,fetchPriority:o}):t==="script"&&i.d.X(e,{crossOrigin:c,integrity:y,fetchPriority:o,nonce:typeof r.nonce=="string"?r.nonce:void 0})}},n.preinitModule=function(e,r){if(typeof e=="string")if(typeof r=="object"&&r!==null){if(r.as==null||r.as==="script"){var t=s(r.as,r.crossOrigin);i.d.M(e,{crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r==null&&i.d.M(e)},n.preload=function(e,r){if(typeof e=="string"&&typeof r=="object"&&r!==null&&typeof r.as=="string"){var t=r.as,c=s(t,r.crossOrigin);i.d.L(e,t,{crossOrigin:c,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}},n.preloadModule=function(e,r){if(typeof e=="string")if(r){var t=s(r.as,r.crossOrigin);i.d.m(e,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else i.d.m(e)},n.requestFormReset=function(e){i.d.r(e)},n.unstable_batchedUpdates=function(e,r){return e(r)},n.useFormState=function(e,r,t){return f.H.useFormState(e,r,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.3",n}var _;function E(){if(_)return d.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),d.exports=R(),d.exports}var T=E();const h=S(T);export{h as R,T as a,E as r};
@@ -0,0 +1,45 @@
1
+ import{a,B as nt,p as g}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{e as De,a as O,b as N,h as rt,u as ot,c as at,d as se,i as it,j as st}from"./index-Cxe-PO-X.js";import{u as W}from"./index-B-2LEQwB.js";import{R as ct}from"./index-DLIEpuwL.js";import{_ as T,a as Re,b as ut}from"./tslib.es6-Dm3DwgL9.js";var lt=nt[" useId ".trim().toString()]||(()=>{}),dt=0;function q(e){const[t,n]=a.useState(lt());return De(()=>{n(r=>r??String(dt++))},[e]),e||(t?`radix-${t}`:"")}function j(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function ft(e,t=globalThis?.document){const n=j(e);a.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 vt="DismissableLayer",ae="dismissableLayer.update",ht="dismissableLayer.pointerDownOutside",mt="dismissableLayer.focusOutside",fe,Pe=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oe=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:s,...E}=e,l=a.useContext(Pe),[d,v]=a.useState(null),h=d?.ownerDocument??globalThis?.document,[,y]=a.useState({}),D=W(t,p=>v(p)),c=Array.from(l.layers),[f]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=c.indexOf(f),b=d?c.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=b>=m,w=Et(p=>{const A=p.target,L=[...l.branches].some(B=>B.contains(A));!S||L||(o?.(p),u?.(p),p.defaultPrevented||s?.())},h),R=yt(p=>{const A=p.target;[...l.branches].some(B=>B.contains(A))||(i?.(p),u?.(p),p.defaultPrevented||s?.())},h);return ft(p=>{b===l.layers.size-1&&(r?.(p),!p.defaultPrevented&&s&&(p.preventDefault(),s()))},h),a.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(fe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ve(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fe)}},[d,h,n,l]),a.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ve())},[d,l]),a.useEffect(()=>{const p=()=>y({});return document.addEventListener(ae,p),()=>document.removeEventListener(ae,p)},[]),g.jsx(O.div,{...E,ref:D,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,R.onFocusCapture),onBlurCapture:N(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,w.onPointerDownCapture)})});Oe.displayName=vt;var gt="DismissableLayerBranch",pt=a.forwardRef((e,t)=>{const n=a.useContext(Pe),r=a.useRef(null),o=W(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(O.div,{...e,ref:o})});pt.displayName=gt;function Et(e,t=globalThis?.document){const n=j(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let E=function(){xe(ht,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=E,t.addEventListener("click",o.current,{once:!0})):E()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yt(e,t=globalThis?.document){const n=j(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&xe(mt,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 ve(){const e=new CustomEvent(ae);document.dispatchEvent(e)}function xe(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?rt(o,i):o.dispatchEvent(i)}var Q="focusScope.autoFocusOnMount",J="focusScope.autoFocusOnUnmount",he={bubbles:!1,cancelable:!0},bt="FocusScope",Te=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[s,E]=a.useState(null),l=j(o),d=j(i),v=a.useRef(null),h=W(t,c=>E(c)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let c=function(C){if(y.paused||!s)return;const S=C.target;s.contains(S)?v.current=S:x(v.current,{select:!0})},f=function(C){if(y.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||x(v.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const w of C)w.removedNodes.length>0&&x(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",f);const b=new MutationObserver(m);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",f),b.disconnect()}}},[r,s,y.paused]),a.useEffect(()=>{if(s){ge.add(y);const c=document.activeElement;if(!s.contains(c)){const m=new CustomEvent(Q,he);s.addEventListener(Q,l),s.dispatchEvent(m),m.defaultPrevented||(Ct(Pt(Ne(s)),{select:!0}),document.activeElement===c&&x(s))}return()=>{s.removeEventListener(Q,l),setTimeout(()=>{const m=new CustomEvent(J,he);s.addEventListener(J,d),s.dispatchEvent(m),m.defaultPrevented||x(c??document.body,{select:!0}),s.removeEventListener(J,d),ge.remove(y)},0)}}},[s,l,d,y]);const D=a.useCallback(c=>{if(!n&&!r||y.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,m=document.activeElement;if(f&&m){const b=c.currentTarget,[C,S]=St(b);C&&S?!c.shiftKey&&m===S?(c.preventDefault(),n&&x(C,{select:!0})):c.shiftKey&&m===C&&(c.preventDefault(),n&&x(S,{select:!0})):m===b&&c.preventDefault()}},[n,r,y.paused]);return g.jsx(O.div,{tabIndex:-1,...u,ref:h,onKeyDown:D})});Te.displayName=bt;function Ct(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(x(r,{select:t}),document.activeElement!==n)return}function St(e){const t=Ne(e),n=me(t,e),r=me(t.reverse(),e);return[n,r]}function Ne(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 me(e,t){for(const n of e)if(!wt(n,{upTo:t}))return n}function wt(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 Dt(e){return e instanceof HTMLInputElement&&"select"in e}function x(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dt(e)&&t&&e.select()}}var ge=Rt();function Rt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pe(e,t),e.unshift(t)},remove(t){e=pe(e,t),e[0]?.resume()}}}function pe(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Pt(e){return e.filter(t=>t.tagName!=="A")}var Ot="Portal",Ae=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);De(()=>i(!0),[]);const u=n||o&&globalThis?.document?.body;return u?ct.createPortal(g.jsx(O.div,{...r,ref:t}),u):null});Ae.displayName=Ot;var ee=0;function xt(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ee()),document.body.insertAdjacentElement("beforeend",e[1]??Ee()),ee++,()=>{ee===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ee--}},[])}function Ee(){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 Y="right-scroll-bar-position",X="width-before-scroll-bar",Tt="with-scroll-bars-hidden",Nt="--removed-body-scroll-bar-size";function te(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function At(e,t){var n=a.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 It=typeof window<"u"?a.useLayoutEffect:a.useEffect,ye=new WeakMap;function Lt(e,t){var n=At(null,function(r){return e.forEach(function(o){return te(o,r)})});return It(function(){var r=ye.get(n);if(r){var o=new Set(r),i=new Set(e),u=n.current;o.forEach(function(s){i.has(s)||te(s,null)}),i.forEach(function(s){o.has(s)||te(s,u)})}ye.set(n,e)},[e]),n}function Mt(e){return e}function Ft(e,t){t===void 0&&(t=Mt);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 u=t(i,r);return n.push(u),function(){n=n.filter(function(s){return s!==u})}},assignSyncMedium:function(i){for(r=!0;n.length;){var u=n;n=[],u.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var u=[];if(n.length){var s=n;n=[],s.forEach(i),u=n}var E=function(){var d=u;u=[],d.forEach(i)},l=function(){return Promise.resolve().then(E)};l(),n={push:function(d){u.push(d),l()},filter:function(d){return u=u.filter(d),n}}}};return o}function kt(e){e===void 0&&(e={});var t=Ft(null);return t.options=T({async:!0,ssr:!1},e),t}var Ie=function(e){var t=e.sideCar,n=Re(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 a.createElement(r,T({},n))};Ie.isSideCarExport=!0;function _t(e,t){return e.useMedium(t),Ie}var Le=kt(),ne=function(){},z=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ne,onWheelCapture:ne,onTouchMoveCapture:ne}),o=r[0],i=r[1],u=e.forwardProps,s=e.children,E=e.className,l=e.removeScrollBar,d=e.enabled,v=e.shards,h=e.sideCar,y=e.noRelative,D=e.noIsolation,c=e.inert,f=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,C=e.gapMode,S=Re(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,R=Lt([n,t]),p=T(T({},S),o);return a.createElement(a.Fragment,null,d&&a.createElement(w,{sideCar:Le,removeScrollBar:l,shards:v,noRelative:y,noIsolation:D,inert:c,setCallbacks:i,allowPinchZoom:!!f,lockRef:n,gapMode:C}),u?a.cloneElement(a.Children.only(s),T(T({},p),{ref:R})):a.createElement(b,T({},p,{className:E,ref:R}),s))});z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};z.classNames={fullWidth:X,zeroRight:Y};var Wt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wt();return t&&e.setAttribute("nonce",t),e}function jt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ut(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bt())&&(jt(t,n),Ut(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ht=function(){var e=Kt();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Me=function(){var e=Ht(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Gt={left:0,top:0,right:0,gap:0},re=function(e){return parseInt(e||"",10)||0},Vt=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[re(n),re(r),re(o)]},Yt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gt;var t=Vt(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])}},Xt=Me(),_="data-scroll-locked",$t=function(e,t,n,r){var o=e.left,i=e.top,u=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(Tt,` {
3
+ overflow: hidden `).concat(r,`;
4
+ padding-right: `).concat(s,"px ").concat(r,`;
5
+ }
6
+ body[`).concat(_,`] {
7
+ overflow: hidden `).concat(r,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
+ padding-left: `.concat(o,`px;
11
+ padding-top: `).concat(i,`px;
12
+ padding-right: `).concat(u,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(s,"px ").concat(r,`;
16
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(Y,` {
20
+ right: `).concat(s,"px ").concat(r,`;
21
+ }
22
+
23
+ .`).concat(X,` {
24
+ margin-right: `).concat(s,"px ").concat(r,`;
25
+ }
26
+
27
+ .`).concat(Y," .").concat(Y,` {
28
+ right: 0 `).concat(r,`;
29
+ }
30
+
31
+ .`).concat(X," .").concat(X,` {
32
+ margin-right: 0 `).concat(r,`;
33
+ }
34
+
35
+ body[`).concat(_,`] {
36
+ `).concat(Nt,": ").concat(s,`px;
37
+ }
38
+ `)},be=function(){var e=parseInt(document.body.getAttribute(_)||"0",10);return isFinite(e)?e:0},zt=function(){a.useEffect(function(){return document.body.setAttribute(_,(be()+1).toString()),function(){var e=be()-1;e<=0?document.body.removeAttribute(_):document.body.setAttribute(_,e.toString())}},[])},Zt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zt();var i=a.useMemo(function(){return Yt(o)},[o]);return a.createElement(Xt,{styles:$t(i,!t,o,n?"":"!important")})},ie=!1;if(typeof window<"u")try{var K=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}});window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch{ie=!1}var M=ie?{passive:!1}:!1,qt=function(e){return e.tagName==="TEXTAREA"},Fe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qt(e)&&n[t]==="visible")},Qt=function(e){return Fe(e,"overflowY")},Jt=function(e){return Fe(e,"overflowX")},Ce=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ke(e,r);if(o){var i=_e(e,r),u=i[1],s=i[2];if(u>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},en=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tn=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ke=function(e,t){return e==="v"?Qt(t):Jt(t)},_e=function(e,t){return e==="v"?en(t):tn(t)},nn=function(e,t){return e==="h"&&t==="rtl"?-1:1},rn=function(e,t,n,r,o){var i=nn(e,window.getComputedStyle(t).direction),u=i*r,s=n.target,E=t.contains(s),l=!1,d=u>0,v=0,h=0;do{if(!s)break;var y=_e(e,s),D=y[0],c=y[1],f=y[2],m=c-f-i*D;(D||m)&&ke(e,s)&&(v+=m,h+=D);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!E&&s!==document.body||E&&(t.contains(s)||t===s));return(d&&Math.abs(v)<1||!d&&Math.abs(h)<1)&&(l=!0),l},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Se=function(e){return[e.deltaX,e.deltaY]},we=function(e){return e&&"current"in e?e.current:e},on=function(e,t){return e[0]===t[0]&&e[1]===t[1]},an=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},sn=0,F=[];function cn(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(sn++)[0],i=a.useState(Me)[0],u=a.useRef(e);a.useEffect(function(){u.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=ut([e.lockRef.current],(e.shards||[]).map(we),!0).filter(Boolean);return c.forEach(function(f){return f.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(c,f){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!u.current.allowPinchZoom;var m=H(c),b=n.current,C="deltaX"in c?c.deltaX:b[0]-m[0],S="deltaY"in c?c.deltaY:b[1]-m[1],w,R=c.target,p=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in c&&p==="h"&&R.type==="range")return!1;var A=window.getSelection(),L=A&&A.anchorNode,B=L?L===R||L.contains(R):!1;if(B)return!1;var U=Ce(p,R);if(!U)return!0;if(U?w=p:(w=p==="v"?"h":"v",U=Ce(p,R)),!U)return!1;if(!r.current&&"changedTouches"in c&&(C||S)&&(r.current=w),!w)return!0;var de=r.current||w;return rn(de,f,c,de==="h"?C:S)},[]),E=a.useCallback(function(c){var f=c;if(!(!F.length||F[F.length-1]!==i)){var m="deltaY"in f?Se(f):H(f),b=t.current.filter(function(w){return w.name===f.type&&(w.target===f.target||f.target===w.shadowParent)&&on(w.delta,m)})[0];if(b&&b.should){f.cancelable&&f.preventDefault();return}if(!b){var C=(u.current.shards||[]).map(we).filter(Boolean).filter(function(w){return w.contains(f.target)}),S=C.length>0?s(f,C[0]):!u.current.noIsolation;S&&f.cancelable&&f.preventDefault()}}},[]),l=a.useCallback(function(c,f,m,b){var C={name:c,delta:f,target:m,should:b,shadowParent:un(m)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=a.useCallback(function(c){n.current=H(c),r.current=void 0},[]),v=a.useCallback(function(c){l(c.type,Se(c),c.target,s(c,e.lockRef.current))},[]),h=a.useCallback(function(c){l(c.type,H(c),c.target,s(c,e.lockRef.current))},[]);a.useEffect(function(){return F.push(i),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:h}),document.addEventListener("wheel",E,M),document.addEventListener("touchmove",E,M),document.addEventListener("touchstart",d,M),function(){F=F.filter(function(c){return c!==i}),document.removeEventListener("wheel",E,M),document.removeEventListener("touchmove",E,M),document.removeEventListener("touchstart",d,M)}},[]);var y=e.removeScrollBar,D=e.inert;return a.createElement(a.Fragment,null,D?a.createElement(i,{styles:an(o)}):null,y?a.createElement(Zt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function un(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ln=_t(Le,cn);var We=a.forwardRef(function(e,t){return a.createElement(z,T({},e,{ref:t,sideCar:ln}))});We.classNames=z.classNames;var dn=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},k=new WeakMap,G=new WeakMap,V={},oe=0,Be=function(e){return e&&(e.host||Be(e.parentNode))},fn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Be(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vn=function(e,t,n,r){var o=fn(t,Array.isArray(e)?e:[e]);V[n]||(V[n]=new WeakMap);var i=V[n],u=[],s=new Set,E=new Set(o),l=function(v){!v||s.has(v)||(s.add(v),l(v.parentNode))};o.forEach(l);var d=function(v){!v||E.has(v)||Array.prototype.forEach.call(v.children,function(h){if(s.has(h))d(h);else try{var y=h.getAttribute(r),D=y!==null&&y!=="false",c=(k.get(h)||0)+1,f=(i.get(h)||0)+1;k.set(h,c),i.set(h,f),u.push(h),c===1&&D&&G.set(h,!0),f===1&&h.setAttribute(n,"true"),D||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(t),s.clear(),oe++,function(){u.forEach(function(v){var h=k.get(v)-1,y=i.get(v)-1;k.set(v,h),i.set(v,y),h||(G.has(v)||v.removeAttribute(r),G.delete(v)),y||v.removeAttribute(n)}),oe--,oe||(k=new WeakMap,k=new WeakMap,G=new WeakMap,V={})}},hn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=dn(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),vn(r,o,n,"aria-hidden")):function(){return null}},Z="Dialog",[je,Tn]=at(Z),[mn,P]=je(Z),Ue=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:u=!0}=e,s=a.useRef(null),E=a.useRef(null),[l,d]=ot({prop:r,defaultProp:o??!1,onChange:i,caller:Z});return g.jsx(mn,{scope:t,triggerRef:s,contentRef:E,contentId:q(),titleId:q(),descriptionId:q(),open:l,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(v=>!v),[d]),modal:u,children:n})};Ue.displayName=Z;var Ke="DialogTrigger",He=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(Ke,n),i=W(t,o.triggerRef);return g.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":le(o.open),...r,ref:i,onClick:N(e.onClick,o.onOpenToggle)})});He.displayName=Ke;var ce="DialogPortal",[gn,Ge]=je(ce,{forceMount:void 0}),Ve=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=P(ce,t);return g.jsx(gn,{scope:t,forceMount:n,children:a.Children.map(r,u=>g.jsx(se,{present:n||i.open,children:g.jsx(Ae,{asChild:!0,container:o,children:u})}))})};Ve.displayName=ce;var $="DialogOverlay",Ye=a.forwardRef((e,t)=>{const n=Ge($,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=P($,e.__scopeDialog);return i.modal?g.jsx(se,{present:r||i.open,children:g.jsx(En,{...o,ref:t})}):null});Ye.displayName=$;var pn=it("DialogOverlay.RemoveScroll"),En=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P($,n);return g.jsx(We,{as:pn,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(O.div,{"data-state":le(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",Xe=a.forwardRef((e,t)=>{const n=Ge(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=P(I,e.__scopeDialog);return g.jsx(se,{present:r||i.open,children:i.modal?g.jsx(yn,{...o,ref:t}):g.jsx(bn,{...o,ref:t})})});Xe.displayName=I;var yn=a.forwardRef((e,t)=>{const n=P(I,e.__scopeDialog),r=a.useRef(null),o=W(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return hn(i)},[]),g.jsx($e,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,i=>{const u=i.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0;(u.button===2||s)&&i.preventDefault()}),onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault())})}),bn=a.forwardRef((e,t)=>{const n=P(I,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return g.jsx($e,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;n.triggerRef.current?.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),$e=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...u}=e,s=P(I,n),E=a.useRef(null),l=W(t,E);return xt(),g.jsxs(g.Fragment,{children:[g.jsx(Te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(Oe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":le(s.open),...u,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(Cn,{titleId:s.titleId}),g.jsx(wn,{contentRef:E,descriptionId:s.descriptionId})]})]})}),ue="DialogTitle",ze=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(ue,n);return g.jsx(O.h2,{id:o.titleId,...r,ref:t})});ze.displayName=ue;var Ze="DialogDescription",qe=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(Ze,n);return g.jsx(O.p,{id:o.descriptionId,...r,ref:t})});qe.displayName=Ze;var Qe="DialogClose",Je=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(Qe,n);return g.jsx(O.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});Je.displayName=Qe;function le(e){return e?"open":"closed"}var et="DialogTitleWarning",[Nn,tt]=st(et,{contentName:I,titleName:ue,docsSlug:"dialog"}),Cn=({titleId:e})=>{const t=tt(et),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
+
43
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
+
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sn="DialogDescriptionWarning",wn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tt(Sn).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},An=Ue,In=He,Ln=Ve,Mn=Ye,Fn=Xe,kn=ze,_n=qe,Wn=Je;export{Fn as C,_n as D,Te as F,Mn as O,Ln as P,An as R,kn as T,Nn as W,Wn as a,In as b,Tn as c,j as d,Ae as e,xt as f,We as g,hn as h,Oe as i,q as u};
@@ -1 +1 @@
1
- import{p as t}from"./chunk-EF7DTUVF-CaKisB5m.js";import{a as n}from"./utils-fIb4EhUB.js";function s({className:e,type:i,...r}){return t.jsx("input",{type:i,"data-slot":"input",className:n("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}export{s as I};
1
+ import{p as t}from"./chunk-EPOLDU6W-CiSVlmCe.js";import{a as n}from"./utils-oJIM4U5n.js";function s({className:e,type:i,...r}){return t.jsx("input",{type:i,"data-slot":"input",className:n("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}export{s as I};