@lobu/runtime-server 24.5.0 → 24.7.0
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/catalogs/connectors.json +342 -4
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/linkedin-identity.ts +43 -0
- package/dist/connectors/linkedin.ts +154 -3
- package/dist/connectors/x-like-follow.ts +329 -0
- package/dist/connectors/x.ts +709 -80
- package/dist/dependencies.bun.lock +18 -18
- package/dist/owletto/dist/assets/_-CZgmjLR9.js +2 -0
- package/dist/owletto/dist/assets/_-Cm5OgtYD.js +3 -0
- package/dist/owletto/dist/assets/_agentId-Cci6NFc1.js +2 -0
- package/dist/owletto/dist/assets/_agentId-GhWTlPO2.js +2 -0
- package/dist/owletto/dist/assets/_automationId-KUlxSTK2.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-Zpy7Hvml.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-CYDRp9UX.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-NNqDdije.js +2 -0
- package/dist/owletto/dist/assets/_eventId-0BSX6VHj.js +2 -0
- package/dist/owletto/dist/assets/_owner-C-CD22NB.js +3 -0
- package/dist/owletto/dist/assets/_shape-CvXp4omb.js +2 -0
- package/dist/owletto/dist/assets/_slug-DgK7zpKA.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-cH54P0zY.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-m0B5j7L9.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CX7Egv-p.js} +2 -2
- package/dist/owletto/dist/assets/activity-link-rXNpmppV.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-B0m7_g9q.js +2 -0
- package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-BmD3-_Ox.js} +2 -2
- package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-BtOTCsTU.js} +2 -2
- package/dist/owletto/dist/assets/agent-editor-form-CirqCpcM.js +2 -0
- package/dist/owletto/dist/assets/agent-list-row-SyACVYX7.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-DHvKiEUB.js} +2 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-Dsc26dyW.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-DF5q0Dfr.js} +2 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-Pi5cECga.js +2 -0
- package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-B1ZepGZc.js} +4 -4
- package/dist/owletto/dist/assets/agents-D1FHZ0jR.js +2 -0
- package/dist/owletto/dist/assets/app._appId-01I0CJal.js +2 -0
- package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-BD9msDk3.js} +2 -2
- package/dist/owletto/dist/assets/automation-detail-content-BFv1TglZ.js +2 -0
- package/dist/owletto/dist/assets/automation-row-CmTpAD4r.js +2 -0
- package/dist/owletto/dist/assets/automation-source-list-D8ZSavQU.js +2 -0
- package/dist/owletto/dist/assets/automations-D1FHZ0jR.js +2 -0
- package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-Ckrxv0eo.js} +2 -2
- package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-DT9mSjSp.js} +2 -2
- package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-CGrKEJ04.js} +2 -2
- package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-Bzby28tT.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-DoIErdUy.js} +2 -2
- package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-BbVQy5Ti.js} +2 -2
- package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-6aJvabvS.js} +2 -2
- package/dist/owletto/dist/assets/connect-BmDziBzI.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-Bs8mxsga.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-t5aKu3aa.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DswMAw8l.js +2 -0
- package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-BOaMa324.js} +2 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BLCjhP-H.js +2 -0
- package/dist/owletto/dist/assets/connector-boxes-BAP_f77M.js +2 -0
- package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-ClOmVPJr.js} +2 -2
- package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-wmYu5jwO.js} +2 -2
- package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-D5F5rHxX.js} +2 -2
- package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-RqHNkmm8.js} +2 -2
- package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-D6zpsZLi.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BIE97rfo.js} +3 -3
- package/dist/owletto/dist/assets/create-BPxsKwk7.js +2 -0
- package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-GT8_yF0R.js} +2 -2
- package/dist/owletto/dist/assets/create-Yx2qBMBy.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-B12yTrmj.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-CzXqSkuI.js +2 -0
- package/dist/owletto/dist/assets/custom-guardrail-edits-B9plaLBN.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-C3k6Wa9B.js +2 -0
- package/dist/owletto/dist/assets/detail-page-skeleton-I5_7FkKx.js +2 -0
- package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-CadaiNF4.js} +2 -2
- package/dist/owletto/dist/assets/device-automation-Dp3faMvp.js +2 -0
- package/dist/owletto/dist/assets/device-pin-tombstone-U7Bx05P6.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-DTZqj1HS.js +2 -0
- package/dist/owletto/dist/assets/dynamic-schema-form-DyT_9iVE.js +2 -0
- package/dist/owletto/dist/assets/entity-options-CGTjLlcS.js +2 -0
- package/dist/owletto/dist/assets/entity-page-DHHMmA8V.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-eYbG2FDT.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-CjFqxSdL.js +2 -0
- package/dist/owletto/dist/assets/event-card-BtTUuf2q.js +2 -0
- package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-8xHiplt_.js} +2 -2
- package/dist/owletto/dist/assets/events-feed-zFnTSE27.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-Dd5R2Etd.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-CCU4PkRv.js} +2 -2
- package/dist/owletto/dist/assets/home-stream-IVsNEkwp.js +2 -0
- package/dist/owletto/dist/assets/index-2oaMOFKe.js +2 -0
- package/dist/owletto/dist/assets/index-B-Ab8srM.js +7899 -0
- package/dist/owletto/dist/assets/index-B4RZgvvI.js +2 -0
- package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-B72KYdN1.js} +2 -2
- package/dist/owletto/dist/assets/index-BBZM53p8.js +2 -0
- package/dist/owletto/dist/assets/index-BOb0a5f9.js +2 -0
- package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BYFDMIQC.js} +2 -2
- package/dist/owletto/dist/assets/index-BwnFQcMe.js +2 -0
- package/dist/owletto/dist/assets/index-CvYsWYlF.js +2 -0
- package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-DIXIvtnM.js} +2 -2
- package/dist/owletto/dist/assets/index-DLwokXHW.js +2 -0
- package/dist/owletto/dist/assets/index-_nlPHus1.js +2 -0
- package/dist/owletto/dist/assets/index-cwOgj4-i.js +2 -0
- package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-pmr1WUoG.js} +2 -2
- package/dist/owletto/dist/assets/index-pp4qmhkA.js +2 -0
- package/dist/owletto/dist/assets/index-tTbno-PX.css +1 -0
- package/dist/owletto/dist/assets/json-diff-B-1Swv_y.js +28 -0
- package/dist/owletto/dist/assets/list-skeleton-BAqT0vxo.js +2 -0
- package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-D5bIjMtf.js} +2 -2
- package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-JYZvxz8v.js} +2 -2
- package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-Lj9m4RL2.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-rAKfVdQ_.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-onvGA9Ww.js} +2 -2
- package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-B-Jd-vBl.js} +2 -2
- package/dist/owletto/dist/assets/new-BmehH1uR.js +2 -0
- package/dist/owletto/dist/assets/new-KDi15LWZ.js +2 -0
- package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9bh20Xo.js} +2 -2
- package/dist/owletto/dist/assets/peek-pane-content-Bqus80Mq.js +2 -0
- package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-CoFPQ835.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-CnACXCUg.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-Dlh-eWz0.js +2 -0
- package/dist/owletto/dist/assets/record-activity-6CfR95Ul.js +2 -0
- package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-Bpx4_LGk.js} +2 -2
- package/dist/owletto/dist/assets/renderer-CgaQKMoG.js +96 -0
- package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-C-4Jnuqk.js} +2 -2
- package/dist/owletto/dist/assets/run-initiator-BvruBM5H.js +2 -0
- package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BMzp7j7j.js} +2 -2
- package/dist/owletto/dist/assets/runs-list-DVhrTr3v.js +2 -0
- package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-Bdeumkux.js} +2 -2
- package/dist/owletto/dist/assets/schema-value-BUgC0Ro8.js +3 -0
- package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DYYvrrZ4.js} +2 -2
- package/dist/owletto/dist/assets/skill-route-key-sF006xiz.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CBV9tsR3.js +2 -0
- package/dist/owletto/dist/assets/status-variants-DT61YfsU.js +2 -0
- package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-B6yimlsZ.js} +2 -2
- package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-II_YJWtN.js} +2 -2
- package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-BqtEilid.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-Bxlpd6Dp.js} +3 -3
- package/dist/owletto/dist/assets/view-param-filters-DYlqBocg.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-BVtMfgLh.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +5680 -4005
- package/npm-shrinkwrap.json +99 -99
- package/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +9 -4
- package/vendor/views/dist/api.js +33 -2
- package/vendor/views/dist/bridge.d.ts +8 -0
- package/vendor/views/dist/bridge.js +12 -2
- package/vendor/views/dist/components.d.ts +4 -2
- package/vendor/views/dist/components.js +29 -14
- package/vendor/views/dist/index.d.ts +1 -1
- package/vendor/views/dist/index.js +1 -1
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
- package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
- package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
- package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
- package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
- package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
- package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
- package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
- package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
- package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
- package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-DN0ZEAzr.js +0 -2
- package/dist/owletto/dist/assets/agent-card-controls-C5jNWgfq.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-BJyfalBY.js +0 -2
- package/dist/owletto/dist/assets/agent-list-row-rF5LH-3k.js +0 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-bP1Qihv7.js +0 -2
- package/dist/owletto/dist/assets/agent-skills-route-Bv5luNdw.js +0 -2
- package/dist/owletto/dist/assets/agent-tab-intro-ednTs4WF.js +0 -2
- package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-bPTjdVS1.js +0 -2
- package/dist/owletto/dist/assets/app._appId-DrL5H5lB.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
- package/dist/owletto/dist/assets/automation-row-DCHM--aD.js +0 -2
- package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
- package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
- package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-jSnGvzYs.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BIlkK0Pd.js +0 -2
- package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +0 -2
- package/dist/owletto/dist/assets/connections-browser-V-3td9DB.js +0 -2
- package/dist/owletto/dist/assets/connector-boxes-lFc-WP83.js +0 -2
- package/dist/owletto/dist/assets/connector-scope-lists--vNdbOn0.js +0 -2
- package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
- package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
- package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
- package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
- package/dist/owletto/dist/assets/entity-options-daOOQo7O.js +0 -2
- package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
- package/dist/owletto/dist/assets/event-card-DVUB8my6.js +0 -2
- package/dist/owletto/dist/assets/events-feed-B9CZHI_P.js +0 -2
- package/dist/owletto/dist/assets/filter-bar-wPaR12SS.js +0 -2
- package/dist/owletto/dist/assets/guardrails-Csusrok2.js +0 -2
- package/dist/owletto/dist/assets/identity-Dmg3STO8.js +0 -2
- package/dist/owletto/dist/assets/index--ZWegctR.js +0 -2
- package/dist/owletto/dist/assets/index-BKrdVwW9.js +0 -2
- package/dist/owletto/dist/assets/index-BUBcNNUY.js +0 -2
- package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
- package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
- package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
- package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
- package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
- package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
- package/dist/owletto/dist/assets/index-CsrT07TJ.js +0 -2
- package/dist/owletto/dist/assets/index-DdBTTN3y.js +0 -7899
- package/dist/owletto/dist/assets/index-DdYWarql.css +0 -1
- package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
- package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
- package/dist/owletto/dist/assets/list-skeleton-CXDLkYTg.js +0 -2
- package/dist/owletto/dist/assets/manage-gear-D8LMhehh.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
- package/dist/owletto/dist/assets/model-jL871x2J.js +0 -2
- package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
- package/dist/owletto/dist/assets/nav-pill-DrFkuyUQ.js +0 -2
- package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
- package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
- package/dist/owletto/dist/assets/permissions-BvA9SATv.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
- package/dist/owletto/dist/assets/record-activity-C9gVBbF0.js +0 -2
- package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
- package/dist/owletto/dist/assets/run-activity-link-CaIBSRQj.js +0 -2
- package/dist/owletto/dist/assets/run-initiator-BvzQJYW9.js +0 -2
- package/dist/owletto/dist/assets/runs-panel-DEnZHTa5.js +0 -2
- package/dist/owletto/dist/assets/runs-table-XGnxJl7S.js +0 -2
- package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
- package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-Bh0n4gGw.js +0 -2
- package/dist/owletto/dist/assets/status-dot-Cpq63I7p.js +0 -2
- package/dist/owletto/dist/assets/use-scroll-sentinel-DRyBMueA.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ix as e,j as o,az as n}from"./index-B-Ab8srM.js";import{A as a}from"./agent-connect-pages-BtOTCsTU.js";import"./agent-client-setup-list-BmD3-_Ox.js";import"./connector-page-shell-ClOmVPJr.js";import"./copy-button-D6zpsZLi.js";import"./clients-6aJvabvS.js";import"./client-rows-BbVQy5Ti.js";function u(){const{owner:t}=e.useParams();return o.jsx(n,{owner:t,children:({ownerSlug:r})=>o.jsx(a,{owner:r})})}export{u as component};
|
|
2
|
+
//# sourceMappingURL=index-B4RZgvvI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bq as vr,br as pr,r as u,bs as St,j as v,bt as Mt,bu as yt,bv as Er,bw as On,bx as mr,by as gr,bz as _r,bA as Or,bB as F,bC as Tn,bD as Ut,X as Tr,Y as Ar,bE as Ir,bF as Rr,bG as Sr}from"./index-DdBTTN3y.js";function x(...e){return vr(pr(e))}function Be({error:e,localization:t,localizeErrors:n=!0}){var r;const o="Request failed";if(!n)return e?.message?e.message:(r=e?.error)!=null&&r.message?e.error.message:o;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const a=e.error.code;if(t?.[a])return t[a]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||o}function An(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}var yr={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Nr={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Cr={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},wr={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},br={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dr={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},xr={...br,...Dr},Pr={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Lr={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Mr={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Ur={INVALID_SESSION_TOKEN:"Invalid session token"},kr={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fr={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Br={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},jr={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Hr={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},zr={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Vr={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Wr={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...wr,...yr,...Nr,...Cr,...xr,...Pr,...Lr,...Mr,...Ur,...kr,...Fr,...Br,...jr,...Hr,...zr,...Vr},Gr={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},kt={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Ft={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const In=u.createContext({});function Yr(){return u.useContext(In)}var Xe,Bt;function Kr(){if(Bt)return Xe;Bt=1;var e=function(){};return Xe=e,Xe}var qr=Kr();const $r=St(qr);function Zr({async:e,appendTo:t,defer:n,id:r,nonce:o,src:a}){const c=document.createElement("script");e!==void 0&&(c.async=e),n!==void 0&&(c.defer=n),r&&(c.id=r),o&&c.setAttribute("nonce",o),c.src=a,(t==="head"?document.head:document.body).appendChild(c)}var Xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let we=null,be=!1;const je=new Set,He=new Set,Qr=typeof window<"u",ye="___grecaptcha_cfg",Rn=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jr(){if(!Qr)return;function e(n){if(be)n();else{window[ye]||(window[ye]={});const r=window[ye];r.fns||(r.fns=[]),r.fns.push(n)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){be=!0;for(const n of He)n();He.clear()}window[Rn]=t}function eo({language:e,onLoadCallbackName:t,render:n,useEnterprise:r=!1,useRecaptchaNet:o=!1}){const a=o?"recaptcha.net":"google.com",c=r?"enterprise.js":"api.js",s=new URLSearchParams({render:n});return t&&s.set("onload",t),e&&s.set("hl",e),`https://www.${a}/recaptcha/${c}?${s.toString()}`}function to({language:e,render:t,scriptProps:n,useEnterprise:r,useRecaptchaNet:o}){const a={id:"google-recaptcha-v3"},c=eo({language:e,onLoadCallbackName:Rn,render:t,useEnterprise:r,useRecaptchaNet:o});if(we){if(we!==c)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}we=c,Zr(Object.assign(Object.assign(Object.assign({},a),n),{src:c}))}function no(e){if(!window[ye])return;const t=window[ye];t.clients&&delete t.clients[e]}function ro(e,t){var{onLoadCallback:n,onLoadCallbackName:r}=t,o=Xr(t,["onLoadCallback","onLoadCallbackName"]);if(je.size===0&&Jr(),to(o),je.add(e),n&&(be?n():He.add(n)),r){let a=function(){if(!r)return;const c=window[r];typeof c=="function"&&c()};be?a():He.add(a)}}function oo(e){var t,n,r;je.delete(e),je.size===0&&(window.grecaptcha=void 0,window[ye]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(n=document.querySelector(`script[src="${we}"]`))===null||n===void 0||n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||r===void 0||r.remove(),we=null,be=!1)}let jt=!1;function ao({container:e,children:t,language:n,reCaptchaKey:r,scriptProps:o,useEnterprise:a,useRecaptchaNet:c}){var s,l,i,h,d,f,p;const E=u.useId(),[_,R]=u.useState(null),[g,S]=u.useState(null),O=u.useRef(!1);u.useEffect(()=>{function I(){var D;const C=a?(D=window.grecaptcha)===null||D===void 0?void 0:D.enterprise:window.grecaptcha;if(!C)throw new Error("reCAPTCHA not found");if(!C.ready)throw new Error("reCAPTCHA ready callback not found");C.ready(()=>{R(C)})}return ro(E,{language:n,onLoadCallback:I,onLoadCallbackName:o?.onLoadCallbackName,render:e?.element?"explicit":r,scriptProps:{appendTo:o?.appendTo,async:o?.async,defer:o?.defer,id:o?.id,nonce:o?.nonce},useEnterprise:a,useRecaptchaNet:c}),()=>{oo(E),R(null)}},[e?.element,E,n,r,o?.appendTo,o?.async,o?.defer,o?.id,o?.nonce,o?.onLoadCallbackName,a,c]),u.useEffect(()=>{var I,D,C;if(!e?.element||!_?.render)return;const M={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((I=e.parameters)===null||I===void 0?void 0:I.badge)||"inline",callback:e.parameters.callback,sitekey:r,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},L=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!L)throw new Error("reCAPTCHA container element not found");const k=_.render(L,M);return!((D=e?.parameters)===null||D===void 0)&&D.hidden&&(jt||($r(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),jt=!0),(C=L.querySelector(".grecaptcha-badge"))===null||C===void 0||C.style.setProperty("display","none")),S(k),O.current=!0,()=>{S(null),O.current=!1,no(k),L.innerHTML=""}},[e?.element,(s=e?.parameters)===null||s===void 0?void 0:s.badge,(l=e?.parameters)===null||l===void 0?void 0:l.hidden,(i=e?.parameters)===null||i===void 0?void 0:i.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(d=e?.parameters)===null||d===void 0?void 0:d.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(p=e?.parameters)===null||p===void 0?void 0:p.theme,_,r]);const A=!!e?.element,m=A?g:r,N=u.useMemo(()=>m!==null&&_?.execute?I=>{if(m===null||!_?.execute)throw new Error("reCAPTCHA has not been loaded");return A&&!O.current?(console.warn("Client ID not mounted"),null):_.execute(m,{action:I})}:void 0,[m,_,A]);return v.jsx(In.Provider,{value:{container:e?.element,executeRecaptcha:N,reCaptchaInstance:_},children:t})}var io=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const n={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,n),this.notify(e)}setRefetching(e,t){const n=this.cache.get(e);n&&(n.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const n of t)this.notify(n)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const n=Array.from(t);for(const r of n)r()}}},te=new io;function so(){return()=>{}}function lo(){return u.useSyncExternalStore(so,()=>!0,()=>!1)}function co(){const[e,t]=u.useState();return u.useEffect(()=>{const n=()=>{const o=document.documentElement.getAttribute("lang");t(o??void 0)};n();const r=new MutationObserver(o=>{for(const a of o)a.attributeName==="lang"&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{lang:e}}function uo(){const[e,t]=u.useState("light");return u.useEffect(()=>{const n=()=>{var o;const a=document.documentElement.classList.contains("dark")||((o=document.documentElement.getAttribute("style"))==null?void 0:o.includes("color-scheme: dark"));t(a?"dark":"light")};n();const r=new MutationObserver(o=>{for(const a of o)(a.attributeName==="style"||a.attributeName==="class")&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{theme:e}}function fo({children:e}){const t=lo(),{captcha:n}=u.useContext(ae);return n?.provider!=="google-recaptcha-v3"?e:v.jsxs(ao,{reCaptchaKey:n.siteKey,useEnterprise:n.enterprise,useRecaptchaNet:n.recaptchaNet,children:[t&&v.jsx("style",{children:`
|
|
1
|
+
import{by as vr,bz as pr,r as u,bA as St,j as v,bB as Mt,bC as yt,bD as Er,bE as On,bF as mr,bG as gr,bH as _r,bI as Or,bJ as F,bK as Tn,bL as Ut,X as Tr,Y as Ar,bM as Ir,bN as Rr,bO as Sr}from"./index-B-Ab8srM.js";function x(...e){return vr(pr(e))}function Be({error:e,localization:t,localizeErrors:n=!0}){var r;const o="Request failed";if(!n)return e?.message?e.message:(r=e?.error)!=null&&r.message?e.error.message:o;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const a=e.error.code;if(t?.[a])return t[a]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||o}function An(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}var yr={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Nr={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Cr={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},wr={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},br={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dr={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},xr={...br,...Dr},Pr={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Lr={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Mr={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Ur={INVALID_SESSION_TOKEN:"Invalid session token"},kr={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fr={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Br={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},jr={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Hr={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},zr={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Vr={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Wr={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...wr,...yr,...Nr,...Cr,...xr,...Pr,...Lr,...Mr,...Ur,...kr,...Fr,...Br,...jr,...Hr,...zr,...Vr},Gr={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},kt={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Ft={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const In=u.createContext({});function Yr(){return u.useContext(In)}var Xe,Bt;function Kr(){if(Bt)return Xe;Bt=1;var e=function(){};return Xe=e,Xe}var qr=Kr();const $r=St(qr);function Zr({async:e,appendTo:t,defer:n,id:r,nonce:o,src:a}){const c=document.createElement("script");e!==void 0&&(c.async=e),n!==void 0&&(c.defer=n),r&&(c.id=r),o&&c.setAttribute("nonce",o),c.src=a,(t==="head"?document.head:document.body).appendChild(c)}var Xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let we=null,be=!1;const je=new Set,He=new Set,Qr=typeof window<"u",ye="___grecaptcha_cfg",Rn=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jr(){if(!Qr)return;function e(n){if(be)n();else{window[ye]||(window[ye]={});const r=window[ye];r.fns||(r.fns=[]),r.fns.push(n)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){be=!0;for(const n of He)n();He.clear()}window[Rn]=t}function eo({language:e,onLoadCallbackName:t,render:n,useEnterprise:r=!1,useRecaptchaNet:o=!1}){const a=o?"recaptcha.net":"google.com",c=r?"enterprise.js":"api.js",s=new URLSearchParams({render:n});return t&&s.set("onload",t),e&&s.set("hl",e),`https://www.${a}/recaptcha/${c}?${s.toString()}`}function to({language:e,render:t,scriptProps:n,useEnterprise:r,useRecaptchaNet:o}){const a={id:"google-recaptcha-v3"},c=eo({language:e,onLoadCallbackName:Rn,render:t,useEnterprise:r,useRecaptchaNet:o});if(we){if(we!==c)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}we=c,Zr(Object.assign(Object.assign(Object.assign({},a),n),{src:c}))}function no(e){if(!window[ye])return;const t=window[ye];t.clients&&delete t.clients[e]}function ro(e,t){var{onLoadCallback:n,onLoadCallbackName:r}=t,o=Xr(t,["onLoadCallback","onLoadCallbackName"]);if(je.size===0&&Jr(),to(o),je.add(e),n&&(be?n():He.add(n)),r){let a=function(){if(!r)return;const c=window[r];typeof c=="function"&&c()};be?a():He.add(a)}}function oo(e){var t,n,r;je.delete(e),je.size===0&&(window.grecaptcha=void 0,window[ye]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(n=document.querySelector(`script[src="${we}"]`))===null||n===void 0||n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||r===void 0||r.remove(),we=null,be=!1)}let jt=!1;function ao({container:e,children:t,language:n,reCaptchaKey:r,scriptProps:o,useEnterprise:a,useRecaptchaNet:c}){var s,l,i,h,d,f,p;const E=u.useId(),[_,R]=u.useState(null),[g,S]=u.useState(null),O=u.useRef(!1);u.useEffect(()=>{function I(){var D;const C=a?(D=window.grecaptcha)===null||D===void 0?void 0:D.enterprise:window.grecaptcha;if(!C)throw new Error("reCAPTCHA not found");if(!C.ready)throw new Error("reCAPTCHA ready callback not found");C.ready(()=>{R(C)})}return ro(E,{language:n,onLoadCallback:I,onLoadCallbackName:o?.onLoadCallbackName,render:e?.element?"explicit":r,scriptProps:{appendTo:o?.appendTo,async:o?.async,defer:o?.defer,id:o?.id,nonce:o?.nonce},useEnterprise:a,useRecaptchaNet:c}),()=>{oo(E),R(null)}},[e?.element,E,n,r,o?.appendTo,o?.async,o?.defer,o?.id,o?.nonce,o?.onLoadCallbackName,a,c]),u.useEffect(()=>{var I,D,C;if(!e?.element||!_?.render)return;const M={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((I=e.parameters)===null||I===void 0?void 0:I.badge)||"inline",callback:e.parameters.callback,sitekey:r,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},L=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!L)throw new Error("reCAPTCHA container element not found");const k=_.render(L,M);return!((D=e?.parameters)===null||D===void 0)&&D.hidden&&(jt||($r(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),jt=!0),(C=L.querySelector(".grecaptcha-badge"))===null||C===void 0||C.style.setProperty("display","none")),S(k),O.current=!0,()=>{S(null),O.current=!1,no(k),L.innerHTML=""}},[e?.element,(s=e?.parameters)===null||s===void 0?void 0:s.badge,(l=e?.parameters)===null||l===void 0?void 0:l.hidden,(i=e?.parameters)===null||i===void 0?void 0:i.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(d=e?.parameters)===null||d===void 0?void 0:d.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(p=e?.parameters)===null||p===void 0?void 0:p.theme,_,r]);const A=!!e?.element,m=A?g:r,N=u.useMemo(()=>m!==null&&_?.execute?I=>{if(m===null||!_?.execute)throw new Error("reCAPTCHA has not been loaded");return A&&!O.current?(console.warn("Client ID not mounted"),null):_.execute(m,{action:I})}:void 0,[m,_,A]);return v.jsx(In.Provider,{value:{container:e?.element,executeRecaptcha:N,reCaptchaInstance:_},children:t})}var io=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const n={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,n),this.notify(e)}setRefetching(e,t){const n=this.cache.get(e);n&&(n.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const n of t)this.notify(n)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const n=Array.from(t);for(const r of n)r()}}},te=new io;function so(){return()=>{}}function lo(){return u.useSyncExternalStore(so,()=>!0,()=>!1)}function co(){const[e,t]=u.useState();return u.useEffect(()=>{const n=()=>{const o=document.documentElement.getAttribute("lang");t(o??void 0)};n();const r=new MutationObserver(o=>{for(const a of o)a.attributeName==="lang"&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{lang:e}}function uo(){const[e,t]=u.useState("light");return u.useEffect(()=>{const n=()=>{var o;const a=document.documentElement.classList.contains("dark")||((o=document.documentElement.getAttribute("style"))==null?void 0:o.includes("color-scheme: dark"));t(a?"dark":"light")};n();const r=new MutationObserver(o=>{for(const a of o)(a.attributeName==="style"||a.attributeName==="class")&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{theme:e}}function fo({children:e}){const t=lo(),{captcha:n}=u.useContext(ae);return n?.provider!=="google-recaptcha-v3"?e:v.jsxs(ao,{reCaptchaKey:n.siteKey,useEnterprise:n.enterprise,useRecaptchaNet:n.recaptchaNet,children:[t&&v.jsx("style",{children:`
|
|
2
2
|
.grecaptcha-badge {
|
|
3
3
|
visibility: hidden;
|
|
4
4
|
border-radius: var(--radius) !important;
|
|
@@ -50,4 +50,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
50
50
|
.st0{fill:#FFFFFF}
|
|
51
51
|
.st1{fill:#9146FF}
|
|
52
52
|
`}),v.jsx("title",{children:"Asset 2"}),v.jsxs("g",{children:[v.jsx("polygon",{className:"st0",points:"2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200"}),v.jsx("g",{children:v.jsxs("g",{children:[v.jsx("path",{className:"st1",d:"M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600V1300z"}),v.jsx("rect",{className:"st1",height:"600",width:"200",x:"1700",y:"550"}),v.jsx("rect",{className:"st1",height:"600",width:"200",x:"1150",y:"550"})]})})]})]}),ss=({className:e})=>v.jsx("svg",{"data-testid":"geist-icon",height:"16","stroke-linejoin":"round",viewBox:"0 0 16 16",width:"16",className:e,style:{color:"currentcolor"},children:v.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 1L16 15H0L8 1Z",fill:"currentColor"})}),ls=({className:e})=>v.jsx("svg",{className:e,viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7c0 0-30 73.1-72.4 120.5c-13.7 13.7-20 18.1-27.5 18.1c-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5c0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5c-20 0-68.6-73.4-97.4-157.4c-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7c0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9c0-66.8-3.4-73.1 15.4-73.1c8.7 0 23.7 4.4 58.7 38.1c40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25c-11.2-34.9-86.9-106.7-90.3-111.5c-8.7-11.2-6.2-16.2 0-26.2c.1-.1 72-101.3 79.4-135.6",fill:"currentColor"})}),cs=({className:e})=>v.jsx("svg",{className:e,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M389.2 48h70.6L305.6 224.2L487 464H345L233.7 318.6L106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z",fill:"currentColor"})}),us=({className:e})=>v.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:512,height:117,viewBox:"0 0 512 117",children:v.jsx("path",{fill:"#0b5cff",d:"M107.472 114.706H16.348c-5.968 0-11.791-3.203-14.557-8.589C-1.41 99.858-.247 92.434 4.702 87.63L68.17 24.164H22.607C10.088 24.164.044 13.974.044 1.6h83.992c5.968 0 11.79 3.203 14.556 8.589c3.203 6.259 2.038 13.683-2.911 18.486L32.214 92.143h52.55c12.518 0 22.708 10.19 22.708 22.563M468.183 0c-13.1 0-24.746 5.677-32.898 14.702C427.134 5.677 415.488 0 402.388 0c-24.164 0-43.961 20.67-43.961 44.834v69.872c12.518 0 22.562-10.19 22.562-22.563V44.689c0-11.646 9.025-21.544 20.67-21.98c12.228-.437 22.272 9.315 22.272 21.397v48.037c0 12.519 10.19 22.563 22.563 22.563V44.543c0-11.645 9.025-21.544 20.67-21.98c12.228-.437 22.272 9.316 22.272 21.398v48.036c0 12.52 10.19 22.563 22.563 22.563V44.69C512.144 20.67 492.347 0 468.183 0M221.595 58.226c0 32.17-26.056 58.226-58.226 58.226s-58.226-26.056-58.226-58.226S131.199 0 163.369 0s58.226 26.056 58.226 58.226m-22.563 0c0-19.651-16.012-35.663-35.663-35.663s-35.664 16.012-35.664 35.663c0 19.652 16.013 35.664 35.664 35.664s35.663-16.012 35.663-35.664m148.04 0c0 32.17-26.056 58.226-58.226 58.226S230.62 90.396 230.62 58.226S256.676 0 288.846 0s58.227 26.056 58.227 58.226m-22.562 0c0-19.651-16.012-35.663-35.664-35.663c-19.65 0-35.663 16.012-35.663 35.663c0 19.652 16.012 35.664 35.663 35.664c19.652 0 35.664-16.012 35.664-35.664"})}),ms=[{provider:"apple",name:"Apple",icon:zi},{provider:"discord",name:"Discord",icon:Vi},{provider:"dropbox",name:"Dropbox",icon:Wi},{provider:"facebook",name:"Facebook",icon:Gi},{provider:"github",name:"GitHub",icon:Yi},{provider:"gitlab",name:"GitLab",icon:Ki},{provider:"google",name:"Google",icon:qi},{provider:"huggingface",name:"Hugging Face",icon:$i},{provider:"kick",name:"Kick",icon:Zi},{provider:"linear",name:"Linear",icon:Xi},{provider:"linkedin",name:"LinkedIn",icon:Qi},{provider:"microsoft",name:"Microsoft",icon:Ji},{provider:"notion",name:"Notion",icon:es},{provider:"reddit",name:"Reddit",icon:ts},{provider:"roblox",name:"Roblox",icon:ns},{provider:"slack",name:"Slack",icon:rs},{provider:"spotify",name:"Spotify",icon:os},{provider:"tiktok",name:"TikTok",icon:as},{provider:"twitch",name:"Twitch",icon:is},{provider:"vercel",name:"Vercel",icon:ss},{provider:"vk",name:"VK",icon:ls},{provider:"twitter",name:"X",icon:cs},{provider:"zoom",name:"Zoom",icon:us}];function gs({className:e,classNames:t,localization:n}){const{localization:r,redirectTo:o,replace:a,toast:c}=u.useContext(ae),s=u.useMemo(()=>({...r,...n}),[r,n]),{data:l}=Li(),[i,h]=u.useState(null);return u.useEffect(()=>{const d=An("invitationId");if(!d){c({variant:"error",message:s.INVITATION_NOT_FOUND}),a(o);return}h(d)},[s.INVITATION_NOT_FOUND,c,a,o]),!l||!i?v.jsx(cr,{className:e,classNames:t}):v.jsx(ds,{className:e,classNames:t,localization:s,invitationId:i})}function ds({className:e,classNames:t,localization:n,invitationId:r}){var o;const{authClient:a,hooks:{useInvitation:c},localization:s,organization:l,redirectTo:i,replace:h,toast:d,localizeErrors:f}=u.useContext(ae),p=u.useMemo(()=>({...s,...n}),[s,n]),[E,_]=u.useState(!1),[R,g]=u.useState(!1),S=E||R,{data:O,isPending:A}=c({query:{id:r}}),m=u.useCallback(()=>An("redirectTo")||i,[i]);u.useEffect(()=>{if(!(A||!r)){if(!O){d({variant:"error",message:p.INVITATION_NOT_FOUND}),h(i);return}(O.status!=="pending"||new Date(O.expiresAt)<new Date)&&(d({variant:"error",message:new Date(O.expiresAt)<new Date?p.INVITATION_EXPIRED:p.INVITATION_NOT_FOUND}),h(i))}},[O,A,r,p,d,h,i]);const N=async()=>{g(!0);try{await a.organization.acceptInvitation({invitationId:r,fetchOptions:{throw:!0}}),d({variant:"success",message:p.INVITATION_ACCEPTED||"Invitation accepted"}),h(m())}catch(L){d({variant:"error",message:Be({error:L,localization:p,localizeErrors:f})}),g(!1)}},I=async()=>{_(!0);try{await a.organization.rejectInvitation({invitationId:r,fetchOptions:{throw:!0}}),d({variant:"success",message:p.INVITATION_REJECTED}),h(i)}catch(L){d({variant:"error",message:Be({error:L,localization:p,localizeErrors:f})}),_(!1)}},M=((o=[...[{role:"owner",label:p.OWNER},{role:"admin",label:p.ADMIN},{role:"member",label:p.MEMBER}],...l?.customRoles||[]].find(L=>L.role===O?.role))==null?void 0:o.label)||O?.role;return O?v.jsxs(Ge,{className:x("w-full max-w-sm",e,t?.base),children:[v.jsxs(ir,{className:x("justify-items-center text-center",t?.header),children:[v.jsx(Mi,{className:x("text-lg md:text-xl",t?.title),children:p.ACCEPT_INVITATION}),v.jsx(Ui,{className:x("text-xs md:text-sm",t?.description),children:p.ACCEPT_INVITATION_DESCRIPTION})]}),v.jsxs(sr,{className:x("flex flex-col gap-6 truncate",t?.content),children:[v.jsxs(Ge,{className:x("flex-row items-center p-4"),children:[v.jsx(lr,{organization:{id:O.organizationId,name:O.organizationName,slug:O.organizationSlug,logo:O.organizationLogo,createdAt:new Date},localization:p}),v.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:M})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[v.jsxs(_n,{variant:"outline",className:x(t?.button,t?.outlineButton),onClick:I,disabled:S,children:[E?v.jsx(Ut,{className:"animate-spin"}):v.jsx(Tr,{}),p.REJECT]}),v.jsxs(_n,{className:x(t?.button,t?.primaryButton),onClick:N,disabled:S,children:[R?v.jsx(Ut,{className:"animate-spin"}):v.jsx(Ar,{}),p.ACCEPT]})]})]})]}):v.jsx(cr,{className:e,classNames:t})}var cr=({className:e,classNames:t,localization:n})=>v.jsxs(Ge,{className:x("w-full max-w-sm",e,t?.base),children:[v.jsxs(ir,{className:x("justify-items-center",t?.header),children:[v.jsx(me,{className:x("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),v.jsx(me,{className:x("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),v.jsxs(sr,{className:x("flex flex-col gap-6 truncate",t?.content),children:[v.jsxs(Ge,{className:x("flex-row items-center p-4"),children:[v.jsx(lr,{isPending:!0,localization:n}),v.jsx(me,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[v.jsx(me,{className:"h-9 w-full"}),v.jsx(me,{className:"h-9 w-full"})]})]})]});function _s({children:e}){const{hooks:{useSession:t}}=u.useContext(ae),{data:n}=t();return n?e:null}export{gs as A,_s as S,hs as a,ms as s};
|
|
53
|
-
//# sourceMappingURL=index-
|
|
53
|
+
//# sourceMappingURL=index-B72KYdN1.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ax as r,j as m}from"./index-B-Ab8srM.js";import{M as p}from"./memory-browse-page-rAKfVdQ_.js";import"./public-shell-ready-Dlh-eWz0.js";import"./connector-boxes-BAP_f77M.js";import"./use-automations-II_YJWtN.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-Bdeumkux.js";import"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-DyT_9iVE.js";import"./renderer-CgaQKMoG.js";import"./schema-value-BUgC0Ro8.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./entity-pages-eYbG2FDT.js";import"./filter-editors-Dd5R2Etd.js";import"./core.esm-BIE97rfo.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./member-scope-gate-Lj9m4RL2.js";function T(){const{owner:t}=r.useParams(),o=r.useSearch();return m.jsx(p,{ownerSlug:t,create:!1,createType:o.create_type==="true"})}export{T as component};
|
|
2
|
+
//# sourceMappingURL=index-BBZM53p8.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{bq as t,j as m,br as i}from"./index-B-Ab8srM.js";import{M as e}from"./memory-browse-page-rAKfVdQ_.js";import"./public-shell-ready-Dlh-eWz0.js";import"./connector-boxes-BAP_f77M.js";import"./use-automations-II_YJWtN.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-Bdeumkux.js";import"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-DyT_9iVE.js";import"./renderer-CgaQKMoG.js";import"./schema-value-BUgC0Ro8.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./entity-pages-eYbG2FDT.js";import"./filter-editors-Dd5R2Etd.js";import"./core.esm-BIE97rfo.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./member-scope-gate-Lj9m4RL2.js";function B(){const{owner:o,entityType:r}=t.useParams(),{create:p}=t.useSearch();return m.jsx(e,{ownerSlug:o,typeScope:i(r),create:p??!1})}export{B as component};
|
|
2
|
+
//# sourceMappingURL=index-BOb0a5f9.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{hA as n,j as s,hB as r}from"./index-B-Ab8srM.js";function c(){const{owner:e}=n.useParams(),{connector:o,install:t}=n.useSearch();return s.jsx(r,{owner:e,initialConnectorKey:o||t})}export{c as component};
|
|
2
|
+
//# sourceMappingURL=index-BYFDMIQC.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{at as S,bf as I,r,j as e,B as g,L as y,bo as C,b2 as E,b3 as B,bp as M,ak as O,az as T,al as W}from"./index-B-Ab8srM.js";import{A as P}from"./agent-client-setup-list-BmD3-_Ox.js";import{A as R}from"./agent-list-row-SyACVYX7.js";import{L as z}from"./list-skeleton-BAqT0vxo.js";import{u as F}from"./clients-6aJvabvS.js";import{g as G}from"./client-rows-BbVQy5Ti.js";const _={all:"All",managed:"Managed",connected:"Connected"};function $({owner:t,isWorkspaceLoading:i}){const{isMember:b,isLoading:u}=S(),c=b&&!u,{data:x=[],isLoading:k}=I({enabled:c}),{data:h=[]}=F(null),p=r.useMemo(()=>G(h).filter(n=>n.connected),[h]),o=r.useMemo(()=>{const n=x.map(a=>({kind:"managed",key:a.agentId,agent:{agentId:a.agentId,name:a.name,lastActivity:a.lastActivity,connectionCount:a.connectionCount,userCount:a.userCount}})),m=p.map(a=>({kind:"connected",key:a.key,group:a}));return[...n,...m]},[x,p]),f=r.useMemo(()=>o.length>0?["all","managed","connected"]:[],[o]),[j,L]=r.useState("all"),s=f.includes(j)?j:"all",d=r.useMemo(()=>o.filter(n=>s==="all"?!0:s==="managed"?n.kind==="managed":n.kind==="connected"),[o,s]),w=i||u||k,l=o.length>0,N=!w&&!l&&c,A=c?l?s==="managed"?"No managed agents yet":s==="connected"?"No connected agents yet":"No agents match this filter":"No agents yet":"Workspace membership required",v=c?l?s==="managed"?"Build a managed agent to add one here.":s==="connected"?"Bring an agent you already run to this workspace.":"Try another filter.":"Build a managed agent, or bring one you already run to this workspace.":"Only workspace members can manage agents here.";return e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Who works here — your agents and the ones connected to this workspace."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:[f.map(n=>e.jsx(g,{type:"button",variant:s===n?"secondary":"ghost","aria-pressed":s===n,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>L(n),children:_[n]},n)),N?e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connect an agent below or build one with Lobu."}):null]}),e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-2 sm:ml-auto sm:w-auto sm:shrink-0",children:[l?e.jsx(g,{asChild:!0,size:"sm",className:"h-8 text-xs",children:e.jsxs(y,{to:"/$owner/agents/connect",params:{owner:t},children:[e.jsx(C,{className:"mr-1.5 h-3.5 w-3.5"}),"Connect an agent"]})}):null,e.jsx(g,{asChild:!0,variant:"outline",size:"sm",className:"h-8 text-xs",children:e.jsxs(y,{to:"/$owner/agents/new",params:{owner:t},search:{},children:[e.jsx(C,{className:"mr-1.5 h-3.5 w-3.5"}),"Build a managed agent"]})})]})]}),w?e.jsx(z,{label:"Loading agents"}):d.length===0?N?e.jsx(P,{owner:t,dashed:!0}):e.jsx(E,{icon:B.agents.icon,title:A,description:v}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:d.map((n,m)=>e.jsx(R,{owner:t,item:n,last:m===d.length-1},n.key))})]})}function U(){const{owner:t}=M.useParams();return e.jsx(O,{className:"gap-3 pt-2.5 pb-8",children:e.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx(T,{owner:t,children:i=>e.jsx(W,{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx($,{owner:i.ownerSlug,isWorkspaceLoading:i.isWorkspaceLoading})})})})})}export{U as component};
|
|
2
|
+
//# sourceMappingURL=index-BwnFQcMe.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{gO as B,iy as F,r as N,j as e,c as E,iz as te,hw as q,B as k,bB as y,gT as z,bU as ae,c4 as ne,b2 as L,gV as ie,V as re,iA as oe,fj as le,C as ce,i as w,bW as P,dc as V,iB as J,H as K,I as de,eA as ue,iC as me,fE as ge,v as Y,aq as xe,q as he,at as pe,bf as fe,gF as be,S as je,gG as ve,L as ke,gH as Ne,ed as ye,hy as C,eW as A,cC as Ce,iD as Se,iE as O}from"./index-B-Ab8srM.js";import{A as we}from"./agent-editor-form-CirqCpcM.js";import{A as Ae,v as Le,u as De,r as Ee,s as Re}from"./custom-guardrail-edits-B9plaLBN.js";import{T as Ge,a as Te,b as H,c as R,d as Pe,e as G}from"./table-B6yimlsZ.js";import{f as Q}from"./agent-loading-shells-DHvKiEUB.js";import{A as $e}from"./agent-permissions-matrix-Dsc26dyW.js";import{u as Be,a as U,m as Fe,P as Me,D as Ie,n as Ke,C as Oe}from"./core.esm-BIE97rfo.js";import{u as M,s as He,a as Ue,S as We,v as _e,b as qe}from"./agent-skill-context-DF5q0Dfr.js";import{s as X,a as W}from"./skill-route-key-sF006xiz.js";import{P as ze}from"./proposal-review-shell-CnACXCUg.js";import{C as Ve}from"./connector-page-shell-ClOmVPJr.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./model-selector-onvGA9Ww.js";import"./skill-editor-D_W3QlRz.js";import"./runs-BMzp7j7j.js";function $(s,t){const a=new Set(s?.guardrails??[]),n=new Set(t.map(r=>r.name)),o=t.map(r=>({name:r.name,stages:r.stages,description:r.description,enabled:a.has(r.name),unknown:!1})),i=(s?.guardrails??[]).filter(r=>!n.has(r)).map(r=>({name:r,stages:[],enabled:!0,unknown:!0}));return[...o,...i]}function Je(s){return s.filter(t=>t.enabled||t.unknown).map(t=>t.name)}function Ye(s,t,a){return Je(s.map(n=>n.name===t&&!n.unknown?{...n,enabled:a}:n))}const D={input:"Input",output:"Output","pre-tool":"Pre-tool",egress:"Egress"};function Qe(s){const t=new Date(s);return Number.isNaN(t.getTime())?s:oe(t,{addSuffix:!0})}function Xe({owner:s,agentId:t,name:a}){const{data:n}=B(t),{data:o}=F(t),i=N.useMemo(()=>$(n,o??[]).find(d=>d.name===a)??null,[n,o,a]),r=(n?.guardrailsInline??[]).find(d=>d.name===a);return r?e.jsx(es,{owner:s,agentId:t,guardrail:r}):i?e.jsx(Ze,{agentId:t,name:a,row:i}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Guardrail not found."})}function Ze({agentId:s,name:t,row:a}){return e.jsxs("div",{className:"space-y-8",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:a.description??(a.stages.length>0?`Built-in. Short-circuits this agent's ${a.stages.map(n=>D[n].toLowerCase()).join(", ")} stage${a.stages.length>1?"s":""} when it matches.`:"Configured out of band — toggling is managed via lobu apply.")}),e.jsx(Z,{agentId:s,guardrail:t})]})}function es({owner:s,agentId:t,guardrail:a}){const n=E(),{data:o}=B(t),{data:i}=F(t),{data:r=null}=te(t),d=q(t),[f,m]=N.useState(!1),x=o?.guardrailsInline??[],h=(i??[]).map(u=>u.name),b=async(u,c)=>{if(!o)return y.error("Still loading agent settings — try again in a moment"),!1;try{return await d.mutateAsync({guardrailsInline:u}),y.success(c),!0}catch(g){return y.error(g instanceof Error?g.message:"Failed to save guardrail"),!1}},p=async u=>{const c=Le(u,x,h,r,a.name);if(c){y.error(c);return}await b(De(x,a.name,u),"Guardrail saved")&&u.name.trim()!==a.name&&n({to:"/$owner/agents/$agentId",params:{owner:s,agentId:t},search:l=>({...l,guardrail:u.name.trim()}),resetScroll:!1})},j=async()=>{await b(Ee(x,a.name),"Guardrail deleted")&&n({to:"/$owner/agents/$agentId",params:{owner:s,agentId:t},search:c=>({...c,guardrail:void 0}),resetScroll:!1})};return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium",children:a.kind==="require-tool"?"Required tools":"Policy"}),e.jsx(Ae,{initial:a,judgeModelDefault:r,submitLabel:"Save changes",submitting:d.isPending,onSubmit:p})]}),e.jsx("div",{className:"flex justify-end",children:f?e.jsxs("div",{className:"flex gap-2",children:[e.jsx(k,{type:"button",variant:"destructive",onClick:()=>void j(),disabled:d.isPending,children:"Delete guardrail"}),e.jsx(k,{type:"button",variant:"outline",onClick:()=>m(!1),disabled:d.isPending,children:"Cancel"})]}):e.jsxs(k,{type:"button",variant:"outline",className:"text-destructive hover:text-destructive",onClick:()=>m(!0),children:["Delete ",a.name]})}),e.jsx(Z,{agentId:t,guardrail:a.name})]})}function Z({agentId:s,guardrail:t}){const{data:a=[],isLoading:n,isError:o}=z(s,{guardrail:t});return e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium",children:"Recent catches"}),n?e.jsx(ae,{label:"catches",variant:"table",rows:4}):o?e.jsx(ne,{label:"catches"}):a.length===0?e.jsx(L,{icon:ie,title:"No catches yet",description:"This guardrail hasn't short-circuited anything on this agent."}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:e.jsxs(Ge,{children:[e.jsx(Te,{children:e.jsxs(H,{children:[e.jsx(R,{className:"w-[180px]",children:"When"}),e.jsx(R,{className:"w-[120px]",children:"Stage"}),e.jsx(R,{children:"Reason"})]})}),e.jsx(Pe,{children:a.map(i=>e.jsxs(H,{children:[e.jsx(G,{className:"text-xs text-muted-foreground",title:i.occurredAt,children:Qe(i.occurredAt)}),e.jsx(G,{children:e.jsx(re,{variant:"outline",className:"text-[10px]",children:D[i.stage]})}),e.jsx(G,{className:"text-sm text-muted-foreground",children:i.reason??e.jsx("span",{className:"italic",children:"no reason recorded"})})]},i.id))})]})})]})}function I({description:s,action:t}){return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("p",{className:"min-w-0 flex-1 text-sm text-muted-foreground",children:s}),t?e.jsx("div",{className:"shrink-0",children:t}):null]})}function _(s,t){return s.get(t)??0}function ss(s,t,a){const n=s.map(i=>{const r=i.stages.map(d=>D[d]);return i.unknown&&r.push("Unknown"),{id:i.name,name:i.name,kind:"builtin",description:i.description,stages:i.stages,enabled:i.enabled,unknown:i.unknown,badges:r,tripCount:_(a,i.name)}}),o=t.map(i=>{const r=[D[i.stage],"Custom"];return{id:i.name,name:i.name,kind:"custom",description:i.policy,stages:[i.stage],enabled:i.enabled,unknown:!1,badges:r,tripCount:_(a,i.name)}});return[...n,...o]}function ee({enabled:s,name:t,expanded:a,onToggleEnabled:n,toggleDisabled:o,onToggle:i}){return e.jsxs("div",{className:"flex shrink-0 items-center gap-2 self-center",children:[e.jsx(le,{checked:s,onCheckedChange:n,disabled:o,"aria-label":s?`Disable ${t}`:`Enable ${t}`}),e.jsx("button",{type:"button",onClick:i,"aria-label":a?"Collapse":"Expand",className:"text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(ce,{className:w("h-4 w-4 transition-transform",a&&"rotate-90")})})]})}function ts({owner:s,agentId:t,expandedName:a}){const n=E(),{data:o,isLoading:i}=B(t),{data:r,isLoading:d}=F(t),{data:f=[]}=z(t),m=q(t),x=async(c,g)=>{if(!o){y.error("Still loading agent settings — try again in a moment");return}try{if(c.kind==="custom")await m.mutateAsync({guardrailsInline:Re(o.guardrailsInline??[],c.name,g)});else{const l=$(o,r??[]);await m.mutateAsync({guardrails:Ye(l,c.name,g)})}y.success(g?"Guardrail enabled":"Guardrail disabled")}catch(l){y.error(l instanceof Error?l.message:"Failed to save guardrail")}},h=r===null,b=N.useMemo(()=>{const c=$(o,r??[]),g=o?.guardrailsInline??[],l=new Map;for(const v of f)l.set(v.guardrailName,(l.get(v.guardrailName)??0)+1);return ss(c,g,l)},[o,r,f]),p=c=>{n({to:"/$owner/agents/$agentId",params:{owner:s,agentId:t},search:g=>({...g,guardrail:c===a?void 0:c}),resetScroll:!1})},j=()=>{n({to:"/$owner/agents/$agentId/guardrails/create",params:{owner:s,agentId:t}})},u=i||d;return!u&&b.length===0?e.jsx("div",{className:"space-y-6",children:h?e.jsx(L,{icon:P,title:"Guardrails catalog unavailable",description:"Guardrails will appear here once the gateway publishes its catalog.",actionLabel:"New guardrail",onAction:j}):e.jsx(L,{icon:P,title:"No guardrails yet",description:"Enable a built-in in lobu.toml or write a custom policy guardrail.",actionLabel:"New guardrail",onAction:j})}):e.jsxs("div",{className:"space-y-6",children:[e.jsx(I,{description:"Each guardrail short-circuits this agent's input, output, or tool-call stages. Built-ins are toggle-only; add a custom guardrail to judge messages against a policy you write.",action:u?void 0:e.jsxs(k,{type:"button",onClick:j,children:[e.jsx(V,{className:"mr-1.5 h-4 w-4"}),"New guardrail"]})}),u?e.jsx(Q,{rows:3}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:b.map((c,g)=>{const l=c.name===a;return e.jsx(as,{card:c,expanded:l,isLast:g===b.length-1,onToggle:()=>p(c.name),onToggleEnabled:v=>void x(c,v),toggleDisabled:c.unknown||m.isPending,children:l?e.jsx(Xe,{owner:s,agentId:t,name:c.name}):null},c.id)})})]})}function as({card:s,expanded:t,isLast:a,onToggle:n,onToggleEnabled:o,toggleDisabled:i,children:r}){return e.jsxs("div",{className:w("bg-background",!a||t?"border-b":""),children:[e.jsxs("div",{className:"flex items-stretch gap-1 pr-3",children:[e.jsxs("button",{type:"button",onClick:n,"aria-expanded":t,className:w("flex min-w-0 flex-1 items-center gap-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",!s.enabled&&!s.unknown&&!t&&"opacity-70"),children:[e.jsx(P,{className:"ml-2 h-4 w-4 shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[e.jsx("span",{className:w("truncate text-sm text-foreground",s.unknown&&"font-mono text-xs"),children:s.name}),s.kind==="custom"&&s.description?e.jsx("p",{className:"line-clamp-1 text-xs text-muted-foreground",children:s.description}):e.jsx("p",{className:"text-xs text-muted-foreground",children:s.tripCount>0?`${s.tripCount} recent ${s.tripCount===1?"catch":"catches"}`:"No recent catches"}),e.jsx(J,{badges:s.badges})]})]}),e.jsx(ee,{enabled:s.enabled,name:s.name,expanded:t,onToggleEnabled:o,toggleDisabled:i,onToggle:n})]}),t&&r?e.jsx("div",{className:"border-t border-border px-4 py-4",children:r}):null]})}function ns({row:s}){const{isSaving:t,updateSkillRow:a}=M(),n=s.system===!0;return e.jsx("div",{className:"space-y-6",children:n?e.jsx("p",{className:"text-sm text-muted-foreground",children:"System skill metadata is managed by Lobu. You can enable or disable it and change its position in the skill list."}):e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(K,{htmlFor:"skill-name",children:"Name"}),e.jsx(de,{id:"skill-name",value:s.name,onChange:o=>a(s.repo,{name:o.target.value}),disabled:t})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(K,{htmlFor:"skill-instructions",children:"Instructions"}),e.jsx(ue,{id:"skill-instructions",value:s.instructions??"",onChange:o=>{const i=o.target.value;a(s.repo,{instructions:i,content:i.trim()||s.name})},rows:4,disabled:t})]})]})})}function is({owner:s,agentId:t,skillKey:a}){const n=E(),[o,i]=N.useState(!1),r=X(a),{skillRows:d,catalog:f,isSaving:m,saveSkills:x,removeSkillAndSave:h,addSkillFromCatalog:b}=M(),p=d.find(g=>g.repo===r)??null,j=f?.catalog.find(g=>g.repo===r);N.useEffect(()=>{!p&&j&&b(r)},[b,j,r,p]);const u=async()=>{await h(r)&&(i(!1),n({to:"/$owner/agents/$agentId",params:{owner:s,agentId:t},search:l=>({...l,skill:void 0}),resetScroll:!1}))};if(!p)return j?null:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Skill not found."});const c=!p.system;return e.jsxs("div",{className:"space-y-6",children:[e.jsx(ns,{row:p}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-end",children:[c?o?e.jsxs(e.Fragment,{children:[e.jsx(k,{type:"button",variant:"destructive",onClick:()=>void u(),disabled:m,children:m?"Removing...":"Remove skill"}),e.jsx(k,{type:"button",variant:"outline",onClick:()=>i(!1),disabled:m,children:"Cancel"})]}):e.jsxs(k,{type:"button",variant:"outline",className:"text-destructive hover:text-destructive",onClick:()=>i(!0),disabled:m,children:["Remove ",p.name]}):null,e.jsx(k,{type:"button",onClick:()=>void x(),disabled:m||o,children:m?"Saving...":"Save changes"})]})]})}function rs(s){return s.map(t=>{const a=He(t).map(String);return{id:t.repo,repo:t.repo,name:t.name,description:t.description,badges:a,enabled:t.enabled}})}const T="Skills bundle instructions, tools, and knowledge an agent can reuse. Add one from the catalog or write your own; drag to set which the agent reaches for first.";function os({owner:s,agentId:t,expandedRepo:a}){const n=E(),{skillRows:o,catalog:i,isLoading:r,isSaving:d,reorderSkills:f,setSkillEnabledAndSave:m,addSkillFromCatalog:x}=M();N.useEffect(()=>{a&&(o.some(l=>l.repo===a)||i?.catalog.some(l=>l.repo===a)&&x(a))},[a,o,i,x]);const h=N.useMemo(()=>rs(o),[o]),b=N.useMemo(()=>h.map(l=>l.repo),[h]),p=Be(U(Me,{activationConstraint:{distance:8}}),U(Fe,{coordinateGetter:Ue})),j=()=>{n({to:"/$owner/agents/$agentId/skills/create",params:{owner:s,agentId:t}})},u=e.jsxs(k,{type:"button",onClick:j,children:[e.jsx(V,{className:"mr-1.5 h-4 w-4"}),"Add skill"]}),c=l=>{n({to:"/$owner/agents/$agentId",params:{owner:s,agentId:t},search:v=>({...v,skill:l===a?void 0:W(l)}),resetScroll:!1})},g=l=>{const{active:v,over:S}=l;!S||v.id===S.id||f(String(v.id),String(S.id))};return r?e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:T}),e.jsx(Q,{rows:2})]}):h.length===0?e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:T}),e.jsx(L,{icon:me,title:"No skills yet",description:"Add a system skill from the catalog or create a custom skill for this agent.",actionLabel:"Add skill",onAction:j})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsx(I,{description:T,action:u}),e.jsx(Ie,{sensors:p,collisionDetection:Ke,onDragEnd:g,children:e.jsx(We,{items:b,strategy:_e,children:e.jsx("div",{className:"overflow-hidden rounded-lg border",children:h.map((l,v)=>{const S=l.repo===a;return e.jsx(ls,{card:l,rank:v+1,disabled:d,expanded:S,isLast:v===h.length-1,onToggle:()=>c(l.repo),onToggleEnabled:se=>void m(l.repo,se),toggleDisabled:d,children:S?e.jsx(is,{owner:s,agentId:t,skillKey:W(l.repo)}):null},l.id)})})})})]})}function ls({card:s,rank:t,disabled:a,expanded:n,isLast:o,onToggle:i,onToggleEnabled:r,toggleDisabled:d,children:f}){const m=a||n,{attributes:x,listeners:h,setNodeRef:b,transform:p,transition:j,isDragging:u}=qe({id:s.repo,disabled:m}),c={transform:Oe.Transform.toString(p),transition:j};return e.jsxs("div",{ref:b,style:c,className:w("bg-background",!o||n?"border-b":"",u&&"z-10 bg-card opacity-80 "),children:[e.jsxs("div",{className:"flex items-stretch gap-1 pr-3",children:[e.jsx("button",{type:"button",className:"flex shrink-0 cursor-grab touch-none items-center px-2 text-muted-foreground hover:text-foreground active:cursor-grabbing disabled:cursor-not-allowed disabled:opacity-50","aria-label":`Reorder ${s.name}`,disabled:m,...x,...h,children:e.jsx(ge,{className:"h-4 w-4"})}),e.jsxs("button",{type:"button",className:w("flex min-w-0 flex-1 items-center gap-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",!s.enabled&&!n&&"opacity-70"),onClick:i,"aria-expanded":n,children:[e.jsx("span",{className:"w-4 shrink-0 text-center text-xs tabular-nums text-muted-foreground",children:t}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[e.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:s.name}),s.description?e.jsx("p",{className:"line-clamp-1 text-xs text-muted-foreground",children:s.description}):null,e.jsx(J,{badges:s.badges})]})]}),e.jsx(ee,{enabled:s.enabled,name:s.name,expanded:n,onToggleEnabled:r,toggleDisabled:d,onToggle:i})]}),n&&f?e.jsx("div",{className:"border-t border-border px-4 py-4",children:f}):null]})}function cs(){return e.jsx("span",{"aria-hidden":"true",className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e.jsx(Ce,{className:"h-4 w-4"})})}function ds({agentId:s}){const[t,a]=N.useState(!1),n=Se(s);return e.jsxs("div",{className:"flex flex-col gap-3 rounded-lg border border-destructive/30 p-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Deleting removes this agent and its configuration from the workspace."}),t?e.jsxs("div",{className:"flex shrink-0 gap-2",children:[e.jsx(k,{type:"button",variant:"destructive",onClick:()=>n.mutate(),disabled:n.isPending,children:n.isPending?"Deleting...":"Delete agent"}),e.jsx(k,{type:"button",variant:"outline",onClick:()=>a(!1),disabled:n.isPending,children:"Cancel"})]}):e.jsx(k,{type:"button",variant:"outline",className:"shrink-0 text-destructive hover:text-destructive",onClick:()=>a(!0),children:"Delete agent"})]})}function us({owner:s,agent:t,runId:a,expandedSkill:n,expandedGuardrail:o}){const{orgContext:i}=Y(),{isAdmin:r}=ye(i.organizationId),{agentId:d}=t;return e.jsxs(e.Fragment,{children:[e.jsx(ze,{resource:{kind:"agent",agentId:d},runId:a,children:({reviewMode:f,proposal:m,controlsDisabled:x})=>e.jsx(we,{mode:{kind:"edit",agent:t},reviewMode:f,reviewProposal:m,reviewControlsDisabled:x},d)}),e.jsx(C,{id:"skills",title:"Skills",children:e.jsx(os,{owner:s,agentId:d,expandedRepo:n?X(n):void 0})}),e.jsx(C,{id:"guardrails",title:"Guardrails",children:e.jsx(ts,{owner:s,agentId:d,expandedName:o})}),r?e.jsx(C,{id:"permissions",title:"Permissions",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(I,{description:"Control which data, agent settings, and connector actions this agent may use automatically, with approval, or not at all."}),e.jsx("div",{className:"overflow-x-auto",children:e.jsx($e,{owner:s,agentId:d})})]})}):null,a?null:e.jsx(ds,{agentId:d})]})}function ms(){return e.jsxs(e.Fragment,{children:[e.jsx(C,{title:"Settings",children:e.jsx(A,{rows:6})}),e.jsx(C,{title:"Models",children:e.jsx(A,{rows:2})}),e.jsx(C,{title:"Skills",children:e.jsx(A,{rows:2})}),e.jsx(C,{title:"Guardrails",children:e.jsx(A,{rows:2})})]})}function gs({owner:s,agentId:t,runId:a,expandedSkill:n,expandedGuardrail:o}){const{orgContext:i,hasOrgContext:r}=Y(),{isLoading:d}=xe(`/${s}`,i),{isAuthenticated:f}=he(),{isMember:m,isLoading:x}=pe(),h=f&&m,{data:b=[],isLoading:p}=fe({enabled:h}),u=(h?!r||d||p||x:d||x)?null:b.find(c=>c.agentId===t)??null;return e.jsx(Ve,{header:e.jsx(be,{breadcrumb:e.jsx(ve,{crumbs:[e.jsx(ke,{to:"/$owner/agents",params:{owner:s},className:Ne,children:"Agents"},"agents")]}),icon:e.jsx(cs,{}),title:u?u.name:e.jsx(je,{className:"h-6 w-40"}),caption:u?.description||void 0}),children:u?e.jsx(us,{owner:s,agent:u,runId:a,expandedSkill:n,expandedGuardrail:o}):e.jsx(ms,{})})}function Ts(){const{owner:s,agentId:t}=O.useParams(),{run_id:a,skill:n,guardrail:o}=O.useSearch();return e.jsx(gs,{owner:s,agentId:t,runId:a,expandedSkill:n,expandedGuardrail:o})}export{Ts as component};
|
|
2
|
+
//# sourceMappingURL=index-CvYsWYlF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{as as l,at as c,j as e,S as n,L as m,C as d,au as x}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{as as l,at as c,j as e,S as n,L as m,C as d,au as x}from"./index-B-Ab8srM.js";function u({owner:a}){const{destinations:r}=l(),{isMember:i,isLoading:o,org:t}=c(a);return e.jsxs("div",{className:"mx-auto flex w-full max-w-xl flex-col gap-6 px-4 pt-4 pb-8",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h1",{className:"text-3xl font-semibold leading-tight",children:"Settings"}),t?e.jsx("p",{className:"text-sm text-muted-foreground",children:t.name}):null]}),o?e.jsx("div",{role:"status","aria-label":"Loading settings","aria-busy":"true",children:e.jsx("div",{"aria-hidden":"true",children:r.map(s=>e.jsx("div",{className:s.separator?"mt-3 border-t border-border pt-3":void 0,children:e.jsxs("div",{className:"flex min-h-12 items-center gap-3 px-3",children:[e.jsx(n,{className:"h-4 w-4 shrink-0 rounded-none"}),e.jsx(n,{className:"h-4 w-24 rounded-none"})]})},s.key))})}):i?e.jsx("nav",{"aria-label":"Settings sections",children:e.jsx("ul",{children:r.map(s=>e.jsx("li",{className:s.separator?"mt-3 border-t border-border pt-3":void 0,children:e.jsxs(m,{to:s.to,params:s.params,search:s.search,className:"flex min-h-12 items-center gap-3 rounded-md px-3 text-sm font-medium transition-colors hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[e.jsx(s.icon,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.label}),e.jsx(d,{className:"h-4 w-4 shrink-0 text-muted-foreground"})]})},s.key))})}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Workspace settings are available to members."})]})}function p(){const{owner:a}=x.useParams();return e.jsx(u,{owner:a})}export{p as component};
|
|
2
|
+
//# sourceMappingURL=index-DIXIvtnM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as t,j as i}from"./index-B-Ab8srM.js";import{A as m}from"./activity-route-view-B0m7_g9q.js";import"./record-activity-6CfR95Ul.js";import"./filter-editors-Dd5R2Etd.js";import"./runs-BMzp7j7j.js";import"./source-record-panels-CBV9tsR3.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./run-initiator-BvruBM5H.js";import"./use-automations-II_YJWtN.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";import"./events-feed-zFnTSE27.js";import"./agent-loading-shells-DHvKiEUB.js";import"./member-scope-gate-Lj9m4RL2.js";import"./home-stream-IVsNEkwp.js";import"./list-skeleton-BAqT0vxo.js";import"./public-shell-ready-Dlh-eWz0.js";function F(){const{owner:o}=t.useParams(),r=t.useSearch();return i.jsx(m,{owner:o,search:r,home:!0})}export{F as component};
|
|
2
|
+
//# sourceMappingURL=index-DLwokXHW.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{be as o,c as u,bf as i,r as c,j as g}from"./index-B-Ab8srM.js";import{C as f}from"./agent-loading-shells-DHvKiEUB.js";function d(t,n,e){const r=t.find(a=>a.system)??t[0];return r?{to:"/$owner/chat/$agentId",params:{owner:n,agentId:r.agentId},search:e,replace:!0}:null}function h(){const{owner:t}=o.useParams(),n=o.useSearch(),e=u(),{data:r=[],isLoading:a}=i(),s=d(r,t,n);return c.useEffect(()=>{s&&e(s)},[e,s]),c.useEffect(()=>{a||r.length>0||e({to:"/$owner/agents",params:{owner:t},replace:!0})},[r.length,a,e,t]),g.jsx(f,{})}export{d as chatEntryTarget,h as component};
|
|
2
|
+
//# sourceMappingURL=index-_nlPHus1.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,j as e,B as m,bg as R,bh as h,bf as E,aG as O,aB as P,aH as F,bi as I,bj as D,b2 as A,bk as z,b3 as B,bl as W,b4 as U,L as G,bm as K,bn as $,ak as H,az as Q,al as q}from"./index-B-Ab8srM.js";import{A as J}from"./automation-row-CmTpAD4r.js";import{o as S,F as V}from"./filter-editors-Dd5R2Etd.js";import{A as X}from"./activity-link-rXNpmppV.js";import{L as Y}from"./list-skeleton-BAqT0vxo.js";import{u as Z,a as ee}from"./use-automations-II_YJWtN.js";import"./device-automation-Dp3faMvp.js";const te=[{value:"all",label:"All"},{value:"event",label:"Event"},{value:"schedule",label:"Schedule"},{value:"manual",label:"Manual"}];function ae({pending:a,onConfirm:s}){const[u,l]=i.useState(!1);return u?e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(m,{type:"button",variant:"destructive",size:"sm",disabled:a,onClick:s,children:"Delete"}),e.jsx(m,{type:"button",variant:"ghost",size:"sm",onClick:()=>l(!1),children:"Cancel"})]}):e.jsx(m,{type:"button",variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-destructive","aria-label":"Delete",onClick:()=>l(!0),children:e.jsx(R,{className:"h-4 w-4"})})}const C=[{value:"reply",label:"Reply to source"},{value:"silent",label:"Runs silently"}],_=[{value:"active",label:"Active"},{value:"failing",label:"Failing"}];function se({facets:a,onChange:s,trailing:u}){const l=[{key:"output",label:"Output",editor:S({searchPlaceholder:"Search outputs...",options:C,selected:a.output==="any"?[]:[a.output],onSelect:n=>s({output:n})})},{key:"state",label:"State",editor:S({searchPlaceholder:"Search states...",options:_,selected:a.state==="any"?[]:[a.state],onSelect:n=>s({state:n})})}],c=[];return a.output!=="any"&&c.push({id:"output",label:"Output",op:"is",value:C.find(n=>n.value===a.output)?.label??a.output,onRemove:()=>s({output:"any"})}),a.state!=="any"&&c.push({id:"state",label:"State",op:"is",value:_.find(n=>n.value===a.state)?.label??a.state,onRemove:()=>s({state:"any"})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[e.jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:te.map(n=>e.jsx(m,{type:"button",variant:a.kind===n.value?"secondary":"ghost","aria-pressed":a.kind===n.value,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>s({kind:n.value}),children:n.label},n.value))}),e.jsx(V,{label:"Automation filters",className:"min-w-0 flex-1",fields:l,chips:c,trailing:u,onClearAll:()=>s(h),hasClearableState:a.kind!=="all"})]})}function ne(a,s){return`flex items-center gap-3 px-3 py-2.5 text-left transition-colors hover:bg-accent/50 ${a===s-1?"":"border-b"}`}function oe({owner:a,organizationId:s,isWorkspaceLoading:u}){const[l,c]=i.useState(h),n=t=>c(o=>({...o,...t})),d=Z(s??void 0),{data:v=[]}=E({enabled:!!s}),{data:b=[]}=O(),{data:p=[]}=P(s),f=ee(),L=i.useMemo(()=>{const t=new Map;for(const o of v)t.set(o.agentId,o.name);return t},[v]),T=i.useMemo(()=>{const t=new Map;for(const o of b)t.set(o.id,o.label||o.platform||o.id);return t},[b]),y=i.useMemo(()=>new Map(p.map(t=>[t.key,t.name])),[p]),j=i.useMemo(()=>{const t=new Set;for(const o of d.data??[])for(const r of o.triggers??[])typeof r?.connection_id=="number"&&t.add(r.connection_id);return[...t].sort((o,r)=>o-r)},[d.data]),{data:w}=F(s,{connectionIds:j,enabled:j.length>0}),N=i.useMemo(()=>new Map((w??[]).map(t=>[t.id,t])),[w]),x=i.useMemo(()=>I(d.data??[],y,N),[d.data,y,N]),g=i.useMemo(()=>D(x,l),[x,l]),M=u||d.isLoading,k=e.jsx(m,{asChild:!0,size:"sm",className:"h-8 shrink-0 text-xs",children:e.jsxs(G,{to:"/$owner/automations/new",params:{owner:a},children:[e.jsx(K,{className:"mr-1.5 h-3.5 w-3.5"}),"New automation"]})});return M?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex justify-end",children:k}),e.jsx(Y,{label:"Loading automations",rows:6})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"What runs on its own — on a schedule, on an event, or when you ask."}),e.jsx(se,{facets:l,onChange:n,trailing:k}),x.length===0?e.jsx(A,{icon:z,title:"No automations yet",description:"Automations act on their own — reply to a message, run a nightly summary, react to a ticket. Use New automation to create one."}):g.length===0?e.jsx(A,{icon:B.automations.icon,title:"No automations match this filter",description:"Try another filter.",secondaryActionLabel:"Show all",secondaryOnAction:()=>c(h)}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:g.map((t,o)=>e.jsx(J,{automation:t,agentName:t.automation.managed_agent_id?L.get(t.automation.managed_agent_id)??t.automation.managed_agent_id:null,deviceLabel:t.automation.device_worker_id?T.get(t.automation.device_worker_id)??t.automation.device_worker_id:null,connectorDisplay:(()=>{const r=W(t.automation);return r?U(r,p):null})(),owner:a,rowClass:ne(o,g.length),actions:e.jsxs(e.Fragment,{children:[e.jsx(X,{owner:a,automationId:t.automation.automation_id,name:t.does}),e.jsx(ae,{pending:f.isPending,onConfirm:()=>f.mutate(t.automation.automation_id)})]})},t.key))})]})}function pe(){const{owner:a}=$.useParams();return e.jsx(H,{className:"gap-3 pt-2.5 pb-8",children:e.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx(Q,{owner:a,children:s=>e.jsx(q,{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx(oe,{owner:s.ownerSlug,organizationId:s.organizationId,isWorkspaceLoading:s.isWorkspaceLoading})})})})})}export{pe as component};
|
|
2
|
+
//# sourceMappingURL=index-cwOgj4-i.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as I,c as C,w as U,r as R,x as S,y as L,j as y}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{v as I,c as C,w as U,r as R,x as S,y as L,j as y}from"./index-B-Ab8srM.js";import{F as P}from"./full-page-spinner-CCU4PkRv.js";function f(t){return t?.trim().toLowerCase()||null}function _(t){return t?.methods??[]}function x(t,s){const e=f(s);if(!e)return null;for(const i of t){const o=_(i.auth_schema);if(!o.some(n=>n.type==="oauth"&&f(n.provider)===e&&Array.isArray(n.loginScopes)&&n.loginScopes.length>0))continue;const r=o.find(n=>n.type==="app_installation"&&f(n.provider)===e);if(r)return{connectorKey:i.key,provider:e,installShape:r.installShape??null}}return null}function z(){const{isAuthenticated:t,authReady:s,currentOwner:e,orgsReady:i}=I(),o=C(),p=U(),r=R.useRef(!1),n=new URLSearchParams(window.location.search).get("onboard_provider"),d=new URLSearchParams(window.location.search).get("connector"),l=d&&/^[a-z0-9][a-z0-9._-]{0,127}$/.test(d)&&!["create","deployments"].includes(d)?d:null;return R.useEffect(()=>{if(s&&p.pathname==="/"){if(t&&e){const a=new URLSearchParams(window.location.hash.replace(/^#/,"")),m=a.get("agent")?.trim(),h=a.get("thread")?.trim(),$=a.get("message")?.trim()||a.get("message_id")?.trim(),c=a.get("run")?.trim(),g=a.get("worker")?.trim();if(!!m&&!!h||!!c&&/^\d+$/.test(c)||!!g){if(r.current)return;if(r.current=!0,window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}`),m&&h){const u=$?`?message_id=${encodeURIComponent($)}`:"";window.location.replace(`/${encodeURIComponent(e)}/chat/${encodeURIComponent(m)}/c/${encodeURIComponent(h)}${u}`);return}if(c&&/^\d+$/.test(c)){const u=new URLSearchParams({run_ids:c,peek:"1",peek_run_id:c});window.location.replace(`/${encodeURIComponent(e)}/events?${u.toString()}`);return}if(g){window.location.replace(`/${encodeURIComponent(e)}/connectors/device/${encodeURIComponent(g)}`);return}}if(r.current)return;if(r.current=!0,l){o({to:"/$owner/connectors/$connectorKey",params:{owner:e,connectorKey:l},replace:!0});return}const w=()=>void o({to:"/$owner",params:{owner:e},replace:!0});if(n){S(e).then(u=>{const v=x(u,n);if(v){window.location.assign(`/${encodeURIComponent(e)}/connectors/${encodeURIComponent(v.connectorKey)}`);return}w()}).catch(w);return}w();return}if(t){i&&o({to:"/account/settings",replace:!0});return}o({to:"/auth/login",search:L({callbackUrl:l?`/?connector=${encodeURIComponent(l)}`:void 0}),replace:!0})}},[s,e,t,i,o,p.pathname,n,l]),y.jsx("div",{"data-public-loading":"true",children:y.jsx(P,{delayMs:0,className:"min-h-0 py-16"})})}export{z as component};
|
|
2
|
+
//# sourceMappingURL=index-pmr1WUoG.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ay as V,j as s,az as se,aA as oe,aB as ae,aC as te,aD as re,aE as ie,aF as ce,aG as de,aH as le,aI as ue,r as y,aJ as pe,al as J,B as q,c as me,aK as fe,aL as he,aM as ve,aN as xe,aO as be,aP as ye,aQ as ge,aR as _e,aS as Ce,aT as je,aU as Q,aV as ke,aW as Ne,aX as Le,aY as Ee,aZ as Ie,a_ as De,a$ as $e,b0 as Re,b1 as Pe,L as F,b2 as Z,b3 as ee,b4 as Ae,b5 as Me,b6 as Oe,b7 as we,b8 as Te,b9 as Be,ba as Ke,bb as Se,bc as Fe,bd as Ge}from"./index-B-Ab8srM.js";import{f as We,a as ze,D as Ue,C as Xe,b as Ye,c as qe,A as He}from"./connector-boxes-BAP_f77M.js";import{L as Ve}from"./list-skeleton-BAqT0vxo.js";import{u as Je}from"./use-automations-II_YJWtN.js";function cn(){const{owner:o}=V.useParams(),{filter:t,group:i}=V.useSearch();return s.jsx(se,{owner:o,children:c=>s.jsx(Qe,{ownerSlug:c.ownerSlug,organizationId:c.organizationId,isWorkspaceLoading:c.isWorkspaceLoading,requestedFilter:t,groupByDevice:i==="device"})})}function Qe({ownerSlug:o,organizationId:t,isWorkspaceLoading:i,requestedFilter:c,groupByDevice:h}){const{data:d=[],isLoading:D,isError:j,refetch:v}=oe(t??""),{data:G=[],isLoading:$,isError:P,refetch:A}=ae(t??""),{data:M=[]}=te(t,{}),{data:O=[],isLoading:W,isError:z,refetch:U}=re(),{data:w=[]}=ie(),{data:T,isLoading:k,isError:N,refetch:x}=ce(),{data:L=[],isLoading:E,isError:B,refetch:X}=de(),{data:K=[]}=le(t),{data:n=[]}=ue(t),{data:r=[]}=Je(t??void 0),g=i||D||$||W||k||E,p=T?.sandboxes??[],I=y.useMemo(()=>L.filter(m=>pe(m,o)),[L,o]);return j||P||z||N||B?s.jsx(J,{children:s.jsxs("div",{role:"alert",className:"space-y-2",children:[s.jsx("p",{children:"Could not load the connector inventory."}),s.jsx(q,{variant:"outline",size:"sm",onClick:()=>{Promise.all([v(),A(),U(),x(),X()])},children:"Retry"})]})}):s.jsx(J,{className:"flex flex-1 flex-col gap-6",children:s.jsx(Ze,{ownerSlug:o,isContentLoading:g,groups:d,installedDefs:G,authProfiles:M,inferenceProviders:O,inferenceCatalog:w,sandboxes:p,devices:I,requestedFilter:c,groupByDevice:h,connections:K,feeds:n,automations:r})})}function Ze({ownerSlug:o,isContentLoading:t,groups:i,installedDefs:c,authProfiles:h,inferenceProviders:d,inferenceCatalog:D,sandboxes:j,devices:v,requestedFilter:G,groupByDevice:$,connections:P,feeds:A,automations:M}){const O=me(),W=y.useMemo(()=>new Map(c.map(n=>[n.key,n])),[c]),z=y.useMemo(()=>We(A),[A]),U=y.useMemo(()=>ze(M),[M]),w={connectorDefs:W,feeds:z,automations:U,ownerSlug:o},T=G??"all",k=y.useMemo(()=>{const n=new Map(i.map(e=>[e.connector_key,e])),r=new Map;for(const e of c)r.set(e.key,e);for(const e of i)r.has(e.connector_key)||r.set(e.connector_key,{key:e.connector_key,name:e.connector_name??e.connector_key,description:null,version:"",auth_schema:null,feeds_schema:null,actions_schema:null,options_schema:null,status:"active",login_enabled:!1,favicon_domain:e.favicon_domain,facets:e.facets});const g=fe(d).filter((e,a,l)=>l.findIndex(b=>b.provider.kind===e.provider.kind)===a).map(e=>({connector:{...e.connector,key:`${he}${e.provider.kind}`,name:D.find(a=>a.slug===e.provider.kind)?.displayName??e.provider.kind},group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:!1,provider:e.provider,sandbox:void 0,device:void 0,deviceFamily:void 0})),p=ve(j).filter((e,a,l)=>l.findIndex(b=>b.sandbox.providerKind===e.sandbox.providerKind)===a).map(e=>({connector:{...e.connector,key:`${xe}${e.sandbox.providerKind}`,name:be(e.sandbox.providerKind)},group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:j.some(a=>a.providerKind===e.sandbox.providerKind&&!a.connected),provider:void 0,sandbox:e.sandbox,device:void 0,deviceFamily:void 0})),I=ye(v,i,o).map(e=>({connector:e.connector,group:void 0,profileCounts:{env:0,oauth_app:0,oauth_account:0,browser_session:0},facets:e.facets,needsSetup:!1,isDevice:!0,provider:void 0,sandbox:void 0,device:e.device,deviceFamily:e}));return[...Array.from(r.values()).filter(e=>e.installed||(n.get(e.key)?.connection_count??0)>0).filter(e=>!ge(e)).map(e=>{const a=n.get(e.key),l=_e(e.auth_schema),b=h.reduce((C,f)=>(f.connector_key!==e.key||(C[f.profile_kind]+=1),C),{env:0,oauth_app:0,oauth_account:0,browser_session:0}),_=Ce(e,a),R=v.some(C=>C.connectors.some(f=>f.organization_slug===o&&f.connector_key===e.key)),S=sn(e,a,l,b);return{connector:e,group:a,profileCounts:b,facets:_,needsSetup:S,isDevice:R,provider:void 0,sandbox:void 0,device:void 0,deviceFamily:void 0}}),...g,...p,...I].sort((e,a)=>e.needsSetup&&!a.needsSetup?-1:!e.needsSetup&&a.needsSetup?1:e.connector.name.localeCompare(a.connector.name))},[o,h,v,i,c,d,D,j]),N=y.useMemo(()=>{const n=je.filter(r=>r!=="all"&&k.some(g=>Q(g,r)));return n.length>1?["all",...n]:[]},[k]),x=N.includes(T)?T:"all",L=y.useMemo(()=>k.filter(n=>Q(n,x)),[k,x]),E=y.useMemo(()=>x==="all"?ke(o,v,Ne()):[],[x,o,v]),B=s.jsx(He,{ownerSlug:o,catalog:c});if(t)return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"flex justify-end",children:B}),s.jsx(Ve,{label:"Loading connectors",rows:6})]});const X=n=>{O({to:"/$owner/connectors",params:{owner:o},search:r=>({...r,group:n?"device":void 0}),replace:!0})},K=n=>{O({to:"/$owner/connectors",params:{owner:o},search:r=>({...r,filter:n==="all"?void 0:n}),replace:!0})};return s.jsxs("div",{className:"space-y-4",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"What your agents can reach — data, tools, models, and runtimes."}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[s.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:[N.map(n=>s.jsx(q,{type:"button",variant:x===n?"secondary":"ghost","aria-pressed":x===n,size:"sm",className:"h-7 px-2 text-xs",onClick:()=>K(n),children:Le[n]},n)),N.length===0&&L.length===0&&E.length>0?s.jsx("p",{className:"text-sm text-muted-foreground",children:"Nothing connected yet — set up one of the apps below."}):null]}),s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[s.jsx(Ee,{delayDuration:200,children:s.jsx("fieldset",{"aria-label":"Group by",className:"m-0 inline-flex min-w-0 rounded-md border p-0.5",children:[{byDevice:!1,label:"Group by connector",icon:s.jsx(Ie,{className:"size-3.5"})},{byDevice:!0,label:"Group by device",icon:s.jsx(De,{className:"size-3.5"})}].map(n=>s.jsxs($e,{children:[s.jsx(Re,{asChild:!0,children:s.jsx(q,{type:"button",size:"sm",variant:$===n.byDevice?"secondary":"ghost","aria-pressed":$===n.byDevice,"aria-label":n.label,className:"size-6 p-0",onClick:()=>X(n.byDevice),children:n.icon})}),s.jsx(Pe,{children:n.label})]},n.label))})}),B]})]}),E.length>0?s.jsx("div",{className:"grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-dashed bg-border sm:grid-cols-[repeat(auto-fit,minmax(10rem,1fr))]",children:E.map(n=>s.jsxs(F,{to:"/$owner/connectors/app/$appId",params:{owner:o,appId:n.id},title:n.tagline,className:"flex min-w-0 items-center gap-2 bg-background px-3 py-2.5 text-muted-foreground transition-colors last:odd:col-span-2 hover:bg-accent/50 hover:text-foreground sm:last:odd:col-span-1",children:[s.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center text-muted-foreground",children:n.icon}),s.jsx("span",{className:"truncate text-sm font-medium",children:n.name})]},n.id))}):null,$?s.jsx(Ue,{...w,devices:v,connections:P}):L.length===0?N.length>0?s.jsx(Z,{icon:ee.connectors.icon,title:"No connectors match this filter",description:"Try another capability.",secondaryActionLabel:"Show all",secondaryOnAction:()=>K("all")}):E.length>0?null:s.jsx(Z,{icon:ee.connectors.icon,title:"No connectors yet",description:"Connect your first connector to this workspace."}):s.jsx("div",{className:Xe,children:L.map(({connector:n,group:r,facets:g,profileCounts:p,needsSetup:I,provider:m,sandbox:e,device:a,deviceFamily:l})=>{const b=new Map(c.map(u=>[u.key,u])),_=Ae(n.key,b,{name:n.name,iconUrl:m?D.find(u=>u.slug===m.kind)?.iconUrl:void 0,faviconDomain:n.favicon_domain??r?.favicon_domain??(e?Me(e.providerKind):void 0)}),R=p.oauth_account+p.browser_session,S=r?.connection_count??0,C=a?`${l?.devices.length??1} ${a.platform==="chrome-extension"?l?.devices.length===1?"profile":"profiles":l?.devices.length===1?"device":"devices"} · ${l?.devices.filter(u=>u.online).length??0} online`:m?en(d.filter(u=>u.kind===m.kind).length,"configured account","configured accounts"):e?`${j.filter(u=>u.providerKind===e.providerKind).length} instances`:[`${S} ${S===1?"connection":"connections"}`,R>0?`${R} ${R===1?"saved authorization":"saved authorizations"}`:null,p.oauth_app>0?`${p.oauth_app} OAuth app${p.oauth_app===1?"":"s"}`:null].filter(Boolean).join(" · "),f=nn,Y=s.jsx(Oe,{mark:a?s.jsx(Be,{platform:Ke(a)}):s.jsx(Se,{icon:_.icon,iconUrl:_.iconUrl,name:_.name,faviconDomain:_.faviconDomain,className:"h-7 w-7 text-[10px]"}),name:_.name,tone:I?"amber":null,details:s.jsx(we,{parts:[I?"Needs setup":null,Te(g).join(", "),C]})}),ne=l?.appId?s.jsx(F,{to:"/$owner/connectors/app/$appId",params:{owner:o,appId:l.appId},className:f,children:Y},n.key):a?s.jsx(F,{to:"/$owner/connectors/device/$deviceId",params:{owner:o,deviceId:a.id},className:f,children:Y},n.key):s.jsx(F,{to:"/$owner/connectors/$connectorKey",params:{owner:o,connectorKey:n.key},search:m||e?{instances:!0}:{},className:f,children:Y},n.key),H=!m&&!e&&!a&&!l;return s.jsx(Ye,{header:ne,action:H?s.jsx(Ge,{ownerSlug:o,connectorKey:n.key,iconOnly:!0}):void 0,children:H?s.jsx(qe,{...w,connections:P.filter(u=>u.connector_key===n.key)}):null},n.key)})})]})}function en(o,t,i){return`${o} ${o===1?t:i}`}const nn=Fe;function sn(o,t,i,c){if((t?.connection_count??0)>0)return!1;const h=i.some(d=>d.type==="none");return!!(!h&&i.some(d=>d.type==="oauth")&&c.oauth_app===0||!h&&i.some(d=>d.type==="env_keys")&&c.env===0||!h&&i.some(d=>d.type==="app_installation")&&!t||o.required_capability&&!t)}export{cn as component};
|
|
2
|
+
//# sourceMappingURL=index-pp4qmhkA.js.map
|