@decocms/mesh 2.38.2 → 2.38.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/client/assets/{AlertCircle-z3xwiUwg.js → AlertCircle-DwLOjdfH.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-BkoJglZy.js → ArrowLeft-kGx3Y-zX.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-BAMBJKzk.js → ArrowUp-DWcXOBpz.js} +1 -1
  4. package/dist/client/assets/{Check-BK9-0hKa.js → Check-B2vj72U5.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-PIP2u0bO.js → ChevronDown-Vb06lc-B.js} +1 -1
  6. package/dist/client/assets/{Code01-Bur40qHc.js → Code01-DwHTWnoR.js} +1 -1
  7. package/dist/client/assets/{Copy01-BOhF0ZEB.js → Copy01-BAk05E9H.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-BTAUjBs1.js → CpuChip02-DbAeAdPe.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-DxGrUc9a.js → DotsHorizontal-Cj7CLHDn.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-D61roAg3.js → DotsVertical-XYYRNoTX.js} +1 -1
  11. package/dist/client/assets/{Download01-DH0bL3Nt.js → Download01-CHXxU49K.js} +1 -1
  12. package/dist/client/assets/{Edit01-DINJ246_.js → Edit01-B9xu7jSw.js} +1 -1
  13. package/dist/client/assets/{File06-DVkrNas0.js → File06-D7bjpxHc.js} +1 -1
  14. package/dist/client/assets/{FilterLines-so_Nzmiv.js → FilterLines-CIEdE4Wb.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-iQ8t51Yv.js → FlipBackward-CRoccaVQ.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-T4MUtqYK.js → GitBranch01-B_LsZRsF.js} +1 -1
  17. package/dist/client/assets/{Grid01-CN_8958k.js → Grid01-DvrY1gt1.js} +1 -1
  18. package/dist/client/assets/{Home02-DuEnlN2j.js → Home02-_JdnGU0Y.js} +1 -1
  19. package/dist/client/assets/{Image01-CAZIUcM5.js → Image01-WlrQGekP.js} +1 -1
  20. package/dist/client/assets/{Inbox01-CM3kHNUT.js → Inbox01-Cx7mk7qN.js} +1 -1
  21. package/dist/client/assets/{InfoCircle-yeMjcoma.js → InfoCircle-BV74k_Yn.js} +1 -1
  22. package/dist/client/assets/{Key01-9yBwokED.js → Key01-CRs4BGmx.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-DVQPzyFK.js → LinkExternal01-H-oJkxYN.js} +1 -1
  24. package/dist/client/assets/{List-BuWxjuK8.js → List-BCcNlZrf.js} +1 -1
  25. package/dist/client/assets/{Loading01-D1yLQLik.js → Loading01-Dul6ue0E.js} +1 -1
  26. package/dist/client/assets/{Lock01-RqyglEYd.js → Lock01-Cy1pPqT8.js} +1 -1
  27. package/dist/client/assets/{Play-DVdw4qV-.js → Play-BpLCryum.js} +1 -1
  28. package/dist/client/assets/{Plus-Je-soon7.js → Plus-BVDMzeyp.js} +1 -1
  29. package/dist/client/assets/{SearchMd-CbtolPap.js → SearchMd-jGEmiNrX.js} +1 -1
  30. package/dist/client/assets/{Terminal-DYGeKWvi.js → Terminal-CE84-sCv.js} +1 -1
  31. package/dist/client/assets/{Trash01-CZvA_s0Y.js → Trash01-B0ak1X_N.js} +1 -1
  32. package/dist/client/assets/{Upload01-DhaDMFFD.js → Upload01-C0kHDVw4.js} +1 -1
  33. package/dist/client/assets/{X-sxVQmAsr.js → X-BLWQxpEf.js} +1 -1
  34. package/dist/client/assets/{XClose-zzu-jidq.js → XClose-DB-yTUBg.js} +1 -1
  35. package/dist/client/assets/{agent-detail-BlRpinmR.js → agent-detail-DmNNNO27.js} +1 -1
  36. package/dist/client/assets/{agents-DknJreAQ.js → agents-Cc3M23qv.js} +1 -1
  37. package/dist/client/assets/{alert-dialog-CVkwkecf.js → alert-dialog-djFlPxmw.js} +1 -1
  38. package/dist/client/assets/{auth-catchall-w4I8mOfz.js → auth-catchall-BJHCOfwt.js} +1 -1
  39. package/dist/client/assets/{avatar-C9tVSVlv.js → avatar-B5p9MTms.js} +1 -1
  40. package/dist/client/assets/{badge-C7J4I2Hj.js → badge-BSYGnPtt.js} +1 -1
  41. package/dist/client/assets/{binder-CbjhFDGc.js → binder-DWCHeQZ9.js} +1 -1
  42. package/dist/client/assets/{button-CceSuFKi.js → button-AdEzXtPt.js} +1 -1
  43. package/dist/client/assets/{card-BGHb8OmC.js → card-CQNrgAR3.js} +1 -1
  44. package/dist/client/assets/{checkbox-Cu04V43g.js → checkbox-3cM8_JBb.js} +1 -1
  45. package/dist/client/assets/{collection-detail-D2oIsKq-.js → collection-detail-BOnOtOYD.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-Df_9WgFb.js → collection-display-button-DpjzbbIn.js} +1 -1
  47. package/dist/client/assets/{collection-header-COgMCOx8.js → collection-header-B4-DpfAL.js} +1 -1
  48. package/dist/client/assets/{collection-page-DVakSZpa.js → collection-page-b5lRP5ne.js} +1 -1
  49. package/dist/client/assets/{collection-search-Fe3W5Myr.js → collection-search-DqVEDOqS.js} +1 -1
  50. package/dist/client/assets/{collection-tab-_C4vj95J.js → collection-tab-BQhJW6AS.js} +1 -1
  51. package/dist/client/assets/{collection-table-wrapper-VkF3O5dC.js → collection-table-wrapper-B8ubC3Sh.js} +1 -1
  52. package/dist/client/assets/{connection-card-Bq9AH0T5.js → connection-card-C7f1dOrX.js} +1 -1
  53. package/dist/client/assets/{connection-detail-CbrkwDLO.js → connection-detail-RVxHc67u.js} +1 -1
  54. package/dist/client/assets/{connections-unSJ25xy.js → connections-Bv_34Usi.js} +1 -1
  55. package/dist/client/assets/{constants-DqnLzZpL.js → constants-BEKdbCo6.js} +1 -1
  56. package/dist/client/assets/constants-C88aG7V1.js +1 -0
  57. package/dist/client/assets/{create-organization-dialog-DCA75BPi.js → create-organization-dialog-BW4DOW5y.js} +1 -1
  58. package/dist/client/assets/{dialog-CL6M-Xmi.js → dialog-DLbo5T8N.js} +1 -1
  59. package/dist/client/assets/{dropdown-menu-BMu3zBVo.js → dropdown-menu-CM0mCcd3.js} +1 -1
  60. package/dist/client/assets/{dynamic-plugin-layout-CKzehx9R.js → dynamic-plugin-layout-DQFkQzWH.js} +1 -1
  61. package/dist/client/assets/{empty-state-BHdJzPJs.js → empty-state-BrUv9lsZ.js} +1 -1
  62. package/dist/client/assets/{empty-state-B0xeJKH5.js → empty-state-DZFeepnb.js} +1 -1
  63. package/dist/client/assets/{env-vars-editor-CtvDpSON.js → env-vars-editor-BAOHiLu2.js} +1 -1
  64. package/dist/client/assets/{error-boundary-vgLVbtql.js → error-boundary-DaCO9OCg.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-w2VKbBVM.js → extract-connection-data-C1X2zeqi.js} +1 -1
  66. package/dist/client/assets/{file-browser-C_o-XRN_.js → file-browser-DW6TJdZX.js} +2 -2
  67. package/dist/client/assets/{form-DWBp_92q.js → form-D8bvI4tc.js} +1 -1
  68. package/dist/client/assets/{grid-view-D4uG2rz_.js → grid-view-BLOYnzFT.js} +1 -1
  69. package/dist/client/assets/{home-tcH3yRYZ.js → home-DlKoJ54P.js} +1 -1
  70. package/dist/client/assets/{index-CQ6L3uZi.js → index-By7Mca_U.js} +1 -1
  71. package/dist/client/assets/{index-DimTMp-G.js → index-Ck_HNGGd.js} +2 -2
  72. package/dist/client/assets/{index-CUpy3pKS.js → index-CtrgR5Sj.js} +1 -1
  73. package/dist/client/assets/{index-D4QmV-sc.js → index-DSyGEqnv.js} +1 -1
  74. package/dist/client/assets/{index-D1MpJYf1.js → index-Dpe1Ly1c.js} +1 -1
  75. package/dist/client/assets/{index-BfBspZNA.js → index-I1CjKwfa.js} +1 -1
  76. package/dist/client/assets/{infiniteQueryObserver-DeWE7Mv6.js → infiniteQueryObserver-yBeVIl9y.js} +1 -1
  77. package/dist/client/assets/{input-BzZt5UMQ.js → input-BD07TV73.js} +1 -1
  78. package/dist/client/assets/{layout-DqvUpliw.js → layout-CtPQmm1R.js} +1 -1
  79. package/dist/client/assets/{localstorage-keys-Pb1bSOSH.js → localstorage-keys-bIhPsHqu.js} +1 -1
  80. package/dist/client/assets/{login-Bw3mNwou.js → login-DsME5Q78.js} +1 -1
  81. package/dist/client/assets/{mcp-oauth-DVTAVhIy.js → mcp-oauth-nsjatGUX.js} +1 -1
  82. package/dist/client/assets/{mcp-server-card-BOsrfsoy.js → mcp-server-card-Bhmbue9c.js} +1 -1
  83. package/dist/client/assets/{mcp-server-detail-DL4a0l-I.js → mcp-server-detail-B4am-5Te.js} +2 -2
  84. package/dist/client/assets/{members-CaWwLwBY.js → members-BB0T9TqV.js} +1 -1
  85. package/dist/client/assets/{monaco-editor-C3l8YLnM.js → monaco-editor-CP1tDtbL.js} +1 -1
  86. package/dist/client/assets/{monitoring-BXzU__Q2.js → monitoring-PT-sW85P.js} +2 -2
  87. package/dist/client/assets/{oauth-callback-C29sykPI.js → oauth-callback-B-DW0xRP.js} +1 -1
  88. package/dist/client/assets/{page-D9f3s0Zn.js → page-Cc8e_HoP.js} +1 -1
  89. package/dist/client/assets/{page-DFTluz6T.js → page-rhO8Ndm_.js} +2 -2
  90. package/dist/client/assets/{pin-to-sidebar-button-a3_Q5PIg.js → pin-to-sidebar-button-C0LI8OyX.js} +1 -1
  91. package/dist/client/assets/{plugin-empty-state-gioOq0db.js → plugin-empty-state-Snmmscpf.js} +1 -1
  92. package/dist/client/assets/{plugin-header-OS_VhXuY.js → plugin-header-CQUxkpkP.js} +1 -1
  93. package/dist/client/assets/{plugins-6jaAX9OI.js → plugins-Z6bDUs1U.js} +1 -1
  94. package/dist/client/assets/{popover-DCXtR4UV.js → popover-C2dO17KJ.js} +1 -1
  95. package/dist/client/assets/{registry-utils-B1EtgBkU.js → registry-utils-BE0ZphJL.js} +1 -1
  96. package/dist/client/assets/{resizable-C5jfRumR.js → resizable-C65jXR9m.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-BNBJ-3ue.js → resource-tabs-CMKv9MLy.js} +1 -1
  98. package/dist/client/assets/{select-DVxy4dZt.js → select-DjQ5i8qH.js} +1 -1
  99. package/dist/client/assets/{settings-DlMrUAFl.js → settings-B6WkV5Xi.js} +1 -1
  100. package/dist/client/assets/{shell-layout-C02QmtDM.js → shell-layout-BAq9UL-m.js} +1 -1
  101. package/dist/client/assets/{spinner-BK_gptNQ.js → spinner-D1jlVRw-.js} +1 -1
  102. package/dist/client/assets/{switch-BEUY1ZkG.js → switch-VxY_iYFv.js} +1 -1
  103. package/dist/client/assets/{textarea-Dok2BUMd.js → textarea-Ca9yvCmH.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-BPpD_gne.js → tool-set-selector-Gam2FuD6.js} +1 -1
  105. package/dist/client/assets/{tools-list-eucrhDw_.js → tools-list-NAnIcc4C.js} +1 -1
  106. package/dist/client/assets/{tooltip-BotDoy6T.js → tooltip-CXbR3les.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-C0AyXxMG.js → typewriter-title-C-fZ8H0Y.js} +1 -1
  108. package/dist/client/assets/{use-binding-Dj1HVNst.js → use-binding-Bio_IG23.js} +1 -1
  109. package/dist/client/assets/{use-collections-Vpvt2q4e.js → use-collections-BtupqZP_.js} +1 -1
  110. package/dist/client/assets/{use-connection-DTjI_RtQ.js → use-connection-Dd7Yvjif.js} +1 -1
  111. package/dist/client/assets/{use-create-virtual-mcp-Jf2xsGTe.js → use-create-virtual-mcp-fvY3FmjO.js} +1 -1
  112. package/dist/client/assets/{use-list-state-Bzarl2oM.js → use-list-state-D5d2Dsd0.js} +1 -1
  113. package/dist/client/assets/{use-members-BtNqo2oh.js → use-members-fszl9icN.js} +1 -1
  114. package/dist/client/assets/{use-mobile-CcOC6HBd.js → use-mobile-jDYVRPrZ.js} +1 -1
  115. package/dist/client/assets/{use-organization-settings-CwiS3zFY.js → use-organization-settings-DjIJdwlh.js} +1 -1
  116. package/dist/client/assets/{use-virtual-mcp-hN6G5B_j.js → use-virtual-mcp-wPhrZ9RR.js} +1 -1
  117. package/dist/client/assets/useInfiniteQuery-BVNnXO_N.js +1 -0
  118. package/dist/client/assets/{useMutation-d4_WWA7-.js → useMutation-BucpIOAt.js} +1 -1
  119. package/dist/client/assets/useQuery-Zp-sAZMS.js +1 -0
  120. package/dist/client/assets/{value-BHid2kuo.js → value-E9Fqy7St.js} +1 -1
  121. package/dist/client/assets/{view-mode-toggle-DhWV5fbM.js → view-mode-toggle-CR_cIdX-.js} +1 -1
  122. package/dist/client/assets/{virtual-mcp-Dyh0Ag7o.js → virtual-mcp-CLFdFi_E.js} +1 -1
  123. package/dist/client/assets/{workflow-Bw7jESqY.js → workflow-DJOiUaHZ.js} +1 -1
  124. package/dist/client/index.html +1 -1
  125. package/dist/server/cli.js +2 -2
  126. package/dist/server/migrate.js +2 -2
  127. package/dist/server/server.js +2 -2
  128. package/package.json +1 -1
  129. package/dist/client/assets/constants-CrS7edVE.js +0 -1
  130. package/dist/client/assets/useInfiniteQuery-B-B7Ix7h.js +0 -1
  131. package/dist/client/assets/useQuery-BMYUlGUP.js +0 -1
@@ -1 +1 @@
1
- import{aH as V,aL as C,aI as K,aQ as z,Q as _,E as W,aR as X,aS as Y,r as p,aT as Z,aU as $,aV as J,aM as ee,aW as k,aX as I,aY as se,aZ as te,a_ as re,a6 as oe,j as m,a$ as ae,aa as g,a9 as O,b0 as ne,ab as w,b1 as Q,ad as ie,ai as A,ap as ue,aq as ce}from"./index-DimTMp-G.js";function P(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 V{#r;#e;#o;#a;#s;#t;#n;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#a=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#p(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.#a=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),a=e.map(i=>i.getCurrentResult()),n=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=n||c,v=l?!0:a.some((i,d)=>{const b=this.#e[d];return!b||!K(i,b)});!l&&!v||(l&&(this.#s=e),this.#e=a,this.hasListeners()&&(l&&(P(t,e).forEach(i=>{i.destroy()}),P(e,t).forEach(i=>{i.subscribe(d=>{this.#p(i,d)})})),this.#h()))})}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,a=>{s.forEach(n=>{n.observer.trackProp(a)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#n)&&(this.#n=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 a=s.get(e);a?a.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),n=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:n})}),t}#p(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#h())}#h(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#a?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),a=Y(),n=p.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);n.forEach(u=>{Z(u),$(u,a)}),J(a);const[c]=p.useState(()=>new le(o,n,s)),[l,v,i]=c.getOptimisticResult(n,s.combine),d=!e&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(n,s)},[n,s,c]);const h=l.some((u,f)=>k(n[f],u))?l.flatMap((u,f)=>{const y=n[f];if(y){const x=new _(o,y);if(k(y,u))return I(y,x,a);se(u,e)&&I(y,x,a)}return[]}):[];if(h.length>0)throw Promise.all(h);const R=l.find((u,f)=>{const y=n[f];return y&&te({result:u,errorResetBoundary:a,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return v(i())}var S="Radio",[pe,M]=A(S),[he,fe]=pe(S),G=p.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:a,disabled:n,value:c="on",onCheck:l,form:v,...i}=r,[d,b]=p.useState(null),h=O(s,f=>b(f)),R=p.useRef(!1),u=d?v||!!d.closest("form"):!0;return m.jsxs(he,{scope:t,checked:e,disabled:n,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":L(e),"data-disabled":n?"":void 0,disabled:n,value:c,...i,ref:h,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:a,disabled:n,form:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var j="RadioIndicator",N=p.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,a=fe(j,t);return m.jsx(ie,{present:o||a.checked,children:m.jsx(g.span,{"data-state":L(a.checked),"data-disabled":a.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=p.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},a)=>{const n=p.useRef(null),c=O(n,a),l=ue(t),v=ce(s);return p.useEffect(()=>{const i=n.current;if(!i)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&h){const R=new Event("click",{bubbles:o});h.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,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function L(r){return r?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[be]=A(E,[Q,M]),D=Q(),B=M(),[me,ye]=be(E),T=p.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:a,required:n=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=r,h=D(t),R=re(v),[u,f]=oe({prop:a,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:n,disabled:c,value:u,onValueChange:f,children:m.jsx(ae,{asChild:!0,...h,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":n,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...b,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=p.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,a=ye(F,t),n=a.disabled||o,c=D(t),l=B(t),v=p.useRef(null),i=O(s,v),d=a.value===e.value,b=p.useRef(!1);return p.useEffect(()=>{const h=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",R)}},[]),m.jsx(ne,{asChild:!0,...c,focusable:!n,active:d,children:m.jsx(G,{disabled:n,required:a.required,checked:d,...l,...e,name:a.name,ref:i,onCheck:()=>a.onValueChange(e.value),onKeyDown:w(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:w(e.onFocus,()=>{b.current&&v.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=p.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{aH as V,aL as C,aI as K,aQ as z,Q as _,E as W,aR as X,aS as Y,r as p,aT as Z,aU as $,aV as J,aM as ee,aW as k,aX as I,aY as se,aZ as te,a_ as re,a6 as oe,j as m,a$ as ae,aa as g,a9 as O,b0 as ne,ab as w,b1 as Q,ad as ie,ai as A,ap as ue,aq as ce}from"./index-Ck_HNGGd.js";function P(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 V{#r;#e;#o;#a;#s;#t;#n;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#a=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#p(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.#a=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),a=e.map(i=>i.getCurrentResult()),n=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=n||c,v=l?!0:a.some((i,d)=>{const b=this.#e[d];return!b||!K(i,b)});!l&&!v||(l&&(this.#s=e),this.#e=a,this.hasListeners()&&(l&&(P(t,e).forEach(i=>{i.destroy()}),P(e,t).forEach(i=>{i.subscribe(d=>{this.#p(i,d)})})),this.#h()))})}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,a=>{s.forEach(n=>{n.observer.trackProp(a)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#n)&&(this.#n=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 a=s.get(e);a?a.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),n=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:n})}),t}#p(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#h())}#h(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#a?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),a=Y(),n=p.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);n.forEach(u=>{Z(u),$(u,a)}),J(a);const[c]=p.useState(()=>new le(o,n,s)),[l,v,i]=c.getOptimisticResult(n,s.combine),d=!e&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(n,s)},[n,s,c]);const h=l.some((u,f)=>k(n[f],u))?l.flatMap((u,f)=>{const y=n[f];if(y){const x=new _(o,y);if(k(y,u))return I(y,x,a);se(u,e)&&I(y,x,a)}return[]}):[];if(h.length>0)throw Promise.all(h);const R=l.find((u,f)=>{const y=n[f];return y&&te({result:u,errorResetBoundary:a,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return v(i())}var S="Radio",[pe,M]=A(S),[he,fe]=pe(S),G=p.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:a,disabled:n,value:c="on",onCheck:l,form:v,...i}=r,[d,b]=p.useState(null),h=O(s,f=>b(f)),R=p.useRef(!1),u=d?v||!!d.closest("form"):!0;return m.jsxs(he,{scope:t,checked:e,disabled:n,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":L(e),"data-disabled":n?"":void 0,disabled:n,value:c,...i,ref:h,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:a,disabled:n,form:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var j="RadioIndicator",N=p.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,a=fe(j,t);return m.jsx(ie,{present:o||a.checked,children:m.jsx(g.span,{"data-state":L(a.checked),"data-disabled":a.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=p.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},a)=>{const n=p.useRef(null),c=O(n,a),l=ue(t),v=ce(s);return p.useEffect(()=>{const i=n.current;if(!i)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&h){const R=new Event("click",{bubbles:o});h.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,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function L(r){return r?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[be]=A(E,[Q,M]),D=Q(),B=M(),[me,ye]=be(E),T=p.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:a,required:n=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=r,h=D(t),R=re(v),[u,f]=oe({prop:a,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:n,disabled:c,value:u,onValueChange:f,children:m.jsx(ae,{asChild:!0,...h,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":n,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...b,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=p.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,a=ye(F,t),n=a.disabled||o,c=D(t),l=B(t),v=p.useRef(null),i=O(s,v),d=a.value===e.value,b=p.useRef(!1);return p.useEffect(()=>{const h=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",R)}},[]),m.jsx(ne,{asChild:!0,...c,focusable:!n,active:d,children:m.jsx(G,{disabled:n,required:a.required,checked:d,...l,...e,name:a.name,ref:i,onCheck:()=>a.onValueChange(e.value),onKeyDown:w(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:w(e.onFocus,()=>{b.current&&v.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=p.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};