@decocms/mesh 2.18.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 (141) hide show
  1. package/dist/client/assets/{AlertCircle-CahACZDg.js → AlertCircle-CkNvGXW2.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DlLOWSTj.js → ArrowLeft-BsUDOBX0.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-Ck0taqJi.js → ArrowUp-Xq_0RBx_.js} +1 -1
  4. package/dist/client/assets/{Check-Cjgi2ZiG.js → Check-DijrPXQx.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BuVzyKHq.js → ChevronDown-DASi-DMo.js} +1 -1
  6. package/dist/client/assets/{Code01-XpAoNs3W.js → Code01-C0ZFF6Hl.js} +1 -1
  7. package/dist/client/assets/{Copy01-De4SwxDv.js → Copy01-BQZg7H8u.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-D-Bv2U6B.js → DotsHorizontal-CjU9uXdh.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-BhTwPxq7.js → DotsVertical-D6TZm5RT.js} +1 -1
  10. package/dist/client/assets/{Download01-DhkFfGKV.js → Download01-BTR8eSV6.js} +1 -1
  11. package/dist/client/assets/{Edit01-DsRHb45T.js → Edit01-BsdLQ-QO.js} +1 -1
  12. package/dist/client/assets/{File06-BiIPMtEV.js → File06-Bm9rDm48.js} +1 -1
  13. package/dist/client/assets/{FilterLines-C_UJwG_t.js → FilterLines-Dg_ubOas.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-CQnTJKeB.js → FlipBackward-BZkXBjUF.js} +1 -1
  15. package/dist/client/assets/{GitBranch01-ClS9Bk6n.js → GitBranch01-DYs19mSG.js} +1 -1
  16. package/dist/client/assets/{Grid01-CRALWbj6.js → Grid01-CTb93Z2I.js} +1 -1
  17. package/dist/client/assets/{Home02-ofwnyeoV.js → Home02-CAgSUdC-.js} +1 -1
  18. package/dist/client/assets/{Image01-Cb4gQMH4.js → Image01-CUinB3ac.js} +1 -1
  19. package/dist/client/assets/{Inbox01-CKGdnZFH.js → Inbox01-tMW4EgP4.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-_4UsKVMw.js → InfoCircle-DqeM4n2r.js} +1 -1
  21. package/dist/client/assets/{Key01-BFJBGJng.js → Key01-BDVEoltU.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-C1dAUI0b.js → LinkExternal01-C2ZOZHgx.js} +1 -1
  23. package/dist/client/assets/{List-DOmOO2Cw.js → List-jMJevXfS.js} +1 -1
  24. package/dist/client/assets/{Loading01-JwelopeC.js → Loading01-6JGza9Vp.js} +1 -1
  25. package/dist/client/assets/{Lock01-B7TIX2sZ.js → Lock01-DAc7yIAH.js} +1 -1
  26. package/dist/client/assets/{Play-CMKLF_6n.js → Play-BWxFDrEk.js} +1 -1
  27. package/dist/client/assets/{Plus-Df2M6Ns2.js → Plus-Dcgso5EP.js} +1 -1
  28. package/dist/client/assets/{SearchMd-Cgfgcbdz.js → SearchMd-CbnCIalV.js} +1 -1
  29. package/dist/client/assets/{Terminal-C8LHfiOW.js → Terminal-DNtUg1U7.js} +1 -1
  30. package/dist/client/assets/{Trash01-KvZ0cVo9.js → Trash01-CzA8mxf_.js} +1 -1
  31. package/dist/client/assets/{Upload01-TiwmYxO-.js → Upload01-BPJ4Vq2H.js} +1 -1
  32. package/dist/client/assets/{X-DhyaYbLb.js → X-C7-BOCtk.js} +1 -1
  33. package/dist/client/assets/{XClose-2bShEltc.js → XClose-COetRF8H.js} +1 -1
  34. package/dist/client/assets/{alert-dialog-gZhceV_v.js → alert-dialog-Mcf5ObRp.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-Dz8qCpUP.js → auth-catchall-JCvomRO1.js} +1 -1
  36. package/dist/client/assets/{avatar-d8M8JpvZ.js → avatar-D0pQKePK.js} +1 -1
  37. package/dist/client/assets/{badge-CKe-ib_i.js → badge-9bzwrgbk.js} +1 -1
  38. package/dist/client/assets/{binder-iKe3ndXq.js → binder-B4r3FJOG.js} +1 -1
  39. package/dist/client/assets/{button-DXl1hVqx.js → button-C_Xg9B1B.js} +1 -1
  40. package/dist/client/assets/{card-D0GcpRPY.js → card-BXLd4InC.js} +1 -1
  41. package/dist/client/assets/{checkbox-D1tHbcIN.js → checkbox-z9w2qryt.js} +1 -1
  42. package/dist/client/assets/{collection-detail-BQkjgYb7.js → collection-detail-zSSQWfP2.js} +1 -1
  43. package/dist/client/assets/{collection-display-button-B_KC-ent.js → collection-display-button-DNzo_eaI.js} +1 -1
  44. package/dist/client/assets/{collection-header-BA9HTLmg.js → collection-header-DMI-enxo.js} +1 -1
  45. package/dist/client/assets/{collection-page-CDkTC45g.js → collection-page-CPVm36im.js} +1 -1
  46. package/dist/client/assets/{collection-search-pUdl1eNx.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-wARoPZXo.js → collection-table-wrapper-CH0cDKjW.js} +1 -1
  49. package/dist/client/assets/{connection-ByVJuREK.js → connection-DoXpv3Ov.js} +1 -1
  50. package/dist/client/assets/{connection-card-DjK0GZ2u.js → connection-card-zeRxy9uc.js} +1 -1
  51. package/dist/client/assets/{connection-detail-BGizcg4Z.js → connection-detail-vV4L4jYp.js} +1 -1
  52. package/dist/client/assets/{connections-B3vaIw3-.js → connections-DNpwgzUU.js} +1 -1
  53. package/dist/client/assets/constants-CBp9PjFO.js +1 -0
  54. package/dist/client/assets/{create-organization-dialog-DKwU0dfN.js → create-organization-dialog-Ro3igzlR.js} +1 -1
  55. package/dist/client/assets/{dialog-1B3YWWMu.js → dialog-C9Agm5JE.js} +1 -1
  56. package/dist/client/assets/{dropdown-menu-Hp4qYTud.js → dropdown-menu-fQ8f1M5d.js} +1 -1
  57. package/dist/client/assets/{dynamic-plugin-layout-j2gEmQEr.js → dynamic-plugin-layout-B3cv12GM.js} +1 -1
  58. package/dist/client/assets/{empty-state-C7Gr5Tg2.js → empty-state-DBRX3hef.js} +1 -1
  59. package/dist/client/assets/{empty-state-D-JjObLi.js → empty-state-DdUozeuW.js} +1 -1
  60. package/dist/client/assets/{env-vars-editor-D4XTsyk0.js → env-vars-editor-BXw6d8cC.js} +1 -1
  61. package/dist/client/assets/{error-boundary-rr4tK3fB.js → error-boundary-yHT4ni_0.js} +1 -1
  62. package/dist/client/assets/{extract-connection-data-37AfzoCx.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-BQupN7IV.js → form-D_wQlmgT.js} +1 -1
  65. package/dist/client/assets/gateway-detail-B6I6y-jz.js +1 -0
  66. package/dist/client/assets/{gateways-jpQl136Z.js → gateways-B0QSXg4v.js} +1 -1
  67. package/dist/client/assets/grid-view-BsHjiotE.js +1 -0
  68. package/dist/client/assets/{home-9vMYPTYi.js → home-m3uBo7L5.js} +1 -1
  69. package/dist/client/assets/{index-D0CzZUCs.js → index-3IJwc3nu.js} +12 -12
  70. package/dist/client/assets/{index-Bpy9plQL.js → index-Cg8UjPnN.js} +1 -1
  71. package/dist/client/assets/{index-DEuqpeVv.js → index-DZBCLPmz.js} +2 -2
  72. package/dist/client/assets/{index-u_K3efbu.js → index-DiisCGqz.js} +1 -1
  73. package/dist/client/assets/{index-DVolwMvn.js → index-QjJpaT60.js} +31 -31
  74. package/dist/client/assets/{infiniteQueryObserver-BXdaScti.js → infiniteQueryObserver-CB9iuYaY.js} +1 -1
  75. package/dist/client/assets/{input-CqqzkfyF.js → input-DrOaW48H.js} +1 -1
  76. package/dist/client/assets/{layout-D7T4rJzl.js → layout-B4oQiZN6.js} +1 -1
  77. package/dist/client/assets/{lazy-highlighter-U-fd28FU.js → lazy-highlighter-CSmD3B45.js} +1 -1
  78. package/dist/client/assets/{localstorage-keys-kemGZMIp.js → localstorage-keys-ColTY5EO.js} +1 -1
  79. package/dist/client/assets/{login-AsctHrUh.js → login-BdRlUNll.js} +1 -1
  80. package/dist/client/assets/{mcp-oauth-DqZqwRXe.js → mcp-oauth-CcVuDlog.js} +1 -1
  81. package/dist/client/assets/{mcp-server-card-DfoQ5M8z.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-eia2aN0I.js → members-BAse2YpR.js} +1 -1
  84. package/dist/client/assets/{monaco-editor-rl0nEzOU.js → monaco-editor-BtLswDg1.js} +1 -1
  85. package/dist/client/assets/{monitoring-DWEGkU9y.js → monitoring-FELvrXqN.js} +11 -11
  86. package/dist/client/assets/{oauth-callback-BFr0fBNT.js → oauth-callback-sXSk4y6N.js} +1 -1
  87. package/dist/client/assets/page-IVcVoGr6.js +1 -0
  88. package/dist/client/assets/{page-GoE2bJQh.js → page-c25MW39x.js} +1 -1
  89. package/dist/client/assets/{pin-to-sidebar-button-CrzVxc9I.js → pin-to-sidebar-button-D7zfHxC-.js} +1 -1
  90. package/dist/client/assets/{plugin-empty-state-CvQbqnfg.js → plugin-empty-state-DINK0udh.js} +1 -1
  91. package/dist/client/assets/{plugin-header-BaWUIpLx.js → plugin-header-BaOkI6uW.js} +1 -1
  92. package/dist/client/assets/{plugins-Q7uqmYFh.js → plugins-DU28fvG7.js} +1 -1
  93. package/dist/client/assets/{popover-BcOo6EXw.js → popover-DDq46px5.js} +1 -1
  94. package/dist/client/assets/{project-context-provider-Dn1-l4h2.js → project-context-provider-CwtkfEWe.js} +1 -1
  95. package/dist/client/assets/{registry-utils-85b65tFI.js → registry-utils-nz3H3-qh.js} +1 -1
  96. package/dist/client/assets/{resizable-DkFmgcsj.js → resizable-ZYLqRZrr.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-DkDSMlFB.js → resource-tabs-Dv00g9SH.js} +1 -1
  98. package/dist/client/assets/{select-Bv7J3zlQ.js → select-Cgab7LNB.js} +1 -1
  99. package/dist/client/assets/{settings-BK8QvMDL.js → settings-CUngx_cw.js} +1 -1
  100. package/dist/client/assets/shell-layout-IdYGAQZJ.js +3 -0
  101. package/dist/client/assets/{spinner-D0hdWfev.js → spinner-ISlo4YZH.js} +1 -1
  102. package/dist/client/assets/{switch-ugX7u7WU.js → switch-BDCe2nGJ.js} +1 -1
  103. package/dist/client/assets/{textarea-BUrXtpl5.js → textarea-BL4bZEBo.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-a1uFioE0.js → tool-set-selector-CWxawPKU.js} +1 -1
  105. package/dist/client/assets/{tools-list-DpFBj-bw.js → tools-list-BAdvjUaK.js} +1 -1
  106. package/dist/client/assets/{tooltip-vUrxHIt0.js → tooltip-CpJ7mUzE.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-7_SusDya.js → typewriter-title-vVGiDyZ3.js} +1 -1
  108. package/dist/client/assets/{use-binding-B0VMz_Ex.js → use-binding-DGnotkAI.js} +1 -1
  109. package/dist/client/assets/{use-collections-Cflasxiq.js → use-collections-BmF5uRR6.js} +1 -1
  110. package/dist/client/assets/{use-connection-DhRUkVvI.js → use-connection-CD3KQhdl.js} +1 -1
  111. package/dist/client/assets/{use-connection-resources-C-wyp48q.js → use-connection-resources-Bk8Paqb0.js} +1 -1
  112. package/dist/client/assets/{use-create-gateway-DMkdPgfy.js → use-create-gateway-Buvj1BPg.js} +1 -1
  113. package/dist/client/assets/{use-gateway-D5VVN1xE.js → use-gateway-HT97xIYl.js} +1 -1
  114. package/dist/client/assets/use-gateway-system-prompt-DPiQIOlu.js +1 -0
  115. package/dist/client/assets/{use-list-state-BYREPRxy.js → use-list-state-DceT21J-.js} +1 -1
  116. package/dist/client/assets/{use-mcp-CZeMxRgK.js → use-mcp-C2xjgZVM.js} +1 -1
  117. package/dist/client/assets/{use-members-Bi0eIvBO.js → use-members-D-h9QOxK.js} +1 -1
  118. package/dist/client/assets/{use-mobile-CI2w7svc.js → use-mobile-BH2x5CB1.js} +1 -1
  119. package/dist/client/assets/{use-organization-settings-D0kNSjbq.js → use-organization-settings-BMsrsPvw.js} +1 -1
  120. package/dist/client/assets/{use-tool-call-CoI4ZCZe.js → use-tool-call-BmQnCqef.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-hrzJXDha.js +1 -0
  122. package/dist/client/assets/{useMutation-xcmVYLP7.js → useMutation-DV6K6Nze.js} +1 -1
  123. package/dist/client/assets/useQuery-mZS4-X0F.js +1 -0
  124. package/dist/client/assets/{value-C7rJ457O.js → value-BiYWDF0x.js} +1 -1
  125. package/dist/client/assets/{view-mode-toggle-CTWk8Dkt.js → view-mode-toggle-DPk8_aIn.js} +1 -1
  126. package/dist/client/assets/{workflow-ClKgdB2v.js → workflow-B_8Qc7GH.js} +1 -1
  127. package/dist/client/index.html +1 -1
  128. package/dist/server/cli.js +11 -11
  129. package/dist/server/server.js +11 -11
  130. package/package.json +2 -2
  131. package/dist/client/assets/collection-tab-BofyxU3Y.js +0 -1
  132. package/dist/client/assets/constants-DQVDVC-J.js +0 -1
  133. package/dist/client/assets/file-browser-BECnO7FM.js +0 -2
  134. package/dist/client/assets/gateway-detail-B1f7bt6s.js +0 -1
  135. package/dist/client/assets/grid-view-BwLKimb0.js +0 -1
  136. package/dist/client/assets/mcp-server-detail-GLsULv7B.js +0 -1
  137. package/dist/client/assets/page-BeG_Zpat.js +0 -1
  138. package/dist/client/assets/shell-layout-DImgzYtx.js +0 -3
  139. package/dist/client/assets/use-gateway-system-prompt-B3fSaA6r.js +0 -1
  140. package/dist/client/assets/useInfiniteQuery-ckN_t7ea.js +0 -1
  141. package/dist/client/assets/useQuery-BKyLWvSZ.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-DEuqpeVv.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};