@decocms/mesh 2.57.0 → 2.57.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 (135) hide show
  1. package/dist/client/assets/{AlertCircle-C8rO0b-G.js → AlertCircle-Cti8VFir.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-vpWbkp4-.js → ArrowLeft-D16Hv3DC.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-agI-7Ntt.js → ArrowUp-Xjgpd-4O.js} +1 -1
  4. package/dist/client/assets/{Check-bsESkKfK.js → Check-BIIQB2ND.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BrpZ0bUP.js → ChevronDown-CUyH8K0C.js} +1 -1
  6. package/dist/client/assets/{Code01-oTyk1HsI.js → Code01-CtSw1Lk0.js} +1 -1
  7. package/dist/client/assets/{Copy01-BUXP8R1a.js → Copy01-C6ITopn8.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-B4Dbs24g.js → DotsHorizontal-DTtyBKhT.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-0N_Gcgn2.js → DotsVertical-LfgiwwDj.js} +1 -1
  10. package/dist/client/assets/{Download01-C42qXmzc.js → Download01-CGM4CcVm.js} +1 -1
  11. package/dist/client/assets/{Edit01-CK-Jy3GQ.js → Edit01-D6aeYdbq.js} +1 -1
  12. package/dist/client/assets/{File06-DGGRuK65.js → File06-C8fHynsm.js} +1 -1
  13. package/dist/client/assets/{FilterLines-BjbUYSYQ.js → FilterLines-BASWjEo3.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-Dor7d84a.js → FlipBackward-y0_WcC6V.js} +1 -1
  15. package/dist/client/assets/{Grid01-0lEGvhxe.js → Grid01-_pZ0S8Aw.js} +1 -1
  16. package/dist/client/assets/{Home02-uaWRHUbo.js → Home02-C0q_eKLc.js} +1 -1
  17. package/dist/client/assets/{Image01-Da7t4wio.js → Image01-DMxvWJY5.js} +1 -1
  18. package/dist/client/assets/{Inbox01-CYTXANsF.js → Inbox01-DkGOALG_.js} +1 -1
  19. package/dist/client/assets/{InfoCircle-C6HReCuL.js → InfoCircle-BDI4GGjn.js} +1 -1
  20. package/dist/client/assets/{Key01-ChugVlXz.js → Key01-CwrYkkPt.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-C0CJeznV.js → LinkExternal01-BIhBlEia.js} +1 -1
  22. package/dist/client/assets/{List-1gtHxod5.js → List-woAiKaoC.js} +1 -1
  23. package/dist/client/assets/{Loading01-CH0UJYYG.js → Loading01-CBit2OkB.js} +1 -1
  24. package/dist/client/assets/{Lock01-CG48-_ZX.js → Lock01-DfdY8Qoc.js} +1 -1
  25. package/dist/client/assets/{Pin01-GLAYpRsP.js → Pin01-D4jz86CA.js} +1 -1
  26. package/dist/client/assets/{Play-EKJU7zcf.js → Play-AcPklH_B.js} +1 -1
  27. package/dist/client/assets/{Plus-DJQVkgt_.js → Plus-DOnRVZBz.js} +1 -1
  28. package/dist/client/assets/{SearchMd-Cz_YV08V.js → SearchMd-CWl7F5--.js} +1 -1
  29. package/dist/client/assets/{Share07-pR36fyiF.js → Share07-CUQtZdyp.js} +1 -1
  30. package/dist/client/assets/{Terminal-CVwldn8M.js → Terminal-DwHgUT7i.js} +1 -1
  31. package/dist/client/assets/{Trash01-CmkjDFiw.js → Trash01-LSa5KJ2F.js} +1 -1
  32. package/dist/client/assets/{Upload01-ZVXhuS8k.js → Upload01-BhqKm2p1.js} +1 -1
  33. package/dist/client/assets/{Users03-DU4-bWO4.js → Users03-CNgdcFKL.js} +1 -1
  34. package/dist/client/assets/{X-DTfiDKsP.js → X-CuCCT9kk.js} +1 -1
  35. package/dist/client/assets/{XClose-DXOCJ4jd.js → XClose-ogzTbkrb.js} +1 -1
  36. package/dist/client/assets/{agent-detail-5YwCG3Vp.js → agent-detail-C-4nxfkM.js} +1 -1
  37. package/dist/client/assets/{agents-B65hVwk1.js → agents-BceBn3Dw.js} +1 -1
  38. package/dist/client/assets/{alert-dialog-DSN82CoS.js → alert-dialog-BDsz2_Qt.js} +1 -1
  39. package/dist/client/assets/{auth-catchall-D3VD9fSQ.js → auth-catchall-BIHVmOkE.js} +1 -1
  40. package/dist/client/assets/{avatar-hGKwXmmo.js → avatar-wH2f-Qw0.js} +1 -1
  41. package/dist/client/assets/{badge-COYJ-Pmf.js → badge-D4Y_9VrJ.js} +1 -1
  42. package/dist/client/assets/{binder-Qfx9JiTV.js → binder-L7_kPjYG.js} +1 -1
  43. package/dist/client/assets/{button-C27O1Tep.js → button-CeWJVmxi.js} +1 -1
  44. package/dist/client/assets/{card-Bh-0IVmq.js → card-tqt6y22p.js} +1 -1
  45. package/dist/client/assets/{checkbox-ByIz1hp1.js → checkbox-CWMPdNbo.js} +1 -1
  46. package/dist/client/assets/{circle-alert-Bcrtrele.js → circle-alert-CaxjZuUU.js} +1 -1
  47. package/dist/client/assets/collection-detail-DarP2Pkz.js +26 -0
  48. package/dist/client/assets/{collection-display-button-C5guuNpQ.js → collection-display-button-ORK43lCu.js} +1 -1
  49. package/dist/client/assets/{collection-header-DuFFC04Y.js → collection-header-BDNwcI63.js} +1 -1
  50. package/dist/client/assets/{collection-page-CvjkGAp9.js → collection-page-B2TNRQ5C.js} +1 -1
  51. package/dist/client/assets/{collection-search-cE-wVILm.js → collection-search-DQW4Qa5C.js} +1 -1
  52. package/dist/client/assets/{collection-tab-DtYAS3be.js → collection-tab-DW5J5Rcf.js} +1 -1
  53. package/dist/client/assets/{collection-table-wrapper-0Bo8TIAS.js → collection-table-wrapper-Ca2ezslr.js} +1 -1
  54. package/dist/client/assets/{connect-DsZ06Bb_.js → connect-B12cYumb.js} +1 -1
  55. package/dist/client/assets/{connection-card-BliQqhzM.js → connection-card-QktsDhqd.js} +1 -1
  56. package/dist/client/assets/{connection-detail-BgFKGBjf.js → connection-detail-Cv5HwaXT.js} +1 -1
  57. package/dist/client/assets/{connections-DN_d5sPG.js → connections-CEGMH6fz.js} +1 -1
  58. package/dist/client/assets/{constants-BhXVXoda.js → constants-Du17bl3K.js} +1 -1
  59. package/dist/client/assets/constants-rgG8x45G.js +1 -0
  60. package/dist/client/assets/{create-organization-dialog-DyGXl4j0.js → create-organization-dialog-CQUds5Hp.js} +1 -1
  61. package/dist/client/assets/{dialog-2RChHFVc.js → dialog-BEhB8Mws.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-CvjQt0JX.js → dropdown-menu-Bgaw3jHI.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-D3laiYgI.js → dynamic-plugin-layout-CYq60s3g.js} +1 -1
  64. package/dist/client/assets/{empty-state-BDPhhANS.js → empty-state-Bela0y7T.js} +1 -1
  65. package/dist/client/assets/{empty-state-Cu78wcTh.js → empty-state-C0R1ToKF.js} +1 -1
  66. package/dist/client/assets/{env-vars-editor-X_CtF2mI.js → env-vars-editor-D_jOqWmd.js} +1 -1
  67. package/dist/client/assets/{error-boundary-CGthXXIx.js → error-boundary-1R8uSsZM.js} +1 -1
  68. package/dist/client/assets/{estree-BOE5AzoZ.js → estree-CwOGYdhi.js} +2 -2
  69. package/dist/client/assets/{extract-connection-data-pGIt-HCV.js → extract-connection-data-Bv7ghiDF.js} +1 -1
  70. package/dist/client/assets/{file-browser-BEObwBCu.js → file-browser-CjIUdcEX.js} +2 -2
  71. package/dist/client/assets/{form-A9uXvCEC.js → form-CDk0fLCK.js} +1 -1
  72. package/dist/client/assets/{grid-view-BxgPINem.js → grid-view-Dy6TkULq.js} +1 -1
  73. package/dist/client/assets/{home-B0HLf5WC.js → home-NKTkruJC.js} +1 -1
  74. package/dist/client/assets/{index-BFTvKmE8.js → index-BEaSsxB6.js} +3 -3
  75. package/dist/client/assets/index-BTzmiRzp.js +25 -0
  76. package/dist/client/assets/{index-DHeWc5sz.js → index-CwFvBHop.js} +1 -1
  77. package/dist/client/assets/{index-BdwaCz7c.js → index-DRfiwyin.js} +6 -6
  78. package/dist/client/assets/{index-VpvRFsKi.js → index-DlBcZu-y.js} +1 -1
  79. package/dist/client/assets/{index-7s6a8H7V.js → index-Dm8lADJH.js} +1 -1
  80. package/dist/client/assets/{infiniteQueryObserver-BpMFJQC9.js → infiniteQueryObserver-DI0WMuDl.js} +1 -1
  81. package/dist/client/assets/{input-B2fcjFgH.js → input-C0eVsZrm.js} +1 -1
  82. package/dist/client/assets/{layout-V0w1joLG.js → layout-_kEtsrFb.js} +1 -1
  83. package/dist/client/assets/{localstorage-keys-BoCVyY3G.js → localstorage-keys-Cb-sWVBy.js} +1 -1
  84. package/dist/client/assets/{login-CEUn-CbC.js → login-BeTnXzep.js} +1 -1
  85. package/dist/client/assets/mcp-oauth-7xW0lYuT.js +1 -0
  86. package/dist/client/assets/{mcp-server-card-CDNnOm93.js → mcp-server-card-CP0MWwrU.js} +1 -1
  87. package/dist/client/assets/{mcp-server-detail-DqETrep8.js → mcp-server-detail-VFFUDxKW.js} +2 -2
  88. package/dist/client/assets/{members--3-zQV-m.js → members-CTRnZOtM.js} +1 -1
  89. package/dist/client/assets/{monaco-editor-bUy3gNfD.js → monaco-editor-BCHkkucO.js} +4 -4
  90. package/dist/client/assets/{monitoring--Lt0OEis.js → monitoring-C-RM8__Q.js} +3 -3
  91. package/dist/client/assets/{oauth-callback-CWMI_jqz.js → oauth-callback-D5pH2BSl.js} +1 -1
  92. package/dist/client/assets/{page-BMc7AjMv.js → page-B0SdrhYD.js} +1 -1
  93. package/dist/client/assets/{page-DmJBsO35.js → page-DS-8WDNR.js} +1 -1
  94. package/dist/client/assets/{pin-to-sidebar-button-C_ntSSpu.js → pin-to-sidebar-button-Cw2UVVqF.js} +1 -1
  95. package/dist/client/assets/{plugin-empty-state-zpVHwWxb.js → plugin-empty-state-C5T69aEM.js} +1 -1
  96. package/dist/client/assets/{plugin-header-CiGDp9KW.js → plugin-header-DgUyzm12.js} +1 -1
  97. package/dist/client/assets/{plugins-Z7IP48vQ.js → plugins-CN67_g_0.js} +1 -1
  98. package/dist/client/assets/{popover-C8uYVooB.js → popover-CWlu6hny.js} +1 -1
  99. package/dist/client/assets/{registry-utils-CB5x8oYd.js → registry-utils-Cuywz7sh.js} +1 -1
  100. package/dist/client/assets/{resizable-DQZOCv1H.js → resizable-Bg3lxOZk.js} +1 -1
  101. package/dist/client/assets/{resource-tabs-CP0lLGDW.js → resource-tabs-BoK7I29_.js} +1 -1
  102. package/dist/client/assets/{select-BmzAyfSh.js → select-Cu2UwMck.js} +1 -1
  103. package/dist/client/assets/{settings-JDMz0Z4O.js → settings-Cdkdgnt-.js} +1 -1
  104. package/dist/client/assets/{shell-layout-Tl_6ulPY.js → shell-layout-DsJh9fMf.js} +1 -1
  105. package/dist/client/assets/{spinner-DH0n918C.js → spinner-ac9qaaD0.js} +1 -1
  106. package/dist/client/assets/{store-invite-BCxxdn9a.js → store-invite-DrtXtvVt.js} +1 -1
  107. package/dist/client/assets/{switch-BPW4w7jh.js → switch-BI4ILBIx.js} +1 -1
  108. package/dist/client/assets/{textarea-Cs9upqtn.js → textarea-CISa01lD.js} +1 -1
  109. package/dist/client/assets/{tool-set-selector-ZwSI3WCu.js → tool-set-selector-Br0GnTpX.js} +1 -1
  110. package/dist/client/assets/{tools-list-D1w1Wvt6.js → tools-list-C1-h9sif.js} +1 -1
  111. package/dist/client/assets/{tooltip-M_zJvkrH.js → tooltip-b9KrGUQh.js} +1 -1
  112. package/dist/client/assets/{typewriter-title-Cloxvukg.js → typewriter-title-BWD8unfF.js} +1 -1
  113. package/dist/client/assets/{use-binding-DlyhBSt1.js → use-binding-CFkX7WWE.js} +1 -1
  114. package/dist/client/assets/{use-collections-D2rJigVT.js → use-collections-Bp1ohxBF.js} +1 -1
  115. package/dist/client/assets/{use-connection-Cs8I3Sqh.js → use-connection-OBpvJNdN.js} +1 -1
  116. package/dist/client/assets/{use-create-virtual-mcp-BYgqXltX.js → use-create-virtual-mcp-BU9thDH2.js} +1 -1
  117. package/dist/client/assets/{use-list-state-Cuf87gC8.js → use-list-state-DgPvNuS6.js} +1 -1
  118. package/dist/client/assets/{use-mcp-prompts-BFYoJVx6.js → use-mcp-prompts-CBzjj8Tg.js} +1 -1
  119. package/dist/client/assets/{use-members-C6mz3rh9.js → use-members-vexUxHO1.js} +1 -1
  120. package/dist/client/assets/{use-mobile-B6xU0L_K.js → use-mobile-RBfpNDKE.js} +1 -1
  121. package/dist/client/assets/{use-organization-settings-B5ysVx5V.js → use-organization-settings-CdyBZZsk.js} +1 -1
  122. package/dist/client/assets/{use-virtual-mcp-D3TmehE_.js → use-virtual-mcp-DEj7YNqY.js} +1 -1
  123. package/dist/client/assets/useInfiniteQuery-Ci0qviFS.js +1 -0
  124. package/dist/client/assets/{useMutation-DwH4Ggns.js → useMutation-7RHZ_A0u.js} +1 -1
  125. package/dist/client/assets/useQuery-D7d4NSI6.js +1 -0
  126. package/dist/client/assets/{view-mode-toggle-CI36GSoa.js → view-mode-toggle-DXwbKZcL.js} +1 -1
  127. package/dist/client/assets/{workflow-BR3adw-D.js → workflow-DLm7eHxz.js} +1 -1
  128. package/dist/client/index.html +1 -1
  129. package/package.json +1 -1
  130. package/dist/client/assets/collection-detail-Bw_JnEEW.js +0 -26
  131. package/dist/client/assets/constants-DK8mJXHI.js +0 -1
  132. package/dist/client/assets/index-DdXwvhtT.js +0 -25
  133. package/dist/client/assets/mcp-oauth-ZRHNetS-.js +0 -1
  134. package/dist/client/assets/useInfiniteQuery-C8FPbzAp.js +0 -1
  135. package/dist/client/assets/useQuery-DttwUpIb.js +0 -1
@@ -1 +1 @@
1
- import{aS as K,aW as C,aT as V,a$ as z,a1 as _,Y as W,b0 as X,b1 as Y,r as h,b2 as $,b3 as J,b4 as Z,aX as ee,b5 as k,b6 as P,b7 as se,b8 as te,b9 as re,ah as oe,j as m,ba as ne,al as g,ak as O,bb as ae,am as w,bc as A,ao as ie,at as Q,aA as ue,aB as ce}from"./index-BdwaCz7c.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);this.#u=o,o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);a.forEach(u=>{$(u),J(u,n)}),Z(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const p=l.some((u,f)=>k(a[f],u))?l.flatMap((u,f)=>{const y=a[f];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const R=l.find((u,f)=>{const y=a[f];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,G]=Q(S),[pe,fe]=he(S),M=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),p=O(s,f=>v(f)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:p,onClick:w(r.onClick,f=>{e||l?.(),u&&(R.current=f.isPropagationStopped(),R.current||f.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});M.displayName=S;var j="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(j,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&p){const R=new Event("click",{bubbles:o});p.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=Q(E,[A,G]),L=A(),B=G(),[me,ye]=ve(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,p=L(t),R=re(b),[u,f]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:f,children:m.jsx(ne,{asChild:!0,...p,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,...v,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(F,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const p=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});H.displayName=ge;var we=T,Oe=U,Se=H;export{Oe as I,we as R,Se as a,Ce as u};
1
+ import{aS as K,aW as C,aT as V,a$ as z,a1 as _,Y as W,b0 as X,b1 as Y,r as h,b2 as $,b3 as J,b4 as Z,aX as ee,b5 as k,b6 as P,b7 as se,b8 as te,b9 as re,ah as oe,j as m,ba as ne,al as g,ak as O,bb as ae,am as w,bc as A,ao as ie,at as Q,aA as ue,aB as ce}from"./index-DRfiwyin.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);this.#u=o,o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);a.forEach(u=>{$(u),J(u,n)}),Z(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const p=l.some((u,f)=>k(a[f],u))?l.flatMap((u,f)=>{const y=a[f];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const R=l.find((u,f)=>{const y=a[f];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,G]=Q(S),[pe,fe]=he(S),M=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),p=O(s,f=>v(f)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:p,onClick:w(r.onClick,f=>{e||l?.(),u&&(R.current=f.isPropagationStopped(),R.current||f.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});M.displayName=S;var j="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(j,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&p){const R=new Event("click",{bubbles:o});p.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=Q(E,[A,G]),L=A(),B=G(),[me,ye]=ve(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,p=L(t),R=re(b),[u,f]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:f,children:m.jsx(ne,{asChild:!0,...p,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,...v,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(F,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const p=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});H.displayName=ge;var we=T,Oe=U,Se=H;export{Oe as I,we as R,Se as a,Ce as u};