decocms 3.35.7 → 3.35.8
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-BIYTfeei.js → AlertCircle-BhiQLzAa.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BGqBIDum.js → ArrowUpRight-zWQi9yeG.js} +1 -1
- package/dist/client/assets/{Check-LvE_sA_T.js → Check-BE5llaCo.js} +1 -1
- package/dist/client/assets/{CheckCircle-B0oBxRpb.js → CheckCircle-BZzInqah.js} +1 -1
- package/dist/client/assets/{ChevronDown-DHa3IqAQ.js → ChevronDown-igtaXLHI.js} +1 -1
- package/dist/client/assets/{ChevronLeft-X1rMYFmV.js → ChevronLeft-D7ypV5AW.js} +1 -1
- package/dist/client/assets/{ChevronRight-BpOFC9UY.js → ChevronRight-B2MPJG0Y.js} +1 -1
- package/dist/client/assets/{ChevronUp-CLtd7-t0.js → ChevronUp-CEzo-UYH.js} +1 -1
- package/dist/client/assets/{Container-6Ia5IPn9.js → Container-DxPsYKnX.js} +1 -1
- package/dist/client/assets/{DotsVertical-CAhIPJgX.js → DotsVertical-Bqz0rpkg.js} +1 -1
- package/dist/client/assets/{Eye-efxxq50W.js → Eye-DeAUvKsB.js} +1 -1
- package/dist/client/assets/{FilterLines-CKVrZUkw.js → FilterLines-LorPzSpm.js} +1 -1
- package/dist/client/assets/{Globe01-CjvlAfxx.js → Globe01-9a7DzMR4.js} +1 -1
- package/dist/client/assets/{HardDrive-C-TQ9655.js → HardDrive-D6xAeAT3.js} +1 -1
- package/dist/client/assets/{Key01-CM-woE_3.js → Key01-z4ZY9P3F.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BmVC9DfI.js → LayoutLeft-BlcyI03M.js} +1 -1
- package/dist/client/assets/{LinkExternal01-G3vtJN4n.js → LinkExternal01-wGfNOyG-.js} +1 -1
- package/dist/client/assets/{Monitor01-DGw3VSEj.js → Monitor01-Bz9bsY6F.js} +1 -1
- package/dist/client/assets/{Palette-e1wrOTVP.js → Palette-cOZdFvCP.js} +1 -1
- package/dist/client/assets/{Play-DmzTJXzi.js → Play-DUFgIaEa.js} +1 -1
- package/dist/client/assets/{Plus-tVXcrY0B.js → Plus-C9BCwyU7.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BY57sDsA.js → RefreshCcw01-DcRdM_Fc.js} +1 -1
- package/dist/client/assets/{SearchMd-Dnr7mDHJ.js → SearchMd-DL_JjGfK.js} +1 -1
- package/dist/client/assets/{Settings02-vpvzCEqI.js → Settings02-B67J_b-Z.js} +1 -1
- package/dist/client/assets/{Shield01-kHOUdgzv.js → Shield01-12NhwCwh.js} +1 -1
- package/dist/client/assets/{Star01-DJobPrMv.js → Star01-DVJ2VIkN.js} +1 -1
- package/dist/client/assets/{Stars01-C5oxzVSS.js → Stars01-Csutpvum.js} +1 -1
- package/dist/client/assets/{Stars02-Jq5Pm_Dt.js → Stars02-EFTlH55e.js} +1 -1
- package/dist/client/assets/{Sun-BxAwIgVe.js → Sun-C4ItnLzg.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Bs5IR9Wx.js → SwitchHorizontal01-iSGzLP3G.js} +1 -1
- package/dist/client/assets/{Tool01-DF4tFmg4.js → Tool01-DnoUjwuW.js} +1 -1
- package/dist/client/assets/{Trash01-DqblPjZX.js → Trash01-HFZG34bv.js} +1 -1
- package/dist/client/assets/{Upload01-D7EnwNsF.js → Upload01-D0zblu1D.js} +1 -1
- package/dist/client/assets/{User01-CASt-NvR.js → User01-GmyJVsk_.js} +1 -1
- package/dist/client/assets/{Users01-DH1hmdgk.js → Users01-D_irbv8j.js} +1 -1
- package/dist/client/assets/{Users03-Bu2EMbkq.js → Users03-CsJCzoB9.js} +1 -1
- package/dist/client/assets/{X-CbJVsm7w.js → X-Dz8XfAUE.js} +1 -1
- package/dist/client/assets/{XCircle-B2BGaOFD.js → XCircle-THthyWG1.js} +1 -1
- package/dist/client/assets/{XClose-CCcsmvcf.js → XClose-9eaBHjn_.js} +1 -1
- package/dist/client/assets/{Zap-CR9V8BtC.js → Zap-4WoTcb5S.js} +1 -1
- package/dist/client/assets/{ZapSquare-uGoXnGDV.js → ZapSquare-C-w_2LWP.js} +1 -1
- package/dist/client/assets/{ZoomOut-v_pNeFH6.js → ZoomOut-DC7naWv-.js} +1 -1
- package/dist/client/assets/{access-gate-nK_lXbty.js → access-gate-XBdT3iPT.js} +1 -1
- package/dist/client/assets/{accordion-Cus64fCZ.js → accordion-B2o3m3ys.js} +1 -1
- package/dist/client/assets/{add-section-modal-DITNxgbg.js → add-section-modal-BOfJx4s8.js} +1 -1
- package/dist/client/assets/{agent-capabilities-C3qeiPXc.js → agent-capabilities-CX7B9V1k.js} +1 -1
- package/dist/client/assets/{agent-icon-BfnzytvB.js → agent-icon-iCRxqonQ.js} +1 -1
- package/dist/client/assets/{agents-list-D9brrkMe.js → agents-list-Dddtvx5O.js} +1 -1
- package/dist/client/assets/{ai-providers-CRqSB3uJ.js → ai-providers-DOw3qbxO.js} +1 -1
- package/dist/client/assets/{alert-BDRU9ZC5.js → alert-Cb2hF1jc.js} +1 -1
- package/dist/client/assets/{alert-dialog-D1rj4aCK.js → alert-dialog-DQCfLTeL.js} +1 -1
- package/dist/client/assets/app-editor-CRIIKlDH.js +1 -0
- package/dist/client/assets/{auth-CoZ_uLWv.js → auth-BR3kunRm.js} +1 -1
- package/dist/client/assets/{auth-catchall-gtW4LUF8.js → auth-catchall-BMkEHnr7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-ubD2g2LB.js → auth-split-layout-CKdvz2MS.js} +1 -1
- package/dist/client/assets/{automation-list-row-BI0nMiQE.js → automation-list-row-D0LrxtQM.js} +1 -1
- package/dist/client/assets/{automation-runs-DkxIxGFl.js → automation-runs-sZhsYDdn.js} +1 -1
- package/dist/client/assets/{automations-P2Rmg-KW.js → automations-Cjr8mJZr.js} +1 -1
- package/dist/client/assets/{avatar-B9Rc9EUw.js → avatar-I3WwYEoT.js} +1 -1
- package/dist/client/assets/{badge-CHEpx28S.js → badge-B0F_sgaz.js} +1 -1
- package/dist/client/assets/{brand-context-CnXcQYQU.js → brand-context-AsrwXDeK.js} +1 -1
- package/dist/client/assets/{buckets-DDp0mVPy.js → buckets-D9xOFAgF.js} +1 -1
- package/dist/client/assets/{calendar-DghLpU44.js → calendar-5jwZC3XX.js} +1 -1
- package/dist/client/assets/{capability-load-error-BHy5hyOG.js → capability-load-error-vjCbAJOq.js} +1 -1
- package/dist/client/assets/{card-Coyfi-jZ.js → card-BFRGLx6P.js} +1 -1
- package/dist/client/assets/{chat-context-DgDbSHT-.js → chat-context-DZNmbrat.js} +1 -1
- package/dist/client/assets/{checkbox-CUxwz-XI.js → checkbox-DInBbeSC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BtcIy2e1.js → cli-auth-success-Cu93Pf3C.js} +1 -1
- package/dist/client/assets/{collection-detail-CwOqNemJ.js → collection-detail-BlvXfl8F.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bzvi-K9j.js → collection-display-button-CcexmhB5.js} +1 -1
- package/dist/client/assets/{collection-search-BOTBd9nH.js → collection-search-ykImYcNC.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DFw9302z.js → collection-table-wrapper-ubGqDv-6.js} +1 -1
- package/dist/client/assets/{collection-tabs-DutpbC-B.js → collection-tabs-BlMNH4hh.js} +1 -1
- package/dist/client/assets/{collections-B4qynpTl.js → collections-C6Af1Q9d.js} +1 -1
- package/dist/client/assets/{command-BV689sDo.js → command-CVb7Xyz-.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Bt_ZSEjM.js → connect-desktop-dialog-BFdzqeA3.js} +1 -1
- package/dist/client/assets/{connection-card-BeSS5FDA.js → connection-card-Dpl0Au98.js} +1 -1
- package/dist/client/assets/{connection-detail-CpBssSKg.js → connection-detail-GZegjuob.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DJLyD-fy.js → connection-form-helpers-CQ-0zB3Z.js} +1 -1
- package/dist/client/assets/{connections-CXNczWT3.js → connections-CLnO7l3E.js} +1 -1
- package/dist/client/assets/{decopilot-MIVpVAhi.js → decopilot-IEJmKYNS.js} +1 -1
- package/dist/client/assets/decopilot-sse-pool-BTIZKXdE.js +1 -0
- package/dist/client/assets/{dialog-DQXXelJD.js → dialog-BNTma1n7.js} +1 -1
- package/dist/client/assets/{domain-settings-Bfk16G5p.js → domain-settings-qDqN6DsU.js} +1 -1
- package/dist/client/assets/{drawer-DPsQ_RSi.js → drawer-BFu_Vykr.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DE0jtqcA.js → dropdown-menu-BPajkRHT.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-B6SLKYUw.js → dynamic-plugin-layout-CxYTTzo3.js} +1 -1
- package/dist/client/assets/{empty-state-DkmJ5Aqv.js → empty-state-DQQwJkAH.js} +1 -1
- package/dist/client/assets/{empty-state-DjKgE-Pk.js → empty-state-pMCkbkbn.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BlNJcpyN.js → extract-connection-data-EpMFgcjc.js} +1 -1
- package/dist/client/assets/{features-BLPRBAAS.js → features-BZKr28L7.js} +1 -1
- package/dist/client/assets/{file-explorer-BrHhoR9d.js → file-explorer-BuBL2stT.js} +1 -1
- package/dist/client/assets/{file-type-icon-B4sc4oJu.js → file-type-icon-CjY-L87B.js} +1 -1
- package/dist/client/assets/{files-Bp-rzOpe.js → files-CgSwSC5P.js} +1 -1
- package/dist/client/assets/{form-544HFX7E.js → form-D08b7dFe.js} +1 -1
- package/dist/client/assets/{general-SURYQd03.js → general-HwaMhz2i.js} +1 -1
- package/dist/client/assets/{generate-id-DWTKLmsP.js → generate-id-BPoX5AZG.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CAJFaa_5.js → github-repo-picker-Bv5u83FS.js} +1 -1
- package/dist/client/assets/{header-tab-button-nXsETNd4.js → header-tab-button-DWUYKjvd.js} +1 -1
- package/dist/client/assets/{hover-card-CFl8ktry.js → hover-card-CM7471N3.js} +1 -1
- package/dist/client/assets/{image-field-BGI67qng.js → image-field-DRWjALOn.js} +1 -1
- package/dist/client/assets/{index-BJW2k06q.js → index-BCN4LBSr.js} +4 -4
- package/dist/client/assets/{index-C7hbEX42.js → index-Bu0ZznB2.js} +1 -1
- package/dist/client/assets/{index-TDcAzuSs.js → index-C2WXOm5m.js} +1 -1
- package/dist/client/assets/{index-La6GAxQQ.js → index-CRu4VNhf.js} +1 -1
- package/dist/client/assets/{index-bvkMWHxC.js → index-CYfMTPm6.js} +1 -1
- package/dist/client/assets/{index-yJUFKnzQ.js → index-C_5MF2Y3.js} +1 -1
- package/dist/client/assets/{index-BiPry9Eg.js → index-CxFf1mIw.js} +1 -1
- package/dist/client/assets/{index-CQPehUqM.js → index-D-XyK333.js} +1 -1
- package/dist/client/assets/{index-8tXBMeIK.js → index-DJxRbue6.js} +3 -3
- package/dist/client/assets/{index-CwhrOxXk.js → index-DcLhl-5Q.js} +1 -1
- package/dist/client/assets/{index-C1_XAkwo.js → index-SEyWzaM3.js} +1 -1
- package/dist/client/assets/{index-BRoAqb49.js → index-UEt8s5KD.js} +1 -1
- package/dist/client/assets/{index-NDFo3Mew.js → index-UuGgKIpr.js} +1 -1
- package/dist/client/assets/{index-BZA2K9l8.js → index-dgPRflW5.js} +1 -1
- package/dist/client/assets/{index-BWEcSbo6.js → index-qpz1aTWR.js} +1 -1
- package/dist/client/assets/{index-redirect-BYnxpCc2.js → index-redirect-Bgc0AzrY.js} +1 -1
- package/dist/client/assets/{input-C4KTJyA0.js → input-DrBjEN1K.js} +1 -1
- package/dist/client/assets/{integration-icon-BykvWwAZ.js → integration-icon-CBmdz72e.js} +1 -1
- package/dist/client/assets/{label-BHauIX0M.js → label-DPtACVyH.js} +1 -1
- package/dist/client/assets/{layout-lz847Nyb.js → layout-ChSwM-QK.js} +1 -1
- package/dist/client/assets/{login-CLS37Owv.js → login-lrwL4f_O.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BOevDVjh.js → mcp-oauth-COFe1Qcp.js} +1 -1
- package/dist/client/assets/{members-CfcfbKhF.js → members-BaLik2bf.js} +1 -1
- package/dist/client/assets/{monaco-editor-CthqrNYr.js → monaco-editor-D9q3BMcP.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CqZVa71v.js → monitoring-stats-row-DK9_KPle.js} +1 -1
- package/dist/client/assets/{oauth-callback-BZ0HY_I9.js → oauth-callback-D8hDCZsz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cl1KMX--.js → oauth-callback-ai-provider-ClG2kZkP.js} +1 -1
- package/dist/client/assets/{onboarding-ruQ3ExNI.js → onboarding-D-nWMG3s.js} +1 -1
- package/dist/client/assets/{org-install-4mo6vwWZ.js → org-install-CSh2gL1g.js} +1 -1
- package/dist/client/assets/{org-layout-Bk_DX0xY.js → org-layout-BzdyjBgb.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CtDHjWlv.js → org-plugin-layout-hz3PdzSx.js} +1 -1
- package/dist/client/assets/{page-seo-form-BCeF78ys.js → page-seo-form-o10VY06i.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DQlXJBao.js +1 -0
- package/dist/client/assets/{pair-C7vZKi4N.js → pair-B3JvusRD.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B9oNmWVA.js → plugin-empty-state-qUc9EE_w.js} +1 -1
- package/dist/client/assets/{plugin-header-DLHKmNhY.js → plugin-header-Wee2-vBE.js} +1 -1
- package/dist/client/assets/{plugin-layout-D6Br2fpA.js → plugin-layout-DQH5MxMz.js} +1 -1
- package/dist/client/assets/{popover-DJWCo8Vd.js → popover-CxSOgrnQ.js} +1 -1
- package/dist/client/assets/{post-editor-Dlsk3kzy.js → post-editor-49rnCC5W.js} +1 -1
- package/dist/client/assets/{primitives-HSATajDh.js → primitives-DIR4NDi7.js} +1 -1
- package/dist/client/assets/{profile-DqSdE9wJ.js → profile-CnzeSYsG.js} +1 -1
- package/dist/client/assets/project-app-view-D4KDZyfT.js +1 -0
- package/dist/client/assets/record-editor-U1lNDcKg.js +1 -0
- package/dist/client/assets/registry-C-XSpMct.js +2 -0
- package/dist/client/assets/{registry-layout-C4BBelJQ.js → registry-layout-BbZF87a1.js} +1 -1
- package/dist/client/assets/{require-capability-DmyLmLDX.js → require-capability-CP41TlGl.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dxuok_Oj.js → required-auth-layout-Bakgp2v2.js} +1 -1
- package/dist/client/assets/{reset-password-CV_mxpkk.js → reset-password-ZxK_LvZM.js} +1 -1
- package/dist/client/assets/{resizable-C7mpEwlp.js → resizable-C-hPk_F_.js} +1 -1
- package/dist/client/assets/{roles-oRuXLnwx.js → roles-D7m3YYSg.js} +1 -1
- package/dist/client/assets/save-referenced-block-DXNQX0iw.js +1 -0
- package/dist/client/assets/{save-status-BgSlaaCs.js → save-status-CLNRCBUu.js} +1 -1
- package/dist/client/assets/{schema-form-Da4995bk.js → schema-form-B2H-b_em.js} +1 -1
- package/dist/client/assets/{scroll-area-CmHcbXMX.js → scroll-area-KSI08Bdg.js} +1 -1
- package/dist/client/assets/{search-input-B9MwoGwA.js → search-input-LClJsC0R.js} +1 -1
- package/dist/client/assets/{secrets-BAMGlxeq.js → secrets-DakIQ3h4.js} +1 -1
- package/dist/client/assets/{sections-editor-D3ApReLv.js → sections-editor-BlwTeLMB.js} +1 -1
- package/dist/client/assets/{select-LnPBQlwq.js → select-BD3-KIUg.js} +1 -1
- package/dist/client/assets/{select-model-ePGHlOjM.js → select-model-Dbbl0Ax5.js} +1 -1
- package/dist/client/assets/{seo-editor-C6Dd35Oh.js → seo-editor-CRarakJm.js} +1 -1
- package/dist/client/assets/{settings-layout-mD1kpjDi.js → settings-layout-C6Td3mdo.js} +1 -1
- package/dist/client/assets/{settings-section-k7IrKbz0.js → settings-section-ooondd_C.js} +1 -1
- package/dist/client/assets/{sheet-Da8oGaXl.js → sheet-BB5BvZRD.js} +1 -1
- package/dist/client/assets/{shell-controls-Ce3YbGzv.js → shell-controls-BYqwKGk9.js} +1 -1
- package/dist/client/assets/{shell-layout-BppWbDed.js → shell-layout-C11kPZct.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CHDF1PQc.js → shell-route-loading-D23tu6UU.js} +1 -1
- package/dist/client/assets/{sidebar-Dq7ywuwS.js → sidebar-DQGireBE.js} +1 -1
- package/dist/client/assets/{skeleton-Bs5gkyp5.js → skeleton-C_PdNCnO.js} +1 -1
- package/dist/client/assets/{sortable.esm-4vTXIsSP.js → sortable.esm-DATKg__i.js} +1 -1
- package/dist/client/assets/{spinner-X0P6H8XF.js → spinner-ph9V8K3G.js} +1 -1
- package/dist/client/assets/{sso-DAt1PrT3.js → sso-CVFsn2i8.js} +1 -1
- package/dist/client/assets/{store-CFDS2nCg.js → store-C6H7hDrQ.js} +1 -1
- package/dist/client/assets/store-registry-B9IEgjs2.js +2 -0
- package/dist/client/assets/{studio-tools-DA1cqt_R.js → studio-tools-CyXwEskA.js} +1 -1
- package/dist/client/assets/{switch-BfYG3ZgX.js → switch-BwW6aBRl.js} +1 -1
- package/dist/client/assets/{tab-id-D-V9CLoC.js → tab-id-DBFKLiy5.js} +1 -1
- package/dist/client/assets/{table-iiadVZtP.js → table-DRZq5QeC.js} +1 -1
- package/dist/client/assets/{tabs-C3ewzjce.js → tabs-DS796tVx.js} +1 -1
- package/dist/client/assets/{task-status-8O-9w38P.js → task-status-Rw4KZiD7.js} +1 -1
- package/dist/client/assets/{textarea-CSY57hUQ.js → textarea-H9HcvvO3.js} +1 -1
- package/dist/client/assets/{toggle-group-BMs6XIZt.js → toggle-group-DEp8BrmP.js} +1 -1
- package/dist/client/assets/{toolbar-RrHrj-wA.js → toolbar-CGZIlwHR.js} +1 -1
- package/dist/client/assets/{tools-list-BZ21f-qw.js → tools-list-2oZSXDvR.js} +1 -1
- package/dist/client/assets/{tooltip-C5K2_SxZ.js → tooltip-BsiBfMRx.js} +1 -1
- package/dist/client/assets/{types-By3Vc6ET.js → types-BDYvGU56.js} +1 -1
- package/dist/client/assets/{use-ai-providers-yQU6QFt7.js → use-ai-providers-CLGsHtDy.js} +1 -1
- package/dist/client/assets/{use-automations-EnJ_KtpR.js → use-automations-BFkAWLBs.js} +1 -1
- package/dist/client/assets/{use-capability-IPmcsvJ7.js → use-capability-BgmZSEFV.js} +1 -1
- package/dist/client/assets/{use-clock-tick--JSADwca.js → use-clock-tick-CaCQW7f3.js} +1 -1
- package/dist/client/assets/{use-collections-gQX1aIBb.js → use-collections-LXN6LFio.js} +1 -1
- package/dist/client/assets/{use-connection-3AMSWY4d.js → use-connection-DBT-O2Ot.js} +1 -1
- package/dist/client/assets/{use-copy-BrRxB_CX.js → use-copy-Be1923zu.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DbJaPibs.js → use-create-virtual-mcp-CUFB7E50.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-9Ai91Koh.js → use-debounced-autosave-Dl4w5-6p.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DFI3Wjrd.js → use-delete-connection-BgQev1Df.js} +1 -1
- package/dist/client/assets/{use-file-configs-CgPTWHYk.js → use-file-configs-D8QyTqtG.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BdWMzn-I.js → use-infinite-scroll-DmcTgb_Z.js} +1 -1
- package/dist/client/assets/{use-list-state-C_Png9rc.js → use-list-state-COdpgZQx.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DNWGF-S6.js → use-mcp-client-DEVh0wrA.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BFE67i8g.js → use-mcp-prompts-wVJtCACz.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DCnrwBcx.js → use-mcp-tools-Do5DPz0G.js} +1 -1
- package/dist/client/assets/{use-members-DdhBt1i2.js → use-members-Dyv5s6Ln.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BGaWNHVu.js → use-navigate-to-agent-em-bmKWL.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BKj503w6.js → use-org-auth-client-RfCN5nxl.js} +1 -1
- package/dist/client/assets/{use-org-sso-DcIpAKt9.js → use-org-sso-Dn-IiDHF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-mEVELLYq.js → use-organization-roles-BsAcGhUy.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D-mp9Nom.js → use-organization-settings-BmyIHq31.js} +1 -1
- package/dist/client/assets/{use-registry-connections-UDMbBrhr.js → use-registry-connections-R7xxuxMJ.js} +1 -1
- package/dist/client/assets/{use-secrets-CCok2kdj.js → use-secrets-a1pHbRuq.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-cdLbOI.js → use-status-sounds-jx0BT_gy.js} +1 -1
- package/dist/client/assets/{use-view-mode-DggEE1xi.js → use-view-mode-BORPaXws.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C8Cvizcb.js → use-virtual-mcp-CsBEf_ak.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-e_b9pntx.js +1 -0
- package/dist/client/assets/{useRouterState-Bu9FaaK6.js → useRouterState-CpJi3eeH.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CAwDmp_D.js +1 -0
- package/dist/client/assets/{user-vuU-47pc.js → user-CBCnDRYu.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CSvU0t8g.js → view-mode-toggle-CI6odJEz.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CI_P_tLE.js → watch-sse-pool-LhxM1ddy.js} +1 -1
- package/dist/client/assets/{workflow-BRFJAXXv.js → workflow-BgPeOS0D.js} +1 -1
- package/dist/client/assets/workflow-detail-CWUm2dJS.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +348 -348
- package/dist/server/server.js +233 -233
- package/package.json +1 -1
- package/dist/client/assets/app-editor-CIhW2hZX.js +0 -1
- package/dist/client/assets/decopilot-sse-pool-DysvnVnY.js +0 -1
- package/dist/client/assets/page-seo-sheet-DEGkKhJQ.js +0 -1
- package/dist/client/assets/project-app-view-C130Qk03.js +0 -1
- package/dist/client/assets/record-editor-ClcHc-Yc.js +0 -1
- package/dist/client/assets/registry-KKV5dp-0.js +0 -2
- package/dist/client/assets/save-referenced-block-C8W_58KS.js +0 -1
- package/dist/client/assets/store-registry-J5_Yu_3b.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BxZ0ZIEY.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BaHJXY7X.js +0 -1
- package/dist/client/assets/workflow-detail-BV03DzYj.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,r as b,c as g,j as u}from"./index-
|
|
1
|
+
import{e as h,r as b,c as g,j as u}from"./index-DJxRbue6.js";import{s as j}from"./Plus-C9BCwyU7.js";import{s as v}from"./Trash01-HFZG34bv.js";const A=700;function _(r,e,o){const t=h.c(6),s=A,[n,c]=b.useState(r),i=b.useRef(null);let l;t[0]!==s||t[1]!==e?(l=f=>{c(f),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>e(f),s)},t[0]=s,t[1]=e,t[2]=l):l=t[2];const d=l;let a;return t[3]!==n||t[4]!==d?(a=[n,d],t[3]=n,t[4]=d,t[5]=a):a=t[5],a}function k(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:i,onKeyDown:l,spellCheck:d,inputRef:a}=r,f=d===void 0?!0:d;let p;e[0]!==t?(p=y=>t(y.target.value),e[0]=t,e[1]=p):p=e[1];let m;e[2]!==n?(m=g("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=m):m=e[3];let x;return e[4]!==a||e[5]!==i||e[6]!==c||e[7]!==l||e[8]!==s||e[9]!==f||e[10]!==p||e[11]!==m||e[12]!==o?(x=u.jsx("textarea",{ref:a,value:o,onChange:p,onInput:T,onFocus:c,onBlur:i,onKeyDown:l,placeholder:s,spellCheck:f,rows:1,className:m}),e[4]=a,e[5]=i,e[6]=c,e[7]=l,e[8]=s,e[9]=f,e[10]=p,e[11]=m,e[12]=o,e[13]=x):x=e[13],x}function T(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function R(r){return typeof r=="string"?r:""}function z(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(j,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=u.jsxs("button",{type:"button",onClick:t,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function D(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u.jsx(v,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=u.jsx("button",{type:"button","aria-label":o,onClick:t,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=o,e[2]=t,e[3]=n):n=e[3],n}function E(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=u.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:o}),e[0]=o,e[1]=t):t=e[1],t}function S(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let i;e[0]!==c?(i=g("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=i):i=e[1];let l;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==i?(l=u.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:i,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=i,e[7]=l):l=e[7],l}function $(r){return r.preventDefault()}function B(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{z as A,E as F,k as I,D as R,S as T,B as p,R as s,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as V,j as t,b as D,G as R,C as q,Y as B,t as N,n as T}from"./index-
|
|
1
|
+
import{e as V,j as t,b as D,G as R,C as q,Y as B,t as N,n as T}from"./index-DJxRbue6.js";import{P as L}from"./index-qpz1aTWR.js";import{A as G}from"./avatar-I3WwYEoT.js";import{S as I}from"./switch-BwW6aBRl.js";import{d as U,S as Y,c as $,b as K}from"./select-BD3-KIUg.js";import{T as O,a as z}from"./toggle-group-DEp8BrmP.js";import{I as H}from"./input-DrBjEN1K.js";import{i as J}from"./Monitor01-Bz9bsY6F.js";import{n as M,a as Q}from"./Sun-C4ItnLzg.js";import{i as W}from"./Play-DUFgIaEa.js";import{u as X}from"./use-debounced-autosave-Dl4w5-6p.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-C_5MF2Y3.js";import{c as te,b as A,S as E,a as F}from"./settings-section-ooondd_C.js";import"./sidebar-DQGireBE.js";import"./LayoutLeft-BlcyI03M.js";import"./tooltip-BsiBfMRx.js";import"./sheet-BB5BvZRD.js";import"./X-Dz8XfAUE.js";import"./User01-GmyJVsk_.js";import"./Check-BE5llaCo.js";import"./ChevronDown-igtaXLHI.js";import"./ChevronUp-CEzo-UYH.js";import"./card-BFRGLx6P.js";import"./ArrowUpRight-zWQi9yeG.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const b=v?.name??"U";let i;e[4]!==b||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(G,{url:p,fallback:b,shape:"circle",size:"base"})}),e[4]=b,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(H,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const j=v?.email;let r;e[13]!==j?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:j})}),e[13]=j,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(J,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(O,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let b;e[13]!==p||e[14]!==s.enableNotifications?(b=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=b):b=e[15];let i;e[16]!==m||e[17]!==b?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:b}),e[16]=m,e[17]=b,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let j;e[23]!==o?(j=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=j):j=e[24];let r;e[25]!==s.enableSounds||e[26]!==j?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:j})]}),e[25]=s.enableSounds,e[26]=j,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let P;e[37]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=P):P=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[P,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let C;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(C=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(U,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=C):C=e[42];let w;return e[43]!==u||e[44]!==C||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,C]})}),e[43]=u,e[44]=C,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{De as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as H,p as $,j}from"./index-DJxRbue6.js";import{h as v,g as O,s as b}from"./pair-B3JvusRD.js";import{u as L}from"./use-mcp-client-DEVh0wrA.js";import{a as q,c as B}from"./use-mcp-tools-Do5DPz0G.js";import{c as Y}from"./content-blocks-o63cs2vh.js";import{g as k,M as G,a as E}from"./types-BDYvGU56.js";import{a as V,c as z}from"./chat-context-DZNmbrat.js";import{u as F}from"./shell-layout-C11kPZct.js";import"./agent-icon-iCRxqonQ.js";import"./AlertCircle-BhiQLzAa.js";import"./Tool01-DnoUjwuW.js";import"./SwitchHorizontal01-iSGzLP3G.js";import"./RefreshCcw01-DcRdM_Fc.js";import"./XCircle-THthyWG1.js";import"./ArrowUpRight-zWQi9yeG.js";import"./ZapSquare-C-w_2LWP.js";import"./Users03-CsJCzoB9.js";import"./CheckCircle-BZzInqah.js";import"./Check-BE5llaCo.js";import"./ChevronDown-igtaXLHI.js";import"./ChevronLeft-D7ypV5AW.js";import"./ChevronRight-B2MPJG0Y.js";import"./ChevronUp-CEzo-UYH.js";import"./DotsVertical-Bqz0rpkg.js";import"./Container-DxPsYKnX.js";import"./Eye-DeAUvKsB.js";import"./ZoomOut-DC7naWv-.js";import"./Globe01-9a7DzMR4.js";import"./FilterLines-LorPzSpm.js";import"./Star01-DVJ2VIkN.js";import"./Palette-cOZdFvCP.js";import"./HardDrive-D6xAeAT3.js";import"./Stars02-EFTlH55e.js";import"./Key01-z4ZY9P3F.js";import"./LayoutLeft-BlcyI03M.js";import"./LinkExternal01-wGfNOyG-.js";import"./Monitor01-Bz9bsY6F.js";import"./Sun-C4ItnLzg.js";import"./Play-DUFgIaEa.js";import"./Plus-C9BCwyU7.js";import"./SearchMd-DL_JjGfK.js";import"./Settings02-B67J_b-Z.js";import"./Shield01-12NhwCwh.js";import"./Stars01-Csutpvum.js";import"./Trash01-HFZG34bv.js";import"./Upload01-D0zblu1D.js";import"./User01-GmyJVsk_.js";import"./Users01-D_irbv8j.js";import"./XClose-9eaBHjn_.js";import"./X-Dz8XfAUE.js";import"./Zap-4WoTcb5S.js";import"./use-clock-tick-CaCQW7f3.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-KSI08Bdg.js";import"./select-BD3-KIUg.js";import"./tooltip-BsiBfMRx.js";import"./use-copy-Be1923zu.js";import"./file-type-icon-CjY-L87B.js";import"./dialog-BNTma1n7.js";import"./tab-id-DBFKLiy5.js";import"./watch-sse-pool-LhxM1ddy.js";import"./decopilot-sse-pool-BTIZKXdE.js";import"./studio-tools-CyXwEskA.js";import"./integration-icon-CBmdz72e.js";import"./use-virtual-mcp-CsBEf_ak.js";import"./use-collections-LXN6LFio.js";import"./use-navigate-to-agent-em-bmKWL.js";import"./use-connection-DBT-O2Ot.js";import"./use-mcp-prompts-wVJtCACz.js";import"./form-D08b7dFe.js";import"./label-DPtACVyH.js";import"./input-DrBjEN1K.js";import"./spinner-ph9V8K3G.js";import"./auth-BR3kunRm.js";import"./use-ai-providers-CLGsHtDy.js";import"./use-organization-settings-BmyIHq31.js";import"./avatar-I3WwYEoT.js";import"./required-auth-layout-Bakgp2v2.js";import"./useRouterState-CpJi3eeH.js";import"./use-org-sso-Dn-IiDHF.js";const J={};function K(S){const t=H.c(37),{client:r,resourceURI:g,tool:e,connectionId:s,orgId:a,args:c}=S,{sendMessage:u}=V(),{setAppContext:d,clearAppContext:o}=z(),{setChatOpen:f,openTab:m}=F(),p=`${s}:${e.name}`;let l;t[0]!==m?(l=h=>h==="inline"?(m("0"),"inline"):"fullscreen",t[0]=m,t[1]=l):l=t[1];const i=l,n=c??J;let T;t[2]!==r||t[3]!==e.name||t[4]!==n?(T={client:r,toolName:e.name,toolArguments:n},t[2]=r,t[3]=e.name,t[4]=n,t[5]=T):T=t[5];const{data:x}=B(T);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=O(e._meta);R=b(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let I;t[9]!==e.inputSchema?(I=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=I):I=t[10];let N;t[11]!==U||t[12]!==I||t[13]!==e?(N={...e,name:U,inputSchema:I},t[11]=U,t[12]=I,t[13]=e,t[14]=N):N=t[14];const y=N;let _;t[15]!==u||t[16]!==f?(_=h=>{const w=Y(h.content);w.content.length>0&&(f(!0),u({tiptapDoc:w}))},t[15]=u,t[16]=f,t[17]=_):_=t[17];const D=_;let C;t[18]!==y?(C={tool:y},t[18]=y,t[19]=C):C=t[19];let M;t[20]!==d||t[21]!==p?(M=h=>d(p,h),t[20]=d,t[21]=p,t[22]=M):M=t[22];let P;t[23]!==o||t[24]!==p?(P=()=>o(p),t[23]=o,t[24]=p,t[25]=P):P=t[25];let A;return t[26]!==r||t[27]!==D||t[28]!==i||t[29]!==a||t[30]!==g||t[31]!==C||t[32]!==M||t[33]!==P||t[34]!==n||t[35]!==x?(A=j.jsx(G,{resourceURI:g,orgId:a,toolInfo:C,toolInput:n,toolResult:x,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:r,onMessage:D,onUpdateModelContext:M,onTeardown:P,onRequestDisplayMode:i,className:"h-full"}),t[26]=r,t[27]=D,t[28]=i,t[29]=a,t[30]=g,t[31]=C,t[32]=M,t[33]=P,t[34]=n,t[35]=x,t[36]=A):A=t[36],A}function Te(S){const t=H.c(20),{connectionId:r,toolName:g,args:e}=S,{org:s}=$();let a;t[0]!==r||t[1]!==s.id||t[2]!==s.slug?(a={connectionId:r,orgId:s.id,orgSlug:s.slug},t[0]=r,t[1]=s.id,t[2]=s.slug,t[3]=a):a=t[3];const c=L(a);let u;t[4]!==c?(u={client:c},t[4]=c,t[5]=u):u=t[5];const{data:d}=q(u);let o,f,m;t[6]!==g||t[7]!==d.tools?(o=v(decodeURIComponent(g)),m=d.tools.find(i=>i.name===o)??d.tools.find(i=>{const n=O(i._meta);if(!n)return!1;if(b(i.name,n)===o)return!0;const x=b(o,n);return x!==o&&i.name===x}),f=m?._meta?k(m._meta):void 0,t[6]=g,t[7]=d.tools,t[8]=o,t[9]=f,t[10]=m):(o=t[8],f=t[9],m=t[10]);const p=f;if(!m||!p){let i;return t[11]!==o?(i=j.jsx("div",{className:"flex items-center justify-center h-full w-full",children:j.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),t[11]=o,t[12]=i):i=t[12],i}let l;return t[13]!==e||t[14]!==c||t[15]!==r||t[16]!==s.id||t[17]!==p||t[18]!==m?(l=j.jsx(K,{client:c,resourceURI:p,tool:m,connectionId:r,orgId:s.id,args:e}),t[13]=e,t[14]=c,t[15]=r,t[16]=s.id,t[17]=p,t[18]=m,t[19]=l):l=t[19],l}export{Te as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as C,j as r}from"./index-DJxRbue6.js";import{I as F}from"./input-DrBjEN1K.js";import{L as T}from"./label-DPtACVyH.js";import{T as L}from"./textarea-H9HcvvO3.js";import{I as A}from"./image-field-DRWjALOn.js";import{ae as R,af as D,ah as J}from"./index-BCN4LBSr.js";import{u as K,s as S}from"./primitives-DIR4NDi7.js";import{S as M}from"./save-status-CLNRCBUu.js";import"./Tool01-DnoUjwuW.js";import"./Trash01-HFZG34bv.js";import"./Upload01-D0zblu1D.js";import"./AlertCircle-BhiQLzAa.js";import"./Check-BE5llaCo.js";import"./Eye-DeAUvKsB.js";import"./DotsVertical-Bqz0rpkg.js";import"./agent-icon-iCRxqonQ.js";import"./SwitchHorizontal01-iSGzLP3G.js";import"./RefreshCcw01-DcRdM_Fc.js";import"./XCircle-THthyWG1.js";import"./ArrowUpRight-zWQi9yeG.js";import"./ZapSquare-C-w_2LWP.js";import"./Users03-CsJCzoB9.js";import"./CheckCircle-BZzInqah.js";import"./ChevronDown-igtaXLHI.js";import"./ChevronLeft-D7ypV5AW.js";import"./ChevronRight-B2MPJG0Y.js";import"./ChevronUp-CEzo-UYH.js";import"./Container-DxPsYKnX.js";import"./ZoomOut-DC7naWv-.js";import"./Globe01-9a7DzMR4.js";import"./FilterLines-LorPzSpm.js";import"./Star01-DVJ2VIkN.js";import"./Palette-cOZdFvCP.js";import"./HardDrive-D6xAeAT3.js";import"./Stars02-EFTlH55e.js";import"./Key01-z4ZY9P3F.js";import"./LayoutLeft-BlcyI03M.js";import"./LinkExternal01-wGfNOyG-.js";import"./Monitor01-Bz9bsY6F.js";import"./Sun-C4ItnLzg.js";import"./Play-DUFgIaEa.js";import"./Plus-C9BCwyU7.js";import"./SearchMd-DL_JjGfK.js";import"./Settings02-B67J_b-Z.js";import"./Shield01-12NhwCwh.js";import"./Stars01-Csutpvum.js";import"./User01-GmyJVsk_.js";import"./Users01-D_irbv8j.js";import"./XClose-9eaBHjn_.js";import"./X-Dz8XfAUE.js";import"./Zap-4WoTcb5S.js";import"./dialog-BNTma1n7.js";import"./dropdown-menu-BPajkRHT.js";import"./skeleton-C_PdNCnO.js";import"./tabs-DS796tVx.js";import"./use-file-configs-D8QyTqtG.js";import"./studio-tools-CyXwEskA.js";import"./useInfiniteQuery-e_b9pntx.js";import"./use-infinite-scroll-DmcTgb_Z.js";import"./agent-capabilities-CX7B9V1k.js";import"./chat-context-DZNmbrat.js";import"./tab-id-DBFKLiy5.js";import"./use-mcp-client-DEVh0wrA.js";import"./auth-BR3kunRm.js";import"./watch-sse-pool-LhxM1ddy.js";import"./decopilot-sse-pool-BTIZKXdE.js";import"./use-virtual-mcp-CsBEf_ak.js";import"./use-collections-LXN6LFio.js";import"./use-ai-providers-CLGsHtDy.js";import"./use-organization-settings-BmyIHq31.js";import"./pair-B3JvusRD.js";import"./use-clock-tick-CaCQW7f3.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-KSI08Bdg.js";import"./select-BD3-KIUg.js";import"./tooltip-BsiBfMRx.js";import"./use-copy-Be1923zu.js";import"./file-type-icon-CjY-L87B.js";import"./content-blocks-o63cs2vh.js";import"./types-BDYvGU56.js";import"./shell-layout-C11kPZct.js";import"./avatar-I3WwYEoT.js";import"./required-auth-layout-Bakgp2v2.js";import"./useRouterState-CpJi3eeH.js";import"./use-org-sso-Dn-IiDHF.js";import"./integration-icon-CBmdz72e.js";import"./use-navigate-to-agent-em-bmKWL.js";import"./use-connection-DBT-O2Ot.js";import"./use-mcp-prompts-wVJtCACz.js";import"./form-D08b7dFe.js";import"./spinner-ph9V8K3G.js";import"./drawer-BFu_Vykr.js";import"./collection-search-ykImYcNC.js";import"./toggle-group-DEp8BrmP.js";import"./sortable.esm-DATKg__i.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Dpl0Au98.js";import"./use-registry-connections-R7xxuxMJ.js";import"./extract-connection-data-EpMFgcjc.js";import"./generate-id-BPoX5AZG.js";import"./collections-C6Af1Q9d.js";import"./card-BFRGLx6P.js";import"./collection-tabs-BlMNH4hh.js";import"./badge-B0F_sgaz.js";import"./connection-form-helpers-CQ-0zB3Z.js";import"./useSuspenseInfiniteQuery-CAwDmp_D.js";import"./mcp-oauth-COFe1Qcp.js";import"./connect-desktop-dialog-BFdzqeA3.js";import"./decopilot-IEJmKYNS.js";import"./checkbox-DInBbeSC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ooondd_C.js";import"./popover-CxSOgrnQ.js";import"./command-CVb7Xyz-.js";import"./index-CxFf1mIw.js";import"./index-UuGgKIpr.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-D23tu6UU.js";import"./sidebar-DQGireBE.js";import"./sheet-BB5BvZRD.js";import"./toolbar-CGZIlwHR.js";import"./use-create-virtual-mcp-CUFB7E50.js";import"./github-repo-picker-Bv5u83FS.js";import"./use-mcp-tools-Do5DPz0G.js";import"./alert-dialog-DQCfLTeL.js";import"./index-C_5MF2Y3.js";import"./use-org-auth-client-RfCN5nxl.js";import"./hover-card-CM7471N3.js";import"./task-status-Rw4KZiD7.js";import"./use-status-sounds-jx0BT_gy.js";import"./empty-state-pMCkbkbn.js";import"./resizable-C-hPk_F_.js";import"./use-capability-BgmZSEFV.js";import"./header-tab-button-DWUYKjvd.js";import"./index-CYfMTPm6.js";import"./user-CBCnDRYu.js";import"./tools-list-2oZSXDvR.js";import"./switch-BwW6aBRl.js";import"./use-debounced-autosave-Dl4w5-6p.js";import"./index-qpz1aTWR.js";import"./search-input-LClJsC0R.js";import"./use-secrets-a1pHbRuq.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-B2o3m3ys.js";import"./view-mode-toggle-CI6odJEz.js";import"./select-model-Dbbl0Ax5.js";import"./use-automations-BFkAWLBs.js";import"./monaco-editor-D9q3BMcP.js";import"./automation-runs-sZhsYDdn.js";import"./table-DRZq5QeC.js";import"./use-members-Dyv5s6Ln.js";import"./automation-list-row-D0LrxtQM.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}],categories:[{key:"name",label:"Name",widget:"text"},{key:"slug",label:"Slug",widget:"text",placeholder:"my-category"}]},q={authors:"Author",categories:"Category"};function Lr(P){const t=C.c(34),{orgSlug:v,virtualMcpId:j,branch:f,kind:p,blockKey:y,block:w}=P;let u;t[0]!==f||t[1]!==v||t[2]!==j?(u={orgSlug:v,virtualMcpId:j,branch:f},t[0]=f,t[1]=v,t[2]=j,t[3]=u):u=t[3];const m=R(u);let d;t[4]!==w||t[5]!==p?(d=D(w,p),t[4]=w,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==y||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:y,data:J(y,p,e)})},t[7]=y,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(A,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:x=>a(o.key,x),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(T,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:S(i[o.key]),onChange:x=>a(o.key,x.target.value),rows:3}):r.jsx(F,{id:o.key,value:S(i[o.key]),placeholder:o.placeholder,onChange:x=>a(o.key,x.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let g;t[29]!==c?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=g):g=t[30];let b;return t[31]!==g||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,g]}),t[31]=g,t[32]=n,t[33]=b):b=t[33],b}export{Lr as RecordEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BbZF87a1.js","assets/index-DJxRbue6.js","assets/index-DfYyH4IW.css","assets/XCircle-THthyWG1.js","assets/CheckCircle-BZzInqah.js","assets/Container-DxPsYKnX.js","assets/Settings02-B67J_b-Z.js","assets/use-mcp-client-DEVh0wrA.js","assets/auth-BR3kunRm.js","assets/useInfiniteQuery-e_b9pntx.js","assets/use-infinite-scroll-DmcTgb_Z.js","assets/studio-tools-CyXwEskA.js","assets/badge-B0F_sgaz.js","assets/input-DrBjEN1K.js","assets/dropdown-menu-BPajkRHT.js","assets/Check-BE5llaCo.js","assets/ChevronRight-B2MPJG0Y.js","assets/DotsVertical-Bqz0rpkg.js","assets/table-DRZq5QeC.js","assets/toggle-group-DEp8BrmP.js","assets/use-view-mode-BORPaXws.js","assets/tooltip-BsiBfMRx.js","assets/FilterLines-LorPzSpm.js","assets/Globe01-9a7DzMR4.js","assets/SearchMd-DL_JjGfK.js","assets/dialog-BNTma1n7.js","assets/X-Dz8XfAUE.js","assets/AlertCircle-BhiQLzAa.js","assets/Upload01-D0zblu1D.js","assets/alert-dialog-DQCfLTeL.js","assets/card-BFRGLx6P.js","assets/Trash01-HFZG34bv.js","assets/label-DPtACVyH.js","assets/select-BD3-KIUg.js","assets/ChevronDown-igtaXLHI.js","assets/ChevronUp-CEzo-UYH.js","assets/switch-BwW6aBRl.js","assets/textarea-H9HcvvO3.js","assets/RefreshCcw01-DcRdM_Fc.js","assets/checkbox-DInBbeSC.js","assets/Eye-DeAUvKsB.js","assets/LinkExternal01-wGfNOyG-.js","assets/use-copy-Be1923zu.js","assets/Key01-z4ZY9P3F.js","assets/Plus-C9BCwyU7.js","assets/mcp-oauth-COFe1Qcp.js","assets/Play-DUFgIaEa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{e as i,j as e,r as s,l as a,_ as o}from"./index-DJxRbue6.js";import{R as l}from"./require-capability-CP41TlGl.js";import"./use-capability-BgmZSEFV.js";import"./access-gate-XBdT3iPT.js";import"./capability-load-error-vjCbAJOq.js";const m=s.lazy(()=>o(()=>import("./registry-layout-BbZF87a1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Y,p as xe,m as Pe,F as _e,a as fe,n as V,r as M,j as t,B as G,l as Le,c as Z,bi as Bs,bj as Qs}from"./index-
|
|
1
|
+
import{e as Y,p as xe,m as Pe,F as _e,a as fe,n as V,r as M,j as t,B as G,l as Le,c as Z,bi as Bs,bj as Qs}from"./index-DJxRbue6.js";import{c as Zt,b as Vs,d as us,a as Gs,i as Ks,t as Ys,f as Hs,e as Ws}from"./XCircle-THthyWG1.js";import{i as Fe}from"./CheckCircle-BZzInqah.js";import{n as Js}from"./Container-DxPsYKnX.js";import{a as Zs}from"./Settings02-B67J_b-Z.js";import{a as ke,u as Ce,W as Xs}from"./use-mcp-client-DEVh0wrA.js";import{u as ms}from"./useInfiniteQuery-e_b9pntx.js";import{u as Se}from"./studio-tools-CyXwEskA.js";import{B as F}from"./badge-B0F_sgaz.js";import{I as le}from"./input-DrBjEN1K.js";import{a as ut,c as we,D as mt,b as xt,j as Xt,k as es,g as er}from"./dropdown-menu-BPajkRHT.js";import{c as Dt,d as Et,a as Be,e as oe,b as At,T as ce}from"./table-DRZq5QeC.js";import{T as tr,a as ts}from"./toggle-group-DEp8BrmP.js";import{u as sr}from"./use-view-mode-BORPaXws.js";import{i as $t}from"./DotsVertical-Bqz0rpkg.js";import{i as rr}from"./FilterLines-LorPzSpm.js";import{n as nr,i as xs}from"./Globe01-9a7DzMR4.js";import{i as ir}from"./SearchMd-DL_JjGfK.js";import{b as ht,c as pt,e as ft,d as gt,a as jt,D as vt}from"./dialog-BNTma1n7.js";import{i as Ye}from"./AlertCircle-BhiQLzAa.js";import{i as ss}from"./Upload01-D0zblu1D.js";import{c as He,b as We,d as Je,f as Ze,g as Xe,e as et,a as tt,A as st}from"./alert-dialog-DQCfLTeL.js";import{C as ne}from"./card-BFRGLx6P.js";import{s as rt}from"./Trash01-HFZG34bv.js";import{L as X}from"./label-DPtACVyH.js";import{d as lr,S as ar,a as or,b as cr,c as Rt}from"./select-BD3-KIUg.js";import{S as Ue}from"./switch-BwW6aBRl.js";import{T as bt}from"./textarea-H9HcvvO3.js";import{s as Ot,b as dr,i as ur,a as mr}from"./RefreshCcw01-DcRdM_Fc.js";import{i as xr}from"./X-Dz8XfAUE.js";import{t as hr}from"./ChevronDown-igtaXLHI.js";import{n as pr}from"./ChevronUp-CEzo-UYH.js";import{C as rs}from"./checkbox-DInBbeSC.js";import{s as hs,a as Tt}from"./Eye-DeAUvKsB.js";import{n as fr}from"./LinkExternal01-wGfNOyG-.js";import{u as gr}from"./use-infinite-scroll-DmcTgb_Z.js";import{u as It}from"./use-copy-Be1923zu.js";import{i as Pt}from"./Check-BE5llaCo.js";import{i as jr}from"./Key01-z4ZY9P3F.js";import{s as vr}from"./Plus-C9BCwyU7.js";import{T as br,a as yr,b as Nr}from"./tooltip-BsiBfMRx.js";import{i as wr,a as _r}from"./mcp-oauth-COFe1Qcp.js";import{i as Cr}from"./Play-DUFgIaEa.js";import"./auth-BR3kunRm.js";import"./ChevronRight-B2MPJG0Y.js";const Oe="private-registry",kr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|
package/dist/client/assets/{require-capability-DmyLmLDX.js → require-capability-CP41TlGl.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,j as m}from"./index-
|
|
1
|
+
import{e as p,j as m}from"./index-DJxRbue6.js";import{u as l}from"./use-capability-BgmZSEFV.js";import{A as u}from"./access-gate-XBdT3iPT.js";function b(n){const t=p.c(6),{capability:c,area:e,children:i}=n,{granted:a,loading:o,error:s}=l(c);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
|
package/dist/client/assets/{required-auth-layout-Dxuok_Oj.js → required-auth-layout-Bakgp2v2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-
|
|
1
|
+
import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-DJxRbue6.js";import{u as x}from"./useRouterState-CpJi3eeH.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-
|
|
1
|
+
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-DJxRbue6.js";import{I as L}from"./input-DrBjEN1K.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,aN as Sn,e as Me,j as he,c as Ye}from"./index-8tXBMeIK.js";import{d as Pn}from"./ZoomOut-v_pNeFH6.js";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const k={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"},_e=10,ne=f.useLayoutEffect,je=Sn.useId,wn=typeof je=="function"?je:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Ze({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:$,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:j,resizePanel:X,unregisterPanel:F}=E,G=Ge(l),N=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:M}=N.current,B={...M};N.current.id=G,N.current.idIsFromProps=l!==void 0,N.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,M.collapsedSize=t,M.collapsible=r,M.defaultSize=i,M.maxSize=a,M.minSize=s,(B.collapsedSize!==M.collapsedSize||B.collapsible!==M.collapsible||B.maxSize!==M.maxSize||B.minSize!==M.minSize)&&P(N.current,B)}),ne(()=>{const _=N.current;return j(_),()=>{F(_)}},[u,G,j,F]),f.useImperativeHandle(o,()=>({collapse:()=>{S(N.current)},expand:_=>{L(N.current,_)},getId(){return G},getSize(){return $(N.current)},isCollapsed(){return R(N.current)},isExpanded(){return!R(N.current)},resize:_=>{X(N.current,_)}}),[S,L,$,R,G,X]);const Z=D(N.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Z,...v},[k.groupId]:V,[k.panel]:"",[k.panelCollapsible]:r||void 0,[k.panelId]:G,[k.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Qe=f.forwardRef((n,e)=>f.createElement(Ze,{...n,forwardedRef:e}));Ze.displayName="Panel";Qe.displayName="forwardRef(Panel)";let De=null,Se=-1,Y=null;function Cn(n,e){if(e){const t=(e&on)!==0,r=(e&ln)!==0,i=(e&an)!==0,o=(e&sn)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){Y!==null&&(document.head.removeChild(Y),De=null,Y=null,Se=-1)}function Ae(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,Y===null&&(Y=document.createElement("style"),document.head.appendChild(Y)),Se>=0){var o;(o=Y.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=Y.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function en(n){return n.type==="keydown"}function nn(n){return n.type.startsWith("pointer")}function tn(n){return n.type.startsWith("mouse")}function Ce(n){if(nn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(tn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(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 An(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Nn(n){var e;const t=getComputedStyle((e=rn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function $n(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Nn(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"||kn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),$n(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=rn(n);return e}function rn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const on=1,ln=2,an=4,sn=8,Hn=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Mn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),un(e)||n.stopImmediatePropagation())}function ke(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function Ne(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),un(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function un(n){let e=n;for(;e;){if(e.hasAttribute(k.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=Hn?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&An(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function $e(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?Ae("intersection",t):n?Ae("horizontal",t):e?Ae("vertical",t):In()}let He=new AbortController;function Pe(){He.abort(),He=new AbortController;const n={capture:!0,signal:He.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Ne,n),r.addEventListener("pointerleave",ke,n),r.addEventListener("pointermove",ke,n))}),window.addEventListener("pointerup",Ne,n),window.addEventListener("pointercancel",Ne,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Mn,n),r.addEventListener("pointermove",ke,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function J(n,e,t=_e){return te(n,e,t)===0}function W(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!W(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(W(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!W(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!W(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const $=L+C,D=le({panelConstraints:t,panelIndex:S,size:$});if(W(L,D)||(C-=D-L,l[S]=D),W(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return W(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${k.resizeHandleId}][data-panel-group-id="${n}"]`))}function cn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(k.resizeHandleId)===e);return i??null}function fn(n,e,t){const r=cn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function dn(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 r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${k.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Fn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=dn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(k.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex($=>$.id===z);if(L>=0){const $=s[L];x($,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=$.constraints;if(D!=null&&R){const j=ge({delta:W(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(X=>X.constraints),pivotIndices:fn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==j&&l(j)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Oe(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 pn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function Wn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(k.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=pn(t,n),w=dn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function jn(n,e,t,r,i,o){if(en(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Wn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||J(p,h))&&!J(r,h)&&v(),u&&(p==null||!J(p,h))&&J(r,h)&&u())}})}function be(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 Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function qe(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 gn(n){return`react-resizable-panels:${n}`}function mn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function hn(n,e){try{const t=gn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function On(n,e,t){var r,i;const o=(r=hn(n,t))!==null&&r!==void 0?r:{},l=mn(e);return(i=o[l])!==null&&i!==void 0?i:null}function qn(n,e,t,r,i){var o;const l=gn(n),a=mn(e),s=(o=hn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function Xe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!W(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!W(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,W(i,0)))break}return t}const Xn=100,me={getItem:n=>(qe(me),me.getItem(n)),setItem:(n,e)=>{qe(me),me.setItem(n,e)}},Je={};function zn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),$=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=Xe({layout:c,panelConstraints:g.map(y=>y.constraints)});Oe(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,$.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Fn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Je[n];m==null&&(m=Vn(qn,Xn),Je[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const j=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(O=>O.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:H}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!J(I,y)){D.current.set(c.id,I);const q=ie(g,c)===g.length-1?I-y:y-I,A=ge({delta:q,initialLayout:b,panelConstraints:d,pivotIndices:H,prevLayout:b,trigger:"imperative-api"});be(b,A)||(S(A),P.current.layout=A,m&&m(A),oe(g,A,$.current))}}},[]),X=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:H=0,minSize:O=0,pivotIndices:q}=Q(d,c,g),A=m??O;if(J(H,I)){const K=D.current.get(c.id),de=K!=null&&K>=A?K:A,Le=ie(d,c)===d.length-1?H-de:de-H,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:q,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,$.current))}}},[]),F=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),N=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&J(y,g)},[]),Z=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const H=On(c,d,b);H&&(D.current=new Map(Object.entries(H.expandToSizes)),y=H.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=Xe({layout:y,panelConstraints:d.map(H=>H.constraints)});Oe(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,$.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const M=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:H,id:O,keyboardResizeBy:q,onLayout:A}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=H??{},Le=fn(O,c,y);let T=jn(d,c,I,H,q,y);const Fe=I==="horizontal";Fe&&m&&(T=-T);const vn=de.map(bn=>bn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:vn,pivotIndices:Le,prevLayout:K,trigger:en(d)?"keyboard":"mouse-or-touch"}),We=!be(K,pe);(nn(d)||tn(d))&&V.current!=T&&(V.current=T,!We&&T!==0?Fe?$e(c,T<0?on:ln):$e(c,T<0?an:sn):$e(c,0)),We&&(S(pe),P.current.layout=pe,A&&A(pe),oe(de,pe,$.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:H}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const q=ie(d,c)===d.length-1?I-m:m-I,A=ge({delta:q,initialLayout:g,panelConstraints:y,pivotIndices:H,prevLayout:g,trigger:"imperative-api"});be(g,A)||(S(A),P.current.layout=A,b&&b(A),oe(d,A,$.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:H,maxSize:O=100,minSize:q=0}=c.constraints,{panelSize:A}=Q(g,c,b);A!=null&&(y&&H&&J(A,d)?J(d,I)||B(c,I):A<q?B(c,q):A>O&&B(c,O))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=pn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete $.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:j,direction:r,dragState:z,expandPanel:X,getPanelSize:F,getPanelStyle:G,groupId:u,isPanelCollapsed:N,isPanelExpanded:Z,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:M,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[j,z,r,X,F,G,u,N,Z,se,_,M,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[k.group]:"",[k.groupDirection]:r,[k.groupId]:u}))}const yn=f.forwardRef((n,e)=>f.createElement(zn,{...n,forwardedRef:e}));zn.displayName="PanelGroup";yn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Jn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(k.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=cn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function xn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const $=f.useContext(Ee);if($===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:j,panelGroupElement:X}=$,F=Ge(i),[G,N]=f.useState("inactive"),[Z,_]=f.useState(!1),[M,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(F);B(()=>re)}},[t,F,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||M==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(F,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){N("inactive");return}switch(m){case"down":{N("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(F,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&N("hover"),x(g,'Expected event to be defined for "move" action'),M(g);break}case"up":{N("hover"),j();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,F,M,P,j]),Jn({disabled:t,handleId:F,resizeHandler:M,panelGroupElement:X});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[k.groupDirection]:D,[k.groupId]:V,[k.resizeHandle]:"",[k.resizeHandleActive]:G==="drag"?"pointer":Z?"keyboard":void 0,[k.resizeHandleEnabled]:!t,[k.resizeHandleId]:F,[k.resizeHandleState]:G})}xn.displayName="PanelResizeHandle";function Qn(n){const e=Me.c(10);let t,r,i;e[0]!==n?({className:t,ref:i,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==i||e[8]!==o?(l=he.jsx(yn,{ref:i,"data-slot":"resizable-panel-group",className:o,...r}),e[6]=r,e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function et(n){const e=Me.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(Qe,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=Me.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("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]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Pn,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(xn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};
|
|
1
|
+
import{r as f,aN as Sn,e as Me,j as he,c as Ye}from"./index-DJxRbue6.js";import{d as Pn}from"./ZoomOut-DC7naWv-.js";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const k={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"},_e=10,ne=f.useLayoutEffect,je=Sn.useId,wn=typeof je=="function"?je:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Ze({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:$,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:j,resizePanel:X,unregisterPanel:F}=E,G=Ge(l),N=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:M}=N.current,B={...M};N.current.id=G,N.current.idIsFromProps=l!==void 0,N.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,M.collapsedSize=t,M.collapsible=r,M.defaultSize=i,M.maxSize=a,M.minSize=s,(B.collapsedSize!==M.collapsedSize||B.collapsible!==M.collapsible||B.maxSize!==M.maxSize||B.minSize!==M.minSize)&&P(N.current,B)}),ne(()=>{const _=N.current;return j(_),()=>{F(_)}},[u,G,j,F]),f.useImperativeHandle(o,()=>({collapse:()=>{S(N.current)},expand:_=>{L(N.current,_)},getId(){return G},getSize(){return $(N.current)},isCollapsed(){return R(N.current)},isExpanded(){return!R(N.current)},resize:_=>{X(N.current,_)}}),[S,L,$,R,G,X]);const Z=D(N.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Z,...v},[k.groupId]:V,[k.panel]:"",[k.panelCollapsible]:r||void 0,[k.panelId]:G,[k.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Qe=f.forwardRef((n,e)=>f.createElement(Ze,{...n,forwardedRef:e}));Ze.displayName="Panel";Qe.displayName="forwardRef(Panel)";let De=null,Se=-1,Y=null;function Cn(n,e){if(e){const t=(e&on)!==0,r=(e&ln)!==0,i=(e&an)!==0,o=(e&sn)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){Y!==null&&(document.head.removeChild(Y),De=null,Y=null,Se=-1)}function Ae(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,Y===null&&(Y=document.createElement("style"),document.head.appendChild(Y)),Se>=0){var o;(o=Y.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=Y.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function en(n){return n.type==="keydown"}function nn(n){return n.type.startsWith("pointer")}function tn(n){return n.type.startsWith("mouse")}function Ce(n){if(nn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(tn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(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 An(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const kn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Nn(n){var e;const t=getComputedStyle((e=rn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function $n(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Nn(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"||kn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),$n(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=rn(n);return e}function rn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const on=1,ln=2,an=4,sn=8,Hn=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Mn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),un(e)||n.stopImmediatePropagation())}function ke(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function Ne(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),un(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function un(n){let e=n;for(;e;){if(e.hasAttribute(k.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=Hn?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&An(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function $e(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?Ae("intersection",t):n?Ae("horizontal",t):e?Ae("vertical",t):In()}let He=new AbortController;function Pe(){He.abort(),He=new AbortController;const n={capture:!0,signal:He.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Ne,n),r.addEventListener("pointerleave",ke,n),r.addEventListener("pointermove",ke,n))}),window.addEventListener("pointerup",Ne,n),window.addEventListener("pointercancel",Ne,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Mn,n),r.addEventListener("pointermove",ke,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function J(n,e,t=_e){return te(n,e,t)===0}function W(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!W(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(W(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!W(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!W(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const $=L+C,D=le({panelConstraints:t,panelIndex:S,size:$});if(W(L,D)||(C-=D-L,l[S]=D),W(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return W(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${k.resizeHandleId}][data-panel-group-id="${n}"]`))}function cn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(k.resizeHandleId)===e);return i??null}function fn(n,e,t){const r=cn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function dn(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 r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${k.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Fn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=dn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(k.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex($=>$.id===z);if(L>=0){const $=s[L];x($,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=$.constraints;if(D!=null&&R){const j=ge({delta:W(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(X=>X.constraints),pivotIndices:fn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==j&&l(j)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Oe(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 pn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function Wn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(k.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=pn(t,n),w=dn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function jn(n,e,t,r,i,o){if(en(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Wn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||J(p,h))&&!J(r,h)&&v(),u&&(p==null||!J(p,h))&&J(r,h)&&u())}})}function be(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 Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function qe(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 gn(n){return`react-resizable-panels:${n}`}function mn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function hn(n,e){try{const t=gn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function On(n,e,t){var r,i;const o=(r=hn(n,t))!==null&&r!==void 0?r:{},l=mn(e);return(i=o[l])!==null&&i!==void 0?i:null}function qn(n,e,t,r,i){var o;const l=gn(n),a=mn(e),s=(o=hn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function Xe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!W(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!W(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,W(i,0)))break}return t}const Xn=100,me={getItem:n=>(qe(me),me.getItem(n)),setItem:(n,e)=>{qe(me),me.setItem(n,e)}},Je={};function zn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),$=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=Xe({layout:c,panelConstraints:g.map(y=>y.constraints)});Oe(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,$.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Fn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Je[n];m==null&&(m=Vn(qn,Xn),Je[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const j=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(O=>O.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:H}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!J(I,y)){D.current.set(c.id,I);const q=ie(g,c)===g.length-1?I-y:y-I,A=ge({delta:q,initialLayout:b,panelConstraints:d,pivotIndices:H,prevLayout:b,trigger:"imperative-api"});be(b,A)||(S(A),P.current.layout=A,m&&m(A),oe(g,A,$.current))}}},[]),X=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:H=0,minSize:O=0,pivotIndices:q}=Q(d,c,g),A=m??O;if(J(H,I)){const K=D.current.get(c.id),de=K!=null&&K>=A?K:A,Le=ie(d,c)===d.length-1?H-de:de-H,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:q,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,$.current))}}},[]),F=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),N=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&J(y,g)},[]),Z=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const H=On(c,d,b);H&&(D.current=new Map(Object.entries(H.expandToSizes)),y=H.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=Xe({layout:y,panelConstraints:d.map(H=>H.constraints)});Oe(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,$.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const M=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:H,id:O,keyboardResizeBy:q,onLayout:A}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=H??{},Le=fn(O,c,y);let T=jn(d,c,I,H,q,y);const Fe=I==="horizontal";Fe&&m&&(T=-T);const vn=de.map(bn=>bn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:vn,pivotIndices:Le,prevLayout:K,trigger:en(d)?"keyboard":"mouse-or-touch"}),We=!be(K,pe);(nn(d)||tn(d))&&V.current!=T&&(V.current=T,!We&&T!==0?Fe?$e(c,T<0?on:ln):$e(c,T<0?an:sn):$e(c,0)),We&&(S(pe),P.current.layout=pe,A&&A(pe),oe(de,pe,$.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:H}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const q=ie(d,c)===d.length-1?I-m:m-I,A=ge({delta:q,initialLayout:g,panelConstraints:y,pivotIndices:H,prevLayout:g,trigger:"imperative-api"});be(g,A)||(S(A),P.current.layout=A,b&&b(A),oe(d,A,$.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:H,maxSize:O=100,minSize:q=0}=c.constraints,{panelSize:A}=Q(g,c,b);A!=null&&(y&&H&&J(A,d)?J(d,I)||B(c,I):A<q?B(c,q):A>O&&B(c,O))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=pn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete $.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:j,direction:r,dragState:z,expandPanel:X,getPanelSize:F,getPanelStyle:G,groupId:u,isPanelCollapsed:N,isPanelExpanded:Z,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:M,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[j,z,r,X,F,G,u,N,Z,se,_,M,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[k.group]:"",[k.groupDirection]:r,[k.groupId]:u}))}const yn=f.forwardRef((n,e)=>f.createElement(zn,{...n,forwardedRef:e}));zn.displayName="PanelGroup";yn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Jn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(k.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=cn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function xn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const $=f.useContext(Ee);if($===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:j,panelGroupElement:X}=$,F=Ge(i),[G,N]=f.useState("inactive"),[Z,_]=f.useState(!1),[M,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(F);B(()=>re)}},[t,F,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||M==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(F,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){N("inactive");return}switch(m){case"down":{N("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(F,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&N("hover"),x(g,'Expected event to be defined for "move" action'),M(g);break}case"up":{N("hover"),j();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,F,M,P,j]),Jn({disabled:t,handleId:F,resizeHandler:M,panelGroupElement:X});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[k.groupDirection]:D,[k.groupId]:V,[k.resizeHandle]:"",[k.resizeHandleActive]:G==="drag"?"pointer":Z?"keyboard":void 0,[k.resizeHandleEnabled]:!t,[k.resizeHandleId]:F,[k.resizeHandleState]:G})}xn.displayName="PanelResizeHandle";function Qn(n){const e=Me.c(10);let t,r,i;e[0]!==n?({className:t,ref:i,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=o):o=e[5];let l;return e[6]!==r||e[7]!==i||e[8]!==o?(l=he.jsx(yn,{ref:i,"data-slot":"resizable-panel-group",className:o,...r}),e[6]=r,e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function et(n){const e=Me.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(Qe,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=Me.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Ye("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]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Pn,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(xn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};
|