decocms 4.584.4 → 4.584.6

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 (471) hide show
  1. package/dist/client/assets/{AlertCircle-2biWQHtq.js → AlertCircle-CPiOwWun.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DvfrWxxt.js → AreaChart-DviRRHwS.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-stTwodlf.js → ArrowLeft-BmNyLgKT.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BThnPhTS.js → ArrowRight-eaR9pEFa.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BAWJsMTM.js → ArrowUp-jEyjY7ti.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-D1Av52an.js → BookOpen01-anezSoTd.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-C5LAC6aj.js → CartesianChart-CCoStszf.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DIEIRTlJ.js → CategoricalChart-D4s5JRnh.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BaFY7ptX.js → CheckCircle-Cyt1BwLE.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-D3VUgCNv.js → ChevronDown-DHu3fSw0.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-Bk8Cwed4.js → ChevronSelectorVertical-CADaAEiD.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Dj0hyz3c.js → ChevronUp-XsNgN3o9.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CHbf8a10.js → CreditCard01-Cu1-B7H4.js} +1 -1
  14. package/dist/client/assets/{Eye-Cf3Bk97P.js → Eye-w_JiO-fJ.js} +1 -1
  15. package/dist/client/assets/{File02-B611JRAO.js → File02-CG-VTATo.js} +1 -1
  16. package/dist/client/assets/{Globe04-DWyQ-g9h.js → Globe04-OpdFYH01.js} +1 -1
  17. package/dist/client/assets/{Image01-B-xEsNge.js → Image01-Y2lD5lzL.js} +1 -1
  18. package/dist/client/assets/{Key01-Cdz7yQHR.js → Key01-BzZWEKIv.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-LSMf02jr.js → LayoutLeft-BRKXPCjt.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-D3lrBb-W.js → LinkBroken01-oT9QqlUI.js} +1 -1
  21. package/dist/client/assets/MessageCircle01-Ccsb6qrK.js +1 -0
  22. package/dist/client/assets/{Minus-CFKaTZ4w.js → Minus-CqZyDWGo.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BCnTCiJw.js → Monitor01-BwGctKTP.js} +1 -1
  24. package/dist/client/assets/{Play-DSNCWaN5.js → Play-CBJR-IvJ.js} +1 -1
  25. package/dist/client/assets/{Plus-DIi6CyTF.js → Plus-INbg-jHc.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-BxF4v8QP.js → ReferenceLine-xYjCzhRl.js} +1 -1
  27. package/dist/client/assets/{SearchMd-Da2IZb-Y.js → SearchMd-zyGFO7cc.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-C5xu34HU.js → ShoppingBag01-DM_RSubP.js} +1 -1
  29. package/dist/client/assets/{Sun-Co2EA9V9.js → Sun-DjNmeFt2.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-tHZa6eIg.js → SwitchHorizontal01-Cfysn-sK.js} +1 -1
  31. package/dist/client/assets/{Tool01-DaKVtiIV.js → Tool01-BR1SF2OD.js} +1 -1
  32. package/dist/client/assets/{Tooltip-B9ytUqgf.js → Tooltip-A8NJxZe2.js} +1 -1
  33. package/dist/client/assets/{Trash01-DnGKoQaN.js → Trash01-thCRPjRX.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-C3VEXl1_.js → TrendUp01-PuhB09lM.js} +1 -1
  35. package/dist/client/assets/{Upload01-BOFi9m67.js → Upload01-phZoBZ05.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-c0aRTosj.js → UserCheck01-D6gLgI3l.js} +1 -1
  37. package/dist/client/assets/{UserSquare-BAoPnOeW.js → UserSquare-BHfTOZb7.js} +1 -1
  38. package/dist/client/assets/{Users01-ZvH6u4Ab.js → Users01-DVJrVMQW.js} +1 -1
  39. package/dist/client/assets/{XClose-DzMWv_Uv.js → XClose-_lsllZaX.js} +1 -1
  40. package/dist/client/assets/{Zap-OKenL_oO.js → Zap-B4USkjaG.js} +1 -1
  41. package/dist/client/assets/{access-gate-ClalGijg.js → access-gate-BNdHKm1_.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-D--FCKqG.js → add-connection-dialog-6UuPoub8.js} +1 -1
  43. package/dist/client/assets/agent-app-lmDlBMa5.js +1 -0
  44. package/dist/client/assets/agent-assets-BN7WhmKl.js +1 -0
  45. package/dist/client/assets/{agent-automation-B2cEM1Bc.js → agent-automation-v65X1xNt.js} +1 -1
  46. package/dist/client/assets/agent-automations-BeeN_BVh.js +1 -0
  47. package/dist/client/assets/agent-blog-BFEHxit4.js +2 -0
  48. package/dist/client/assets/agent-blog-post-B1rvGpYz.js +2 -0
  49. package/dist/client/assets/agent-calendar-DBKIf8Hf.js +1 -0
  50. package/dist/client/assets/{agent-capabilities-DzGi2WRP.js → agent-capabilities-BTvAxwai.js} +1 -1
  51. package/dist/client/assets/agent-connect-sources-DaR7U6rn.js +1 -0
  52. package/dist/client/assets/agent-deck-CIU6uWE2.js +1 -0
  53. package/dist/client/assets/agent-e2e-110pSWXT.js +1 -0
  54. package/dist/client/assets/agent-experiments-DJt8HpNL.js +1 -0
  55. package/dist/client/assets/agent-file-DhEq-PgR.js +1 -0
  56. package/dist/client/assets/agent-hosting-De3hAgD0.js +1 -0
  57. package/dist/client/assets/agent-icon-BHVUedtV.js +1 -0
  58. package/dist/client/assets/agent-library-Br8v5MtW.js +1 -0
  59. package/dist/client/assets/agent-library-file-B0DaymPI.js +1 -0
  60. package/dist/client/assets/agent-overview-CSM2fYNF.js +1 -0
  61. package/dist/client/assets/{agent-releases-Jb-DRZyT.js → agent-releases-DughmMr9.js} +1 -1
  62. package/dist/client/assets/agent-settings-B-H1WO5c.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-DX2RxC23.js → agent-site-editor-CkKxXUCS.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-gGn1LR2B.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-N_B-mw4A.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-DLVtRjzS.js +1 -0
  67. package/dist/client/assets/agent-view-CrGDO6Mp.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-ByEe6Kbs.js → agent-view-guard-_mDgSmkI.js} +1 -1
  69. package/dist/client/assets/{ai-providers-CsmtApl_.js → ai-providers-Cxi9FSbe.js} +1 -1
  70. package/dist/client/assets/{alert-C2n5idj-.js → alert-DxQDfLz2.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-DlfD83Jx.js → analytics-sections-Dh2b8_pn.js} +1 -1
  72. package/dist/client/assets/api-keys-B2pOUk_Z.js +1 -0
  73. package/dist/client/assets/{api-keys-qOJKXTmv.js → api-keys-Be2yLPsn.js} +1 -1
  74. package/dist/client/assets/app-editor-QhVYHGub.js +1 -0
  75. package/dist/client/assets/{asset-utils-DbzM_DGD.js → asset-utils-D9WZTXXH.js} +1 -1
  76. package/dist/client/assets/{auth-YOK5D_Me.js → auth-Bl-k7r97.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-Dn0xYuu6.js → auth-catchall-ByvekoyT.js} +1 -1
  78. package/dist/client/assets/{auth-entry-DecLa6gE.js → auth-entry-BPxiAcBl.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-CY03V6-t.js → auth-split-layout-DgG0w0d3.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-DCLMPjbk.js → authenticate-and-persist-oauth-C1fZAYJ2.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-BUrE2X7w.js → automation-list-row-B3jZpRQS.js} +1 -1
  82. package/dist/client/assets/{automation-runs-RS2kKrcP.js → automation-runs-TDsSFV6_.js} +1 -1
  83. package/dist/client/assets/automations-DFpmHeuU.js +1 -0
  84. package/dist/client/assets/{badge-u1zWRb7U.js → badge-D21Nz4Kd.js} +1 -1
  85. package/dist/client/assets/{block-document-mOU9XugL.js → block-document-DPaNpm7b.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-CBRyPf2V.js → blocks-preview-workspace-context-C1jP5wlw.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-CYSIXRwV.js → blocks-tab-states-CRdiUDZv.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-BYvjhK-J.js → blog-preview-url-DuOaesBL.js} +1 -1
  89. package/dist/client/assets/{blog-schema-BDvuqCPP.js → blog-schema-DejZvpsz.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-BNd1aCij.js → blog-source-gate-BE11jy2O.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-C4By9o6e.js → blog-view-gate-CbTFiiJR.js} +1 -1
  92. package/dist/client/assets/{buckets-D-oIncWn.js → buckets-BoV3lkvR.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-B09vrLn2.js → build-improve-prompt-doc-B4DjxnO3.js} +1 -1
  94. package/dist/client/assets/{calendar-Bl5tE3yL.js → calendar-DBDouA4h.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-CeNWEteQ.js → capability-load-error-Bn6ne_sq.js} +1 -1
  96. package/dist/client/assets/category-editor-Ckuu4IrY.js +1 -0
  97. package/dist/client/assets/{category-tree-CT8tN9Wn.js → category-tree-DA278Cug.js} +1 -1
  98. package/dist/client/assets/{chart-mq3U8kNh.js → chart-B0Dqhb4y.js} +1 -1
  99. package/dist/client/assets/{chat-context-CyKULgZO.js → chat-context-CN0ge7G_.js} +1 -1
  100. package/dist/client/assets/{chat-draft-BmMlo1Yn.js → chat-draft-2YOnJD42.js} +1 -1
  101. package/dist/client/assets/{checkbox-B-Sq9kpD.js → checkbox-B1iPgrjx.js} +1 -1
  102. package/dist/client/assets/choose-editor-Di3gRusv.js +1 -0
  103. package/dist/client/assets/{cli-auth-success-mJt-vwdZ.js → cli-auth-success-CgfmAJWB.js} +1 -1
  104. package/dist/client/assets/cms-settings-editor-D1TcT96z.js +1 -0
  105. package/dist/client/assets/{cms-store-drafts-D3_QRIPZ.js → cms-store-drafts-u7ki7lCC.js} +1 -1
  106. package/dist/client/assets/{collapsible-DsJL4QmF.js → collapsible-Cw6OK2nn.js} +1 -1
  107. package/dist/client/assets/collection-detail-B-bIqzEz.js +1 -0
  108. package/dist/client/assets/{collection-display-button-LVg4n6c9.js → collection-display-button-CuVi5neC.js} +1 -1
  109. package/dist/client/assets/{collection-search-oXbiEWDa.js → collection-search-Z4PinuXc.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DMr9pz3m.js → collection-table-wrapper-8J2sfJZU.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-DGdMH73g.js → collection-tabs-attgS7fY.js} +1 -1
  112. package/dist/client/assets/{combobox-zphXryWn.js → combobox-DEB0BlzS.js} +1 -1
  113. package/dist/client/assets/{command-C3TtnVDj.js → command-_zJuKDCi.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-BiPf-hvx.js → companion-mcps-section-DGVC3-Wp.js} +1 -1
  115. package/dist/client/assets/{config-CCA1XEo0.js → config-BATJRdlj.js} +1 -1
  116. package/dist/client/assets/{connect-CX-NL1If.js → connect-Dmfr5UlW.js} +3 -3
  117. package/dist/client/assets/{connect-key-v6EnOAg0.js → connect-key-68KXBKIV.js} +1 -1
  118. package/dist/client/assets/{connect-layout-_H7NkCcy.js → connect-layout-B8CasJUP.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-DVHC7ciT.js → connect-source-dialog-Czz2ct9m.js} +1 -1
  120. package/dist/client/assets/{connection-DppgioJv.js → connection-DbiyGcIj.js} +1 -1
  121. package/dist/client/assets/{connection-card-CAubDaDo.js → connection-card-Cm_8ZjFM.js} +1 -1
  122. package/dist/client/assets/connection-detail-B2CQl_iE.js +1 -0
  123. package/dist/client/assets/{connection-form-helpers-CltjtabR.js → connection-form-helpers-Bf8srwIN.js} +1 -1
  124. package/dist/client/assets/{connection-slug-Dmg7T7Vj.js → connection-slug-BFmtX8Pj.js} +1 -1
  125. package/dist/client/assets/connections-DVLBrRQx.js +1 -0
  126. package/dist/client/assets/{content-tab-C4SzMaJf.js → content-tab-B2Ay_G8-.js} +3 -3
  127. package/dist/client/assets/context-a4VYLopJ.js +1 -0
  128. package/dist/client/assets/{context-menu-E_hLRpwM.js → context-menu-DkzmRTYN.js} +1 -1
  129. package/dist/client/assets/{context-shell-DTw_WONz.js → context-shell-C0Osmy2y.js} +4 -4
  130. package/dist/client/assets/{create-organization-dialog-DdX8AuBL.js → create-organization-dialog-sc0Ji-Lm.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-BmoCtcCb.js → daily-pulse-Cug1zKXO.js} +1 -1
  132. package/dist/client/assets/{delete-copy-Bqhd3J4I.js → delete-copy-oEZ7hmoE.js} +1 -1
  133. package/dist/client/assets/{device-hint-i7B63ea7.js → device-hint-0Up2oNr2.js} +1 -1
  134. package/dist/client/assets/discover-BbnMDogo.js +1 -0
  135. package/dist/client/assets/{domain-settings-U9k6HRc-.js → domain-settings-A82VOj7n.js} +1 -1
  136. package/dist/client/assets/{drawer-B0J2YUt9.js → drawer-GUKur5v4.js} +1 -1
  137. package/dist/client/assets/{editor-C-kmJ80m.js → editor-DFpyUa_U.js} +1 -1
  138. package/dist/client/assets/{editor-classes-BqutBM91.js → editor-classes-BrZH4rK_.js} +1 -1
  139. package/dist/client/assets/{empty-message-nc3IkvMJ.js → empty-message-pNIo6swu.js} +1 -1
  140. package/dist/client/assets/{empty-state-DPbofsef.js → empty-state-BO8_YMfm.js} +1 -1
  141. package/dist/client/assets/{empty-state-BmyT_5Ud.js → empty-state-BlGH7QIy.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-BbkulId3.js → experiments-tab-choice-N83ua-pV.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-PHmYu-pc.js → extract-connection-data-CZ3WadBx.js} +1 -1
  144. package/dist/client/assets/{feature-gate-Cwsu0gDu.js → feature-gate-CmVeJQy1.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-Ds2ZQTiK.js → feature-paywall-CxB3q7CQ.js} +1 -1
  146. package/dist/client/assets/file-explorer-DEJ_qRIq.js +2 -0
  147. package/dist/client/assets/{file-preview-DSm-7S4H.js → file-preview-D0PiXMMr.js} +1 -1
  148. package/dist/client/assets/{file-share-button-CYGVH_8S.js → file-share-button-CTn6vuhs.js} +2 -2
  149. package/dist/client/assets/{file-type-icon-DZFXNty2.js → file-type-icon-BoZOJHAX.js} +1 -1
  150. package/dist/client/assets/{folder-icon-4CTV3FlH.js → folder-icon-Db4s-PbL.js} +1 -1
  151. package/dist/client/assets/{form-DSjQLmYE.js → form-CAsgx2CK.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-BZExhlgL.js → frame-navigation-BzE9s8s7.js} +1 -1
  153. package/dist/client/assets/{gateway-client-CeYZgY-b.js → gateway-client-zNeoWGKO.js} +1 -1
  154. package/dist/client/assets/{general-CL3T6ERV.js → general-DmuSgNby.js} +1 -1
  155. package/dist/client/assets/{github-icon-wM35FqKc.js → github-icon-CIUXCHYd.js} +1 -1
  156. package/dist/client/assets/{held-block-view-DSFOZetO.js → held-block-view-Ce7FjzFo.js} +1 -1
  157. package/dist/client/assets/home-DfvWLWjX.js +1 -0
  158. package/dist/client/assets/{home-overview-vUj_qJFl.js → home-overview-DrTiQovk.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-BP36JFCJ.js → hosted-reconcile-OWVjsnRk.js} +1 -1
  160. package/dist/client/assets/{icon-button-1KJ2Z_eZ.js → icon-button-B2FYU_Bm.js} +1 -1
  161. package/dist/client/assets/{index-B2xscTM1.js → index-6N05u2FT.js} +1 -1
  162. package/dist/client/assets/{index-B3uhijXz.js → index-8HE48uEz.js} +1 -1
  163. package/dist/client/assets/{index-CU3BImsY.js → index-BUiCUWOI.js} +1 -1
  164. package/dist/client/assets/{index-CdzvkAP5.js → index-BYMPhxVC.js} +1 -1
  165. package/dist/client/assets/{index-C1phPALZ.js → index-C8tbN8yc.js} +1 -1
  166. package/dist/client/assets/{index-CUfLVsD2.js → index-CDCs_KiA.js} +1 -1
  167. package/dist/client/assets/{index-D_CPaxcY.js → index-Cd1d2KVB.js} +1 -1
  168. package/dist/client/assets/{index-dlWHc2Bm.js → index-CexiDE6J.js} +1 -1
  169. package/dist/client/assets/{index-DyQTkyEx.js → index-Cz7ziqq8.js} +1 -1
  170. package/dist/client/assets/{index-8l9Qf34V.js → index-D-GlxhqC.js} +1 -1
  171. package/dist/client/assets/{index-CYAyx9BI.js → index-DFgV3_JA.js} +1 -1
  172. package/dist/client/assets/index-DIG6wtlF.js +4 -0
  173. package/dist/client/assets/index-DbzQIfNo.js +1 -0
  174. package/dist/client/assets/{index-0lR5HspR.js → index-FR7-LkFs.js} +3 -3
  175. package/dist/client/assets/{index-CDf54xNL.js → index-GXFk32Bw.js} +1 -1
  176. package/dist/client/assets/{index-cVlGSMYO.js → index-HW6xhQCR.js} +1 -1
  177. package/dist/client/assets/{index-redirect-Cw9DnSdB.js → index-redirect-CYieSEon.js} +1 -1
  178. package/dist/client/assets/{index-DME8X3oK.js → index-y09j8GJz.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-D9dKA0TJ.js → infiniteQueryObserver-Bo9y-Vk0.js} +1 -1
  180. package/dist/client/assets/{infra-billing-Dwshyvx-.js → infra-billing-D3tyPPPr.js} +1 -1
  181. package/dist/client/assets/{input-Bu6nOsrP.js → input-PMXl5ojy.js} +4 -4
  182. package/dist/client/assets/{input-CQkDYPsU.js → input-oqagqAas.js} +1 -1
  183. package/dist/client/assets/{integration-icon-DHXcMFDo.js → integration-icon-D_iw-M-g.js} +1 -1
  184. package/dist/client/assets/{item-actions-DOzBfUoT.js → item-actions-WlA-gUNT.js} +1 -1
  185. package/dist/client/assets/{jira-icon-dtv6HIJ7.js → jira-icon-hVbN0Tf4.js} +1 -1
  186. package/dist/client/assets/{label-B79DRc98.js → label-BrDhuinX.js} +1 -1
  187. package/dist/client/assets/{layout-CbTYnQxl.js → layout-CldmtRbE.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-Tsfj3WHS.js → legacy-admin-welcome-dialog-CCTtGdld.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-DyaOvdyS.js → legacy-agents-deep-CS8Mx6L7.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-Bkvx9ZOX.js → legacy-main-redirect-DjyGSD7M.js} +1 -1
  191. package/dist/client/assets/library-BeqMbeTr.js +1 -0
  192. package/dist/client/assets/{library-tab-gR9RARZA.js → library-tab-B6NZkMbf.js} +1 -1
  193. package/dist/client/assets/{login-12qDyxH0.js → login-YS1-2Nue.js} +1 -1
  194. package/dist/client/assets/{markdown-CFFvPMSZ.js → markdown-CV0DScZs.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-QY2zjE8v.js → mcp-app-renderer-BD-0mBhr.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-CK5Wc-Cr.js → mcp-oauth-ByqxUWfx.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-CVyeIX5s.js → mcp-oauth-DjAD5Pae.js} +1 -1
  198. package/dist/client/assets/{members-Dvtr2FPU.js → members-BzSWZ_o7.js} +1 -1
  199. package/dist/client/assets/{memory-C4CXLQtC.js → memory-D4hrI4rc.js} +1 -1
  200. package/dist/client/assets/{mock-board-BzC4_di4.js → mock-board-BbC-KPvo.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-BiU4o5qP.js → monaco-editor-BrHCIY9F.js} +1 -1
  202. package/dist/client/assets/{monitoring-DHlCLsXh.js → monitoring-BaOt4SvI.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-1uQ1lOlX.js → monitoring-stats-row-BoT5RyWa.js} +1 -1
  204. package/dist/client/assets/{multi-select-9ybiRb1s.js → multi-select-CkLH9zDR.js} +1 -1
  205. package/dist/client/assets/{mustache-D0ICNUck.js → mustache-DbskuLzt.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-CaS0YbZS.js → named-rule-step-CrkqnZE0.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-C1l0e31z.js → named-rule-view-pW8NYIwe.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-cbFrLrDD.js → new-project-dialog-BZf8-lvn.js} +1 -1
  209. package/dist/client/assets/{new-project-store-BZX_mqKj.js → new-project-store-D6y4lbf2.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-DToEz8H0.js → oauth-callback-BAwQm-0A.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-DgaGlvwN.js → oauth-callback-ai-provider-DjnR_ws7.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-rayKVJg0.js → oauth-consent-BgXPtZDW.js} +1 -1
  213. package/dist/client/assets/{onboarding-Bj0uDDLU.js → onboarding-C7bUxdmN.js} +1 -1
  214. package/dist/client/assets/openai-conversation-CaTme7tS.js +3 -0
  215. package/dist/client/assets/{optimistic-project-sidebar-views-BEEdjpUv.js → optimistic-project-sidebar-views-BiUQva9l.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-BYGdz69-.js → order-monitor-day-BkApoxgW.js} +1 -1
  217. package/dist/client/assets/{organization-choice-DDnhnBgH.js → organization-choice-D4iDv_H1.js} +1 -1
  218. package/dist/client/assets/{orgs-DD7506p3.js → orgs-DTRrUWgx.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-CkIdcOP2.js → own-accounts-section-xDHmjKlb.js} +1 -1
  220. package/dist/client/assets/{pair-BbRBY2uh.js → pair-UrNHmvwT.js} +6 -6
  221. package/dist/client/assets/{parse-sections-ugwxBTr3.js → parse-sections-l0PaukKn.js} +4 -4
  222. package/dist/client/assets/plan-Bj7w0fs-.js +1 -0
  223. package/dist/client/assets/{plan-ladder-CUsbmRUg.js → plan-ladder-CypWDEbr.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-BUQKDhDq.js → plan-usage-card-Cj8t_uV_.js} +1 -1
  225. package/dist/client/assets/{popover-Z7qjkGnd.js → popover-7x26sV4l.js} +1 -1
  226. package/dist/client/assets/post-calendar-DVbpAHSG.js +1 -0
  227. package/dist/client/assets/{post-editor-CWBXAOmA.js → post-editor-BgQsbRBJ.js} +2 -2
  228. package/dist/client/assets/preview-content-5lf6CQ1G.js +1 -0
  229. package/dist/client/assets/{preview-dialog-CC_aNvFo.js → preview-dialog-a9oPKORm.js} +1 -1
  230. package/dist/client/assets/{preview-panel-CxxQj4O0.js → preview-panel-B-fYqCTc.js} +1 -1
  231. package/dist/client/assets/{preview-tab-DNrQIHI8.js → preview-tab-CbOIy4cw.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-DBxUKTF9.js → product-picker-dialog-BBOB74pM.js} +1 -1
  233. package/dist/client/assets/{profile-BrB3sruJ.js → profile-Dpdofwex.js} +1 -1
  234. package/dist/client/assets/project-app-view-B-IV2rxA.js +1 -0
  235. package/dist/client/assets/{project-apps-BwTy_4Nz.js → project-apps-FcEysJSf.js} +1 -1
  236. package/dist/client/assets/{project-icon-BTCpO9jF.js → project-icon-BakFKgaM.js} +1 -1
  237. package/dist/client/assets/{project-index-BTtphIo6.js → project-index-CH5Eesm9.js} +1 -1
  238. package/dist/client/assets/project-reports-BMkuATss.js +1 -0
  239. package/dist/client/assets/project-tasks-CgegKZFV.js +1 -0
  240. package/dist/client/assets/projects-DCEjx7vT.js +1 -0
  241. package/dist/client/assets/{projects-empty-state-BRe70t7l.js → projects-empty-state-BwEHnw3B.js} +1 -1
  242. package/dist/client/assets/{prompts-BYNbnGqK.js → prompts-BekDCd-q.js} +1 -1
  243. package/dist/client/assets/record-editor-BhOWKOqq.js +1 -0
  244. package/dist/client/assets/redirect-editor-DsJ26zj5.js +1 -0
  245. package/dist/client/assets/{reports-Cjo6EQGk.js → reports-BbFa4xYC.js} +1 -1
  246. package/dist/client/assets/reports-ezYUNDvN.js +1 -0
  247. package/dist/client/assets/reports-onboarding-BDB7TzgU.js +1 -0
  248. package/dist/client/assets/{reports-tab-xXOU1_ij.js → reports-tab-Q20Na5hW.js} +2 -2
  249. package/dist/client/assets/{repositories-BT1F6Ro6.js → repositories-BdnVmM98.js} +1 -1
  250. package/dist/client/assets/repositories-DRNmonrv.js +1 -0
  251. package/dist/client/assets/{repository-binding-BbJCbkKW.js → repository-binding-DdJXPhL-.js} +1 -1
  252. package/dist/client/assets/{repository-picker-BVbH8azI.js → repository-picker-DcD51j3V.js} +1 -1
  253. package/dist/client/assets/{require-capability-mJTZoDrZ.js → require-capability-Bw_S94S7.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-CmGTdZQW.js → required-auth-layout-81VJBEp9.js} +1 -1
  255. package/dist/client/assets/{reset-password-wnxfyOln.js → reset-password-DHH7NYOb.js} +1 -1
  256. package/dist/client/assets/resizable-BrnNepSm.js +1 -0
  257. package/dist/client/assets/{resolve-tab-icon--dWM7ImC.js → resolve-tab-icon-BAO1NHl-.js} +1 -1
  258. package/dist/client/assets/{review-settings-ggSjEgPT.js → review-settings-vBNXtecT.js} +1 -1
  259. package/dist/client/assets/{role-color-DIwod_gv.js → role-color-BaWVUb4j.js} +1 -1
  260. package/dist/client/assets/{roles-B2YZ-KtP.js → roles-CSUXrIEf.js} +1 -1
  261. package/dist/client/assets/route-BUh0V4ZY.js +1 -0
  262. package/dist/client/assets/route-BuT3rimp.js +1 -0
  263. package/dist/client/assets/route-DXSlTAFB.js +1 -0
  264. package/dist/client/assets/{route-page-header-CFSeiSqP.js → route-page-header-Bjz66AQK.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-BG06NbhU.js → sandbox-git-api-B4kiB_OO.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-BwF-JdS6.js → sandbox-lifecycle-context-DIPvnGzU.js} +1 -1
  267. package/dist/client/assets/{save-status-DRPBK-H_.js → save-status-DUnwCvL6.js} +1 -1
  268. package/dist/client/assets/{schema-WZa17eyn.js → schema-CpgLVA1f.js} +1 -1
  269. package/dist/client/assets/{schema-DrjJ0xuK.js → schema-Do1srOed.js} +1 -1
  270. package/dist/client/assets/{scroll-area-BPsPck6f.js → scroll-area-Cg0VHNwx.js} +1 -1
  271. package/dist/client/assets/{search-input-DqPjHLOd.js → search-input-DLh0nlr5.js} +1 -1
  272. package/dist/client/assets/{search-toggle-CcUy6Dx6.js → search-toggle-n3MSbxdh.js} +1 -1
  273. package/dist/client/assets/{secret-picker-DPrm62tz.js → secret-picker-CA4076-F.js} +1 -1
  274. package/dist/client/assets/{secrets-C0MYrsyn.js → secrets-Nc9lZJ4O.js} +1 -1
  275. package/dist/client/assets/{section-array-field-C8Ft18JA.js → section-array-field-CVPQhOEL.js} +1 -1
  276. package/dist/client/assets/{sections-Cjl6VnNs.js → sections-Cq-1B8bG.js} +1 -1
  277. package/dist/client/assets/sections-editor-DC8FnTKc.js +1 -0
  278. package/dist/client/assets/{select-CwyDmqv5.js → select-DO5UmbiK.js} +1 -1
  279. package/dist/client/assets/{select-model-CcIP7vKI.js → select-model-BxYeGUNe.js} +1 -1
  280. package/dist/client/assets/{seo-editor-CGdapT1Z.js → seo-editor-Cb_-6pbC.js} +1 -1
  281. package/dist/client/assets/{separator-D_pPa7cb.js → separator-ClPt1qls.js} +1 -1
  282. package/dist/client/assets/{session-runtime-o7G6i_EW.js → session-runtime-ByRl2V_-.js} +1 -1
  283. package/dist/client/assets/settings-tab-BB4vDZAN.js +1 -0
  284. package/dist/client/assets/{sheet-Cg9RqTZP.js → sheet-Ba_kC1AK.js} +1 -1
  285. package/dist/client/assets/shell-layout-hxOVAb6r.js +1 -0
  286. package/dist/client/assets/{site-draft-actions-DSnrAPpv.js → site-draft-actions-DS6SP7w_.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-Bq6fbYE-.js → site-draft-view-DoBMGNxF.js} +1 -1
  288. package/dist/client/assets/site-editor-BzkmccDr.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-BxmjYQsg.js → site-editor-toast-CksZ_DBd.js} +1 -1
  290. package/dist/client/assets/skills-CgFC9u75.js +1 -0
  291. package/dist/client/assets/{slider-B4psaiKN.js → slider-BNKhoqMv.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-BX2eLIhp.js → sortable.esm-DW0wRpPm.js} +1 -1
  293. package/dist/client/assets/{sso-BiG8AHnh.js → sso-BrpFyhwL.js} +1 -1
  294. package/dist/client/assets/{suggestion-TAps9nbJ.js → suggestion-DNn_oFJd.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-CvQP5uLw.js → super-agent-icon-Cvg_K_iL.js} +1 -1
  296. package/dist/client/assets/{switch-Byyj-_s4.js → switch-BHmi6NG_.js} +1 -1
  297. package/dist/client/assets/{synced-repos-BooKX7J8.js → synced-repos-DRSlgzhQ.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-Db3bDpxh.js → tab-icon-glyph-C0mr7ZyN.js} +1 -1
  299. package/dist/client/assets/{table-DotyfJjN.js → table-Vs3bc_5a.js} +1 -1
  300. package/dist/client/assets/{tabs-DCkjYFxv.js → tabs-DD53shfE.js} +1 -1
  301. package/dist/client/assets/{task-board-D3W1ksfo.js → task-board-WdgeTNaU.js} +1 -1
  302. package/dist/client/assets/{task-key-h5EZIo5-.js → task-key-BOhf6PeF.js} +1 -1
  303. package/dist/client/assets/{task-route-CmUL8AUw.js → task-route-CKQNtOSa.js} +1 -1
  304. package/dist/client/assets/{task-status-Bm1G3QGR.js → task-status-DDLp4MtP.js} +1 -1
  305. package/dist/client/assets/taskboard-analytics-D59d7L_v.js +1 -0
  306. package/dist/client/assets/{tasks-DP5ow9dB.js → tasks-BJ9tMJk-.js} +1 -1
  307. package/dist/client/assets/tasks-Ch925UQU.js +1 -0
  308. package/dist/client/assets/{textarea-Du2m3jSM.js → textarea-HB4U7ZGE.js} +1 -1
  309. package/dist/client/assets/thread-analytics-_YhjJKsQ.js +1 -0
  310. package/dist/client/assets/thread-button-Qhfu18qZ.js +1 -0
  311. package/dist/client/assets/{thread-intent-DHvySkdI.js → thread-intent-DDQe6PKd.js} +1 -1
  312. package/dist/client/assets/{thread-route-wSguGHHE.js → thread-route-H2DC02zF.js} +1 -1
  313. package/dist/client/assets/thread-route-nxXeVQI9.js +1 -0
  314. package/dist/client/assets/{thread-sheet-body-BUQUjcGl.js → thread-sheet-body-B63iYWkR.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-CHoH8N9M.js → time-range-picker-D62EphZs.js} +1 -1
  316. package/dist/client/assets/{toggle-group-D86mAn_-.js → toggle-group-DsHNAW_o.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-BBpYfu8R.js → tool-set-selector-q7g0t0TT.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-CHq8HHsB.js → toolbar-icon-button-D2GZy3ji.js} +1 -1
  319. package/dist/client/assets/{tooltip-Ck_nh9Yl.js → tooltip-zEsMTxPP.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-B7aWO9LL.js → tooltipContext-DnSCkdE2.js} +1 -1
  321. package/dist/client/assets/{track-CJ65-qhF.js → track-CUdkdM9q.js} +1 -1
  322. package/dist/client/assets/{types-BuOEJdI6.js → types-DMMPR8qW.js} +1 -1
  323. package/dist/client/assets/{url-slug-D1b3rdRU.js → url-slug-DDGhX66k.js} +1 -1
  324. package/dist/client/assets/{usage-stats-4bhjzDAy.js → usage-stats-DV0A8cEM.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-srofbIvQ.js → use-ai-providers-CTFkZoGo.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-CqWc5Y4J.js → use-api-keys-hOWMp9oQ.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-DtD0oNUd.js → use-apply-named-rule-CTLfcvn0.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-BSMZ4qaC.js +1 -0
  329. package/dist/client/assets/{use-automations-E5Kosa3m.js → use-automations-DCTTlEcO.js} +1 -1
  330. package/dist/client/assets/{use-autosave-DziUHask.js → use-autosave-Rfdg2I1F.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-ou9QCF6v.js +1 -0
  332. package/dist/client/assets/use-blog-view-Ba0QG6QU.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-C90_Sb0Z.js → use-chat-layout-state-vbFKmjxB.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-DBfalq5m.js → use-cms-publish-actions-BHXk9tUC.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-Npgg_RJp.js → use-connect-companion-BnUK_glG.js} +1 -1
  336. package/dist/client/assets/{use-connection-C0q-jSdh.js → use-connection-BHM3BFUr.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-NtEmkl7u.js → use-content-sync-BApKNkG6.js} +1 -1
  338. package/dist/client/assets/{use-copy-ByVIiaB6.js → use-copy-d7u6BVsA.js} +1 -1
  339. package/dist/client/assets/{use-current-view-B4f33lr-.js → use-current-view-D_ifkjui.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-CyvDo0R-.js → use-date-fns-locale-BfEJ9DKB.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-CciezuN3.js → use-debounced-autosave-C8qW25SA.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-0zlDzh2p.js → use-debounced-value-COFfhICA.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-zRLku8zm.js → use-deco-credits-BcE9Lgca.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-DgWMESxX.js → use-decopilot-events-DY8bcy2g.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-BDbPp1YD.js → use-delete-block-CGqlkyBO.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-BciDeakv.js → use-delete-connection-D1aTQQJm.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-C2aIOPQg.js → use-deployment-admin-DgU-c4bG.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-BKyi7ehM.js → use-entitlements-b0vun-2_.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-J_CrZVRi.js → use-fast-preview-draft-url-DncEMB04.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-DVw17al7.js → use-file-configs-CwMKmvEP.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-CCNPU7pT.js → use-id-selection-DCKB_8sF.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-CedVK5pZ.js → use-in-settings-CK5SsWhS.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-eisPu2tK.js → use-inbox-feed-CHFMf-DP.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-Bv0m8I3M.js → use-infinite-scroll-BhP62VAS.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-DzlqppJC.js → use-join-requests-DeocFvqW.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-DlfKa_g4.js → use-main-panel-tabs-Du7tjex6.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-CXorv-xo.js → use-mcp-auth-status-BQeDa9px.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-fkOuyPSB.js → use-mcp-client-B9e5PyU5.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-jY6jC3BV.js → use-mcp-prompts-DgapPQcC.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-Mwzjv5d5.js → use-mcp-tools-CxV8OmMI.js} +1 -1
  361. package/dist/client/assets/{use-mobile-CXjkLJXV.js → use-mobile-Dcp3TiKi.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-BezphGiA.js → use-move-blocks-B_Oh4K4K.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-Ca0AM6dU.js → use-navigate-to-agent-8EROExiH.js} +1 -1
  364. package/dist/client/assets/{use-never-published-3e8P5w2U.js → use-never-published-Ct3dv44f.js} +1 -1
  365. package/dist/client/assets/{use-org-fs-DJToHemI.js → use-org-fs-CaJ4jOuW.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-CqRugXxv.js → use-org-notice-CsHPv0ZT.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-Dnk6X-sF.js → use-org-repo-syncs-ClD66yFB.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-B9fQcdU5.js → use-org-sso-ClZgaz67.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-BXnCxXvc.js → use-organization-settings-D9Z_MLl2.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-DqHK2X0K.js → use-panel-navigate-ajPZ-O4i.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-C_zCk0Mn.js → use-project-native-view-presence-DhvS9eeS.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-B8GBe8j5.js → use-project-scope-DbG1jNVV.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-BXQ_yA3h.js → use-recent-apps-DaKCzULH.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-CzDDRLKl.js → use-reports-diagnostic-BiwUdSSa.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-mvMj89Hz.js → use-sandbox-events-DYuy4eXR.js} +1 -1
  376. package/dist/client/assets/{use-secrets-6QgXUAB1.js → use-secrets-BDnSckIs.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-CnRQgTii.js → use-section-preview-base-BA-kLqNd.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-Bhjyugk_.js → use-sidebar-collapsed-BnOq_oEM.js} +1 -1
  379. package/dist/client/assets/{use-tags-C3m5Utp2.js → use-tags-C6EDrEBG.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-D-HdlATY.js → use-task-board-analytics-DeDE1IEl.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-Jj078C6N.js → use-task-board-item-prs-C9H7e6IC.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-BIdFRY0g.js → use-task-board-items-C2I9m2B-.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-CVYzUDXL.js → use-task-board-prompts-D6cb0B6a.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-wFPVfEVd.js → use-task-metadata-CQcB7BzK.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-Bgi0pYPV.js → use-thread-outputs-KaWkhSGH.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-BAWxeU9h.js → use-view-draft-kind-CBmzgnXH.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-Dw3q0_rk.js → use-voice-input-CChbkXIH.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-f2vaHavl.js +1 -0
  389. package/dist/client/assets/{useQueries-xVTbcY2s.js → useQueries-DUm4FupI.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-CSNG6COy.js +1 -0
  391. package/dist/client/assets/{users-jNR72ik_.js → users-B87pV5ii.js} +1 -1
  392. package/dist/client/assets/{utils-CKfi7wAo.js → utils-O_zWQ9Z7.js} +1 -1
  393. package/dist/client/assets/variant-calendar-Bh22mlda.js +1 -0
  394. package/dist/client/assets/{variant-matcher-override-BaB8G3CU.js → variant-matcher-override-BLYg6qNr.js} +1 -1
  395. package/dist/client/assets/{view-header-vZyp7GKr.js → view-header-CDvRMzUc.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-epGYXG_b.js → virtual-mcp-9Ocfu-kl.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-DH6BdOFQ.js → watch-sse-pool-DvEr2HwM.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +626 -626
  400. package/package.json +1 -1
  401. package/dist/client/assets/Minimize01-DxOtSYxf.js +0 -1
  402. package/dist/client/assets/agent-app-BWPeLsRO.js +0 -1
  403. package/dist/client/assets/agent-assets-CHUhHO2y.js +0 -1
  404. package/dist/client/assets/agent-automations-DNTIrqlq.js +0 -1
  405. package/dist/client/assets/agent-blog-DEeWSZUO.js +0 -2
  406. package/dist/client/assets/agent-blog-post-9adnE54u.js +0 -2
  407. package/dist/client/assets/agent-calendar-DcxoJ9Pi.js +0 -1
  408. package/dist/client/assets/agent-connect-sources-C_63Dtr4.js +0 -1
  409. package/dist/client/assets/agent-deck-TJWVLKHG.js +0 -1
  410. package/dist/client/assets/agent-e2e-74LJEPhr.js +0 -1
  411. package/dist/client/assets/agent-experiments-DZPYs2jo.js +0 -1
  412. package/dist/client/assets/agent-file-BhEeotH0.js +0 -1
  413. package/dist/client/assets/agent-hosting-CQXdpYqU.js +0 -1
  414. package/dist/client/assets/agent-icon-DVY218yy.js +0 -1
  415. package/dist/client/assets/agent-library-Br8kU4Bw.js +0 -1
  416. package/dist/client/assets/agent-library-file-RneUYp5m.js +0 -1
  417. package/dist/client/assets/agent-overview-Cr3VHGOr.js +0 -1
  418. package/dist/client/assets/agent-settings-CCVXOUdd.js +0 -1
  419. package/dist/client/assets/agent-site-editor-code-CC0tqUHv.js +0 -2
  420. package/dist/client/assets/agent-site-editor-content-DFS8PfaO.js +0 -1
  421. package/dist/client/assets/agent-site-editor-preview-B8VaLdF7.js +0 -1
  422. package/dist/client/assets/agent-view-BtNkkNqE.js +0 -1
  423. package/dist/client/assets/api-keys-CbomE3sL.js +0 -1
  424. package/dist/client/assets/app-editor-IP-8XvhF.js +0 -1
  425. package/dist/client/assets/automations-CBxiSbjD.js +0 -1
  426. package/dist/client/assets/category-editor-CvfSwi7w.js +0 -1
  427. package/dist/client/assets/choose-editor-DeP6veJd.js +0 -1
  428. package/dist/client/assets/cms-settings-editor-BKYxd1EQ.js +0 -1
  429. package/dist/client/assets/collection-detail-BZyU8Aoo.js +0 -1
  430. package/dist/client/assets/connection-detail-CYXibOPP.js +0 -1
  431. package/dist/client/assets/connections-ZfeMu3GR.js +0 -1
  432. package/dist/client/assets/context-z0raRk55.js +0 -1
  433. package/dist/client/assets/discover-DJYVi1Vh.js +0 -1
  434. package/dist/client/assets/file-explorer-DE0QMUIX.js +0 -2
  435. package/dist/client/assets/home-BKgRVeZ6.js +0 -1
  436. package/dist/client/assets/index-Df5ES5Qh.js +0 -1
  437. package/dist/client/assets/index-DkWUeYd8.js +0 -4
  438. package/dist/client/assets/library-wlXXij9u.js +0 -1
  439. package/dist/client/assets/openai-conversation-C1W9BcXe.js +0 -3
  440. package/dist/client/assets/plan-DKTGILlA.js +0 -1
  441. package/dist/client/assets/post-calendar-MQRDpplQ.js +0 -1
  442. package/dist/client/assets/preview-content-CVE5O8M2.js +0 -1
  443. package/dist/client/assets/project-app-view-Bgu6M3_t.js +0 -1
  444. package/dist/client/assets/project-reports-CVc8aLqj.js +0 -1
  445. package/dist/client/assets/project-tasks-CRCq_bf1.js +0 -1
  446. package/dist/client/assets/projects-Bh4aF2uA.js +0 -1
  447. package/dist/client/assets/record-editor-DzTdWm_J.js +0 -1
  448. package/dist/client/assets/redirect-editor-BA975cBW.js +0 -1
  449. package/dist/client/assets/reports-B2YHS-LL.js +0 -1
  450. package/dist/client/assets/reports-onboarding-BgHRgiL3.js +0 -1
  451. package/dist/client/assets/repositories-Cy9WHEu1.js +0 -1
  452. package/dist/client/assets/resizable-Q9JNFw76.js +0 -1
  453. package/dist/client/assets/route-B5vGmg-f.js +0 -1
  454. package/dist/client/assets/route-CNosFLeV.js +0 -1
  455. package/dist/client/assets/route-CmIIxuEN.js +0 -1
  456. package/dist/client/assets/sections-editor-CKYx3zXJ.js +0 -1
  457. package/dist/client/assets/settings-tab-CXM_5AKi.js +0 -1
  458. package/dist/client/assets/shell-layout-B6tNQH76.js +0 -1
  459. package/dist/client/assets/site-editor-B8tZmIJz.js +0 -1
  460. package/dist/client/assets/skills-DYDhInws.js +0 -1
  461. package/dist/client/assets/taskboard-analytics-CjgII2eZ.js +0 -1
  462. package/dist/client/assets/tasks-CIhUebQ4.js +0 -1
  463. package/dist/client/assets/thread-analytics-CrLSbYuR.js +0 -1
  464. package/dist/client/assets/thread-button-BzL6IgWO.js +0 -1
  465. package/dist/client/assets/thread-route-CH91rvT9.js +0 -1
  466. package/dist/client/assets/use-ask-in-chat-zRlpEonj.js +0 -1
  467. package/dist/client/assets/use-blocks-v8-project-DbMXPwlE.js +0 -1
  468. package/dist/client/assets/use-blog-view-lU9V3ZT8.js +0 -1
  469. package/dist/client/assets/useInfiniteQuery-DQhOez7_.js +0 -1
  470. package/dist/client/assets/useSuspenseInfiniteQuery-CKEcGZqK.js +0 -1
  471. package/dist/client/assets/variant-calendar-DdWtxg-c.js +0 -1
@@ -1,3 +1,3 @@
1
- import{c as te,b as se,j as t,B as q,b4 as fe,m as ee,_ as me,X as he,Z as pe,Y as re,n as xe,a7 as be,a4 as ve,q as we,r as P,t as G,K as ie,aW as ke,af as ge,I as ye,w as Se,x as je,v as Te,D as Me}from"./index-0lR5HspR.js";import{c as Y,T as Q,a as X}from"./tooltip-Ck_nh9Yl.js";import{ap as Ce,av as ae,aM as Pe,a as De,e as ze,b as oe,aN as Ne}from"./agent-icon-DVY218yy.js";import{i as Ee}from"./LayoutLeft-LSMf02jr.js";import{d as Oe,e as $e,g as Be,c as Re}from"./use-org-fs-DJToHemI.js";import{a as Ae,b as Ue,P as Le}from"./popover-Z7qjkGnd.js";import{i as _e}from"./Key01-Cdz7yQHR.js";function le(n){return n==="bar"?{variant:"ghost",size:"icon"}:{variant:"secondary",size:"icon-sm"}}function Ie(n){const e=te.c(73),{readUrl:l,editor:a,downloadName:m,trailing:v,className:h,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==l?(p=new URL(l,window.location.origin).toString(),e[0]=l,e[1]=p):p=e[1];const o=p;let L;e[2]!==r?(L=le(r),e[2]=r,e[3]=L):L=e[3];const u=L;let x;e[4]!==a.agentUpdated||e[5]!==a.reload||e[6]!==s?(x=a.agentUpdated&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",onClick:a.reload,children:[t.jsx(fe,{size:12}),s("deck.deckToolbar.agentUpdatedReload")]})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.agentRewriteWarning")})]}),e[4]=a.agentUpdated,e[5]=a.reload,e[6]=s,e[7]=x):x=e[7];let g;e[8]!==a.saving||e[9]!==s?(g=a.saving&&t.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:s("deck.deckToolbar.saving")}),e[8]=a.saving,e[9]=s,e[10]=g):g=e[10];let S;e[11]!==u.size||e[12]!==u.variant||e[13]!==a||e[14]!==s?(S=a.deckDetected&&a.writable&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:a.editMode?"secondary":u.variant,size:u.size,"aria-pressed":a.editMode,"aria-label":a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInline"),className:ee(a.editMode&&"text-primary"),onClick:()=>a.setEditMode(!a.editMode),children:t.jsx(Ce,{size:14})})}),t.jsx(X,{side:"bottom",children:a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInlineTooltip")})]}),e[11]=u.size,e[12]=u.variant,e[13]=a,e[14]=s,e[15]=S):S=e[15];let w;e[16]!==o||e[17]!==u.size||e[18]!==u.variant||e[19]!==m||e[20]!==a.deckDetected||e[21]!==s?(w=a.deckDetected?t.jsxs(me,{children:[t.jsx(he,{asChild:!0,children:t.jsx(q,{variant:u.variant,size:u.size,"aria-label":s("deck.deckToolbar.download"),children:t.jsx(ae,{size:14})})}),t.jsxs(pe,{align:"end",children:[t.jsxs(re,{onClick:()=>window.open(`${o}#print`,"_blank","noopener"),children:[t.jsx(Pe,{size:14}),s("deck.deckToolbar.exportAsPdf")]}),t.jsx(re,{asChild:!0,children:t.jsxs("a",{href:o,download:m,children:[t.jsx(De,{size:14}),s("deck.deckToolbar.downloadHtml")]})})]})]}):t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:u.variant,size:u.size,"aria-label":s("deck.deckToolbar.download"),asChild:!0,children:t.jsx("a",{href:o,download:m,children:t.jsx(ae,{size:14})})})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.download")})]}),e[16]=o,e[17]=u.size,e[18]=u.variant,e[19]=m,e[20]=a.deckDetected,e[21]=s,e[22]=w):w=e[22];const j=u.variant,D=u.size;let T;e[23]!==s?(T=s("deck.deckToolbar.openInNewTab"),e[23]=s,e[24]=T):T=e[24];let M;e[25]!==o?(M=()=>window.open(o,"_blank","noopener"),e[25]=o,e[26]=M):M=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(be,{size:14}),e[27]=_):_=e[27];let d;e[28]!==u.size||e[29]!==u.variant||e[30]!==T||e[31]!==M?(d=t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:j,size:D,"aria-label":T,onClick:M,children:_})}),e[28]=u.size,e[29]=u.variant,e[30]=T,e[31]=M,e[32]=d):d=e[32];let B;e[33]!==s?(B=s("deck.deckToolbar.openInNewTab"),e[33]=s,e[34]=B):B=e[34];let R;e[35]!==B?(R=t.jsx(X,{side:"bottom",children:B}),e[35]=B,e[36]=R):R=e[36];let b;e[37]!==d||e[38]!==R?(b=t.jsxs(Y,{children:[d,R]}),e[37]=d,e[38]=R,e[39]=b):b=e[39];let O;e[40]!==b||e[41]!==x||e[42]!==g||e[43]!==S||e[44]!==w||e[45]!==v?(O=t.jsxs(t.Fragment,{children:[x,g,S,w,b,v]}),e[40]=b,e[41]=x,e[42]=g,e[43]=S,e[44]=w,e[45]=v,e[46]=O):O=e[46];const A=O;let I;e[47]!==a.railOpen||e[48]!==s?(I=a.railOpen?s("deck.deckToolbar.hideSlideList"):s("deck.deckToolbar.showSlideList"),e[47]=a.railOpen,e[48]=s,e[49]=I):I=e[49];const z=I;let $;e[50]!==u.size||e[51]!==u.variant||e[52]!==a||e[53]!==z?($=a.deckDetected&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:a.railOpen?"secondary":u.variant,size:u.size,"aria-pressed":a.railOpen,"aria-label":z,onClick:()=>a.setRailOpen(!a.railOpen),children:t.jsx(Ee,{size:14})})}),t.jsx(X,{side:"bottom",children:z})]}),e[50]=u.size,e[51]=u.variant,e[52]=a,e[53]=z,e[54]=$):$=e[54];const C=$;if(r==="topbar"){let c;return e[55]!==A||e[56]!==C?(c=t.jsxs(xe.Actions,{children:[C,A]}),e[55]=A,e[56]=C,e[57]=c):c=e[57],c}let k;e[58]!==h?(k=ee("flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",h),e[58]=h,e[59]=k):k=e[59];let N;e[60]!==o?(N=()=>window.open(o,"_blank","noopener"),e[60]=o,e[61]=N):N=e[61];let E;e[62]!==m?(E=t.jsx("span",{className:"truncate",children:m}),e[62]=m,e[63]=E):E=e[63];let U;e[64]!==o||e[65]!==N||e[66]!==E?(U=t.jsx("button",{type:"button",onClick:N,className:"flex min-w-0 flex-1 items-center rounded-lg px-2 py-1 text-left text-sm font-medium text-foreground transition-colors hover:bg-accent",title:o,children:E}),e[64]=o,e[65]=N,e[66]=E,e[67]=U):U=e[67];let i;return e[68]!==A||e[69]!==C||e[70]!==k||e[71]!==U?(i=t.jsxs("div",{className:k,children:[C,U,A]}),e[68]=A,e[69]=C,e[70]=k,e[71]=U,e[72]=i):i=e[72],i}const Z=1;function Fe(n){if(typeof n!="object"||n===null||n.v!==Z||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}const qe=new Set(["script","style","iframe","object","embed","form","link","meta","base","animate","animatetransform","animatemotion","set"]),Ke=new Set(["href","src","xlink:href","action","formaction"]),We=new Set(["javascript:","vbscript:","data:"]);function He(n){let e;try{e=new URL(n,"https://deco.cx").protocol}catch{return!0}return e==="data:"?/^data:image\/(?!svg\+xml)[^;,]+[;,]/i.test(n.trim()):!We.has(e)}function ce(n,e){const l=n.toLowerCase();return l.startsWith("on")?!1:Ke.has(l)?He(e):!0}function Ve(n){for(const e of[...n.querySelectorAll(`${[...qe].join(",")}`)])e.remove();for(const e of[n,...n.querySelectorAll("*")])for(const l of[...e.attributes])ce(l.name,l.value)||e.removeAttribute(l.name)}class F extends Error{constructor(e,l){super(e),this.code=l,this.name="DeckOpError"}code}function de(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Ye(n){const l=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return l?de(l).length:null}function Qe(n,e){const l=new DOMParser().parseFromString(n,"text/html"),a=l.querySelector("deck-viewer");if(!a)throw new F("no <deck-viewer> element in source","no-viewer");const m=de(a),v=e.kind==="move"?e.from:e.at,h=m[v];if(!h)throw new F(`slide index ${v} out of range (${m.length})`,"stale-index");switch(e.kind){case"remove":{if(m.length<=1)throw new F("cannot remove the last slide","bad-op");h.remove();break}case"duplicate":{const r=h.cloneNode(!0);r.removeAttribute("id");for(const s of r.querySelectorAll("[id]"))s.removeAttribute("id");h.after(r);break}case"move":{if(e.to<0||e.to>=m.length)throw new F(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const r=e.to<e.from?m[e.to]:m[e.to].nextSibling;a.insertBefore(h,r)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new F(`invalid attribute name: ${e.name}`,"bad-op");if(!ce(e.name,e.value))throw new F(`unsafe attribute: ${e.name}`,"bad-op");h.setAttribute(e.name,e.value);break}case"remove-attr":{h.removeAttribute(e.name);break}case"replace":{const r=new DOMParser().parseFromString(e.html,"text/html");Ve(r.body);const s=r.body.firstElementChild;if(!s)throw new F("replace html has no root element","bad-op");h.replaceWith(l.importNode(s,!0));break}default:throw new F(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
1
+ import{c as te,b as se,j as t,B as q,b4 as fe,m as ee,_ as me,X as he,Z as pe,Y as re,n as xe,a7 as be,a4 as ve,q as we,r as P,t as G,K as ie,aW as ke,af as ge,I as ye,w as Se,x as je,v as Te,D as Me}from"./index-FR7-LkFs.js";import{c as Y,T as Q,a as X}from"./tooltip-zEsMTxPP.js";import{aq as Ce,aw as ae,aN as Pe,a as De,e as ze,b as oe,aO as Ne}from"./agent-icon-BHVUedtV.js";import{i as Oe}from"./LayoutLeft-BRKXPCjt.js";import{d as Ee,e as $e,g as Be,c as Re}from"./use-org-fs-CaJ4jOuW.js";import{a as Ae,b as Ue,P as Le}from"./popover-7x26sV4l.js";import{i as _e}from"./Key01-BzZWEKIv.js";function le(n){return n==="bar"?{variant:"ghost",size:"icon"}:{variant:"secondary",size:"icon-sm"}}function Ie(n){const e=te.c(73),{readUrl:l,editor:a,downloadName:m,trailing:v,className:h,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==l?(p=new URL(l,window.location.origin).toString(),e[0]=l,e[1]=p):p=e[1];const o=p;let L;e[2]!==r?(L=le(r),e[2]=r,e[3]=L):L=e[3];const u=L;let x;e[4]!==a.agentUpdated||e[5]!==a.reload||e[6]!==s?(x=a.agentUpdated&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",onClick:a.reload,children:[t.jsx(fe,{size:12}),s("deck.deckToolbar.agentUpdatedReload")]})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.agentRewriteWarning")})]}),e[4]=a.agentUpdated,e[5]=a.reload,e[6]=s,e[7]=x):x=e[7];let g;e[8]!==a.saving||e[9]!==s?(g=a.saving&&t.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:s("deck.deckToolbar.saving")}),e[8]=a.saving,e[9]=s,e[10]=g):g=e[10];let S;e[11]!==u.size||e[12]!==u.variant||e[13]!==a||e[14]!==s?(S=a.deckDetected&&a.writable&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:a.editMode?"secondary":u.variant,size:u.size,"aria-pressed":a.editMode,"aria-label":a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInline"),className:ee(a.editMode&&"text-primary"),onClick:()=>a.setEditMode(!a.editMode),children:t.jsx(Ce,{size:14})})}),t.jsx(X,{side:"bottom",children:a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInlineTooltip")})]}),e[11]=u.size,e[12]=u.variant,e[13]=a,e[14]=s,e[15]=S):S=e[15];let w;e[16]!==o||e[17]!==u.size||e[18]!==u.variant||e[19]!==m||e[20]!==a.deckDetected||e[21]!==s?(w=a.deckDetected?t.jsxs(me,{children:[t.jsx(he,{asChild:!0,children:t.jsx(q,{variant:u.variant,size:u.size,"aria-label":s("deck.deckToolbar.download"),children:t.jsx(ae,{size:14})})}),t.jsxs(pe,{align:"end",children:[t.jsxs(re,{onClick:()=>window.open(`${o}#print`,"_blank","noopener"),children:[t.jsx(Pe,{size:14}),s("deck.deckToolbar.exportAsPdf")]}),t.jsx(re,{asChild:!0,children:t.jsxs("a",{href:o,download:m,children:[t.jsx(De,{size:14}),s("deck.deckToolbar.downloadHtml")]})})]})]}):t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:u.variant,size:u.size,"aria-label":s("deck.deckToolbar.download"),asChild:!0,children:t.jsx("a",{href:o,download:m,children:t.jsx(ae,{size:14})})})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.download")})]}),e[16]=o,e[17]=u.size,e[18]=u.variant,e[19]=m,e[20]=a.deckDetected,e[21]=s,e[22]=w):w=e[22];const j=u.variant,D=u.size;let T;e[23]!==s?(T=s("deck.deckToolbar.openInNewTab"),e[23]=s,e[24]=T):T=e[24];let M;e[25]!==o?(M=()=>window.open(o,"_blank","noopener"),e[25]=o,e[26]=M):M=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(be,{size:14}),e[27]=_):_=e[27];let d;e[28]!==u.size||e[29]!==u.variant||e[30]!==T||e[31]!==M?(d=t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:j,size:D,"aria-label":T,onClick:M,children:_})}),e[28]=u.size,e[29]=u.variant,e[30]=T,e[31]=M,e[32]=d):d=e[32];let B;e[33]!==s?(B=s("deck.deckToolbar.openInNewTab"),e[33]=s,e[34]=B):B=e[34];let R;e[35]!==B?(R=t.jsx(X,{side:"bottom",children:B}),e[35]=B,e[36]=R):R=e[36];let b;e[37]!==d||e[38]!==R?(b=t.jsxs(Y,{children:[d,R]}),e[37]=d,e[38]=R,e[39]=b):b=e[39];let E;e[40]!==b||e[41]!==x||e[42]!==g||e[43]!==S||e[44]!==w||e[45]!==v?(E=t.jsxs(t.Fragment,{children:[x,g,S,w,b,v]}),e[40]=b,e[41]=x,e[42]=g,e[43]=S,e[44]=w,e[45]=v,e[46]=E):E=e[46];const A=E;let I;e[47]!==a.railOpen||e[48]!==s?(I=a.railOpen?s("deck.deckToolbar.hideSlideList"):s("deck.deckToolbar.showSlideList"),e[47]=a.railOpen,e[48]=s,e[49]=I):I=e[49];const z=I;let $;e[50]!==u.size||e[51]!==u.variant||e[52]!==a||e[53]!==z?($=a.deckDetected&&t.jsxs(Y,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:a.railOpen?"secondary":u.variant,size:u.size,"aria-pressed":a.railOpen,"aria-label":z,onClick:()=>a.setRailOpen(!a.railOpen),children:t.jsx(Oe,{size:14})})}),t.jsx(X,{side:"bottom",children:z})]}),e[50]=u.size,e[51]=u.variant,e[52]=a,e[53]=z,e[54]=$):$=e[54];const C=$;if(r==="topbar"){let c;return e[55]!==A||e[56]!==C?(c=t.jsxs(xe.Actions,{children:[C,A]}),e[55]=A,e[56]=C,e[57]=c):c=e[57],c}let k;e[58]!==h?(k=ee("flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",h),e[58]=h,e[59]=k):k=e[59];let N;e[60]!==o?(N=()=>window.open(o,"_blank","noopener"),e[60]=o,e[61]=N):N=e[61];let O;e[62]!==m?(O=t.jsx("span",{className:"truncate",children:m}),e[62]=m,e[63]=O):O=e[63];let U;e[64]!==o||e[65]!==N||e[66]!==O?(U=t.jsx("button",{type:"button",onClick:N,className:"flex min-w-0 flex-1 items-center rounded-lg px-2 py-1 text-left text-sm font-medium text-foreground transition-colors hover:bg-accent",title:o,children:O}),e[64]=o,e[65]=N,e[66]=O,e[67]=U):U=e[67];let i;return e[68]!==A||e[69]!==C||e[70]!==k||e[71]!==U?(i=t.jsxs("div",{className:k,children:[C,U,A]}),e[68]=A,e[69]=C,e[70]=k,e[71]=U,e[72]=i):i=e[72],i}const Z=1;function Fe(n){if(typeof n!="object"||n===null||n.v!==Z||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}const qe=new Set(["script","style","iframe","object","embed","form","link","meta","base","animate","animatetransform","animatemotion","set"]),Ke=new Set(["href","src","xlink:href","action","formaction"]),We=new Set(["javascript:","vbscript:","data:"]);function He(n){let e;try{e=new URL(n,"https://deco.cx").protocol}catch{return!0}return e==="data:"?/^data:image\/(?!svg\+xml)[^;,]+[;,]/i.test(n.trim()):!We.has(e)}function ce(n,e){const l=n.toLowerCase();return l.startsWith("on")?!1:Ke.has(l)?He(e):!0}function Ve(n){for(const e of[...n.querySelectorAll(`${[...qe].join(",")}`)])e.remove();for(const e of[n,...n.querySelectorAll("*")])for(const l of[...e.attributes])ce(l.name,l.value)||e.removeAttribute(l.name)}class F extends Error{constructor(e,l){super(e),this.code=l,this.name="DeckOpError"}code}function de(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Ye(n){const l=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return l?de(l).length:null}function Qe(n,e){const l=new DOMParser().parseFromString(n,"text/html"),a=l.querySelector("deck-viewer");if(!a)throw new F("no <deck-viewer> element in source","no-viewer");const m=de(a),v=e.kind==="move"?e.from:e.at,h=m[v];if(!h)throw new F(`slide index ${v} out of range (${m.length})`,"stale-index");switch(e.kind){case"remove":{if(m.length<=1)throw new F("cannot remove the last slide","bad-op");h.remove();break}case"duplicate":{const r=h.cloneNode(!0);r.removeAttribute("id");for(const s of r.querySelectorAll("[id]"))s.removeAttribute("id");h.after(r);break}case"move":{if(e.to<0||e.to>=m.length)throw new F(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const r=e.to<e.from?m[e.to]:m[e.to].nextSibling;a.insertBefore(h,r)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new F(`invalid attribute name: ${e.name}`,"bad-op");if(!ce(e.name,e.value))throw new F(`unsafe attribute: ${e.name}`,"bad-op");h.setAttribute(e.name,e.value);break}case"remove-attr":{h.removeAttribute(e.name);break}case"replace":{const r=new DOMParser().parseFromString(e.html,"text/html");Ve(r.body);const s=r.body.firstElementChild;if(!s)throw new F("replace html has no root element","bad-op");h.replaceWith(l.importNode(s,!0));break}default:throw new F(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
2
2
  `:""}${l.documentElement.outerHTML}
3
- `}const ne="home",Xe=400,Ze=800;function Ge(n){const e=n.savePath!==void 0,{org:l}=ve(),a=we(),m=Oe(ne),[v,h]=P.useState(!1),[f,r]=P.useState(!1),[s,p]=P.useState(!1),[o,L]=P.useState(!1),[u,x]=P.useState(!1),[g,S]=P.useState(!1),[w,j]=P.useState(null),[D,T]=P.useState(null),[M,_]=P.useState(0),[d]=P.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),B=v||g||u,R=()=>{n.savePath!==void 0&&(a.invalidateQueries({queryKey:ie.orgFsStat(l.id,ne,n.savePath)}),a.invalidateQueries({queryKey:ie.orgFsRecent(l.id)}))},b=i=>{d.iframe?.contentWindow?.postMessage(i,"*")},O=()=>{d.source=null,L(!1),D&&j(D),_(i=>i+1),R()};n.statMarker!==D&&(T(n.statMarker),n.statMarker!==null&&(w===null?j(n.statMarker):d.selfMarkers.has(n.statMarker)||n.statMarker!==w&&(B?L(!0):(d.source=null,j(n.statMarker)))));const A=async()=>{d.saveTimer=null;const i=d.source;if(i===null){S(!1);return}x(!0);try{const c=await m.mutateAsync({path:n.savePath,body:i});d.selfMarkers.add($e(c)),R()}catch(c){console.error("[deck-editor] save failed",c),G.error("Couldn't save deck edits — reloading the preview."),k.current.reload()}finally{x(!1),S(!1)}},I=i=>{S(!0),d.saveTimer&&clearTimeout(d.saveTimer),d.saveTimer=setTimeout(()=>{k.current.flushSave()},i)},z=(i,c,y)=>{b({v:Z,type:"ack",opId:i,ok:c,error:y})},$=async i=>{if(!e){z(i.opId,!1,"read-only preview");return}try{if(d.source===null){const y=await fetch(n.readUrl,{credentials:"include"});if(!y.ok)throw new Error(`HTTP ${y.status}`);d.source=await y.text()}const c=Ye(d.source);if(c===null||c!==i.witness.childCount)throw new F(`slide count drifted (source ${c}, iframe ${i.witness.childCount})`,"stale-index");d.source=Qe(d.source,i.op),z(i.opId,!0),I(i.op.kind==="replace"?Ze:Xe)}catch(c){console.error("[deck-editor] op failed",i.op,c),z(i.opId,!1,c instanceof Error?c.message:String(c)),G.error("That edit couldn't be saved — reloading the preview."),k.current.reload()}},C=i=>{if(!d.iframe||i.source!==d.iframe.contentWindow)return;const c=Fe(i.data);if(c){if(c.type==="ready"){r(!0),k.current.editMode?b({v:Z,type:"set-edit-mode",enabled:!0}):k.current.railOpen&&b({v:Z,type:"set-rail",open:!0});return}c.type==="op"&&(d.queue=d.queue.then(()=>k.current.handleOp(c)).catch(()=>{}))}},k=P.useRef({onMessage:C,handleOp:$,flushSave:A,reload:O,editMode:v,railOpen:s});k.current={onMessage:C,handleOp:$,flushSave:A,reload:O,editMode:v,railOpen:s};const[N]=P.useState(()=>{let i=null;return c=>{if(c){d.iframe=c;const y=K=>k.current.onMessage(K);window.addEventListener("message",y),i=()=>window.removeEventListener("message",y)}else i?.(),i=null,d.iframe=null}}),E=i=>{p(i),b({v:Z,type:"set-rail",open:i})},U=i=>{h(i),b({v:Z,type:"set-edit-mode",enabled:i}),i&&p(!0),!i&&o&&!g&&!u&&O()};return{iframeRef:N,deckDetected:f,writable:e,displayedMarker:w===null?null:`${w}.${M}`,editMode:v,setEditMode:U,railOpen:s,setRailOpen:E,saving:u,agentUpdated:o,reload:O,postToIframe:b}}const Je=300;function lt({readUrl:n,marker:e,title:l,savePath:a,trailing:m,toolbarClassName:v,placement:h}){const f=Ge({readUrl:n,statMarker:e,savePath:a}),[r,s]=P.useState(null);if(f.displayedMarker===null)return null;const p=n.includes("?")?"&":"?",o=`${n}${p}v=${encodeURIComponent(f.displayedMarker)}`,L=r===o;return t.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[t.jsx(Ie,{readUrl:n,editor:f,downloadName:l.split("/").pop()??l,trailing:m,className:v,placement:h}),t.jsx("div",{className:"relative flex-1",children:t.jsx("iframe",{ref:f.iframeRef,src:o,onLoad:()=>s(o),sandbox:"allow-scripts allow-downloads",className:ee("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",L?"opacity-100":"opacity-0"),style:{transitionDuration:`${Je}ms`},title:l},o)})]})}const et=[{mode:"private",labelKey:"library.fileShareButton.modeOrgOnly",Icon:ge},{mode:"public",labelKey:"library.fileShareButton.modePublic",Icon:oe},{mode:"password",labelKey:"library.fileShareButton.modePassword",Icon:_e}];function ue(n){const e=te.c(56),{volume:l,path:a,kind:m,shareMode:v,effectivePublic:h,url:f}=n,r=se(),s=Be(l),{data:p}=Re(l,a),o=p?.shareMode??v,u=(p?.effectivePublic??h)&&o==="private",x=m==="dir",g=x?"folder":"file",[S,w]=P.useState(!1),[j,D]=P.useState(""),[T,M]=P.useState(!1);let _;e[0]!==a||e[1]!==s||e[2]!==g||e[3]!==r?(_=(i,c)=>{s.mutate({path:a,mode:i,password:c},{onSuccess:()=>{w(!1),D(""),G.success(i==="private"?r("library.fileShareButton.toastOrgOnly",{subject:g}):i==="public"?r("library.fileShareButton.toastPublic",{subject:g}):r("library.fileShareButton.toastPassword",{subject:g}))},onError:y=>G.error(y instanceof Error?y.message:r("library.fileShareButton.failedUpdateSharing"))})},e[0]=a,e[1]=s,e[2]=g,e[3]=r,e[4]=_):_=e[4];const d=_;let B;e[5]!==d?(B=i=>{if(i==="password"){w(!0);return}w(!1),d(i)},e[5]=d,e[6]=B):B=e[6];const R=B,b=S?"password":o;let O;e[7]!==r||e[8]!==f?(O=async()=>{f&&(await navigator.clipboard.writeText(f),M(!0),G.success(r("library.fileShareButton.linkCopied")),setTimeout(()=>M(!1),2e3))},e[7]=r,e[8]=f,e[9]=O):O=e[9];const A=O;let I;e[10]!==T||e[11]!==A||e[12]!==r||e[13]!==f?(I=f?t.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[t.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f}),t.jsx(q,{variant:"ghost",size:"icon-xs",className:"shrink-0",onClick:A,"aria-label":r("library.fileShareButton.copyLink"),children:T?t.jsx(ke,{size:12,className:"text-success"}):t.jsx(ze,{size:12})})]}):null,e[10]=T,e[11]=A,e[12]=r,e[13]=f,e[14]=I):I=e[14];const z=I;if(u){let i;e[15]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(oe,{size:16})}),e[15]=i):i=e[15];let c;e[16]!==r?(c=r("library.fileShareButton.sharedViaParent"),e[16]=r,e[17]=c):c=e[17];let y;e[18]!==c?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),e[18]=c,e[19]=y):y=e[19];const K=x?"files in this folder":"this file";let W;e[20]!==r||e[21]!==K?(W=r("library.fileShareButton.inheritedDescription",{target:K}),e[20]=r,e[21]=K,e[22]=W):W=e[22];let H;e[23]!==W?(H=t.jsx("span",{className:"text-xs text-muted-foreground",children:W}),e[23]=W,e[24]=H):H=e[24];let V;e[25]!==H||e[26]!==y?(V=t.jsxs("div",{className:"flex items-start gap-3",children:[i,t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y,H]})]}),e[25]=H,e[26]=y,e[27]=V):V=e[27];let J;return e[28]!==z||e[29]!==V?(J=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[V,z]}),e[28]=z,e[29]=V,e[30]=J):J=e[30],J}let $;e[31]!==b||e[32]!==R||e[33]!==s.isPending||e[34]!==r?($=et.map(i=>{const{mode:c,labelKey:y,Icon:K}=i;return t.jsxs("button",{type:"button",disabled:s.isPending,onClick:()=>R(c),className:ee("flex flex-col items-center gap-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",b===c?"bg-background text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:[t.jsx(K,{size:15}),r(y)]},c)}),e[31]=b,e[32]=R,e[33]=s.isPending,e[34]=r,e[35]=$):$=e[35];let C;e[36]!==$?(C=t.jsx("div",{className:"surface-inset grid grid-cols-3 gap-1 p-1",children:$}),e[36]=$,e[37]=C):C=e[37];let k;e[38]!==b||e[39]!==x||e[40]!==r?(k=b==="private"?r("library.fileShareButton.privateDescription",{target:x?"these files":"this link"}):b==="public"?r(x?"library.fileShareButton.publicFolderDescription":"library.fileShareButton.publicFileDescription"):r("library.fileShareButton.passwordDescription",{target:x?"files in this folder":"this file"}),e[38]=b,e[39]=x,e[40]=r,e[41]=k):k=e[41];let N;e[42]!==k?(N=t.jsx("p",{className:"text-xs text-muted-foreground",children:k}),e[42]=k,e[43]=N):N=e[43];let E;e[44]!==b||e[45]!==d||e[46]!==o||e[47]!==j||e[48]!==s.isPending||e[49]!==r?(E=b==="password"&&t.jsxs("form",{className:"flex items-center gap-2",onSubmit:i=>{i.preventDefault(),j&&d("password",j)},children:[t.jsx(ye,{type:"password",value:j,onChange:i=>D(i.target.value),placeholder:r(o==="password"?"library.fileShareButton.newPasswordPlaceholder":"library.fileShareButton.passwordPlaceholder"),autoComplete:"new-password",className:"h-8 text-xs"}),t.jsx(q,{type:"submit",size:"sm",className:"shrink-0",disabled:!j||s.isPending,children:r(o==="password"?"library.fileShareButton.buttonUpdate":"library.fileShareButton.buttonSet")})]}),e[44]=b,e[45]=d,e[46]=o,e[47]=j,e[48]=s.isPending,e[49]=r,e[50]=E):E=e[50];let U;return e[51]!==z||e[52]!==C||e[53]!==N||e[54]!==E?(U=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[C,N,E,z]}),e[51]=z,e[52]=C,e[53]=N,e[54]=E,e[55]=U):U=e[55],U}function ct(n){const e=te.c(25),{volume:l,path:a,shareMode:m,effectivePublic:v,url:h,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==r?(p=le(r),e[0]=r,e[1]=p):p=e[1];const o=p,L=o.variant,u=o.size;let x;e[2]!==s?(x=s("library.fileShareButton.share"),e[2]=s,e[3]=x):x=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Ne,{size:14}),e[4]=g):g=e[4];let S;e[5]!==o.size||e[6]!==o.variant||e[7]!==x?(S=t.jsx(Q,{asChild:!0,children:t.jsx(Ae,{asChild:!0,children:t.jsx(q,{variant:L,size:u,"aria-label":x,children:g})})}),e[5]=o.size,e[6]=o.variant,e[7]=x,e[8]=S):S=e[8];let w;e[9]!==s?(w=s("library.fileShareButton.share"),e[9]=s,e[10]=w):w=e[10];let j;e[11]!==w?(j=t.jsx(X,{side:"bottom",children:w}),e[11]=w,e[12]=j):j=e[12];let D;e[13]!==S||e[14]!==j?(D=t.jsxs(Y,{children:[S,j]}),e[13]=S,e[14]=j,e[15]=D):D=e[15];let T;e[16]!==v||e[17]!==a||e[18]!==m||e[19]!==h||e[20]!==l?(T=t.jsx(Ue,{align:"end",className:"w-80 p-3",children:t.jsx(ue,{volume:l,path:a,kind:"file",shareMode:m,effectivePublic:v,url:h})}),e[16]=v,e[17]=a,e[18]=m,e[19]=h,e[20]=l,e[21]=T):T=e[21];let M;return e[22]!==D||e[23]!==T?(M=t.jsxs(Le,{children:[D,T]}),e[22]=D,e[23]=T,e[24]=M):M=e[24],M}function dt(n){const e=te.c(14),{target:l,onOpenChange:a}=n,m=se(),v=!!l,h=l?.kind==="dir"?"folder":"file";let f;e[0]!==m||e[1]!==h?(f=m("library.fileShareButton.shareDialogTitle",{type:h}),e[0]=m,e[1]=h,e[2]=f):f=e[2];let r;e[3]!==f?(r=t.jsx(Se,{children:t.jsx(je,{children:f})}),e[3]=f,e[4]=r):r=e[4];let s;e[5]!==l?(s=l&&t.jsx(ue,{...l}),e[5]=l,e[6]=s):s=e[6];let p;e[7]!==r||e[8]!==s?(p=t.jsxs(Te,{className:"sm:max-w-md",children:[r,s]}),e[7]=r,e[8]=s,e[9]=p):p=e[9];let o;return e[10]!==a||e[11]!==v||e[12]!==p?(o=t.jsx(Me,{open:v,onOpenChange:a,children:p}),e[10]=a,e[11]=v,e[12]=p,e[13]=o):o=e[13],o}export{ct as F,lt as H,dt as S,le as t};
3
+ `}const ne="home",Xe=400,Ze=800;function Ge(n){const e=n.savePath!==void 0,{org:l}=ve(),a=we(),m=Ee(ne),[v,h]=P.useState(!1),[f,r]=P.useState(!1),[s,p]=P.useState(!1),[o,L]=P.useState(!1),[u,x]=P.useState(!1),[g,S]=P.useState(!1),[w,j]=P.useState(null),[D,T]=P.useState(null),[M,_]=P.useState(0),[d]=P.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),B=v||g||u,R=()=>{n.savePath!==void 0&&(a.invalidateQueries({queryKey:ie.orgFsStat(l.id,ne,n.savePath)}),a.invalidateQueries({queryKey:ie.orgFsRecent(l.id)}))},b=i=>{d.iframe?.contentWindow?.postMessage(i,"*")},E=()=>{d.source=null,L(!1),D&&j(D),_(i=>i+1),R()};n.statMarker!==D&&(T(n.statMarker),n.statMarker!==null&&(w===null?j(n.statMarker):d.selfMarkers.has(n.statMarker)||n.statMarker!==w&&(B?L(!0):(d.source=null,j(n.statMarker)))));const A=async()=>{d.saveTimer=null;const i=d.source;if(i===null){S(!1);return}x(!0);try{const c=await m.mutateAsync({path:n.savePath,body:i});d.selfMarkers.add($e(c)),R()}catch(c){console.error("[deck-editor] save failed",c),G.error("Couldn't save deck edits — reloading the preview."),k.current.reload()}finally{x(!1),S(!1)}},I=i=>{S(!0),d.saveTimer&&clearTimeout(d.saveTimer),d.saveTimer=setTimeout(()=>{k.current.flushSave()},i)},z=(i,c,y)=>{b({v:Z,type:"ack",opId:i,ok:c,error:y})},$=async i=>{if(!e){z(i.opId,!1,"read-only preview");return}try{if(d.source===null){const y=await fetch(n.readUrl,{credentials:"include"});if(!y.ok)throw new Error(`HTTP ${y.status}`);d.source=await y.text()}const c=Ye(d.source);if(c===null||c!==i.witness.childCount)throw new F(`slide count drifted (source ${c}, iframe ${i.witness.childCount})`,"stale-index");d.source=Qe(d.source,i.op),z(i.opId,!0),I(i.op.kind==="replace"?Ze:Xe)}catch(c){console.error("[deck-editor] op failed",i.op,c),z(i.opId,!1,c instanceof Error?c.message:String(c)),G.error("That edit couldn't be saved — reloading the preview."),k.current.reload()}},C=i=>{if(!d.iframe||i.source!==d.iframe.contentWindow)return;const c=Fe(i.data);if(c){if(c.type==="ready"){r(!0),k.current.editMode?b({v:Z,type:"set-edit-mode",enabled:!0}):k.current.railOpen&&b({v:Z,type:"set-rail",open:!0});return}c.type==="op"&&(d.queue=d.queue.then(()=>k.current.handleOp(c)).catch(()=>{}))}},k=P.useRef({onMessage:C,handleOp:$,flushSave:A,reload:E,editMode:v,railOpen:s});k.current={onMessage:C,handleOp:$,flushSave:A,reload:E,editMode:v,railOpen:s};const[N]=P.useState(()=>{let i=null;return c=>{if(c){d.iframe=c;const y=K=>k.current.onMessage(K);window.addEventListener("message",y),i=()=>window.removeEventListener("message",y)}else i?.(),i=null,d.iframe=null}}),O=i=>{p(i),b({v:Z,type:"set-rail",open:i})},U=i=>{h(i),b({v:Z,type:"set-edit-mode",enabled:i}),i&&p(!0),!i&&o&&!g&&!u&&E()};return{iframeRef:N,deckDetected:f,writable:e,displayedMarker:w===null?null:`${w}.${M}`,editMode:v,setEditMode:U,railOpen:s,setRailOpen:O,saving:u,agentUpdated:o,reload:E,postToIframe:b}}const Je=300;function lt({readUrl:n,marker:e,title:l,savePath:a,trailing:m,toolbarClassName:v,placement:h}){const f=Ge({readUrl:n,statMarker:e,savePath:a}),[r,s]=P.useState(null);if(f.displayedMarker===null)return null;const p=n.includes("?")?"&":"?",o=`${n}${p}v=${encodeURIComponent(f.displayedMarker)}`,L=r===o;return t.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[t.jsx(Ie,{readUrl:n,editor:f,downloadName:l.split("/").pop()??l,trailing:m,className:v,placement:h}),t.jsx("div",{className:"relative flex-1",children:t.jsx("iframe",{ref:f.iframeRef,src:o,onLoad:()=>s(o),sandbox:"allow-scripts allow-downloads",className:ee("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",L?"opacity-100":"opacity-0"),style:{transitionDuration:`${Je}ms`},title:l},o)})]})}const et=[{mode:"private",labelKey:"library.fileShareButton.modeOrgOnly",Icon:ge},{mode:"public",labelKey:"library.fileShareButton.modePublic",Icon:oe},{mode:"password",labelKey:"library.fileShareButton.modePassword",Icon:_e}];function ue(n){const e=te.c(56),{volume:l,path:a,kind:m,shareMode:v,effectivePublic:h,url:f}=n,r=se(),s=Be(l),{data:p}=Re(l,a),o=p?.shareMode??v,u=(p?.effectivePublic??h)&&o==="private",x=m==="dir",g=x?"folder":"file",[S,w]=P.useState(!1),[j,D]=P.useState(""),[T,M]=P.useState(!1);let _;e[0]!==a||e[1]!==s||e[2]!==g||e[3]!==r?(_=(i,c)=>{s.mutate({path:a,mode:i,password:c},{onSuccess:()=>{w(!1),D(""),G.success(i==="private"?r("library.fileShareButton.toastOrgOnly",{subject:g}):i==="public"?r("library.fileShareButton.toastPublic",{subject:g}):r("library.fileShareButton.toastPassword",{subject:g}))},onError:y=>G.error(y instanceof Error?y.message:r("library.fileShareButton.failedUpdateSharing"))})},e[0]=a,e[1]=s,e[2]=g,e[3]=r,e[4]=_):_=e[4];const d=_;let B;e[5]!==d?(B=i=>{if(i==="password"){w(!0);return}w(!1),d(i)},e[5]=d,e[6]=B):B=e[6];const R=B,b=S?"password":o;let E;e[7]!==r||e[8]!==f?(E=async()=>{f&&(await navigator.clipboard.writeText(f),M(!0),G.success(r("library.fileShareButton.linkCopied")),setTimeout(()=>M(!1),2e3))},e[7]=r,e[8]=f,e[9]=E):E=e[9];const A=E;let I;e[10]!==T||e[11]!==A||e[12]!==r||e[13]!==f?(I=f?t.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[t.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f}),t.jsx(q,{variant:"ghost",size:"icon-xs",className:"shrink-0",onClick:A,"aria-label":r("library.fileShareButton.copyLink"),children:T?t.jsx(ke,{size:12,className:"text-success"}):t.jsx(ze,{size:12})})]}):null,e[10]=T,e[11]=A,e[12]=r,e[13]=f,e[14]=I):I=e[14];const z=I;if(u){let i;e[15]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(oe,{size:16})}),e[15]=i):i=e[15];let c;e[16]!==r?(c=r("library.fileShareButton.sharedViaParent"),e[16]=r,e[17]=c):c=e[17];let y;e[18]!==c?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),e[18]=c,e[19]=y):y=e[19];const K=x?"files in this folder":"this file";let W;e[20]!==r||e[21]!==K?(W=r("library.fileShareButton.inheritedDescription",{target:K}),e[20]=r,e[21]=K,e[22]=W):W=e[22];let H;e[23]!==W?(H=t.jsx("span",{className:"text-xs text-muted-foreground",children:W}),e[23]=W,e[24]=H):H=e[24];let V;e[25]!==H||e[26]!==y?(V=t.jsxs("div",{className:"flex items-start gap-3",children:[i,t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y,H]})]}),e[25]=H,e[26]=y,e[27]=V):V=e[27];let J;return e[28]!==z||e[29]!==V?(J=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[V,z]}),e[28]=z,e[29]=V,e[30]=J):J=e[30],J}let $;e[31]!==b||e[32]!==R||e[33]!==s.isPending||e[34]!==r?($=et.map(i=>{const{mode:c,labelKey:y,Icon:K}=i;return t.jsxs("button",{type:"button",disabled:s.isPending,onClick:()=>R(c),className:ee("flex flex-col items-center gap-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",b===c?"bg-background text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:[t.jsx(K,{size:15}),r(y)]},c)}),e[31]=b,e[32]=R,e[33]=s.isPending,e[34]=r,e[35]=$):$=e[35];let C;e[36]!==$?(C=t.jsx("div",{className:"surface-inset grid grid-cols-3 gap-1 p-1",children:$}),e[36]=$,e[37]=C):C=e[37];let k;e[38]!==b||e[39]!==x||e[40]!==r?(k=b==="private"?r("library.fileShareButton.privateDescription",{target:x?"these files":"this link"}):b==="public"?r(x?"library.fileShareButton.publicFolderDescription":"library.fileShareButton.publicFileDescription"):r("library.fileShareButton.passwordDescription",{target:x?"files in this folder":"this file"}),e[38]=b,e[39]=x,e[40]=r,e[41]=k):k=e[41];let N;e[42]!==k?(N=t.jsx("p",{className:"text-xs text-muted-foreground",children:k}),e[42]=k,e[43]=N):N=e[43];let O;e[44]!==b||e[45]!==d||e[46]!==o||e[47]!==j||e[48]!==s.isPending||e[49]!==r?(O=b==="password"&&t.jsxs("form",{className:"flex items-center gap-2",onSubmit:i=>{i.preventDefault(),j&&d("password",j)},children:[t.jsx(ye,{type:"password",value:j,onChange:i=>D(i.target.value),placeholder:r(o==="password"?"library.fileShareButton.newPasswordPlaceholder":"library.fileShareButton.passwordPlaceholder"),autoComplete:"new-password",className:"h-8 text-xs"}),t.jsx(q,{type:"submit",size:"sm",className:"shrink-0",disabled:!j||s.isPending,children:r(o==="password"?"library.fileShareButton.buttonUpdate":"library.fileShareButton.buttonSet")})]}),e[44]=b,e[45]=d,e[46]=o,e[47]=j,e[48]=s.isPending,e[49]=r,e[50]=O):O=e[50];let U;return e[51]!==z||e[52]!==C||e[53]!==N||e[54]!==O?(U=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[C,N,O,z]}),e[51]=z,e[52]=C,e[53]=N,e[54]=O,e[55]=U):U=e[55],U}function ct(n){const e=te.c(25),{volume:l,path:a,shareMode:m,effectivePublic:v,url:h,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==r?(p=le(r),e[0]=r,e[1]=p):p=e[1];const o=p,L=o.variant,u=o.size;let x;e[2]!==s?(x=s("library.fileShareButton.share"),e[2]=s,e[3]=x):x=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Ne,{size:14}),e[4]=g):g=e[4];let S;e[5]!==o.size||e[6]!==o.variant||e[7]!==x?(S=t.jsx(Q,{asChild:!0,children:t.jsx(Ae,{asChild:!0,children:t.jsx(q,{variant:L,size:u,"aria-label":x,children:g})})}),e[5]=o.size,e[6]=o.variant,e[7]=x,e[8]=S):S=e[8];let w;e[9]!==s?(w=s("library.fileShareButton.share"),e[9]=s,e[10]=w):w=e[10];let j;e[11]!==w?(j=t.jsx(X,{side:"bottom",children:w}),e[11]=w,e[12]=j):j=e[12];let D;e[13]!==S||e[14]!==j?(D=t.jsxs(Y,{children:[S,j]}),e[13]=S,e[14]=j,e[15]=D):D=e[15];let T;e[16]!==v||e[17]!==a||e[18]!==m||e[19]!==h||e[20]!==l?(T=t.jsx(Ue,{align:"end",className:"w-80 p-3",children:t.jsx(ue,{volume:l,path:a,kind:"file",shareMode:m,effectivePublic:v,url:h})}),e[16]=v,e[17]=a,e[18]=m,e[19]=h,e[20]=l,e[21]=T):T=e[21];let M;return e[22]!==D||e[23]!==T?(M=t.jsxs(Le,{children:[D,T]}),e[22]=D,e[23]=T,e[24]=M):M=e[24],M}function dt(n){const e=te.c(14),{target:l,onOpenChange:a}=n,m=se(),v=!!l,h=l?.kind==="dir"?"folder":"file";let f;e[0]!==m||e[1]!==h?(f=m("library.fileShareButton.shareDialogTitle",{type:h}),e[0]=m,e[1]=h,e[2]=f):f=e[2];let r;e[3]!==f?(r=t.jsx(Se,{children:t.jsx(je,{children:f})}),e[3]=f,e[4]=r):r=e[4];let s;e[5]!==l?(s=l&&t.jsx(ue,{...l}),e[5]=l,e[6]=s):s=e[6];let p;e[7]!==r||e[8]!==s?(p=t.jsxs(Te,{className:"sm:max-w-md",children:[r,s]}),e[7]=r,e[8]=s,e[9]=p):p=e[9];let o;return e[10]!==a||e[11]!==v||e[12]!==p?(o=t.jsx(Me,{open:v,onOpenChange:a,children:p}),e[10]=a,e[11]=v,e[12]=p,e[13]=o):o=e[13],o}export{ct as F,lt as H,dt as S,le as t};
@@ -1 +1 @@
1
- import{c as g,j as o}from"./index-0lR5HspR.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
1
+ import{c as g,j as o}from"./index-FR7-LkFs.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
@@ -1 +1 @@
1
- import{c as M,j as t,v as _,D as G,r as I,d_ as L,m as A,x as H,hB as W,B as O,b3 as U}from"./index-0lR5HspR.js";import{i as K}from"./Zap-OKenL_oO.js";import{M as R}from"./markdown-CFFvPMSZ.js";import{F as V}from"./file-preview-DSm-7S4H.js";import{F as J}from"./file-type-icon-DZFXNty2.js";import{l as Z,h as q,u as Q}from"./use-org-fs-DJToHemI.js";import{O as X,J as E}from"./chat-context-CyKULgZO.js";import{c as Y}from"./context-shell-DTw_WONz.js";import{s as ee}from"./Eye-Cf3Bk97P.js";function te(o){const e=M.c(18),{skillPath:i,onClose:r,variant:l}=o,a=X(i),{volume:n,dirPath:F}=a,$=Z(),s=$(n??"",`${F}/SKILL.md`),w=q(s),D=Q(n??"",F);let v;e[0]!==F?(v=E(F),e[0]=F,e[1]=v):v=e[1];const P=v;let x;e[2]!==w.data?(x=w.data?Y(w.data):null,e[2]=w.data,e[3]=x):x=e[3];const h=x,C=le;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(m,z)=>C(m.path)?-1:C(z.path)?1:E(m.path).localeCompare(E(z.path)),e[4]=p):p=e[4];const B=(D.data??[]).filter(se).sort(p),[k,S]=I.useState(null),c=k===null?null:B.find(m=>m.path===k)??null,u=h?.name??P;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(K,{size:18})}),e[5]=g):g=e[5];let d;e[6]!==u||e[7]!==l?(d=l==="dialog"?t.jsx(H,{className:"flex-1 truncate text-base font-medium text-foreground",children:u}):t.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:u}),e[6]=u,e[7]=l,e[8]=d):d=e[8];let f;e[9]!==r||e[10]!==l?(f=l==="dialog"?t.jsx(W,{asChild:!0,children:t.jsx(O,{variant:"ghost",size:"icon",className:"shrink-0",children:t.jsx(U,{size:16})})}):t.jsx(O,{variant:"ghost",size:"icon",className:"shrink-0",onClick:r,children:t.jsx(U,{size:16})}),e[9]=r,e[10]=l,e[11]=f):f=e[11];let j;e[12]!==d||e[13]!==f?(j=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g,d,f]}),e[12]=d,e[13]=f,e[14]=j):j=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=b):b=e[15];const T="relative flex min-w-0 flex-1 flex-col overflow-y-auto",y=c?t.jsx(V,{file:{key:c.path,filename:E(c.path),size:c.size,downloadUrl:$(n??"",c.path)}}):w.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(L,{className:"h-4 w-1/3"}),t.jsx(L,{className:"h-3 w-full"}),t.jsx(L,{className:"h-3 w-5/6"}),t.jsx(L,{className:"h-3 w-2/3"})]}):w.isError||!h?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:h.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(R,{id:`skill-preview-${i}`,text:h.body})})]});let N;return e[16]!==y?(N=t.jsx("div",{className:T,children:y}),e[16]=y,e[17]=N):N=e[17],t.jsxs(t.Fragment,{children:[j,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[b,D.isPending?t.jsx(L,{className:"mx-2 h-4 w-24"}):B.map(m=>{const z=C(m.path)?c===null:k===m.path;return t.jsxs("button",{type:"button",onClick:()=>S(C(m.path)?null:m.path),className:A("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",z?"bg-background shadow-edge":"hover:bg-accent"),children:[t.jsx(J,{filename:E(m.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:A("truncate text-sm",z?"text-foreground":"text-muted-foreground"),children:E(m.path)})]},m.path)})]}),N]})]})}function se(o){return o.kind==="file"}function le(o){return E(o)==="SKILL.md"}function ue(o){const e=M.c(8),{skillPath:i,onClose:r}=o;let l;e[0]!==r?(l=F=>{F||r()},e[0]=r,e[1]=l):l=e[1];let a;e[2]!==r||e[3]!==i?(a=t.jsx(_,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:t.jsx(te,{skillPath:i,onClose:r,variant:"dialog"})}),e[2]=r,e[3]=i,e[4]=a):a=e[4];let n;return e[5]!==l||e[6]!==a?(n=t.jsx(G,{open:!0,onOpenChange:l,children:a}),e[5]=l,e[6]=a,e[7]=n):n=e[7],n}const re={default:{backFrom:"#4D87DF",backTo:"#296FE8",frontFrom:"#72B6FA",frontTo:"#5BB1EF",stripe:"#84CDFB",glyph:"#014AC9"},system:{backFrom:"#8A94A6",backTo:"#6B7687",frontFrom:"#B6BEC9",frontTo:"#A3ADBA",stripe:"#D5DBE3",glyph:"#3D4757"}},oe=[-7,0,7];function ge(o){const e=M.c(50);let i,r,l,a,n;e[0]!==o?({glyph:i,readOnly:l,tone:a,sheets:n,...r}=o,e[0]=o,e[1]=i,e[2]=r,e[3]=l,e[4]=a,e[5]=n):(i=e[1],r=e[2],l=e[3],a=e[4],n=e[5]);const F=a===void 0?"default":a,$=n===void 0?0:n,s=re[F],w=I.useId(),D=`${w}-back`,v=`${w}-front`,P=`url(#${D})`;let x;e[6]!==P?(x=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:P}),e[6]=P,e[7]=x):x=e[7];let h;e[8]!==$?(h=oe.slice(0,Math.min(Math.max($,0),3)).map(ie),e[8]=$,e[9]=h):h=e[9];const C=`url(#${v})`;let p;e[10]!==C?(p=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:C}),e[10]=C,e[11]=p):p=e[11];let B;e[12]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),e[12]=B):B=e[12];let k,S;e[13]!==s.stripe?(S=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:s.stripe}),k=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:s.stripe}),e[13]=s.stripe,e[14]=k,e[15]=S):(k=e[14],S=e[15]);let c;e[16]!==i||e[17]!==s.glyph?(c=i&&t.jsx(i,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:s.glyph,opacity:.55}}),e[16]=i,e[17]=s.glyph,e[18]=c):c=e[18];let u;e[19]!==l?(u=l&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(ee,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[19]=l,e[20]=u):u=e[20];let g;e[21]!==s.backFrom?(g=t.jsx("stop",{offset:"0.3",stopColor:s.backFrom}),e[21]=s.backFrom,e[22]=g):g=e[22];let d;e[23]!==s.backTo?(d=t.jsx("stop",{offset:"1",stopColor:s.backTo}),e[23]=s.backTo,e[24]=d):d=e[24];let f;e[25]!==D||e[26]!==g||e[27]!==d?(f=t.jsxs("linearGradient",{id:D,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[g,d]}),e[25]=D,e[26]=g,e[27]=d,e[28]=f):f=e[28];let j;e[29]!==s.frontFrom?(j=t.jsx("stop",{stopColor:s.frontFrom}),e[29]=s.frontFrom,e[30]=j):j=e[30];let b;e[31]!==s.frontTo?(b=t.jsx("stop",{offset:"1",stopColor:s.frontTo}),e[31]=s.frontTo,e[32]=b):b=e[32];let T;e[33]!==v||e[34]!==j||e[35]!==b?(T=t.jsxs("radialGradient",{id:v,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[j,b]}),e[33]=v,e[34]=j,e[35]=b,e[36]=T):T=e[36];let y;e[37]!==f||e[38]!==T?(y=t.jsxs("defs",{children:[f,T]}),e[37]=f,e[38]=T,e[39]=y):y=e[39];let N;return e[40]!==r||e[41]!==k||e[42]!==c||e[43]!==u||e[44]!==y||e[45]!==x||e[46]!==h||e[47]!==p||e[48]!==S?(N=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...r,children:[x,h,p,B,S,k,c,u,y]}),e[40]=r,e[41]=k,e[42]=c,e[43]=u,e[44]=y,e[45]=x,e[46]=h,e[47]=p,e[48]=S,e[49]=N):N=e[49],N}function ie(o){return t.jsx("rect",{x:"9",y:"3.4",width:"14",height:"12",rx:"1.2",fill:"#F4F6F9",stroke:"#C9D2DC",strokeWidth:"0.7",transform:`rotate(${o} 16 12)`},o)}export{ge as F,ue as S};
1
+ import{c as M,j as t,v as _,D as G,r as I,d_ as L,m as A,x as H,hB as W,B as O,b3 as U}from"./index-FR7-LkFs.js";import{i as K}from"./Zap-B4USkjaG.js";import{M as R}from"./markdown-CV0DScZs.js";import{F as V}from"./file-preview-D0PiXMMr.js";import{F as J}from"./file-type-icon-BoZOJHAX.js";import{l as Z,h as q,u as Q}from"./use-org-fs-CaJ4jOuW.js";import{O as X,J as E}from"./chat-context-CN0ge7G_.js";import{c as Y}from"./context-shell-C0Osmy2y.js";import{s as ee}from"./Eye-w_JiO-fJ.js";function te(o){const e=M.c(18),{skillPath:i,onClose:r,variant:l}=o,a=X(i),{volume:n,dirPath:F}=a,$=Z(),s=$(n??"",`${F}/SKILL.md`),w=q(s),D=Q(n??"",F);let v;e[0]!==F?(v=E(F),e[0]=F,e[1]=v):v=e[1];const P=v;let x;e[2]!==w.data?(x=w.data?Y(w.data):null,e[2]=w.data,e[3]=x):x=e[3];const h=x,C=le;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(m,z)=>C(m.path)?-1:C(z.path)?1:E(m.path).localeCompare(E(z.path)),e[4]=p):p=e[4];const B=(D.data??[]).filter(se).sort(p),[k,S]=I.useState(null),c=k===null?null:B.find(m=>m.path===k)??null,u=h?.name??P;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(K,{size:18})}),e[5]=g):g=e[5];let d;e[6]!==u||e[7]!==l?(d=l==="dialog"?t.jsx(H,{className:"flex-1 truncate text-base font-medium text-foreground",children:u}):t.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:u}),e[6]=u,e[7]=l,e[8]=d):d=e[8];let f;e[9]!==r||e[10]!==l?(f=l==="dialog"?t.jsx(W,{asChild:!0,children:t.jsx(O,{variant:"ghost",size:"icon",className:"shrink-0",children:t.jsx(U,{size:16})})}):t.jsx(O,{variant:"ghost",size:"icon",className:"shrink-0",onClick:r,children:t.jsx(U,{size:16})}),e[9]=r,e[10]=l,e[11]=f):f=e[11];let j;e[12]!==d||e[13]!==f?(j=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g,d,f]}),e[12]=d,e[13]=f,e[14]=j):j=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=b):b=e[15];const T="relative flex min-w-0 flex-1 flex-col overflow-y-auto",y=c?t.jsx(V,{file:{key:c.path,filename:E(c.path),size:c.size,downloadUrl:$(n??"",c.path)}}):w.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(L,{className:"h-4 w-1/3"}),t.jsx(L,{className:"h-3 w-full"}),t.jsx(L,{className:"h-3 w-5/6"}),t.jsx(L,{className:"h-3 w-2/3"})]}):w.isError||!h?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:h.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(R,{id:`skill-preview-${i}`,text:h.body})})]});let N;return e[16]!==y?(N=t.jsx("div",{className:T,children:y}),e[16]=y,e[17]=N):N=e[17],t.jsxs(t.Fragment,{children:[j,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[b,D.isPending?t.jsx(L,{className:"mx-2 h-4 w-24"}):B.map(m=>{const z=C(m.path)?c===null:k===m.path;return t.jsxs("button",{type:"button",onClick:()=>S(C(m.path)?null:m.path),className:A("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",z?"bg-background shadow-edge":"hover:bg-accent"),children:[t.jsx(J,{filename:E(m.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:A("truncate text-sm",z?"text-foreground":"text-muted-foreground"),children:E(m.path)})]},m.path)})]}),N]})]})}function se(o){return o.kind==="file"}function le(o){return E(o)==="SKILL.md"}function ue(o){const e=M.c(8),{skillPath:i,onClose:r}=o;let l;e[0]!==r?(l=F=>{F||r()},e[0]=r,e[1]=l):l=e[1];let a;e[2]!==r||e[3]!==i?(a=t.jsx(_,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:t.jsx(te,{skillPath:i,onClose:r,variant:"dialog"})}),e[2]=r,e[3]=i,e[4]=a):a=e[4];let n;return e[5]!==l||e[6]!==a?(n=t.jsx(G,{open:!0,onOpenChange:l,children:a}),e[5]=l,e[6]=a,e[7]=n):n=e[7],n}const re={default:{backFrom:"#4D87DF",backTo:"#296FE8",frontFrom:"#72B6FA",frontTo:"#5BB1EF",stripe:"#84CDFB",glyph:"#014AC9"},system:{backFrom:"#8A94A6",backTo:"#6B7687",frontFrom:"#B6BEC9",frontTo:"#A3ADBA",stripe:"#D5DBE3",glyph:"#3D4757"}},oe=[-7,0,7];function ge(o){const e=M.c(50);let i,r,l,a,n;e[0]!==o?({glyph:i,readOnly:l,tone:a,sheets:n,...r}=o,e[0]=o,e[1]=i,e[2]=r,e[3]=l,e[4]=a,e[5]=n):(i=e[1],r=e[2],l=e[3],a=e[4],n=e[5]);const F=a===void 0?"default":a,$=n===void 0?0:n,s=re[F],w=I.useId(),D=`${w}-back`,v=`${w}-front`,P=`url(#${D})`;let x;e[6]!==P?(x=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:P}),e[6]=P,e[7]=x):x=e[7];let h;e[8]!==$?(h=oe.slice(0,Math.min(Math.max($,0),3)).map(ie),e[8]=$,e[9]=h):h=e[9];const C=`url(#${v})`;let p;e[10]!==C?(p=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:C}),e[10]=C,e[11]=p):p=e[11];let B;e[12]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),e[12]=B):B=e[12];let k,S;e[13]!==s.stripe?(S=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:s.stripe}),k=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:s.stripe}),e[13]=s.stripe,e[14]=k,e[15]=S):(k=e[14],S=e[15]);let c;e[16]!==i||e[17]!==s.glyph?(c=i&&t.jsx(i,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:s.glyph,opacity:.55}}),e[16]=i,e[17]=s.glyph,e[18]=c):c=e[18];let u;e[19]!==l?(u=l&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(ee,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[19]=l,e[20]=u):u=e[20];let g;e[21]!==s.backFrom?(g=t.jsx("stop",{offset:"0.3",stopColor:s.backFrom}),e[21]=s.backFrom,e[22]=g):g=e[22];let d;e[23]!==s.backTo?(d=t.jsx("stop",{offset:"1",stopColor:s.backTo}),e[23]=s.backTo,e[24]=d):d=e[24];let f;e[25]!==D||e[26]!==g||e[27]!==d?(f=t.jsxs("linearGradient",{id:D,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[g,d]}),e[25]=D,e[26]=g,e[27]=d,e[28]=f):f=e[28];let j;e[29]!==s.frontFrom?(j=t.jsx("stop",{stopColor:s.frontFrom}),e[29]=s.frontFrom,e[30]=j):j=e[30];let b;e[31]!==s.frontTo?(b=t.jsx("stop",{offset:"1",stopColor:s.frontTo}),e[31]=s.frontTo,e[32]=b):b=e[32];let T;e[33]!==v||e[34]!==j||e[35]!==b?(T=t.jsxs("radialGradient",{id:v,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[j,b]}),e[33]=v,e[34]=j,e[35]=b,e[36]=T):T=e[36];let y;e[37]!==f||e[38]!==T?(y=t.jsxs("defs",{children:[f,T]}),e[37]=f,e[38]=T,e[39]=y):y=e[39];let N;return e[40]!==r||e[41]!==k||e[42]!==c||e[43]!==u||e[44]!==y||e[45]!==x||e[46]!==h||e[47]!==p||e[48]!==S?(N=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...r,children:[x,h,p,B,S,k,c,u,y]}),e[40]=r,e[41]=k,e[42]=c,e[43]=u,e[44]=y,e[45]=x,e[46]=h,e[47]=p,e[48]=S,e[49]=N):N=e[49],N}function ie(o){return t.jsx("rect",{x:"9",y:"3.4",width:"14",height:"12",rx:"1.2",fill:"#F4F6F9",stroke:"#C9D2DC",strokeWidth:"0.7",transform:`rotate(${o} 16 12)`},o)}export{ge as F,ue as S};
@@ -1 +1 @@
1
- import{e5 as C,c as f,j as c,e6 as j,r as d,m as p,bX as b,e7 as v,e8 as h}from"./index-0lR5HspR.js";import{L as N}from"./label-B79DRc98.js";const E=C,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
1
+ import{e5 as C,c as f,j as c,e6 as j,r as d,m as p,bX as b,e7 as v,e8 as h}from"./index-FR7-LkFs.js";import{L as N}from"./label-BrDhuinX.js";const E=C,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
@@ -1 +1 @@
1
- import{r as a,c as x,j as R}from"./index-0lR5HspR.js";import{e as E}from"./backoff-CrEUbyZT.js";const _=1e4,v=1e3,L=3e4;function b({iframeRef:r,src:e,active:t}){const o=a.useRef(0),n=a.useRef(null),u=a.useRef(null),s=a.useRef(e),c=a.useRef(t);s.current=e,c.current=t;const i=()=>{n.current&&clearTimeout(n.current),u.current&&clearTimeout(u.current),n.current=null,u.current=null},l=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{n.current=null,f()},_)},f=()=>{if(!c.current||!s.current)return;u.current&&clearTimeout(u.current);const T=E(L,v,o.current,2,.5);o.current+=1,u.current=setTimeout(()=>{u.current=null;const m=r.current,d=s.current;!m||!d||!c.current||(m.src=d,l())},T)},p=()=>{o.current=0,i()},g=()=>{n.current&&(clearTimeout(n.current),n.current=null),f()};return a.useEffect(()=>{if(i(),o.current=0,!(!t||!e))return l(),i},[e,t]),{handleLoad:p,handleError:g}}function A(){const r=x.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=R.jsx("div",{"data-testid":"preview-progress",className:"absolute inset-x-0 top-0 z-40 h-1 overflow-hidden",children:R.jsx("div",{className:"absolute inset-y-0 left-0 rounded-r-full bg-brand shadow-[0_0_6px] shadow-brand/60 animate-preview-ramp"})}),r[0]=e):e=r[0],e}const N=15e3;function M(r,e,t){return t?r.src===e||r.loading?r:{src:e,loading:!0}:r.src===e&&!r.loading?r:{src:e,loading:!1}}function P(r,e,t){return!t||!r||!e||h(r,e)?e:r}function j(r){return r.loading?{...r,loading:!1}:r}function h(r,e){try{const t=new URL(r),o=new URL(e);return t.origin===o.origin&&t.pathname===o.pathname}catch{return!1}}function I(r,{base:e,frameSrc:t,loadedSrc:o,wanted:n,canSwap:u}){const s=r?.base===e?r:null,c=s?.src??t,i=s?.shown??t;return!n||!c||!i?null:i===n?s:u&&o===c&&h(i,n)?{base:e,src:c,shown:n}:null}export{N as H,A as P,I as a,j as f,P as h,M as n,b as u};
1
+ import{r as a,c as x,j as R}from"./index-FR7-LkFs.js";import{e as E}from"./backoff-CrEUbyZT.js";const _=1e4,v=1e3,L=3e4;function b({iframeRef:r,src:e,active:t}){const o=a.useRef(0),n=a.useRef(null),u=a.useRef(null),s=a.useRef(e),c=a.useRef(t);s.current=e,c.current=t;const i=()=>{n.current&&clearTimeout(n.current),u.current&&clearTimeout(u.current),n.current=null,u.current=null},l=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{n.current=null,f()},_)},f=()=>{if(!c.current||!s.current)return;u.current&&clearTimeout(u.current);const T=E(L,v,o.current,2,.5);o.current+=1,u.current=setTimeout(()=>{u.current=null;const m=r.current,d=s.current;!m||!d||!c.current||(m.src=d,l())},T)},p=()=>{o.current=0,i()},g=()=>{n.current&&(clearTimeout(n.current),n.current=null),f()};return a.useEffect(()=>{if(i(),o.current=0,!(!t||!e))return l(),i},[e,t]),{handleLoad:p,handleError:g}}function A(){const r=x.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=R.jsx("div",{"data-testid":"preview-progress",className:"absolute inset-x-0 top-0 z-40 h-1 overflow-hidden",children:R.jsx("div",{className:"absolute inset-y-0 left-0 rounded-r-full bg-brand shadow-[0_0_6px] shadow-brand/60 animate-preview-ramp"})}),r[0]=e):e=r[0],e}const N=15e3;function M(r,e,t){return t?r.src===e||r.loading?r:{src:e,loading:!0}:r.src===e&&!r.loading?r:{src:e,loading:!1}}function P(r,e,t){return!t||!r||!e||h(r,e)?e:r}function j(r){return r.loading?{...r,loading:!1}:r}function h(r,e){try{const t=new URL(r),o=new URL(e);return t.origin===o.origin&&t.pathname===o.pathname}catch{return!1}}function I(r,{base:e,frameSrc:t,loadedSrc:o,wanted:n,canSwap:u}){const s=r?.base===e?r:null,c=s?.src??t,i=s?.shown??t;return!n||!c||!i?null:i===n?s:u&&o===c&&h(i,n)?{base:e,src:c,shown:n}:null}export{N as H,A as P,I as a,j as f,P as h,M as n,b as u};
@@ -1 +1 @@
1
- import"./index-0lR5HspR.js";const i=/^mcp__[a-zA-Z0-9_-]+__/;function l(t){return t.replace(i,"")}function n(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function s(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function o(t,r){if(!r)return t;const e=`${n(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function c(t,r){return o(t,r).replace(/[_-]/g," ").toLowerCase()}export{o as a,c as d,s as g,l as s};
1
+ import"./index-FR7-LkFs.js";const i=/^mcp__[a-zA-Z0-9_-]+__/;function l(t){return t.replace(i,"")}function n(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function s(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function o(t,r){if(!r)return t;const e=`${n(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function c(t,r){return o(t,r).replace(/[_-]/g," ").toLowerCase()}export{o as a,c as d,s as g,l as s};
@@ -1 +1 @@
1
- import{b as U,a4 as te,hh as oe,q as re,aE as le,aD as ce,e as ie,E as Z,t as K,K as W,j as i,gT as ne,gf as se,gg as Q,e6 as ge,I as ae,aF as de,aG as X,c as H,r as J,o as me,ak as ue,at as ee,cq as fe,cr as pe,M as he,B as xe,aH as je,aI as ze,aJ as Se,aK as Oe,b7 as ve,aL as be,aM as Ce,aN as ye,aq as Fe,n as $,hq as _e,b5 as De}from"./index-0lR5HspR.js";import{u as Ae}from"./use-debounced-autosave-CciezuN3.js";import{C as we,B as Ee,a as Te}from"./review-settings-ggSjEgPT.js";import{D as Ne}from"./domain-settings-U9k6HRc-.js";import{C as Le}from"./capability-load-error-CeNWEteQ.js";import"./switch-Byyj-_s4.js";import"./BookOpen01-D1Av52an.js";import"./UserSquare-BAoPnOeW.js";import"./use-organization-settings-BXnCxXvc.js";import"./schema-DrjJ0xuK.js";import"./task-board-D3W1ksfo.js";import"./use-connection-C0q-jSdh.js";import"./use-mcp-client-fkOuyPSB.js";import"./auth-YOK5D_Me.js";import"./badge-u1zWRb7U.js";import"./select-CwyDmqv5.js";import"./index-BdQq_4o_.js";import"./index-dlWHc2Bm.js";import"./ChevronDown-D3VUgCNv.js";import"./ChevronUp-Dj0hyz3c.js";const ke=e=>de({name:X().min(1,e("settings.organizationForm.nameRequired")).max(255,e("settings.organizationForm.nameTooLong")),logo:X().optional()});function Pe(e){const t=H.c(17),{value:s,onChange:f,name:g,disabled:l}=e,c=U(),d=J.useRef(null);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>d.current?.click(),t[0]=o):o=t[0];const m=o;let n;t[1]!==f||t[2]!==c?(n=S=>{const z=S.target.files?.[0];if(!z)return;if(z.size>2097152){K.error(c("settings.organizationForm.imageTooLarge"));return}const p=new FileReader;p.onerror=()=>K.error(c("settings.organizationForm.failedToReadImage")),p.onloadend=()=>{p.result&&f(p.result),d.current&&(d.current.value="")},p.readAsDataURL(z)},t[1]=f,t[2]=c,t[3]=n):n=t[3];const a=n;let r;t[4]!==c?(r=c("settings.organizationForm.uploadLogoLabel"),t[4]=c,t[5]=r):r=t[5];let u;t[6]!==l||t[7]!==a?(u=i.jsx("input",{ref:d,type:"file",accept:"image/*",onChange:a,className:"hidden",disabled:l}),t[6]=l,t[7]=a,t[8]=u):u=t[8];const x=s||void 0,j=g??"?";let h;t[9]!==x||t[10]!==j?(h=i.jsx(me,{url:x,fallback:j,shape:"square",size:"base"}),t[9]=x,t[10]=j,t[11]=h):h=t[11];let v;return t[12]!==l||t[13]!==r||t[14]!==u||t[15]!==h?(v=i.jsxs("button",{type:"button",onClick:m,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":r,children:[u,h]}),t[12]=l,t[13]=r,t[14]=u,t[15]=h,t[16]=v):v=t[16],v}function Re(){const e=U(),{org:t}=te(),s=oe(),f=re(),g=le({resolver:ce(ke(e)),values:{name:t.name??"",logo:t.logo??""}}),l=ie({mutationFn:async n=>{const a={name:n.name};n.logo&&(a.logo=n.logo);const r=await s.organization.update({data:a});if(r?.error)throw new Error(r.error.message||e("settings.organizationForm.failedToUpdateOrg"));return r},onSuccess:(n,a)=>{Z("organization_settings_updated",{organization_id:t.id,fields:Object.keys(a)}),f.invalidateQueries({queryKey:W.organizations()}),f.invalidateQueries({queryKey:W.activeOrganization(t.slug)}),K.success(e("settings.organizationForm.updateSuccess"))},onError:(n,a)=>{Z("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(a),error:n instanceof Error?n.message:String(n)}),K.error(n instanceof Error?n.message:e("settings.organizationForm.failedToUpdateOrg"))}}),{schedule:c,flush:d}=Ae({save:async()=>{const n=g.control._formState.dirtyFields;if(Object.keys(n).length===0||!await g.trigger())return;const r=g.getValues(),u=g.control._defaultValues;g.reset(r,{keepValues:!0});try{await l.mutateAsync(r)}catch{g.reset(u,{keepValues:!0})}}}),o=g.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return i.jsx(ne,{children:i.jsxs(se,{children:[i.jsx(Q,{title:e("settings.organizationForm.logoTitle"),description:e("settings.organizationForm.logoDescription"),action:i.jsx(Pe,{value:g.watch("logo"),onChange:n=>{g.setValue("logo",n??"",{shouldDirty:!0}),d()},name:g.watch("name")})}),i.jsx(Q,{title:e("settings.organizationForm.nameTitle"),action:i.jsx(ge,{control:g.control,name:"name",render:({field:n})=>i.jsx(ae,{id:"org-name",...n,onChange:a=>{n.onChange(a),c()},onBlur:()=>{n.onBlur(),d()},placeholder:e("settings.organizationForm.namePlaceholder"),className:"w-[280px]"})})}),i.jsx(Q,{title:e("settings.organizationForm.urlTitle"),description:e("settings.organizationForm.urlDescription"),action:i.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-muted/40 overflow-hidden",children:[m&&i.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),i.jsx("span",{className:"flex-1 min-w-0 px-2 py-1.5 text-sm text-foreground truncate",children:t.slug})]})}),(o.name||o.logo)&&i.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[o.name&&i.jsx("p",{className:"text-xs text-destructive",children:o.name.message}),o.logo&&i.jsx("p",{className:"text-xs text-destructive",children:o.logo.message})]})]})})}function qe(){const e=H.c(83),t=U(),{org:s}=te(),[f,g]=J.useState(!1),[l,c]=J.useState(""),d=ue();let o;e[0]!==s.id||e[1]!==d?(o=async()=>{await d.call("ORGANIZATION_DELETE",{id:s.id})},e[0]=s.id,e[1]=d,e[2]=o):o=e[2];let m;e[3]!==s.id||e[4]!==s.slug||e[5]!==t?(m=()=>{Z("organization_deleted",{organization_id:s.id}),localStorage.getItem(ee.lastOrgSlug())===s.slug&&localStorage.removeItem(ee.lastOrgSlug()),fe()?.org===s.slug&&pe(),he(),K.success(t("settings.deleteOrganizationSection.organizationDeleted")),window.location.href="/"},e[3]=s.id,e[4]=s.slug,e[5]=t,e[6]=m):m=e[6];let n;e[7]!==t?(n=O=>{K.error(O instanceof Error?O.message:t("settings.deleteOrganizationSection.failedToDeleteOrganization"))},e[7]=t,e[8]=n):n=e[8];let a;e[9]!==o||e[10]!==m||e[11]!==n?(a={mutationFn:o,onSuccess:m,onError:n},e[9]=o,e[10]=m,e[11]=n,e[12]=a):a=e[12];const r=ie(a);let u;e[13]!==t?(u=t("settings.deleteOrganizationSection.dangerZone"),e[13]=t,e[14]=u):u=e[14];let x;e[15]!==t?(x=t("settings.deleteOrganizationSection.deleteOrganizationTitle"),e[15]=t,e[16]=x):x=e[16];let j;e[17]!==t?(j=t("settings.deleteOrganizationSection.deleteOrganizationDescription"),e[17]=t,e[18]=j):j=e[18];let h;e[19]===Symbol.for("react.memo_cache_sentinel")?(h=()=>g(!0),e[19]=h):h=e[19];const v=r.isPending;let S;e[20]!==t?(S=t("settings.deleteOrganizationSection.deleteButton"),e[20]=t,e[21]=S):S=e[21];let z;e[22]!==r.isPending||e[23]!==S?(z=i.jsx(xe,{variant:"destructive",size:"sm",onClick:h,disabled:v,children:S}),e[22]=r.isPending,e[23]=S,e[24]=z):z=e[24];let p;e[25]!==z||e[26]!==x||e[27]!==j?(p=i.jsx(se,{className:"border-destructive/40",children:i.jsx(Q,{title:x,description:j,action:z})}),e[25]=z,e[26]=x,e[27]=j,e[28]=p):p=e[28];let b;e[29]!==p||e[30]!==u?(b=i.jsx(ne,{title:u,children:p}),e[29]=p,e[30]=u,e[31]=b):b=e[31];let G;e[32]===Symbol.for("react.memo_cache_sentinel")?(G=O=>{g(O),O||c("")},e[32]=G):G=e[32];let C;e[33]!==t?(C=t("settings.deleteOrganizationSection.deleteOrganizationQuestion"),e[33]=t,e[34]=C):C=e[34];let y;e[35]!==C?(y=i.jsx(je,{children:C}),e[35]=C,e[36]=y):y=e[36];let F;e[37]!==s.name||e[38]!==t?(F=t("settings.deleteOrganizationSection.deleteWarning",{organizationName:s.name}),e[37]=s.name,e[38]=t,e[39]=F):F=e[39];let _;e[40]!==F?(_=i.jsx("p",{children:F}),e[40]=F,e[41]=_):_=e[41];let D;e[42]!==s.name||e[43]!==t?(D=t("settings.deleteOrganizationSection.typeToConfirm",{organizationName:s.name}),e[42]=s.name,e[43]=t,e[44]=D):D=e[44];let A;e[45]!==D?(A=i.jsx("p",{className:"mt-3 mb-1.5",children:D}),e[45]=D,e[46]=A):A=e[46];let M;e[47]===Symbol.for("react.memo_cache_sentinel")?(M=O=>c(O.target.value),e[47]=M):M=e[47];let w;e[48]!==l||e[49]!==s.name?(w=i.jsx(ae,{value:l,onChange:M,placeholder:s.name,autoFocus:!0}),e[48]=l,e[49]=s.name,e[50]=w):w=e[50];let E;e[51]!==_||e[52]!==A||e[53]!==w?(E=i.jsx(ze,{asChild:!0,children:i.jsxs("div",{children:[_,A,w]})}),e[51]=_,e[52]=A,e[53]=w,e[54]=E):E=e[54];let T;e[55]!==y||e[56]!==E?(T=i.jsxs(Se,{children:[y,E]}),e[55]=y,e[56]=E,e[57]=T):T=e[57];let N;e[58]!==t?(N=t("settings.deleteOrganizationSection.cancel"),e[58]=t,e[59]=N):N=e[59];let L;e[60]!==N?(L=i.jsx(Oe,{children:N}),e[60]=N,e[61]=L):L=e[61];let k;e[62]!==r?(k=()=>r.mutate(),e[62]=r,e[63]=k):k=e[63];const Y=l!==s.name||r.isPending;let P;e[64]!==r.isPending||e[65]!==t?(P=r.isPending?t("settings.deleteOrganizationSection.deleting"):t("settings.deleteOrganizationSection.deleteOrganizationAction"),e[64]=r.isPending,e[65]=t,e[66]=P):P=e[66];let R;e[67]!==k||e[68]!==Y||e[69]!==P?(R=i.jsx(ve,{onClick:k,disabled:Y,variant:"destructive",children:P}),e[67]=k,e[68]=Y,e[69]=P,e[70]=R):R=e[70];let q;e[71]!==L||e[72]!==R?(q=i.jsxs(be,{children:[L,R]}),e[71]=L,e[72]=R,e[73]=q):q=e[73];let I;e[74]!==T||e[75]!==q?(I=i.jsxs(Ce,{children:[T,q]}),e[74]=T,e[75]=q,e[76]=I):I=e[76];let B;e[77]!==f||e[78]!==I?(B=i.jsx(ye,{open:f,onOpenChange:G,children:I}),e[77]=f,e[78]=I,e[79]=B):B=e[79];let V;return e[80]!==b||e[81]!==B?(V=i.jsxs(i.Fragment,{children:[b,B]}),e[80]=b,e[81]=B,e[82]=V):V=e[82],V}function Ie(){const e=H.c(16),t=U(),{granted:s,loading:f,error:g}=Fe("org:manage");if(f){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(De,{}),e[0]=a):a=e[0],a}if(g){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Le,{}),e[1]=a):a=e[1],a}let l;e[2]!==t?(l=t("settings.nav.general"),e[2]=t,e[3]=l):l=e[3];let c;e[4]!==l?(c=i.jsx($.Title,{children:l}),e[4]=l,e[5]=c):c=e[5];let d;e[6]!==s?(d=s&&i.jsxs(i.Fragment,{children:[i.jsx(Re,{}),i.jsx(we,{}),i.jsx(Ee,{})]}),e[6]=s,e[7]=d):d=e[7];let o,m;e[8]!==s?(o=i.jsx(Te,{manageable:s}),m=s&&i.jsxs(i.Fragment,{children:[i.jsx(Ne,{}),i.jsx(qe,{})]}),e[8]=s,e[9]=o,e[10]=m):(o=e[9],m=e[10]);let n;return e[11]!==c||e[12]!==d||e[13]!==o||e[14]!==m?(n=i.jsx($,{children:i.jsx($.Content,{children:i.jsx($.Container,{children:i.jsxs(_e,{children:[c,d,o,m]})})})}),e[11]=c,e[12]=d,e[13]=o,e[14]=m,e[15]=n):n=e[15],n}function ot(){const e=H.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(Ie,{}),e[0]=t):t=e[0],t}export{ot as default};
1
+ import{b as U,a4 as te,hh as oe,q as re,aE as le,aD as ce,e as ie,E as Z,t as K,K as W,j as i,gT as ne,gf as se,gg as Q,e6 as ge,I as ae,aF as de,aG as X,c as H,r as J,o as me,ak as ue,at as ee,cq as fe,cr as pe,M as he,B as xe,aH as je,aI as ze,aJ as Se,aK as Oe,b7 as ve,aL as be,aM as Ce,aN as ye,aq as Fe,n as $,hq as _e,b5 as De}from"./index-FR7-LkFs.js";import{u as Ae}from"./use-debounced-autosave-C8qW25SA.js";import{C as we,B as Ee,a as Te}from"./review-settings-vBNXtecT.js";import{D as Ne}from"./domain-settings-A82VOj7n.js";import{C as Le}from"./capability-load-error-Bn6ne_sq.js";import"./switch-BHmi6NG_.js";import"./BookOpen01-anezSoTd.js";import"./UserSquare-BHfTOZb7.js";import"./use-organization-settings-D9Z_MLl2.js";import"./schema-Do1srOed.js";import"./task-board-WdgeTNaU.js";import"./use-connection-BHM3BFUr.js";import"./use-mcp-client-B9e5PyU5.js";import"./auth-Bl-k7r97.js";import"./badge-D21Nz4Kd.js";import"./select-DO5UmbiK.js";import"./index-BdQq_4o_.js";import"./index-CexiDE6J.js";import"./ChevronDown-DHu3fSw0.js";import"./ChevronUp-XsNgN3o9.js";const ke=e=>de({name:X().min(1,e("settings.organizationForm.nameRequired")).max(255,e("settings.organizationForm.nameTooLong")),logo:X().optional()});function Pe(e){const t=H.c(17),{value:s,onChange:f,name:g,disabled:l}=e,c=U(),d=J.useRef(null);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>d.current?.click(),t[0]=o):o=t[0];const m=o;let n;t[1]!==f||t[2]!==c?(n=S=>{const z=S.target.files?.[0];if(!z)return;if(z.size>2097152){K.error(c("settings.organizationForm.imageTooLarge"));return}const p=new FileReader;p.onerror=()=>K.error(c("settings.organizationForm.failedToReadImage")),p.onloadend=()=>{p.result&&f(p.result),d.current&&(d.current.value="")},p.readAsDataURL(z)},t[1]=f,t[2]=c,t[3]=n):n=t[3];const a=n;let r;t[4]!==c?(r=c("settings.organizationForm.uploadLogoLabel"),t[4]=c,t[5]=r):r=t[5];let u;t[6]!==l||t[7]!==a?(u=i.jsx("input",{ref:d,type:"file",accept:"image/*",onChange:a,className:"hidden",disabled:l}),t[6]=l,t[7]=a,t[8]=u):u=t[8];const x=s||void 0,j=g??"?";let h;t[9]!==x||t[10]!==j?(h=i.jsx(me,{url:x,fallback:j,shape:"square",size:"base"}),t[9]=x,t[10]=j,t[11]=h):h=t[11];let v;return t[12]!==l||t[13]!==r||t[14]!==u||t[15]!==h?(v=i.jsxs("button",{type:"button",onClick:m,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":r,children:[u,h]}),t[12]=l,t[13]=r,t[14]=u,t[15]=h,t[16]=v):v=t[16],v}function Re(){const e=U(),{org:t}=te(),s=oe(),f=re(),g=le({resolver:ce(ke(e)),values:{name:t.name??"",logo:t.logo??""}}),l=ie({mutationFn:async n=>{const a={name:n.name};n.logo&&(a.logo=n.logo);const r=await s.organization.update({data:a});if(r?.error)throw new Error(r.error.message||e("settings.organizationForm.failedToUpdateOrg"));return r},onSuccess:(n,a)=>{Z("organization_settings_updated",{organization_id:t.id,fields:Object.keys(a)}),f.invalidateQueries({queryKey:W.organizations()}),f.invalidateQueries({queryKey:W.activeOrganization(t.slug)}),K.success(e("settings.organizationForm.updateSuccess"))},onError:(n,a)=>{Z("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(a),error:n instanceof Error?n.message:String(n)}),K.error(n instanceof Error?n.message:e("settings.organizationForm.failedToUpdateOrg"))}}),{schedule:c,flush:d}=Ae({save:async()=>{const n=g.control._formState.dirtyFields;if(Object.keys(n).length===0||!await g.trigger())return;const r=g.getValues(),u=g.control._defaultValues;g.reset(r,{keepValues:!0});try{await l.mutateAsync(r)}catch{g.reset(u,{keepValues:!0})}}}),o=g.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return i.jsx(ne,{children:i.jsxs(se,{children:[i.jsx(Q,{title:e("settings.organizationForm.logoTitle"),description:e("settings.organizationForm.logoDescription"),action:i.jsx(Pe,{value:g.watch("logo"),onChange:n=>{g.setValue("logo",n??"",{shouldDirty:!0}),d()},name:g.watch("name")})}),i.jsx(Q,{title:e("settings.organizationForm.nameTitle"),action:i.jsx(ge,{control:g.control,name:"name",render:({field:n})=>i.jsx(ae,{id:"org-name",...n,onChange:a=>{n.onChange(a),c()},onBlur:()=>{n.onBlur(),d()},placeholder:e("settings.organizationForm.namePlaceholder"),className:"w-[280px]"})})}),i.jsx(Q,{title:e("settings.organizationForm.urlTitle"),description:e("settings.organizationForm.urlDescription"),action:i.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-muted/40 overflow-hidden",children:[m&&i.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),i.jsx("span",{className:"flex-1 min-w-0 px-2 py-1.5 text-sm text-foreground truncate",children:t.slug})]})}),(o.name||o.logo)&&i.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[o.name&&i.jsx("p",{className:"text-xs text-destructive",children:o.name.message}),o.logo&&i.jsx("p",{className:"text-xs text-destructive",children:o.logo.message})]})]})})}function qe(){const e=H.c(83),t=U(),{org:s}=te(),[f,g]=J.useState(!1),[l,c]=J.useState(""),d=ue();let o;e[0]!==s.id||e[1]!==d?(o=async()=>{await d.call("ORGANIZATION_DELETE",{id:s.id})},e[0]=s.id,e[1]=d,e[2]=o):o=e[2];let m;e[3]!==s.id||e[4]!==s.slug||e[5]!==t?(m=()=>{Z("organization_deleted",{organization_id:s.id}),localStorage.getItem(ee.lastOrgSlug())===s.slug&&localStorage.removeItem(ee.lastOrgSlug()),fe()?.org===s.slug&&pe(),he(),K.success(t("settings.deleteOrganizationSection.organizationDeleted")),window.location.href="/"},e[3]=s.id,e[4]=s.slug,e[5]=t,e[6]=m):m=e[6];let n;e[7]!==t?(n=O=>{K.error(O instanceof Error?O.message:t("settings.deleteOrganizationSection.failedToDeleteOrganization"))},e[7]=t,e[8]=n):n=e[8];let a;e[9]!==o||e[10]!==m||e[11]!==n?(a={mutationFn:o,onSuccess:m,onError:n},e[9]=o,e[10]=m,e[11]=n,e[12]=a):a=e[12];const r=ie(a);let u;e[13]!==t?(u=t("settings.deleteOrganizationSection.dangerZone"),e[13]=t,e[14]=u):u=e[14];let x;e[15]!==t?(x=t("settings.deleteOrganizationSection.deleteOrganizationTitle"),e[15]=t,e[16]=x):x=e[16];let j;e[17]!==t?(j=t("settings.deleteOrganizationSection.deleteOrganizationDescription"),e[17]=t,e[18]=j):j=e[18];let h;e[19]===Symbol.for("react.memo_cache_sentinel")?(h=()=>g(!0),e[19]=h):h=e[19];const v=r.isPending;let S;e[20]!==t?(S=t("settings.deleteOrganizationSection.deleteButton"),e[20]=t,e[21]=S):S=e[21];let z;e[22]!==r.isPending||e[23]!==S?(z=i.jsx(xe,{variant:"destructive",size:"sm",onClick:h,disabled:v,children:S}),e[22]=r.isPending,e[23]=S,e[24]=z):z=e[24];let p;e[25]!==z||e[26]!==x||e[27]!==j?(p=i.jsx(se,{className:"border-destructive/40",children:i.jsx(Q,{title:x,description:j,action:z})}),e[25]=z,e[26]=x,e[27]=j,e[28]=p):p=e[28];let b;e[29]!==p||e[30]!==u?(b=i.jsx(ne,{title:u,children:p}),e[29]=p,e[30]=u,e[31]=b):b=e[31];let G;e[32]===Symbol.for("react.memo_cache_sentinel")?(G=O=>{g(O),O||c("")},e[32]=G):G=e[32];let C;e[33]!==t?(C=t("settings.deleteOrganizationSection.deleteOrganizationQuestion"),e[33]=t,e[34]=C):C=e[34];let y;e[35]!==C?(y=i.jsx(je,{children:C}),e[35]=C,e[36]=y):y=e[36];let F;e[37]!==s.name||e[38]!==t?(F=t("settings.deleteOrganizationSection.deleteWarning",{organizationName:s.name}),e[37]=s.name,e[38]=t,e[39]=F):F=e[39];let _;e[40]!==F?(_=i.jsx("p",{children:F}),e[40]=F,e[41]=_):_=e[41];let D;e[42]!==s.name||e[43]!==t?(D=t("settings.deleteOrganizationSection.typeToConfirm",{organizationName:s.name}),e[42]=s.name,e[43]=t,e[44]=D):D=e[44];let A;e[45]!==D?(A=i.jsx("p",{className:"mt-3 mb-1.5",children:D}),e[45]=D,e[46]=A):A=e[46];let M;e[47]===Symbol.for("react.memo_cache_sentinel")?(M=O=>c(O.target.value),e[47]=M):M=e[47];let w;e[48]!==l||e[49]!==s.name?(w=i.jsx(ae,{value:l,onChange:M,placeholder:s.name,autoFocus:!0}),e[48]=l,e[49]=s.name,e[50]=w):w=e[50];let E;e[51]!==_||e[52]!==A||e[53]!==w?(E=i.jsx(ze,{asChild:!0,children:i.jsxs("div",{children:[_,A,w]})}),e[51]=_,e[52]=A,e[53]=w,e[54]=E):E=e[54];let T;e[55]!==y||e[56]!==E?(T=i.jsxs(Se,{children:[y,E]}),e[55]=y,e[56]=E,e[57]=T):T=e[57];let N;e[58]!==t?(N=t("settings.deleteOrganizationSection.cancel"),e[58]=t,e[59]=N):N=e[59];let L;e[60]!==N?(L=i.jsx(Oe,{children:N}),e[60]=N,e[61]=L):L=e[61];let k;e[62]!==r?(k=()=>r.mutate(),e[62]=r,e[63]=k):k=e[63];const Y=l!==s.name||r.isPending;let P;e[64]!==r.isPending||e[65]!==t?(P=r.isPending?t("settings.deleteOrganizationSection.deleting"):t("settings.deleteOrganizationSection.deleteOrganizationAction"),e[64]=r.isPending,e[65]=t,e[66]=P):P=e[66];let R;e[67]!==k||e[68]!==Y||e[69]!==P?(R=i.jsx(ve,{onClick:k,disabled:Y,variant:"destructive",children:P}),e[67]=k,e[68]=Y,e[69]=P,e[70]=R):R=e[70];let q;e[71]!==L||e[72]!==R?(q=i.jsxs(be,{children:[L,R]}),e[71]=L,e[72]=R,e[73]=q):q=e[73];let I;e[74]!==T||e[75]!==q?(I=i.jsxs(Ce,{children:[T,q]}),e[74]=T,e[75]=q,e[76]=I):I=e[76];let B;e[77]!==f||e[78]!==I?(B=i.jsx(ye,{open:f,onOpenChange:G,children:I}),e[77]=f,e[78]=I,e[79]=B):B=e[79];let V;return e[80]!==b||e[81]!==B?(V=i.jsxs(i.Fragment,{children:[b,B]}),e[80]=b,e[81]=B,e[82]=V):V=e[82],V}function Ie(){const e=H.c(16),t=U(),{granted:s,loading:f,error:g}=Fe("org:manage");if(f){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(De,{}),e[0]=a):a=e[0],a}if(g){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Le,{}),e[1]=a):a=e[1],a}let l;e[2]!==t?(l=t("settings.nav.general"),e[2]=t,e[3]=l):l=e[3];let c;e[4]!==l?(c=i.jsx($.Title,{children:l}),e[4]=l,e[5]=c):c=e[5];let d;e[6]!==s?(d=s&&i.jsxs(i.Fragment,{children:[i.jsx(Re,{}),i.jsx(we,{}),i.jsx(Ee,{})]}),e[6]=s,e[7]=d):d=e[7];let o,m;e[8]!==s?(o=i.jsx(Te,{manageable:s}),m=s&&i.jsxs(i.Fragment,{children:[i.jsx(Ne,{}),i.jsx(qe,{})]}),e[8]=s,e[9]=o,e[10]=m):(o=e[9],m=e[10]);let n;return e[11]!==c||e[12]!==d||e[13]!==o||e[14]!==m?(n=i.jsx($,{children:i.jsx($.Content,{children:i.jsx($.Container,{children:i.jsxs(_e,{children:[c,d,o,m]})})})}),e[11]=c,e[12]=d,e[13]=o,e[14]=m,e[15]=n):n=e[15],n}function ot(){const e=H.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(Ie,{}),e[0]=t):t=e[0],t}export{ot as default};
@@ -1 +1 @@
1
- import{c as n,j as o}from"./index-0lR5HspR.js";function a(r){const e=n.c(4),{size:t,className:c}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=s):s=e[0];let i;return e[1]!==c||e[2]!==t?(i=o.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:c,children:s}),e[1]=c,e[2]=t,e[3]=i):i=e[3],i}export{a as G};
1
+ import{c as n,j as o}from"./index-FR7-LkFs.js";function a(r){const e=n.c(4),{size:t,className:c}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=s):s=e[0];let i;return e[1]!==c||e[2]!==t?(i=o.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:c,children:s}),e[1]=c,e[2]=t,e[3]=i):i=e[3],i}export{a as G};