@decocms/mesh 2.19.0 → 2.20.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 (137) hide show
  1. package/dist/client/assets/{AlertCircle-DZfqNByx.js → AlertCircle-CkNvGXW2.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-Cd6RM4A6.js → ArrowLeft-BsUDOBX0.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-VMKONnWJ.js → ArrowUp-Xq_0RBx_.js} +1 -1
  4. package/dist/client/assets/{Check-Clnl6VO2.js → Check-DijrPXQx.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-CUCzTkUk.js → ChevronDown-DASi-DMo.js} +1 -1
  6. package/dist/client/assets/{Code01-BAik7hF-.js → Code01-C0ZFF6Hl.js} +1 -1
  7. package/dist/client/assets/{Copy01-CCfh45Hm.js → Copy01-BQZg7H8u.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-H1CDe03p.js → DotsHorizontal-CjU9uXdh.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-CubHWPM8.js → DotsVertical-D6TZm5RT.js} +1 -1
  10. package/dist/client/assets/{Download01-DUxaWCdv.js → Download01-BTR8eSV6.js} +1 -1
  11. package/dist/client/assets/{Edit01-tXex8wx0.js → Edit01-BsdLQ-QO.js} +1 -1
  12. package/dist/client/assets/{File06-1GHbOIr4.js → File06-Bm9rDm48.js} +1 -1
  13. package/dist/client/assets/{FilterLines-Ttp2swRG.js → FilterLines-Dg_ubOas.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-BkcMu9OY.js → FlipBackward-BZkXBjUF.js} +1 -1
  15. package/dist/client/assets/{GitBranch01-V6D4YBhB.js → GitBranch01-DYs19mSG.js} +1 -1
  16. package/dist/client/assets/{Grid01-Bf8eAyhK.js → Grid01-CTb93Z2I.js} +1 -1
  17. package/dist/client/assets/{Home02-8q2bbK8n.js → Home02-CAgSUdC-.js} +1 -1
  18. package/dist/client/assets/{Image01-Ba0mxAoN.js → Image01-CUinB3ac.js} +1 -1
  19. package/dist/client/assets/{Inbox01-BvYPvM_p.js → Inbox01-tMW4EgP4.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-DKA0-FHH.js → InfoCircle-DqeM4n2r.js} +1 -1
  21. package/dist/client/assets/{Key01-CrI4HON6.js → Key01-BDVEoltU.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CqAE-za3.js → LinkExternal01-C2ZOZHgx.js} +1 -1
  23. package/dist/client/assets/{List-C6tpn114.js → List-jMJevXfS.js} +1 -1
  24. package/dist/client/assets/{Loading01-wy6i08TR.js → Loading01-6JGza9Vp.js} +1 -1
  25. package/dist/client/assets/{Lock01-CGlDIBQ9.js → Lock01-DAc7yIAH.js} +1 -1
  26. package/dist/client/assets/{Play-BvhASZjZ.js → Play-BWxFDrEk.js} +1 -1
  27. package/dist/client/assets/{Plus-DaMIylfN.js → Plus-Dcgso5EP.js} +1 -1
  28. package/dist/client/assets/{SearchMd-DsK25qy7.js → SearchMd-CbnCIalV.js} +1 -1
  29. package/dist/client/assets/{Terminal-cal0VHQd.js → Terminal-DNtUg1U7.js} +1 -1
  30. package/dist/client/assets/{Trash01-pB5oOXYU.js → Trash01-CzA8mxf_.js} +1 -1
  31. package/dist/client/assets/{Upload01-BRGUFGKZ.js → Upload01-BPJ4Vq2H.js} +1 -1
  32. package/dist/client/assets/{X-Bq7VzczH.js → X-C7-BOCtk.js} +1 -1
  33. package/dist/client/assets/{XClose-zOphE63W.js → XClose-COetRF8H.js} +1 -1
  34. package/dist/client/assets/{alert-dialog-BBkPKiLO.js → alert-dialog-Mcf5ObRp.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-D7-AwG4p.js → auth-catchall-JCvomRO1.js} +1 -1
  36. package/dist/client/assets/{avatar-CumXES9B.js → avatar-D0pQKePK.js} +1 -1
  37. package/dist/client/assets/{badge-tnyrO2LA.js → badge-9bzwrgbk.js} +1 -1
  38. package/dist/client/assets/{binder-BxHiGQ64.js → binder-B4r3FJOG.js} +1 -1
  39. package/dist/client/assets/{button-BQMZIX_4.js → button-C_Xg9B1B.js} +1 -1
  40. package/dist/client/assets/{card-B-rrjyBF.js → card-BXLd4InC.js} +1 -1
  41. package/dist/client/assets/{checkbox-CJvAgYlu.js → checkbox-z9w2qryt.js} +1 -1
  42. package/dist/client/assets/{collection-detail-w6psdBlt.js → collection-detail-zSSQWfP2.js} +1 -1
  43. package/dist/client/assets/{collection-display-button-Bi_NXbuN.js → collection-display-button-DNzo_eaI.js} +1 -1
  44. package/dist/client/assets/{collection-header-BfNxri-N.js → collection-header-DMI-enxo.js} +1 -1
  45. package/dist/client/assets/{collection-page-DJtrTRMH.js → collection-page-CPVm36im.js} +1 -1
  46. package/dist/client/assets/{collection-search-9baWd84b.js → collection-search-NPXhv3P8.js} +1 -1
  47. package/dist/client/assets/collection-tab-DoDfK_be.js +1 -0
  48. package/dist/client/assets/{collection-table-wrapper-Cu-yqUsH.js → collection-table-wrapper-CH0cDKjW.js} +1 -1
  49. package/dist/client/assets/{connection-BdWKvn2K.js → connection-DoXpv3Ov.js} +1 -1
  50. package/dist/client/assets/{connection-card-CwhA62aK.js → connection-card-zeRxy9uc.js} +1 -1
  51. package/dist/client/assets/{connection-detail-BvvvvXz6.js → connection-detail-vV4L4jYp.js} +1 -1
  52. package/dist/client/assets/{connections-CfRRCGSZ.js → connections-DNpwgzUU.js} +1 -1
  53. package/dist/client/assets/constants-CBp9PjFO.js +1 -0
  54. package/dist/client/assets/{create-organization-dialog-gxAB4wwP.js → create-organization-dialog-Ro3igzlR.js} +1 -1
  55. package/dist/client/assets/{dialog-BOTxth8M.js → dialog-C9Agm5JE.js} +1 -1
  56. package/dist/client/assets/{dropdown-menu-Cwg_0qoi.js → dropdown-menu-fQ8f1M5d.js} +1 -1
  57. package/dist/client/assets/{dynamic-plugin-layout-DcLqC1O8.js → dynamic-plugin-layout-B3cv12GM.js} +1 -1
  58. package/dist/client/assets/{empty-state-DeORHrTg.js → empty-state-DBRX3hef.js} +1 -1
  59. package/dist/client/assets/{empty-state-2SJ3WxPr.js → empty-state-DdUozeuW.js} +1 -1
  60. package/dist/client/assets/{env-vars-editor-qkfhYptd.js → env-vars-editor-BXw6d8cC.js} +1 -1
  61. package/dist/client/assets/{error-boundary-KUKN2TxD.js → error-boundary-yHT4ni_0.js} +1 -1
  62. package/dist/client/assets/{extract-connection-data-37AfJqs-.js → extract-connection-data-PVjaut0P.js} +1 -1
  63. package/dist/client/assets/file-browser-Bh7hl3h8.js +2 -0
  64. package/dist/client/assets/{form-o9xmUpnK.js → form-D_wQlmgT.js} +1 -1
  65. package/dist/client/assets/{gateway-detail-B6zUy6TE.js → gateway-detail-B6I6y-jz.js} +1 -1
  66. package/dist/client/assets/{gateways-fe-SAKln.js → gateways-B0QSXg4v.js} +1 -1
  67. package/dist/client/assets/grid-view-BsHjiotE.js +1 -0
  68. package/dist/client/assets/{home-OB-BKE3S.js → home-m3uBo7L5.js} +1 -1
  69. package/dist/client/assets/{index-BGlkGnRh.js → index-3IJwc3nu.js} +12 -12
  70. package/dist/client/assets/{index-DB3RU6w4.js → index-Cg8UjPnN.js} +1 -1
  71. package/dist/client/assets/{index-BdoGlqOh.js → index-DZBCLPmz.js} +2 -2
  72. package/dist/client/assets/{index-DuoIQX0P.js → index-DiisCGqz.js} +1 -1
  73. package/dist/client/assets/{index-nfXEOl8p.js → index-QjJpaT60.js} +9 -9
  74. package/dist/client/assets/{infiniteQueryObserver-B-zosqIG.js → infiniteQueryObserver-CB9iuYaY.js} +1 -1
  75. package/dist/client/assets/{input-B0JGK4qg.js → input-DrOaW48H.js} +1 -1
  76. package/dist/client/assets/{layout-LCGR_e4n.js → layout-B4oQiZN6.js} +1 -1
  77. package/dist/client/assets/{lazy-highlighter-7Ygumnp-.js → lazy-highlighter-CSmD3B45.js} +1 -1
  78. package/dist/client/assets/{localstorage-keys-DJgrMpsR.js → localstorage-keys-ColTY5EO.js} +1 -1
  79. package/dist/client/assets/{login-CPHiXmVM.js → login-BdRlUNll.js} +1 -1
  80. package/dist/client/assets/{mcp-oauth-DHBNZNZN.js → mcp-oauth-CcVuDlog.js} +1 -1
  81. package/dist/client/assets/{mcp-server-card-CCJD8rY5.js → mcp-server-card-BnclXini.js} +1 -1
  82. package/dist/client/assets/mcp-server-detail-DTSTQPDK.js +1 -0
  83. package/dist/client/assets/{members-BUKGWKo1.js → members-BAse2YpR.js} +1 -1
  84. package/dist/client/assets/{monaco-editor-2dgkKSmS.js → monaco-editor-BtLswDg1.js} +1 -1
  85. package/dist/client/assets/{monitoring-Co2ahvWI.js → monitoring-FELvrXqN.js} +11 -11
  86. package/dist/client/assets/{oauth-callback-DqMgYj7o.js → oauth-callback-sXSk4y6N.js} +1 -1
  87. package/dist/client/assets/page-IVcVoGr6.js +1 -0
  88. package/dist/client/assets/{page-CUhEXv2W.js → page-c25MW39x.js} +1 -1
  89. package/dist/client/assets/{pin-to-sidebar-button-BcuLv1ea.js → pin-to-sidebar-button-D7zfHxC-.js} +1 -1
  90. package/dist/client/assets/{plugin-empty-state-BMZ2lKdt.js → plugin-empty-state-DINK0udh.js} +1 -1
  91. package/dist/client/assets/{plugin-header-CzG6IJ7x.js → plugin-header-BaOkI6uW.js} +1 -1
  92. package/dist/client/assets/{plugins-DrfogMhA.js → plugins-DU28fvG7.js} +1 -1
  93. package/dist/client/assets/{popover-CXUBdgho.js → popover-DDq46px5.js} +1 -1
  94. package/dist/client/assets/{project-context-provider-DhgIBvJ2.js → project-context-provider-CwtkfEWe.js} +1 -1
  95. package/dist/client/assets/{registry-utils-C1MEHnjt.js → registry-utils-nz3H3-qh.js} +1 -1
  96. package/dist/client/assets/{resizable-CwvNlApq.js → resizable-ZYLqRZrr.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-BnWaqzvN.js → resource-tabs-Dv00g9SH.js} +1 -1
  98. package/dist/client/assets/{select--nDzC8in.js → select-Cgab7LNB.js} +1 -1
  99. package/dist/client/assets/{settings-18XrU-68.js → settings-CUngx_cw.js} +1 -1
  100. package/dist/client/assets/shell-layout-IdYGAQZJ.js +3 -0
  101. package/dist/client/assets/{spinner-BJxZd1VB.js → spinner-ISlo4YZH.js} +1 -1
  102. package/dist/client/assets/{switch-BFRma3Oi.js → switch-BDCe2nGJ.js} +1 -1
  103. package/dist/client/assets/{textarea-CZGp5M36.js → textarea-BL4bZEBo.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-D-ihTeCw.js → tool-set-selector-CWxawPKU.js} +1 -1
  105. package/dist/client/assets/{tools-list-DdaO5B-A.js → tools-list-BAdvjUaK.js} +1 -1
  106. package/dist/client/assets/{tooltip-DSjdME5j.js → tooltip-CpJ7mUzE.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-D3pHLziM.js → typewriter-title-vVGiDyZ3.js} +1 -1
  108. package/dist/client/assets/{use-binding-CdMfLY85.js → use-binding-DGnotkAI.js} +1 -1
  109. package/dist/client/assets/{use-collections-B_r4T3b1.js → use-collections-BmF5uRR6.js} +1 -1
  110. package/dist/client/assets/{use-connection-W2V2j8pE.js → use-connection-CD3KQhdl.js} +1 -1
  111. package/dist/client/assets/{use-connection-resources-_fz_82N5.js → use-connection-resources-Bk8Paqb0.js} +1 -1
  112. package/dist/client/assets/{use-create-gateway-DGaCqRhz.js → use-create-gateway-Buvj1BPg.js} +1 -1
  113. package/dist/client/assets/{use-gateway-CijYzCU9.js → use-gateway-HT97xIYl.js} +1 -1
  114. package/dist/client/assets/{use-gateway-system-prompt-CusPzWe3.js → use-gateway-system-prompt-DPiQIOlu.js} +1 -1
  115. package/dist/client/assets/{use-list-state-DNPGmD9A.js → use-list-state-DceT21J-.js} +1 -1
  116. package/dist/client/assets/{use-mcp-fzL3ILVj.js → use-mcp-C2xjgZVM.js} +1 -1
  117. package/dist/client/assets/{use-members-Cs5znkoZ.js → use-members-D-h9QOxK.js} +1 -1
  118. package/dist/client/assets/{use-mobile-DPzmQj9d.js → use-mobile-BH2x5CB1.js} +1 -1
  119. package/dist/client/assets/{use-organization-settings-sFF34W-p.js → use-organization-settings-BMsrsPvw.js} +1 -1
  120. package/dist/client/assets/{use-tool-call-CCdok443.js → use-tool-call-BmQnCqef.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-hrzJXDha.js +1 -0
  122. package/dist/client/assets/{useMutation-mOecCzvG.js → useMutation-DV6K6Nze.js} +1 -1
  123. package/dist/client/assets/useQuery-mZS4-X0F.js +1 -0
  124. package/dist/client/assets/{value-C7yMc_BN.js → value-BiYWDF0x.js} +1 -1
  125. package/dist/client/assets/{view-mode-toggle-DdRtk7o-.js → view-mode-toggle-DPk8_aIn.js} +1 -1
  126. package/dist/client/assets/{workflow-Ca7LNIxD.js → workflow-B_8Qc7GH.js} +1 -1
  127. package/dist/client/index.html +1 -1
  128. package/package.json +2 -2
  129. package/dist/client/assets/collection-tab-Ct4krCcB.js +0 -1
  130. package/dist/client/assets/constants-BoL9C76L.js +0 -1
  131. package/dist/client/assets/file-browser-D3uR2C9M.js +0 -2
  132. package/dist/client/assets/grid-view-vZ2Zpkzy.js +0 -1
  133. package/dist/client/assets/mcp-server-detail-B2BLpdBe.js +0 -1
  134. package/dist/client/assets/page-Xy2zuFaN.js +0 -1
  135. package/dist/client/assets/shell-layout-DPrrZeqr.js +0 -3
  136. package/dist/client/assets/useInfiniteQuery-Bx9UQHNH.js +0 -1
  137. package/dist/client/assets/useQuery-B_cnJjvx.js +0 -1
@@ -1 +1 @@
1
- import{b2 as K,b3 as C,b4 as V,b5 as z,b6 as _,x as W,b7 as X,b8 as Y,r as h,b9 as J,ba as Z,bb as $,bc as ee,bd as k,be as P,bf as se,bg as te,ab as A,a4 as re,aa as oe,j as m,a5 as Q,ad as ne,a6 as g,a3 as O,ac as ae,a8 as w,a7 as ie,aF as ue,aE as ce}from"./index-BdoGlqOh.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);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.#u=o,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 p=o.defaultQueryOptions(u);return p._optimisticResults=e?"isRestoring":"optimistic",p}),[r,o,e]);a.forEach(u=>{J(u);const p=o.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(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 f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];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(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: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),f=O(s,p=>v(p)),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:f,onClick:w(r.onClick,p=>{e||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.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,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&f){const R=new Event("click",{bubbles:o});f.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),F=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,f=L(t),R=re(b),[u,p]=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: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,...v,ref:s})})})});F.displayName=E;var T="RadioGroupItem",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(T,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 f=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.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(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});H.displayName=T;var ge="RadioGroupIndicator",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});U.displayName=ge;var we=F,Oe=H,Se=U;export{Oe as I,we as R,Se as a,Ce as u};
1
+ import{b2 as K,b3 as C,b4 as V,b5 as z,b6 as _,x as W,b7 as X,b8 as Y,r as h,b9 as J,ba as Z,bb as $,bc as ee,bd as k,be as P,bf as se,bg as te,ab as A,a4 as re,aa as oe,j as m,a5 as Q,ad as ne,a6 as g,a3 as O,ac as ae,a8 as w,a7 as ie,aF as ue,aE as ce}from"./index-DZBCLPmz.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);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.#u=o,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 p=o.defaultQueryOptions(u);return p._optimisticResults=e?"isRestoring":"optimistic",p}),[r,o,e]);a.forEach(u=>{J(u);const p=o.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(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 f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];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(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: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),f=O(s,p=>v(p)),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:f,onClick:w(r.onClick,p=>{e||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.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,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&f){const R=new Event("click",{bubbles:o});f.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),F=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,f=L(t),R=re(b),[u,p]=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: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,...v,ref:s})})})});F.displayName=E;var T="RadioGroupItem",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(T,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 f=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.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(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});H.displayName=T;var ge="RadioGroupIndicator",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});U.displayName=ge;var we=F,Oe=H,Se=U;export{Oe as I,we as R,Se as a,Ce as u};