decocms 2.161.2 → 2.161.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 (202) hide show
  1. package/dist/client/assets/{AlertCircle-pqdPgDlg.js → AlertCircle-wzCWgJKp.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-BvhXqcAM.js → AlignLeft-Cm7D7Jz2.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-CZcxuDlT.js → ArrowDown-D7VDMxao.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DKz-4xQV.js → ArrowLeft-CRiE2QCS.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-GyzIO44k.js → ArrowUp-WlBoHBUF.js} +1 -1
  6. package/dist/client/assets/{Check-CDFiVxzc.js → Check-CxalVwyD.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DCUZbDbf.js → CheckCircle-BqWi0uzz.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DZ3FVLwH.js → CheckDone01-DcQm_x6s.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-BxkeUz6L.js → CheckVerified02-CCgMV0Xo.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CUijSoMc.js → ChevronDown-92pMp2oX.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-Cbh1TRDV.js → ChevronLeft-Bf6LLh_f.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-NxpG2X5l.js → ChevronRight-tF0xM-4Z.js} +1 -1
  13. package/dist/client/assets/{Clock-CJUYUnBj.js → Clock-B7L5NA_R.js} +1 -1
  14. package/dist/client/assets/{Code01-DePjsj74.js → Code01-CSlTufbJ.js} +1 -1
  15. package/dist/client/assets/{Container-DegtKaTT.js → Container-DMtRMvOi.js} +1 -1
  16. package/dist/client/assets/{Copy01-CNPA12Jg.js → Copy01-DEpVJelC.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-BVQa7VBE.js → Dataflow03-BhLXgKlQ.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-Cmta8mvI.js → DotsHorizontal-zOYK6o8m.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-tmylCaVb.js → DotsVertical-CLkpl368.js} +1 -1
  20. package/dist/client/assets/{Download01-BMpUSmpB.js → Download01-uDAq7ugX.js} +1 -1
  21. package/dist/client/assets/{Edit01-Dxc70kRZ.js → Edit01-DTFNmaeE.js} +1 -1
  22. package/dist/client/assets/{Edit05-BGwpCOy8.js → Edit05-syMMdkAn.js} +1 -1
  23. package/dist/client/assets/{Eye-Dn6eQVRc.js → Eye-DZR5Sgqw.js} +1 -1
  24. package/dist/client/assets/{File02-D6qDtegb.js → File02-p2vd5gRf.js} +1 -1
  25. package/dist/client/assets/{File06-Dq0JHkfg.js → File06-5rM4N04P.js} +1 -1
  26. package/dist/client/assets/{FilterLines-DsZEIYdO.js → FilterLines-DsZqrmoJ.js} +1 -1
  27. package/dist/client/assets/{Globe01-nCFh23MN.js → Globe01-Cna-7yb_.js} +1 -1
  28. package/dist/client/assets/{Globe02-58PFDYOO.js → Globe02-BLgrzxIE.js} +1 -1
  29. package/dist/client/assets/{Grid01-C3T5n4Ns.js → Grid01-BxyHC8oa.js} +1 -1
  30. package/dist/client/assets/{Hash02-BtbHJwIA.js → Hash02-up1a7Yk0.js} +1 -1
  31. package/dist/client/assets/{Home02-CVP_-AAq.js → Home02-C8u5Jhw0.js} +1 -1
  32. package/dist/client/assets/{Image01-Df4shQrN.js → Image01-CLI9NfSq.js} +1 -1
  33. package/dist/client/assets/{Inbox01-C2MChB8W.js → Inbox01-CMG4E9ai.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-DdCgd8w-.js → InfoCircle-CgRpog_z.js} +1 -1
  35. package/dist/client/assets/{Key01-B75dBfxy.js → Key01-DCd_LGTZ.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-Bl8XKBa1.js → LayersTwo01-BvTnUwGe.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-DBgpHH4b.js → LayoutLeft-CJYXpDCf.js} +1 -1
  38. package/dist/client/assets/{Link01-DRbcjvnt.js → Link01-DPzj4tpz.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-BuW_IxKI.js → LinkExternal01-CGtY5qZg.js} +1 -1
  40. package/dist/client/assets/{List-JP-IMB61.js → List-SMahZTO4.js} +1 -1
  41. package/dist/client/assets/{Loading01-Bg86p_4S.js → Loading01-Bze1WZW-.js} +1 -1
  42. package/dist/client/assets/{Lock01-CUvqR8A1.js → Lock01-B_0cjFTJ.js} +1 -1
  43. package/dist/client/assets/{Play-BpTz5kZm.js → Play-niUvi64J.js} +1 -1
  44. package/dist/client/assets/{Plus-CJHPMEjp.js → Plus-LN4mY-9i.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-CEzW5PgL.js → RefreshCcw01-C0C5ptaM.js} +1 -1
  46. package/dist/client/assets/{Save01-BkKVEz4t.js → Save01-DlZ1-cfR.js} +1 -1
  47. package/dist/client/assets/{SearchMd-CwJLSOLk.js → SearchMd-F_aXmF-3.js} +1 -1
  48. package/dist/client/assets/{Settings01-BsSJuzwS.js → Settings01-CaZwmsCJ.js} +1 -1
  49. package/dist/client/assets/{Shield01-BZwBHewX.js → Shield01-DngARJc0.js} +1 -1
  50. package/dist/client/assets/{Terminal-1srXw7Rb.js → Terminal-CtU-OVGn.js} +1 -1
  51. package/dist/client/assets/{Trash01-cTJibjyo.js → Trash01-Bwp87fCr.js} +1 -1
  52. package/dist/client/assets/{Upload01-DNqKt2Ex.js → Upload01-DaeDmQtZ.js} +1 -1
  53. package/dist/client/assets/{Users03-DIxTnlo-.js → Users03-DpxIJiCb.js} +1 -1
  54. package/dist/client/assets/{X-DBGegVwb.js → X-gf_3nNHG.js} +1 -1
  55. package/dist/client/assets/{XCircle-COZoJP07.js → XCircle-DWwJhgPa.js} +1 -1
  56. package/dist/client/assets/{XClose-BvkrJnEc.js → XClose-C-K_Vaja.js} +1 -1
  57. package/dist/client/assets/{Zap-BCX9_zhf.js → Zap-BlQhJ_AT.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-CFJw9GRB.js → agent-connections-preview-gR-iq9W7.js} +1 -1
  59. package/dist/client/assets/{agent-detail-BiTkjuJB.js → agent-detail-VK4T-_6I.js} +1 -1
  60. package/dist/client/assets/{agents-CE4lmgtV.js → agents-DCGGwBmH.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-CW_u7eeV.js → alert-dialog-Bin5Tfuj.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-Ct6Cr7Jp.js → auth-catchall-DtU2g9Mj.js} +1 -1
  63. package/dist/client/assets/{avatar-DRLqoNkW.js → avatar-B31kskAu.js} +1 -1
  64. package/dist/client/assets/{badge-BWAmAiUV.js → badge-B3jUOBeA.js} +1 -1
  65. package/dist/client/assets/{binder-D_AU3Ukn.js → binder-CHjF8z7t.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-Bg67HRy9.js → breadcrumb-RbNIhzC-.js} +1 -1
  67. package/dist/client/assets/{card-7hcLkCEB.js → card-20_V1oP3.js} +1 -1
  68. package/dist/client/assets/{chart-Dw0NZjkg.js → chart-BLHHpC2I.js} +1 -1
  69. package/dist/client/assets/{checkbox-6x2X31Pv.js → checkbox-DNOEZe6O.js} +1 -1
  70. package/dist/client/assets/{circle-alert-BWN8SLrI.js → circle-alert-hz2vvmc1.js} +1 -1
  71. package/dist/client/assets/{collapsible-DwbiUeUb.js → collapsible-D_ju1zYz.js} +1 -1
  72. package/dist/client/assets/{collection-detail-BBwCylSh.js → collection-detail-Bbc7xOYn.js} +1 -1
  73. package/dist/client/assets/{collection-display-button-WFmVtIi7.js → collection-display-button-CPl7pq_-.js} +1 -1
  74. package/dist/client/assets/{collection-search-B54umXGp.js → collection-search-Dta_7bLf.js} +1 -1
  75. package/dist/client/assets/{collection-tab-CsqqKCXP.js → collection-tab-CEV5V3f-.js} +1 -1
  76. package/dist/client/assets/{collection-table-wrapper-BZOIm27z.js → collection-table-wrapper-Cnt9IhWx.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-DOOzAXiO.js → collection-tabs-Cqam0Wq_.js} +1 -1
  78. package/dist/client/assets/{command-BzHx0nFf.js → command-CpDdpJuA.js} +1 -1
  79. package/dist/client/assets/{connect-Xg64wSud.js → connect-7xkdm7Ir.js} +1 -1
  80. package/dist/client/assets/{connection-card-DmPIw4Kg.js → connection-card-nPL8X300.js} +1 -1
  81. package/dist/client/assets/{connection-detail-CEXWHLXf.js → connection-detail-CgVIKGuL.js} +1 -1
  82. package/dist/client/assets/{connection-status-B_Z109Ry.js → connection-status-BKjCpqS3.js} +1 -1
  83. package/dist/client/assets/{connections-YxVBFdW8.js → connections-DeZMKw48.js} +1 -1
  84. package/dist/client/assets/{constants-DaSprOUn.js → constants-5XohhD_f.js} +1 -1
  85. package/dist/client/assets/constants-BFru2KWV.js +1 -0
  86. package/dist/client/assets/{context-ZdWC0La7.js → context-CTtcoCIi.js} +9 -9
  87. package/dist/client/assets/{create-organization-dialog-CZ7XLJZ2.js → create-organization-dialog-BTGz9lFR.js} +1 -1
  88. package/dist/client/assets/{create-project-dialog-4nsCEPvB.js → create-project-dialog-DU8b5qIM.js} +1 -1
  89. package/dist/client/assets/{danger-9AY19M9I.js → danger-BF5r1XMZ.js} +1 -1
  90. package/dist/client/assets/{danger-zone-DUuYBmgY.js → danger-zone-BZF6899E.js} +1 -1
  91. package/dist/client/assets/{decopilot-events-Cs-pdJXs.js → decopilot-events-Dwy6dXgg.js} +1 -1
  92. package/dist/client/assets/{dependencies-6_1PBWMZ.js → dependencies-DNEszsvl.js} +1 -1
  93. package/dist/client/assets/{dialog-CRJHcV_w.js → dialog-DxH8GO4d.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-ByUVopOy.js → dropdown-menu-CFEWQa_K.js} +1 -1
  95. package/dist/client/assets/{dynamic-plugin-layout-BQems7BE.js → dynamic-plugin-layout-B0o94jmF.js} +1 -1
  96. package/dist/client/assets/{editable-task-title-CrLCl8ja.js → editable-task-title-Dt_WaZpR.js} +1 -1
  97. package/dist/client/assets/{empty-state-DlQl9kGl.js → empty-state-Bxs7XZNI.js} +1 -1
  98. package/dist/client/assets/{env-vars-editor-C01OdNa1.js → env-vars-editor-DWgND44l.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-BKLs62Bt.js → extract-connection-data-Dp0FIsZq.js} +1 -1
  100. package/dist/client/assets/{file-browser-_OPiYVIh.js → file-browser-B0WY7QVG.js} +2 -2
  101. package/dist/client/assets/{form-Bz8l0jHv.js → form--EiAjir4.js} +1 -1
  102. package/dist/client/assets/{general-BaVO7kUh.js → general-BLQW0SWq.js} +1 -1
  103. package/dist/client/assets/{grid-view-D5jnfnXS.js → grid-view-C1eQZV6T.js} +1 -1
  104. package/dist/client/assets/{home-GJ33QBLJ.js → home-BhlGjt60.js} +1 -1
  105. package/dist/client/assets/{icon-picker-xxyJ8vlW.js → icon-picker-CamZ5oDW.js} +1 -1
  106. package/dist/client/assets/{index-BobyOFZi.js → index-BhvDbEFS.js} +1 -1
  107. package/dist/client/assets/{index-Dj-lsKhk.js → index-BoCyb2nQ.js} +1 -1
  108. package/dist/client/assets/{index-D1yfwwV4.js → index-BtrdkWUP.js} +1 -1
  109. package/dist/client/assets/{index-C2na4guL.js → index-Cag7rf5f.js} +3 -3
  110. package/dist/client/assets/{index-vgijt9J_.js → index-DFtp5nAe.js} +1 -1
  111. package/dist/client/assets/{index-BU2sT9tj.js → index-DktUqq7R.js} +1 -1
  112. package/dist/client/assets/{index-Bqz2mF-E.js → index-OPym4w5o.js} +1 -1
  113. package/dist/client/assets/{index-ICSQACSj.js → index-eNFlYk0_.js} +7 -7
  114. package/dist/client/assets/index-iChka6qr.js +1 -0
  115. package/dist/client/assets/{infiniteQueryObserver-Bo5FxNtU.js → infiniteQueryObserver-B3dSQxWm.js} +1 -1
  116. package/dist/client/assets/{input-DUsZ0674.js → input-BU10AGC6.js} +1 -1
  117. package/dist/client/assets/{integration-icon-DGtldPz9.js → integration-icon-BKhIZQox.js} +1 -1
  118. package/dist/client/assets/{label-CSGfgop7.js → label-C6bT3eG4.js} +1 -1
  119. package/dist/client/assets/{layout-Cd_QYQV8.js → layout-a5d200P2.js} +1 -1
  120. package/dist/client/assets/{layout-Bv5qTAVf.js → layout-vXZA4ess.js} +1 -1
  121. package/dist/client/assets/{localstorage-keys-rCdSk7V1.js → localstorage-keys-Cc-8xT2Q.js} +1 -1
  122. package/dist/client/assets/{login-DnmLD1yR.js → login-Dbq21Mu8.js} +1 -1
  123. package/dist/client/assets/{markdown-7O_t6qjD.js → markdown-COW3UK8R.js} +1 -1
  124. package/dist/client/assets/{mcp-app-renderer-D4E7hypr.js → mcp-app-renderer-C0sSQYUl.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-B5bdDRrO.js → mcp-server-card-BVTY4fFK.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-BipYUahd.js → mcp-server-detail-BfFEU3Ca.js} +2 -2
  127. package/dist/client/assets/{members-DXAGCIzX.js → members-Bzr6Eusy.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-BqVWju5E.js → monaco-editor-3FBKoSxm.js} +4 -4
  129. package/dist/client/assets/{monitoring-C16CCkds.js → monitoring-B9_G9rGi.js} +10 -10
  130. package/dist/client/assets/{monitoring-dashboard-edit-kRZzzeLE.js → monitoring-dashboard-edit-ihZjovsR.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-dupkPgnr.js → monitoring-dashboard-view-DPJ5oOTL.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-D6OSg7HB.js → oauth-callback-BfO8DiMX.js} +1 -1
  133. package/dist/client/assets/{page-CrwdxmJx.js → page-BK2FlAm7.js} +1 -1
  134. package/dist/client/assets/{page-JVDQd7Pa.js → page-DrNv2hLE.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-B5OREokA.js → plugin-empty-state-BsIaJnf_.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-CJTXfK5G.js → plugin-empty-state-DB3a-CPN.js} +1 -1
  137. package/dist/client/assets/{plugin-header-BMsRFrsD.js → plugin-header-DDUqZYqS.js} +1 -1
  138. package/dist/client/assets/{plugin-header-Mne8oE1c.js → plugin-header-DZoxK7XC.js} +1 -1
  139. package/dist/client/assets/plugins-D_dg2liE.js +1 -0
  140. package/dist/client/assets/{popover-BmtBdGjb.js → popover-BGTZ4Jg2.js} +1 -1
  141. package/dist/client/assets/{project-app-view-DEA_89TX.js → project-app-view-Cm5ZjDvK.js} +1 -1
  142. package/dist/client/assets/{project-layout-B_g2ZCw2.js → project-layout-BgkRCgXh.js} +1 -1
  143. package/dist/client/assets/{project-plugins-yhhcAtKz.js → project-plugins-B8wYA_TO.js} +1 -1
  144. package/dist/client/assets/{projects-list-Dbu7WBPl.js → projects-list-BFZq7rRM.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-CnL3dK7d.js → readme-viewer-eWzpImJ-.js} +1 -1
  146. package/dist/client/assets/{registry-layout-3t7vZz5Q.js → registry-layout-QIjOoCIB.js} +1 -1
  147. package/dist/client/assets/{registry-utils-CpY2YQZE.js → registry-utils-CXytYPKT.js} +1 -1
  148. package/dist/client/assets/{reports-layout-f1uXp8Wf.js → reports-layout-C0EBnxlu.js} +1 -1
  149. package/dist/client/assets/{reset-password-CWh0Stuy.js → reset-password-CZbBRUWh.js} +1 -1
  150. package/dist/client/assets/{resizable-Qi5e07L5.js → resizable-Dx94LkuC.js} +1 -1
  151. package/dist/client/assets/{save-actions-c2kWRBna.js → save-actions-Dy1mpcoK.js} +1 -1
  152. package/dist/client/assets/{scroll-area-CCwz27Cs.js → scroll-area-B52F-BUc.js} +1 -1
  153. package/dist/client/assets/{select-T9DEkcHR.js → select-DDvIxYC9.js} +1 -1
  154. package/dist/client/assets/{shell-layout-CRsdpEqy.js → shell-layout-8je4eclk.js} +2 -2
  155. package/dist/client/assets/{sidebar-settings-ZtDhOJ6Z.js → sidebar-settings-COcD5aX9.js} +1 -1
  156. package/dist/client/assets/{skeleton-BGhieoub.js → skeleton-vPkfHL7x.js} +1 -1
  157. package/dist/client/assets/{spinner-Bk3X7OJx.js → spinner-BxzkOyD6.js} +1 -1
  158. package/dist/client/assets/{store-invite-CZnlE5ip.js → store-invite-CRXC_N2h.js} +1 -1
  159. package/dist/client/assets/{switch-D0mfz5pr.js → switch-CT1_NI6K.js} +1 -1
  160. package/dist/client/assets/{table-DZiJB3ll.js → table-zdx3E6v9.js} +1 -1
  161. package/dist/client/assets/{tabs-BJ9uf_RZ.js → tabs-DK6oUINY.js} +1 -1
  162. package/dist/client/assets/tasks-BIo2z4kh.js +1 -0
  163. package/dist/client/assets/{tasks-panel-wqluKmNr.js → tasks-panel-dDHzZhim.js} +1 -1
  164. package/dist/client/assets/{textarea-kzEpH4RL.js → textarea-BPWoaNFn.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-BQ1TWL3N.js → time-range-picker-Ctmd8k0x.js} +1 -1
  166. package/dist/client/assets/{toggle-group-CXudIshV.js → toggle-group-CegKLH1n.js} +1 -1
  167. package/dist/client/assets/{tools-list-SUAoOCuM.js → tools-list-BY3uMZdA.js} +1 -1
  168. package/dist/client/assets/{tooltip-BdAKZv54.js → tooltip-s11dEtpO.js} +1 -1
  169. package/dist/client/assets/{topbar-portal-El7xAic9.js → topbar-portal-rPJmCois.js} +1 -1
  170. package/dist/client/assets/{types-UVafsfzF.js → types-DRyYjHsT.js} +1 -1
  171. package/dist/client/assets/{use-binding-B7oG4xk1.js → use-binding-Dc1kKEIB.js} +1 -1
  172. package/dist/client/assets/{use-collections--9SGeKjH.js → use-collections-BG9rywMN.js} +1 -1
  173. package/dist/client/assets/{use-connection-Dr0AHpj7.js → use-connection-Dx2EaFOc.js} +1 -1
  174. package/dist/client/assets/{use-copy-vMjmnXEc.js → use-copy-BFB-OGf3.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-ChqLoL1m.js → use-create-virtual-mcp-Boh0ylO8.js} +1 -1
  176. package/dist/client/assets/{use-install-from-registry-VJLNAOzt.js → use-install-from-registry-BUnkMe_u.js} +1 -1
  177. package/dist/client/assets/{use-list-state-D_iRo0PJ.js → use-list-state-f-AMTm78.js} +1 -1
  178. package/dist/client/assets/{use-llm-DnQz3dsu.js → use-llm-BSkNsxRE.js} +1 -1
  179. package/dist/client/assets/{use-mcp-prompts-DhKfEu5C.js → use-mcp-prompts-CAEcR_lH.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DiVZVnvo.js → use-mcp-tools-Bn0JXnu7.js} +1 -1
  181. package/dist/client/assets/{use-members-mIA8yoGT.js → use-members-1che_jpy.js} +1 -1
  182. package/dist/client/assets/{use-mobile-DHwqDvar.js → use-mobile-DAXjM9XF.js} +1 -1
  183. package/dist/client/assets/{use-preferences-DE_OGVCO.js → use-preferences-D5ktNb6g.js} +1 -1
  184. package/dist/client/assets/{use-project-BRmCR_r0.js → use-project-BLkau85f.js} +1 -1
  185. package/dist/client/assets/{use-settings-modal-DU2uB_2j.js → use-settings-modal-DKWQxpc-.js} +1 -1
  186. package/dist/client/assets/{use-view-mode-BZc5mOXP.js → use-view-mode-DoyNiHJV.js} +1 -1
  187. package/dist/client/assets/{use-virtual-mcp-BpJ2qfK9.js → use-virtual-mcp-gWnd6DnQ.js} +1 -1
  188. package/dist/client/assets/useInfiniteQuery-Bt8cle7l.js +1 -0
  189. package/dist/client/assets/{useMutation-Cu1CYNQ4.js → useMutation-CCDwZCqX.js} +1 -1
  190. package/dist/client/assets/useQuery-Clb9lPv3.js +1 -0
  191. package/dist/client/assets/useSuspenseInfiniteQuery-a8ay6F8p.js +1 -0
  192. package/dist/client/assets/{user-r4C-ASlZ.js → user-Dc2KBRdg.js} +1 -1
  193. package/dist/client/assets/{workflow-DwGrEsyc.js → workflow-DstksxgA.js} +1 -1
  194. package/dist/client/index.html +1 -1
  195. package/package.json +1 -1
  196. package/dist/client/assets/constants-YgRD23Vv.js +0 -1
  197. package/dist/client/assets/index-C5rk7Y_P.js +0 -1
  198. package/dist/client/assets/plugins-BmICZHEP.js +0 -1
  199. package/dist/client/assets/tasks-dtcrF_V6.js +0 -1
  200. package/dist/client/assets/useInfiniteQuery-D6h6YOzH.js +0 -1
  201. package/dist/client/assets/useQuery-DnHeIEbf.js +0 -1
  202. package/dist/client/assets/useSuspenseInfiniteQuery-CE3o8dC9.js +0 -1
@@ -1 +1 @@
1
- import{c as f,z as y,j as s,f as _,r as C,B as $,bK as O,e as E,w as F,x as w,y as R,S as D,N as H}from"./index-C2na4guL.js";import{C as k}from"./card-7hcLkCEB.js";import{A as G}from"./avatar-DRLqoNkW.js";import{i as Q}from"./AlertCircle-pqdPgDlg.js";import{i as q}from"./Check-CDFiVxzc.js";import{s as B}from"./Plus-CJHPMEjp.js";import{i as T}from"./SearchMd-CwJLSOLk.js";import{s as M}from"./XClose-BvkrJnEc.js";import{I as U}from"./input-DUsZ0674.js";import{C as P}from"./create-organization-dialog-CZ7XLJZ2.js";import"./alert-dialog-CW_u7eeV.js";import"./form-Bz8l0jHv.js";import"./label-CSGfgop7.js";import"./spinner-Bk3X7OJx.js";import"./useMutation-Cu1CYNQ4.js";function K(t){const e=f.c(10),{children:n,className:l,onNavigate:i,showHoverRing:a}=t,c=a===void 0?!1:a;let o;e[0]!==i?(o=p=>{i&&i(p)},e[0]=i,e[1]=o):o=e[1];const m=o,x=i&&"cursor-pointer",r=c&&"hover:ring-2 hover:ring-primary";let d;e[2]!==l||e[3]!==x||e[4]!==r?(d=y("group transition-all flex flex-col gap-0",x,r,l),e[2]=l,e[3]=x,e[4]=r,e[5]=d):d=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==d?(g=s.jsx(k,{className:d,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=d,e[9]=g):g=e[9],g}function V(t){const e=f.c(7),{url:n,fallback:l,shape:i,size:a,objectFit:c,className:o}=t,m=i===void 0?"square":i,x=a===void 0?"lg":a,r=c===void 0?"contain":c;let d;return e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==m||e[4]!==x||e[5]!==n?(d=s.jsx(G,{url:n,fallback:l,shape:m,size:x,objectFit:r,className:o}),e[0]=o,e[1]=l,e[2]=r,e[3]=m,e[4]=x,e[5]=n,e[6]=d):d=e[6],d}function X(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Y(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("font-medium truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("p",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function J(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("h3",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function W(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex flex-col gap-[2px]",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Z(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex justify-between items-start",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function ee(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function te(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function se(){const t=f.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,s.jsxs("div",{className:"flex flex-col gap-[2px]",children:[s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),s.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(k,{className:"group transition-colors flex flex-col",children:[n,s.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const u=Object.assign(K,{Avatar:V,AvatarSection:Z,Header:X,Title:Y,Subtitle:J,Content:W,Footer:ee,Badge:te,Skeleton:se}),ie={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},le={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},ne={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},ae={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},re={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},oe={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function L(t){const e=f.c(13),{children:n,columns:l,gap:i,className:a}=t;let c;e[0]!==l?(c=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=c):c=e[1];const o=c,x=ie[i===void 0?4:i],r=o.sm&&le[o.sm],d=o.md&&ne[o.md],g=o.lg&&ae[o.lg],p=o.xl&&re[o.xl],v=o["2xl"]&&oe[o["2xl"]];let N;e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==d||e[6]!==g||e[7]!==p||e[8]!==v?(N=y("w-full grid",x,r,d,g,p,v,a),e[2]=a,e[3]=x,e[4]=r,e[5]=d,e[6]=g,e[7]=p,e[8]=v,e[9]=N):N=e[9];const b=N;let h;return e[10]!==n||e[11]!==b?(h=s.jsx("div",{className:b,children:n}),e[10]=n,e[11]=b,e[12]=h):h=e[12],h}function ce(t){const e=f.c(9),{count:n,columns:l,gap:i,className:a}=t,c=n===void 0?8:n;let o;e[0]!==l?(o=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=o):o=e[1];const m=o,x=i===void 0?4:i;let r;e[2]!==c?(r=Array.from({length:c}).map(de),e[2]=c,e[3]=r):r=e[3];let d;return e[4]!==a||e[5]!==m||e[6]!==x||e[7]!==r?(d=s.jsx(L,{columns:m,gap:x,className:a,children:r}),e[4]=a,e[5]=m,e[6]=x,e[7]=r,e[8]=d):d=e[8],d}function de(t,e){return s.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),s.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const I=Object.assign(L,{Skeleton:ce});function me({invitation:t}){const[e,n]=C.useState(!1),[l,i]=C.useState(!1),a=F(),c=E(),o=async()=>{n(!0);try{const r=await _.organization.acceptInvitation({invitationId:t.id});if(r.error)w.error(r.error.message),n(!1);else{const d=await _.organization.setActive({organizationId:t.organizationId});d?.data?.slug?(w.success("Invitation accepted!"),c({to:"/$org",params:{org:d.data.slug}})):(w.success("Invitation accepted! Redirecting..."),c({to:"/"}))}}catch{w.error("Failed to accept invitation"),n(!1)}},m=async()=>{i(!0);try{const r=await _.organization.rejectInvitation({invitationId:t.id});r.error?(w.error(r.error.message),i(!1)):(w.success("Invitation rejected"),await a.invalidateQueries(),i(!1))}catch{w.error("Failed to reject invitation"),i(!1)}},x=t.organizationName||t.organizationId;return s.jsxs(u,{className:"border-dashed",children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:"",fallback:x,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsx(u.Subtitle,{children:"You've been invited to join"}),s.jsx(u.Title,{children:x})]})]}),s.jsx(u.Footer,{className:"border-t border-dashed",children:s.jsxs("div",{className:"flex h-3.5 items-center gap-2 w-full",children:[s.jsx($,{onClick:o,disabled:e||l,className:"flex-1",size:"sm",children:e?"Accepting...":s.jsxs(s.Fragment,{children:[s.jsx(q,{size:16}),"Accept"]})}),s.jsx($,{variant:"outline",onClick:m,disabled:e||l,className:"flex-1",size:"sm",children:l?"Declining...":s.jsxs(s.Fragment,{children:[s.jsx(M,{size:16}),"Decline"]})})]})})]})}function xe({query:t}){const e=C.useContext(O),{data:n}=e.hooks.useListUserInvitations(),i=(n??[]).filter(c=>c.status==="pending"&&new Date(c.expiresAt)>new Date),a=t?(()=>{const c=t.toLowerCase();return i.filter(o=>o.organizationName?.toLowerCase().includes(c)||o.organizationId.toLowerCase().includes(c))})():i;return a.length===0?null:s.jsxs("div",{className:"mb-16",children:[s.jsx("h2",{className:"text-lg font-medium pb-2 border-b border-border/50 mb-6 px-2",children:"Invitations"}),s.jsx(I,{columns:{sm:2,md:3,lg:4},children:a.map(c=>s.jsx(me,{invitation:c},c.id))})]})}function ue(t){const e=f.c(14),{query:n}=t,{data:l}=_.useListOrganizations(),i=E();let a;e[0]!==l||e[1]!==n?(a=l?n?(()=>{const r=n.toLowerCase();return l.filter(d=>d.name.toLowerCase().includes(r)||d.slug.toLowerCase().includes(r))})():l:[],e[0]=l,e[1]=n,e[2]=a):a=e[2];const c=a;if(!l||l.length===0){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=r):r=e[3],r}if(c.length===0){let r;return e[4]!==n?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=r):r=e[5],r}let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o={sm:2,md:3,lg:4},e[6]=o):o=e[6];let m;if(e[7]!==c||e[8]!==i){let r;e[10]!==i?(r=d=>s.jsxs(u,{onNavigate:()=>i({to:"/$org",params:{org:d.slug}}),children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:d.logo||"",fallback:d.name,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsxs(u.Subtitle,{children:["@",d.slug]}),s.jsx(u.Title,{children:d.name})]})]}),s.jsx(u.Footer,{children:s.jsxs("div",{className:"flex h-3.5 items-center text-xs text-muted-foreground",children:["Created:"," ",new Date(d.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},d.id),e[10]=i,e[11]=r):r=e[11],m=c.map(r),e[7]=c,e[8]=i,e[9]=m}else m=e[9];let x;return e[12]!==m?(x=s.jsx(I,{columns:o,children:m}),e[12]=m,e[13]=x):x=e[13],x}function fe(t){const e=f.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Q,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let i;return e[1]!==n.message?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[l,s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=i):i=e[2],i}function ge(){const t=f.c(27),{error:e,isPending:n}=_.useListOrganizations(),[l,i]=C.useState(""),[a,c]=C.useState(!1),o=C.useDeferredValue(l);if(n){let j;return t[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx("div",{className:"@container",children:s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})}),t[0]=j):j=t[0],j}if(e){let j;return t[1]!==e?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx(fe,{error:e})}),t[1]=e,t[2]=j):j=t[2],j}let m;t[3]!==o?(m=s.jsx(C.Suspense,{fallback:null,children:s.jsx(xe,{query:o})}),t[3]=o,t[4]=m):m=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("h2",{className:"text-lg font-medium",children:"My organizations"}),t[5]=x):x=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(T,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),t[6]=r):r=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=j=>i(j.target.value),t[7]=d):d=t[7];let g;t[8]!==l?(g=s.jsxs("div",{className:"relative",children:[r,s.jsx(U,{className:"pl-8 h-8 w-52 border-none shadow-none focus-visible:ring-0",placeholder:"Search organizations...",value:l,onChange:d})]}),t[8]=l,t[9]=g):g=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs($,{size:"sm",onClick:()=>c(!0),children:[s.jsx(B,{size:16}),s.jsx("span",{children:"New organization"})]}),t[10]=p):p=t[10];let v;t[11]!==g?(v=s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-border/50 mb-6 px-2",children:[x,s.jsxs("div",{className:"flex items-center gap-3",children:[g,p]})]}),t[11]=g,t[12]=v):v=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[13]=N):N=t[13];let b;t[14]!==o?(b=s.jsx(C.Suspense,{fallback:N,children:s.jsx(ue,{query:o})}),t[14]=o,t[15]=b):b=t[15];let h;t[16]!==v||t[17]!==b?(h=s.jsxs("div",{children:[v,b]}),t[16]=v,t[17]=b,t[18]=h):h=t[18];let S;t[19]!==m||t[20]!==h?(S=s.jsxs("div",{className:"@container",children:[m,h]}),t[19]=m,t[20]=h,t[21]=S):S=t[21];let z;t[22]!==a?(z=s.jsx(P,{open:a,onOpenChange:c}),t[22]=a,t[23]=z):z=t[23];let A;return t[24]!==S||t[25]!==z?(A=s.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[S,z]}),t[24]=S,t[25]=z,t[26]=A):A=t[26],A}function Ee(){const t=f.c(4),e=R(),{data:n,isPending:l}=_.useListOrganizations();if(e.localMode){if(l){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(D,{}),t[0]=c):c=t[0],c}const a=n?.[0];if(a?.slug){const c=`/${a.slug}/org-admin`;let o;return t[1]!==c?(o=s.jsx(H,{to:c,replace:!0}),t[1]=c,t[2]=o):o=t[2],o}}let i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"min-h-full",children:s.jsx(ge,{})}),t[3]=i):i=t[3],i}export{Ee as default};
1
+ import{c as f,z as y,j as s,f as _,r as C,B as $,bJ as O,e as E,w as F,x as w,y as R,S as D,N as H}from"./index-Cag7rf5f.js";import{C as k}from"./card-20_V1oP3.js";import{A as G}from"./avatar-B31kskAu.js";import{i as Q}from"./AlertCircle-wzCWgJKp.js";import{i as q}from"./Check-CxalVwyD.js";import{s as B}from"./Plus-LN4mY-9i.js";import{i as T}from"./SearchMd-F_aXmF-3.js";import{s as M}from"./XClose-C-K_Vaja.js";import{I as U}from"./input-BU10AGC6.js";import{C as P}from"./create-organization-dialog-BTGz9lFR.js";import"./alert-dialog-Bin5Tfuj.js";import"./form--EiAjir4.js";import"./label-C6bT3eG4.js";import"./spinner-BxzkOyD6.js";import"./useMutation-CCDwZCqX.js";function J(t){const e=f.c(10),{children:n,className:l,onNavigate:i,showHoverRing:a}=t,c=a===void 0?!1:a;let o;e[0]!==i?(o=p=>{i&&i(p)},e[0]=i,e[1]=o):o=e[1];const m=o,x=i&&"cursor-pointer",r=c&&"hover:ring-2 hover:ring-primary";let d;e[2]!==l||e[3]!==x||e[4]!==r?(d=y("group transition-all flex flex-col gap-0",x,r,l),e[2]=l,e[3]=x,e[4]=r,e[5]=d):d=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==d?(g=s.jsx(k,{className:d,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=d,e[9]=g):g=e[9],g}function V(t){const e=f.c(7),{url:n,fallback:l,shape:i,size:a,objectFit:c,className:o}=t,m=i===void 0?"square":i,x=a===void 0?"lg":a,r=c===void 0?"contain":c;let d;return e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==m||e[4]!==x||e[5]!==n?(d=s.jsx(G,{url:n,fallback:l,shape:m,size:x,objectFit:r,className:o}),e[0]=o,e[1]=l,e[2]=r,e[3]=m,e[4]=x,e[5]=n,e[6]=d):d=e[6],d}function X(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Y(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("font-medium truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("p",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function K(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("h3",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function W(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex flex-col gap-[2px]",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Z(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex justify-between items-start",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function ee(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function te(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function se(){const t=f.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,s.jsxs("div",{className:"flex flex-col gap-[2px]",children:[s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),s.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(k,{className:"group transition-colors flex flex-col",children:[n,s.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const u=Object.assign(J,{Avatar:V,AvatarSection:Z,Header:X,Title:Y,Subtitle:K,Content:W,Footer:ee,Badge:te,Skeleton:se}),ie={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},le={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},ne={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},ae={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},re={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},oe={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function L(t){const e=f.c(13),{children:n,columns:l,gap:i,className:a}=t;let c;e[0]!==l?(c=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=c):c=e[1];const o=c,x=ie[i===void 0?4:i],r=o.sm&&le[o.sm],d=o.md&&ne[o.md],g=o.lg&&ae[o.lg],p=o.xl&&re[o.xl],v=o["2xl"]&&oe[o["2xl"]];let N;e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==d||e[6]!==g||e[7]!==p||e[8]!==v?(N=y("w-full grid",x,r,d,g,p,v,a),e[2]=a,e[3]=x,e[4]=r,e[5]=d,e[6]=g,e[7]=p,e[8]=v,e[9]=N):N=e[9];const b=N;let h;return e[10]!==n||e[11]!==b?(h=s.jsx("div",{className:b,children:n}),e[10]=n,e[11]=b,e[12]=h):h=e[12],h}function ce(t){const e=f.c(9),{count:n,columns:l,gap:i,className:a}=t,c=n===void 0?8:n;let o;e[0]!==l?(o=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=o):o=e[1];const m=o,x=i===void 0?4:i;let r;e[2]!==c?(r=Array.from({length:c}).map(de),e[2]=c,e[3]=r):r=e[3];let d;return e[4]!==a||e[5]!==m||e[6]!==x||e[7]!==r?(d=s.jsx(L,{columns:m,gap:x,className:a,children:r}),e[4]=a,e[5]=m,e[6]=x,e[7]=r,e[8]=d):d=e[8],d}function de(t,e){return s.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),s.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const I=Object.assign(L,{Skeleton:ce});function me({invitation:t}){const[e,n]=C.useState(!1),[l,i]=C.useState(!1),a=F(),c=E(),o=async()=>{n(!0);try{const r=await _.organization.acceptInvitation({invitationId:t.id});if(r.error)w.error(r.error.message),n(!1);else{const d=await _.organization.setActive({organizationId:t.organizationId});d?.data?.slug?(w.success("Invitation accepted!"),c({to:"/$org",params:{org:d.data.slug}})):(w.success("Invitation accepted! Redirecting..."),c({to:"/"}))}}catch{w.error("Failed to accept invitation"),n(!1)}},m=async()=>{i(!0);try{const r=await _.organization.rejectInvitation({invitationId:t.id});r.error?(w.error(r.error.message),i(!1)):(w.success("Invitation rejected"),await a.invalidateQueries(),i(!1))}catch{w.error("Failed to reject invitation"),i(!1)}},x=t.organizationName||t.organizationId;return s.jsxs(u,{className:"border-dashed",children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:"",fallback:x,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsx(u.Subtitle,{children:"You've been invited to join"}),s.jsx(u.Title,{children:x})]})]}),s.jsx(u.Footer,{className:"border-t border-dashed",children:s.jsxs("div",{className:"flex h-3.5 items-center gap-2 w-full",children:[s.jsx($,{onClick:o,disabled:e||l,className:"flex-1",size:"sm",children:e?"Accepting...":s.jsxs(s.Fragment,{children:[s.jsx(q,{size:16}),"Accept"]})}),s.jsx($,{variant:"outline",onClick:m,disabled:e||l,className:"flex-1",size:"sm",children:l?"Declining...":s.jsxs(s.Fragment,{children:[s.jsx(M,{size:16}),"Decline"]})})]})})]})}function xe({query:t}){const e=C.useContext(O),{data:n}=e.hooks.useListUserInvitations(),i=(n??[]).filter(c=>c.status==="pending"&&new Date(c.expiresAt)>new Date),a=t?(()=>{const c=t.toLowerCase();return i.filter(o=>o.organizationName?.toLowerCase().includes(c)||o.organizationId.toLowerCase().includes(c))})():i;return a.length===0?null:s.jsxs("div",{className:"mb-16",children:[s.jsx("h2",{className:"text-lg font-medium pb-2 border-b border-border/50 mb-6 px-2",children:"Invitations"}),s.jsx(I,{columns:{sm:2,md:3,lg:4},children:a.map(c=>s.jsx(me,{invitation:c},c.id))})]})}function ue(t){const e=f.c(14),{query:n}=t,{data:l}=_.useListOrganizations(),i=E();let a;e[0]!==l||e[1]!==n?(a=l?n?(()=>{const r=n.toLowerCase();return l.filter(d=>d.name.toLowerCase().includes(r)||d.slug.toLowerCase().includes(r))})():l:[],e[0]=l,e[1]=n,e[2]=a):a=e[2];const c=a;if(!l||l.length===0){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=r):r=e[3],r}if(c.length===0){let r;return e[4]!==n?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=r):r=e[5],r}let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o={sm:2,md:3,lg:4},e[6]=o):o=e[6];let m;if(e[7]!==c||e[8]!==i){let r;e[10]!==i?(r=d=>s.jsxs(u,{onNavigate:()=>i({to:"/$org",params:{org:d.slug}}),children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:d.logo||"",fallback:d.name,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsxs(u.Subtitle,{children:["@",d.slug]}),s.jsx(u.Title,{children:d.name})]})]}),s.jsx(u.Footer,{children:s.jsxs("div",{className:"flex h-3.5 items-center text-xs text-muted-foreground",children:["Created:"," ",new Date(d.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},d.id),e[10]=i,e[11]=r):r=e[11],m=c.map(r),e[7]=c,e[8]=i,e[9]=m}else m=e[9];let x;return e[12]!==m?(x=s.jsx(I,{columns:o,children:m}),e[12]=m,e[13]=x):x=e[13],x}function fe(t){const e=f.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Q,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let i;return e[1]!==n.message?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[l,s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=i):i=e[2],i}function ge(){const t=f.c(27),{error:e,isPending:n}=_.useListOrganizations(),[l,i]=C.useState(""),[a,c]=C.useState(!1),o=C.useDeferredValue(l);if(n){let j;return t[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx("div",{className:"@container",children:s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})}),t[0]=j):j=t[0],j}if(e){let j;return t[1]!==e?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx(fe,{error:e})}),t[1]=e,t[2]=j):j=t[2],j}let m;t[3]!==o?(m=s.jsx(C.Suspense,{fallback:null,children:s.jsx(xe,{query:o})}),t[3]=o,t[4]=m):m=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("h2",{className:"text-lg font-medium",children:"My organizations"}),t[5]=x):x=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(T,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),t[6]=r):r=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=j=>i(j.target.value),t[7]=d):d=t[7];let g;t[8]!==l?(g=s.jsxs("div",{className:"relative",children:[r,s.jsx(U,{className:"pl-8 h-8 w-52 border-none shadow-none focus-visible:ring-0",placeholder:"Search organizations...",value:l,onChange:d})]}),t[8]=l,t[9]=g):g=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs($,{size:"sm",onClick:()=>c(!0),children:[s.jsx(B,{size:16}),s.jsx("span",{children:"New organization"})]}),t[10]=p):p=t[10];let v;t[11]!==g?(v=s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-border/50 mb-6 px-2",children:[x,s.jsxs("div",{className:"flex items-center gap-3",children:[g,p]})]}),t[11]=g,t[12]=v):v=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[13]=N):N=t[13];let b;t[14]!==o?(b=s.jsx(C.Suspense,{fallback:N,children:s.jsx(ue,{query:o})}),t[14]=o,t[15]=b):b=t[15];let h;t[16]!==v||t[17]!==b?(h=s.jsxs("div",{children:[v,b]}),t[16]=v,t[17]=b,t[18]=h):h=t[18];let S;t[19]!==m||t[20]!==h?(S=s.jsxs("div",{className:"@container",children:[m,h]}),t[19]=m,t[20]=h,t[21]=S):S=t[21];let z;t[22]!==a?(z=s.jsx(P,{open:a,onOpenChange:c}),t[22]=a,t[23]=z):z=t[23];let A;return t[24]!==S||t[25]!==z?(A=s.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[S,z]}),t[24]=S,t[25]=z,t[26]=A):A=t[26],A}function Ee(){const t=f.c(4),e=R(),{data:n,isPending:l}=_.useListOrganizations();if(e.localMode){if(l){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(D,{}),t[0]=c):c=t[0],c}const a=n?.[0];if(a?.slug){const c=`/${a.slug}/org-admin`;let o;return t[1]!==c?(o=s.jsx(H,{to:c,replace:!0}),t[1]=c,t[2]=o):o=t[2],o}}let i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"min-h-full",children:s.jsx(ge,{})}),t[3]=i):i=t[3],i}export{Ee as default};
@@ -1 +1 @@
1
- import{c as X,r as F,z as K,j as t,B as T}from"./index-C2na4guL.js";import{I as Z}from"./input-DUsZ0674.js";import{b as q,P as G,a as H}from"./popover-BmtBdGjb.js";import{S as J}from"./scroll-area-CCwz27Cs.js";import{n as Q}from"./Container-DegtKaTT.js";import{i as V}from"./Edit05-BGwpCOy8.js";import{i as W}from"./Link01-DRbcjvnt.js";import{s as ee}from"./XClose-BvkrJnEc.js";const te=0,se=38;function re(){const i=[];for(let e=te;e<=se;e++)i.push(`/icons/capy-${e}.png`);return i}const le={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},oe=re();function xe(i){const e=X.c(53),{value:r,onChange:o,name:c,size:S,className:I,fallbackIcon:a}=i,m=S===void 0?"lg":S,[s,n]=F.useState(""),[U,w]=F.useState(!1);let A;e[0]!==o?(A=l=>{o(l),w(!1),n("")},e[0]=o,e[1]=A):A=e[1];const $=A;let _;e[2]!==s||e[3]!==o?(_=()=>{const l=s.trim();l&&(o(l),w(!1),n(""))},e[2]=s,e[3]=o,e[4]=_):_=e[4];const f=_;let k;e[5]!==o?(k=()=>{o(null),w(!1),n("")},e[5]=o,e[6]=k):k=e[6];const D=k,L=le[m];let d;e[7]!==I||e[8]!==L?(d=K("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",L,I),e[7]=I,e[8]=L,e[9]=d):d=e[9];const M=r??"no-icon";let u;e[10]!==a||e[11]!==c||e[12]!==M||e[13]!==r?(u=t.jsx(ie,{icon:r,name:c,fallbackIcon:a},M),e[10]=a,e[11]=c,e[12]=M,e[13]=r,e[14]=u):u=e[14];let z;e[15]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(V,{size:16,className:"text-white"})}),e[15]=z):z=e[15];let p;e[16]!==d||e[17]!==u?(p=t.jsx(q,{asChild:!0,children:t.jsxs("button",{type:"button",className:d,children:[u,z]})}),e[16]=d,e[17]=u,e[18]=p):p=e[18];let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=P):P=e[19];let h;e[20]!==D||e[21]!==r?(h=r&&t.jsxs(T,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:D,children:[t.jsx(ee,{size:12}),"Remove"]}),e[20]=D,e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[P,h]}),e[23]=h,e[24]=x):x=e[24];let b;e[25]!==$||e[26]!==r?(b=oe.map(l=>t.jsx("button",{type:"button",onClick:()=>$(l),className:K("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",r===l?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:l,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},l)),e[25]=$,e[26]=r,e[27]=b):b=e[27];let g;e[28]!==b?(g=t.jsx(J,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:b})}),e[28]=b,e[29]=g):g=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(W,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=E):E=e[30];let R;e[31]===Symbol.for("react.memo_cache_sentinel")?(R=l=>n(l.target.value),e[31]=R):R=e[31];let j;e[32]!==f?(j=l=>{l.key==="Enter"&&(l.preventDefault(),f())},e[32]=f,e[33]=j):j=e[33];let v;e[34]!==s||e[35]!==j?(v=t.jsx(Z,{value:s,onChange:R,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:j}),e[34]=s,e[35]=j,e[36]=v):v=e[36];let O;e[37]!==s?(O=s.trim(),e[37]=s,e[38]=O):O=e[38];const Y=!O;let y;e[39]!==f||e[40]!==Y?(y=t.jsx(T,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:f,disabled:Y,children:"Apply"}),e[39]=f,e[40]=Y,e[41]=y):y=e[41];let N;e[42]!==v||e[43]!==y?(N=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[E,v,y]}),e[42]=v,e[43]=y,e[44]=N):N=e[44];let C;e[45]!==x||e[46]!==g||e[47]!==N?(C=t.jsx(G,{align:"start",className:"w-80 p-0",onOpenAutoFocus:ne,children:t.jsxs("div",{className:"flex flex-col",children:[x,g,N]})}),e[45]=x,e[46]=g,e[47]=N,e[48]=C):C=e[48];let B;return e[49]!==U||e[50]!==p||e[51]!==C?(B=t.jsxs(H,{open:U,onOpenChange:w,children:[p,C]}),e[49]=U,e[50]=p,e[51]=C,e[52]=B):B=e[52],B}function ne(i){return i.preventDefault()}function ie(i){const e=X.c(8),{icon:r,name:o,fallbackIcon:c}=i,[S,I]=F.useState(!1);if(!r||S){let s;e[0]!==c?(s=c??t.jsx(Q,{size:24,className:"text-muted-foreground"}),e[0]=c,e[1]=s):s=e[1];let n;return e[2]!==s?(n=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:s}),e[2]=s,e[3]=n):n=e[3],n}let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>I(!0),e[4]=a):a=e[4];let m;return e[5]!==r||e[6]!==o?(m=t.jsx("img",{src:r,alt:o,className:"h-full w-full object-cover",onError:a}),e[5]=r,e[6]=o,e[7]=m):m=e[7],m}export{xe as I};
1
+ import{c as X,r as F,z as K,j as t,B as T}from"./index-Cag7rf5f.js";import{I as Z}from"./input-BU10AGC6.js";import{b as q,P as G,a as H}from"./popover-BGTZ4Jg2.js";import{S as J}from"./scroll-area-B52F-BUc.js";import{n as Q}from"./Container-DMtRMvOi.js";import{i as V}from"./Edit05-syMMdkAn.js";import{i as W}from"./Link01-DPzj4tpz.js";import{s as ee}from"./XClose-C-K_Vaja.js";const te=0,se=38;function re(){const i=[];for(let e=te;e<=se;e++)i.push(`/icons/capy-${e}.png`);return i}const le={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},oe=re();function xe(i){const e=X.c(53),{value:r,onChange:o,name:c,size:S,className:I,fallbackIcon:a}=i,m=S===void 0?"lg":S,[s,n]=F.useState(""),[U,w]=F.useState(!1);let A;e[0]!==o?(A=l=>{o(l),w(!1),n("")},e[0]=o,e[1]=A):A=e[1];const $=A;let _;e[2]!==s||e[3]!==o?(_=()=>{const l=s.trim();l&&(o(l),w(!1),n(""))},e[2]=s,e[3]=o,e[4]=_):_=e[4];const f=_;let k;e[5]!==o?(k=()=>{o(null),w(!1),n("")},e[5]=o,e[6]=k):k=e[6];const D=k,L=le[m];let d;e[7]!==I||e[8]!==L?(d=K("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",L,I),e[7]=I,e[8]=L,e[9]=d):d=e[9];const M=r??"no-icon";let u;e[10]!==a||e[11]!==c||e[12]!==M||e[13]!==r?(u=t.jsx(ie,{icon:r,name:c,fallbackIcon:a},M),e[10]=a,e[11]=c,e[12]=M,e[13]=r,e[14]=u):u=e[14];let z;e[15]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(V,{size:16,className:"text-white"})}),e[15]=z):z=e[15];let p;e[16]!==d||e[17]!==u?(p=t.jsx(q,{asChild:!0,children:t.jsxs("button",{type:"button",className:d,children:[u,z]})}),e[16]=d,e[17]=u,e[18]=p):p=e[18];let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=P):P=e[19];let h;e[20]!==D||e[21]!==r?(h=r&&t.jsxs(T,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:D,children:[t.jsx(ee,{size:12}),"Remove"]}),e[20]=D,e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[P,h]}),e[23]=h,e[24]=x):x=e[24];let b;e[25]!==$||e[26]!==r?(b=oe.map(l=>t.jsx("button",{type:"button",onClick:()=>$(l),className:K("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",r===l?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:l,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},l)),e[25]=$,e[26]=r,e[27]=b):b=e[27];let g;e[28]!==b?(g=t.jsx(J,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:b})}),e[28]=b,e[29]=g):g=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(W,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=E):E=e[30];let R;e[31]===Symbol.for("react.memo_cache_sentinel")?(R=l=>n(l.target.value),e[31]=R):R=e[31];let j;e[32]!==f?(j=l=>{l.key==="Enter"&&(l.preventDefault(),f())},e[32]=f,e[33]=j):j=e[33];let v;e[34]!==s||e[35]!==j?(v=t.jsx(Z,{value:s,onChange:R,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:j}),e[34]=s,e[35]=j,e[36]=v):v=e[36];let O;e[37]!==s?(O=s.trim(),e[37]=s,e[38]=O):O=e[38];const Y=!O;let y;e[39]!==f||e[40]!==Y?(y=t.jsx(T,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:f,disabled:Y,children:"Apply"}),e[39]=f,e[40]=Y,e[41]=y):y=e[41];let N;e[42]!==v||e[43]!==y?(N=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[E,v,y]}),e[42]=v,e[43]=y,e[44]=N):N=e[44];let C;e[45]!==x||e[46]!==g||e[47]!==N?(C=t.jsx(G,{align:"start",className:"w-80 p-0",onOpenAutoFocus:ne,children:t.jsxs("div",{className:"flex flex-col",children:[x,g,N]})}),e[45]=x,e[46]=g,e[47]=N,e[48]=C):C=e[48];let B;return e[49]!==U||e[50]!==p||e[51]!==C?(B=t.jsxs(H,{open:U,onOpenChange:w,children:[p,C]}),e[49]=U,e[50]=p,e[51]=C,e[52]=B):B=e[52],B}function ne(i){return i.preventDefault()}function ie(i){const e=X.c(8),{icon:r,name:o,fallbackIcon:c}=i,[S,I]=F.useState(!1);if(!r||S){let s;e[0]!==c?(s=c??t.jsx(Q,{size:24,className:"text-muted-foreground"}),e[0]=c,e[1]=s):s=e[1];let n;return e[2]!==s?(n=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:s}),e[2]=s,e[3]=n):n=e[3],n}let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>I(!0),e[4]=a):a=e[4];let m;return e[5]!==r||e[6]!==o?(m=t.jsx("img",{src:r,alt:o,className:"h-full w-full object-cover",onError:a}),e[5]=r,e[6]=o,e[7]=m):m=e[7],m}export{xe as I};
@@ -1 +1 @@
1
- import{r as i,j as t,U as o}from"./index-C2na4guL.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
1
+ import{r as i,j as t,U as o}from"./index-Cag7rf5f.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
@@ -1 +1 @@
1
- import{bP as _}from"./index-C2na4guL.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const P=_(g);export{P as R,g as r};
1
+ import{bO as _}from"./index-Cag7rf5f.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
@@ -1 +1 @@
1
- import{r as s,Q as L,R as B,j as d,T,U as y,W as b,X as U,Y as E,Z as _,$ as q,a0 as w,a1 as K,a2 as V}from"./index-C2na4guL.js";var I="Radio",[z,P]=w(I),[H,W]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(c,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(g,o);return d.jsx(q,{present:n||r.checked,children:d.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=K(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Q]=w(C,[_,P]),j=_(),N=P(),[Z,$]=Q(C),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return d.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:d.jsx(T,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=$(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(U,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var J="RadioGroupIndicator",F=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(G,{...e,...n,ref:c})});F.displayName=J;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
1
+ import{r as s,Q as L,R as B,j as d,T,U as y,W as b,X as U,Y as E,Z as _,$ as q,a0 as w,a1 as K,a2 as V}from"./index-Cag7rf5f.js";var I="Radio",[z,P]=w(I),[H,W]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(c,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(g,o);return d.jsx(q,{present:n||r.checked,children:d.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=K(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Q]=w(C,[_,P]),j=_(),N=P(),[Z,$]=Q(C),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return d.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:d.jsx(T,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=$(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(U,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var J="RadioGroupIndicator",F=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(G,{...e,...n,ref:c})});F.displayName=J;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};