decocms 3.26.1 → 3.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/dist/client/assets/{AlertCircle-BDfUS-lh.js → AlertCircle-DTxB9pUH.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-8daK_Mrm.js → ArrowUpRight-zXKZw2Xb.js} +1 -1
  3. package/dist/client/assets/{Check-C9-fsV6-.js → Check-CTLrORIv.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-B_rVd_l8.js → CheckCircle-BUQijftD.js} +1 -1
  5. package/dist/client/assets/{ChevronDown--2U1gfXf.js → ChevronDown-CE2QQfze.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-TttN4toV.js → ChevronLeft-Cu7s4gqK.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-BVEygGVH.js → ChevronRight-VGojeAFz.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-C-xaVM7d.js → ChevronUp-4IXM99ti.js} +1 -1
  9. package/dist/client/assets/{Container-Bso4WS0x.js → Container-BoFlhIZL.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-Q3F6UWC_.js → DotsVertical--R-pmXe3.js} +1 -1
  11. package/dist/client/assets/{Eye-CKz6zS_m.js → Eye-pMhw6sUG.js} +1 -1
  12. package/dist/client/assets/{FilterLines-SKQT-eWL.js → FilterLines-Bz8yyibx.js} +1 -1
  13. package/dist/client/assets/{Globe01-iupU5eqh.js → Globe01-Cp3X_WfB.js} +1 -1
  14. package/dist/client/assets/{HardDrive-DpuvbJvr.js → HardDrive-BH54c3De.js} +1 -1
  15. package/dist/client/assets/{Key01-6eW9IRFT.js → Key01-CfBifHqv.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-BkxKKkMX.js → LayoutLeft-DhbihSgJ.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-BXhdtlT7.js → LinkExternal01-BGLjTHSM.js} +1 -1
  18. package/dist/client/assets/{Monitor01-DUICZH5i.js → Monitor01-Djh_XBKr.js} +1 -1
  19. package/dist/client/assets/{Palette-CS36Icvl.js → Palette-PH8MXuP9.js} +1 -1
  20. package/dist/client/assets/{Play-CbbqvWPd.js → Play-C4oLlMWL.js} +1 -1
  21. package/dist/client/assets/{Plus-CSNkL1o7.js → Plus-BX4ueqQS.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-Dncu-kYd.js → RefreshCcw01-Duj7NlwB.js} +1 -1
  23. package/dist/client/assets/{SearchMd-B-q2EsGW.js → SearchMd-CL91MHi_.js} +1 -1
  24. package/dist/client/assets/{Settings02-CdJ0CKrL.js → Settings02-DWXKmfg4.js} +1 -1
  25. package/dist/client/assets/{Shield01-Crgp73nV.js → Shield01-5PYVS020.js} +1 -1
  26. package/dist/client/assets/{Star01-CN33xE6w.js → Star01-E49TkgRa.js} +1 -1
  27. package/dist/client/assets/{Stars01-BXO9Nc4-.js → Stars01-NNVgYP83.js} +1 -1
  28. package/dist/client/assets/{Stars02-B4CoQ82E.js → Stars02-BVMEIcco.js} +1 -1
  29. package/dist/client/assets/{Sun-CEzPQTAJ.js → Sun-CC_Mb8Zc.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BI_yHGXL.js → SwitchHorizontal01-Fq29tGDx.js} +1 -1
  31. package/dist/client/assets/{Tool01-R6WyaXsu.js → Tool01-B2YQjPAa.js} +1 -1
  32. package/dist/client/assets/{Trash01-C3pnsiws.js → Trash01-XqCtMZQT.js} +1 -1
  33. package/dist/client/assets/{Upload01-BHsRhr7X.js → Upload01-CTIKtpO3.js} +1 -1
  34. package/dist/client/assets/{User01-JuGE_kA7.js → User01-Cz-IdAgQ.js} +1 -1
  35. package/dist/client/assets/{Users01-BVUwP6xk.js → Users01-D7P0o8Z_.js} +1 -1
  36. package/dist/client/assets/{Users03-Bek4Ag3W.js → Users03-DUZwXij4.js} +1 -1
  37. package/dist/client/assets/{X-BdwzFded.js → X-8xcHoVBj.js} +1 -1
  38. package/dist/client/assets/{XCircle-D_3MYOn4.js → XCircle-CGgdji5f.js} +1 -1
  39. package/dist/client/assets/{XClose-Da5LgJSi.js → XClose-CxCjUb2p.js} +1 -1
  40. package/dist/client/assets/{Zap-DHBAOmqP.js → Zap-DLFeSSQ0.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-CP91cLS8.js → ZapSquare-C2mTTgos.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-CaG3Pd1Z.js → ZoomOut-CR6ja8eb.js} +1 -1
  43. package/dist/client/assets/{access-gate-AjUY-gkn.js → access-gate-3WvSXWjg.js} +1 -1
  44. package/dist/client/assets/{accordion-JZC0q2Q6.js → accordion-DBEoJ6NR.js} +1 -1
  45. package/dist/client/assets/add-section-modal-B-90MHzy.js +1 -0
  46. package/dist/client/assets/agent-capabilities-CeRZY0ao.js +3 -0
  47. package/dist/client/assets/{agent-icon-DAPplz1A.js → agent-icon-DyzI2_Id.js} +1 -1
  48. package/dist/client/assets/agent-icons-CkjHTgLo.js +4 -0
  49. package/dist/client/assets/{agents-list-Cqp5uusD.js → agents-list-DNeWvyP9.js} +1 -1
  50. package/dist/client/assets/ai-providers-DAK2efaH.js +1 -0
  51. package/dist/client/assets/{alert-C04qeSRO.js → alert-BHgS7nAN.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-Q8M8ngFf.js → alert-dialog-tg3D4mnu.js} +1 -1
  53. package/dist/client/assets/app-editor-WcogQO88.js +1 -0
  54. package/dist/client/assets/{auth-catchall-BbuGVKd9.js → auth-catchall-BOC0nYtA.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-sY7FyVQz.js → auth-split-layout-VA3PSXMI.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-BRsSmcOA.js → automation-list-row-SEcTO2sW.js} +1 -1
  57. package/dist/client/assets/automation-runs-S95csAA4.js +1 -0
  58. package/dist/client/assets/{automations-zDSrpko2.js → automations-Ce44y56V.js} +1 -1
  59. package/dist/client/assets/{avatar-BqNGZrFg.js → avatar-DK3a4hPp.js} +1 -1
  60. package/dist/client/assets/{badge-BBLSXFe0.js → badge-SRsZ13Ha.js} +1 -1
  61. package/dist/client/assets/brand-context-CHR40nnF.js +1 -0
  62. package/dist/client/assets/buckets-7WU_Biyf.js +1 -0
  63. package/dist/client/assets/{calendar-CfY7gp-n.js → calendar-CC1tf37S.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-CjE005FF.js → capability-load-error-C5tUHDdB.js} +1 -1
  65. package/dist/client/assets/{card-D41ULrnf.js → card-BU_YNBo4.js} +1 -1
  66. package/dist/client/assets/chat-context-Moe82J6D.js +20 -0
  67. package/dist/client/assets/{checkbox-CBmcFqoh.js → checkbox-CGo4P_LC.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-BcBQhgvD.js → cli-auth-success-D15RP8BC.js} +1 -1
  69. package/dist/client/assets/collection-detail-CiMl4FG7.js +1 -0
  70. package/dist/client/assets/{collection-display-button-BNfKMIgL.js → collection-display-button-M_1xgyCf.js} +1 -1
  71. package/dist/client/assets/{collection-search-CDLcWLfd.js → collection-search-CfzW8Ljz.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-DrTvLn6R.js → collection-table-wrapper-B4EgEmky.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-CbZbTMYY.js → collection-tabs-BxpcEAFc.js} +1 -1
  74. package/dist/client/assets/{collections-BxDJ4z3g.js → collections-BthqN0MR.js} +1 -1
  75. package/dist/client/assets/{command-B8qtKAnE.js → command-D_uV9Uyw.js} +1 -1
  76. package/dist/client/assets/connect-desktop-dialog-BSZmVMpV.js +1 -0
  77. package/dist/client/assets/{connection-card-CSsbMtfE.js → connection-card-CMo6aDgc.js} +1 -1
  78. package/dist/client/assets/connection-detail-Mimew6o2.js +1 -0
  79. package/dist/client/assets/{connection-form-helpers-BonOFyzw.js → connection-form-helpers-D7eAIFli.js} +1 -1
  80. package/dist/client/assets/connections-C3EDxDCA.js +1 -0
  81. package/dist/client/assets/{decopilot-sse-pool-BHhoQKaF.js → decopilot-sse-pool-8oQl4q0c.js} +1 -1
  82. package/dist/client/assets/{dialog-Cwf6uY_y.js → dialog-DSHkVmzb.js} +1 -1
  83. package/dist/client/assets/domain-settings-BOHvvqIE.js +1 -0
  84. package/dist/client/assets/{drawer-CF0b7Dg3.js → drawer-BCmqLnLy.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-UGlYpK18.js → dropdown-menu-DFCaJxA8.js} +1 -1
  86. package/dist/client/assets/dynamic-plugin-layout-D3tgFtHQ.js +1 -0
  87. package/dist/client/assets/{empty-state-CoXt5rYF.js → empty-state-CVOhfUW7.js} +1 -1
  88. package/dist/client/assets/{empty-state-h_qXtgbw.js → empty-state-DqgO6Psg.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-BKeaLULt.js → extract-connection-data-B52LuKdR.js} +1 -1
  90. package/dist/client/assets/{features-u4e9ViPZ.js → features-Dsrgvggp.js} +1 -1
  91. package/dist/client/assets/file-explorer-CAiKkVp8.js +2 -0
  92. package/dist/client/assets/{file-type-icon-7TqtrpuQ.js → file-type-icon-ThJaLePn.js} +1 -1
  93. package/dist/client/assets/{files-C9p4yssc.js → files-BwgPol6-.js} +1 -1
  94. package/dist/client/assets/{form-Bbpyf2N_.js → form-DngzP8fb.js} +1 -1
  95. package/dist/client/assets/general-D61AQybp.js +1 -0
  96. package/dist/client/assets/{generate-id-BHe5yw90.js → generate-id-CDzcbt9l.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-CVG2zsbh.js → github-repo-picker-Dy1vUJSU.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-t5WNjrVG.js → header-tab-button-YP4v_sFN.js} +1 -1
  99. package/dist/client/assets/{hover-card-Azyk5Kxa.js → hover-card-CK_HvQcf.js} +1 -1
  100. package/dist/client/assets/image-field-pfu57PP0.js +1 -0
  101. package/dist/client/assets/{index-CAs8iq4o.js → index-2EH0OR7k.js} +1 -1
  102. package/dist/client/assets/{index-sqqDCA0K.js → index-5lPKE0PI.js} +1 -1
  103. package/dist/client/assets/{index-DJTEqPXf.js → index-BepaMXhR.js} +1 -1
  104. package/dist/client/assets/index-CIBQMZc3.js +310 -0
  105. package/dist/client/assets/index-D7h1Qkk4.js +1 -0
  106. package/dist/client/assets/{index-CiRQNPVt.js → index-DLy_MgNO.js} +3 -3
  107. package/dist/client/assets/{index-Co-NpkaC.js → index-DdnG6T0z.js} +1 -1
  108. package/dist/client/assets/{index-skFG1_ns.js → index-Df6ljz6n.js} +1 -1
  109. package/dist/client/assets/{index-DcI1sEv_.js → index-Dj1voR4t.js} +1 -1
  110. package/dist/client/assets/{index-CwyiLbkO.js → index-DqC0vS4o.js} +1 -1
  111. package/dist/client/assets/index-Dy_atLRy.js +1 -0
  112. package/dist/client/assets/{index-DCeOX6CY.js → index-G1Ev5Inf.js} +1 -1
  113. package/dist/client/assets/{index-DbpajCnQ.js → index-LDNFPs7X.js} +5 -5
  114. package/dist/client/assets/{index-Dci2MWs9.js → index-hMTvGWUn.js} +1 -1
  115. package/dist/client/assets/{index-f0X8ef8k.js → index-hwXZ3lhJ.js} +1 -1
  116. package/dist/client/assets/{index-redirect-D6d28r6b.js → index-redirect-BkbiWtap.js} +1 -1
  117. package/dist/client/assets/{infiniteQueryObserver-BND7fiNU.js → infiniteQueryObserver-CJIUgHAf.js} +1 -1
  118. package/dist/client/assets/{input-D3E6n6la.js → input-CTpSARTD.js} +1 -1
  119. package/dist/client/assets/{integration-icon-vaGvNHHz.js → integration-icon-BpF3qWll.js} +1 -1
  120. package/dist/client/assets/{label-DLUhXNk7.js → label-Dh8yif55.js} +1 -1
  121. package/dist/client/assets/{layout-PdamBSR0.js → layout-D7xM_FMD.js} +1 -1
  122. package/dist/client/assets/{login-CX7WJC_U.js → login-BsYL8EoQ.js} +1 -1
  123. package/dist/client/assets/members-D3KerYs6.js +3 -0
  124. package/dist/client/assets/{monaco-editor-Bgzj9gt4.js → monaco-editor-47G-YgBx.js} +1 -1
  125. package/dist/client/assets/{monitoring-stats-row-DOXVZiRZ.js → monitoring-stats-row-DLPVsavd.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-Cfp_JeoH.js → oauth-callback-DPmGsVIH.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-ai-provider-DOmF-VOd.js → oauth-callback-ai-provider-B2SdgtVf.js} +1 -1
  128. package/dist/client/assets/{onboarding-C4KH1uOA.js → onboarding-CUnTn08b.js} +1 -1
  129. package/dist/client/assets/{org-install-CrBGOT0T.js → org-install-D55Hf-Ci.js} +1 -1
  130. package/dist/client/assets/{org-layout-BCdmD1Ye.js → org-layout-D1CUrdu0.js} +1 -1
  131. package/dist/client/assets/org-plugin-layout-C_lutJvY.js +1 -0
  132. package/dist/client/assets/{page-seo-form-qANN0Bj1.js → page-seo-form-CDMGSBfI.js} +1 -1
  133. package/dist/client/assets/page-seo-sheet-D9mMBTfk.js +1 -0
  134. package/dist/client/assets/pair-C8e4qd_P.js +39 -0
  135. package/dist/client/assets/{plugin-empty-state-CrO1kZyK.js → plugin-empty-state-DOz60yXL.js} +1 -1
  136. package/dist/client/assets/{plugin-header-DTTyXwvF.js → plugin-header-dSexLn5d.js} +1 -1
  137. package/dist/client/assets/plugin-layout-DeJC8Je1.js +1 -0
  138. package/dist/client/assets/{popover-C1MgHMHU.js → popover-BTf4Nz5d.js} +1 -1
  139. package/dist/client/assets/{post-editor-aLUVDKW-.js → post-editor-DqMVZSkF.js} +1 -1
  140. package/dist/client/assets/{primitives-BBsQqWkR.js → primitives-C5R0vRG0.js} +1 -1
  141. package/dist/client/assets/{profile-CjQ0lj2q.js → profile-D24Mm1Bo.js} +1 -1
  142. package/dist/client/assets/project-app-view-Bww_ZnyA.js +1 -0
  143. package/dist/client/assets/record-editor-dyb9Ijad.js +1 -0
  144. package/dist/client/assets/registry-BnciKKiV.js +2 -0
  145. package/dist/client/assets/registry-layout-BTGZh3rH.js +27 -0
  146. package/dist/client/assets/{require-capability-vzDtNqMc.js → require-capability-VkdqqQVh.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-BE5eceMw.js → required-auth-layout-B_Qr5rQD.js} +1 -1
  148. package/dist/client/assets/{reset-password-8Qbe0fKB.js → reset-password-EasI5IT7.js} +1 -1
  149. package/dist/client/assets/{resizable-CrMJy22o.js → resizable-psD7TWaW.js} +1 -1
  150. package/dist/client/assets/{roles-BRTHcf_Y.js → roles-DcdBU5wW.js} +1 -1
  151. package/dist/client/assets/save-referenced-block-H29Sz2fU.js +1 -0
  152. package/dist/client/assets/{save-status-BZf4M3tc.js → save-status-BBtiR3n4.js} +1 -1
  153. package/dist/client/assets/{schema-form-DNuUk0WJ.js → schema-form-CQrr8C2Q.js} +1 -1
  154. package/dist/client/assets/{scroll-area-verb-Y8E.js → scroll-area-EinmnR6o.js} +1 -1
  155. package/dist/client/assets/{search-input-CZKc9XZR.js → search-input-IQT_u5qN.js} +1 -1
  156. package/dist/client/assets/secrets-CvkPaEJL.js +1 -0
  157. package/dist/client/assets/{sections-editor-CysGozit.js → sections-editor-4lprX9C-.js} +1 -1
  158. package/dist/client/assets/{select-BMX9jvQG.js → select-Dz1PdScB.js} +1 -1
  159. package/dist/client/assets/{select-model-BB2-8k_v.js → select-model-azh5-bst.js} +1 -1
  160. package/dist/client/assets/seo-editor-Bhb2HHgZ.js +1 -0
  161. package/dist/client/assets/{settings-layout-EdgjO8iZ.js → settings-layout-DXfn8mRu.js} +1 -1
  162. package/dist/client/assets/{settings-section-CQW36fJV.js → settings-section-DqhmLe6Q.js} +1 -1
  163. package/dist/client/assets/{sheet-Utq51ofH.js → sheet-CtgWE_6O.js} +1 -1
  164. package/dist/client/assets/{shell-controls-CXM2LvTp.js → shell-controls-D5kseyts.js} +1 -1
  165. package/dist/client/assets/{shell-layout-3b4NfWya.js → shell-layout-CWL5imKS.js} +1 -1
  166. package/dist/client/assets/shell-route-loading-Co6LGu_q.js +1 -0
  167. package/dist/client/assets/{sidebar-BBqRosV0.js → sidebar-DRcLUASh.js} +1 -1
  168. package/dist/client/assets/{skeleton-dQOYuNlQ.js → skeleton-BH3hvPuC.js} +1 -1
  169. package/dist/client/assets/{sortable.esm-D7AgS_lX.js → sortable.esm-Bv55LbH0.js} +1 -1
  170. package/dist/client/assets/{spinner-_hqWpG0c.js → spinner-B_3Siejz.js} +1 -1
  171. package/dist/client/assets/sso-0oMpJ4kh.js +1 -0
  172. package/dist/client/assets/{store-BIRCadh0.js → store-BVB26WGO.js} +1 -1
  173. package/dist/client/assets/store-registry-CO_g7WZl.js +2 -0
  174. package/dist/client/assets/studio-tools-BxKekKsO.js +1 -0
  175. package/dist/client/assets/{switch-CTAzWsjZ.js → switch-DH2AgpKj.js} +1 -1
  176. package/dist/client/assets/{tab-id-C7unjelb.js → tab-id-xylxHxk-.js} +2 -2
  177. package/dist/client/assets/{table-BuLHtfTA.js → table-BF0TGzWk.js} +1 -1
  178. package/dist/client/assets/{tabs-DVd_y6YL.js → tabs-zn3_c2X4.js} +1 -1
  179. package/dist/client/assets/{task-status-5oHTrkjV.js → task-status-CcBiqoc9.js} +1 -1
  180. package/dist/client/assets/{textarea-D1h5iq3D.js → textarea--0YfTbVD.js} +1 -1
  181. package/dist/client/assets/{toggle-group-vA7ktrP-.js → toggle-group-CzCtoT44.js} +1 -1
  182. package/dist/client/assets/{toolbar-D3G0G9U8.js → toolbar-GqBUNMmA.js} +1 -1
  183. package/dist/client/assets/{tools-list-BL4u8QMN.js → tools-list-6mOdBofe.js} +1 -1
  184. package/dist/client/assets/{tooltip-C47QSg8i.js → tooltip-DUvSyhJC.js} +1 -1
  185. package/dist/client/assets/{types-Df_Z2FUK.js → types-DA4RGvyb.js} +1 -1
  186. package/dist/client/assets/use-ai-providers-D2lIJSNP.js +1 -0
  187. package/dist/client/assets/{use-automations-B9mdkXiu.js → use-automations-DBfmwk1I.js} +1 -1
  188. package/dist/client/assets/{use-capability-1uxC8-oZ.js → use-capability-B4Fg7dX0.js} +1 -1
  189. package/dist/client/assets/{use-collections-B1Mg9Y32.js → use-collections-CmHxKkjG.js} +1 -1
  190. package/dist/client/assets/{use-connection-DpxWBF4Y.js → use-connection-DBknh1_S.js} +1 -1
  191. package/dist/client/assets/{use-copy-B_uLjrw6.js → use-copy-Cwl7g8AE.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-BBxov1Li.js → use-create-virtual-mcp-C1TsXsHi.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-DDZnxori.js → use-debounced-autosave-Bxr0aFzV.js} +1 -1
  194. package/dist/client/assets/use-delete-connection-R6nqWnGZ.js +1 -0
  195. package/dist/client/assets/use-file-configs-DWXPP8uC.js +1 -0
  196. package/dist/client/assets/{use-infinite-scroll-D8iZFAEQ.js → use-infinite-scroll-SoMG-nf0.js} +1 -1
  197. package/dist/client/assets/{use-list-state-BkETzhj1.js → use-list-state-RN4viRCb.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-D0A6RZFw.js → use-mcp-client-FbAC4-Un.js} +2 -2
  199. package/dist/client/assets/{use-mcp-prompts-BuV5LRNr.js → use-mcp-prompts-yCzBJuZf.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-BTzw-W77.js → use-mcp-tools-CxFt6L0J.js} +1 -1
  201. package/dist/client/assets/{use-members-DDVaE5yQ.js → use-members-B2ko1Eht.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-Drh7z3D_.js → use-navigate-to-agent-Bg4INoCb.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-BlGBETGB.js → use-org-auth-client-D0Et-q9V.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-nq4qWMpD.js → use-org-sso-Ba3MjbPK.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-i1o2TOl8.js → use-organization-roles-jFwocdK5.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-PADdytdf.js → use-organization-settings-Bdk0M31t.js} +1 -1
  207. package/dist/client/assets/{use-registry-connections-C0VEE_YX.js → use-registry-connections-DkTd3pip.js} +1 -1
  208. package/dist/client/assets/use-secrets-B3XtAhqh.js +1 -0
  209. package/dist/client/assets/{use-status-sounds-DR8WA3PU.js → use-status-sounds-Bi-eGoxq.js} +1 -1
  210. package/dist/client/assets/{use-view-mode-BpduDYTq.js → use-view-mode-CVu0jG_s.js} +1 -1
  211. package/dist/client/assets/{use-virtual-mcp-DciRKx1X.js → use-virtual-mcp-CL360k9_.js} +1 -1
  212. package/dist/client/assets/useInfiniteQuery-68Zg22Ld.js +1 -0
  213. package/dist/client/assets/{useRouterState-BXwm4DCl.js → useRouterState-CBsQY2cY.js} +1 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-C32oPBV5.js +1 -0
  215. package/dist/client/assets/user-ce-n8AzQ.js +1 -0
  216. package/dist/client/assets/{view-mode-toggle-B-ZBNJWV.js → view-mode-toggle-DPvhvCSl.js} +1 -1
  217. package/dist/client/assets/workflow-DEw4Tgx1.js +1 -0
  218. package/dist/client/assets/workflow-detail-DPYK3MGg.js +1 -0
  219. package/dist/client/index.html +1 -1
  220. package/dist/server/cli.js +382 -378
  221. package/dist/server/migrate.js +98 -94
  222. package/dist/server/server.js +244 -244
  223. package/package.json +1 -1
  224. package/dist/client/assets/add-section-modal-B5en9ngD.js +0 -1
  225. package/dist/client/assets/agent-capabilities-gx2lqG9R.js +0 -3
  226. package/dist/client/assets/agent-icons-Dk-aO0GI.js +0 -4
  227. package/dist/client/assets/ai-providers-DLs4iaPF.js +0 -1
  228. package/dist/client/assets/app-editor-CNA09iLR.js +0 -1
  229. package/dist/client/assets/automation-runs-gdpRnoA6.js +0 -1
  230. package/dist/client/assets/brand-context-Be4M-ZZ_.js +0 -1
  231. package/dist/client/assets/buckets-D-k7xX4_.js +0 -1
  232. package/dist/client/assets/chat-context-BFmJRDzy.js +0 -20
  233. package/dist/client/assets/collection-detail-kkp2noDH.js +0 -1
  234. package/dist/client/assets/connect-desktop-dialog-CDUh5Otr.js +0 -1
  235. package/dist/client/assets/connection-detail-E_AC0EPN.js +0 -1
  236. package/dist/client/assets/connections-Ca9YMoFm.js +0 -1
  237. package/dist/client/assets/domain-settings-oLlPZ4Z3.js +0 -1
  238. package/dist/client/assets/dynamic-plugin-layout-V_3blVro.js +0 -1
  239. package/dist/client/assets/file-explorer-BHKOSo2p.js +0 -2
  240. package/dist/client/assets/general-DqO6G3WI.js +0 -1
  241. package/dist/client/assets/image-field-CXkzTwa7.js +0 -1
  242. package/dist/client/assets/index-B_tO_wVS.js +0 -1
  243. package/dist/client/assets/index-Bjie-Vum.js +0 -1
  244. package/dist/client/assets/index-DkWynf6r.js +0 -310
  245. package/dist/client/assets/members-Bw9vSm5N.js +0 -3
  246. package/dist/client/assets/org-plugin-layout-shv3-lWc.js +0 -1
  247. package/dist/client/assets/page-seo-sheet-D4wNk0RY.js +0 -1
  248. package/dist/client/assets/pair-CpEuUIpQ.js +0 -39
  249. package/dist/client/assets/plugin-layout-CXygrV9H.js +0 -1
  250. package/dist/client/assets/project-app-view-Br1j175t.js +0 -1
  251. package/dist/client/assets/record-editor-QHa9iaw5.js +0 -1
  252. package/dist/client/assets/registry-BkLh6mX8.js +0 -2
  253. package/dist/client/assets/registry-layout-CHn-aQtX.js +0 -27
  254. package/dist/client/assets/save-referenced-block-CBTtXYiM.js +0 -1
  255. package/dist/client/assets/secrets-ScbIQJha.js +0 -1
  256. package/dist/client/assets/seo-editor-gLS5nwCw.js +0 -1
  257. package/dist/client/assets/shell-route-loading-DSfyT3dO.js +0 -1
  258. package/dist/client/assets/sso-Cg_UsaPg.js +0 -1
  259. package/dist/client/assets/store-registry-Duulq-Qg.js +0 -2
  260. package/dist/client/assets/unwrap-tool-result-BYXdCQMg.js +0 -1
  261. package/dist/client/assets/use-ai-providers-Bwbur0GT.js +0 -1
  262. package/dist/client/assets/use-delete-connection-eQCNxdaR.js +0 -1
  263. package/dist/client/assets/use-file-configs-o-LP0Blk.js +0 -1
  264. package/dist/client/assets/use-secrets-DZDUsUGC.js +0 -1
  265. package/dist/client/assets/useInfiniteQuery-C1jLiRqA.js +0 -1
  266. package/dist/client/assets/useSuspenseInfiniteQuery-CHLM-3cW.js +0 -1
  267. package/dist/client/assets/user-DaO6RYsc.js +0 -1
  268. package/dist/client/assets/workflow-C3zNP9N8.js +0 -1
  269. package/dist/client/assets/workflow-detail-CFwJ5L9v.js +0 -1
@@ -1 +1 @@
1
- import{e as K,j as t,b as me,l as Q,a as ne,r as F,n as he,K as pe,B as oe,c as H,o as de}from"./index-CiRQNPVt.js";import{R as xe}from"./required-auth-layout-BE5eceMw.js";import{A as Y}from"./auth-split-layout-sY7FyVQz.js";import{A as ee}from"./avatar-BqNGZrFg.js";import{I as be}from"./input-D3E6n6la.js";import{L as je}from"./label-DLUhXNk7.js";import{S as ye}from"./switch-CTAzWsjZ.js";import{t as Ne,a as ve}from"./Users03-Bek4Ag3W.js";import{i as we}from"./CheckCircle-B_rVd_l8.js";import{t as Se,a as ke}from"./Palette-CS36Icvl.js";import{i as ze}from"./Upload01-BHsRhr7X.js";import"./useRouterState-BXwm4DCl.js";import"./User01-JuGE_kA7.js";const Ce=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function le(r){return r.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function He(){const r=K.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(xe,{children:t.jsx(_e,{})}),r[0]=e):e=r[0],e}function te(r){const e=K.c(13),{title:g,description:l,logoUrl:f,logoFallback:s}=r;let a;e[0]!==s||e[1]!==f?(a=t.jsx("div",{children:f?t.jsx(ee,{url:f,fallback:s??"?",shape:"square",size:"base",className:"h-12 w-12"}):t.jsxs(t.Fragment,{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]})}),e[0]=s,e[1]=f,e[2]=a):a=e[2];let i;e[3]!==g?(i=t.jsx("h1",{className:"text-2xl font-medium leading-8",children:g}),e[3]=g,e[4]=i):i=e[4];let o;e[5]!==l?(o=t.jsx("p",{className:"text-base text-muted-foreground leading-6",children:l}),e[5]=l,e[6]=o):o=e[6];let h;e[7]!==i||e[8]!==o?(h=t.jsxs("div",{className:"space-y-2",children:[i,o]}),e[7]=i,e[8]=o,e[9]=h):h=e[9];let n;return e[10]!==a||e[11]!==h?(n=t.jsxs("div",{className:"grid gap-10",children:[a,h]}),e[10]=a,e[11]=h,e[12]=n):n=e[12],n}function _e(){const r=K.c(4),{data:e,isPending:g}=me.useSession();if(g){let a;return r[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Y,{children:t.jsx("div",{className:"flex items-center gap-2",children:t.jsx(Q,{size:14,className:"animate-spin text-muted-foreground"})})}),r[0]=a):a=r[0],a}const l=e?.user?.email??"",f=e?.user?.name;let s;return r[1]!==f||r[2]!==l?(s=t.jsx(Oe,{email:l,userName:f}),r[1]=f,r[2]=l,r[3]=s):s=r[3],s}function Oe(r){const e=K.c(70),{email:g,userName:l}=r;let f,s,a,i,o,h;if(e[0]!==g||e[1]!==l){a=g.split("@")[1]?.toLowerCase()??"",i=!!a&&!Ce.has(a);const m=a.split(".")[0]??"";s=m.charAt(0).toUpperCase()+m.slice(1);let x;e[8]!==s||e[9]!==i||e[10]!==l?(x=i?s:l?.split(" ")[0]??"",e[8]=s,e[9]=i,e[10]=l,e[11]=x):x=e[11],f=x,h=he,o=pe.domainLookup(a),e[0]=g,e[1]=l,e[2]=f,e[3]=s,e[4]=a,e[5]=i,e[6]=o,e[7]=h}else f=e[2],s=e[3],a=e[4],i=e[5],o=e[6],h=e[7];let n;e[12]!==i||e[13]!==o?(n={queryKey:o,queryFn:Ae,enabled:i},e[12]=i,e[13]=o,e[14]=n):n=e[14];const{data:v,isLoading:d}=h(n);let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k={mutationFn:Pe},e[15]=k):k=e[15];const c=ne(k),[D,P]=F.useState(!1);if(d){let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Q,{size:14,className:"animate-spin text-muted-foreground"}),e[16]=m):m=e[16];let x;return e[17]!==a?(x=t.jsx(Y,{children:t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[m,t.jsxs("span",{className:"text-sm text-muted-foreground",children:["Checking ",a,"..."]})]})}),e[17]=a,e[18]=x):x=e[18],x}let E,y,z;if(e[19]!==D||e[20]!==s||e[21]!==v?.organizations||e[22]!==a||e[23]!==i||e[24]!==c||e[25]!==l){z=Symbol.for("react.early_return_sentinel");e:{y=v?.organizations??[];const m=y.filter(Ee);E=y.length>0;const x=m.length>0,N=c.variables??null;if(D){let u;e[29]!==l?(u=l?.split(" ")[0]??"",e[29]=l,e[30]=u):u=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=()=>P(!1),e[31]=b):b=e[31];let p;e[32]!==s||e[33]!==a||e[34]!==i||e[35]!==u?(p=t.jsx(re,{isCorporateEmail:i,emailDomain:a,domainLabel:s,defaultName:u,allowDomainClaim:!1,onBack:b}),e[32]=s,e[33]=a,e[34]=i,e[35]=u,e[36]=p):p=e[36],z=p;break e}if(x){const u=m.length===1?"You have access to an organization":"You have access to multiple organizations",b=m.length===1?"Your email domain matches an existing organization.":"Your email domain matches more than one. Pick one to join.";let p;e[37]!==u||e[38]!==b?(p=t.jsx(te,{title:u,description:b}),e[37]=u,e[38]=b,e[39]=p):p=e[39];let w;e[40]!==a||e[41]!==c||e[42]!==N?(w=O=>{const G=c.isPending&&N===O.slug;return t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(ee,{url:O.logo??`https://www.google.com/s2/favicons?domain=${a}&sz=128`,fallback:O.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:O.name}),t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",a]})]}),t.jsx(oe,{size:"default",onClick:()=>c.mutate(O.slug),disabled:c.isPending,children:G?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Q,{size:14,className:"animate-spin"})," ","Joining..."]}):"Join"})]},O.id)},e[40]=a,e[41]=c,e[42]=N,e[43]=w):w=e[43];const _=t.jsx("div",{className:"grid gap-2",children:m.map(w)});let S;e[44]!==c.error?(S=c.error&&t.jsx("p",{className:"text-xs text-destructive",children:c.error instanceof Error?c.error.message:"Failed to join organization"}),e[44]=c.error,e[45]=S):S=e[45];let $;e[46]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:()=>P(!0),children:"Create a new organization instead"}),e[46]=$):$=e[46];let L;e[47]!==_||e[48]!==S||e[49]!==p?(L=t.jsx(Y,{children:t.jsxs("div",{className:"grid gap-10",children:[p,_,S,$]})}),e[47]=_,e[48]=S,e[49]=p,e[50]=L):L=e[50],z=L;break e}}e[19]=D,e[20]=s,e[21]=v?.organizations,e[22]=a,e[23]=i,e[24]=c,e[25]=l,e[26]=E,e[27]=y,e[28]=z}else E=e[26],y=e[27],z=e[28];if(z!==Symbol.for("react.early_return_sentinel"))return z;if(E){const m=y.length===1?`${y[0].name} is already set up`:`${y.length} organizations use @${a}`,x=y.length===1?"This organization doesn't have auto-join enabled.":"None of them have auto-join enabled — ask an admin for an invitation, or create your own.";let N;e[51]!==m||e[52]!==x?(N=t.jsx(te,{title:m,description:x}),e[51]=m,e[52]=x,e[53]=N):N=e[53];let u;if(e[54]!==a||e[55]!==y){let _;e[57]!==a?(_=S=>t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(ee,{url:S.logo??`https://www.google.com/s2/favicons?domain=${a}&sz=128`,fallback:S.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:S.name}),t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",a]})]}),t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Ask admin for invitation"})]},S.id),e[57]=a,e[58]=_):_=e[58],u=y.map(_),e[54]=a,e[55]=y,e[56]=u}else u=e[56];let b;e[59]!==u?(b=t.jsx("div",{className:"grid gap-2",children:u}),e[59]=u,e[60]=b):b=e[60];let p;e[61]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:"xl",className:"w-full",onClick:()=>P(!0),children:"Create a new organization"}),e[61]=p):p=e[61];let w;return e[62]!==b||e[63]!==N?(w=t.jsx(Y,{children:t.jsxs("div",{className:"grid gap-10",children:[N,b,p]})}),e[62]=b,e[63]=N,e[64]=w):w=e[64],w}let A;return e[65]!==f||e[66]!==s||e[67]!==a||e[68]!==i?(A=t.jsx(re,{isCorporateEmail:i,emailDomain:a,domainLabel:s,defaultName:f}),e[65]=f,e[66]=s,e[67]=a,e[68]=i,e[69]=A):A=e[69],A}function Ee(r){return r.autoJoinEnabled}async function Pe(r){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),g=await e.json();if(!e.ok||!g.success)throw new Error(g.error||"Failed to join organization");window.location.href=`/${g.slug}`}async function Ae(){return(await fetch("/api/auth/custom/domain-lookup",{credentials:"include"})).json()}function re(r){const e=K.c(70),{isCorporateEmail:g,emailDomain:l,domainLabel:f,defaultName:s,allowDomainClaim:a,onBack:i}=r,o=a===void 0?!0:a,h=g&&o?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null,[n,v]=F.useState(s),[d,k]=F.useState(h),[c,D]=F.useState(!0),[P,E]=F.useState(null);let y;e[0]!==c||e[1]!==d||e[2]!==n?(y=async()=>{const j=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n.trim()||void 0,logo:d??void 0,claimDomain:c})}),C=await j.json();if(!j.ok||!C.success)throw new Error(C.error||"Failed to set up organization");return C},e[0]=c,e[1]=d,e[2]=n,e[3]=y):y=e[3];let z;e[4]!==c?(z=j=>{if(!j.slug)return;const C=ue.filter(ge=>c||!ge.claimOnly).length,W=fe*(C-1)+800;E(j.slug),setTimeout(()=>{window.location.href=`/${j.slug}`},W)},e[4]=c,e[5]=z):z=e[5];let A;e[6]!==y||e[7]!==z?(A={mutationFn:y,onSuccess:z},e[6]=y,e[7]=z,e[8]=A):A=e[8];const m=ne(A);let x;e[9]!==d||e[10]!==n?(x={mutationFn:async()=>{const j=n.trim(),C=le(j);if(!C)throw new Error("Invalid organization name");const W=await me.organization.create({name:j,slug:C,...d?{logo:d}:{}});if(W?.error)throw new Error(W.error.message||"Failed to create organization");window.location.href=`/${W?.data?.slug??C}`}},e[9]=d,e[10]=n,e[11]=x):x=e[11];const N=ne(x);if(m.isPending||P){let j;e[12]!==f||e[13]!==n?(j=n.trim()||f,e[12]=f,e[13]=n,e[14]=j):j=e[14];let C;return e[15]!==c||e[16]!==l||e[17]!==d||e[18]!==j?(C=t.jsx(Y,{children:t.jsx(Fe,{orgName:j,domain:l,claimDomain:c,logoUrl:d})}),e[15]=c,e[16]=l,e[17]=d,e[18]=j,e[19]=C):C=e[19],C}const u=N.isPending;let b;e[20]!==n?(b=le(n.trim()),e[20]=n,e[21]=b):b=e[21];const p=!!b,w=m.error||N.error||null;let _;e[22]!==o||e[23]!==p||e[24]!==N||e[25]!==m||e[26]!==g?(_=j=>{j.preventDefault(),p&&(g&&o?m.mutate():N.mutate())},e[22]=o,e[23]=p,e[24]=N,e[25]=m,e[26]=g,e[27]=_):_=e[27];const S=_;let $;e[28]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(te,{title:"Welcome to deco",description:"Set up your organization to get started"}),e[28]=$):$=e[28];let L;e[29]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-sm font-medium",children:"Organization avatar"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Optional"})]}),e[29]=L):L=e[29];let O;e[30]!==s||e[31]!==n?(O=(n.trim()||s||"?").charAt(0).toUpperCase(),e[30]=s,e[31]=n,e[32]=O):O=e[32];const G=u||m.isPending;let R;e[33]!==d||e[34]!==O||e[35]!==G?(R=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[L,t.jsx($e,{value:d,fallback:O,onChange:k,disabled:G})]}),e[33]=d,e[34]=O,e[35]=G,e[36]=R):R=e[36];let V;e[37]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(je,{htmlFor:"org-name",className:"text-sm font-medium shrink-0",children:"Organization name"}),e[37]=V):V=e[37];let X;e[38]===Symbol.for("react.memo_cache_sentinel")?(X=j=>v(j.target.value),e[38]=X):X=e[38];const ae=s||"My Organization",se=u||m.isPending;let T;e[39]!==n||e[40]!==ae||e[41]!==se?(T=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[V,t.jsx(be,{id:"org-name",value:n,onChange:X,placeholder:ae,disabled:se,className:"h-10 max-w-[220px]"})]}),e[39]=n,e[40]=ae,e[41]=se,e[42]=T):T=e[42];let U;e[43]!==o||e[44]!==c||e[45]!==m.isPending||e[46]!==l||e[47]!==g||e[48]!==u?(U=g&&o&&t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsxs("p",{className:"text-sm font-medium",children:["Allow @",l," sign-ups"]}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anyone with a verified @",l," email can join this org"]})]}),t.jsx(ye,{checked:c,onCheckedChange:D,disabled:u||m.isPending})]}),e[43]=o,e[44]=c,e[45]=m.isPending,e[46]=l,e[47]=g,e[48]=u,e[49]=U):U=e[49];let M;e[50]!==R||e[51]!==T||e[52]!==U?(M=t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 divide-y divide-border",children:[R,T,U]}),e[50]=R,e[51]=T,e[52]=U,e[53]=M):M=e[53];let I;e[54]!==w?(I=w&&t.jsx("p",{className:"text-xs text-destructive",children:w instanceof Error?w.message:"Failed to create organization"}),e[54]=w,e[55]=I):I=e[55];const ie=!p||u||m.isPending;let J;e[56]!==m.isPending||e[57]!==u?(J=u||m.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Q,{size:14,className:"animate-spin"})," Creating..."]}):"Continue",e[56]=m.isPending,e[57]=u,e[58]=J):J=e[58];let q;e[59]!==ie||e[60]!==J?(q=t.jsx(oe,{type:"submit",size:"xl",className:"w-full",disabled:ie,children:J}),e[59]=ie,e[60]=J,e[61]=q):q=e[61];let B;e[62]!==i?(B=i&&t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:i,children:"See available organizations"}),e[62]=i,e[63]=B):B=e[63];let Z;return e[64]!==S||e[65]!==M||e[66]!==I||e[67]!==q||e[68]!==B?(Z=t.jsx(Y,{children:t.jsxs("form",{onSubmit:S,className:"grid gap-10",children:[$,M,I,q,B]})}),e[64]=S,e[65]=M,e[66]=I,e[67]=q,e[68]=B,e[69]=Z):Z=e[69],Z}function $e(r){const e=K.c(14),{value:g,fallback:l,onChange:f,disabled:s}=r,a=F.useRef(null);let i;e[0]!==f?(i=D=>{const P=D.target.files?.[0];if(!P)return;if(P.size>2097152){de.error("Image must be smaller than 2MB"),a.current&&(a.current.value="");return}const E=new FileReader;E.onerror=Le,E.onloadend=()=>{E.result&&f(E.result),a.current&&(a.current.value="")},E.readAsDataURL(P)},e[0]=f,e[1]=i):i=e[1];const o=i;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=()=>a.current?.click(),e[2]=h):h=e[2];let n;e[3]!==s||e[4]!==o?(n=t.jsx("input",{ref:a,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:s}),e[3]=s,e[4]=o,e[5]=n):n=e[5];const v=g??void 0;let d;e[6]!==l||e[7]!==v?(d=t.jsx(ee,{url:v,fallback:l,shape:"square",size:"base"}),e[6]=l,e[7]=v,e[8]=d):d=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(ze,{size:14,className:"text-white"})}),e[9]=k):k=e[9];let c;return e[10]!==s||e[11]!==n||e[12]!==d?(c=t.jsxs("button",{type:"button",onClick:h,disabled:s,className:"relative rounded-lg overflow-hidden ring-1 ring-border hover:ring-2 hover:ring-ring/40 transition-all disabled:opacity-50 group","aria-label":"Upload organization logo",children:[n,d,k]}),e[10]=s,e[11]=n,e[12]=d,e[13]=c):c=e[13],c}function Le(){return de.error("Failed to read image")}const ue=[{icon:Ne,label:"Creating organization",claimOnly:!1},{icon:Se,label:"Claiming email domain",claimOnly:!0},{icon:ve,label:"Enabling auto-join for your team",claimOnly:!0},{icon:ke,label:"Extracting brand context",claimOnly:!1}],fe=1500,ce=[{bg:"var(--brand-green-light)",fg:"var(--brand-green-dark)"},{bg:"var(--brand-purple-light)",fg:"var(--brand-purple-dark)"},{bg:"var(--brand-yellow-light)",fg:"var(--brand-yellow-dark)"}];function Fe({orgName:r,domain:e,claimDomain:g,logoUrl:l}){const f=ue.filter(o=>g||!o.claimOnly),[s,a]=F.useState(0),i=F.useRef(!1);if(!i.current){i.current=!0;for(let o=1;o<f.length;o++)setTimeout(()=>a(o),fe*o)}return t.jsxs("div",{className:"grid gap-10",children:[t.jsx(te,{title:`Setting up ${r}`,description:`Getting everything ready from ${e}`,logoUrl:l??null,logoFallback:r.charAt(0).toUpperCase()||"?"}),t.jsx("ul",{className:"grid gap-5",children:f.map((o,h)=>{const n=o.icon,v=h===s,d=h<s,k=ce[h%ce.length];return t.jsxs("li",{className:"flex items-center gap-4 motion-safe:transition-opacity motion-safe:duration-300 motion-safe:ease-out",style:{opacity:d||v?1:.4},children:[t.jsxs("span",{className:H("relative grid h-8 w-8 shrink-0 place-items-center rounded-lg","motion-safe:transition-colors motion-safe:duration-300",!d&&(v?"bg-muted text-foreground":"bg-muted text-muted-foreground")),style:d?{backgroundColor:k.bg,color:k.fg}:void 0,children:[t.jsx(we,{size:16,className:H("absolute motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",d?"scale-100 opacity-100":"scale-75 opacity-0"),"aria-hidden":"true"}),t.jsx(Q,{size:16,className:H("absolute animate-spin","motion-safe:transition-opacity motion-safe:duration-200",v?"opacity-100":"opacity-0"),"aria-hidden":"true"}),t.jsx(n,{size:16,className:H("absolute motion-safe:transition-opacity motion-safe:duration-200",!d&&!v?"opacity-100":"opacity-0"),"aria-hidden":"true"})]}),t.jsx("span",{className:H("text-base leading-6 motion-safe:transition-colors motion-safe:duration-300",v||d?"text-foreground":"text-muted-foreground"),children:o.label})]},o.label)})})]})}export{He as default};
1
+ import{e as K,j as t,b as me,l as Q,a as ne,r as F,n as he,K as pe,B as oe,c as H,o as de}from"./index-DLy_MgNO.js";import{R as xe}from"./required-auth-layout-B_Qr5rQD.js";import{A as Y}from"./auth-split-layout-VA3PSXMI.js";import{A as ee}from"./avatar-DK3a4hPp.js";import{I as be}from"./input-CTpSARTD.js";import{L as je}from"./label-Dh8yif55.js";import{S as ye}from"./switch-DH2AgpKj.js";import{t as Ne,a as ve}from"./Users03-DUZwXij4.js";import{i as we}from"./CheckCircle-BUQijftD.js";import{t as Se,a as ke}from"./Palette-PH8MXuP9.js";import{i as ze}from"./Upload01-CTIKtpO3.js";import"./useRouterState-CBsQY2cY.js";import"./User01-Cz-IdAgQ.js";const Ce=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function le(r){return r.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function He(){const r=K.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(xe,{children:t.jsx(_e,{})}),r[0]=e):e=r[0],e}function te(r){const e=K.c(13),{title:g,description:l,logoUrl:f,logoFallback:s}=r;let a;e[0]!==s||e[1]!==f?(a=t.jsx("div",{children:f?t.jsx(ee,{url:f,fallback:s??"?",shape:"square",size:"base",className:"h-12 w-12"}):t.jsxs(t.Fragment,{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]})}),e[0]=s,e[1]=f,e[2]=a):a=e[2];let i;e[3]!==g?(i=t.jsx("h1",{className:"text-2xl font-medium leading-8",children:g}),e[3]=g,e[4]=i):i=e[4];let o;e[5]!==l?(o=t.jsx("p",{className:"text-base text-muted-foreground leading-6",children:l}),e[5]=l,e[6]=o):o=e[6];let h;e[7]!==i||e[8]!==o?(h=t.jsxs("div",{className:"space-y-2",children:[i,o]}),e[7]=i,e[8]=o,e[9]=h):h=e[9];let n;return e[10]!==a||e[11]!==h?(n=t.jsxs("div",{className:"grid gap-10",children:[a,h]}),e[10]=a,e[11]=h,e[12]=n):n=e[12],n}function _e(){const r=K.c(4),{data:e,isPending:g}=me.useSession();if(g){let a;return r[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Y,{children:t.jsx("div",{className:"flex items-center gap-2",children:t.jsx(Q,{size:14,className:"animate-spin text-muted-foreground"})})}),r[0]=a):a=r[0],a}const l=e?.user?.email??"",f=e?.user?.name;let s;return r[1]!==f||r[2]!==l?(s=t.jsx(Oe,{email:l,userName:f}),r[1]=f,r[2]=l,r[3]=s):s=r[3],s}function Oe(r){const e=K.c(70),{email:g,userName:l}=r;let f,s,a,i,o,h;if(e[0]!==g||e[1]!==l){a=g.split("@")[1]?.toLowerCase()??"",i=!!a&&!Ce.has(a);const m=a.split(".")[0]??"";s=m.charAt(0).toUpperCase()+m.slice(1);let x;e[8]!==s||e[9]!==i||e[10]!==l?(x=i?s:l?.split(" ")[0]??"",e[8]=s,e[9]=i,e[10]=l,e[11]=x):x=e[11],f=x,h=he,o=pe.domainLookup(a),e[0]=g,e[1]=l,e[2]=f,e[3]=s,e[4]=a,e[5]=i,e[6]=o,e[7]=h}else f=e[2],s=e[3],a=e[4],i=e[5],o=e[6],h=e[7];let n;e[12]!==i||e[13]!==o?(n={queryKey:o,queryFn:Ae,enabled:i},e[12]=i,e[13]=o,e[14]=n):n=e[14];const{data:v,isLoading:d}=h(n);let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k={mutationFn:Pe},e[15]=k):k=e[15];const c=ne(k),[D,P]=F.useState(!1);if(d){let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Q,{size:14,className:"animate-spin text-muted-foreground"}),e[16]=m):m=e[16];let x;return e[17]!==a?(x=t.jsx(Y,{children:t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[m,t.jsxs("span",{className:"text-sm text-muted-foreground",children:["Checking ",a,"..."]})]})}),e[17]=a,e[18]=x):x=e[18],x}let E,y,z;if(e[19]!==D||e[20]!==s||e[21]!==v?.organizations||e[22]!==a||e[23]!==i||e[24]!==c||e[25]!==l){z=Symbol.for("react.early_return_sentinel");e:{y=v?.organizations??[];const m=y.filter(Ee);E=y.length>0;const x=m.length>0,N=c.variables??null;if(D){let u;e[29]!==l?(u=l?.split(" ")[0]??"",e[29]=l,e[30]=u):u=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=()=>P(!1),e[31]=b):b=e[31];let p;e[32]!==s||e[33]!==a||e[34]!==i||e[35]!==u?(p=t.jsx(re,{isCorporateEmail:i,emailDomain:a,domainLabel:s,defaultName:u,allowDomainClaim:!1,onBack:b}),e[32]=s,e[33]=a,e[34]=i,e[35]=u,e[36]=p):p=e[36],z=p;break e}if(x){const u=m.length===1?"You have access to an organization":"You have access to multiple organizations",b=m.length===1?"Your email domain matches an existing organization.":"Your email domain matches more than one. Pick one to join.";let p;e[37]!==u||e[38]!==b?(p=t.jsx(te,{title:u,description:b}),e[37]=u,e[38]=b,e[39]=p):p=e[39];let w;e[40]!==a||e[41]!==c||e[42]!==N?(w=O=>{const G=c.isPending&&N===O.slug;return t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(ee,{url:O.logo??`https://www.google.com/s2/favicons?domain=${a}&sz=128`,fallback:O.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:O.name}),t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",a]})]}),t.jsx(oe,{size:"default",onClick:()=>c.mutate(O.slug),disabled:c.isPending,children:G?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Q,{size:14,className:"animate-spin"})," ","Joining..."]}):"Join"})]},O.id)},e[40]=a,e[41]=c,e[42]=N,e[43]=w):w=e[43];const _=t.jsx("div",{className:"grid gap-2",children:m.map(w)});let S;e[44]!==c.error?(S=c.error&&t.jsx("p",{className:"text-xs text-destructive",children:c.error instanceof Error?c.error.message:"Failed to join organization"}),e[44]=c.error,e[45]=S):S=e[45];let $;e[46]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:()=>P(!0),children:"Create a new organization instead"}),e[46]=$):$=e[46];let L;e[47]!==_||e[48]!==S||e[49]!==p?(L=t.jsx(Y,{children:t.jsxs("div",{className:"grid gap-10",children:[p,_,S,$]})}),e[47]=_,e[48]=S,e[49]=p,e[50]=L):L=e[50],z=L;break e}}e[19]=D,e[20]=s,e[21]=v?.organizations,e[22]=a,e[23]=i,e[24]=c,e[25]=l,e[26]=E,e[27]=y,e[28]=z}else E=e[26],y=e[27],z=e[28];if(z!==Symbol.for("react.early_return_sentinel"))return z;if(E){const m=y.length===1?`${y[0].name} is already set up`:`${y.length} organizations use @${a}`,x=y.length===1?"This organization doesn't have auto-join enabled.":"None of them have auto-join enabled — ask an admin for an invitation, or create your own.";let N;e[51]!==m||e[52]!==x?(N=t.jsx(te,{title:m,description:x}),e[51]=m,e[52]=x,e[53]=N):N=e[53];let u;if(e[54]!==a||e[55]!==y){let _;e[57]!==a?(_=S=>t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 p-4 flex items-center gap-4",children:[t.jsx(ee,{url:S.logo??`https://www.google.com/s2/favicons?domain=${a}&sz=128`,fallback:S.name.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-10 w-10 shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:S.name}),t.jsxs("p",{className:"text-xs text-muted-foreground truncate",children:["@",a]})]}),t.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Ask admin for invitation"})]},S.id),e[57]=a,e[58]=_):_=e[58],u=y.map(_),e[54]=a,e[55]=y,e[56]=u}else u=e[56];let b;e[59]!==u?(b=t.jsx("div",{className:"grid gap-2",children:u}),e[59]=u,e[60]=b):b=e[60];let p;e[61]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(oe,{size:"xl",className:"w-full",onClick:()=>P(!0),children:"Create a new organization"}),e[61]=p):p=e[61];let w;return e[62]!==b||e[63]!==N?(w=t.jsx(Y,{children:t.jsxs("div",{className:"grid gap-10",children:[N,b,p]})}),e[62]=b,e[63]=N,e[64]=w):w=e[64],w}let A;return e[65]!==f||e[66]!==s||e[67]!==a||e[68]!==i?(A=t.jsx(re,{isCorporateEmail:i,emailDomain:a,domainLabel:s,defaultName:f}),e[65]=f,e[66]=s,e[67]=a,e[68]=i,e[69]=A):A=e[69],A}function Ee(r){return r.autoJoinEnabled}async function Pe(r){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),g=await e.json();if(!e.ok||!g.success)throw new Error(g.error||"Failed to join organization");window.location.href=`/${g.slug}`}async function Ae(){return(await fetch("/api/auth/custom/domain-lookup",{credentials:"include"})).json()}function re(r){const e=K.c(70),{isCorporateEmail:g,emailDomain:l,domainLabel:f,defaultName:s,allowDomainClaim:a,onBack:i}=r,o=a===void 0?!0:a,h=g&&o?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null,[n,v]=F.useState(s),[d,k]=F.useState(h),[c,D]=F.useState(!0),[P,E]=F.useState(null);let y;e[0]!==c||e[1]!==d||e[2]!==n?(y=async()=>{const j=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n.trim()||void 0,logo:d??void 0,claimDomain:c})}),C=await j.json();if(!j.ok||!C.success)throw new Error(C.error||"Failed to set up organization");return C},e[0]=c,e[1]=d,e[2]=n,e[3]=y):y=e[3];let z;e[4]!==c?(z=j=>{if(!j.slug)return;const C=ue.filter(ge=>c||!ge.claimOnly).length,W=fe*(C-1)+800;E(j.slug),setTimeout(()=>{window.location.href=`/${j.slug}`},W)},e[4]=c,e[5]=z):z=e[5];let A;e[6]!==y||e[7]!==z?(A={mutationFn:y,onSuccess:z},e[6]=y,e[7]=z,e[8]=A):A=e[8];const m=ne(A);let x;e[9]!==d||e[10]!==n?(x={mutationFn:async()=>{const j=n.trim(),C=le(j);if(!C)throw new Error("Invalid organization name");const W=await me.organization.create({name:j,slug:C,...d?{logo:d}:{}});if(W?.error)throw new Error(W.error.message||"Failed to create organization");window.location.href=`/${W?.data?.slug??C}`}},e[9]=d,e[10]=n,e[11]=x):x=e[11];const N=ne(x);if(m.isPending||P){let j;e[12]!==f||e[13]!==n?(j=n.trim()||f,e[12]=f,e[13]=n,e[14]=j):j=e[14];let C;return e[15]!==c||e[16]!==l||e[17]!==d||e[18]!==j?(C=t.jsx(Y,{children:t.jsx(Fe,{orgName:j,domain:l,claimDomain:c,logoUrl:d})}),e[15]=c,e[16]=l,e[17]=d,e[18]=j,e[19]=C):C=e[19],C}const u=N.isPending;let b;e[20]!==n?(b=le(n.trim()),e[20]=n,e[21]=b):b=e[21];const p=!!b,w=m.error||N.error||null;let _;e[22]!==o||e[23]!==p||e[24]!==N||e[25]!==m||e[26]!==g?(_=j=>{j.preventDefault(),p&&(g&&o?m.mutate():N.mutate())},e[22]=o,e[23]=p,e[24]=N,e[25]=m,e[26]=g,e[27]=_):_=e[27];const S=_;let $;e[28]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(te,{title:"Welcome to deco",description:"Set up your organization to get started"}),e[28]=$):$=e[28];let L;e[29]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-sm font-medium",children:"Organization avatar"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Optional"})]}),e[29]=L):L=e[29];let O;e[30]!==s||e[31]!==n?(O=(n.trim()||s||"?").charAt(0).toUpperCase(),e[30]=s,e[31]=n,e[32]=O):O=e[32];const G=u||m.isPending;let R;e[33]!==d||e[34]!==O||e[35]!==G?(R=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[L,t.jsx($e,{value:d,fallback:O,onChange:k,disabled:G})]}),e[33]=d,e[34]=O,e[35]=G,e[36]=R):R=e[36];let V;e[37]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(je,{htmlFor:"org-name",className:"text-sm font-medium shrink-0",children:"Organization name"}),e[37]=V):V=e[37];let X;e[38]===Symbol.for("react.memo_cache_sentinel")?(X=j=>v(j.target.value),e[38]=X):X=e[38];const ae=s||"My Organization",se=u||m.isPending;let T;e[39]!==n||e[40]!==ae||e[41]!==se?(T=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[V,t.jsx(be,{id:"org-name",value:n,onChange:X,placeholder:ae,disabled:se,className:"h-10 max-w-[220px]"})]}),e[39]=n,e[40]=ae,e[41]=se,e[42]=T):T=e[42];let U;e[43]!==o||e[44]!==c||e[45]!==m.isPending||e[46]!==l||e[47]!==g||e[48]!==u?(U=g&&o&&t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsxs("p",{className:"text-sm font-medium",children:["Allow @",l," sign-ups"]}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anyone with a verified @",l," email can join this org"]})]}),t.jsx(ye,{checked:c,onCheckedChange:D,disabled:u||m.isPending})]}),e[43]=o,e[44]=c,e[45]=m.isPending,e[46]=l,e[47]=g,e[48]=u,e[49]=U):U=e[49];let M;e[50]!==R||e[51]!==T||e[52]!==U?(M=t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 divide-y divide-border",children:[R,T,U]}),e[50]=R,e[51]=T,e[52]=U,e[53]=M):M=e[53];let I;e[54]!==w?(I=w&&t.jsx("p",{className:"text-xs text-destructive",children:w instanceof Error?w.message:"Failed to create organization"}),e[54]=w,e[55]=I):I=e[55];const ie=!p||u||m.isPending;let J;e[56]!==m.isPending||e[57]!==u?(J=u||m.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Q,{size:14,className:"animate-spin"})," Creating..."]}):"Continue",e[56]=m.isPending,e[57]=u,e[58]=J):J=e[58];let q;e[59]!==ie||e[60]!==J?(q=t.jsx(oe,{type:"submit",size:"xl",className:"w-full",disabled:ie,children:J}),e[59]=ie,e[60]=J,e[61]=q):q=e[61];let B;e[62]!==i?(B=i&&t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:i,children:"See available organizations"}),e[62]=i,e[63]=B):B=e[63];let Z;return e[64]!==S||e[65]!==M||e[66]!==I||e[67]!==q||e[68]!==B?(Z=t.jsx(Y,{children:t.jsxs("form",{onSubmit:S,className:"grid gap-10",children:[$,M,I,q,B]})}),e[64]=S,e[65]=M,e[66]=I,e[67]=q,e[68]=B,e[69]=Z):Z=e[69],Z}function $e(r){const e=K.c(14),{value:g,fallback:l,onChange:f,disabled:s}=r,a=F.useRef(null);let i;e[0]!==f?(i=D=>{const P=D.target.files?.[0];if(!P)return;if(P.size>2097152){de.error("Image must be smaller than 2MB"),a.current&&(a.current.value="");return}const E=new FileReader;E.onerror=Le,E.onloadend=()=>{E.result&&f(E.result),a.current&&(a.current.value="")},E.readAsDataURL(P)},e[0]=f,e[1]=i):i=e[1];const o=i;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=()=>a.current?.click(),e[2]=h):h=e[2];let n;e[3]!==s||e[4]!==o?(n=t.jsx("input",{ref:a,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:s}),e[3]=s,e[4]=o,e[5]=n):n=e[5];const v=g??void 0;let d;e[6]!==l||e[7]!==v?(d=t.jsx(ee,{url:v,fallback:l,shape:"square",size:"base"}),e[6]=l,e[7]=v,e[8]=d):d=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(ze,{size:14,className:"text-white"})}),e[9]=k):k=e[9];let c;return e[10]!==s||e[11]!==n||e[12]!==d?(c=t.jsxs("button",{type:"button",onClick:h,disabled:s,className:"relative rounded-lg overflow-hidden ring-1 ring-border hover:ring-2 hover:ring-ring/40 transition-all disabled:opacity-50 group","aria-label":"Upload organization logo",children:[n,d,k]}),e[10]=s,e[11]=n,e[12]=d,e[13]=c):c=e[13],c}function Le(){return de.error("Failed to read image")}const ue=[{icon:Ne,label:"Creating organization",claimOnly:!1},{icon:Se,label:"Claiming email domain",claimOnly:!0},{icon:ve,label:"Enabling auto-join for your team",claimOnly:!0},{icon:ke,label:"Extracting brand context",claimOnly:!1}],fe=1500,ce=[{bg:"var(--brand-green-light)",fg:"var(--brand-green-dark)"},{bg:"var(--brand-purple-light)",fg:"var(--brand-purple-dark)"},{bg:"var(--brand-yellow-light)",fg:"var(--brand-yellow-dark)"}];function Fe({orgName:r,domain:e,claimDomain:g,logoUrl:l}){const f=ue.filter(o=>g||!o.claimOnly),[s,a]=F.useState(0),i=F.useRef(!1);if(!i.current){i.current=!0;for(let o=1;o<f.length;o++)setTimeout(()=>a(o),fe*o)}return t.jsxs("div",{className:"grid gap-10",children:[t.jsx(te,{title:`Setting up ${r}`,description:`Getting everything ready from ${e}`,logoUrl:l??null,logoFallback:r.charAt(0).toUpperCase()||"?"}),t.jsx("ul",{className:"grid gap-5",children:f.map((o,h)=>{const n=o.icon,v=h===s,d=h<s,k=ce[h%ce.length];return t.jsxs("li",{className:"flex items-center gap-4 motion-safe:transition-opacity motion-safe:duration-300 motion-safe:ease-out",style:{opacity:d||v?1:.4},children:[t.jsxs("span",{className:H("relative grid h-8 w-8 shrink-0 place-items-center rounded-lg","motion-safe:transition-colors motion-safe:duration-300",!d&&(v?"bg-muted text-foreground":"bg-muted text-muted-foreground")),style:d?{backgroundColor:k.bg,color:k.fg}:void 0,children:[t.jsx(we,{size:16,className:H("absolute motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",d?"scale-100 opacity-100":"scale-75 opacity-0"),"aria-hidden":"true"}),t.jsx(Q,{size:16,className:H("absolute animate-spin","motion-safe:transition-opacity motion-safe:duration-200",v?"opacity-100":"opacity-0"),"aria-hidden":"true"}),t.jsx(n,{size:16,className:H("absolute motion-safe:transition-opacity motion-safe:duration-200",!d&&!v?"opacity-100":"opacity-0"),"aria-hidden":"true"})]}),t.jsx("span",{className:H("text-base leading-6 motion-safe:transition-colors motion-safe:duration-300",v||d?"text-foreground":"text-muted-foreground"),children:o.label})]},o.label)})})]})}export{He as default};
@@ -1 +1 @@
1
- import{e as k,r as z,b8 as S,g as _,a3 as E,b9 as T,j as o,P as $}from"./index-CiRQNPVt.js";const P="#f6f4ed",L="#ffffff",H=[{src:"/icons/icon-192.png",sizes:"192x192",type:"image/png"},{src:"/icons/icon-512.png",sizes:"512x512",type:"image/png"}];function R(e,n){const t=`${n}/${e.slug}`,i=[...e.logo?[{src:e.logo,sizes:"192x192",purpose:"any"},{src:e.logo,sizes:"512x512",purpose:"any"},{src:e.logo,sizes:"any",purpose:"any"}]:[],...H],l={id:t,name:e.name,short_name:e.name,start_url:t,scope:t,display:"standalone",display_override:["window-controls-overlay"],background_color:L,theme_color:P,icons:i};return`data:application/manifest+json,${encodeURIComponent(JSON.stringify(l))}`}function O(e){const n=document.querySelector(`link[rel="${e}"]`);if(n)return n;const t=document.createElement("link");return t.rel=e,document.head.appendChild(t),t}function U(e){const n=document.querySelector(`meta[name="${e}"]`);if(n)return n;const t=document.createElement("meta");return t.name=e,document.head.appendChild(t),t}function M(e){const n=k.c(5),t=e?.name??"",i=e?.slug??"",l=e?.logo??"";let a,c;n[0]!==l||n[1]!==t||n[2]!==i?(a=()=>{if(!i||!t||typeof document>"u"||typeof window>"u")return;const d=O("manifest"),m=O("apple-touch-icon"),u=U("apple-mobile-web-app-title"),r={manifest:d.getAttribute("href"),appleIcon:m.getAttribute("href"),appleTitle:u.getAttribute("content"),title:document.title};return d.setAttribute("href",R({name:t,slug:i,logo:l||null},window.location.origin)),l&&m.setAttribute("href",l),u.setAttribute("content",t),document.title=t,S(),()=>{r.manifest!==null&&d.setAttribute("href",r.manifest),r.appleIcon!==null&&m.setAttribute("href",r.appleIcon),r.appleTitle!==null&&u.setAttribute("content",r.appleTitle),document.title=r.title,S()}},c=[t,i,l],n[0]=l,n[1]=t,n[2]=i,n[3]=a,n[4]=c):(a=n[3],c=n[4]),z.useLayoutEffect(a,c)}function q(){const e=k.c(31);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const{org:t}=_(n),{data:i}=E();let l;e[1]!==i||e[2]!==t?(l=i?.find(N=>N.slug===t),e[1]=i,e[2]=t,e[3]=l):l=e[3];const a=l;let c;e[4]!==a?(c=a?{name:a.name,slug:a.slug,logo:a.logo??null}:null,e[4]=a,e[5]=c):c=e[5],M(c);const{canPrompt:d,installed:m,ios:u,promptInstall:r}=T(),[y,w]=z.useState(null),s=a?.name??"this organization",C=a?.logo;let b;e[6]!==s||e[7]!==r?(b=async()=>{const N=await r();w(N==="accepted"?`Installing ${s}…`:N==="dismissed"?"Install dismissed.":null)},e[6]=s,e[7]=r,e[8]=b):b=e[8];const A=b,I=C||"/icons/icon-192.png";let p;e[9]!==s||e[10]!==I?(p=o.jsx("img",{src:I,alt:s,className:"size-20 rounded-2xl border border-border/50 object-cover"}),e[9]=s,e[10]=I,e[11]=p):p=e[11];let f;e[12]!==s?(f=o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("h1",{className:"text-xl font-semibold text-foreground",children:["Add ",s," to your Home Screen"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Install ",s," as its own app — a standalone window that opens straight into this organization. To install the full deco Studio app instead, use your browser's “Add to Home Screen” from any other page."]})]}),e[12]=s,e[13]=f):f=e[13];let g;e[14]!==d||e[15]!==A||e[16]!==m||e[17]!==u||e[18]!==s||e[19]!==y?(g=m?o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[s," is already installed on this device."]}):u?o.jsxs("div",{className:"flex flex-col gap-2 rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[o.jsx("p",{className:"font-medium",children:"Install on iOS"}),o.jsxs("p",{className:"text-muted-foreground",children:["Tap the ",o.jsx("span",{className:"font-medium",children:"Share"})," button, then choose ",o.jsx("span",{className:"font-medium",children:"Add to Home Screen"}),"."]})]}):d?o.jsxs("div",{className:"flex flex-col items-center gap-3",children:[o.jsxs("button",{type:"button",onClick:A,className:"rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:["Add ",s," to Home Screen"]}),y&&o.jsx("p",{className:"text-sm text-muted-foreground",children:y})]}):o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground",children:["To install, open your browser's menu and choose"," ",o.jsxs("span",{className:"font-medium text-foreground",children:["Install ",s]})," ","(or “Add to Home Screen”). If you don't see it yet, interact with the app for a moment and try again."]}),e[14]=d,e[15]=A,e[16]=m,e[17]=u,e[18]=s,e[19]=y,e[20]=g):g=e[20];const v=t??"";let x;e[21]!==v?(x={org:v},e[21]=v,e[22]=x):x=e[22];let h;e[23]!==s||e[24]!==x?(h=o.jsxs($,{to:"/$org",params:x,className:"text-sm text-primary hover:underline",replace:!0,children:["Back to ",s]}),e[23]=s,e[24]=x,e[25]=h):h=e[25];let j;return e[26]!==h||e[27]!==p||e[28]!==f||e[29]!==g?(j=o.jsx("div",{className:"flex min-h-dvh items-center justify-center bg-background p-6",children:o.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-6 text-center",children:[p,f,g,h]})}),e[26]=h,e[27]=p,e[28]=f,e[29]=g,e[30]=j):j=e[30],j}export{q as default};
1
+ import{e as k,r as z,b8 as S,g as _,a3 as E,b9 as T,j as o,P as $}from"./index-DLy_MgNO.js";const P="#f6f4ed",L="#ffffff",H=[{src:"/icons/icon-192.png",sizes:"192x192",type:"image/png"},{src:"/icons/icon-512.png",sizes:"512x512",type:"image/png"}];function R(e,n){const t=`${n}/${e.slug}`,i=[...e.logo?[{src:e.logo,sizes:"192x192",purpose:"any"},{src:e.logo,sizes:"512x512",purpose:"any"},{src:e.logo,sizes:"any",purpose:"any"}]:[],...H],l={id:t,name:e.name,short_name:e.name,start_url:t,scope:t,display:"standalone",display_override:["window-controls-overlay"],background_color:L,theme_color:P,icons:i};return`data:application/manifest+json,${encodeURIComponent(JSON.stringify(l))}`}function O(e){const n=document.querySelector(`link[rel="${e}"]`);if(n)return n;const t=document.createElement("link");return t.rel=e,document.head.appendChild(t),t}function U(e){const n=document.querySelector(`meta[name="${e}"]`);if(n)return n;const t=document.createElement("meta");return t.name=e,document.head.appendChild(t),t}function M(e){const n=k.c(5),t=e?.name??"",i=e?.slug??"",l=e?.logo??"";let a,c;n[0]!==l||n[1]!==t||n[2]!==i?(a=()=>{if(!i||!t||typeof document>"u"||typeof window>"u")return;const d=O("manifest"),m=O("apple-touch-icon"),u=U("apple-mobile-web-app-title"),r={manifest:d.getAttribute("href"),appleIcon:m.getAttribute("href"),appleTitle:u.getAttribute("content"),title:document.title};return d.setAttribute("href",R({name:t,slug:i,logo:l||null},window.location.origin)),l&&m.setAttribute("href",l),u.setAttribute("content",t),document.title=t,S(),()=>{r.manifest!==null&&d.setAttribute("href",r.manifest),r.appleIcon!==null&&m.setAttribute("href",r.appleIcon),r.appleTitle!==null&&u.setAttribute("content",r.appleTitle),document.title=r.title,S()}},c=[t,i,l],n[0]=l,n[1]=t,n[2]=i,n[3]=a,n[4]=c):(a=n[3],c=n[4]),z.useLayoutEffect(a,c)}function q(){const e=k.c(31);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const{org:t}=_(n),{data:i}=E();let l;e[1]!==i||e[2]!==t?(l=i?.find(N=>N.slug===t),e[1]=i,e[2]=t,e[3]=l):l=e[3];const a=l;let c;e[4]!==a?(c=a?{name:a.name,slug:a.slug,logo:a.logo??null}:null,e[4]=a,e[5]=c):c=e[5],M(c);const{canPrompt:d,installed:m,ios:u,promptInstall:r}=T(),[y,w]=z.useState(null),s=a?.name??"this organization",C=a?.logo;let b;e[6]!==s||e[7]!==r?(b=async()=>{const N=await r();w(N==="accepted"?`Installing ${s}…`:N==="dismissed"?"Install dismissed.":null)},e[6]=s,e[7]=r,e[8]=b):b=e[8];const A=b,I=C||"/icons/icon-192.png";let p;e[9]!==s||e[10]!==I?(p=o.jsx("img",{src:I,alt:s,className:"size-20 rounded-2xl border border-border/50 object-cover"}),e[9]=s,e[10]=I,e[11]=p):p=e[11];let f;e[12]!==s?(f=o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("h1",{className:"text-xl font-semibold text-foreground",children:["Add ",s," to your Home Screen"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Install ",s," as its own app — a standalone window that opens straight into this organization. To install the full deco Studio app instead, use your browser's “Add to Home Screen” from any other page."]})]}),e[12]=s,e[13]=f):f=e[13];let g;e[14]!==d||e[15]!==A||e[16]!==m||e[17]!==u||e[18]!==s||e[19]!==y?(g=m?o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[s," is already installed on this device."]}):u?o.jsxs("div",{className:"flex flex-col gap-2 rounded-lg bg-muted px-4 py-3 text-sm text-foreground",children:[o.jsx("p",{className:"font-medium",children:"Install on iOS"}),o.jsxs("p",{className:"text-muted-foreground",children:["Tap the ",o.jsx("span",{className:"font-medium",children:"Share"})," button, then choose ",o.jsx("span",{className:"font-medium",children:"Add to Home Screen"}),"."]})]}):d?o.jsxs("div",{className:"flex flex-col items-center gap-3",children:[o.jsxs("button",{type:"button",onClick:A,className:"rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:["Add ",s," to Home Screen"]}),y&&o.jsx("p",{className:"text-sm text-muted-foreground",children:y})]}):o.jsxs("p",{className:"rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground",children:["To install, open your browser's menu and choose"," ",o.jsxs("span",{className:"font-medium text-foreground",children:["Install ",s]})," ","(or “Add to Home Screen”). If you don't see it yet, interact with the app for a moment and try again."]}),e[14]=d,e[15]=A,e[16]=m,e[17]=u,e[18]=s,e[19]=y,e[20]=g):g=e[20];const v=t??"";let x;e[21]!==v?(x={org:v},e[21]=v,e[22]=x):x=e[22];let h;e[23]!==s||e[24]!==x?(h=o.jsxs($,{to:"/$org",params:x,className:"text-sm text-primary hover:underline",replace:!0,children:["Back to ",s]}),e[23]=s,e[24]=x,e[25]=h):h=e[25];let j;return e[26]!==h||e[27]!==p||e[28]!==f||e[29]!==g?(j=o.jsx("div",{className:"flex min-h-dvh items-center justify-center bg-background p-6",children:o.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-6 text-center",children:[p,f,g,h]})}),e[26]=h,e[27]=p,e[28]=f,e[29]=g,e[30]=j):j=e[30],j}export{q as default};
@@ -1 +1 @@
1
- import{e as o,j as r,O as s}from"./index-CiRQNPVt.js";function m(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{m as default};
1
+ import{e as o,j as r,O as s}from"./index-DLy_MgNO.js";function m(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{m as default};
@@ -0,0 +1 @@
1
+ import{e as p,g as f,cm as x,j as r,r as c,l as u}from"./index-DLy_MgNO.js";import{P as g}from"./plugin-layout-DeJC8Je1.js";import"./use-connection-DBknh1_S.js";import"./use-collections-CmHxKkjG.js";import"./use-mcp-client-FbAC4-Un.js";import"./studio-tools-BxKekKsO.js";import"./Settings02-DWXKmfg4.js";import"./index-hMTvGWUn.js";import"./sidebar-DRcLUASh.js";import"./LayoutLeft-DhbihSgJ.js";import"./tooltip-DUvSyhJC.js";import"./sheet-CtgWE_6O.js";import"./X-8xcHoVBj.js";function k(){const e=p.c(13);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org/plugins/$pluginId"},e[0]=i):i=e[0];const{pluginId:s}=f(i);let l;e[1]!==s?(l=x.find(n=>n.id===s),e[1]=s,e[2]=l):l=e[2];const t=l;if(t?.renderHeader&&t?.renderEmptyState&&t?.bindingName){let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[3]=n):n=e[3];let d;return e[4]!==t.bindingName||e[5]!==t.renderEmptyState||e[6]!==t.renderHeader?(d=r.jsx(c.Suspense,{fallback:n,children:r.jsx(g,{bindingName:t.bindingName,renderHeader:t.renderHeader,renderEmptyState:t.renderEmptyState})}),e[4]=t.bindingName,e[5]=t.renderEmptyState,e[6]=t.renderHeader,e[7]=d):d=e[7],d}const m=t?.LayoutComponent;if(!m){let n;return e[8]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Plugin "',s,'" not found']})}),e[8]=s,e[9]=n):n=e[9],n}let a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[10]=a):a=e[10];let o;return e[11]!==m?(o=r.jsx(c.Suspense,{fallback:a,children:r.jsx(m,{})}),e[11]=m,e[12]=o):o=e[12],o}export{k as default};
@@ -1 +1 @@
1
- import{e as L,G as te,K as U,j as a,r as G,c as ne}from"./index-CiRQNPVt.js";import{i as oe,m as M,a2 as se,a3 as re,W as ie,e as le}from"./index-DkWynf6r.js";import{L as Y}from"./label-DLUhXNk7.js";import{S as $}from"./switch-CTAzWsjZ.js";import{a as ce,S as ae}from"./schema-form-DNuUk0WJ.js";import{c as ue,S as fe,a as pe,b as de,d as ye}from"./select-BMX9jvQG.js";const me="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function z(t,e){return t===null?null:N(e)?{...e,section:t}:t}function he(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:me,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=M(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=M(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function qe(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:z(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:z(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:m}=le(y,p);let h;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(h=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=h):h=e[11];const g=h;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==m||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:m},e[18]=S,e[19]=m,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=G.useState(i);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={},e[2]=m):m=e[2];const[h,g]=G.useState(m);f!==i&&(S(i),g({}));let v;e[3]!==h||e[4]!==o?(v=u=>h[u]!==void 0?h[u]:Ae(o,u),e[3]=h,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...o};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}s(j)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let h;e[0]!==i?(h=v=>i(v),e[0]=i,e[1]=h):h=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==h||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:h,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=h,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let m;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(m=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=m):m=e[17],m}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Xe(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:m,beforeFields:h}=t;let g;e[0]!==s||e[1]!==m||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=he(s);p(j),S(),m();return}p(null),S(),m()},e[0]=s,e[1]=m,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==m||e[9]!==f?(E=T=>{f({__resolveType:T}),m()},e[8]=m,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==h||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[h,b,_]}),e[26]=h,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Xe as P,Ie as S,He as a,Ce as b,Je as c,Z as d,je as f,k as i,qe as r,w as u};
1
+ import{e as L,G as te,K as U,j as a,r as G,c as ne}from"./index-DLy_MgNO.js";import{i as oe,m as M,a2 as se,a3 as re,W as ie,e as le}from"./index-CIBQMZc3.js";import{L as Y}from"./label-Dh8yif55.js";import{S as $}from"./switch-DH2AgpKj.js";import{a as ce,S as ae}from"./schema-form-CQrr8C2Q.js";import{c as ue,S as fe,a as pe,b as de,d as ye}from"./select-Dz1PdScB.js";const me="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function z(t,e){return t===null?null:N(e)?{...e,section:t}:t}function he(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:me,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=M(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=M(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ee(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function je(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(Ee(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function qe(t,e,n){if(e.kind==="site"){const l=je(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:z(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:z(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:m}=le(y,p);let h;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(h=E=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,E)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=h):h=e[11];const g=h;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=E=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==m||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:m},e[18]=S,e[19]=m,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=G.useState(i);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={},e[2]=m):m=e[2];const[h,g]=G.useState(m);f!==i&&(S(i),g({}));let v;e[3]!==h||e[4]!==o?(v=u=>h[u]!==void 0?h[u]:Ae(o,u),e[3]=h,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const j={...o};if(T)delete j[u];else{const D=r?.[u];j[u]=D??(u==="type"?"website":"")}s(j)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const j=p&&d.includes(u),D=j&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),j&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>E(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let h;e[0]!==i?(h=v=>i(v),e[0]=i,e[1]=h):h=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==h||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:h,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=h,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let m;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(m=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=m):m=e[17],m}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Xe(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:m,beforeFields:h}=t;let g;e[0]!==s||e[1]!==m||e[2]!==S||e[3]!==p?(g=T=>{if(T){const j=he(s);p(j),S(),m();return}p(null),S(),m()},e[0]=s,e[1]=m,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const j=Se(T,n);p(j)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==m||e[9]!==f?(E=T=>{f({__resolveType:T}),m()},e[8]=m,e[9]=f,e[10]=E):E=e[10];const P=E;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==h||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[h,b,_]}),e[26]=h,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Xe as P,Ie as S,He as a,Ce as b,Je as c,Z as d,je as f,k as i,qe as r,w as u};
@@ -0,0 +1 @@
1
+ import{e as it,r as E,j as e,l as rt}from"./index-DLy_MgNO.js";import{S as mt,d as pt,a as st,b as at}from"./sheet-CtgWE_6O.js";import{S as nt}from"./scroll-area-EinmnR6o.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CDMGSBfI.js";import{m as xt}from"./index-CIBQMZc3.js";import"./X-8xcHoVBj.js";import"./select-Dz1PdScB.js";import"./tooltip-DUvSyhJC.js";import"./Check-CTLrORIv.js";import"./ChevronDown-CE2QQfze.js";import"./ChevronUp-4IXM99ti.js";import"./label-Dh8yif55.js";import"./switch-DH2AgpKj.js";import"./schema-form-CQrr8C2Q.js";import"./agent-icon-DyzI2_Id.js";import"./AlertCircle-DTxB9pUH.js";import"./Tool01-B2YQjPAa.js";import"./SwitchHorizontal01-Fq29tGDx.js";import"./RefreshCcw01-Duj7NlwB.js";import"./XCircle-CGgdji5f.js";import"./ArrowUpRight-zXKZw2Xb.js";import"./ZapSquare-C2mTTgos.js";import"./Users03-DUZwXij4.js";import"./CheckCircle-BUQijftD.js";import"./ChevronLeft-Cu7s4gqK.js";import"./ChevronRight-VGojeAFz.js";import"./DotsVertical--R-pmXe3.js";import"./Container-BoFlhIZL.js";import"./Eye-pMhw6sUG.js";import"./ZoomOut-CR6ja8eb.js";import"./Globe01-Cp3X_WfB.js";import"./FilterLines-Bz8yyibx.js";import"./Star01-E49TkgRa.js";import"./Palette-PH8MXuP9.js";import"./HardDrive-BH54c3De.js";import"./Stars02-BVMEIcco.js";import"./Key01-CfBifHqv.js";import"./LayoutLeft-DhbihSgJ.js";import"./LinkExternal01-BGLjTHSM.js";import"./Monitor01-Djh_XBKr.js";import"./Sun-CC_Mb8Zc.js";import"./Play-C4oLlMWL.js";import"./Plus-BX4ueqQS.js";import"./SearchMd-CL91MHi_.js";import"./Settings02-DWXKmfg4.js";import"./Shield01-5PYVS020.js";import"./Stars01-NNVgYP83.js";import"./Trash01-XqCtMZQT.js";import"./Upload01-CTIKtpO3.js";import"./User01-Cz-IdAgQ.js";import"./Users01-D7P0o8Z_.js";import"./XClose-CxCjUb2p.js";import"./Zap-DLFeSSQ0.js";import"./calendar-CC1tf37S.js";import"./input-CTpSARTD.js";import"./popover-BTf4Nz5d.js";import"./textarea--0YfTbVD.js";import"./dropdown-menu-DFCaJxA8.js";import"./image-field-pfu57PP0.js";import"./dialog-DSHkVmzb.js";import"./skeleton-BH3hvPuC.js";import"./tabs-zn3_c2X4.js";import"./use-file-configs-DWXPP8uC.js";import"./studio-tools-BxKekKsO.js";import"./useInfiniteQuery-68Zg22Ld.js";import"./infiniteQueryObserver-CJIUgHAf.js";import"./agent-capabilities-CeRZY0ao.js";import"./chat-context-Moe82J6D.js";import"./tab-id-xylxHxk-.js";import"./use-mcp-client-FbAC4-Un.js";import"./decopilot-sse-pool-8oQl4q0c.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-CL360k9_.js";import"./use-collections-CmHxKkjG.js";import"./use-ai-providers-D2lIJSNP.js";import"./use-organization-settings-Bdk0M31t.js";import"./pair-C8e4qd_P.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Cwl7g8AE.js";import"./file-type-icon-ThJaLePn.js";import"./content-blocks-o63cs2vh.js";import"./types-DA4RGvyb.js";import"./shell-layout-CWL5imKS.js";import"./avatar-DK3a4hPp.js";import"./required-auth-layout-B_Qr5rQD.js";import"./useRouterState-CBsQY2cY.js";import"./use-org-sso-Ba3MjbPK.js";import"./integration-icon-BpF3qWll.js";import"./use-navigate-to-agent-Bg4INoCb.js";import"./use-connection-DBknh1_S.js";import"./use-mcp-prompts-yCzBJuZf.js";import"./form-DngzP8fb.js";import"./spinner-B_3Siejz.js";import"./drawer-BCmqLnLy.js";import"./collection-search-CfzW8Ljz.js";import"./toggle-group-CzCtoT44.js";import"./connect-desktop-dialog-BSZmVMpV.js";import"./agent-icons-CkjHTgLo.js";import"./checkbox-CGo4P_LC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DqhmLe6Q.js";import"./card-BU_YNBo4.js";import"./command-D_uV9Uyw.js";import"./index-BepaMXhR.js";import"./sortable.esm-Bv55LbH0.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CMo6aDgc.js";import"./use-registry-connections-DkTd3pip.js";import"./extract-connection-data-B52LuKdR.js";import"./generate-id-CDzcbt9l.js";import"./collections-BthqN0MR.js";import"./collection-tabs-BxpcEAFc.js";import"./badge-SRsZ13Ha.js";import"./connection-form-helpers-D7eAIFli.js";import"./use-infinite-scroll-SoMG-nf0.js";import"./useSuspenseInfiniteQuery-C32oPBV5.js";import"./index-DdnG6T0z.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-Co6LGu_q.js";import"./sidebar-DRcLUASh.js";import"./toolbar-GqBUNMmA.js";import"./use-create-virtual-mcp-C1TsXsHi.js";import"./github-repo-picker-Dy1vUJSU.js";import"./use-mcp-tools-CxFt6L0J.js";import"./alert-dialog-tg3D4mnu.js";import"./index-5lPKE0PI.js";import"./use-org-auth-client-D0Et-q9V.js";import"./hover-card-CK_HvQcf.js";import"./task-status-CcBiqoc9.js";import"./use-status-sounds-Bi-eGoxq.js";import"./empty-state-CVOhfUW7.js";import"./resizable-psD7TWaW.js";import"./use-capability-B4Fg7dX0.js";import"./header-tab-button-YP4v_sFN.js";import"./index-hwXZ3lhJ.js";import"./user-ce-n8AzQ.js";import"./tools-list-6mOdBofe.js";import"./use-debounced-autosave-Bxr0aFzV.js";import"./index-hMTvGWUn.js";import"./search-input-IQT_u5qN.js";import"./use-secrets-B3XtAhqh.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-DBEoJ6NR.js";import"./view-mode-toggle-DPvhvCSl.js";import"./select-model-azh5-bst.js";import"./use-automations-DBfmwk1I.js";import"./monaco-editor-47G-YgBx.js";import"./automation-runs-S95csAA4.js";import"./table-BF0TGzWk.js";import"./use-members-B2ko1Eht.js";import"./automation-list-row-SEcTO2sW.js";function Si(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{Si as SeoSheet};