@decocms/mesh 2.24.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/client/assets/{AlertCircle-CV_2Ske6.js → AlertCircle-Boj76jQH.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-BahOAMyC.js → ArrowLeft-BTICYmOF.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-D7M3SswO.js → ArrowUp-HjoDlZqE.js} +1 -1
  4. package/dist/client/assets/{Check-Cl1DPN8W.js → Check-CTW7R50X.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-QptcKPPq.js → ChevronDown-HeHHvdAJ.js} +1 -1
  6. package/dist/client/assets/{Code01-CSoaiT62.js → Code01-vxLA-aYr.js} +1 -1
  7. package/dist/client/assets/{Copy01-DsZYv9_9.js → Copy01-lNTIiCNm.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-Aoyfmqeo.js → DotsHorizontal-BNX6_V13.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-DqzXFrVL.js → DotsVertical-De3HfSYp.js} +1 -1
  10. package/dist/client/assets/{Download01-DWGjnFFr.js → Download01-DxmKLd6b.js} +1 -1
  11. package/dist/client/assets/{Edit01-BfNte4_5.js → Edit01-2gMw94kx.js} +1 -1
  12. package/dist/client/assets/{File06-MyNxuf_W.js → File06-DZffLvEY.js} +1 -1
  13. package/dist/client/assets/{FilterLines-D3Q31BkI.js → FilterLines-CRPPV9uJ.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-vsVFh-C6.js → FlipBackward-BxNU9_QP.js} +1 -1
  15. package/dist/client/assets/{GitBranch01-BqcP5DIB.js → GitBranch01-lDIVlGo4.js} +1 -1
  16. package/dist/client/assets/{Grid01-yvEs5TWW.js → Grid01-DPl7Hdtr.js} +1 -1
  17. package/dist/client/assets/{Home02-DjFn6K-r.js → Home02-DBWacsCD.js} +1 -1
  18. package/dist/client/assets/{Image01-CYYkJQ3k.js → Image01-GhNrLN_o.js} +1 -1
  19. package/dist/client/assets/{Inbox01-BhCAhDsN.js → Inbox01-Bz1paVJY.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-D-tECwtz.js → InfoCircle-BbYzxP40.js} +1 -1
  21. package/dist/client/assets/{Key01-Yka-P-CN.js → Key01-CVOksW38.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DgUNNdya.js → LinkExternal01-C6sS8-Dh.js} +1 -1
  23. package/dist/client/assets/{List-BwQLP7Xm.js → List-Cd5FrKez.js} +1 -1
  24. package/dist/client/assets/{Loading01-BEWxFOsJ.js → Loading01-CE1tPVnH.js} +1 -1
  25. package/dist/client/assets/{Lock01-BhAPWcE3.js → Lock01-BMAl_X3b.js} +1 -1
  26. package/dist/client/assets/{Play-CekdqE6r.js → Play-DRtw-ZLY.js} +1 -1
  27. package/dist/client/assets/{Plus-CnFAGbmk.js → Plus-DS0QMjNS.js} +1 -1
  28. package/dist/client/assets/{SearchMd-fJfE7iLY.js → SearchMd-DwZ1Uewr.js} +1 -1
  29. package/dist/client/assets/{Terminal-ejweaysv.js → Terminal-BGn35Hrh.js} +1 -1
  30. package/dist/client/assets/{Trash01-uhyK-8nB.js → Trash01-BspHke6m.js} +1 -1
  31. package/dist/client/assets/{Upload01-BsNcOyJi.js → Upload01-Be9A57c7.js} +1 -1
  32. package/dist/client/assets/{X-CxYkZpBQ.js → X-A9y1T0lz.js} +1 -1
  33. package/dist/client/assets/{XClose-Y6oe-mwV.js → XClose-CI6rgB8F.js} +1 -1
  34. package/dist/client/assets/{agent-detail-BwHpiO3s.js → agent-detail-D-HdWQgm.js} +1 -1
  35. package/dist/client/assets/{agents-BHGOj2hY.js → agents-BW9FgFlJ.js} +1 -1
  36. package/dist/client/assets/{alert-dialog-t9YTjfeS.js → alert-dialog-l6IBCD_g.js} +1 -1
  37. package/dist/client/assets/{auth-catchall-BeIbwmpd.js → auth-catchall-EiefGJkC.js} +1 -1
  38. package/dist/client/assets/{avatar-63HLGHa6.js → avatar-C1-OS7tz.js} +1 -1
  39. package/dist/client/assets/{badge-H3tu3alI.js → badge-BDT5rriT.js} +1 -1
  40. package/dist/client/assets/{binder-h-DAIqZk.js → binder-4aB10nPM.js} +1 -1
  41. package/dist/client/assets/{button-BY0U_trB.js → button-DgJewvnk.js} +1 -1
  42. package/dist/client/assets/{card-BgqGJlKn.js → card-VbBkGSHG.js} +1 -1
  43. package/dist/client/assets/{checkbox-B49kYNJ-.js → checkbox-BT-kiYse.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BEvt6SJv.js → collection-detail-DulG-46F.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-CKAn8RZK.js → collection-display-button-CPWNBzZz.js} +1 -1
  46. package/dist/client/assets/{collection-header-BCxNcaP0.js → collection-header-Dh-TC0ET.js} +1 -1
  47. package/dist/client/assets/{collection-page-4ehGOEaI.js → collection-page-CtMspF20.js} +1 -1
  48. package/dist/client/assets/{collection-search-DtIPt7nm.js → collection-search-L_JghakB.js} +1 -1
  49. package/dist/client/assets/{collection-tab-DaIWakkn.js → collection-tab-B12-V7lv.js} +1 -1
  50. package/dist/client/assets/{collection-table-wrapper-BajIguAD.js → collection-table-wrapper-DYV0KLLC.js} +1 -1
  51. package/dist/client/assets/{connection-B9wsQJ4x.js → connection-Byxo_DeQ.js} +1 -1
  52. package/dist/client/assets/{connection-card-kOCwfSqa.js → connection-card-B0OuYrZZ.js} +1 -1
  53. package/dist/client/assets/{connection-detail-CeIMKRLP.js → connection-detail-CSWioyLQ.js} +1 -1
  54. package/dist/client/assets/{connections-CoWwPPSP.js → connections-CS3LHfU3.js} +1 -1
  55. package/dist/client/assets/constants-B5fsCpvW.js +1 -0
  56. package/dist/client/assets/{create-organization-dialog-CO6Jpf4A.js → create-organization-dialog-CHy0EWEL.js} +1 -1
  57. package/dist/client/assets/{dialog-iJAwIjfK.js → dialog-D4Z11dI6.js} +1 -1
  58. package/dist/client/assets/{dropdown-menu-DG1GIIwU.js → dropdown-menu-N-z7LuJ5.js} +1 -1
  59. package/dist/client/assets/{dynamic-plugin-layout-DGRod1Lg.js → dynamic-plugin-layout-Cr1oWoCB.js} +1 -1
  60. package/dist/client/assets/{empty-state-CgGQoUxw.js → empty-state-6P2NW0kn.js} +1 -1
  61. package/dist/client/assets/{empty-state-BTtikpWV.js → empty-state-BEQc84s3.js} +1 -1
  62. package/dist/client/assets/{env-vars-editor-5qNLK4j_.js → env-vars-editor-DWqHCY6l.js} +1 -1
  63. package/dist/client/assets/{error-boundary-Wp2wTq0T.js → error-boundary-BT3Mebg5.js} +1 -1
  64. package/dist/client/assets/{extract-connection-data-BvlzvR4m.js → extract-connection-data-D1x0qOyh.js} +1 -1
  65. package/dist/client/assets/{file-browser-DwREbCtv.js → file-browser-BA4Fit03.js} +2 -2
  66. package/dist/client/assets/{form-C12U5i4A.js → form-MQmvJnlF.js} +1 -1
  67. package/dist/client/assets/{grid-view-Dy0_lFLB.js → grid-view-Bmsbo8El.js} +1 -1
  68. package/dist/client/assets/{home-CTE_1w5Z.js → home-Do3AvDKR.js} +1 -1
  69. package/dist/client/assets/{index-C7jbdfWM.js → index-BIRWa1W2.js} +1 -1
  70. package/dist/client/assets/{index-xvNq1s6k.js → index-C9OplJzd.js} +1 -1
  71. package/dist/client/assets/index-CRKvJygs.js +25 -0
  72. package/dist/client/assets/{index-C62W55Yo.js → index-CgBWAlIR.js} +1 -1
  73. package/dist/client/assets/{index-BF36lrM0.js → index-D_yiV8TC.js} +2 -2
  74. package/dist/client/assets/index-Dvb3XANN.css +1 -0
  75. package/dist/client/assets/{infiniteQueryObserver-Cqhltp2W.js → infiniteQueryObserver-BQE0oyQO.js} +1 -1
  76. package/dist/client/assets/{input-CpdDHW2j.js → input-CsfP4B4p.js} +1 -1
  77. package/dist/client/assets/{layout-BLmqRDQz.js → layout-BfSbLiA5.js} +1 -1
  78. package/dist/client/assets/{localstorage-keys-DrYwgV-b.js → localstorage-keys-DsHtX4Jw.js} +1 -1
  79. package/dist/client/assets/{login-BleXV37s.js → login-Cjxw0cFa.js} +1 -1
  80. package/dist/client/assets/{mcp-oauth-CMNXgXw9.js → mcp-oauth-Dvs3O_Op.js} +1 -1
  81. package/dist/client/assets/{mcp-server-card-CLD0MlHi.js → mcp-server-card-6ibrMQ8U.js} +1 -1
  82. package/dist/client/assets/{mcp-server-detail-C8nn-cjk.js → mcp-server-detail-BA0KnCSI.js} +1 -1
  83. package/dist/client/assets/{members-BJsU2IDJ.js → members-BVTRo-7X.js} +1 -1
  84. package/dist/client/assets/{monaco-editor-CqsxwMR1.js → monaco-editor-D8njkMiZ.js} +1 -1
  85. package/dist/client/assets/{monitoring-DI2F2-gW.js → monitoring-DFlGViEd.js} +1 -1
  86. package/dist/client/assets/{oauth-callback-BG19emHo.js → oauth-callback-BUnnsAFp.js} +1 -1
  87. package/dist/client/assets/{page-Dt-xJ0t7.js → page-Clo7Ovdx.js} +1 -1
  88. package/dist/client/assets/{page-D3Fotx0f.js → page-D1PLSsqR.js} +1 -1
  89. package/dist/client/assets/{pin-to-sidebar-button-D-6-fLPf.js → pin-to-sidebar-button-CxaNNClv.js} +1 -1
  90. package/dist/client/assets/{plugin-empty-state-BvctpTEE.js → plugin-empty-state-iPofL9QM.js} +1 -1
  91. package/dist/client/assets/{plugin-header-D41UNBLt.js → plugin-header-B9k1OsMP.js} +1 -1
  92. package/dist/client/assets/{plugins-C8gEzMs6.js → plugins-Cj5hb3FX.js} +1 -1
  93. package/dist/client/assets/{popover-BeoKBBM1.js → popover-9EmjWmbB.js} +1 -1
  94. package/dist/client/assets/{project-context-provider-DzsB7M-_.js → project-context-provider-DKV25A4C.js} +1 -1
  95. package/dist/client/assets/{registry-utils-Bvv1buXq.js → registry-utils-CjLSWVEm.js} +1 -1
  96. package/dist/client/assets/{resizable-_8uWIPP-.js → resizable-JjtuHF73.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-BLyBe1s2.js → resource-tabs-D_iZqwk7.js} +1 -1
  98. package/dist/client/assets/{select-BIz3vvEQ.js → select-DjeJmILl.js} +1 -1
  99. package/dist/client/assets/{settings-lkeLq0lX.js → settings-CUQYUdNO.js} +1 -1
  100. package/dist/client/assets/{shell-layout-DlLuXMY5.js → shell-layout-5dQxdh2B.js} +1 -1
  101. package/dist/client/assets/{spinner-CTVrJwKL.js → spinner-C7W5-5hg.js} +1 -1
  102. package/dist/client/assets/{switch-Dy4gwRqa.js → switch-DDjZhTdN.js} +1 -1
  103. package/dist/client/assets/{textarea-t5B3OM9P.js → textarea-CXN3Js-4.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-ByauUXgY.js → tool-set-selector-CVBBVhTA.js} +1 -1
  105. package/dist/client/assets/{tools-list-BeACAG3i.js → tools-list-BueW_H_K.js} +1 -1
  106. package/dist/client/assets/{tooltip-BK_1J9C_.js → tooltip-Cl3M2P7a.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-Cg14Kxt7.js → typewriter-title-CPJFZpo0.js} +1 -1
  108. package/dist/client/assets/{use-binding-Dye-n-yU.js → use-binding-CauWbFwn.js} +1 -1
  109. package/dist/client/assets/{use-collections-Ckty0ghF.js → use-collections-DIzFS7Fj.js} +1 -1
  110. package/dist/client/assets/{use-connection-DhKqHtbu.js → use-connection-BWMRs4Bt.js} +1 -1
  111. package/dist/client/assets/{use-connection-resources-AvDNzmBV.js → use-connection-resources-DlxiG1--.js} +1 -1
  112. package/dist/client/assets/{use-create-virtual-mcp-CRFUmT7b.js → use-create-virtual-mcp-DL4zGzFl.js} +1 -1
  113. package/dist/client/assets/{use-list-state-TtAnvO_b.js → use-list-state-BfjO2CO2.js} +1 -1
  114. package/dist/client/assets/{use-mcp-CpX9yUli.js → use-mcp-lSZX114m.js} +1 -1
  115. package/dist/client/assets/{use-members-TfLkqobx.js → use-members-CXyjrj2s.js} +1 -1
  116. package/dist/client/assets/{use-mobile-hytGZ4u1.js → use-mobile-BYMqewSV.js} +1 -1
  117. package/dist/client/assets/{use-organization-settings-1IcqHHyX.js → use-organization-settings-B1efjG2L.js} +1 -1
  118. package/dist/client/assets/{use-tool-call-BL77c1ZY.js → use-tool-call-CmGXFIVD.js} +1 -1
  119. package/dist/client/assets/{use-virtual-mcp-DkhKq3Hu.js → use-virtual-mcp-CcuyRJmi.js} +1 -1
  120. package/dist/client/assets/{use-virtual-mcp-system-prompt-_ZIF4JTa.js → use-virtual-mcp-system-prompt-CUyXD7ZM.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-Czf6Kd3z.js +1 -0
  122. package/dist/client/assets/{useMutation-CwqnnhnA.js → useMutation-rgwX4wnS.js} +1 -1
  123. package/dist/client/assets/useQuery-CrubtpmP.js +1 -0
  124. package/dist/client/assets/{value-DHIwgTGn.js → value-BLmCvXPB.js} +1 -1
  125. package/dist/client/assets/{view-mode-toggle-iqfK1oLC.js → view-mode-toggle-wGzGYu8G.js} +1 -1
  126. package/dist/client/assets/{workflow-Dx5p2iNU.js → workflow-D4k0joOp.js} +1 -1
  127. package/dist/client/index.html +2 -2
  128. package/dist/server/cli.js +167 -161
  129. package/dist/server/server.js +163 -157
  130. package/package.json +1 -1
  131. package/dist/client/assets/constants-CQNxHBLU.js +0 -1
  132. package/dist/client/assets/index-BOoYPbIt.css +0 -1
  133. package/dist/client/assets/index-CezFL9px.js +0 -25
  134. package/dist/client/assets/useInfiniteQuery-V_LiOKxm.js +0 -1
  135. package/dist/client/assets/useQuery-Dx7rylpD.js +0 -1
@@ -1 +1 @@
1
- import{bf as K,bg as E,bh as V,bi as z,bj as _,x as W,bk as X,bl as Y,r as h,bm as J,bn as Z,bo as $,bp as ee,bq as k,br as P,bs as se,bt as te,ab as Q,a4 as re,aa as oe,j as m,a5 as A,ad as ne,a6 as g,a3 as O,ac as ae,a8 as w,a7 as ie,aD as ue,aC as ce}from"./index-BF36lrM0.js";function I(o,r){const e=new Set(r);return o.filter(s=>!e.has(s))}function de(o,r,e){const s=o.slice(0);return s[r]=e,s}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u;#c=[];constructor(o,r,e){super(),this.#r=o,this.#n=e,this.#o=[],this.#s=[],this.#e=[],this.setQueries(r)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(o=>{o.subscribe(r=>{this.#p(o,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(o=>{o.destroy()})}setQueries(o,r){this.#o=o,this.#n=r,E.batch(()=>{const e=this.#s,s=this.#h(this.#o);s.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const t=s.map(i=>i.observer),n=t.map(i=>i.getCurrentResult()),a=e.length!==t.length,c=t.some((i,d)=>i!==e[d]),l=a||c,v=l?!0:n.some((i,d)=>{const b=this.#e[d];return!b||!V(i,b)});!l&&!v||(l&&(this.#c=s,this.#s=t),this.#e=n,this.hasListeners()&&(l&&(I(e,t).forEach(i=>{i.destroy()}),I(t,e).forEach(i=>{i.subscribe(d=>{this.#p(i,d)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(o=>o.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(o,r){const e=this.#h(o),s=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),t=e.map(n=>n.defaultedQueryOptions.queryHash);return[s,n=>this.#l(n??s,r,t),()=>this.#d(s,e)]}#d(o,r){return r.map((e,s)=>{const t=o[s];return e.defaultedQueryOptions.notifyOnChangeProps?t:e.observer.trackResult(t,n=>{r.forEach(a=>{a.observer.trackProp(n)})})})}#l(o,r,e){if(r){const s=this.#u,t=e!==void 0&&s!==void 0&&(s.length!==e.length||e.some((n,a)=>n!==s[a]));return(!this.#t||this.#e!==this.#i||t||r!==this.#a)&&(this.#a=r,this.#i=this.#e,e!==void 0&&(this.#u=e),this.#t=z(this.#t,r(o))),this.#t}return o}#h(o){const r=new Map;this.#s.forEach(s=>{const t=s.options.queryHash;if(!t)return;const n=r.get(t);n?n.push(s):r.set(t,[s])});const e=[];return o.forEach(s=>{const t=this.#r.defaultQueryOptions(s),a=r.get(t.queryHash)?.shift()??new _(this.#r,t);e.push({defaultedQueryOptions:t,observer:a})}),e}#p(o,r){const e=this.#s.indexOf(o);e!==-1&&(this.#e=de(this.#e,e,r),this.#f())}#f(){if(this.hasListeners()){const o=this.#t,r=this.#d(this.#e,this.#c),e=this.#l(r,this.#n?.combine);o!==e&&E.batch(()=>{this.listeners.forEach(s=>{s(this.#e)})})}}};function Ee({queries:o,...r},e){const s=W(e),t=X(),n=Y(),a=h.useMemo(()=>o.map(u=>{const p=s.defaultQueryOptions(u);return p._optimisticResults=t?"isRestoring":"optimistic",p}),[o,s,t]);a.forEach(u=>{J(u);const p=s.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(n);const[c]=h.useState(()=>new le(s,a,r)),[l,v,i]=c.getOptimisticResult(a,r.combine),d=!t&&r.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(E.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,r)},[a,r,c]);const f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];if(y){const x=new _(s,y);if(k(y,u))return P(y,x,n);se(u,t)&&P(y,x,n)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=l.find((u,p)=>{const y=a[p];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:s.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return v(i())}var S="Radio",[he,j]=A(S),[pe,fe]=he(S),G=h.forwardRef((o,r)=>{const{__scopeRadio:e,name:s,checked:t=!1,required:n,disabled:a,value:c="on",onCheck:l,form:v,...i}=o,[d,b]=h.useState(null),f=O(r,p=>b(p)),R=h.useRef(!1),u=d?v||!!d.closest("form"):!0;return m.jsxs(pe,{scope:e,checked:t,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":t,"data-state":D(t),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:f,onClick:w(o.onClick,p=>{t||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:s,value:c,checked:t,required:n,disabled:a,form:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((o,r)=>{const{__scopeRadio:e,forceMount:s,...t}=o,n=fe(M,e);return m.jsx(ie,{present:s||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...t,ref:r})})});N.displayName=M;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:o,control:r,checked:e,bubbles:s=!0,...t},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(e),v=ce(r);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==e&&f){const R=new Event("click",{bubbles:s});f.call(i,e),i.dispatchEvent(R)}},[l,e,s]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:c,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(o){return o?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[be]=A(C,[Q,j]),L=Q(),B=j(),[me,ye]=be(C),F=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,name:s,defaultValue:t,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=o,f=L(e),R=re(v),[u,p]=oe({prop:n,defaultProp:t??null,onChange:d,caller:C});return m.jsx(me,{scope:e,name:s,required:a,disabled:c,value:u,onValueChange:p,children:m.jsx(ne,{asChild:!0,...f,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...b,ref:r})})})});F.displayName=C;var H="RadioGroupItem",T=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,disabled:s,...t}=o,n=ye(H,e),a=n.disabled||s,c=L(e),l=B(e),v=h.useRef(null),i=O(r,v),d=n.value===t.value,b=h.useRef(!1);return h.useEffect(()=>{const f=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(G,{disabled:a,required:n.required,checked:d,...l,...t,name:n.name,ref:i,onCheck:()=>n.onValueChange(t.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(t.onFocus,()=>{b.current&&v.current?.click()})})})});T.displayName=H;var ge="RadioGroupIndicator",U=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,...s}=o,t=B(e);return m.jsx(N,{...t,...s,ref:r})});U.displayName=ge;var we=F,Oe=T,Se=U;export{Oe as I,we as R,Se as a,Ee as u};
1
+ import{bf as K,bg as E,bh as V,bi as z,bj as _,x as W,bk as X,bl as Y,r as h,bm as J,bn as Z,bo as $,bp as ee,bq as k,br as P,bs as se,bt as te,ab as Q,a4 as re,aa as oe,j as m,a5 as A,ad as ne,a6 as g,a3 as O,ac as ae,a8 as w,a7 as ie,aD as ue,aC as ce}from"./index-D_yiV8TC.js";function I(o,r){const e=new Set(r);return o.filter(s=>!e.has(s))}function de(o,r,e){const s=o.slice(0);return s[r]=e,s}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u;#c=[];constructor(o,r,e){super(),this.#r=o,this.#n=e,this.#o=[],this.#s=[],this.#e=[],this.setQueries(r)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(o=>{o.subscribe(r=>{this.#p(o,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(o=>{o.destroy()})}setQueries(o,r){this.#o=o,this.#n=r,E.batch(()=>{const e=this.#s,s=this.#h(this.#o);s.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const t=s.map(i=>i.observer),n=t.map(i=>i.getCurrentResult()),a=e.length!==t.length,c=t.some((i,d)=>i!==e[d]),l=a||c,v=l?!0:n.some((i,d)=>{const b=this.#e[d];return!b||!V(i,b)});!l&&!v||(l&&(this.#c=s,this.#s=t),this.#e=n,this.hasListeners()&&(l&&(I(e,t).forEach(i=>{i.destroy()}),I(t,e).forEach(i=>{i.subscribe(d=>{this.#p(i,d)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(o=>o.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(o,r){const e=this.#h(o),s=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),t=e.map(n=>n.defaultedQueryOptions.queryHash);return[s,n=>this.#l(n??s,r,t),()=>this.#d(s,e)]}#d(o,r){return r.map((e,s)=>{const t=o[s];return e.defaultedQueryOptions.notifyOnChangeProps?t:e.observer.trackResult(t,n=>{r.forEach(a=>{a.observer.trackProp(n)})})})}#l(o,r,e){if(r){const s=this.#u,t=e!==void 0&&s!==void 0&&(s.length!==e.length||e.some((n,a)=>n!==s[a]));return(!this.#t||this.#e!==this.#i||t||r!==this.#a)&&(this.#a=r,this.#i=this.#e,e!==void 0&&(this.#u=e),this.#t=z(this.#t,r(o))),this.#t}return o}#h(o){const r=new Map;this.#s.forEach(s=>{const t=s.options.queryHash;if(!t)return;const n=r.get(t);n?n.push(s):r.set(t,[s])});const e=[];return o.forEach(s=>{const t=this.#r.defaultQueryOptions(s),a=r.get(t.queryHash)?.shift()??new _(this.#r,t);e.push({defaultedQueryOptions:t,observer:a})}),e}#p(o,r){const e=this.#s.indexOf(o);e!==-1&&(this.#e=de(this.#e,e,r),this.#f())}#f(){if(this.hasListeners()){const o=this.#t,r=this.#d(this.#e,this.#c),e=this.#l(r,this.#n?.combine);o!==e&&E.batch(()=>{this.listeners.forEach(s=>{s(this.#e)})})}}};function Ee({queries:o,...r},e){const s=W(e),t=X(),n=Y(),a=h.useMemo(()=>o.map(u=>{const p=s.defaultQueryOptions(u);return p._optimisticResults=t?"isRestoring":"optimistic",p}),[o,s,t]);a.forEach(u=>{J(u);const p=s.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(n);const[c]=h.useState(()=>new le(s,a,r)),[l,v,i]=c.getOptimisticResult(a,r.combine),d=!t&&r.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(E.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,r)},[a,r,c]);const f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];if(y){const x=new _(s,y);if(k(y,u))return P(y,x,n);se(u,t)&&P(y,x,n)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=l.find((u,p)=>{const y=a[p];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:s.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return v(i())}var S="Radio",[he,j]=A(S),[pe,fe]=he(S),G=h.forwardRef((o,r)=>{const{__scopeRadio:e,name:s,checked:t=!1,required:n,disabled:a,value:c="on",onCheck:l,form:v,...i}=o,[d,b]=h.useState(null),f=O(r,p=>b(p)),R=h.useRef(!1),u=d?v||!!d.closest("form"):!0;return m.jsxs(pe,{scope:e,checked:t,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":t,"data-state":D(t),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:f,onClick:w(o.onClick,p=>{t||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:s,value:c,checked:t,required:n,disabled:a,form:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((o,r)=>{const{__scopeRadio:e,forceMount:s,...t}=o,n=fe(M,e);return m.jsx(ie,{present:s||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...t,ref:r})})});N.displayName=M;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:o,control:r,checked:e,bubbles:s=!0,...t},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(e),v=ce(r);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==e&&f){const R=new Event("click",{bubbles:s});f.call(i,e),i.dispatchEvent(R)}},[l,e,s]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:c,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(o){return o?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[be]=A(C,[Q,j]),L=Q(),B=j(),[me,ye]=be(C),F=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,name:s,defaultValue:t,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=o,f=L(e),R=re(v),[u,p]=oe({prop:n,defaultProp:t??null,onChange:d,caller:C});return m.jsx(me,{scope:e,name:s,required:a,disabled:c,value:u,onValueChange:p,children:m.jsx(ne,{asChild:!0,...f,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...b,ref:r})})})});F.displayName=C;var H="RadioGroupItem",T=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,disabled:s,...t}=o,n=ye(H,e),a=n.disabled||s,c=L(e),l=B(e),v=h.useRef(null),i=O(r,v),d=n.value===t.value,b=h.useRef(!1);return h.useEffect(()=>{const f=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(G,{disabled:a,required:n.required,checked:d,...l,...t,name:n.name,ref:i,onCheck:()=>n.onValueChange(t.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(t.onFocus,()=>{b.current&&v.current?.click()})})})});T.displayName=H;var ge="RadioGroupIndicator",U=h.forwardRef((o,r)=>{const{__scopeRadioGroup:e,...s}=o,t=B(e);return m.jsx(N,{...t,...s,ref:r})});U.displayName=ge;var we=F,Oe=T,Se=U;export{Oe as I,we as R,Se as a,Ee as u};