@adamosuiteservices/ui 2.20.1 → 2.20.3

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/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/checkbox-BHStM029.cjs +24 -0
  6. package/dist/{checkbox-DPlUjwLi.js → checkbox-DX8b_6kG.js} +4 -3
  7. package/dist/checkbox.cjs +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/collapsible.cjs +1 -1
  10. package/dist/collapsible.js +1 -1
  11. package/dist/{combobox-DylTjGrw.cjs → combobox-BURhN76t.cjs} +1 -1
  12. package/dist/{combobox-DG9u4g84.js → combobox-BrHVXnf2.js} +3 -3
  13. package/dist/combobox.cjs +1 -1
  14. package/dist/combobox.js +1 -1
  15. package/dist/context-menu.cjs +8 -8
  16. package/dist/context-menu.js +56 -55
  17. package/dist/date-picker-selector.cjs +1 -1
  18. package/dist/date-picker-selector.js +2 -2
  19. package/dist/dialog.cjs +3 -3
  20. package/dist/dialog.js +3 -3
  21. package/dist/dropdown-menu.cjs +9 -9
  22. package/dist/dropdown-menu.js +33 -32
  23. package/dist/full-screen-loader.cjs +4 -4
  24. package/dist/full-screen-loader.js +27 -24
  25. package/dist/hover-card.cjs +2 -2
  26. package/dist/hover-card.js +12 -11
  27. package/dist/index-1Io41IIt.cjs +1 -0
  28. package/dist/index-437EL2iq.js +52 -0
  29. package/dist/index-B695uy69.js +9 -0
  30. package/dist/index-BE-HFcQ8.cjs +1 -0
  31. package/dist/{index-BPOsnOxS.js → index-BM2A-WRV.js} +1 -1
  32. package/dist/index-BOnhen57.cjs +1 -0
  33. package/dist/{index-D_hmhfRp.js → index-BPnOqaWN.js} +9 -8
  34. package/dist/index-BqyOu62e.cjs +1 -0
  35. package/dist/index-C8aODXfJ.cjs +1 -0
  36. package/dist/index-CFB4VzSW.js +542 -0
  37. package/dist/index-CgAmFB15.cjs +1 -0
  38. package/dist/{index-B76LQ4E5.js → index-CinpJ0oP.js} +24 -23
  39. package/dist/{index-wujanfX3.js → index-Cpaqurwq.js} +191 -190
  40. package/dist/{index-B6gxHWt9.js → index-CwrPuu3I.js} +15 -14
  41. package/dist/index-D3xJARPa.cjs +1 -0
  42. package/dist/index-DSj2iNTW.js +137 -0
  43. package/dist/{index-Ce7JfyIP.js → index-DWrql5dh.js} +11 -10
  44. package/dist/{index-BIydBVaH.js → index-E5ek046p.js} +78 -76
  45. package/dist/{index-BaCYnOIG.cjs → index-L8BhH23Y.cjs} +1 -1
  46. package/dist/index-ZzRl2Lfu.cjs +5 -0
  47. package/dist/index-_TfuLupy.cjs +41 -0
  48. package/dist/index-cBJ7G45l.cjs +1 -0
  49. package/dist/popover-Dod16CM1.cjs +15 -0
  50. package/dist/{popover-DcQ18EVl.js → popover-tP2NoMYx.js} +84 -82
  51. package/dist/popover.cjs +1 -1
  52. package/dist/popover.js +1 -1
  53. package/dist/radio-group.cjs +3 -3
  54. package/dist/radio-group.js +10 -9
  55. package/dist/select.cjs +8 -8
  56. package/dist/select.js +21 -19
  57. package/dist/{sheet-Cp6JGhWC.cjs → sheet-DR1nAs9U.cjs} +1 -1
  58. package/dist/{sheet-hWerE8S1.js → sheet-UNggtdu3.js} +1 -1
  59. package/dist/sheet.cjs +1 -1
  60. package/dist/sheet.js +1 -1
  61. package/dist/sidebar.cjs +1 -1
  62. package/dist/sidebar.js +1 -1
  63. package/dist/slider.cjs +5 -5
  64. package/dist/slider.js +7 -6
  65. package/dist/styles.css +1 -1
  66. package/dist/switch.cjs +3 -3
  67. package/dist/switch.js +8 -7
  68. package/dist/tabs-underline.cjs +1 -1
  69. package/dist/tabs-underline.js +1 -1
  70. package/dist/tabs.cjs +1 -1
  71. package/dist/tabs.js +1 -1
  72. package/dist/toggle.cjs +2 -2
  73. package/dist/toggle.js +6 -5
  74. package/dist/tooltip.cjs +3 -3
  75. package/dist/tooltip.js +23 -22
  76. package/docs/components/layout/full-screen-loader.md +19 -1
  77. package/docs/components/ui/dialog.md +28 -3
  78. package/package.json +4 -2
  79. package/dist/checkbox-CIzBdqN7.cjs +0 -24
  80. package/dist/index-8iwAKZIp.cjs +0 -1
  81. package/dist/index-BWaO7kQK.cjs +0 -1
  82. package/dist/index-BnkHpTJs.cjs +0 -1
  83. package/dist/index-C0UREtMP.js +0 -59
  84. package/dist/index-C2P2kXMc.cjs +0 -41
  85. package/dist/index-CC6DBo2g.cjs +0 -1
  86. package/dist/index-CRWn-2fF.cjs +0 -1
  87. package/dist/index-Ca99LLZF.cjs +0 -5
  88. package/dist/index-e0gNU5O1.js +0 -675
  89. package/dist/index-i5lLg35-.cjs +0 -1
  90. package/dist/popover-cGp_rNLg.cjs +0 -15
@@ -1,59 +0,0 @@
1
- import * as n from "react";
2
- import { u as m } from "./index-CCKe-Mpx.js";
3
- function w(e, r, { checkForDefaultPrevented: t = !0 } = {}) {
4
- return function(o) {
5
- if (e?.(o), t === !1 || !o.defaultPrevented)
6
- return r?.(o);
7
- };
8
- }
9
- var v = n[" useInsertionEffect ".trim().toString()] || m;
10
- function S({
11
- prop: e,
12
- defaultProp: r,
13
- onChange: t = () => {
14
- },
15
- caller: l
16
- }) {
17
- const [o, u, i] = R({
18
- defaultProp: r,
19
- onChange: t
20
- }), c = e !== void 0, a = c ? e : o;
21
- {
22
- const s = n.useRef(e !== void 0);
23
- n.useEffect(() => {
24
- const f = s.current;
25
- f !== c && console.warn(
26
- `${l} 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.`
27
- ), s.current = c;
28
- }, [c, l]);
29
- }
30
- const d = n.useCallback(
31
- (s) => {
32
- if (c) {
33
- const f = E(s) ? s(e) : s;
34
- f !== e && i.current?.(f);
35
- } else
36
- u(s);
37
- },
38
- [c, e, u, i]
39
- );
40
- return [a, d];
41
- }
42
- function R({
43
- defaultProp: e,
44
- onChange: r
45
- }) {
46
- const [t, l] = n.useState(e), o = n.useRef(t), u = n.useRef(r);
47
- return v(() => {
48
- u.current = r;
49
- }, [r]), n.useEffect(() => {
50
- o.current !== t && (u.current?.(t), o.current = t);
51
- }, [t, o]), [t, l, u];
52
- }
53
- function E(e) {
54
- return typeof e == "function";
55
- }
56
- export {
57
- w as c,
58
- S as u
59
- };
@@ -1,41 +0,0 @@
1
- "use client";"use strict";const oe=require("react"),ge=require("./index-_XxjJPRD.cjs"),ye=require("./index-CocSS1YK.cjs"),G=require("./index-CzY-WZXL.cjs"),be=require("./jsx-runtime-BB_1_6y_.cjs");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ee(oe);var j="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},Se="FocusScope",ce=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=G.useCallbackRef(c),g=G.useCallbackRef(i),f=u.useRef(null),v=ge.useComposedRefs(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:k(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||k(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&k(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(j,z);a.addEventListener(j,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&k(a))}return()=>{a.removeEventListener(j,b),setTimeout(()=>{const d=new CustomEvent(_,z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||k(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&k(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&k(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return be.jsxRuntimeExports.jsx(ye.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ce.displayName=Se;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=Z(t,e),r=Z(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(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 ke(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var Q=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var U=0;function Oe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function J(){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 C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",D="width-before-scroll-bar",Me="with-scroll-bars-hidden",Fe="--removed-body-scroll-bar-size";function K(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pe(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<"u"?u.useLayoutEffect:u.useEffect,ee=new WeakMap;function xe(e,t){var n=Pe(null,function(r){return e.forEach(function(c){return K(c,r)})});return Le(function(){var r=ee.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||K(a,null)}),i.forEach(function(a){c.has(a)||K(a,s)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function We(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function De(e){e===void 0&&(e={});var t=We(null);return t.options=C({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ie(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 u.createElement(r,C({},n))};le.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),le}var se=De(),H=function(){},B=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,A=xe([n,t]),R=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:se,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},R),{ref:A})):u.createElement(m,C({},R,{className:S,ref:A}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:D,zeroRight:W};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},V=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[V(n),V(r),V(c)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(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])}},Ge=fe(),M="data-scroll-locked",ze=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Me,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(a,"px ").concat(r,`;
5
- }
6
- body[`).concat(M,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(c,`px;
11
- padding-top: `).concat(i,`px;
12
- padding-right: `).concat(s,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(a,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(W,` {
20
- right: `).concat(a,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(D,` {
24
- margin-right: `).concat(a,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(W," .").concat(W,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(D," .").concat(D,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(M,`] {
36
- `).concat(Fe,": ").concat(a,`px;
37
- }
38
- `)},te=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},Ze=function(){u.useEffect(function(){return document.body.setAttribute(M,(te()+1).toString()),function(){var e=te()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},Qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Ze();var i=u.useMemo(function(){return qe(c)},[c]);return u.createElement(Ge,{styles:ze(i,!t,c,n?"":"!important")})},Y=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return Y=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{Y=!1}var T=Y?{passive:!1}:!1,$e=function(e){return e.tagName==="TEXTAREA"},de=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$e(e)&&n[t]==="visible")},Je=function(e){return de(e,"overflowY")},et=function(e){return de(e,"overflowX")},ne=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=ve(e,r);if(c){var i=he(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ve=function(e,t){return e==="v"?Je(t):et(t)},he=function(e,t){return e==="v"?tt(t):nt(t)},rt=function(e,t){return e==="h"&&t==="rtl"?-1:1},at=function(e,t,n,r,c){var i=rt(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,S=t.contains(a),b=!1,g=s>0,f=0,v=0;do{if(!a)break;var h=he(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&ve(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(g&&Math.abs(f)<1||!g&&Math.abs(v)<1)&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},ot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ct=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},ut=0,O=[];function it(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(ut++)[0],i=u.useState(fe)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var o=Ne([e.lockRef.current],(e.shards||[]).map(ae),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=L(o),m=n.current,p="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,A=o.target,R=Math.abs(p)>Math.abs(y)?"h":"v";if("touches"in o&&R==="h"&&A.type==="range")return!1;var F=ne(R,A);if(!F)return!0;if(F?E=R:(E=R==="v"?"h":"v",F=ne(R,A)),!F)return!1;if(!r.current&&"changedTouches"in o&&(p||y)&&(r.current=E),!E)return!0;var q=r.current||E;return at(q,l,o,q==="h"?p:y)},[]),S=u.useCallback(function(o){var l=o;if(!(!O.length||O[O.length-1]!==i)){var d="deltaY"in l?re(l):L(l),m=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ot(E.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}if(!m){var p=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=p.length>0?a(l,p[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(o,l,d,m){var p={name:o,delta:l,target:d,should:m,shadowParent:lt(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(y){return y!==p})},1)},[]),g=u.useCallback(function(o){n.current=L(o),r.current=void 0},[]),f=u.useCallback(function(o){b(o.type,re(o),o.target,a(o,e.lockRef.current))},[]),v=u.useCallback(function(o){b(o.type,L(o),o.target,a(o,e.lockRef.current))},[]);u.useEffect(function(){return O.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,T),document.addEventListener("touchmove",S,T),document.addEventListener("touchstart",g,T),function(){O=O.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,T),document.removeEventListener("touchmove",S,T),document.removeEventListener("touchstart",g,T)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:ct(c)}):null,h?u.createElement(Qe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const st=Be(se,it);var me=u.forwardRef(function(e,t){return u.createElement(B,C({},e,{ref:t,sideCar:st}))});me.classNames=B.classNames;var ft=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},N=new WeakMap,x=new WeakMap,I={},X=0,pe=function(e){return e&&(e.host||pe(e.parentNode))},dt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pe(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})},vt=function(e,t,n,r){var c=dt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var i=I[n],s=[],a=new Set,S=new Set(c),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))g(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(N.get(v)||0)+1,l=(i.get(v)||0)+1;N.set(v,o),i.set(v,l),s.push(v),o===1&&w&&x.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return g(t),a.clear(),X++,function(){s.forEach(function(f){var v=N.get(f)-1,h=i.get(f)-1;N.set(f,v),i.set(f,h),v||(x.has(f)||f.removeAttribute(r),x.delete(f)),h||f.removeAttribute(n)}),X--,X||(N=new WeakMap,N=new WeakMap,x=new WeakMap,I={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=ft(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),vt(r,c,n,"aria-hidden")):function(){return null}};exports.FocusScope=ce;exports.ReactRemoveScroll=me;exports.hideOthers=ht;exports.useFocusGuards=Oe;
@@ -1 +0,0 @@
1
- "use client";"use strict";const B=require("react"),f=require("./index-BWaO7kQK.cjs"),P=require("./index-Da298sEl.cjs"),Y=require("./index-_XxjJPRD.cjs"),z=require("./index-cwZN7ZY3.cjs"),V=require("./index-WIv2ndLu.cjs"),D=require("./index-CocSS1YK.cjs"),J=require("./index-CzY-WZXL.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function Q(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const c=Q(B);var y="rovingFocusGroup.onEntryFocus",W={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[j,G,X]=P.createCollection(b),[Z,ee]=z.createContextScope(b,[X]),[te,oe]=Z(b),N=c.forwardRef((e,o)=>p.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(ne,{...e,ref:o})})}));N.displayName=b;var ne=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,orientation:t,loop:F=!1,dir:S,currentTabStopId:v,defaultCurrentTabStopId:T,onCurrentTabStopIdChange:w,onEntryFocus:m,preventScrollOnEntryFocus:u=!1,...I}=e,R=c.useRef(null),g=Y.useComposedRefs(o,R),x=P.useDirection(S),[E,r]=f.useControllableState({prop:v,defaultProp:T??null,onChange:w,caller:b}),[a,C]=c.useState(!1),i=J.useCallbackRef(m),l=G(n),_=c.useRef(!1),[q,A]=c.useState(0);return c.useEffect(()=>{const s=R.current;if(s)return s.addEventListener(y,i),()=>s.removeEventListener(y,i)},[i]),p.jsxRuntimeExports.jsx(te,{scope:n,orientation:t,dir:x,loop:F,currentTabStopId:E,onItemFocus:c.useCallback(s=>r(s),[r]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>A(s=>s-1),[]),children:p.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:a||q===0?-1:0,"data-orientation":t,...I,ref:g,style:{outline:"none",...e.style},onMouseDown:f.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:f.composeEventHandlers(e.onFocus,s=>{const L=!_.current;if(s.target===s.currentTarget&&L&&!a){const O=new CustomEvent(y,W);if(s.currentTarget.dispatchEvent(O),!O.defaultPrevented){const h=l().filter(d=>d.focusable),U=h.find(d=>d.active),H=h.find(d=>d.id===E),$=[U,H,...h].filter(Boolean).map(d=>d.ref.current);k($,u)}}_.current=!1}),onBlur:f.composeEventHandlers(e.onBlur,()=>C(!1))})})}),K="RovingFocusGroupItem",M=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:t=!0,active:F=!1,tabStopId:S,children:v,...T}=e,w=V.useId(),m=S||w,u=oe(K,n),I=u.currentTabStopId===m,R=G(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:E}=u;return c.useEffect(()=>{if(t)return g(),()=>x()},[t,g,x]),p.jsxRuntimeExports.jsx(j.ItemSlot,{scope:n,id:m,focusable:t,active:F,children:p.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:I?0:-1,"data-orientation":u.orientation,...T,ref:o,onMouseDown:f.composeEventHandlers(e.onMouseDown,r=>{t?u.onItemFocus(m):r.preventDefault()}),onFocus:f.composeEventHandlers(e.onFocus,()=>u.onItemFocus(m)),onKeyDown:f.composeEventHandlers(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const a=ce(r,u.orientation,u.dir);if(a!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let i=R().filter(l=>l.focusable).map(l=>l.ref.current);if(a==="last")i.reverse();else if(a==="prev"||a==="next"){a==="prev"&&i.reverse();const l=i.indexOf(r.currentTarget);i=u.loop?ue(i,l+1):i.slice(l+1)}setTimeout(()=>k(i))}}),children:typeof v=="function"?v({isCurrentTabStop:I,hasTabStop:E!=null}):v})})});M.displayName=K;var re={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function se(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,n){const t=se(e.key,n);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return re[t]}function k(e,o=!1){const n=document.activeElement;for(const t of e)if(t===n||(t.focus({preventScroll:o}),document.activeElement!==n))return}function ue(e,o){return e.map((n,t)=>e[(o+t)%e.length])}var ie=N,ae=M;exports.Item=ae;exports.Root=ie;exports.createRovingFocusGroupScope=ee;
@@ -1 +0,0 @@
1
- "use client";"use strict";const w=require("react"),T=require("./index-BWaO7kQK.cjs"),A=require("./index-cwZN7ZY3.cjs"),I=require("./index-MQ0c3ZX_.cjs"),$=require("./index-_XxjJPRD.cjs"),m=require("./index-CocSS1YK.cjs"),D=require("./index-DE3jjVoC.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function k(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const r=k(w);var f="Collapsible",[L,F]=A.createContextScope(f),[B,g]=L(f),q=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=T.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(B,{scope:t,disabled:l,contentId:M.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:s})})});q.displayName=f;var S="CollapsibleTrigger",R=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,...n}=e,o=g(S,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:s,onClick:T.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=S;var v="CollapsibleContent",h=r.forwardRef((e,s)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(D.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(G,{...n,ref:s,present:l})})});h.displayName=v;var G=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=$.useComposedRefs(s,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const i=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(i)},[]),I.useLayoutEffect2(()=>{const i=d.current;if(i){p.current=p.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const O=i.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(i.style.transitionDuration=p.current.transitionDuration,i.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var z=q,H=R,J=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=J;exports.Root=z;exports.Trigger=H;exports.createCollapsibleScope=F;
@@ -1,5 +0,0 @@
1
- "use client";"use strict";const V=require("react"),g=require("./index-BWaO7kQK.cjs"),D=require("./index-_XxjJPRD.cjs"),O=require("./index-cwZN7ZY3.cjs"),j=require("./index-WIv2ndLu.cjs"),B=require("./index-BaCYnOIG.cjs"),E=require("./index-C2P2kXMc.cjs"),Z=require("./index-CBuLZ39k.cjs"),y=require("./index-DE3jjVoC.cjs"),m=require("./index-CocSS1YK.cjs"),a=require("./jsx-runtime-BB_1_6y_.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=z(V);function K(e){const t=U(e),o=i.forwardRef((r,n)=>{const{children:s,...c}=r,l=i.Children.toArray(s),u=l.find(J);if(u){const p=u.props.children,x=l.map(R=>R===u?i.Children.count(p)>1?i.Children.only(null):i.isValidElement(p)?p.props.children:null:R);return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(p)?i.cloneElement(p,void 0,x):null})}return a.jsxRuntimeExports.jsx(t,{...c,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function U(e){const t=i.forwardRef((o,r)=>{const{children:n,...s}=o;if(i.isValidElement(n)){const c=X(n),l=Q(s,n.props);return n.type!==i.Fragment&&(l.ref=r?D.composeRefs(r,c):c),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y=Symbol("radix.slottable");function J(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y}function Q(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function X(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Dialog",[I]=O.createContextScope(C),[ee,d]=I(C),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),u=i.useRef(null),[p,x]=g.useControllableState({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:u,contentId:j.useId(),titleId:j.useId(),descriptionId:j.useId(),open:p,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(R=>!R),[x]),modal:c,children:o})};N.displayName=C;var b="DialogTrigger",T=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(b,o),s=D.useComposedRefs(t,n.triggerRef);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":P(n.open),...r,ref:s,onClick:g.composeEventHandlers(e.onClick,n.onOpenToggle)})});T.displayName=b;var _="DialogPortal",[te,A]=I(_,{forceMount:void 0}),S=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,s=d(_,t);return a.jsxRuntimeExports.jsx(te,{scope:t,forceMount:o,children:i.Children.map(r,c=>a.jsxRuntimeExports.jsx(y.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(Z.Portal,{asChild:!0,container:n,children:c})}))})};S.displayName=_;var v="DialogOverlay",M=i.forwardRef((e,t)=>{const o=A(v,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(v,e.__scopeDialog);return s.modal?a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:a.jsxRuntimeExports.jsx(ne,{...n,ref:t})}):null});M.displayName=v;var oe=K("DialogOverlay.RemoveScroll"),ne=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(v,o);return a.jsxRuntimeExports.jsx(E.ReactRemoveScroll,{as:oe,allowPinchZoom:!0,shards:[n.contentRef],children:a.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),f="DialogContent",w=i.forwardRef((e,t)=>{const o=A(f,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,s=d(f,e.__scopeDialog);return a.jsxRuntimeExports.jsx(y.Presence,{present:r||s.open,children:s.modal?a.jsxRuntimeExports.jsx(re,{...n,ref:t}):a.jsxRuntimeExports.jsx(se,{...n,ref:t})})});w.displayName=f;var re=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(null),n=D.useComposedRefs(t,o.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return E.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(F,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault())})}),se=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),r=i.useRef(!1),n=i.useRef(!1);return a.jsxRuntimeExports.jsx(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),F=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...c}=e,l=d(f,o),u=i.useRef(null),p=D.useComposedRefs(t,u);return E.useFocusGuards(),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(E.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(B.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(ie,{titleId:l.titleId}),a.jsxRuntimeExports.jsx(le,{contentRef:u,descriptionId:l.descriptionId})]})]})}),h="DialogTitle",W=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(h,o);return a.jsxRuntimeExports.jsx(m.Primitive.h2,{id:n.titleId,...r,ref:t})});W.displayName=h;var $="DialogDescription",q=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d($,o);return a.jsxRuntimeExports.jsx(m.Primitive.p,{id:n.descriptionId,...r,ref:t})});q.displayName=$;var L="DialogClose",k=i.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=d(L,o);return a.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",...r,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=L;function P(e){return e?"open":"closed"}var G="DialogTitleWarning",[Re,H]=O.createContext2(G,{contentName:f,titleName:h,docsSlug:"dialog"}),ie=({titleId:e})=>{const t=H(G),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
-
3
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
-
5
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ae="DialogDescriptionWarning",le=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(ae).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ce=N,ue=T,de=S,pe=M,fe=w,ge=W,xe=q,me=k;exports.Close=me;exports.Content=fe;exports.Description=xe;exports.Overlay=pe;exports.Portal=de;exports.Root=ce;exports.Title=ge;exports.Trigger=ue;