@qratilabs/qrati-connect 2.1.0 → 2.2.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 (62) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +19 -23
  3. package/element/{AuthLayout-3MSZD8ro.js → AuthLayout-BIIDdbLI.js} +1 -1
  4. package/element/ContentsPage-Cz9xHoZG.js +16 -0
  5. package/element/CuratePage-CIcQGgHY.js +1 -0
  6. package/element/{Dialog-Czt6Sflr.js → Dialog-Bu_qHGFB.js} +1 -1
  7. package/element/{DotLottiePlayer-KGhHUH8A.js → DotLottiePlayer-CGyX5Uiy.js} +1 -1
  8. package/element/{EventHeaderAdminButtons-Bf9mlo12.js → EventHeaderAdminButtons-CzyFFINt.js} +2 -2
  9. package/element/{FolderBreadcrumb-DNV7iAX9.js → FolderBreadcrumb-Cj7QxYYv.js} +1 -1
  10. package/element/{ForgotPasswordPage-DhJLbJss.js → ForgotPasswordPage-CBmFRFNE.js} +1 -1
  11. package/element/{InputField-DUBquu2F.js → InputField-CcuGCvlZ.js} +1 -1
  12. package/element/{LazyLoadImage-mysq1kzg.js → LazyLoadImage-Bm4-SISp.js} +1 -1
  13. package/element/LeaderboardPage-BMvF370T.js +1 -0
  14. package/element/{LoginPage-CLi2iWgA.js → LoginPage-DArirI4F.js} +1 -1
  15. package/element/{NCMVHL6D-BT50cfFq.js → NCMVHL6D-CbHXYjQh.js} +1 -1
  16. package/element/{PublicEvents-CDqFOpG_.js → PublicEvents-BMwJiX-a.js} +1 -1
  17. package/element/{RegisterPage-BvkXlBF7.js → RegisterPage-BwOo1H_W.js} +1 -1
  18. package/element/{SocialLoginButton-C6ifRxgk.js → SocialLoginButton-Bkbp5LgY.js} +1 -1
  19. package/element/{UploadPage-D8sD6xou.js → UploadPage-BONeTtwN.js} +1 -1
  20. package/element/{VideoPlayer-DYZi3q89.js → VideoPlayer-D0UnCWNM.js} +1 -1
  21. package/element/element.es.js +1 -1
  22. package/element/{heic2any-BSfHO3L1.js → heic2any-BvbAMS3F.js} +1 -1
  23. package/element/{index-BPzTfirb.js → index-B3zOFkob.js} +1 -1
  24. package/element/{index-DH-JBzym.js → index-ER4_3XNl.js} +3 -3
  25. package/element/{index.esm-DkIaEEXH.js → index.esm-BWTacECI.js} +1 -1
  26. package/element/{photoswipe-2NEQ5ums.js → photoswipe-DMKE7eBJ.js} +1 -1
  27. package/element/styles.css +1 -1
  28. package/element/{tslib.es6-BxRwMfGT.js → tslib.es6-Jsc-fWIN.js} +1 -1
  29. package/element/{useOrgAccess-Ct-0TE_0.js → useOrgAccess-DAaw7C4P.js} +1 -1
  30. package/element/web.es.js +1 -1
  31. package/package.json +1 -1
  32. package/react/{C19RNf1-.js → 7-EU-j9r.js} +1 -1
  33. package/react/{Om2PJsaT.js → BNG2dNZI.js} +1 -1
  34. package/react/{CEvQrL-L.js → B_kCg8Mg.js} +1 -1
  35. package/react/{BtdEyRX5.js → BdDpLyOs.js} +3 -3
  36. package/react/{cfmNC4u4.js → Bn45auOf.js} +1 -1
  37. package/react/{CnZDMows.js → BsBPHCW1.js} +1 -1
  38. package/react/{BAH-hCQv.js → BvSsH7bx.js} +1 -1
  39. package/react/{C_PorEjJ.js → COoqtIAh.js} +1 -1
  40. package/react/{l6We_eoY.js → CiAq8fSg.js} +1 -1
  41. package/react/{Dr414MeD.js → Cm0IpoCo.js} +1 -1
  42. package/react/{DewCXsIG.js → CwiwOI7_.js} +2 -2
  43. package/react/DAjZbCDM.js +1 -0
  44. package/react/{DZSBvFZj.js → DFl0SJ9s.js} +1 -1
  45. package/react/Dh5Eu-W1.js +16 -0
  46. package/react/{vr3m2X_d.js → E7zPOMav.js} +1 -1
  47. package/react/{DDTQHueT.js → ITOOpeUZ.js} +1 -1
  48. package/react/{D13n_XMV.js → Jy4Lc2ko.js} +1 -1
  49. package/react/{Cmam44O7.js → iK-ZNjdx.js} +1 -1
  50. package/react/index.es.js +2 -2
  51. package/react/pnBKcwun.js +1 -0
  52. package/react/{Dnp0ZDLi.js → r_zvdjwU.js} +1 -1
  53. package/react/{DLmxhJVk.js → wO1wraLd.js} +1 -1
  54. package/react/{BNLiqqVu.js → wsX3yzhl.js} +1 -1
  55. package/react/{B6Q07wSK.js → z1g_nsak.js} +1 -1
  56. package/umd/web.umd.js +43 -43
  57. package/element/ContentsPage-DEW0I2hK.js +0 -16
  58. package/element/CuratePage-B-4T8hoM.js +0 -1
  59. package/element/LeaderboardPage-DMRayt3X.js +0 -1
  60. package/react/1kKVsWzJ.js +0 -1
  61. package/react/D1IaUXEN.js +0 -16
  62. package/react/DSEmowWV.js +0 -1
@@ -1 +1 @@
1
- import{j as e,M as t,L as n,u as r,O as o,c as a}from"./BtdEyRX5.js";import*as c from"react";import{useState as i}from"react";import*as s from"react-dom";import u from"react-dom";import{a as l,b as d,c as f}from"./D6nr9_KD.js";function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(t,n=[]){let r=[];const o=()=>{const e=r.map(e=>c.createContext(e));return function(n){const r=n?.[t]||e;return c.useMemo(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return o.scopeName=t,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,u=r?.[t]?.[i]||a,l=c.useMemo(()=>s,Object.values(s));return e.jsx(u.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(e,r){const s=r?.[t]?.[i]||a,u=c.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},v(o,...n)]}function v(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var h=globalThis?.document?c.useLayoutEffect:()=>{},g=c[" useId ".trim().toString()]||(()=>{}),y=0;function b(e){const[t,n]=c.useState(g());return h(()=>{n(e=>e??String(y++))},[e]),e||(t?`radix-${t}`:"")}var E=c[" useInsertionEffect ".trim().toString()]||h;function w({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return E(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"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.`),t.current=s},[s,r])}return[u,c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i])]}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=t(`Primitive.${r}`),a=c.forwardRef((t,n)=>{const{asChild:a,...c}=t,i=a?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(i,{...c,ref:n})});return a.displayName=`Primitive.${r}`,{...n,[r]:a}},{});function x(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var C,R="dismissableLayer.update",D="dismissableLayer.pointerDownOutside",S="dismissableLayer.focusOutside",q=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=c.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...d}=t,f=c.useContext(q),[m,v]=c.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),y=n(r,e=>v(e)),b=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(E),M=m?b.indexOf(m):-1,O=f.layersWithOutsidePointerEventsDisabled.size>0,L=M>=w,_=function(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){T(D,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));!L||n||(i?.(e),u?.(e),e.defaultPrevented||l?.())},h),k=function(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{e.target&&!r.current&&T(S,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),u?.(e),e.defaultPrevented||l?.())},h);return function(e,t=globalThis?.document){const n=x(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M===f.layers.size-1&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),c.useEffect(()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(C=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),P(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=C)}},[m,h,o,f]),c.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),P())},[m,f]),c.useEffect(()=>{const e=()=>g({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)},[]),e.jsx(N.div,{...d,ref:y,style:{pointerEvents:O?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,k.onFocusCapture),onBlurCapture:p(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,_.onPointerDownCapture)})});M.displayName="DismissableLayer";var O=c.forwardRef((t,r)=>{const o=c.useContext(q),a=c.useRef(null),i=n(r,a);return c.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),e.jsx(N.div,{...t,ref:i})});function P(){const e=new CustomEvent(R);document.dispatchEvent(e)}function T(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}O.displayName="DismissableLayerBranch";var L="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},A=c.forwardRef((t,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...u}=t,[l,d]=c.useState(null),f=x(i),p=x(s),m=c.useRef(null),v=n(r,e=>d(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(a){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:W(m.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||W(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&W(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,l,h.paused]),c.useEffect(()=>{if(l){$.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(L,k);l.addEventListener(L,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(W(r,{select:t}),document.activeElement!==n)return}(function(e){return e.filter(e=>"A"!==e.tagName)}(j(l)),{select:!0}),document.activeElement===e&&W(l))}return()=>{l.removeEventListener(L,f),setTimeout(()=>{const t=new CustomEvent(_,k);l.addEventListener(_,p),l.dispatchEvent(t),t.defaultPrevented||W(e??document.body,{select:!0}),l.removeEventListener(_,p),$.remove(h)},0)}}},[l,f,p,h]);const g=c.useCallback(e=>{if(!o&&!a||h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=j(e),n=I(t,e),r=I(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&W(a,{select:!0})):(e.preventDefault(),o&&W(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return e.jsx(N.div,{tabIndex:-1,...u,ref:v,onKeyDown:g})});function j(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(const n of e)if(!F(n,{upTo:t}))return n}function F(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function W(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}A.displayName="FocusScope";var $=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=B(e,t),e.unshift(t)},remove(t){e=B(e,t),e[0]?.resume()}}}();function B(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var U=c.forwardRef((t,n)=>{const{container:r,...o}=t,[a,i]=c.useState(!1);h(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?u.createPortal(e.jsx(N.div,{...o,ref:n}),s):null});U.displayName="Portal";var z=e=>{const{present:t,children:r}=e,o=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,u]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=K(r.current);a.current="mounted"===s?e:"none"},[s]),h(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=K(t);u(e?"MOUNT":"none"===c||"none"===t?.display?"UNMOUNT":n&&r!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),h(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,c=a=>{const c=K(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&c&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(a.current=K(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof r?r({present:o.isPresent}):c.Children.only(r),i=n(o.ref,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)}(a));return"function"==typeof r||o.isPresent?c.cloneElement(a,{ref:i}):null};function K(e){return e?.animationName||"none"}z.displayName="Presence";var X=0;function Y(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??H()),document.body.insertAdjacentElement("beforeend",e[1]??H()),X++,()=>{1===X&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),X--}},[])}function H(){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 Z="right-scroll-bar-position",V="width-before-scroll-bar";function G(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var J=typeof window<"u"?c.useLayoutEffect:c.useEffect,Q=new WeakMap;function ee(e,t){var n=function(e,t){var n=i(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(null,function(t){return e.forEach(function(e){return G(e,t)})});return J(function(){var t=Q.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach(function(e){o.has(e)||G(e,null)}),o.forEach(function(e){r.has(e)||G(e,a)})}Q.set(n,e)},[e]),n}function te(e){return e}var ne=function(e){var t=e.sideCar,n=d(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 c.createElement(r,l({},n))};ne.isSideCarExport=!0;var re=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=te);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=l({async:!0,ssr:!1},e),t}(),oe=function(){},ae=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,E=e.as,w=void 0===E?"div":E,N=e.gapMode,x=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,R=ee([n,t]),D=l(l({},x),o);return c.createElement(c.Fragment,null,p&&c.createElement(C,{sideCar:re,removeScrollBar:f,shards:m,noRelative:h,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:N}),i?c.cloneElement(c.Children.only(s),l(l({},D),{ref:R})):c.createElement(w,l({},D,{className:u,ref:R}),s))});ae.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ae.classNames={fullWidth:V,zeroRight:Z};function ce(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var ie=function(){var e=0,t=null;return{add:function(n){0==e&&(t=ce())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},se=function(){var e=function(){var e=ie();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ue={left:0,top:0,right:0,gap:0},le=function(e){return parseInt(e||"",10)||0},de=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return ue;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[le(n),le(r),le(o)]}(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])}},fe=se(),pe="data-scroll-locked",me=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(pe,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Z," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(V," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(Z," .").concat(Z," {\n right: 0 ").concat(r,";\n }\n \n .").concat(V," .").concat(V," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(pe,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},ve=function(){var e=parseInt(document.body.getAttribute(pe)||"0",10);return isFinite(e)?e:0},he=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(pe,(ve()+1).toString()),function(){var e=ve()-1;e<=0?document.body.removeAttribute(pe):document.body.setAttribute(pe,e.toString())}},[]);var a=c.useMemo(function(){return de(o)},[o]);return c.createElement(fe,{styles:me(a,!t,o,n?"":"!important")})},ge=!1;if(typeof window<"u")try{var ye=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",ye,ye),window.removeEventListener("test",ye,ye)}catch{ge=!1}var be=!!ge&&{passive:!1},Ee=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},we=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),Ne(e,r)){var o=xe(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ne=function(e,t){return"v"===e?function(e){return Ee(e,"overflowY")}(t):function(e){return Ee(e,"overflowX")}(t)},xe=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Ce=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Re=function(e){return[e.deltaX,e.deltaY]},De=function(e){return e&&"current"in e?e.current:e},Se=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},qe=0,Me=[];function Oe(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pe=(Te=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(qe++)[0],a=c.useState(se)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=f([e.lockRef.current],(e.shards||[]).map(De),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Ce(e),c=n.current,s="deltaX"in e?e.deltaX:c[0]-a[0],u="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=we(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=we(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,i=t.contains(c),s=!1,u=a>0,l=0,d=0;do{if(!c)break;var f=xe(e,c),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&Ne(e,c)&&(l+=m,d+=p);var v=c.parentNode;c=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!i&&c!==document.body||i&&(t.contains(c)||t===c));return(u&&Math.abs(l)<1||!u&&Math.abs(d)<1)&&(s=!0),s}(p,t,e,"h"===p?s:u)},[]),u=c.useCallback(function(e){var n=e;if(Me.length&&Me[Me.length-1]===a){var r="deltaY"in n?Re(n):Ce(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var c=(i.current.shards||[]).map(De).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Oe(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Ce(e),r.current=void 0},[]),p=c.useCallback(function(t){l(t.type,Re(t),t.target,s(t,e.lockRef.current))},[]),m=c.useCallback(function(t){l(t.type,Ce(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Me.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,be),document.addEventListener("touchmove",u,be),document.addEventListener("touchstart",d,be),function(){Me=Me.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,be),document.removeEventListener("touchmove",u,be),document.removeEventListener("touchstart",d,be)}},[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Se(o)}):null,v?c.createElement(he,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},re.useMedium(Te),ne);var Te,Le=c.forwardRef(function(e,t){return c.createElement(ae,l({},e,{ref:t,sideCar:Pe}))});Le.classNames=ae.classNames;var _e=new WeakMap,ke=new WeakMap,Ae={},je=0,Ie=function(e){return e&&(e.host||Ie(e.parentNode))},Fe=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ie(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})}(t,Array.isArray(e)?e:[e]);Ae[n]||(Ae[n]=new WeakMap);var a=Ae[n],c=[],i=new Set,s=new Set(o),u=function(e){!e||i.has(e)||(i.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(_e.get(e)||0)+1,u=(a.get(e)||0)+1;_e.set(e,s),a.set(e,u),c.push(e),1===s&&o&&ke.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),i.clear(),je++,function(){c.forEach(function(e){var t=_e.get(e)-1,o=a.get(e)-1;_e.set(e,t),a.set(e,o),t||(ke.has(e)||e.removeAttribute(r),ke.delete(e)),o||e.removeAttribute(n)}),--je||(_e=new WeakMap,_e=new WeakMap,ke=new WeakMap,Ae={})}},We=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Fe(r,o,n,"aria-hidden")):function(){return null}},$e="Dialog",[Be]=m($e),[Ue,ze]=Be($e),Ke=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,u=c.useRef(null),l=c.useRef(null),[d,f]=w({prop:o,defaultProp:a??!1,onChange:i,caller:$e});return e.jsx(Ue,{scope:n,triggerRef:u,contentRef:l,contentId:b(),titleId:b(),descriptionId:b(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};Ke.displayName=$e;var Xe="DialogTrigger",Ye=c.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=ze(Xe,o),i=n(r,c.triggerRef);return e.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":pt(c.open),...a,ref:i,onClick:p(t.onClick,c.onOpenToggle)})});Ye.displayName=Xe;var He="DialogPortal",[Ze,Ve]=Be(He,{forceMount:void 0}),Ge=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=t,i=ze(He,n);return e.jsx(Ze,{scope:n,forceMount:r,children:c.Children.map(o,t=>e.jsx(z,{present:r||i.open,children:e.jsx(U,{asChild:!0,container:a,children:t})}))})};Ge.displayName=He;var Je="DialogOverlay",Qe=c.forwardRef((t,n)=>{const r=Ve(Je,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=ze(Je,t.__scopeDialog);return c.modal?e.jsx(z,{present:o||c.open,children:e.jsx(tt,{...a,ref:n})}):null});Qe.displayName=Je;var et=t("DialogOverlay.RemoveScroll"),tt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(Je,r);return e.jsx(Le,{as:et,allowPinchZoom:!0,shards:[a.contentRef],children:e.jsx(N.div,{"data-state":pt(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),nt="DialogContent",rt=c.forwardRef((t,n)=>{const r=Ve(nt,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=ze(nt,t.__scopeDialog);return e.jsx(z,{present:o||c.open,children:c.modal?e.jsx(ot,{...a,ref:n}):e.jsx(at,{...a,ref:n})})});rt.displayName=nt;var ot=c.forwardRef((t,r)=>{const o=ze(nt,t.__scopeDialog),a=c.useRef(null),i=n(r,o.contentRef,a);return c.useEffect(()=>{const e=a.current;if(e)return We(e)},[]),e.jsx(ct,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault())})}),at=c.forwardRef((t,n)=>{const r=ze(nt,t.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return e.jsx(ct,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target;r.triggerRef.current?.contains(n)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),ct=c.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,...u}=t,l=ze(nt,o),d=c.useRef(null),f=n(r,d);return Y(),e.jsxs(e.Fragment,{children:[e.jsx(A,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:s,children:e.jsx(M,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":pt(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),e.jsxs(e.Fragment,{children:[e.jsx(gt,{titleId:l.titleId}),e.jsx(yt,{contentRef:d,descriptionId:l.descriptionId})]})]})}),it="DialogTitle",st=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(it,r);return e.jsx(N.h2,{id:a.titleId,...o,ref:n})});st.displayName=it;var ut="DialogDescription",lt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(ut,r);return e.jsx(N.p,{id:a.descriptionId,...o,ref:n})});lt.displayName=ut;var dt="DialogClose",ft=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(dt,r);return e.jsx(N.button,{type:"button",...o,ref:n,onClick:p(t.onClick,()=>a.onOpenChange(!1))})});function pt(e){return e?"open":"closed"}ft.displayName=dt;var mt="DialogTitleWarning",[vt,ht]=function(t,n){const r=c.createContext(n),o=t=>{const{children:n,...o}=t,a=c.useMemo(()=>o,Object.values(o));return e.jsx(r.Provider,{value:a,children:n})};return o.displayName=t+"Provider",[o,function(e){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${e}\` must be used within \`${t}\``)}]}(mt,{contentName:nt,titleName:it,docsSlug:"dialog"}),gt=({titleId:e})=>{const t=ht(mt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yt=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ht("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},bt=Qe,Et=rt,wt=st,Nt=lt,xt=ft;const Ct=Ke,Rt=Ge,Dt=c.forwardRef(({className:t,...n},r)=>e.jsx(bt,{ref:r,className:a("data-[state=open]:qc:animate-in data-[state=closed]:qc:animate-out data-[state=closed]:qc:fade-out-0 data-[state=open]:qc:fade-in-0 qc:fixed qc:inset-0 qc:z-2001 qc:backdrop-blur-md",t),...n})),St=c.forwardRef(({className:t,children:n,...c},i)=>{const{organization:s,props:{fontClassName:u,textClassName:l}}=r();return e.jsxs(Rt,{children:[e.jsx(Dt,{}),e.jsxs(Et,{ref:i,className:a("qc:bg-background qc:shadow-outer qc:border-border qc:max-w-screen data-[state=open]:qc:animate-in data-[state=closed]:qc:animate-out data-[state=closed]:qc:fade-out-0 data-[state=open]:qc:fade-in-0 data-[state=closed]:qc:zoom-out-95 data-[state=open]:qc:zoom-in-95 data-[state=closed]:qc:slide-out-to-left-1/2 data-[state=closed]:qc:slide-out-to-top-[48%] data-[state=open]:qc:slide-in-from-left-1/2 data-[state=open]:qc:slide-in-from-top-[48%] qc:fixed qc:left-[50%] qc:top-[50%] qc:z-2002 qc:w-auto qc:translate-x-[-50%] qc:translate-y-[-50%] qc:rounded qc:duration-300 qc:sm:rounded",u,l,t),style:o(s),...c,children:[n,e.jsx(xt,{className:"qc:ring-offset-background focus:qc:ring-ring data-[state=open]:qc:text-foreground qc:hover:opacity-100 qc:focus:outline-none qc:disabled:pointer-events-none qc:focus:qc:ring-2 qc:focus:qc:ring-offset-2 qc:absolute qc:right-3 qc:top-3 qc:rounded qc:opacity-70 qc:transition-opacity",children:e.jsx("span",{className:"qc:sr-only",children:"Close"})})]})]})}),qt=({className:t,...n})=>e.jsx("div",{className:a("qc:flex qc:flex-col qc:space-y-1 qc:p-3 qc:text-center qc:sm:text-left",t),...n}),Mt=c.forwardRef(({className:t,...n},r)=>e.jsx(wt,{ref:r,className:a("qc:text-foreground qc:text-center qc:text-lg qc:font-semibold",t),...n})),Ot=c.forwardRef(({className:t,...n},r)=>e.jsx(Nt,{ref:r,className:a("qc:text-muted qc:text-center qc:text-sm",t),...n}));export{Ct as D,A as F,N as P,Le as R,St as a,qt as b,Mt as c,Ot as d,m as e,x as f,z as g,U as h,We as i,p as j,Y as k,M as l,w as m,b as n,h as u};
1
+ import{j as e,M as t,L as n,u as r,O as o,c as a}from"./BdDpLyOs.js";import*as c from"react";import{useState as i}from"react";import*as s from"react-dom";import u from"react-dom";import{a as l,b as d,c as f}from"./D6nr9_KD.js";function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(t,n=[]){let r=[];const o=()=>{const e=r.map(e=>c.createContext(e));return function(n){const r=n?.[t]||e;return c.useMemo(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return o.scopeName=t,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,u=r?.[t]?.[i]||a,l=c.useMemo(()=>s,Object.values(s));return e.jsx(u.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(e,r){const s=r?.[t]?.[i]||a,u=c.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},v(o,...n)]}function v(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var h=globalThis?.document?c.useLayoutEffect:()=>{},g=c[" useId ".trim().toString()]||(()=>{}),y=0;function b(e){const[t,n]=c.useState(g());return h(()=>{n(e=>e??String(y++))},[e]),e||(t?`radix-${t}`:"")}var E=c[" useInsertionEffect ".trim().toString()]||h;function w({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return E(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"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.`),t.current=s},[s,r])}return[u,c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i])]}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=t(`Primitive.${r}`),a=c.forwardRef((t,n)=>{const{asChild:a,...c}=t,i=a?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(i,{...c,ref:n})});return a.displayName=`Primitive.${r}`,{...n,[r]:a}},{});function x(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var C,R="dismissableLayer.update",D="dismissableLayer.pointerDownOutside",S="dismissableLayer.focusOutside",q=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=c.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...d}=t,f=c.useContext(q),[m,v]=c.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),y=n(r,e=>v(e)),b=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(E),M=m?b.indexOf(m):-1,O=f.layersWithOutsidePointerEventsDisabled.size>0,L=M>=w,_=function(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){T(D,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));!L||n||(i?.(e),u?.(e),e.defaultPrevented||l?.())},h),k=function(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{e.target&&!r.current&&T(S,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),u?.(e),e.defaultPrevented||l?.())},h);return function(e,t=globalThis?.document){const n=x(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M===f.layers.size-1&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),c.useEffect(()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(C=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),P(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=C)}},[m,h,o,f]),c.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),P())},[m,f]),c.useEffect(()=>{const e=()=>g({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)},[]),e.jsx(N.div,{...d,ref:y,style:{pointerEvents:O?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,k.onFocusCapture),onBlurCapture:p(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,_.onPointerDownCapture)})});M.displayName="DismissableLayer";var O=c.forwardRef((t,r)=>{const o=c.useContext(q),a=c.useRef(null),i=n(r,a);return c.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),e.jsx(N.div,{...t,ref:i})});function P(){const e=new CustomEvent(R);document.dispatchEvent(e)}function T(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}O.displayName="DismissableLayerBranch";var L="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},A=c.forwardRef((t,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...u}=t,[l,d]=c.useState(null),f=x(i),p=x(s),m=c.useRef(null),v=n(r,e=>d(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(a){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:W(m.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||W(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&W(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,l,h.paused]),c.useEffect(()=>{if(l){$.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(L,k);l.addEventListener(L,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(W(r,{select:t}),document.activeElement!==n)return}(function(e){return e.filter(e=>"A"!==e.tagName)}(j(l)),{select:!0}),document.activeElement===e&&W(l))}return()=>{l.removeEventListener(L,f),setTimeout(()=>{const t=new CustomEvent(_,k);l.addEventListener(_,p),l.dispatchEvent(t),t.defaultPrevented||W(e??document.body,{select:!0}),l.removeEventListener(_,p),$.remove(h)},0)}}},[l,f,p,h]);const g=c.useCallback(e=>{if(!o&&!a||h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=j(e),n=I(t,e),r=I(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&W(a,{select:!0})):(e.preventDefault(),o&&W(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return e.jsx(N.div,{tabIndex:-1,...u,ref:v,onKeyDown:g})});function j(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(const n of e)if(!F(n,{upTo:t}))return n}function F(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function W(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}A.displayName="FocusScope";var $=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=B(e,t),e.unshift(t)},remove(t){e=B(e,t),e[0]?.resume()}}}();function B(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var U=c.forwardRef((t,n)=>{const{container:r,...o}=t,[a,i]=c.useState(!1);h(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?u.createPortal(e.jsx(N.div,{...o,ref:n}),s):null});U.displayName="Portal";var z=e=>{const{present:t,children:r}=e,o=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,u]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=K(r.current);a.current="mounted"===s?e:"none"},[s]),h(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=K(t);u(e?"MOUNT":"none"===c||"none"===t?.display?"UNMOUNT":n&&r!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),h(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,c=a=>{const c=K(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&c&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(a.current=K(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof r?r({present:o.isPresent}):c.Children.only(r),i=n(o.ref,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)}(a));return"function"==typeof r||o.isPresent?c.cloneElement(a,{ref:i}):null};function K(e){return e?.animationName||"none"}z.displayName="Presence";var X=0;function Y(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??H()),document.body.insertAdjacentElement("beforeend",e[1]??H()),X++,()=>{1===X&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),X--}},[])}function H(){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 Z="right-scroll-bar-position",V="width-before-scroll-bar";function G(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var J=typeof window<"u"?c.useLayoutEffect:c.useEffect,Q=new WeakMap;function ee(e,t){var n=function(e,t){var n=i(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(null,function(t){return e.forEach(function(e){return G(e,t)})});return J(function(){var t=Q.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach(function(e){o.has(e)||G(e,null)}),o.forEach(function(e){r.has(e)||G(e,a)})}Q.set(n,e)},[e]),n}function te(e){return e}var ne=function(e){var t=e.sideCar,n=d(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 c.createElement(r,l({},n))};ne.isSideCarExport=!0;var re=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=te);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=l({async:!0,ssr:!1},e),t}(),oe=function(){},ae=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,b=e.allowPinchZoom,E=e.as,w=void 0===E?"div":E,N=e.gapMode,x=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,R=ee([n,t]),D=l(l({},x),o);return c.createElement(c.Fragment,null,p&&c.createElement(C,{sideCar:re,removeScrollBar:f,shards:m,noRelative:h,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:N}),i?c.cloneElement(c.Children.only(s),l(l({},D),{ref:R})):c.createElement(w,l({},D,{className:u,ref:R}),s))});ae.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ae.classNames={fullWidth:V,zeroRight:Z};function ce(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var ie=function(){var e=0,t=null;return{add:function(n){0==e&&(t=ce())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},se=function(){var e=function(){var e=ie();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ue={left:0,top:0,right:0,gap:0},le=function(e){return parseInt(e||"",10)||0},de=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return ue;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[le(n),le(r),le(o)]}(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])}},fe=se(),pe="data-scroll-locked",me=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(pe,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Z," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(V," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(Z," .").concat(Z," {\n right: 0 ").concat(r,";\n }\n \n .").concat(V," .").concat(V," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(pe,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},ve=function(){var e=parseInt(document.body.getAttribute(pe)||"0",10);return isFinite(e)?e:0},he=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(pe,(ve()+1).toString()),function(){var e=ve()-1;e<=0?document.body.removeAttribute(pe):document.body.setAttribute(pe,e.toString())}},[]);var a=c.useMemo(function(){return de(o)},[o]);return c.createElement(fe,{styles:me(a,!t,o,n?"":"!important")})},ge=!1;if(typeof window<"u")try{var ye=Object.defineProperty({},"passive",{get:function(){return ge=!0,!0}});window.addEventListener("test",ye,ye),window.removeEventListener("test",ye,ye)}catch{ge=!1}var be=!!ge&&{passive:!1},Ee=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},we=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),Ne(e,r)){var o=xe(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ne=function(e,t){return"v"===e?function(e){return Ee(e,"overflowY")}(t):function(e){return Ee(e,"overflowX")}(t)},xe=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Ce=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Re=function(e){return[e.deltaX,e.deltaY]},De=function(e){return e&&"current"in e?e.current:e},Se=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},qe=0,Me=[];function Oe(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pe=(Te=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(qe++)[0],a=c.useState(se)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=f([e.lockRef.current],(e.shards||[]).map(De),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Ce(e),c=n.current,s="deltaX"in e?e.deltaX:c[0]-a[0],u="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=we(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=we(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,i=t.contains(c),s=!1,u=a>0,l=0,d=0;do{if(!c)break;var f=xe(e,c),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&Ne(e,c)&&(l+=m,d+=p);var v=c.parentNode;c=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!i&&c!==document.body||i&&(t.contains(c)||t===c));return(u&&Math.abs(l)<1||!u&&Math.abs(d)<1)&&(s=!0),s}(p,t,e,"h"===p?s:u)},[]),u=c.useCallback(function(e){var n=e;if(Me.length&&Me[Me.length-1]===a){var r="deltaY"in n?Re(n):Ce(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var c=(i.current.shards||[]).map(De).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Oe(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Ce(e),r.current=void 0},[]),p=c.useCallback(function(t){l(t.type,Re(t),t.target,s(t,e.lockRef.current))},[]),m=c.useCallback(function(t){l(t.type,Ce(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Me.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,be),document.addEventListener("touchmove",u,be),document.addEventListener("touchstart",d,be),function(){Me=Me.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,be),document.removeEventListener("touchmove",u,be),document.removeEventListener("touchstart",d,be)}},[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Se(o)}):null,v?c.createElement(he,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},re.useMedium(Te),ne);var Te,Le=c.forwardRef(function(e,t){return c.createElement(ae,l({},e,{ref:t,sideCar:Pe}))});Le.classNames=ae.classNames;var _e=new WeakMap,ke=new WeakMap,Ae={},je=0,Ie=function(e){return e&&(e.host||Ie(e.parentNode))},Fe=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ie(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})}(t,Array.isArray(e)?e:[e]);Ae[n]||(Ae[n]=new WeakMap);var a=Ae[n],c=[],i=new Set,s=new Set(o),u=function(e){!e||i.has(e)||(i.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(_e.get(e)||0)+1,u=(a.get(e)||0)+1;_e.set(e,s),a.set(e,u),c.push(e),1===s&&o&&ke.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),i.clear(),je++,function(){c.forEach(function(e){var t=_e.get(e)-1,o=a.get(e)-1;_e.set(e,t),a.set(e,o),t||(ke.has(e)||e.removeAttribute(r),ke.delete(e)),o||e.removeAttribute(n)}),--je||(_e=new WeakMap,_e=new WeakMap,ke=new WeakMap,Ae={})}},We=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Fe(r,o,n,"aria-hidden")):function(){return null}},$e="Dialog",[Be]=m($e),[Ue,ze]=Be($e),Ke=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,u=c.useRef(null),l=c.useRef(null),[d,f]=w({prop:o,defaultProp:a??!1,onChange:i,caller:$e});return e.jsx(Ue,{scope:n,triggerRef:u,contentRef:l,contentId:b(),titleId:b(),descriptionId:b(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};Ke.displayName=$e;var Xe="DialogTrigger",Ye=c.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=ze(Xe,o),i=n(r,c.triggerRef);return e.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":pt(c.open),...a,ref:i,onClick:p(t.onClick,c.onOpenToggle)})});Ye.displayName=Xe;var He="DialogPortal",[Ze,Ve]=Be(He,{forceMount:void 0}),Ge=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=t,i=ze(He,n);return e.jsx(Ze,{scope:n,forceMount:r,children:c.Children.map(o,t=>e.jsx(z,{present:r||i.open,children:e.jsx(U,{asChild:!0,container:a,children:t})}))})};Ge.displayName=He;var Je="DialogOverlay",Qe=c.forwardRef((t,n)=>{const r=Ve(Je,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=ze(Je,t.__scopeDialog);return c.modal?e.jsx(z,{present:o||c.open,children:e.jsx(tt,{...a,ref:n})}):null});Qe.displayName=Je;var et=t("DialogOverlay.RemoveScroll"),tt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(Je,r);return e.jsx(Le,{as:et,allowPinchZoom:!0,shards:[a.contentRef],children:e.jsx(N.div,{"data-state":pt(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),nt="DialogContent",rt=c.forwardRef((t,n)=>{const r=Ve(nt,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=ze(nt,t.__scopeDialog);return e.jsx(z,{present:o||c.open,children:c.modal?e.jsx(ot,{...a,ref:n}):e.jsx(at,{...a,ref:n})})});rt.displayName=nt;var ot=c.forwardRef((t,r)=>{const o=ze(nt,t.__scopeDialog),a=c.useRef(null),i=n(r,o.contentRef,a);return c.useEffect(()=>{const e=a.current;if(e)return We(e)},[]),e.jsx(ct,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault())})}),at=c.forwardRef((t,n)=>{const r=ze(nt,t.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return e.jsx(ct,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target;r.triggerRef.current?.contains(n)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),ct=c.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,...u}=t,l=ze(nt,o),d=c.useRef(null),f=n(r,d);return Y(),e.jsxs(e.Fragment,{children:[e.jsx(A,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:s,children:e.jsx(M,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":pt(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),e.jsxs(e.Fragment,{children:[e.jsx(gt,{titleId:l.titleId}),e.jsx(yt,{contentRef:d,descriptionId:l.descriptionId})]})]})}),it="DialogTitle",st=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(it,r);return e.jsx(N.h2,{id:a.titleId,...o,ref:n})});st.displayName=it;var ut="DialogDescription",lt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(ut,r);return e.jsx(N.p,{id:a.descriptionId,...o,ref:n})});lt.displayName=ut;var dt="DialogClose",ft=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=ze(dt,r);return e.jsx(N.button,{type:"button",...o,ref:n,onClick:p(t.onClick,()=>a.onOpenChange(!1))})});function pt(e){return e?"open":"closed"}ft.displayName=dt;var mt="DialogTitleWarning",[vt,ht]=function(t,n){const r=c.createContext(n),o=t=>{const{children:n,...o}=t,a=c.useMemo(()=>o,Object.values(o));return e.jsx(r.Provider,{value:a,children:n})};return o.displayName=t+"Provider",[o,function(e){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${e}\` must be used within \`${t}\``)}]}(mt,{contentName:nt,titleName:it,docsSlug:"dialog"}),gt=({titleId:e})=>{const t=ht(mt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yt=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ht("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},bt=Qe,Et=rt,wt=st,Nt=lt,xt=ft;const Ct=Ke,Rt=Ge,Dt=c.forwardRef(({className:t,...n},r)=>e.jsx(bt,{ref:r,className:a("data-[state=open]:qc:animate-in data-[state=closed]:qc:animate-out data-[state=closed]:qc:fade-out-0 data-[state=open]:qc:fade-in-0 qc:fixed qc:inset-0 qc:z-2001 qc:backdrop-blur-md",t),...n})),St=c.forwardRef(({className:t,children:n,...c},i)=>{const{organization:s,props:{fontClassName:u,textClassName:l}}=r();return e.jsxs(Rt,{children:[e.jsx(Dt,{}),e.jsxs(Et,{ref:i,className:a("qc:bg-background qc:shadow-outer qc:border-border qc:max-w-screen data-[state=open]:qc:animate-in data-[state=closed]:qc:animate-out data-[state=closed]:qc:fade-out-0 data-[state=open]:qc:fade-in-0 data-[state=closed]:qc:zoom-out-95 data-[state=open]:qc:zoom-in-95 data-[state=closed]:qc:slide-out-to-left-1/2 data-[state=closed]:qc:slide-out-to-top-[48%] data-[state=open]:qc:slide-in-from-left-1/2 data-[state=open]:qc:slide-in-from-top-[48%] qc:fixed qc:left-[50%] qc:top-[50%] qc:z-2002 qc:w-auto qc:translate-x-[-50%] qc:translate-y-[-50%] qc:rounded qc:duration-300 qc:sm:rounded",u,l,t),style:o(s),...c,children:[n,e.jsx(xt,{className:"qc:ring-offset-background focus:qc:ring-ring data-[state=open]:qc:text-foreground qc:hover:opacity-100 qc:focus:outline-none qc:disabled:pointer-events-none qc:focus:qc:ring-2 qc:focus:qc:ring-offset-2 qc:absolute qc:right-3 qc:top-3 qc:rounded qc:opacity-70 qc:transition-opacity",children:e.jsx("span",{className:"qc:sr-only",children:"Close"})})]})]})}),qt=({className:t,...n})=>e.jsx("div",{className:a("qc:flex qc:flex-col qc:space-y-1 qc:p-3 qc:text-center qc:sm:text-left",t),...n}),Mt=c.forwardRef(({className:t,...n},r)=>e.jsx(wt,{ref:r,className:a("qc:text-foreground qc:text-center qc:text-lg qc:font-semibold",t),...n})),Ot=c.forwardRef(({className:t,...n},r)=>e.jsx(Nt,{ref:r,className:a("qc:text-muted qc:text-center qc:text-sm",t),...n}));export{Ct as D,A as F,N as P,Le as R,St as a,qt as b,Mt as c,Ot as d,m as e,x as f,z as g,U as h,We as i,p as j,Y as k,M as l,w as m,b as n,h as u};
@@ -1 +1 @@
1
- import{c as e,T as r,P as t,a,b as s,C as o,Q as l}from"./l6We_eoY.js";import{a5 as n,a6 as c,a7 as i}from"./BtdEyRX5.js";var u=u=>{const[d,h]=e({prefix:"TanstackQueryDevtools"}),m=n(),v=c(()=>{const e=d.theme_preference||r;return"system"!==e?e:m()});return i(l.Provider,{value:u,get children(){return i(t,{disabled:!0,localStore:d,setLocalStore:h,get children(){return i(a.Provider,{value:v,get children(){return i(s,{get children(){return i(o,{localStore:d,setLocalStore:h,get onClose(){return u.onClose},showPanelViewOnly:!0})}})}})}})}})};export{u as default};
1
+ import{c as e,T as r,P as t,a,b as s,C as o,Q as l}from"./CiAq8fSg.js";import{a5 as n,a6 as c,a7 as i}from"./BdDpLyOs.js";var u=u=>{const[d,h]=e({prefix:"TanstackQueryDevtools"}),m=n(),v=c(()=>{const e=d.theme_preference||r;return"system"!==e?e:m()});return i(l.Provider,{value:u,get children(){return i(t,{disabled:!0,localStore:d,setLocalStore:h,get children(){return i(a.Provider,{value:v,get children(){return i(s,{get children(){return i(o,{localStore:d,setLocalStore:h,get onClose(){return u.onClose},showPanelViewOnly:!0})}})}})}})}})};export{u as default};