decocms 4.76.45 → 4.76.47
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.
- package/dist/client/assets/{AlertCircle-B947WyJr.js → AlertCircle-Ct_trIMg.js} +1 -1
- package/dist/client/assets/{AreaChart-BfsmrOXE.js → AreaChart-CRrsPyiX.js} +1 -1
- package/dist/client/assets/{ArrowUp-Bs_6P4Iu.js → ArrowUp-B82j0m1n.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BxZoQJWz.js → ArrowUpRight-Bs0BPetC.js} +1 -1
- package/dist/client/assets/{Check-CcnPQW8L.js → Check-DXck-8sV.js} +1 -1
- package/dist/client/assets/{CheckCircle-BU0_-3Q5.js → CheckCircle-S9jWn5Mh.js} +1 -1
- package/dist/client/assets/{ChevronDown-HIcxNu9L.js → ChevronDown-CLM1j2jp.js} +1 -1
- package/dist/client/assets/{ChevronRight-C5hCj-BJ.js → ChevronRight-C2E5Dp54.js} +1 -1
- package/dist/client/assets/{ChevronUp-zg_HGLWR.js → ChevronUp-BeHashnH.js} +1 -1
- package/dist/client/assets/{Circle-Bsy8_p9X.js → Circle-BsSfrq3e.js} +1 -1
- package/dist/client/assets/{Copy01-CEOVwp8a.js → Copy01-DpaC4fYW.js} +1 -1
- package/dist/client/assets/{DotsVertical-BlOzCsHI.js → DotsVertical-CF_wSve9.js} +1 -1
- package/dist/client/assets/{Eye-CDNr9lij.js → Eye-C-SV3lvP.js} +1 -1
- package/dist/client/assets/{FilterLines-CY9-eI6Z.js → FilterLines-CwURjVGJ.js} +1 -1
- package/dist/client/assets/{Flag01-C5CmZtnc.js → Flag01-Dvft4iTD.js} +1 -1
- package/dist/client/assets/{Globe01-C0_GSmts.js → Globe01-BIR5236w.js} +1 -1
- package/dist/client/assets/{Globe04-blrjzALH.js → Globe04-iZSw58kd.js} +1 -1
- package/dist/client/assets/{HardDrive-DDCNtQf8.js → HardDrive-5OBzO_Ky.js} +1 -1
- package/dist/client/assets/{Key01-DhaQwTr9.js → Key01-7lp-E5Gc.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CDGSUvFB.js → LayoutLeft-HNJhsqgp.js} +1 -1
- package/dist/client/assets/{LinkExternal01-wH6B14C5.js → LinkExternal01-CUjeXN47.js} +1 -1
- package/dist/client/assets/{List-CT_BXxlG.js → List-BEh5bEKM.js} +1 -1
- package/dist/client/assets/{Monitor01-CGFN5sGg.js → Monitor01-B7wjMyMa.js} +1 -1
- package/dist/client/assets/{Package-Dl0Lfmce.js → Package-B0UrtPIN.js} +1 -1
- package/dist/client/assets/{Palette-B0Atethk.js → Palette-zbGC5Dmm.js} +1 -1
- package/dist/client/assets/{Play-Dz4heBw1.js → Play-Bz0A3Y5e.js} +1 -1
- package/dist/client/assets/{Plus-DkxBw62L.js → Plus--M9dcPMO.js} +1 -1
- package/dist/client/assets/{SearchLg-BxBwkXRA.js → SearchLg-Ds17lwee.js} +1 -1
- package/dist/client/assets/{SearchMd-Ck8RI60i.js → SearchMd-gGSITpAR.js} +1 -1
- package/dist/client/assets/{Settings02-OSetn6ea.js → Settings02-C0J3RccK.js} +1 -1
- package/dist/client/assets/{Shield01-Dq-HMUMk.js → Shield01-Ce0QsQf7.js} +1 -1
- package/dist/client/assets/{Star01-BlQBW3oI.js → Star01-DRz1zPRR.js} +1 -1
- package/dist/client/assets/{Stars01-COr-0k43.js → Stars01-D9poRNZc.js} +1 -1
- package/dist/client/assets/{Stars02-Uz2mjN30.js → Stars02-XI_d0UtF.js} +1 -1
- package/dist/client/assets/{Sun-NMZSBMue.js → Sun-DgguBwdj.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-aHLJ4VFM.js → SwitchHorizontal01-Bb2rm5VX.js} +1 -1
- package/dist/client/assets/{Tool01-DPdDFdYA.js → Tool01-Cob0Vw_0.js} +1 -1
- package/dist/client/assets/{Tool02-CIj3JzdV.js → Tool02-DXqnzmcu.js} +1 -1
- package/dist/client/assets/{Trash01-ZIY4ACli.js → Trash01-LoLcmAxw.js} +1 -1
- package/dist/client/assets/{TrendUp01-DqQByDKq.js → TrendUp01-B3bGMiCS.js} +1 -1
- package/dist/client/assets/{Upload01-D1HGy3QV.js → Upload01-By7jF-FG.js} +1 -1
- package/dist/client/assets/{User01-B2aITRRg.js → User01-DN2LKLDR.js} +1 -1
- package/dist/client/assets/{UserPlus01-CoO5zvRr.js → UserPlus01-D3Z-h9xL.js} +1 -1
- package/dist/client/assets/{Users01-HqZawgTe.js → Users01-CYM1Paj5.js} +1 -1
- package/dist/client/assets/{Users03-C7WKxyUR.js → Users03-DXSIuYIP.js} +1 -1
- package/dist/client/assets/{X-Dmet8wMD.js → X-CQq_1twc.js} +1 -1
- package/dist/client/assets/{XCircle-BKwKlF9U.js → XCircle-ASq_08UK.js} +1 -1
- package/dist/client/assets/{XClose-iezakeMo.js → XClose-D892yOuU.js} +1 -1
- package/dist/client/assets/{Zap-CfXP7HDl.js → Zap-Dj5WEZOq.js} +1 -1
- package/dist/client/assets/{ZapSquare-ChZlLfh_.js → ZapSquare-CJb5VJO8.js} +1 -1
- package/dist/client/assets/{ZoomOut-9DZqfrOE.js → ZoomOut-D6w1kwx5.js} +1 -1
- package/dist/client/assets/{access-gate-w5g_NZJz.js → access-gate-Cte8vird.js} +1 -1
- package/dist/client/assets/{add-section-modal-EZt3P0Xz.js → add-section-modal-5v7pD4SQ.js} +1 -1
- package/dist/client/assets/{agent-icon-3oSe4h7A.js → agent-icon-CUA9P-jc.js} +1 -1
- package/dist/client/assets/{agents-list--g3RXbon.js → agents-list-B93b7IVZ.js} +1 -1
- package/dist/client/assets/{ai-providers-xzs6ey-5.js → ai-providers-BRXXB4cN.js} +1 -1
- package/dist/client/assets/{alert-BYCTaSqx.js → alert-Da3QWuKN.js} +1 -1
- package/dist/client/assets/{alert-dialog-DFA_nrL8.js → alert-dialog-CJ86orwZ.js} +1 -1
- package/dist/client/assets/{app-editor-C2t8oVQ9.js → app-editor-DmGtlWPK.js} +1 -1
- package/dist/client/assets/{auth-CYtv0_rL.js → auth-CT66LXeD.js} +1 -1
- package/dist/client/assets/{auth-catchall-DYzFRFT-.js → auth-catchall-DDpoyxbX.js} +1 -1
- package/dist/client/assets/auth-entry-CJ1pSE1Z.js +1 -0
- package/dist/client/assets/{auth-split-layout-hlCmxHcd.js → auth-split-layout-ZTn9O9-g.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CRs0CnsY.js → authenticate-and-persist-oauth-Dye31GIc.js} +1 -1
- package/dist/client/assets/{automation-list-row-DjYgTsuk.js → automation-list-row-DQcu9s-J.js} +1 -1
- package/dist/client/assets/automation-runs-_Se0pK9p.js +188 -0
- package/dist/client/assets/automations-CSrJ7eYr.js +1 -0
- package/dist/client/assets/{autosend-DpuAJlz4.js → autosend-C-Afy-mX.js} +1 -1
- package/dist/client/assets/{avatar-DGZ13TB0.js → avatar-b0UOFm48.js} +1 -1
- package/dist/client/assets/{badge-BmdcYP2l.js → badge-xfs1ynpW.js} +1 -1
- package/dist/client/assets/{block-document-gXgzA-JT.js → block-document-DFPlSnch.js} +1 -1
- package/dist/client/assets/{brand-context-D5LAfjNE.js → brand-context-JAXn00lw.js} +1 -1
- package/dist/client/assets/{buckets-BaIxp0Ei.js → buckets-DiBOr7SS.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Dku6xKUm.js → bulk-category-panel-DZuxbcSe.js} +1 -1
- package/dist/client/assets/{calendar-CpBuBa24.js → calendar-QS-mHt0z.js} +1 -1
- package/dist/client/assets/{capability-load-error-CKORpXPj.js → capability-load-error-ChIN_BDy.js} +1 -1
- package/dist/client/assets/{card-COkVnQnP.js → card-Co4NmtE1.js} +1 -1
- package/dist/client/assets/{category-editor-CkzYWT7p.js → category-editor-uB6Fkscc.js} +1 -1
- package/dist/client/assets/{chat-context-DVVCYt3e.js → chat-context-CyccsWfT.js} +1 -1
- package/dist/client/assets/{checkbox-BCHArcau.js → checkbox-Cp4HiBAg.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CgPoi_vX.js → cli-auth-success-QaLl6QS3.js} +1 -1
- package/dist/client/assets/{collection-detail-DonuJ1ea.js → collection-detail-BIW8kaVI.js} +1 -1
- package/dist/client/assets/{collection-display-button-DX-E5s8i.js → collection-display-button-BDBK9_HJ.js} +1 -1
- package/dist/client/assets/{collection-search-BwRybpDA.js → collection-search-CuJVF_4n.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cm_vq1an.js → collection-table-wrapper-CUk03yJh.js} +1 -1
- package/dist/client/assets/{collection-tabs-CGlZLNZG.js → collection-tabs-D2dxWVhJ.js} +1 -1
- package/dist/client/assets/{command-DYuWdmIc.js → command-CMAhy6e5.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-oXX0RjMQ.js → commerce-onboarding-D-7dNjEu.js} +1 -1
- package/dist/client/assets/{companions-core-BN8wLX0q.js → companions-core-BPrxC_5K.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-nlx1v20u.js → connect-desktop-dialog-H-XQO8xQ.js} +1 -1
- package/dist/client/assets/{connection-card-B2p6WHp7.js → connection-card-CSc4h430.js} +1 -1
- package/dist/client/assets/{connection-detail-DNd225oV.js → connection-detail-CMeFrX8_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CTe9zYBl.js → connection-form-helpers-C4JWE9qO.js} +1 -1
- package/dist/client/assets/{connections-B2k7UMz9.js → connections-C8LbGkrU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-yvpwgZWV.js → decopilot-sse-pool-ZSJ8gdM5.js} +1 -1
- package/dist/client/assets/{dialog-CvMUMR16.js → dialog-Zrgg9dlk.js} +1 -1
- package/dist/client/assets/{domain-settings-rz9NZ9fx.js → domain-settings-BECeOIgB.js} +1 -1
- package/dist/client/assets/{drawer-CQuJuOwU.js → drawer-BwuvaJKk.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C_qDMDJc.js → dropdown-menu-BCoimvOX.js} +1 -1
- package/dist/client/assets/{empty-state-DFI2pRsv.js → empty-state-CWZTKjMO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BFt9JrM6.js → extract-connection-data-DKUEpjtm.js} +1 -1
- package/dist/client/assets/file-explorer-CaYXdPte.js +2 -0
- package/dist/client/assets/{file-type-icon-DSufmAQ5.js → file-type-icon-9V1QXJ8L.js} +1 -1
- package/dist/client/assets/{files-C_2xnvjf.js → files-CViIR-kp.js} +1 -1
- package/dist/client/assets/{form-Bo-8Ln1U.js → form-DxNXQDnh.js} +1 -1
- package/dist/client/assets/{general-YPYBXJRf.js → general-nldp1532.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DfirfuAT.js → github-repo-picker-CAzdUaIn.js} +1 -1
- package/dist/client/assets/{hooks-DOkARyS2.js → hooks-BAhswesL.js} +1 -1
- package/dist/client/assets/{index-CS4EwFaR.js → index-19zxQHGF.js} +1 -1
- package/dist/client/assets/{index-CFF-0dHO.js → index-B41Bwftt.js} +1 -1
- package/dist/client/assets/{index-B5cMFR-y.js → index-B5v4NEW3.js} +4 -4
- package/dist/client/assets/{index-BPVYWTbD.js → index-BXilFfeF.js} +1 -1
- package/dist/client/assets/{index-Oe3PDrxX.js → index-BqP8n8ZB.js} +1 -1
- package/dist/client/assets/{index-YA1G0WAf.js → index-CAS46UgV.js} +1 -1
- package/dist/client/assets/{index-r5DmdNN7.js → index-CraRnyl2.js} +1 -1
- package/dist/client/assets/index-CttRGCsZ.js +8 -0
- package/dist/client/assets/index-DBNT2eWA.js +173 -0
- package/dist/client/assets/{index-Ci3NpEBH.js → index-DOtxc4qw.js} +2 -2
- package/dist/client/assets/{index-CwVaTFWi.js → index-DWemiin_.js} +1 -1
- package/dist/client/assets/{index-BALkJ2dx.js → index-DhupVI1X.js} +1 -1
- package/dist/client/assets/index-XvNgqTsm.js +1 -0
- package/dist/client/assets/{index-redirect-CIUk-Gax.js → index-redirect-B2Q2or9L.js} +1 -1
- package/dist/client/assets/{index-DwqZiRTX.js → index-zMGhLGpG.js} +28 -28
- package/dist/client/assets/{input-BsEx9qgh.js → input-Ch5gyTpF.js} +1 -1
- package/dist/client/assets/{integration-icon-BjKZxHyL.js → integration-icon-CgQElrXW.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DfAJpHso.js → invite-member-dialog-ahQAh7y0.js} +1 -1
- package/dist/client/assets/{label-itDnpE7k.js → label-wXoTBNOj.js} +1 -1
- package/dist/client/assets/{layout-BeTn9gVm.js → layout-BbxH1dqm.js} +1 -1
- package/dist/client/assets/{login-BrNTuDDo.js → login-BQPbZgK0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DTAyDU2Q.js → mcp-oauth-CCKUAqNW.js} +1 -1
- package/dist/client/assets/{members-DyvIH1z_.js → members-DC-wFfsX.js} +1 -1
- package/dist/client/assets/{monaco-editor-D_6PkZ4D.js → monaco-editor-D01rdtwj.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-qpSnjSHX.js → monitoring-stats-row-ili_SMbB.js} +1 -1
- package/dist/client/assets/multi-select-BiBr3WcW.js +1 -0
- package/dist/client/assets/{oauth-callback-Bx2hE0re.js → oauth-callback-D3CA1b_1.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CxI3pM83.js → oauth-callback-ai-provider-CmS7j-H6.js} +1 -1
- package/dist/client/assets/onboarding-oIerFpQ4.js +1 -0
- package/dist/client/assets/{org-install-B8UtLZNk.js → org-install-ng2zG1Ih.js} +1 -1
- package/dist/client/assets/{org-layout-DLChqlHX.js → org-layout-C7_jwviQ.js} +1 -1
- package/dist/client/assets/{organization-choice-BJmZA_ql.js → organization-choice-BRIDBGd-.js} +1 -1
- package/dist/client/assets/{orgs-B_8qYm3m.js → orgs-CzW9S1so.js} +1 -1
- package/dist/client/assets/{page-seo-form-ZcfqdJ3r.js → page-seo-form-DVV9UVOY.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DWS2178v.js +1 -0
- package/dist/client/assets/{popover-DktOaoCj.js → popover-stw0Mg4Y.js} +1 -1
- package/dist/client/assets/post-editor-Gkb7rBYy.js +1 -0
- package/dist/client/assets/{primitives-B3tg18Ev.js → primitives-BSi-lJi-.js} +1 -1
- package/dist/client/assets/{profile-Cm9T7Soa.js → profile-CkEYRh85.js} +1 -1
- package/dist/client/assets/project-app-view-DLfzXGeu.js +1 -0
- package/dist/client/assets/record-editor-ClWpfK5T.js +1 -0
- package/dist/client/assets/redirect-editor-C0n0g6ju.js +1 -0
- package/dist/client/assets/registry-CG26WHvr.js +2 -0
- package/dist/client/assets/{registry-layout-IoatJ7vG.js → registry-layout-DX8G3iig.js} +1 -1
- package/dist/client/assets/{reports-_wvCcLC_.js → reports-Cx3F6VW7.js} +1 -1
- package/dist/client/assets/{require-capability-DQnQYS51.js → require-capability-vo1ql1oP.js} +1 -1
- package/dist/client/assets/{required-auth-layout-PXLv9yf-.js → required-auth-layout-D_MW2r6y.js} +1 -1
- package/dist/client/assets/{reset-password-DalzN_iF.js → reset-password-BUadKv_m.js} +1 -1
- package/dist/client/assets/{roles-D6U_2d-V.js → roles-DOzhGuZ6.js} +1 -1
- package/dist/client/assets/{search-input-DwylCsr-.js → search-input-BZmNJ1mS.js} +1 -1
- package/dist/client/assets/{secrets-YNk1kWRi.js → secrets-55RFWUFR.js} +1 -1
- package/dist/client/assets/{sections-editor-DYDZI5jr.js → sections-editor-DHZBmDLB.js} +1 -1
- package/dist/client/assets/{select-CkNw5vmE.js → select-Bm_prz4e.js} +1 -1
- package/dist/client/assets/{select-model-DJy9oKx6.js → select-model-BdX9lqWe.js} +1 -1
- package/dist/client/assets/{self-tool-result-1X-Z7ZyX.js → self-tool-result-BInSjvMt.js} +1 -1
- package/dist/client/assets/{seo-editor-Cn3g21qw.js → seo-editor-ldJCsafP.js} +1 -1
- package/dist/client/assets/settings-layout-CT8w7wPQ.js +1 -0
- package/dist/client/assets/{settings-section-M1O3ge8Z.js → settings-section-DJLAq8qW.js} +1 -1
- package/dist/client/assets/{shell-controls-CVfU7qci.js → shell-controls-DzMyDjjE.js} +1 -1
- package/dist/client/assets/{shell-layout-DoAVrerK.js → shell-layout-DLAZV0gK.js} +1 -1
- package/dist/client/assets/{sidebar-BQFslZSt.js → sidebar-DS0o2bkP.js} +1 -1
- package/dist/client/assets/{skeleton-CKbIkp-i.js → skeleton-DDLwtl4q.js} +1 -1
- package/dist/client/assets/{sso-Cw5YEeWo.js → sso-BwLwvWpb.js} +1 -1
- package/dist/client/assets/{store-BtFkKlkI.js → store-Beka71Bx.js} +1 -1
- package/dist/client/assets/store-registry-DEtkey9N.js +2 -0
- package/dist/client/assets/{studio-tools-C0FSNSO6.js → studio-tools-CMGrpbwo.js} +1 -1
- package/dist/client/assets/{switch-BOKpfG2a.js → switch-Dc6TbZCo.js} +1 -1
- package/dist/client/assets/{table-B88p_wsC.js → table-B7260dBr.js} +1 -1
- package/dist/client/assets/{tabs-DDA7IPHD.js → tabs-_bz-Pk3v.js} +1 -1
- package/dist/client/assets/{textarea-D9ia054b.js → textarea-DDDctY6q.js} +1 -1
- package/dist/client/assets/{toggle-group-CisLBmfi.js → toggle-group-BuIed1_M.js} +1 -1
- package/dist/client/assets/{toolbar-lHwKVbcz.js → toolbar-D4hdPbh0.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BdhEbL8g.js → toolbar-icon-button-DL5-P742.js} +1 -1
- package/dist/client/assets/{tooltip-Cm1Uo3tj.js → tooltip-Cfe7K1Wf.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BSTSxr9f.js → use-ai-providers-DGlVmIGh.js} +1 -1
- package/dist/client/assets/{use-automations-z-3-_HVg.js → use-automations-DoGOQL-D.js} +1 -1
- package/dist/client/assets/{use-autosave-DOzBKdWx.js → use-autosave-DjDtv4ur.js} +1 -1
- package/dist/client/assets/{use-capability-H0m9y9gf.js → use-capability-CFL9CoDX.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DVjyQSN6.js → use-clock-tick-Brtfp44X.js} +1 -1
- package/dist/client/assets/{use-collections-IkbkyTPy.js → use-collections-BTyUL9Wy.js} +1 -1
- package/dist/client/assets/{use-connection-BjfpYHE7.js → use-connection-_0QRydbo.js} +1 -1
- package/dist/client/assets/{use-copy-BhCEUwuV.js → use-copy-WkBdr4yo.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-N2ZbWygG.js → use-create-virtual-mcp-DiLQlb2w.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DRL2Q2vw.js → use-debounced-autosave-DjRMW0Ri.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DYEvOfgl.js → use-debounced-value-D9mS5nMY.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CAb1KNIs.js → use-deco-credits-DdaT8kKr.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CssQ7XMz.js → use-decopilot-events-DJgHT7u7.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CJ6X4D3N.js → use-delete-connection-Ux0pzJs8.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DxlBCcMw.js → use-deployment-admin-DNnM204n.js} +1 -1
- package/dist/client/assets/{use-file-configs-DniTn_7W.js → use-file-configs-DsNhSUJA.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BzjM30U0.js → use-infinite-scroll-CubS4jP5.js} +1 -1
- package/dist/client/assets/{use-join-requests-DH0ZVoBc.js → use-join-requests-Bnm07fSv.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-B-vnUxNV.js → use-mcp-auth-status-unQW9A6B.js} +1 -1
- package/dist/client/assets/{use-mcp-client-lixd0gAV.js → use-mcp-client-BhwsvIVS.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cv_rmBI5.js → use-mcp-tools-BQDntLa2.js} +1 -1
- package/dist/client/assets/{use-members-XsfnxDj6.js → use-members-Bo1ap_nJ.js} +1 -1
- package/dist/client/assets/{use-mobile-BYgIZfXj.js → use-mobile-BWkiff8G.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BAQepcY9.js → use-navigate-to-agent-DcKHP-Dx.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DNG8tLX7.js → use-org-auth-client-Dht_Ty6R.js} +1 -1
- package/dist/client/assets/{use-org-sso-CymoIsv4.js → use-org-sso-CxIr0uRn.js} +1 -1
- package/dist/client/assets/{use-organization-roles-pkqdjnMJ.js → use-organization-roles-CiHlLWAh.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DxC5BT5e.js → use-organization-settings-D22Exu1R.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DzCHf8MS.js → use-registry-connections-7qDPmY1B.js} +1 -1
- package/dist/client/assets/{use-secrets-j9NqCesQ.js → use-secrets-B2_i6JKu.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-YKbG5N.js → use-status-sounds-Ba0cRZoN.js} +1 -1
- package/dist/client/assets/{use-view-mode-C6YHDmgm.js → use-view-mode-BorVmgeT.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DUjw2r9s.js → use-virtual-mcp-JuKjy5YI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CRypCc_i.js +1 -0
- package/dist/client/assets/{useRouterState-Cqq6ONsl.js → useRouterState-QQ_hhude.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-yV-mPSY_.js +1 -0
- package/dist/client/assets/{users-BlkgmN4u.js → users-DTnFxXyC.js} +1 -1
- package/dist/client/assets/variant-calendar-BVLJE_D6.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CKsyyD3I.js → view-mode-toggle-19-MtwbX.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/auth-entry-DA-DPJTf.js +0 -1
- package/dist/client/assets/automation-runs-Db6yr9QX.js +0 -188
- package/dist/client/assets/automations-DTXTPNDC.js +0 -1
- package/dist/client/assets/file-explorer-CSMp40V7.js +0 -2
- package/dist/client/assets/index-BBdtoWBk.js +0 -173
- package/dist/client/assets/index-C-wKLEZ2.js +0 -8
- package/dist/client/assets/index-CpDqKOXJ.js +0 -1
- package/dist/client/assets/onboarding-BX2PevDl.js +0 -1
- package/dist/client/assets/page-seo-sheet-DmyH2nwh.js +0 -1
- package/dist/client/assets/post-editor-Dy_-iCsZ.js +0 -1
- package/dist/client/assets/project-app-view-DHGMtUxb.js +0 -1
- package/dist/client/assets/record-editor-225seTN8.js +0 -1
- package/dist/client/assets/redirect-editor-BWUzCv5f.js +0 -1
- package/dist/client/assets/registry-3lo6s_j5.js +0 -2
- package/dist/client/assets/settings-layout-B2pZI8PO.js +0 -1
- package/dist/client/assets/store-registry-CRAi8gqB.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Bx9w5_18.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DDY3jNH9.js +0 -1
- package/dist/client/assets/variant-calendar-DQDzXWUH.js +0 -1
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import{c as $,C as de,n as Ze,d as We,K as Q,m as ie,aY as Sn,r as k,ap as Ns,l as ce,j as l,U as zs,i as Cs,B as Z,aL as Nn,t as ue,w as $s,L as Ps,e as Es,b as zn,u as Cn,E as Ft}from"./index-B5cMFR-y.js";import{i as Ds}from"./ChevronRight-C5hCj-BJ.js";import{s as $n}from"./Eye-CDNr9lij.js";import{n as Ve,i as yt}from"./Globe01-C0_GSmts.js";import{b as Ts,c as Fs,e as Ms,i as Is,f as Pn,a as qt,g as Ls,d as Os}from"./ZoomOut-9DZqfrOE.js";import{a as ht}from"./Palette-B0Atethk.js";import{s as Rs}from"./Plus-DkxBw62L.js";import{i as As}from"./SearchLg-BxBwkXRA.js";import{t as _s}from"./Stars01-COr-0k43.js";import{i as mt}from"./Upload01-D1HGy3QV.js";import{s as En}from"./XClose-iezakeMo.js";import{i as Kt}from"./Zap-CfXP7HDl.js";import{u as Dn}from"./use-mobile-BYgIZfXj.js";import{f as Us,a as Bs,b as Hs,c as qs,d as Ks,e as Ws,A as Gs,g as Vs}from"./alert-dialog-DFA_nrL8.js";import{D as Tn,a as Ue,d as Je,e as et,i as Fn,h as Xs,c as Qs}from"./dialog-CvMUMR16.js";import{I as Xe}from"./input-BsEx9qgh.js";import{S as ae}from"./skeleton-CKbIkp-i.js";import{F as Se,M as Wt,d as Mn}from"./file-type-icon-DSufmAQ5.js";import{T as Ys}from"./toolbar-lHwKVbcz.js";import{a as Zs}from"./Package-Dl0Lfmce.js";import{u as Js}from"./use-debounced-value-DYEvOfgl.js";import{i as vt}from"./DotsVertical-BlOzCsHI.js";import{i as In}from"./Key01-DhaQwTr9.js";import{s as wt}from"./Trash01-ZIY4ACli.js";import{D as tt,a as nt,c as st,d as be}from"./dropdown-menu-C_qDMDJc.js";import{T as el}from"./textarea-D9ia054b.js";import{t as tl}from"./ChevronDown-HIcxNu9L.js";import{n as nl}from"./ChevronUp-zg_HGLWR.js";import{i as pt}from"./X-Dmet8wMD.js";import{P as sl,b as ll,a as rl}from"./popover-DktOaoCj.js";import{b as ye,T as ve,a as we}from"./tooltip-Cm1Uo3tj.js";import{i as il}from"./Check-CcnPQW8L.js";import{a as ol}from"./Copy01-CEOVwp8a.js";import{n as Ln}from"./LinkExternal01-wH6B14C5.js";import{l as al,F as cl}from"./index-Oe3PDrxX.js";import{i as dl}from"./LayoutLeft-CDGSUvFB.js";function On(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function Gt(n,e){const t=$.c(11),{org:s}=de();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Q.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(ul),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:Sn,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],ie(o)}function ul(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Rn(n,e,t){const s=$.c(15),{org:r}=de();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Q.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==r.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fetch(pe(r.slug,n??"","stat",{path:e}));if(f.status===404)return null;if(!f.ok)throw new Error(`HTTP ${f.status}`);return(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function fl(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=Q.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],ie(i)}function hl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:r}=de();let i;t[0]!==r.id?(i=Q.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==r.slug?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function ml(n,e){const t=$.c(11),s=50,{org:r}=de();let i;t[0]!==r.id||t[1]!==n?(i=Q.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==r.slug||t[5]!==n?(a=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:Sn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Mo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=Q.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(pl)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],ie(o)}function pl(n){return{volume:n.volume,path:n.path}}async function Io(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function xl(n,e,t){return(await he(pe(n,e,"read",{path:t}))).text()}const gl=new Set(["md","mdx","markdown","txt","text"]),bl=25,yl=64*1024,vl=256*1024,wl=4;function jl(n){const e=n.lastIndexOf(".");return e===-1?!1:gl.has(n.slice(e+1).toLowerCase())}async function Lo(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await he(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<wl&&a.push({path:m.path,depth:u.depth+1});continue}jl(m.path)&&m.size<=yl&&i.length<bl?i.push(m.path):o.push(r(m.path))}}const c=await Promise.all(i.map(u=>xl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>vl){o.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function An(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=Q.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],ie(r)}function kl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>pe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function lt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,r)=>pe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function _n(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(pe(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],We(s)}function Sl(n){const e=$.c(18),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(pe(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=Q.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:Q.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:r,onMutate:i,onError:o,onSettled:a},e[13]=r,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function _t(n){const e=$.c(26),{org:t}=de(),s=Ze();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Q.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:Q.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await he(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(pe(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(pe(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const jt=k.createContext(null);jt.displayName="PanelGroupContext";const se={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Vt=10,Fe=k.useLayoutEffect,ln=Ns.useId,Nl=typeof ln=="function"?ln:()=>null;let zl=0;function Xt(n=null){const e=Nl(),t=k.useRef(n||e||null);return t.current===null&&(t.current=""+zl++),n??t.current}function Un({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=k.useContext(jt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:z,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:I,unregisterPanel:F}=b,v=Xt(o),P=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});k.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:A,constraints:_}=P.current,H={..._};P.current.id=v,P.current.idIsFromProps=o!==void 0,P.current.order=h,A.onCollapse=d,A.onExpand=f,A.onResize=u,_.collapsedSize=t,_.collapsible=s,_.defaultSize=r,_.maxSize=a,_.minSize=c,(H.collapsedSize!==_.collapsedSize||H.collapsible!==_.collapsible||H.maxSize!==_.maxSize||H.minSize!==_.minSize)&&w(P.current,H)}),Fe(()=>{const A=P.current;return M(A),()=>{F(A)}},[h,v,M,F]),k.useImperativeHandle(i,()=>({collapse:()=>{x(P.current)},expand:A=>{y(P.current,A)},getId(){return v},getSize(){return j(P.current)},isCollapsed(){return C(P.current)},isExpanded(){return!C(P.current)},resize:A=>{I(P.current,A)}}),[x,y,j,C,v,I]);const W=N(P.current,r);return k.createElement(p,{...g,children:n,className:e,id:v,style:{...W,...m},[se.groupId]:z,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+W.flexGrow).toFixed(1)})}const Bn=k.forwardRef((n,e)=>k.createElement(Un,{...n,forwardedRef:e}));Un.displayName="Panel";Bn.displayName="forwardRef(Panel)";let Ut=null,ft=-1,Ce=null;function Cl(n,e){if(e){const t=(e&Gn)!==0,s=(e&Vn)!==0,r=(e&Xn)!==0,i=(e&Qn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function $l(){Ce!==null&&(document.head.removeChild(Ce),Ut=null,Ce=null,ft=-1)}function Mt(n,e){var t,s;const r=Cl(n,e);if(Ut!==r){if(Ut=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Hn(n){return n.type==="keydown"}function qn(n){return n.type.startsWith("pointer")}function Kn(n){return n.type.startsWith("mouse")}function kt(n){if(qn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Kn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Pl(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function El(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function Dl(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:an(n),b:an(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:on(rn(t.a)),b:on(rn(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const Tl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Fl(n){var e;const t=getComputedStyle((e=Wn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Ml(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Fl(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Tl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function rn(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Ml(t))return t}return null}function on(n){return n&&Number(getComputedStyle(n).zIndex)||0}function an(n){const e=[];for(;n;)e.push(n),n=Wn(n);return e}function Wn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Gn=1,Vn=2,Xn=4,Qn=8,Il=Pl()==="coarse";let xe=[],_e=!1,Te=new Map,St=new Map;const Qe=new Set;function Ll(n,e,t,s,r){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},c=(i=Te.get(o))!==null&&i!==void 0?i:0;return Te.set(o,c+1),Qe.add(a),xt(),function(){var f;St.delete(n),Qe.delete(a);const u=(f=Te.get(o))!==null&&f!==void 0?f:1;if(Te.set(o,u-1),xt(),u===1&&Te.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Yt(),r("up",!0,null)}}}function Ol(n){const{target:e}=n,{x:t,y:s}=kt(n);_e=!0,Qt({target:e,x:t,y:s}),xt(),xe.length>0&&(gt("down",n),n.preventDefault(),Yn(e)||n.stopImmediatePropagation())}function It(n){const{x:e,y:t}=kt(n);if(_e&&n.buttons===0&&(_e=!1,gt("up",n)),!_e){const{target:s}=n;Qt({target:s,x:e,y:t})}gt("move",n),Yt(),xe.length>0&&n.preventDefault()}function Lt(n){const{target:e}=n,{x:t,y:s}=kt(n);St.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Yn(e)||n.stopImmediatePropagation()),gt("up",n),Qt({target:e,x:t,y:s}),Yt(),xt()}function Yn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Qt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Il?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&Dl(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(El(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(r)}})}function Ot(n,e){St.set(n,e)}function Yt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;St.forEach(s=>{t|=s}),n&&e?Mt("intersection",t):n?Mt("horizontal",t):e?Mt("vertical",t):$l()}let Rt=new AbortController;function xt(){Rt.abort(),Rt=new AbortController;const n={capture:!0,signal:Rt.signal};Qe.size&&(_e?(xe.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Lt,n),s.addEventListener("pointerleave",It,n),s.addEventListener("pointermove",It,n))}),window.addEventListener("pointerup",Lt,n),window.addEventListener("pointercancel",Lt,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Ol,n),s.addEventListener("pointermove",It,n))}))}function gt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,r=xe.includes(t);s(n,r,e)})}function Rl(){const[n,e]=k.useState(0);return k.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Me(n,e,t=Vt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function je(n,e,t=Vt){return Me(n,e,t)===0}function me(n,e,t){return Me(n,e,t)===0}function Al(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!me(r,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Me(t,a)<0)if(i){const c=(r+a)/2;Me(t,c)<0?t=r:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Vt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Me(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];V(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Al(r,o))return r;{const u=n<0?c:a,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];V(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:r}function _l({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const a=t[0];V(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Zn(n,e,t=document){const r=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return r??null}function Jn(n,e,t){const s=Zn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function es(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Nt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function Ul(n,e,t,s=document){var r,i,o,a;const c=Nt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Bl({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=_l({layout:s,panelsArray:r,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=r[c];V(m,`No panel data found for index "${c}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=es(t,i);V(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,g]=Ul(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];V(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:z=0,collapsible:C,minSize:w=0}=j.constraints;if(N!=null&&C){const M=He({delta:me(N,z)?w-z:z-N,initialLayout:s,panelConstraints:c.map(I=>I.constraints),pivotIndices:Jn(t,m,i),prevLayout:s,trigger:"keyboard"});s!==M&&o(M)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,o])}function cn(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function ts(n,e){const t=n==="horizontal",{x:s,y:r}=kt(e);return t?s:r}function Hl(n,e,t,s,r){const i=t==="horizontal",o=Nt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=ts(t,n),f=es(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function ql(n,e,t,s,r,i){if(Hn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Hl(n,e,t,s,i)}function Kl({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,r-=a)}for(let i=0;i<n.length;i++){const o=t[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=r/c;s++,e[i]=d,r-=d}return e}function Ie(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||je(u,d))&&!je(s,d)&&m(),h&&(u==null||!je(u,d))&&je(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Wl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Gl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function dn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ns(n){return`react-resizable-panels:${n}`}function ss(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ls(n,e){try{const t=ns(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Vl(n,e,t){var s,r;const i=(s=ls(n,t))!==null&&s!==void 0?s:{},o=ss(e);return(r=i[o])!==null&&r!==void 0?r:null}function Xl(n,e,t,s,r){var i;const o=ns(n),a=ss(e),c=(i=ls(n,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function un({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,t[i]=a)}if(!me(r,0))for(let i=0;i<e.length;i++){const o=t[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,t[i]=c,me(r,0)))break}return t}const Ql=100,qe={getItem:n=>(dn(qe),qe.getItem(n)),setItem:(n,e)=>{dn(qe),qe.setItem(n,e)}},fn={};function rs({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Xt(i),m=k.useRef(null),[p,g]=k.useState(null),[b,x]=k.useState([]),y=Rl(),j=k.useRef({}),N=k.useRef(new Map),z=k.useRef(0),C=k.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current,T=un({layout:S,panelConstraints:U.map(B=>B.constraints)});cn(R,T)||(x(T),w.current.layout=T,O&&O(T),Ie(U,T,j.current))}}),[]),Fe(()=>{C.current.autoSaveId=n,C.current.direction=s,C.current.dragState=p,C.current.id=h,C.current.onLayout=o,C.current.storage=c}),Bl({committedValuesRef:C,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(n){if(b.length===0||b.length!==S.length)return;let O=fn[n];O==null&&(O=Gl(Xl,Ql),fn[n]=O);const R=[...S],U=new Map(N.current);O(n,R,U,b,c)}},[n,b,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:O}=C.current,{layout:R,panelDataArray:U}=w.current;if(S.constraints.collapsible){const T=U.map(fe=>fe.constraints),{collapsedSize:B=0,panelSize:Y,pivotIndices:te}=De(U,S,R);if(V(Y!=null,`Panel size not found for panel "${S.id}"`),!je(Y,B)){N.current.set(S.id,Y);const E=Oe(U,S)===U.length-1?Y-B:B-Y,X=He({delta:E,initialLayout:R,panelConstraints:T,pivotIndices:te,prevLayout:R,trigger:"imperative-api"});ut(R,X)||(x(X),w.current.layout=X,O&&O(X),Ie(U,X,j.current))}}},[]),I=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current;if(S.constraints.collapsible){const B=T.map(ne=>ne.constraints),{collapsedSize:Y=0,panelSize:te=0,minSize:fe=0,pivotIndices:E}=De(T,S,U),X=O??fe;if(je(te,Y)){const ne=N.current.get(S.id),ge=ne!=null&&ne>=X?ne:X,Pe=Oe(T,S)===T.length-1?te-ge:ge-te,oe=He({delta:Pe,initialLayout:U,panelConstraints:B,pivotIndices:E,prevLayout:U,trigger:"imperative-api"});ut(U,oe)||(x(oe),w.current.layout=oe,R&&R(oe),Ie(T,oe,j.current))}}},[]),F=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{panelSize:U}=De(R,S,O);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,O)=>{const{panelDataArray:R}=w.current,U=Oe(R,S);return Wl({defaultSize:O,dragState:p,layout:b,panelData:R,panelIndex:U})},[p,b]),P=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:B}=De(R,S,O);return V(B!=null,`Panel size not found for panel "${S.id}"`),T===!0&&je(B,U)},[]),W=k.useCallback(S=>{const{layout:O,panelDataArray:R}=w.current,{collapsedSize:U=0,collapsible:T,panelSize:B}=De(R,S,O);return V(B!=null,`Panel size not found for panel "${S.id}"`),!T||Me(B,U)>0},[]),A=k.useCallback(S=>{const{panelDataArray:O}=w.current;O.push(S),O.sort((R,U)=>{const T=R.order,B=U.order;return T==null&&B==null?0:T==null?-1:B==null?1:T-B}),w.current.panelDataArrayChanged=!0,y()},[y]);Fe(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:O,storage:R}=C.current,{layout:U,panelDataArray:T}=w.current;let B=null;if(S){const te=Vl(S,T,R);te&&(N.current=new Map(Object.entries(te.expandToSizes)),B=te.layout)}B==null&&(B=Kl({panelDataArray:T}));const Y=un({layout:B,panelConstraints:T.map(te=>te.constraints)});cn(U,Y)||(x(Y),w.current.layout=Y,O&&O(Y),Ie(T,Y,j.current))}}),Fe(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let O=!1;const R=m.current;return R&&window.getComputedStyle(R,null).getPropertyValue("direction")==="rtl"&&(O=!0),function(T){T.preventDefault();const B=m.current;if(!B)return()=>null;const{direction:Y,dragState:te,id:fe,keyboardResizeBy:E,onLayout:X}=C.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Ne}=te??{},Pe=Jn(fe,S,B);let oe=ql(T,S,Y,te,E,B);const at=Y==="horizontal";at&&O&&(oe=-oe);const Dt=ge.map(Tt=>Tt.constraints),Ee=He({delta:oe,initialLayout:Ne??ne,panelConstraints:Dt,pivotIndices:Pe,prevLayout:ne,trigger:Hn(T)?"keyboard":"mouse-or-touch"}),ct=!ut(ne,Ee);(qn(T)||Kn(T))&&z.current!=oe&&(z.current=oe,!ct&&oe!==0?at?Ot(S,oe<0?Gn:Vn):Ot(S,oe<0?Xn:Qn):Ot(S,0)),ct&&(x(Ee),w.current.layout=Ee,X&&X(Ee),Ie(ge,Ee,j.current))}},[]),H=k.useCallback((S,O)=>{const{onLayout:R}=C.current,{layout:U,panelDataArray:T}=w.current,B=T.map(ne=>ne.constraints),{panelSize:Y,pivotIndices:te}=De(T,S,U);V(Y!=null,`Panel size not found for panel "${S.id}"`);const E=Oe(T,S)===T.length-1?Y-O:O-Y,X=He({delta:E,initialLayout:U,panelConstraints:B,pivotIndices:te,prevLayout:U,trigger:"imperative-api"});ut(U,X)||(x(X),w.current.layout=X,R&&R(X),Ie(T,X,j.current))},[]),G=k.useCallback((S,O)=>{const{layout:R,panelDataArray:U}=w.current,{collapsedSize:T=0,collapsible:B}=O,{collapsedSize:Y=0,collapsible:te,maxSize:fe=100,minSize:E=0}=S.constraints,{panelSize:X}=De(U,S,R);X!=null&&(B&&te&&je(X,T)?je(T,Y)||H(S,Y):X<E?H(S,E):X>fe&&H(S,fe))},[H]),q=k.useCallback((S,O)=>{const{direction:R}=C.current,{layout:U}=w.current;if(!m.current)return;const T=Nt(S,m.current);V(T,`Drag handle element not found for id "${S}"`);const B=ts(R,O);g({dragHandleId:S,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:B,initialLayout:U})},[]),ee=k.useCallback(()=>{g(null)},[]),J=k.useCallback(S=>{const{panelDataArray:O}=w.current,R=Oe(O,S);R>=0&&(O.splice(R,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,y())},[y]),L=k.useMemo(()=>({collapsePanel:M,direction:s,dragState:p,expandPanel:I,getPanelSize:F,getPanelStyle:v,groupId:h,isPanelCollapsed:P,isPanelExpanded:W,reevaluatePanelConstraints:G,registerPanel:A,registerResizeHandle:_,resizePanel:H,startDragging:q,stopDragging:ee,unregisterPanel:J,panelGroupElement:m.current}),[M,p,s,I,F,v,h,P,W,G,A,_,H,q,ee,J]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(jt.Provider,{value:L},k.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const is=k.forwardRef((n,e)=>k.createElement(rs,{...n,forwardedRef:e}));rs.displayName="PanelGroup";is.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function Yl({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){k.useEffect(()=>{if(n||t==null||s==null)return;const r=Nt(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(se.groupId);V(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Zn(a,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function os({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=k.useRef(null),y=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=k.useContext(jt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:z,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:I}=j,F=Xt(r),[v,P]=k.useState("inactive"),[W,A]=k.useState(!1),[_,H]=k.useState(null),G=k.useRef({state:v});Fe(()=>{G.current.state=v}),k.useEffect(()=>{if(t)H(null);else{const L=C(F);H(()=>L)}},[t,F,C]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;k.useEffect(()=>{if(t||_==null)return;const L=x.current;V(L,"Element ref not attached");let K=!1;return Ll(F,L,N,{coarse:q,fine:ee},(O,R,U)=>{if(!R){P("inactive");return}switch(O){case"down":{P("drag"),K=!1,V(U,'Expected event to be defined for "down" action'),w(F,U);const{onDragging:T,onPointerDown:B}=y.current;T?.(!0),B?.();break}case"move":{const{state:T}=G.current;K=!0,T!=="drag"&&P("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{P("hover"),M();const{onClick:T,onDragging:B,onPointerUp:Y}=y.current;B?.(!1),Y?.(),K||T?.();break}}})},[q,N,t,ee,C,F,_,w,M]),Yl({disabled:t,handleId:F,resizeHandler:_,panelGroupElement:I});const J={touchAction:"none",userSelect:"none"};return k.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{A(!1),i?.()},onFocus:()=>{A(!0),c?.()},ref:x,role:"separator",style:{...J,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:z,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":W?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:F,[se.resizeHandleState]:v})}os.displayName="PanelResizeHandle";function Zl(n){const e=$.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=l.jsx(is,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function hn(n){const e=$.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(Bn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function Jl(n){const e=$.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ce("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Ts,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=l.jsx(os,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function er(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function tr(n){if(er(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function nr(n){try{return decodeURIComponent(n)}catch{return n}}function sr(n){return tr(n),encodeURIComponent(n)}function lr(n){return`.deco/blocks/${sr(n)}.json`}function Oo(n){return`/${lr(n)}`}const Ro=1e4,rr=3;function Bt(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function Zt(n){return n.startsWith("/")?n.slice(1):n}function bt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function ir(n){const e=bt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ao(n,e){const t=e.replace(/^\/+|\/+$/g,"");return bt(t?`${n==="/"?"":n}/${t}`:n)}function _o(n,e){return e==="directory"?n:ir(n)}function Uo(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function or(n){const e=Zt(n);return e?e.split("/").filter(Boolean).length:0}function Bo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Ho(n,e){return or(n)>=rr&&!e.has(n)}function qo(n,e,t=[]){const s=Zt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ko(n){const e=Zt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return nr(s)}function ar(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Wo(n){const e=Bt(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Go(n,e=[]){const t={children:[]},s=i=>{const a=Bt(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of n){const a=Bt(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(bt(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function cr(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...cr(r.children,e,t+1)));return s}function Vo(n){return n.split(`
|
|
2
|
-
`).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
|
|
3
|
-
`)}al.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function dr(n){const e=$.c(11),{value:t,filename:s}=n,[r]=zs(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=ar(s),e[0]=s,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(Cs,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=e[2];let d,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},f={top:12,bottom:12},e[3]=d,e[4]=f):(d=e[3],f=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:f,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let h;return e[6]!==s||e[7]!==o||e[8]!==a||e[9]!==t?(h=l.jsx(cl,{path:s,language:o,value:t,theme:a,loading:c,options:u},s),e[6]=s,e[7]=o,e[8]=a,e[9]=t,e[10]=h):h=e[10],h}function as(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const ur=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),fr=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),mn=2*1024*1024;function hr(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return ur.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=mn?"markdown":"download":fr.has(t)&&e<=mn?"text":"download"}function cs(){const n=$.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ae,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(ae,{className:"h-3 w-full"}),l.jsx(ae,{className:"h-3 w-5/6"}),l.jsx(ae,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function ds(n){const e=$.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=l.jsx(Se,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=l.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=as(t.size),e[4]=t.size,e[5]=o):o=e[5];const a=s?` · ${s}`:"";let c;e[6]!==o||e[7]!==a?(c=l.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,a]}),e[6]=o,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=l.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ve,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=l.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[f,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let h;return e[16]!==r||e[17]!==d||e[18]!==u?(h=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,d,u]})}),e[16]=r,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function pn(n){const e=$.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=Q.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const u=await fetch(t.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=ie(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(cs,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==t?(u=l.jsx(ds,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=u):u=e[9],u}if(s){const u=`file-preview-${t.key}`;let h;return e[10]!==a||e[11]!==u?(h=l.jsx("div",{className:"h-full overflow-y-auto",children:l.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:l.jsx(Wt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==a||e[14]!==t.filename?(f=l.jsx(dr,{value:a,filename:t.filename}),e[13]=a,e[14]=t.filename,e[15]=f):f=e[15],f}function us(n){const e=$.c(15),{file:t}=n;switch(hr(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=l.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:l.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=l.jsx(pn,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=l.jsx(pn,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=l.jsx(ds,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function mr(n){const e=$.c(40),{readUrl:t,editor:s,downloadName:r,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const a=o;let c;e[2]!==s?(c=s.deckDetected&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:l.jsx(dl,{size:14})})}),l.jsx(we,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==a?(d=()=>window.open(a,"_blank","noopener"),e[4]=a,e[5]=d):d=e[5];let f;e[6]!==a?(f=l.jsx("span",{className:"truncate",children:a}),e[6]=a,e[7]=f):f=e[7];let u;e[8]!==a||e[9]!==d||e[10]!==f?(u=l.jsx("button",{type:"button",onClick:d,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:a,children:f}),e[8]=a,e[9]=d,e[10]=f,e[11]=u):u=e[11];let h;e[12]!==s.agentUpdated||e[13]!==s.reload?(h=s.agentUpdated&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[l.jsx(Nn,{size:12}),"Agent updated — reload"]})}),l.jsx(we,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=h):h=e[14];let m;e[15]!==s.saving?(m=s.saving&&l.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=m):m=e[16];let p;e[17]!==s?(p=s.deckDetected&&s.writable&&l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ce(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:l.jsx(Fs,{size:14})})}),l.jsx(we,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==r||e[21]!==s.deckDetected?(g=s.deckDetected?l.jsxs(tt,{children:[l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",children:l.jsx(Ve,{size:14})})}),l.jsxs(st,{align:"end",children:[l.jsxs(be,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[l.jsx(Ms,{size:14}),"Export as PDF"]}),l.jsx(be,{asChild:!0,children:l.jsxs("a",{href:a,download:r,children:[l.jsx(Is,{size:14}),"Download HTML"]})})]})]}):l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:l.jsx("a",{href:a,download:r,children:l.jsx(Ve,{size:14})})})}),l.jsx(we,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=r,e[21]=s.deckDetected,e[22]=g):g=e[22];let b;e[23]!==a?(b=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=b):b=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(Ln,{size:14}),e[25]=x):x=e[25];let y;e[26]!==b?(y=l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:x})}),e[26]=b,e[27]=y):y=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(we,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let N;e[29]!==y?(N=l.jsxs(ye,{children:[y,j]}),e[29]=y,e[30]=N):N=e[30];let z;return e[31]!==N||e[32]!==c||e[33]!==u||e[34]!==h||e[35]!==m||e[36]!==p||e[37]!==g||e[38]!==i?(z=l.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,h,m,p,g,N,i]}),e[31]=N,e[32]=c,e[33]=u,e[34]=h,e[35]=m,e[36]=p,e[37]=g,e[38]=i,e[39]=z):z=e[39],z}const Re=1;function pr(n){if(typeof n!="object"||n===null||n.v!==Re||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ze extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function fs(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function xr(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?fs(t).length:null}function gr(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new ze("no <deck-viewer> element in source","no-viewer");const r=fs(s),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new ze(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new ze("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=r.length)throw new ze(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ze(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new ze("replace html has no root element","bad-op");o.replaceWith(t.importNode(d,!0));break}default:throw new ze(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
|
-
`:""}${t.documentElement.outerHTML}
|
|
5
|
-
`}const xn="home",br=400,yr=800;function vr(n){const e=n.savePath!==void 0,{org:t}=de(),s=Ze(),r=_n(xn),[i,o]=k.useState(!1),[a,c]=k.useState(!1),[d,f]=k.useState(!1),[u,h]=k.useState(!1),[m,p]=k.useState(!1),[g,b]=k.useState(!1),[x,y]=k.useState(null),[j,N]=k.useState(null),[z,C]=k.useState(0),[w]=k.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),M=i||g||m,I=()=>{n.savePath!==void 0&&(s.invalidateQueries({queryKey:Q.orgFsStat(t.id,xn,n.savePath)}),s.invalidateQueries({queryKey:Q.orgFsRecent(t.id)}))},F=L=>{w.iframe?.contentWindow?.postMessage(L,"*")},v=()=>{w.source=null,h(!1),j&&y(j),C(L=>L+1),I()};n.statMarker!==j&&(N(n.statMarker),n.statMarker!==null&&(x===null?y(n.statMarker):w.selfMarkers.has(n.statMarker)||n.statMarker!==x&&(M?h(!0):(w.source=null,y(n.statMarker)))));const P=async()=>{w.saveTimer=null;const L=w.source;if(L===null){b(!1);return}p(!0);try{const K=await r.mutateAsync({path:n.savePath,body:L});w.selfMarkers.add(On(K)),I()}catch(K){console.error("[deck-editor] save failed",K),ue.error("Couldn't save deck edits — reloading the preview."),G.current.reload()}finally{p(!1),b(!1)}},W=L=>{b(!0),w.saveTimer&&clearTimeout(w.saveTimer),w.saveTimer=setTimeout(()=>{G.current.flushSave()},L)},A=(L,K,S)=>{F({v:Re,type:"ack",opId:L,ok:K,error:S})},_=async L=>{if(!e){A(L.opId,!1,"read-only preview");return}try{if(w.source===null){const S=await fetch(n.readUrl,{credentials:"include"});if(!S.ok)throw new Error(`HTTP ${S.status}`);w.source=await S.text()}const K=xr(w.source);if(K===null||K!==L.witness.childCount)throw new ze(`slide count drifted (source ${K}, iframe ${L.witness.childCount})`,"stale-index");w.source=gr(w.source,L.op),A(L.opId,!0),W(L.op.kind==="replace"?yr:br)}catch(K){console.error("[deck-editor] op failed",L.op,K),A(L.opId,!1,K instanceof Error?K.message:String(K)),ue.error("That edit couldn't be saved — reloading the preview."),G.current.reload()}},H=L=>{if(!w.iframe||L.source!==w.iframe.contentWindow)return;const K=pr(L.data);if(K){if(K.type==="ready"){c(!0),G.current.editMode?F({v:Re,type:"set-edit-mode",enabled:!0}):G.current.railOpen&&F({v:Re,type:"set-rail",open:!0});return}K.type==="op"&&(w.queue=w.queue.then(()=>G.current.handleOp(K)).catch(()=>{}))}},G=k.useRef({onMessage:H,handleOp:_,flushSave:P,reload:v,editMode:i,railOpen:d});G.current={onMessage:H,handleOp:_,flushSave:P,reload:v,editMode:i,railOpen:d};const[q]=k.useState(()=>{let L=null;return K=>{if(K){w.iframe=K;const S=O=>G.current.onMessage(O);window.addEventListener("message",S),L=()=>window.removeEventListener("message",S)}else L?.(),L=null,w.iframe=null}}),ee=L=>{f(L),F({v:Re,type:"set-rail",open:L})},J=L=>{o(L),F({v:Re,type:"set-edit-mode",enabled:L}),L&&f(!0),!L&&u&&!g&&!m&&v()};return{iframeRef:q,deckDetected:a,writable:e,displayedMarker:x===null?null:`${x}.${z}`,editMode:i,setEditMode:J,railOpen:d,setRailOpen:ee,saving:m,agentUpdated:u,reload:v,postToIframe:F}}const wr=300;function jr({readUrl:n,marker:e,title:t,savePath:s,trailing:r}){const i=vr({readUrl:n,statMarker:e,savePath:s}),[o,a]=k.useState(null);if(i.displayedMarker===null)return null;const c=n.includes("?")?"&":"?",d=`${n}${c}v=${encodeURIComponent(i.displayedMarker)}`,f=o===d;return l.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[l.jsx(mr,{readUrl:n,editor:i,downloadName:t.split("/").pop()??t,trailing:r}),l.jsx("div",{className:"relative flex-1",children:l.jsx("iframe",{ref:i.iframeRef,src:d,onLoad:()=>a(d),sandbox:"allow-scripts",className:ce("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",f?"opacity-100":"opacity-0"),style:{transitionDuration:`${wr}ms`},title:t},d)})]})}const kr=[{mode:"private",label:"Org only",Icon:$s},{mode:"public",label:"Public",Icon:yt},{mode:"password",label:"Password",Icon:In}];function hs(n){const e=$.c(38),{volume:t,path:s,kind:r,shareMode:i,effectivePublic:o,url:a}=n,c=Sl(t),{data:d}=Rn(t,s),f=d?.shareMode??i,h=(d?.effectivePublic??o)&&f==="private",m=r==="dir",p=m?"folder":"file",[g,b]=k.useState(!1),[x,y]=k.useState(""),[j,N]=k.useState(!1);let z;e[0]!==s||e[1]!==c||e[2]!==p?(z=(J,L)=>{c.mutate({path:s,mode:J,password:L},{onSuccess:()=>{b(!1),y(""),ue.success(J==="private"?`This ${p} is now org-only`:J==="public"?`Anyone with the link can now view this ${p}`:`This ${p} is now password-protected`)},onError:Sr})},e[0]=s,e[1]=c,e[2]=p,e[3]=z):z=e[3];const C=z;let w;e[4]!==C?(w=J=>{if(J==="password"){b(!0);return}b(!1),C(J)},e[4]=C,e[5]=w):w=e[5];const M=w,I=g?"password":f;let F;e[6]!==a?(F=async()=>{a&&(await navigator.clipboard.writeText(a),N(!0),ue.success("Link copied to clipboard"),setTimeout(()=>N(!1),2e3))},e[6]=a,e[7]=F):F=e[7];const v=F;let P;e[8]!==j||e[9]!==v||e[10]!==a?(P=a?l.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[l.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:a}),l.jsx(Z,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:v,"aria-label":"Copy link",children:j?l.jsx(il,{size:12,className:"text-success"}):l.jsx(ol,{size:12})})]}):null,e[8]=j,e[9]=v,e[10]=a,e[11]=P):P=e[11];const W=P;if(h){let J;e[12]===Symbol.for("react.memo_cache_sentinel")?(J=l.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:l.jsx(yt,{size:16})}),e[12]=J):J=e[12];let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=l.jsx("span",{className:"text-sm font-medium text-foreground",children:"Shared via a parent folder"}),e[13]=L):L=e[13];const K=m?"files in this folder":"this file";let S;e[14]!==K?(S=l.jsxs("div",{className:"flex items-start gap-3",children:[J,l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[L,l.jsxs("span",{className:"text-xs text-muted-foreground",children:["Anyone with the link can view"," ",K,". Manage sharing on the parent folder."]})]})]}),e[14]=K,e[15]=S):S=e[15];let O;return e[16]!==W||e[17]!==S?(O=l.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[S,W]}),e[16]=W,e[17]=S,e[18]=O):O=e[18],O}let A;e[19]!==I||e[20]!==M||e[21]!==c.isPending?(A=kr.map(J=>{const{mode:L,label:K,Icon:S}=J;return l.jsxs("button",{type:"button",disabled:c.isPending,onClick:()=>M(L),className:ce("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",I===L?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[l.jsx(S,{size:15}),K]},L)}),e[19]=I,e[20]=M,e[21]=c.isPending,e[22]=A):A=e[22];let _;e[23]!==A?(_=l.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-muted p-1",children:A}),e[23]=A,e[24]=_):_=e[24];const H=I==="private"?`Only members of your organization can open ${m?"these files":"this link"}.`:I==="public"?m?"Anyone on the internet can view files in this folder via their link.":"Anyone on the internet with the link can view this file.":`Anyone with the link AND the password can view ${m?"files in this folder":"this file"}.`;let G;e[25]!==H?(G=l.jsx("p",{className:"text-xs text-muted-foreground",children:H}),e[25]=H,e[26]=G):G=e[26];let q;e[27]!==I||e[28]!==C||e[29]!==f||e[30]!==x||e[31]!==c.isPending?(q=I==="password"&&l.jsxs("form",{className:"flex items-center gap-2",onSubmit:J=>{J.preventDefault(),x&&C("password",x)},children:[l.jsx(Xe,{type:"password",value:x,onChange:J=>y(J.target.value),placeholder:f==="password"?"New password":"Password",autoComplete:"new-password",className:"h-8 text-xs"}),l.jsx(Z,{type:"submit",size:"sm",className:"shrink-0",disabled:!x||c.isPending,children:f==="password"?"Update":"Set"})]}),e[27]=I,e[28]=C,e[29]=f,e[30]=x,e[31]=c.isPending,e[32]=q):q=e[32];let ee;return e[33]!==W||e[34]!==_||e[35]!==G||e[36]!==q?(ee=l.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[_,G,q,W]}),e[33]=W,e[34]=_,e[35]=G,e[36]=q,e[37]=ee):ee=e[37],ee}function Sr(n){return ue.error(n instanceof Error?n.message:"Failed to update sharing")}function gn(n){const e=$.c(7),{volume:t,path:s,shareMode:r,effectivePublic:i,url:o}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(sl,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Share",children:l.jsx(Pn,{size:14})})})}),l.jsx(we,{side:"bottom",children:"Share"})]}),e[0]=a):a=e[0];let c;return e[1]!==i||e[2]!==s||e[3]!==r||e[4]!==o||e[5]!==t?(c=l.jsxs(ll,{children:[a,l.jsx(rl,{align:"end",className:"w-80 p-3",children:l.jsx(hs,{volume:t,path:s,kind:"file",shareMode:r,effectivePublic:i,url:o})})]}),e[1]=i,e[2]=s,e[3]=r,e[4]=o,e[5]=t,e[6]=c):c=e[6],c}function Nr(n){const e=$.c(11),{target:t,onOpenChange:s}=n,r=!!t,i=t?.kind==="dir"?"folder":"file";let o;e[0]!==i?(o=l.jsx(Tn,{children:l.jsxs(Ue,{children:["Share ",i]})}),e[0]=i,e[1]=o):o=e[1];let a;e[2]!==t?(a=t&&l.jsx(hs,{...t}),e[2]=t,e[3]=a):a=e[3];let c;e[4]!==o||e[5]!==a?(c=l.jsxs(Je,{className:"sm:max-w-md",children:[o,a]}),e[4]=o,e[5]=a,e[6]=c):c=e[6];let d;return e[7]!==s||e[8]!==r||e[9]!==c?(d=l.jsx(et,{open:r,onOpenChange:s,children:c}),e[7]=s,e[8]=r,e[9]=c,e[10]=d):d=e[10],d}function zt(n){const e=n?n.split("/").filter(Boolean):[],t=e[0]==="public",s=t?e[1]??null:null,r=t?s?`public-${s}`:null:e[0]??null,i=(t?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:r,dirPath:i,isPublic:t,publicSet:s,readOnly:t}}function Le(n,e){return n.isPublic&&n.publicSet?`public/${n.publicSet}/${e}`:n.volume?`${n.volume}/${e}`:e}const bn="public-";function Jt(n){return n.startsWith(bn)?n.slice(bn.length):null}function zr(n,e){const t=Jt(n);return t?`public/${t}/${e}`:`${n}/${e}`}function le(n){const e=n.lastIndexOf("/");return e===-1?n:n.slice(e+1)}function Cr(n){const e=$.c(11),{org:t,previewPath:s}=n;let r;e[0]!==s?(r=s.split("/").slice(0,-1).join("/"),e[0]=s,e[1]=r):r=e[1];const i=r;let o;e[2]!==t?(o={org:t},e[2]=t,e[3]=o):o=e[3];let a;e[4]!==i||e[5]!==s?(a={path:i,preview:s},e[4]=i,e[5]=s,e[6]=a):a=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(qt,{size:14}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==a?(d=l.jsx(Z,{variant:"ghost",size:"sm",asChild:!0,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:l.jsxs(Ps,{to:"/$org/files",params:o,search:a,children:[c,"See in library"]})}),e[8]=o,e[9]=a,e[10]=d):d=e[10],d}const $r=n=>/\.html?$/i.test(n);function yn(n){const e=$.c(6),{onClose:t}=n;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(En,{size:14}),e[0]=s):s=e[0];let r;e[1]!==t?(r=l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",onClick:t,children:s})}),e[1]=t,e[2]=r):r=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(we,{side:"bottom",children:"Close"}),e[3]=i):i=e[3];let o;return e[4]!==r?(o=l.jsxs(ye,{children:[r,i]}),e[4]=r,e[5]=o):o=e[5],o}function ms(n){const e=$.c(37),{previewPath:t,onClose:s,showSeeInLibrary:r,variant:i}=n,o=r===void 0?!1:r;let a;e[0]!==t?(a=zt(t),e[0]=t,e[1]=a):a=e[1];const c=a,{volume:d,dirPath:f}=c,{data:u,isPending:h}=Rn(d,f),m=kl(d??""),p=le(f);let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g={strict:!1},e[2]=g):g=e[2];const{org:b}=Es(g),x=i==="dialog";let y;e[3]!==b||e[4]!==t||e[5]!==o?(y=o&&b?l.jsx(Cr,{org:b,previewPath:t}):null,e[3]=b,e[4]=t,e[5]=o,e[6]=y):y=e[6];const j=y,N=u&&u.kind==="file"?{key:t,filename:p,size:u.size,downloadUrl:m(u.path)}:null;if(N&&u&&$r(p)){const F=N.downloadUrl;let v;e[7]!==u?(v=On(u),e[7]=u,e[8]=v):v=e[8];const P=d??"",W=u.shareMode??"private",A=u.effectivePublic??!1,_=window.location.origin+N.downloadUrl;let H;e[9]!==f||e[10]!==_||e[11]!==P||e[12]!==W||e[13]!==A?(H=l.jsx(gn,{volume:P,path:f,shareMode:W,effectivePublic:A,url:_}),e[9]=f,e[10]=_,e[11]=P,e[12]=W,e[13]=A,e[14]=H):H=e[14];let G;e[15]!==x||e[16]!==s?(G=x?l.jsx("div",{className:"w-8 shrink-0"}):l.jsx(yn,{onClose:s}),e[15]=x,e[16]=s,e[17]=G):G=e[17];let q;return e[18]!==j||e[19]!==H||e[20]!==G?(q=l.jsxs(l.Fragment,{children:[H,j,G]}),e[18]=j,e[19]=H,e[20]=G,e[21]=q):q=e[21],l.jsxs(l.Fragment,{children:[x&&l.jsx(Ue,{className:"sr-only",children:p}),l.jsx(jr,{readUrl:F,marker:v,title:p,savePath:d==="home"?f:void 0,trailing:q},t)]})}const z=x?"h-11 py-1 pr-12 pl-2":"h-9 px-2";let C;e[22]!==z?(C=ce("flex shrink-0 items-center gap-1 border-b border-border/60",z),e[22]=z,e[23]=C):C=e[23];let w;e[24]!==u?.effectivePublic||e[25]!==u?.shareMode||e[26]!==N||e[27]!==f||e[28]!==d?(w=N&&l.jsxs(l.Fragment,{children:[l.jsx(gn,{volume:d??"",path:f,shareMode:u?.shareMode??"private",effectivePublic:u?.effectivePublic??!1,url:window.location.origin+N.downloadUrl}),l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",asChild:!0,children:l.jsx("a",{href:N.downloadUrl,download:N.filename,children:l.jsx(Ve,{size:14})})})}),l.jsx(we,{side:"bottom",children:"Download"})]}),l.jsxs(ye,{children:[l.jsx(ve,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",onClick:()=>window.open(N.downloadUrl,"_blank","noopener"),children:l.jsx(Ln,{size:14})})}),l.jsx(we,{side:"bottom",children:"Open in new tab"})]})]}),e[24]=u?.effectivePublic,e[25]=u?.shareMode,e[26]=N,e[27]=f,e[28]=d,e[29]=w):w=e[29];let M;e[30]!==x||e[31]!==s?(M=!x&&l.jsx(yn,{onClose:s}),e[30]=x,e[31]=s,e[32]=M):M=e[32];let I;return e[33]!==N||e[34]!==p||e[35]!==h?(I=l.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:N?l.jsx(us,{file:N}):h?l.jsx(cs,{}):l.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[l.jsx(Se,{filename:p,className:"h-7.5 w-6"}),l.jsx("span",{className:"text-sm text-muted-foreground",children:"This file is no longer available."})]})}),e[33]=N,e[34]=p,e[35]=h,e[36]=I):I=e[36],l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:C,children:[l.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[l.jsx(Se,{filename:p,className:"h-4.5 w-3.5 shrink-0"}),x?l.jsx(Ue,{className:"truncate text-xs font-medium text-foreground",children:p}):l.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:p}),N&&l.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:as(N.size)})]}),j,w,M]}),I]})}function Pr(n){const e=$.c(4),{previewPath:t,onClose:s,showSeeInLibrary:r}=n,i=r===void 0?!1:r;let o;return e[0]!==s||e[1]!==t||e[2]!==i?(o=l.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:l.jsx(ms,{previewPath:t,onClose:s,showSeeInLibrary:i,variant:"panel"})}),e[0]=s,e[1]=t,e[2]=i,e[3]=o):o=e[3],o}const Er=new Set(["output","upload","public","home"]),Dr=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function ps(n){return Er.has(n)||!Dr.test(n)?"home":n}function Tr(n){const e=$.c(10),{icon:t,className:s}=n,r=s===void 0?"size-4":s;if(t.kind==="component"){const{Component:o}=t;let a;return e[0]!==o||e[1]!==r?(a=l.jsx(o,{className:r}),e[0]=o,e[1]=r,e[2]=a):a=e[2],a}if(t.kind==="url"){const o=t.src;let a;e[3]!==r?(a=ce(r,"rounded-sm object-cover"),e[3]=r,e[4]=a):a=e[4];let c;return e[5]!==t.src||e[6]!==a?(c=l.jsx("img",{src:o,alt:"",className:a}),e[5]=t.src,e[6]=a,e[7]=c):c=e[7],c}let i;return e[8]!==r?(i=l.jsx(Zs,{className:r}),e[8]=r,e[9]=i):i=e[9],i}function Fr(n){const e=$.c(17),{title:t,icon:s,active:r,onClick:i,disabled:o,locked:a,className:c}=n,d=o===void 0?!1:o,f=a===void 0?!1:a,u=f||void 0,h=f&&"pointer-events-none",m=r?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let p;e[0]!==c||e[1]!==h||e[2]!==m?(p=ce("shrink-0 flex items-center gap-1.5 h-8 rounded-md px-2","[transition:background-color_180ms_ease,color_180ms_ease]","disabled:opacity-40 disabled:pointer-events-none",h,m,c),e[0]=c,e[1]=h,e[2]=m,e[3]=p):p=e[3];let g;e[4]!==s?(g=l.jsx("span",{className:"flex size-5 items-center justify-center shrink-0",children:l.jsx(Tr,{icon:s})}),e[4]=s,e[5]=g):g=e[5];let b;e[6]!==t?(b=l.jsx("span",{className:"max-md:hidden whitespace-nowrap text-sm font-medium leading-none",children:t}),e[6]=t,e[7]=b):b=e[7];let x;return e[8]!==r||e[9]!==d||e[10]!==i||e[11]!==u||e[12]!==p||e[13]!==g||e[14]!==b||e[15]!==t?(x=l.jsxs("button",{type:"button",onClick:i,disabled:d,"aria-pressed":r,"aria-disabled":u,"aria-label":t,className:p,children:[g,b]}),e[8]=r,e[9]=d,e[10]=i,e[11]=u,e[12]=p,e[13]=g,e[14]=b,e[15]=t,e[16]=x):x=e[16],x}function Mr(n){const e=$.c(33);let t,s,r;e[0]!==n?({glyph:t,readOnly:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);const i=k.useId(),o=`${i}-back`,a=`${i}-front`,c=`url(#${o})`;let d;e[4]!==c?(d=l.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:c}),e[4]=c,e[5]=d):d=e[5];const f=`url(#${a})`;let u;e[6]!==f?(u=l.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:f}),e[6]=f,e[7]=u):u=e[7];let h,m,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),m=l.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:"#84CDFB"}),p=l.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:"#84CDFB"}),e[8]=h,e[9]=m,e[10]=p):(h=e[8],m=e[9],p=e[10]);let g;e[11]!==t?(g=t&&l.jsx(t,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:"#014AC9",opacity:.55}}),e[11]=t,e[12]=g):g=e[12];let b;e[13]!==r?(b=r&&l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),l.jsx($n,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[13]=r,e[14]=b):b=e[14];let x,y;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx("stop",{offset:"0.3",stopColor:"#4D87DF"}),y=l.jsx("stop",{offset:"1",stopColor:"#296FE8"}),e[15]=x,e[16]=y):(x=e[15],y=e[16]);let j;e[17]!==o?(j=l.jsxs("linearGradient",{id:o,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[x,y]}),e[17]=o,e[18]=j):j=e[18];let N,z;e[19]===Symbol.for("react.memo_cache_sentinel")?(N=l.jsx("stop",{stopColor:"#72B6FA"}),z=l.jsx("stop",{offset:"1",stopColor:"#5BB1EF"}),e[19]=N,e[20]=z):(N=e[19],z=e[20]);let C;e[21]!==a?(C=l.jsxs("radialGradient",{id:a,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[N,z]}),e[21]=a,e[22]=C):C=e[22];let w;e[23]!==j||e[24]!==C?(w=l.jsxs("defs",{children:[j,C]}),e[23]=j,e[24]=C,e[25]=w):w=e[25];let M;return e[26]!==s||e[27]!==w||e[28]!==d||e[29]!==u||e[30]!==g||e[31]!==b?(M=l.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...s,children:[d,u,h,m,p,g,b,w]}),e[26]=s,e[27]=w,e[28]=d,e[29]=u,e[30]=g,e[31]=b,e[32]=M):M=e[32],M}function Ir(n,e,t){return e?"color":t?"font":/^--brand-(text|fw|leading|tracking)/i.test(n)?"type":/^--brand-space/i.test(n)?"space":/^--brand-radius/i.test(n)?"radius":/^--brand-shadow/i.test(n)?"shadow":/^--brand-(duration|delay|ease)/i.test(n)?"motion":"other"}const Lr=/^(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\(/i,Or=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Rr=["svg","png","jpg","jpeg","webp","avif","gif"];function Ar(n){return n.split(".").pop()?.toLowerCase()??""}function _r(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ur(n){const e=n.trim();return Or.test(e)||Lr.test(e)}function Br(n){const e=n.trim(),t=e.match(/^#([0-9a-f]{3})$/i);return t?.[1]?`#${[...t[1]].map(s=>s+s).join("")}`:e}function xs(n){const e=[],t=new Map,s=/(--brand-[\w-]+)\s*:\s*([^;]+);/g;let r;for(;(r=s.exec(n))!==null;){const i=r[1],o=r[2].trim();t.has(i)||e.push(i),t.set(i,o)}return e.map(i=>{const o=t.get(i),a=Ur(o),c=/^--brand-font/i.test(i);return{name:i,value:o,isColor:a,isFont:c,kind:Ir(i,a,c)}})}const vn=["primary","secondary","accent","neutral","success","warning","error","info","bg","fg","border","ring"];function Hr(n){return n.match(/^--brand-([a-z]+)/i)?.[1]?.toLowerCase()??n}function qr(n){const e=[],t=new Map;for(const r of n){if(r.kind!=="color")continue;const i=Hr(r.name);t.has(i)||(e.push(i),t.set(i,[])),t.get(i).push(r)}return e.map(r=>{const i=t.get(r);return{family:r,tokens:i,isRamp:i.filter(o=>/-\d+$/.test(o.name)).length>=5}}).sort((r,i)=>{const o=vn.indexOf(r.family),a=vn.indexOf(i.family);return o===-1&&a===-1?0:o===-1?1:a===-1?-1:o-a})}function Kr(n,e,t){const s=new RegExp(`(${_r(e)}\\s*:\\s*)[^;]+(;)`);if(s.test(n))return n.replace(s,(o,a,c)=>`${a}${t}${c}`);const r=n.search(/:root\s*\{/);if(r!==-1){const o=n.indexOf("{",r)+1;return`${n.slice(0,o)}
|
|
6
|
-
${e}: ${t};${n.slice(o)}`}const i=n.length>0&&!n.endsWith(`
|
|
7
|
-
`)?`
|
|
8
|
-
`:"";return`${n}${i}:root {
|
|
9
|
-
${e}: ${t};
|
|
10
|
-
}
|
|
11
|
-
`}function Wr(n){const e=n.filter(s=>s.kind==="file"),t=e.find(s=>/(^|\/)logo\.(svg|png|jpe?g|webp|avif|gif)$/i.test(s.path));return t?t.path:e.find(s=>Rr.includes(Ar(s.path)))?.path??null}function Gr(n){const e={};for(const t of n.split(`
|
|
12
|
-
`)){const s=t.match(/^([A-Za-z][\w-]*):\s*(.*)$/);s?.[1]&&s[2]!==void 0&&(e[s[1].toLowerCase()]=s[2].trim())}return e}function wn(n){for(const e of n.split(/\n\s*\n/)){const t=e.trim();if(!(!t||t.startsWith("#")))return t.replace(/\n/g," ")}return null}function gs(n){const e=n.match(/^---\n([\s\S]*?)\n---\n?/);if(!e||e[1]===void 0)return{name:null,description:wn(n),body:n};const t=Gr(e[1]),s=n.slice(e[0].length);return{name:t.name||null,description:t.description||wn(s),body:s}}const Vr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Xr=new Set(["csv","tsv"]),Qr=new Set(["mp4","webm","mov","m4v"]),Yr=new Set(["txt","md","markdown","json","log","yaml","yml","xml","html","htm"]),Zr=256*1024;function rt(n){const e=new Date(n);if(Number.isNaN(e.getTime()))return"";const t=Date.now()-e.getTime(),s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const r=Math.floor(s/60);if(r<24)return`${r}h ago`;const i=Math.floor(r/24);return i<30?`${i}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Jr(n){return n.split(".").pop()?.toLowerCase()??""}async function Ct(n,e){const t=await fetch(n,{credentials:"include",...e});if(!t.ok)throw new Error(`fetch failed: ${t.status}`);return t.text()}function en(n){const e=$.c(3),{onShare:t}=n;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(Pn,{size:14}),e[0]=s):s=e[0];let r;return e[1]!==t?(r=l.jsxs(be,{onClick:t,children:[s,"Share"]}),e[1]=t,e[2]=r):r=e[2],r}function ei(n){const e=$.c(9),{state:t}=n,s=t==="password"?"Password-protected — link + password to view":t==="inherited"?"Shared via a parent folder":"Public — anyone with the link can view",r=t==="password"?In:yt,i=t==="inherited"?"text-muted-foreground/60":"text-primary";let o;e[0]!==i?(o=ce(i),e[0]=i,e[1]=o):o=e[1];let a;e[2]!==r||e[3]!==s||e[4]!==o?(a=l.jsx(r,{size:12,className:o,"aria-label":s}),e[2]=r,e[3]=s,e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==s||e[7]!==a?(c=l.jsx("span",{title:s,className:"mt-0.5 flex shrink-0 items-center",children:a}),e[6]=s,e[7]=a,e[8]=c):c=e[8],c}function bs(n){const e=$.c(18),{downloadUrl:t,filename:s,onShare:r,onDelete:i}=n,o=`Actions for ${s}`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(vt,{size:14}),e[0]=a):a=e[0];let c;e[1]!==o?(c=l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:ni,"aria-label":o,children:a})}),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==r?(d=r&&l.jsx(en,{onShare:r}),e[3]=r,e[4]=d):d=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ve,{size:14}),e[5]=f):f=e[5];let u;e[6]!==t||e[7]!==s?(u=l.jsx(be,{asChild:!0,children:l.jsxs("a",{href:t,download:s,children:[f,"Download"]})}),e[6]=t,e[7]=s,e[8]=u):u=e[8];let h;e[9]!==i?(h=i&&l.jsxs(be,{variant:"destructive",onClick:i,children:[l.jsx(wt,{size:14}),"Delete"]}),e[9]=i,e[10]=h):h=e[10];let m;e[11]!==d||e[12]!==u||e[13]!==h?(m=l.jsxs(st,{align:"end",onClick:ti,children:[d,u,h]}),e[11]=d,e[12]=u,e[13]=h,e[14]=m):m=e[14];let p;return e[15]!==c||e[16]!==m?(p=l.jsxs(tt,{children:[c,m]}),e[15]=c,e[16]=m,e[17]=p):p=e[17],p}function ti(n){return n.stopPropagation()}function ni(n){return n.stopPropagation()}function it(n){const e=$.c(9),{onOpen:t,children:s,className:r}=n;let i;e[0]!==t?(i=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),t())},e[0]=t,e[1]=i):i=e[1];let o;e[2]!==r?(o=ce("group/card flex cursor-pointer flex-col gap-3 rounded-2xl border border-border bg-background p-4 text-left transition-colors hover:border-border hover:bg-muted/40",r),e[2]=r,e[3]=o):o=e[3];let a;return e[4]!==s||e[5]!==t||e[6]!==i||e[7]!==o?(a=l.jsx("div",{role:"button",tabIndex:0,onClick:t,onKeyDown:i,className:o,children:s}),e[4]=s,e[5]=t,e[6]=i,e[7]=o,e[8]=a):a=e[8],a}function ot(n){const e=$.c(19),{icon:t,name:s,meta:r,subtitle:i,publicState:o,actions:a}=n;let c;e[0]!==s?(c=l.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground",title:s,children:s}),e[0]=s,e[1]=c):c=e[1];let d;e[2]!==o?(d=o&&l.jsx(ei,{state:o}),e[2]=o,e[3]=d):d=e[3];let f;e[4]!==r?(f=r&&l.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:r}),e[4]=r,e[5]=f):f=e[5];let u;e[6]!==c||e[7]!==d||e[8]!==f?(u=l.jsxs("div",{className:"flex items-start gap-3",children:[c,d,f]}),e[6]=c,e[7]=d,e[8]=f,e[9]=u):u=e[9];let h;e[10]!==i?(h=i&&l.jsx("span",{className:"truncate text-xs text-muted-foreground",title:i,children:i}),e[10]=i,e[11]=h):h=e[11];let m;e[12]!==u||e[13]!==h?(m=l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:[u,h]}),e[12]=u,e[13]=h,e[14]=m):m=e[14];let p;return e[15]!==a||e[16]!==t||e[17]!==m?(p=l.jsxs("div",{className:"flex w-full items-center gap-2.5",children:[t,m,a]}),e[15]=a,e[16]=t,e[17]=m,e[18]=p):p=e[18],p}function $t(n){const e=$.c(17),{name:t,meta:s,subtitle:r,glyph:i,readOnly:o,publicState:a,onOpen:c,onShare:d,onDelete:f}=n;let u;e[0]!==i||e[1]!==o?(u=l.jsx(Mr,{glyph:i,readOnly:o,className:"size-8 shrink-0"}),e[0]=i,e[1]=o,e[2]=u):u=e[2];let h;e[3]!==t||e[4]!==f||e[5]!==d?(h=d||f?l.jsxs(tt,{children:[l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:li,"aria-label":`Actions for ${t}`,children:l.jsx(vt,{size:14})})}),l.jsxs(st,{align:"end",onClick:si,children:[d&&l.jsx(en,{onShare:d}),f&&l.jsxs(be,{variant:"destructive",onClick:f,children:[l.jsx(wt,{size:14}),"Delete"]})]})]}):void 0,e[3]=t,e[4]=f,e[5]=d,e[6]=h):h=e[6];let m;e[7]!==s||e[8]!==t||e[9]!==a||e[10]!==r||e[11]!==u||e[12]!==h?(m=l.jsx(ot,{icon:u,name:t,meta:s,subtitle:r,publicState:a,actions:h}),e[7]=s,e[8]=t,e[9]=a,e[10]=r,e[11]=u,e[12]=h,e[13]=m):m=e[13];let p;return e[14]!==c||e[15]!==m?(p=l.jsx(it,{onOpen:c,children:m}),e[14]=c,e[15]=m,e[16]=p):p=e[16],p}function si(n){return n.stopPropagation()}function li(n){return n.stopPropagation()}function ys(n){const e=$.c(22),{filename:t,updatedAt:s,downloadUrl:r,subtitle:i,publicState:o,onOpen:a,onShare:c,onDelete:d}=n;let f;e[0]!==t?(f=l.jsx(Se,{filename:t,className:"h-8 w-6.5 shrink-0"}),e[0]=t,e[1]=f):f=e[1];let u;e[2]!==s?(u=rt(s),e[2]=s,e[3]=u):u=e[3];let h;e[4]!==t||e[5]!==i?(h=i??Mn(t),e[4]=t,e[5]=i,e[6]=h):h=e[6];let m;e[7]!==r||e[8]!==t||e[9]!==d||e[10]!==c?(m=l.jsx(bs,{downloadUrl:r,filename:t,onShare:c,onDelete:d}),e[7]=r,e[8]=t,e[9]=d,e[10]=c,e[11]=m):m=e[11];let p;e[12]!==t||e[13]!==o||e[14]!==f||e[15]!==u||e[16]!==h||e[17]!==m?(p=l.jsx(ot,{icon:f,name:t,meta:u,subtitle:h,publicState:o,actions:m}),e[12]=t,e[13]=o,e[14]=f,e[15]=u,e[16]=h,e[17]=m,e[18]=p):p=e[18];let g;return e[19]!==a||e[20]!==p?(g=l.jsx(it,{onOpen:a,children:p}),e[19]=a,e[20]=p,e[21]=g):g=e[21],g}function ri(n){const e=$.c(40),{dirName:t,updatedAt:s,skillMdUrl:r,publicState:i,onOpen:o,onBrowse:a,onShare:c,onDelete:d}=n;let f;e[0]!==r?(f=Q.fileText(r),e[0]=r,e[1]=f):f=e[1];let u;e[2]!==r?(u=()=>Ct(r),e[2]=r,e[3]=u):u=e[3];let h;e[4]!==f||e[5]!==u?(h={queryKey:f,queryFn:u,staleTime:6e4,retry:!1},e[4]=f,e[5]=u,e[6]=h):h=e[6];const{data:m}=ie(h);let p;e[7]!==m?(p=m?gs(m):null,e[7]=m,e[8]=p):p=e[8];const g=p;let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=l.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:l.jsx(Kt,{size:16})}),e[9]=b):b=e[9];const x=g?.name??t;let y;e[10]!==s?(y=rt(s),e[10]=s,e[11]=y):y=e[11];const j=`Actions for ${t}`;let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=l.jsx(vt,{size:14}),e[12]=N):N=e[12];let z;e[13]!==j?(z=l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:oi,"aria-label":j,children:N})}),e[13]=j,e[14]=z):z=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=l.jsx(qt,{size:14}),e[15]=C):C=e[15];let w;e[16]!==a?(w=l.jsxs(be,{onClick:a,children:[C,"Browse files"]}),e[16]=a,e[17]=w):w=e[17];let M;e[18]!==c?(M=c&&l.jsx(en,{onShare:c}),e[18]=c,e[19]=M):M=e[19];let I;e[20]!==d?(I=d&&l.jsxs(be,{variant:"destructive",onClick:d,children:[l.jsx(wt,{size:14}),"Delete"]}),e[20]=d,e[21]=I):I=e[21];let F;e[22]!==w||e[23]!==M||e[24]!==I?(F=l.jsxs(st,{align:"end",onClick:ii,children:[w,M,I]}),e[22]=w,e[23]=M,e[24]=I,e[25]=F):F=e[25];let v;e[26]!==z||e[27]!==F?(v=l.jsxs(tt,{children:[z,F]}),e[26]=z,e[27]=F,e[28]=v):v=e[28];let P;e[29]!==i||e[30]!==v||e[31]!==x||e[32]!==y?(P=l.jsx(ot,{icon:b,name:x,meta:y,subtitle:"Skill",publicState:i,actions:v}),e[29]=i,e[30]=v,e[31]=x,e[32]=y,e[33]=P):P=e[33];const W=g?.description??"";let A;e[34]!==W?(A=l.jsx("p",{className:"line-clamp-2 min-h-8 text-xs leading-4 text-muted-foreground",children:W}),e[34]=W,e[35]=A):A=e[35];let _;return e[36]!==o||e[37]!==P||e[38]!==A?(_=l.jsxs(it,{onOpen:o,children:[P,A]}),e[36]=o,e[37]=P,e[38]=A,e[39]=_):_=e[39],_}function ii(n){return n.stopPropagation()}function oi(n){return n.stopPropagation()}function ai(n){const e=$.c(47),{dirName:t,updatedAt:s,tokensUrl:r,onOpen:i,onBrowse:o,onDelete:a}=n;let c;e[0]!==r?(c=Q.fileText(r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==r?(d=()=>Ct(r),e[2]=r,e[3]=d):d=e[3];let f;e[4]!==c||e[5]!==d?(f={queryKey:c,queryFn:d,staleTime:6e4,retry:!1},e[4]=c,e[5]=d,e[6]=f):f=e[6];const{data:u}=ie(f);let h,m,p,g,b;if(e[7]!==u||e[8]!==t||e[9]!==o||e[10]!==a||e[11]!==i||e[12]!==s){const j=u?xs(u).filter(fi).slice(0,6):[];h=it,g=i;let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=l.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:l.jsx(ht,{size:16})}),e[18]=N):N=e[18];let z;e[19]!==s?(z=rt(s),e[19]=s,e[20]=z):z=e[20];const C=`Actions for ${t}`;let w;e[21]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx(vt,{size:14}),e[21]=w):w=e[21];let M;e[22]!==C?(M=l.jsx(nt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-6 shrink-0 opacity-0 transition-opacity group-hover/card:opacity-100 data-[state=open]:opacity-100",onClick:ui,"aria-label":C,children:w})}),e[22]=C,e[23]=M):M=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(qt,{size:14}),e[24]=I):I=e[24];let F;e[25]!==o?(F=l.jsxs(be,{onClick:o,children:[I,"Browse files"]}),e[25]=o,e[26]=F):F=e[26];let v;e[27]!==a?(v=a&&l.jsxs(be,{variant:"destructive",onClick:a,children:[l.jsx(wt,{size:14}),"Delete"]}),e[27]=a,e[28]=v):v=e[28];let P;e[29]!==F||e[30]!==v?(P=l.jsxs(st,{align:"end",onClick:di,children:[F,v]}),e[29]=F,e[30]=v,e[31]=P):P=e[31];let W;e[32]!==M||e[33]!==P?(W=l.jsxs(tt,{children:[M,P]}),e[32]=M,e[33]=P,e[34]=W):W=e[34],e[35]!==t||e[36]!==W||e[37]!==z?(b=l.jsx(ot,{icon:N,name:t,meta:z,subtitle:"Brand",actions:W}),e[35]=t,e[36]=W,e[37]=z,e[38]=b):b=e[38],m="flex min-h-5 items-center gap-1.5",p=j.map(ci),e[7]=u,e[8]=t,e[9]=o,e[10]=a,e[11]=i,e[12]=s,e[13]=h,e[14]=m,e[15]=p,e[16]=g,e[17]=b}else h=e[13],m=e[14],p=e[15],g=e[16],b=e[17];let x;e[39]!==m||e[40]!==p?(x=l.jsx("div",{className:m,children:p}),e[39]=m,e[40]=p,e[41]=x):x=e[41];let y;return e[42]!==h||e[43]!==g||e[44]!==b||e[45]!==x?(y=l.jsxs(h,{onOpen:g,children:[b,x]}),e[42]=h,e[43]=g,e[44]=b,e[45]=x,e[46]=y):y=e[46],y}function ci(n){return l.jsx("span",{className:"size-5 rounded-full border border-border/60",style:{backgroundColor:n.value},title:`${n.name}: ${n.value}`},n.name)}function di(n){return n.stopPropagation()}function ui(n){return n.stopPropagation()}function fi(n){return n.isColor}function At(n){const e=$.c(4),{children:t}=n,[s,r]=k.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>c=>{if(!c)return;const d=new IntersectionObserver(f=>{const[u]=f;u?.isIntersecting&&(r(!0),d.disconnect())},{rootMargin:"200px"});d.observe(c)},e[0]=i):i=e[0];const[o]=k.useState(i);if(s){let c;return e[1]!==t?(c=l.jsx(l.Fragment,{children:t}),e[1]=t,e[2]=c):c=e[2],c}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("div",{ref:o,className:"h-full w-full"}),e[3]=a):a=e[3],a}function hi(n){const e=$.c(11),{url:t}=n;let s;e[0]!==t?(s=Q.fileText(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=()=>Ct(t),e[2]=t,e[3]=r):r=e[3];let i;e[4]!==s||e[5]!==r?(i={queryKey:s,queryFn:r,staleTime:6e4,retry:!1},e[4]=s,e[5]=r,e[6]=i):i=e[6];const{data:o}=ie(i);if(!o)return null;let a;e[7]!==o?(a=o.slice(0,2e3),e[7]=o,e[8]=a):a=e[8];let c;return e[9]!==a?(c=l.jsx("pre",{className:"pointer-events-none h-full w-full overflow-hidden bg-background p-3 font-mono text-[9px] leading-[1.5] text-muted-foreground select-none",children:a}),e[9]=a,e[10]=c):c=e[10],c}function mi(n){const e=$.c(23),{url:t,ext:s}=n;let r;e[0]!==t?(r=Q.csvThumb(t),e[0]=t,e[1]=r):r=e[1];let i;e[2]!==t?(i=()=>Ct(t,{headers:{Range:"bytes=0-8191"}}),e[2]=t,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:a}=ie(o);if(!a)return null;const c=s==="tsv"?" ":",";let d,f,u,h;if(e[7]!==a||e[8]!==c){h=Symbol.for("react.early_return_sentinel");e:{let b;e[13]!==c?(b=y=>y.split(c).slice(0,6).map(gi),e[13]=c,e[14]=b):b=e[14];const x=a.split(`
|
|
13
|
-
`).filter(Boolean).slice(0,7).map(b);if(x.length===0){h=null;break e}u="pointer-events-none h-full w-full overflow-hidden bg-background p-2 select-none",f="w-full border-collapse",d=x.map(pi)}e[7]=a,e[8]=c,e[9]=d,e[10]=f,e[11]=u,e[12]=h}else d=e[9],f=e[10],u=e[11],h=e[12];if(h!==Symbol.for("react.early_return_sentinel"))return h;let m;e[15]!==d?(m=l.jsx("tbody",{children:d}),e[15]=d,e[16]=m):m=e[16];let p;e[17]!==f||e[18]!==m?(p=l.jsx("table",{className:f,children:m}),e[17]=f,e[18]=m,e[19]=p):p=e[19];let g;return e[20]!==u||e[21]!==p?(g=l.jsx("div",{className:u,children:p}),e[20]=u,e[21]=p,e[22]=g):g=e[22],g}function pi(n,e){return l.jsx("tr",{className:ce(e===0&&"bg-muted/50 font-medium"),children:n.map(xi)},e)}function xi(n,e){return l.jsx("td",{className:"max-w-[56px] overflow-hidden border border-border/30 px-1 py-px text-[7px] leading-[1.4] text-muted-foreground",style:{maxWidth:56},children:l.jsx("span",{className:"block truncate",children:n})},e)}function gi(n){return n.trim().replace(/^"|"$/g,"")}function bi(n){const e=$.c(14),{filename:t,size:s,downloadUrl:r}=n;let i;if(e[0]!==r||e[1]!==t||e[2]!==s){const o=Jr(t);let a;if(Vr.has(o)){let c;e[4]!==r?(c=l.jsx("img",{src:r,alt:"",loading:"lazy",className:"h-full w-full object-cover"}),e[4]=r,e[5]=c):c=e[5],a=c}else if(Qr.has(o)){const c=`${r}#t=0.1`;let d;e[6]!==c?(d=l.jsx(At,{children:l.jsx("video",{src:c,preload:"metadata",muted:!0,playsInline:!0,className:"pointer-events-none h-full w-full object-cover"})}),e[6]=c,e[7]=d):d=e[7],a=d}else if(o==="pdf"){let c;e[8]!==t?(c=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(Se,{filename:t,className:"h-14 w-11 opacity-60"})}),e[8]=t,e[9]=c):c=e[9],a=c}else if(Xr.has(o))a=l.jsx(At,{children:l.jsx(mi,{url:r,ext:o})});else if(Yr.has(o)&&s<=Zr){let c;e[10]!==r?(c=l.jsx(At,{children:l.jsx(hi,{url:r})}),e[10]=r,e[11]=c):c=e[11],a=c}else{let c;e[12]!==t?(c=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(Se,{filename:t,className:"h-14 w-11 opacity-60"})}),e[12]=t,e[13]=c):c=e[13],a=c}i=l.jsx("div",{className:"aspect-[400/265] w-full overflow-hidden rounded-lg border border-border/60 bg-muted/30",children:a}),e[0]=r,e[1]=t,e[2]=s,e[3]=i}else i=e[3];return i}function yi(n){const e=$.c(27),t=n.onOpen;let s;e[0]!==n.filename?(s=l.jsx(Se,{filename:n.filename,className:"h-8 w-6.5 shrink-0"}),e[0]=n.filename,e[1]=s):s=e[1];const r=n.filename;let i;e[2]!==n.updatedAt?(i=rt(n.updatedAt),e[2]=n.updatedAt,e[3]=i):i=e[3];let o;e[4]!==n.filename||e[5]!==n.subtitle?(o=n.subtitle??Mn(n.filename),e[4]=n.filename,e[5]=n.subtitle,e[6]=o):o=e[6];let a;e[7]!==n.downloadUrl||e[8]!==n.filename||e[9]!==n.onDelete||e[10]!==n.onShare?(a=l.jsx(bs,{downloadUrl:n.downloadUrl,filename:n.filename,onShare:n.onShare,onDelete:n.onDelete}),e[7]=n.downloadUrl,e[8]=n.filename,e[9]=n.onDelete,e[10]=n.onShare,e[11]=a):a=e[11];let c;e[12]!==n.filename||e[13]!==n.publicState||e[14]!==s||e[15]!==i||e[16]!==o||e[17]!==a?(c=l.jsx(ot,{icon:s,name:r,meta:i,subtitle:o,publicState:n.publicState,actions:a}),e[12]=n.filename,e[13]=n.publicState,e[14]=s,e[15]=i,e[16]=o,e[17]=a,e[18]=c):c=e[18];let d;e[19]!==n.downloadUrl||e[20]!==n.filename||e[21]!==n.size?(d=l.jsx(bi,{filename:n.filename,size:n.size,downloadUrl:n.downloadUrl}),e[19]=n.downloadUrl,e[20]=n.filename,e[21]=n.size,e[22]=d):d=e[22];let f;return e[23]!==n.onOpen||e[24]!==c||e[25]!==d?(f=l.jsxs(it,{onOpen:t,children:[c,d]}),e[23]=n.onOpen,e[24]=c,e[25]=d,e[26]=f):f=e[26],f}async function vi(n){const e=await fetch(n,{credentials:"include"});if(!e.ok)throw new Error(`fetch failed: ${e.status}`);return e.text()}const wi=`
|
|
14
|
-
*{box-sizing:border-box}
|
|
15
|
-
body{margin:0;padding:24px;background:var(--brand-bg,#0b0f1a);color:var(--brand-fg,#f5f7ff);font-family:var(--brand-font-body,system-ui,sans-serif);font-size:14px;line-height:1.5}
|
|
16
|
-
.stack{display:flex;flex-direction:column;gap:18px;max-width:760px}
|
|
17
|
-
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
|
|
18
|
-
h1{font-family:var(--brand-font-display,inherit);font-size:28px;font-weight:700;letter-spacing:-0.02em;margin:0}
|
|
19
|
-
.muted{color:var(--brand-fg-muted,#9fb0c9)}
|
|
20
|
-
.btn{border:0;border-radius:var(--brand-radius,12px);padding:10px 16px;font:inherit;font-weight:600;cursor:pointer}
|
|
21
|
-
.btn-primary{background:var(--brand-primary,#0a84ff);color:#fff}
|
|
22
|
-
.btn-secondary{background:transparent;color:var(--brand-fg,#f5f7ff);border:1.5px solid var(--brand-border-strong,rgba(255,255,255,.22))}
|
|
23
|
-
.btn-ghost{background:transparent;color:var(--brand-fg-muted,#9fb0c9)}
|
|
24
|
-
.card{background:var(--brand-bg-subtle,#121826);border:1px solid var(--brand-border,rgba(255,255,255,.1));border-radius:var(--brand-radius-lg,16px);padding:20px;box-shadow:var(--brand-shadow-md,0 6px 16px rgba(8,12,22,.45))}
|
|
25
|
-
.kpi{font-family:var(--brand-font-display,inherit);font-size:44px;font-weight:700;color:var(--brand-primary,#0a84ff);line-height:1;letter-spacing:-0.02em}
|
|
26
|
-
.input{width:100%;background:var(--brand-bg-elevated,#1a2233);border:1.5px solid var(--brand-border,rgba(255,255,255,.12));border-radius:var(--brand-radius,12px);padding:10px 12px;color:inherit;font:inherit}
|
|
27
|
-
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}
|
|
28
|
-
.badge-success{background:var(--brand-success-bg,#e7f6ec);color:var(--brand-success-fg,#0f7a37)}
|
|
29
|
-
.badge-warning{background:var(--brand-warning-bg,#fdf3d6);color:var(--brand-warning-fg,#8a6500)}
|
|
30
|
-
.badge-error{background:var(--brand-error-bg,#fde7e8);color:var(--brand-error-fg,#b01319)}
|
|
31
|
-
.badge-info{background:var(--brand-info-bg,#e8f1ff);color:var(--brand-info-fg,#0b54a8)}
|
|
32
|
-
.chip{border:1.5px solid var(--brand-border-strong,rgba(255,255,255,.22));border-radius:999px;padding:6px 14px;font-size:13px}
|
|
33
|
-
.chip-active{background:var(--brand-primary,#0a84ff);border-color:transparent;color:#fff}
|
|
34
|
-
`,ji=`
|
|
35
|
-
<div class="stack">
|
|
36
|
-
<div>
|
|
37
|
-
<h1>Your brand, applied</h1>
|
|
38
|
-
<p class="muted" style="margin:6px 0 0">Buttons, cards, inputs and badges in your tokens.</p>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="row">
|
|
41
|
-
<button class="btn btn-primary">Primary</button>
|
|
42
|
-
<button class="btn btn-secondary">Secondary</button>
|
|
43
|
-
<button class="btn btn-ghost">Ghost</button>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="card">
|
|
46
|
-
<p class="muted" style="margin:0 0 6px">Monthly savings</p>
|
|
47
|
-
<div class="kpi">$240</div>
|
|
48
|
-
</div>
|
|
49
|
-
<input class="input" placeholder="you@example.com" />
|
|
50
|
-
<div class="row">
|
|
51
|
-
<span class="badge badge-success">Success</span>
|
|
52
|
-
<span class="badge badge-warning">Warning</span>
|
|
53
|
-
<span class="badge badge-error">Error</span>
|
|
54
|
-
<span class="badge badge-info">Info</span>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="row">
|
|
57
|
-
<span class="chip chip-active">All</span>
|
|
58
|
-
<span class="chip">Income</span>
|
|
59
|
-
<span class="chip">Spending</span>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
`;function ki(n){return`<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><style>${n??""}</style><style>${wi}</style></head><body>${ji}</body></html>`}function Si(n){const e=$.c(13),{tokensUrl:t}=n;let s;e[0]!==t?(s=Q.fileText(t??""),e[0]=t,e[1]=s):s=e[1];const r=!!t;let i;e[2]!==t?(i=()=>vi(t??""),e[2]=t,e[3]=i):i=e[3];let o;e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7];const a=ie(o);if(t&&a.isPending){let u;return e[8]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx("div",{className:"flex h-full w-full items-center justify-center p-6",children:l.jsx(ae,{className:"h-full w-full rounded-xl"})}),e[8]=u):u=e[8],u}const c=a.data??null;let d;e[9]!==c?(d=ki(c),e[9]=c,e[10]=d):d=e[10];let f;return e[11]!==d?(f=l.jsx("iframe",{title:"Brand components",srcDoc:d,sandbox:"",className:"block h-full w-full border-0 bg-white"}),e[11]=d,e[12]=f):f=e[12],f}const Ni="Theme preview",zi=[`<section class="slide-center">
|
|
63
|
-
<p class="eyebrow">Brand deck</p>
|
|
64
|
-
<h1 class="deck-h1">Your brand, on every slide</h1>
|
|
65
|
-
<p class="deck-sub">A live preview of each slide layout in your brand style.</p>
|
|
66
|
-
<p class="deck-meta">Theme preview</p>
|
|
67
|
-
</section>`,`<section>
|
|
68
|
-
<p class="eyebrow">Agenda</p>
|
|
69
|
-
<h2 class="deck-h2">What's in this theme</h2>
|
|
70
|
-
<ol class="agenda">
|
|
71
|
-
<li>Title & section dividers</li>
|
|
72
|
-
<li>Bulleted content</li>
|
|
73
|
-
<li>Side-by-side columns</li>
|
|
74
|
-
<li>Metrics & timelines</li>
|
|
75
|
-
<li>Quotes & closing</li>
|
|
76
|
-
</ol>
|
|
77
|
-
</section>`,`<section class="slide-center divider">
|
|
78
|
-
<p class="giant-number">01</p>
|
|
79
|
-
<h2 class="deck-h1">Content layouts</h2>
|
|
80
|
-
<p class="deck-sub">How text-heavy slides look.</p>
|
|
81
|
-
</section>`,`<section>
|
|
82
|
-
<p class="eyebrow">Bullets</p>
|
|
83
|
-
<h2 class="deck-h2">Key points land cleanly</h2>
|
|
84
|
-
<p class="deck-body intro">Short, scannable lines with the brand accent marker.</p>
|
|
85
|
-
<ul class="bullets">
|
|
86
|
-
<li>Each point is one idea</li>
|
|
87
|
-
<li>Accent color draws the eye</li>
|
|
88
|
-
<li>Plenty of breathing room</li>
|
|
89
|
-
</ul>
|
|
90
|
-
</section>`,`<section>
|
|
91
|
-
<p class="eyebrow">Two column</p>
|
|
92
|
-
<h2 class="deck-h2">Compare side by side</h2>
|
|
93
|
-
<div class="cols">
|
|
94
|
-
<div class="card grow">
|
|
95
|
-
<h3 class="col-title">Before</h3>
|
|
96
|
-
<div class="deck-body"><p>Generic slides that ignore your brand.</p></div>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="card grow">
|
|
99
|
-
<h3 class="col-title">After</h3>
|
|
100
|
-
<div class="deck-body"><p>Every deck on-brand, automatically.</p></div>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</section>`,`<section>
|
|
104
|
-
<p class="eyebrow">Metrics</p>
|
|
105
|
-
<h2 class="deck-h2">Numbers that matter</h2>
|
|
106
|
-
<div class="cols kpis">
|
|
107
|
-
<div class="card kpi grow">
|
|
108
|
-
<p class="kpi-value">3×</p>
|
|
109
|
-
<p class="kpi-label">Faster deck creation</p>
|
|
110
|
-
<p class="kpi-delta">since adopting the theme</p>
|
|
111
|
-
</div>
|
|
112
|
-
<div class="card kpi grow">
|
|
113
|
-
<p class="kpi-value">100%</p>
|
|
114
|
-
<p class="kpi-label">On-brand slides</p>
|
|
115
|
-
<p class="kpi-delta">no manual restyling</p>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="card kpi grow">
|
|
118
|
-
<p class="kpi-value">1</p>
|
|
119
|
-
<p class="kpi-label">Source of truth</p>
|
|
120
|
-
<p class="kpi-delta">tokens.css</p>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
</section>`,`<section>
|
|
124
|
-
<p class="eyebrow">Timeline</p>
|
|
125
|
-
<h2 class="deck-h2">How it unfolds</h2>
|
|
126
|
-
<div class="cols timeline">
|
|
127
|
-
<div class="step grow">
|
|
128
|
-
<p class="step-label">Step 1</p>
|
|
129
|
-
<h3 class="col-title">Define</h3>
|
|
130
|
-
<p class="deck-body">Set brand tokens once.</p>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="step grow">
|
|
133
|
-
<p class="step-label">Step 2</p>
|
|
134
|
-
<h3 class="col-title">Generate</h3>
|
|
135
|
-
<p class="deck-body">Create decks from data.</p>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="step grow">
|
|
138
|
-
<p class="step-label">Step 3</p>
|
|
139
|
-
<h3 class="col-title">Present</h3>
|
|
140
|
-
<p class="deck-body">Ship, always on-brand.</p>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</section>`,`<section>
|
|
144
|
-
<p class="eyebrow">Comparison</p>
|
|
145
|
-
<h2 class="deck-h2">Plans at a glance</h2>
|
|
146
|
-
<div class="cols">
|
|
147
|
-
<div class="card grow">
|
|
148
|
-
<h3 class="col-title">Starter</h3>
|
|
149
|
-
<ul class="bullets compact">
|
|
150
|
-
<li>Core layouts</li>
|
|
151
|
-
<li>Brand colors</li>
|
|
152
|
-
<li>Logo</li>
|
|
153
|
-
</ul>
|
|
154
|
-
</div>
|
|
155
|
-
<div class="card grow">
|
|
156
|
-
<h3 class="col-title">Pro</h3>
|
|
157
|
-
<ul class="bullets compact">
|
|
158
|
-
<li>Everything in Starter</li>
|
|
159
|
-
<li>Custom fonts</li>
|
|
160
|
-
<li>Theme shell</li>
|
|
161
|
-
</ul>
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
</section>`,`<section class="slide-center">
|
|
165
|
-
<blockquote class="deck-quote">“Design once, stay on-brand everywhere.”</blockquote>
|
|
166
|
-
<p class="attribution">Brand system · Studio</p>
|
|
167
|
-
</section>`,`<section class="slide-center">
|
|
168
|
-
<h2 class="deck-h1">Ready to present</h2>
|
|
169
|
-
<p class="deck-sub">Generate a deck with this theme via the slides skill.</p>
|
|
170
|
-
<p class="cta">slides-create --theme …</p>
|
|
171
|
-
</section>`].join(`
|
|
172
|
-
|
|
173
|
-
`);async function jn(n){const e=await fetch(n,{credentials:"include"});if(!e.ok)throw new Error(`fetch failed: ${e.status}`);return e.text()}function Ci(n,e){const t=e?`<style>${e}</style>`:"";return n.replaceAll("{{{slides}}}",zi).replaceAll("{{title}}",Ni).replace(/(src=")(\/deck-runtime\/)/g,`$1${window.location.origin}$2`).replace("</head>",`${t}</head>`)}function $i(n){const e=$.c(23),{readUrl:t,title:s,tokensUrl:r}=n;let i;e[0]!==t?(i=Q.fileText(t),e[0]=t,e[1]=i):i=e[1];let o;e[2]!==t?(o=()=>jn(t),e[2]=t,e[3]=o):o=e[3];let a;e[4]!==i||e[5]!==o?(a={queryKey:i,queryFn:o,staleTime:6e4,retry:!1},e[4]=i,e[5]=o,e[6]=a):a=e[6];const c=ie(a);let d;e[7]!==r?(d=Q.fileText(r??""),e[7]=r,e[8]=d):d=e[8];const f=!!r;let u;e[9]!==r?(u=()=>jn(r??""),e[9]=r,e[10]=u):u=e[10];let h;e[11]!==d||e[12]!==f||e[13]!==u?(h={queryKey:d,enabled:f,queryFn:u,staleTime:6e4,retry:!1},e[11]=d,e[12]=f,e[13]=u,e[14]=h):h=e[14];const m=ie(h);if(c.isPending||r&&m.isPending){let x;return e[15]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx("div",{className:"flex h-full w-full items-center justify-center p-6",children:l.jsx(ae,{className:"aspect-[16/9] w-full max-w-3xl rounded-xl"})}),e[15]=x):x=e[15],x}if(c.isError||!c.data){let x;return e[16]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This theme is no longer available."}),e[16]=x):x=e[16],x}const p=m.data??null;let g;e[17]!==p||e[18]!==c.data?(g=Ci(c.data,p),e[17]=p,e[18]=c.data,e[19]=g):g=e[19];let b;return e[20]!==g||e[21]!==s?(b=l.jsx("iframe",{title:s,srcDoc:g,sandbox:"allow-scripts",className:"block h-full w-full border-0 bg-white"}),e[20]=g,e[21]=s,e[22]=b):b=e[22],b}async function kn(n){const e=await fetch(n,{credentials:"include"});if(!e.ok)throw new Error(`fetch failed: ${e.status}`);return e.text()}function Ke(n){const e=$.c(2),{children:t}=n;let s;return e[0]!==t?(s=l.jsx("p",{className:"text-sm font-medium text-foreground",children:t}),e[0]=t,e[1]=s):s=e[1],s}function Pi(n){const e=$.c(16),{family:t,tokens:s,editing:r,valueOf:i,onEdit:o}=n;let a;e[0]!==t?(a=l.jsx("span",{className:"text-xs text-muted-foreground",children:t}),e[0]=t,e[1]=a):a=e[1];let c;if(e[2]!==r||e[3]!==o||e[4]!==s||e[5]!==i){let u;e[7]!==r||e[8]!==o||e[9]!==i?(u=h=>{const m=i(h),p=`${h.name.replace(/^--brand-/,"")}: ${m}`;return r&&/^#/.test(m)?l.jsx("input",{type:"color","aria-label":h.name,title:p,value:Br(m),onChange:g=>o(h.name,g.target.value),className:"size-7 cursor-pointer rounded-md border border-border/60 bg-transparent p-0.5"},h.name):l.jsx("span",{title:p,className:"size-7 rounded-md border border-border/60",style:{backgroundColor:m}},h.name)},e[7]=r,e[8]=o,e[9]=i,e[10]=u):u=e[10],c=s.map(u),e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=c}else c=e[6];let d;e[11]!==c?(d=l.jsx("div",{className:"flex flex-wrap gap-1",children:c}),e[11]=c,e[12]=d):d=e[12];let f;return e[13]!==a||e[14]!==d?(f=l.jsxs("div",{className:"flex flex-col gap-1.5",children:[a,d]}),e[13]=a,e[14]=d,e[15]=f):f=e[15],f}function Ei(n){const e=$.c(9),{token:t,value:s}=n;if(t.kind==="space"){let i;return e[0]!==s?(i=l.jsx("span",{className:"flex h-7 w-16 shrink-0 items-center",children:l.jsx("span",{className:"h-1.5 rounded-full bg-primary",style:{width:s,maxWidth:"100%"}})}),e[0]=s,e[1]=i):i=e[1],i}if(t.kind==="radius"){let i;return e[2]!==s?(i=l.jsx("span",{className:"size-7 shrink-0 border border-border bg-muted/50",style:{borderRadius:s}}),e[2]=s,e[3]=i):i=e[3],i}if(t.kind==="shadow"){let i;return e[4]!==s?(i=l.jsx("span",{className:"size-7 shrink-0 rounded-md bg-background",style:{boxShadow:s}}),e[4]=s,e[5]=i):i=e[5],i}if(t.kind==="type"&&/^--brand-text-/.test(t.name)){const i=`min(${s}, 22px)`;let o;return e[6]!==i?(o=l.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden leading-none text-foreground",style:{fontSize:i},children:"Ag"}),e[6]=i,e[7]=o):o=e[7],o}let r;return e[8]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("span",{className:"size-7 shrink-0"}),e[8]=r):r=e[8],r}function vs(n){const e=$.c(17),{token:t,value:s,editing:r,onEdit:i}=n;let o;e[0]!==t||e[1]!==s?(o=l.jsx(Ei,{token:t,value:s}),e[0]=t,e[1]=s,e[2]=o):o=e[2];let a;if(e[3]!==t.name){let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=/^--brand-/,e[5]=u):u=e[5],a=t.name.replace(u,""),e[3]=t.name,e[4]=a}else a=e[4];let c;e[6]!==a?(c=l.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:a}),e[6]=a,e[7]=c):c=e[7];let d;e[8]!==r||e[9]!==i||e[10]!==t.name||e[11]!==s?(d=r?l.jsx(Xe,{value:s,onChange:u=>i(t.name,u.target.value),className:"h-8 w-40 font-mono text-xs"}):l.jsx("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:s}),e[8]=r,e[9]=i,e[10]=t.name,e[11]=s,e[12]=d):d=e[12];let f;return e[13]!==o||e[14]!==c||e[15]!==d?(f=l.jsxs("div",{className:"flex items-center gap-3",children:[o,c,d]}),e[13]=o,e[14]=c,e[15]=d,e[16]=f):f=e[16],f}function Be(n){const e=$.c(16),{label:t,tokens:s,editing:r,valueOf:i,onEdit:o}=n;if(s.length===0)return null;let a;e[0]!==t?(a=l.jsx(Ke,{children:t}),e[0]=t,e[1]=a):a=e[1];let c;if(e[2]!==r||e[3]!==o||e[4]!==s||e[5]!==i){let u;e[7]!==r||e[8]!==o||e[9]!==i?(u=h=>l.jsx(vs,{token:h,value:i(h),editing:r,onEdit:o},h.name),e[7]=r,e[8]=o,e[9]=i,e[10]=u):u=e[10],c=s.map(u),e[2]=r,e[3]=o,e[4]=s,e[5]=i,e[6]=c}else c=e[6];let d;e[11]!==c?(d=l.jsx("div",{className:"flex flex-col gap-2.5",children:c}),e[11]=c,e[12]=d):d=e[12];let f;return e[13]!==a||e[14]!==d?(f=l.jsxs("div",{className:"flex flex-col gap-3",children:[a,d]}),e[13]=a,e[14]=d,e[15]=f):f=e[15],f}function ws({brandPath:n,onClose:e,variant:t}){const{org:s}=de(),r=zt(n),i=r.volume??"",o=r.dirPath,a=le(o),c=r.readOnly,d=Ze(),f=lt(),u=_n(i),{upload:h,remove:m}=_t(i),p=k.useRef(null),g=Gt(i,o),b=g.data??[],x=D=>b.some(re=>re.kind==="file"&&le(re.path)===D),y=x("tokens.css"),j=x("brand.md"),N=x("slides-theme.html"),z=Wr(b),C=f(i,`${o}/tokens.css`),w=f(i,`${o}/brand.md`),M=f(i,`${o}/slides-theme.html`),I=ie({queryKey:Q.fileText(C),enabled:y,queryFn:()=>kn(C),staleTime:6e4,retry:!1}),F=ie({queryKey:Q.fileText(w),enabled:j,queryFn:()=>kn(w),staleTime:6e4,retry:!1}),[v,P]=k.useState(!1),[W,A]=k.useState({}),[_,H]=k.useState(null),[G,q]=k.useState(!1),[ee,J]=k.useState(!1),[L,K]=k.useState("deck"),S=I.data?xs(I.data):[],O=D=>S.find(re=>re.name===D)?.value,R=D=>W[D.name]??D.value,U=qr(S),T=S.filter(D=>D.kind==="font"),B=S.filter(D=>D.kind==="type"),Y=S.filter(D=>D.kind==="space"),te=S.filter(D=>D.kind==="radius"),fe=S.filter(D=>D.kind==="shadow"),E=S.filter(D=>D.kind==="motion"),X=S.filter(D=>D.kind==="other"),ne=(D,re)=>A(dt=>({...dt,[D]:re})),ge=N&&L==="deck",Ne=_??F.data??"",Pe=Object.entries(W).filter(([D,re])=>O(D)!==re),oe=_!==null&&_!==(F.data??""),at=Pe.length>0||oe;function Dt(){A({}),H(null),P(!1)}async function Ee(){q(!0);try{if(Pe.length>0){let D=I.data??"";for(const[re,dt]of Pe)D=Kr(D,re,dt);await u.mutateAsync({path:`${o}/tokens.css`,body:D,contentType:"text/css; charset=utf-8"}),d.invalidateQueries({queryKey:Q.fileText(C)})}oe&&_!==null&&(await u.mutateAsync({path:`${o}/brand.md`,body:_,contentType:"text/markdown; charset=utf-8"}),d.invalidateQueries({queryKey:Q.fileText(w)})),d.invalidateQueries({queryKey:Q.orgFsVolume(s.id,i)}),d.invalidateQueries({queryKey:Q.orgFsRecent(s.id)}),A({}),H(null),P(!1),ue.success("Brand saved")}catch(D){ue.error(D instanceof Error?D.message:"Failed to save brand")}finally{q(!1)}}async function ct(D){const re=D?.[0];if(!re)return;const nn=`logo.${(re.name.split(".").pop()??"png").toLowerCase()}`;try{await h.mutateAsync({dir:o,files:[new File([re],nn,{type:re.type})]}),z&&le(z)!==nn&&await m.mutateAsync(z),ue.success("Logo updated")}catch(sn){ue.error(sn instanceof Error?sn.message:"Logo upload failed")}finally{p.current&&(p.current.value="")}}const Tt=!g.isPending&&!y&&!j&&!z;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[l.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(ht,{size:18})}),t==="dialog"?l.jsx(Ue,{className:"flex-1 truncate text-base font-medium text-foreground",children:a}):l.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:a}),!c&&(v?l.jsxs(l.Fragment,{children:[l.jsx(Z,{variant:"ghost",size:"sm",onClick:Dt,disabled:G,children:"Cancel"}),l.jsx(Z,{size:"sm",disabled:!at||G,onClick:()=>{Ee()},children:G?"Saving…":"Save"})]}):l.jsxs(Z,{variant:"outline",size:"sm",onClick:()=>P(!0),children:[l.jsx(Ls,{size:14}),"Edit"]})),t==="dialog"?l.jsx(Fn,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:l.jsx(pt,{size:16})})}):l.jsx(Z,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:e,children:l.jsx(pt,{size:16})})]}),l.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:g.isPending?l.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[l.jsx(ae,{className:"h-40 w-full rounded-xl"}),l.jsx(ae,{className:"h-4 w-1/3"}),l.jsx(ae,{className:"h-4 w-2/3"})]}):Tt?l.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This brand is no longer available."}):l.jsxs(l.Fragment,{children:[(N||y)&&l.jsxs("div",{className:"shrink-0 border-b border-border",children:[l.jsxs("div",{role:"button",tabIndex:0,"aria-label":ee?"Show preview":"Hide preview",onClick:()=>J(D=>!D),onKeyDown:D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),J(re=>!re))},className:"flex cursor-pointer items-center justify-between gap-2 px-4 py-2.5 hover:bg-muted/40",children:[l.jsxs("div",{className:"flex gap-0.5 rounded-lg bg-muted p-0.5 text-xs font-medium",onClick:D=>D.stopPropagation(),children:[N&&l.jsx("button",{type:"button",onClick:()=>{K("deck"),J(!1)},className:ce("rounded-md px-2.5 py-1",ge?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:"Deck"}),l.jsx("button",{type:"button",onClick:()=>{K("components"),J(!1)},className:ce("rounded-md px-2.5 py-1",ge?"text-muted-foreground hover:text-foreground":"bg-background text-foreground shadow-sm"),children:"Components"})]}),ee?l.jsx(tl,{size:16,className:"shrink-0 text-muted-foreground"}):l.jsx(nl,{size:16,className:"shrink-0 text-muted-foreground"})]}),!ee&&l.jsx("div",{className:"px-4 pb-4",children:l.jsx("div",{className:ce("w-full overflow-hidden rounded-xl border border-border bg-muted/30",ge?"aspect-[16/9]":"h-96"),children:ge?l.jsx($i,{readUrl:M,title:`${a} deck theme`,tokensUrl:C}):l.jsx(Si,{tokensUrl:C})})})]}),l.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto p-6",children:[l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx(Ke,{children:"Logo"}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"flex size-24 items-center justify-center overflow-hidden rounded-xl border border-border bg-muted/30",children:z?l.jsx("img",{src:f(i,z),alt:`${a} logo`,className:"max-h-full max-w-full object-contain"}):l.jsx(ht,{size:28,className:"text-muted-foreground/50"})}),v&&l.jsxs("div",{children:[l.jsxs(Z,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>p.current?.click(),children:[l.jsx(mt,{size:14}),z?"Replace logo":"Add logo"]}),l.jsx("input",{ref:p,type:"file",accept:"image/*",className:"hidden",onChange:D=>{ct(D.target.files)}})]})]})]}),U.length>0&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx(Ke,{children:"Colors"}),U.map(D=>l.jsx(Pi,{family:D.family,tokens:D.tokens,editing:v,valueOf:R,onEdit:ne},D.family))]}),(T.length>0||B.length>0)&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx(Ke,{children:"Typography"}),T.map(D=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-xs text-muted-foreground",children:D.name.replace(/^--brand-font-?/,"")||"font"}),v?l.jsx(Xe,{value:R(D),onChange:re=>ne(D.name,re.target.value),className:"h-9"}):l.jsx("span",{className:"truncate text-lg text-foreground",style:{fontFamily:R(D)},children:R(D)})]},D.name)),B.map(D=>l.jsx(vs,{token:D,value:R(D),editing:v,onEdit:ne},D.name))]}),l.jsx(Be,{label:"Spacing",tokens:Y,editing:v,valueOf:R,onEdit:ne}),l.jsx(Be,{label:"Radius",tokens:te,editing:v,valueOf:R,onEdit:ne}),l.jsx(Be,{label:"Shadows",tokens:fe,editing:v,valueOf:R,onEdit:ne}),l.jsx(Be,{label:"Motion",tokens:E,editing:v,valueOf:R,onEdit:ne}),l.jsx(Be,{label:"Tokens",tokens:X,editing:v,valueOf:R,onEdit:ne}),l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx(Ke,{children:"Voice & guidelines"}),v?l.jsx(el,{value:Ne,onChange:D=>H(D.target.value),placeholder:"Describe the brand voice, tone, do's and don'ts…",className:"min-h-48 font-mono text-sm"}):F.isPending&&j?l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx(ae,{className:"h-3 w-full"}),l.jsx(ae,{className:"h-3 w-5/6"})]}):Ne.trim()?l.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:l.jsx(Wt,{id:`brand-preview-${n}`,text:Ne})}):l.jsx("p",{className:"text-sm text-muted-foreground",children:"No brand voice written yet."})]})]})]})})]})}function Di(n){const e=$.c(8),{brandPath:t,onClose:s}=n;let r;e[0]!==s?(r=a=>{a||s()},e[0]=s,e[1]=r):r=e[1];let i;e[2]!==t||e[3]!==s?(i=l.jsx(Je,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-2xl!",closeButtonClassName:"hidden",children:l.jsx(ws,{brandPath:t,onClose:s,variant:"dialog"})}),e[2]=t,e[3]=s,e[4]=i):i=e[4];let o;return e[5]!==r||e[6]!==i?(o=l.jsx(et,{open:!0,onOpenChange:r,children:i}),e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function Ti(n){const e=$.c(3),{brandPath:t,onClose:s}=n;let r;return e[0]!==t||e[1]!==s?(r=l.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden bg-background",children:l.jsx(ws,{brandPath:t,onClose:s,variant:"panel"})}),e[0]=t,e[1]=s,e[2]=r):r=e[2],r}function Fi(n){const e=$.c(9),{previewPath:t,onClose:s,showSeeInLibrary:r}=n,i=r===void 0?!1:r;let o;e[0]!==s?(o=d=>{d||s()},e[0]=s,e[1]=o):o=e[1];let a;e[2]!==s||e[3]!==t||e[4]!==i?(a=l.jsx(Je,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",children:l.jsx(ms,{previewPath:t,onClose:s,showSeeInLibrary:i,variant:"dialog"})}),e[2]=s,e[3]=t,e[4]=i,e[5]=a):a=e[5];let c;return e[6]!==o||e[7]!==a?(c=l.jsx(et,{open:!0,onOpenChange:o,children:a}),e[6]=o,e[7]=a,e[8]=c):c=e[8],c}function js(n){const e=$.c(23),{skillPath:t,onClose:s,variant:r}=n,i=zt(t),{volume:o,dirPath:a}=i,c=lt(),d=c(o??"",`${a}/SKILL.md`),f=Q.fileText(d);let u;e[0]!==d?(u=async()=>{const q=await fetch(d,{credentials:"include"});if(!q.ok)throw new Error(`fetch failed: ${q.status}`);return q.text()},e[0]=d,e[1]=u):u=e[1];let h;e[2]!==f||e[3]!==u?(h={queryKey:f,queryFn:u,staleTime:6e4,retry:!1},e[2]=f,e[3]=u,e[4]=h):h=e[4];const m=ie(h),p=Gt(o??"",a);let g;e[5]!==a?(g=le(a),e[5]=a,e[6]=g):g=e[6];const b=g;let x;e[7]!==m.data?(x=m.data?gs(m.data):null,e[7]=m.data,e[8]=x):x=e[8];const y=x,j=Ii;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=(q,ee)=>j(q.path)?-1:j(ee.path)?1:le(q.path).localeCompare(le(ee.path)),e[9]=N):N=e[9];const z=(p.data??[]).filter(Mi).sort(N),[C,w]=k.useState(null),M=C===null?null:z.find(q=>q.path===C)??null,I=y?.name??b;let F;e[10]===Symbol.for("react.memo_cache_sentinel")?(F=l.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:l.jsx(Kt,{size:18})}),e[10]=F):F=e[10];let v;e[11]!==I||e[12]!==r?(v=r==="dialog"?l.jsx(Ue,{className:"flex-1 truncate text-base font-medium text-foreground",children:I}):l.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:I}),e[11]=I,e[12]=r,e[13]=v):v=e[13];let P;e[14]!==s||e[15]!==r?(P=r==="dialog"?l.jsx(Fn,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:l.jsx(pt,{size:16})})}):l.jsx(Z,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:s,children:l.jsx(pt,{size:16})}),e[14]=s,e[15]=r,e[16]=P):P=e[16];let W;e[17]!==v||e[18]!==P?(W=l.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[F,v,P]}),e[17]=v,e[18]=P,e[19]=W):W=e[19];let A;e[20]===Symbol.for("react.memo_cache_sentinel")?(A=l.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[20]=A):A=e[20];const _="relative flex min-w-0 flex-1 flex-col overflow-y-auto",H=M?l.jsx(us,{file:{key:M.path,filename:le(M.path),size:M.size,downloadUrl:c(o??"",M.path)}}):m.isPending?l.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[l.jsx(ae,{className:"h-4 w-1/3"}),l.jsx(ae,{className:"h-3 w-full"}),l.jsx(ae,{className:"h-3 w-5/6"}),l.jsx(ae,{className:"h-3 w-2/3"})]}):m.isError||!y?l.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[l.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),l.jsx("p",{className:"text-base text-muted-foreground",children:y.description??"Claude Code skill"})]}),l.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:l.jsx(Wt,{id:`skill-preview-${t}`,text:y.body})})]});let G;return e[21]!==H?(G=l.jsx("div",{className:_,children:H}),e[21]=H,e[22]=G):G=e[22],l.jsxs(l.Fragment,{children:[W,l.jsxs("div",{className:"flex min-h-0 flex-1",children:[l.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[A,p.isPending?l.jsx(ae,{className:"mx-2 h-4 w-24"}):z.map(q=>{const ee=j(q.path)?M===null:C===q.path;return l.jsxs("button",{type:"button",onClick:()=>w(j(q.path)?null:q.path),className:ce("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",ee?"bg-background shadow-sm":"hover:bg-muted/60"),children:[l.jsx(Se,{filename:le(q.path),className:"h-6 w-5 shrink-0"}),l.jsx("span",{className:ce("truncate text-sm",ee?"text-foreground":"text-muted-foreground"),children:le(q.path)})]},q.path)})]}),G]})]})}function Mi(n){return n.kind==="file"}function Ii(n){return le(n)==="SKILL.md"}function Li(n){const e=$.c(8),{skillPath:t,onClose:s}=n;let r;e[0]!==s?(r=a=>{a||s()},e[0]=s,e[1]=r):r=e[1];let i;e[2]!==s||e[3]!==t?(i=l.jsx(Je,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:l.jsx(js,{skillPath:t,onClose:s,variant:"dialog"})}),e[2]=s,e[3]=t,e[4]=i):i=e[4];let o;return e[5]!==r||e[6]!==i?(o=l.jsx(et,{open:!0,onOpenChange:r,children:i}),e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function Oi(n){const e=$.c(3),{skillPath:t,onClose:s}=n;let r;return e[0]!==s||e[1]!==t?(r=l.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden bg-background",children:l.jsx(js,{skillPath:t,onClose:s,variant:"panel"})}),e[0]=s,e[1]=t,e[2]=r):r=e[2],r}function tn(n){return`${window.location.origin}${n}`}function Ge(n){if(n.shareMode==="password")return"password";if(n.shareMode==="public"||n.readPublic)return"public";if(n.effectivePublic)return"inherited"}const ks=[{id:"home",description:"Your organization's home folder",glyph:Os},{id:"uploads",description:"Files your team uploads",glyph:mt},{id:"outputs",description:"Agent run outputs",glyph:_s}],Ri=6;function Ss(n,e,t){const s=e.includes("/")?e.slice(0,e.lastIndexOf("/")):"",r=Jt(n),i=r?`public/${r}`:n==="home"?ps(t):n;return s?`${i}/${s}`:i}function $e(n){const e=$.c(2),{children:t}=n;let s;return e[0]!==t?(s=l.jsx("p",{className:"text-[13px] text-foreground",children:t}),e[0]=t,e[1]=s):s=e[1],s}function ke(n){const e=$.c(2),{children:t}=n;let s;return e[0]!==t?(s=l.jsx("div",{className:"@container",children:l.jsx("div",{className:"grid grid-cols-1 gap-3 @[440px]:grid-cols-2 @[660px]:grid-cols-3",children:t})}),e[0]=t,e[1]=s):s=e[1],s}function Pt(n){const e=$.c(2),{rows:t}=n,s=t===void 0?1:t;let r;return e[0]!==s?(r=l.jsx(ke,{children:Array.from({length:s*3},Ai)}),e[0]=s,e[1]=r):r=e[1],r}function Ai(n,e){return l.jsx(ae,{className:"h-16 rounded-2xl"},e)}function Et(n){const e=$.c(2),{children:t}=n;let s;return e[0]!==t?(s=l.jsx("p",{className:"text-sm text-muted-foreground",children:t}),e[0]=t,e[1]=s):s=e[1],s}function _i(n){const e=$.c(6),{volume:t,displayName:s,description:r,glyph:i,onOpen:o}=n,a=fl(t),c=s??t,d=a.data?`${a.data.files} files`:void 0;let f;return e[0]!==r||e[1]!==i||e[2]!==o||e[3]!==c||e[4]!==d?(f=l.jsx($t,{name:c,meta:d,subtitle:r,glyph:i,onOpen:o}),e[0]=r,e[1]=i,e[2]=o,e[3]=c,e[4]=d,e[5]=f):f=e[5],f}function Ui(n){const e=$.c(8),{segments:t,onNavigate:s}=n;let r;e[0]!==s?(r=l.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground hover:underline",onClick:()=>s(""),children:"Library"}),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==s||e[3]!==t?(i=t.map((a,c)=>{const d=t.slice(0,c+1).join("/"),f=c===t.length-1;return l.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[l.jsx(Ds,{size:12,className:"shrink-0 text-muted-foreground"}),f?l.jsx("span",{className:"truncate font-medium text-foreground",children:a}):l.jsx("button",{type:"button",className:"truncate text-muted-foreground hover:text-foreground hover:underline",onClick:()=>s(d),children:a})]},d)}),e[2]=s,e[3]=t,e[4]=i):i=e[4];let o;return e[5]!==r||e[6]!==i?(o=l.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1 text-sm",children:[r,i]}),e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function Bi(n){const e=$.c(32),{query:t,stale:s,onOpenFile:r,onShare:i,onDelete:o}=n,{org:a}=de(),c=lt(),d=ml(t);let f;e[0]!==c||e[1]!==i?(f=z=>i({volume:z.volume,path:z.path,kind:"file",shareMode:z.shareMode??"private",effectivePublic:z.effectivePublic??!1,url:tn(c(z.volume,z.path))}),e[0]=c,e[1]=i,e[2]=f):f=e[2];const u=f;if(d.isPending){let z;return e[3]===Symbol.for("react.memo_cache_sentinel")?(z=l.jsx(Pt,{rows:2}),e[3]=z):z=e[3],z}let h;e[4]!==d.data?(h=d.data??[],e[4]=d.data,e[5]=h):h=e[5];const m=h;if(m.length===0){let z;return e[6]!==t?(z=l.jsxs(Et,{children:["No files match “",t,"”."]}),e[6]=t,e[7]=z):z=e[7],z}const p=(s||d.isPlaceholderData)&&"opacity-50";let g;e[8]!==p?(g=ce("flex flex-col gap-3",p),e[8]=p,e[9]=g):g=e[9];const b=m.length===1?"result":"results";let x;e[10]!==m.length||e[11]!==b?(x=l.jsxs($e,{children:[m.length," ",b]}),e[10]=m.length,e[11]=b,e[12]=x):x=e[12];let y;if(e[13]!==c||e[14]!==o||e[15]!==r||e[16]!==a||e[17]!==m||e[18]!==u){let z;e[20]!==c||e[21]!==o||e[22]!==r||e[23]!==a||e[24]!==u?(z=C=>{const w=Jt(C.volume)!==null;return l.jsx(ys,{filename:le(C.path),updatedAt:C.updatedAt,downloadUrl:c(C.volume,C.path),subtitle:Ss(C.volume,C.path,a.slug),publicState:Ge(C),onOpen:()=>r(zr(C.volume,C.path)),onShare:w?void 0:()=>u(C),onDelete:w?void 0:()=>o({volume:C.volume,path:C.path,kind:"file"})},`${C.volume}/${C.path}`)},e[20]=c,e[21]=o,e[22]=r,e[23]=a,e[24]=u,e[25]=z):z=e[25],y=m.map(z),e[13]=c,e[14]=o,e[15]=r,e[16]=a,e[17]=m,e[18]=u,e[19]=y}else y=e[19];let j;e[26]!==y?(j=l.jsx(ke,{children:y}),e[26]=y,e[27]=j):j=e[27];let N;return e[28]!==g||e[29]!==x||e[30]!==j?(N=l.jsxs("div",{className:g,children:[x,j]}),e[28]=g,e[29]=x,e[30]=j,e[31]=N):N=e[31],N}function Hi(n){const e=$.c(24),{onOpenDir:t,onOpenFile:s,onShare:r,onDelete:i}=n,{org:o}=de(),a=hl(),c=An(),d=lt();let f;e[0]!==d||e[1]!==r?(f=y=>r({volume:y.volume,path:y.path,kind:"file",shareMode:y.shareMode??"private",effectivePublic:y.effectivePublic??!1,url:tn(d(y.volume,y.path))}),e[0]=d,e[1]=r,e[2]=f):f=e[2];const u=f;let h;if(e[3]!==d||e[4]!==i||e[5]!==s||e[6]!==o||e[7]!==a.data||e[8]!==a.isPending||e[9]!==u){const y=(a.data??[]).slice(0,Ri);h=a.isPending?l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Recently added"}),l.jsx(Pt,{})]}):y.length>0?l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Recently added"}),l.jsx(ke,{children:y.map(j=>l.jsx(yi,{filename:le(j.path),updatedAt:j.updatedAt,size:j.size,downloadUrl:d(j.volume,j.path),subtitle:Ss(j.volume,j.path,o.slug),publicState:Ge(j),onOpen:()=>s(`${j.volume}/${j.path}`),onShare:()=>u(j),onDelete:()=>i({volume:j.volume,path:j.path,kind:"file"})},`${j.volume}/${j.path}`))})]}):l.jsx(Et,{children:"No files yet — upload one, or ask an agent to produce something."}),e[3]=d,e[4]=i,e[5]=s,e[6]=o,e[7]=a.data,e[8]=a.isPending,e[9]=u,e[10]=h}else h=e[10];let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx($e,{children:"Folders"}),e[11]=m):m=e[11];let p;e[12]!==t||e[13]!==o?(p=ks.map(y=>l.jsx(_i,{volume:y.id,displayName:y.id==="home"?ps(o.slug):void 0,description:y.description,glyph:y.glyph,onOpen:()=>t(y.id)},y.id)),e[12]=t,e[13]=o,e[14]=p):p=e[14];let g;e[15]!==t||e[16]!==c.data?.length?(g=(c.data?.length??0)>0&&l.jsx($t,{name:"public",meta:`${c.data?.length} sets`,subtitle:"Curated skill sets — read-only",glyph:yt,readOnly:!0,onOpen:()=>t("public")}),e[15]=t,e[16]=c.data?.length,e[17]=g):g=e[17];let b;e[18]!==p||e[19]!==g?(b=l.jsxs("div",{className:"flex flex-col gap-3",children:[m,l.jsxs(ke,{children:[p,g]})]}),e[18]=p,e[19]=g,e[20]=b):b=e[20];let x;return e[21]!==h||e[22]!==b?(x=l.jsxs(l.Fragment,{children:[h,b]}),e[21]=h,e[22]=b,e[23]=x):x=e[23],x}function qi(n){const e=$.c(11),{onOpenDir:t}=n,s=An();if(s.isPending){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(Pt,{}),e[0]=c):c=e[0],c}let r;e[1]!==s.data?(r=s.data??[],e[1]=s.data,e[2]=r):r=e[2];const i=r;if(i.length===0){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(Et,{children:"No public skill sets are configured."}),e[3]=c):c=e[3],c}let o;if(e[4]!==t||e[5]!==i){let c;e[7]!==t?(c=d=>l.jsx($t,{name:d,subtitle:"Read-only",readOnly:!0,onOpen:()=>t(`public/${d}`)},d),e[7]=t,e[8]=c):c=e[8],o=i.map(c),e[4]=t,e[5]=i,e[6]=o}else o=e[6];let a;return e[9]!==o?(a=l.jsx(ke,{children:o}),e[9]=o,e[10]=a):a=e[10],a}function Ki(n){const e=$.c(34),{location:t,onOpenDir:s,onOpenFile:r,onOpenSkill:i,onOpenBrand:o,onShare:a,onDelete:c}=n,d=t.volume??"",f=Gt(d,t.dirPath),u=lt();if(f.isPending){let y;return e[0]===Symbol.for("react.memo_cache_sentinel")?(y=l.jsx(Pt,{rows:2}),e[0]=y):y=e[0],y}if(f.isError){const y=f.error instanceof Error?f.error.message:"Failed to load";let j;return e[1]!==y?(j=l.jsx("p",{className:"text-sm text-destructive",children:y}),e[1]=y,e[2]=j):j=e[2],j}let h,m,p,g,b;if(e[3]!==u||e[4]!==f.data||e[5]!==t||e[6]!==c||e[7]!==o||e[8]!==s||e[9]!==r||e[10]!==i||e[11]!==a||e[12]!==d){b=Symbol.for("react.early_return_sentinel");e:{const y=f.data??[],j=y.filter(Xi),N=y.filter(Vi),z=y.filter(Gi),C=y.filter(Wi);if(y.length===0){const v=t.readOnly?"Empty — this read-only set syncs from its GitHub source.":"Empty folder — upload a file or create a folder to get started.";let P;e[18]!==v?(P=l.jsx(Et,{children:v}),e[18]=v,e[19]=P):P=e[19],b=P;break e}let w;e[20]!==t.readOnly||e[21]!==c||e[22]!==d?(w=v=>t.readOnly?void 0:()=>c({volume:d,path:v.path,kind:v.kind}),e[20]=t.readOnly,e[21]=c,e[22]=d,e[23]=w):w=e[23];const M=w;let I;e[24]!==u||e[25]!==t.readOnly||e[26]!==a||e[27]!==d?(I=v=>t.readOnly?void 0:()=>a({volume:d,path:v.path,kind:v.kind,shareMode:v.shareMode??"private",effectivePublic:v.effectivePublic??!1,url:v.kind==="file"?tn(u(d,v.path)):void 0}),e[24]=u,e[25]=t.readOnly,e[26]=a,e[27]=d,e[28]=I):I=e[28];const F=I;h=j.length>0&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Skills"}),l.jsx(ke,{children:j.map(v=>l.jsx(ri,{dirName:le(v.path),updatedAt:v.updatedAt,skillMdUrl:u(d,`${v.path}/SKILL.md`),publicState:Ge(v),onOpen:()=>i(Le(t,v.path)),onBrowse:()=>s(Le(t,v.path)),onShare:F(v),onDelete:M(v)},v.path))})]}),m=N.length>0&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Brands"}),l.jsx(ke,{children:N.map(v=>l.jsx(ai,{dirName:le(v.path),updatedAt:v.updatedAt,tokensUrl:u(d,`${v.path}/tokens.css`),onOpen:()=>o(Le(t,v.path)),onBrowse:()=>s(Le(t,v.path)),onDelete:M(v)},v.path))})]}),p=z.length>0&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Folders"}),l.jsx(ke,{children:z.map(v=>l.jsx($t,{name:le(v.path),meta:rt(v.updatedAt),readOnly:t.readOnly,publicState:Ge(v),onOpen:()=>s(Le(t,v.path)),onShare:F(v),onDelete:M(v)},v.path))})]}),g=C.length>0&&l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx($e,{children:"Files"}),l.jsx(ke,{children:C.map(v=>l.jsx(ys,{filename:le(v.path),updatedAt:v.updatedAt,downloadUrl:u(d,v.path),publicState:Ge(v),onOpen:()=>r(Le(t,v.path)),onShare:F(v),onDelete:M(v)},v.path))})]})}e[3]=u,e[4]=f.data,e[5]=t,e[6]=c,e[7]=o,e[8]=s,e[9]=r,e[10]=i,e[11]=a,e[12]=d,e[13]=h,e[14]=m,e[15]=p,e[16]=g,e[17]=b}else h=e[13],m=e[14],p=e[15],g=e[16],b=e[17];if(b!==Symbol.for("react.early_return_sentinel"))return b;let x;return e[29]!==h||e[30]!==m||e[31]!==p||e[32]!==g?(x=l.jsxs(l.Fragment,{children:[h,m,p,g]}),e[29]=h,e[30]=m,e[31]=p,e[32]=g,e[33]=x):x=e[33],x}function Wi(n){return n.kind==="file"}function Gi(n){return n.kind==="dir"&&!n.hasSkill&&!n.hasBrand}function Vi(n){return n.kind==="dir"&&n.hasBrand&&!n.hasSkill}function Xi(n){return n.kind==="dir"&&n.hasSkill}function Ht({onOpenFile:n,onOpenSkill:e,onOpenBrand:t}={}){const{org:s}=de(),r=Ze(),i=zn(),o=Dn(),a=Cn({strict:!1}),c=a.path??"",d=zt(c),f=d.segments.length===0,u=(E,X)=>i({to:".",search:ne=>({...ne,[E]:X||void 0})}),h=E=>u("path",E),m=(E,X)=>i({to:".",search:ne=>({...ne,preview:void 0,skill:void 0,brand:void 0,[E]:X})}),p=n??(E=>m("preview",E)),g=e??(E=>m("skill",E)),b=t??(E=>m("brand",E)),[x,y]=k.useState(""),j=Js(x.trim(),300),[N,z]=k.useState(null),[C,w]=k.useState(null),[M,I]=k.useState(!1),[F,v]=k.useState(""),P=k.useRef(null),[W,A]=k.useState(!1),_=k.useRef(0),H=d.readOnly?null:d.volume??"uploads",G=d.volume?d.dirPath:"",{upload:q,mkdir:ee}=_t(H??"uploads"),{remove:J}=_t(N?.volume??"uploads");async function L(E){if(!(!H||!E||E.length===0))try{await q.mutateAsync({dir:G,files:[...E]}),ue.success(E.length===1?`Uploaded ${E[0]?.name}`:`Uploaded ${E.length} files`)}catch(X){ue.error(X instanceof Error?X.message:"Upload failed")}finally{P.current&&(P.current.value="")}}const K=H!==null,S=f?"uploads":d.segments.at(-1)??"this folder";function O(E){return E.dataTransfer.types.includes("Files")}function R(E){!K||!O(E)||(E.preventDefault(),_.current+=1,A(!0))}function U(E){!K||!O(E)||E.preventDefault()}function T(){K&&(_.current=Math.max(0,_.current-1),_.current===0&&A(!1))}function B(E){K&&(E.preventDefault(),_.current=0,A(!1),E.dataTransfer.files.length>0&&L(E.dataTransfer.files))}async function Y(){const E=F.trim();if(!(!H||!E))try{await ee.mutateAsync(G?`${G}/${E}`:E),ue.success(`Folder "${E}" created`),I(!1),v("")}catch(X){ue.error(X instanceof Error?X.message:"Failed to create folder")}}async function te(){if(!N)return;const E=N;try{await J.mutateAsync(E.path),ue.success(`Deleted ${le(E.path)}`)}catch(X){ue.error(X instanceof Error?X.message:"Delete failed")}finally{z(null)}}function fe(){for(const E of ks)r.invalidateQueries({queryKey:Q.orgFsVolume(s.id,E.id)});d.volume&&r.invalidateQueries({queryKey:Q.orgFsVolume(s.id,d.volume)}),r.invalidateQueries({queryKey:Q.orgFsRecent(s.id)}),r.invalidateQueries({queryKey:Q.orgFsSearchRoot(s.id)}),r.invalidateQueries({queryKey:Q.orgFsPublicSets(s.id)})}return l.jsxs("div",{className:"relative h-full",onDragEnter:R,onDragOver:U,onDragLeave:T,onDrop:B,children:[W&&l.jsx("div",{className:"pointer-events-none absolute inset-0 z-20 flex items-center justify-center bg-background/80 p-6 backdrop-blur-sm",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-2xl border-2 border-dashed border-primary px-10 py-8 text-center",children:[l.jsx(mt,{size:28,className:"text-primary"}),l.jsxs("p",{className:"text-sm font-medium text-foreground",children:["Drop to upload to ",S]})]})}),l.jsx("div",{className:"h-full overflow-y-auto",children:l.jsxs("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-10 px-6 py-10 lg:px-10",children:[l.jsxs("div",{className:"flex flex-col gap-2",children:[!f&&l.jsx(Ui,{segments:d.segments,onNavigate:h}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("h1",{className:"min-w-0 flex-1 truncate text-xl font-medium text-foreground",children:f?"Library":d.segments.at(-1)??"Library"}),l.jsx(Z,{variant:"ghost",size:"icon",onClick:fe,"aria-label":"Refresh",children:l.jsx(Nn,{size:14})}),!f&&H&&l.jsxs(Z,{variant:"outline",size:"sm",onClick:()=>I(!0),children:[l.jsx(Rs,{size:14}),"New folder"]}),d.readOnly?l.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l.jsx($n,{size:12}),"Read-only"]}):l.jsxs(Z,{size:"sm",disabled:q.isPending,onClick:()=>P.current?.click(),children:[l.jsx(mt,{size:14}),q.isPending?"Uploading…":"Upload file"]}),l.jsx("input",{ref:P,type:"file",multiple:!0,className:"hidden",onChange:E=>{L(E.target.files)}})]})]}),l.jsxs("div",{className:"relative",children:[l.jsx(As,{size:16,className:"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted-foreground"}),l.jsx(Xe,{value:x,onChange:E=>y(E.target.value),onKeyDown:E=>{E.key==="Escape"&&y("")},placeholder:"Search all files…",className:"h-10 rounded-xl pr-9 pl-9"}),x&&l.jsx(Z,{variant:"ghost",size:"icon",className:"absolute top-1/2 right-1.5 size-7 -translate-y-1/2",onClick:()=>y(""),"aria-label":"Clear search",children:l.jsx(En,{size:14})})]}),j?l.jsx(Bi,{query:j,stale:x.trim()!==j,onOpenFile:p,onShare:w,onDelete:z}):f?l.jsx(Hi,{onOpenDir:h,onOpenFile:p,onShare:w,onDelete:z}):d.volume===null?l.jsx(qi,{onOpenDir:h}):l.jsx(Ki,{location:d,onOpenDir:h,onOpenFile:p,onOpenSkill:g,onOpenBrand:b,onShare:w,onDelete:z},d.volume)]})}),o&&(a.preview?l.jsx(Fi,{previewPath:a.preview,onClose:()=>u("preview",null)}):a.skill?l.jsx(Li,{skillPath:a.skill,onClose:()=>u("skill",null)},a.skill):a.brand?l.jsx(Di,{brandPath:a.brand,onClose:()=>u("brand",null)},a.brand):null),l.jsx(et,{open:M,onOpenChange:I,children:l.jsxs(Je,{children:[l.jsxs(Tn,{children:[l.jsx(Ue,{children:"New folder"}),l.jsxs(Xs,{children:["Create a folder in ",c||"the library","."]})]}),l.jsx(Xe,{autoFocus:!0,placeholder:"folder-name",value:F,onChange:E=>v(E.target.value),onKeyDown:E=>{E.key==="Enter"&&Y()}}),l.jsxs(Qs,{children:[l.jsx(Z,{variant:"outline",onClick:()=>I(!1),children:"Cancel"}),l.jsx(Z,{disabled:!F.trim()||ee.isPending,onClick:()=>{Y()},children:"Create"})]})]})}),l.jsx(Nr,{target:C,onOpenChange:E=>{E||w(null)}}),l.jsx(Us,{open:N!==null,onOpenChange:E=>{E||z(null)},children:l.jsxs(Bs,{children:[l.jsxs(Hs,{children:[l.jsxs(qs,{children:["Delete ",N?le(N.path):"","?"]}),l.jsx(Ks,{children:N?.kind==="dir"?"The folder and everything inside it will be deleted for the whole organization. Sandboxes see this change within seconds.":"The file will be deleted for the whole organization. Sandboxes see this change within seconds."})]}),l.jsxs(Ws,{children:[l.jsx(Gs,{children:"Cancel"}),l.jsx(Vs,{onClick:()=>{te()},children:"Delete"})]})]})})]})}function Qi(){const n=$.c(12),e=Dn(),t=zn();let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},n[0]=s):s=n[0];const r=Cn(s);let i;n[1]!==t?(i=d=>t({to:".",search:f=>({...f,[d]:void 0})}),n[1]=t,n[2]=i):i=n[2];const o=i;let a,c;if(n[3]!==o||n[4]!==e||n[5]!==r.brand||n[6]!==r.preview||n[7]!==r.skill){c=Symbol.for("react.early_return_sentinel");e:{const d=r.preview?{key:"preview",path:r.preview,panel:l.jsx(Pr,{previewPath:r.preview,onClose:()=>o("preview")})}:r.skill?{key:"skill",path:r.skill,panel:l.jsx(Oi,{skillPath:r.skill,onClose:()=>o("skill")},r.skill)}:r.brand?{key:"brand",path:r.brand,panel:l.jsx(Ti,{brandPath:r.brand,onClose:()=>o("brand")},r.brand)}:null;if(e){let u;n[10]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-background",children:l.jsx(Ft,{children:l.jsx(Ht,{})})}),n[10]=u):u=n[10],c=u;break e}let f;n[11]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(hn,{order:1,minSize:30,defaultSize:55,children:l.jsx("div",{className:"h-full p-0.5 pt-0.25",children:l.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:l.jsx(Ft,{children:l.jsx(Ht,{})})})})}),n[11]=f):f=n[11],a=l.jsxs(Zl,{direction:"horizontal",className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:[f,d&&l.jsxs(l.Fragment,{children:[l.jsx(Ys.Tabs,{children:l.jsx(Fr,{title:le(d.path),icon:{kind:"component",Component:u=>d.key==="preview"?l.jsx(Se,{filename:le(d.path),...u}):d.key==="skill"?l.jsx(Kt,{...u}):l.jsx(ht,{...u})},active:!0,onClick:()=>o(d.key)})}),l.jsx(Jl,{className:"bg-sidebar"}),l.jsx(hn,{order:2,minSize:25,defaultSize:45,children:l.jsx("div",{className:"h-full p-0.5 pt-0.25",children:l.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:l.jsx(Ft,{children:d.panel})})})})]})]})}n[3]=o,n[4]=e,n[5]=r.brand,n[6]=r.preview,n[7]=r.skill,n[8]=a,n[9]=c}else a=n[8],c=n[9];return c!==Symbol.for("react.early_return_sentinel")?c:a}const Xo=Object.freeze(Object.defineProperty({__proto__:null,LibraryPage:Ht,default:Qi},Symbol.toStringTag,{value:"Module"}));export{Zt as A,Di as B,bt as C,Ho as D,rr as E,cs as F,Vo as G,jr as H,Uo as I,ir as J,Ao as K,Pr as L,qo as M,Ko as N,Bo as O,Xo as P,Zl as R,Li as S,Tr as T,Io as a,lt as b,hl as c,Mo as d,lr as e,Lo as f,ar as g,Oo as h,hn as i,Jl as j,tr as k,us as l,as as m,Rn as n,kl as o,On as p,gn as q,Ht as r,Fr as s,Fi as t,_t as u,Ro as v,Wo as w,Go as x,cr as y,_o as z};
|