@runeya/runeya 2.0.43 → 2.0.44
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/index.js +1 -1
- package/package.json +1 -1
- package/{src-BCBD4MPB.js → src-7CJJBMY3.js} +2 -2
- package/src-7CJJBMY3.js.map +1 -0
- package/web/assets/{AgentScalarChatInterface.vue-DvTQfMzm.js → AgentScalarChatInterface.vue-DJWCM29h.js} +1 -1
- package/web/assets/{AgentTerminalPage-DKhOFucW.js → AgentTerminalPage-DStCvPsn.js} +1 -1
- package/web/assets/AiChatPage-B74k4w7z.js +1 -0
- package/web/assets/{AppLayout-BlB9navh.js → AppLayout-Crr8vrnA.js} +1 -1
- package/web/assets/{AuditPage-Bty-VH0p.js → AuditPage-ya7Q_-y8.js} +1 -1
- package/web/assets/CloudAccountPage--zPhBcyX.js +1 -0
- package/web/assets/{CloudAccountPage-js-jLYH9.js → CloudAccountPage-BsXQlx4x.js} +1 -1
- package/web/assets/{CloudMessagingPage-CcHF-3g-.js → CloudMessagingPage-sXT8SLY4.js} +1 -1
- package/web/assets/{DashboardPage-DKLubos4.js → DashboardPage-y4tWdya9.js} +1 -1
- package/web/assets/{EditorIcon-BY0Be-x6.js → EditorIcon-CNesALrK.js} +1 -1
- package/web/assets/{EnvironmentForm-De0ooD6L.js → EnvironmentForm-vcLpp9mR.js} +1 -1
- package/web/assets/{EnvironmentFormPage-CTFqK4Uk.js → EnvironmentFormPage-BSeIsEH-.js} +1 -1
- package/web/assets/{EnvironmentListPage-BEh9pV8p.js → EnvironmentListPage-DtSTzbmv.js} +1 -1
- package/web/assets/{EnvironmentSelector-Dy0hN2CU.js → EnvironmentSelector-Dbe1Ilq8.js} +1 -1
- package/web/assets/{KanbanBoardPage-Bsh9hmOL.js → KanbanBoardPage-PkAwHbvp.js} +3 -3
- package/web/assets/{KanbanListPage-CFdC5OKp.js → KanbanListPage-BphN58qM.js} +1 -1
- package/web/assets/{LaunchProjectPage-BRjwdMoT.js → LaunchProjectPage-ClVBkFsC.js} +1 -1
- package/web/assets/{LaunchServicesPage-DCac6pFH.js → LaunchServicesPage-C4C8l5wP.js} +1 -1
- package/web/assets/{LogViewer-DZU_Ks7K.js → LogViewer-DeWk02W9.js} +1 -1
- package/web/assets/{ProcessControls-Cz0d-tXE.js → ProcessControls-uUzThwLe.js} +1 -1
- package/web/assets/{ProcessDetailPage-DL9vunBT.js → ProcessDetailPage-Dj9-KZqI.js} +1 -1
- package/web/assets/{ProcessMetrics-DQlpaLVk.js → ProcessMetrics-dy3TGmKO.js} +1 -1
- package/web/assets/{ProjectDetailPage-cQdKgkeF.js → ProjectDetailPage-Prcd6a6y.js} +1 -1
- package/web/assets/{ProjectListPage-B6tbGcIi.js → ProjectListPage-C3-QvMAf.js} +1 -1
- package/web/assets/{RandomJobTestPage-Cfn_hEDh.js → RandomJobTestPage-B5USJ2CQ.js} +1 -1
- package/web/assets/{ScenarioEditorPage-58MeRIgz.js → ScenarioEditorPage-D0XY_WOp.js} +1 -1
- package/web/assets/{SendToChatDialog-DEc1Elm4.js → SendToChatDialog-BSa5s8PE.js} +1 -1
- package/web/assets/{ServiceControlsBar-DhixuZ83.js → ServiceControlsBar-CRVx5mMr.js} +1 -1
- package/web/assets/{ServiceDetailPage-DidaxSxy.js → ServiceDetailPage-DzxAxNdH.js} +1 -1
- package/web/assets/{ServiceFormPage-k0U-JnnW.js → ServiceFormPage-_3cU1hqt.js} +1 -1
- package/web/assets/{SettingsPage-BHSke5N8.js → SettingsPage-B0mpjswp.js} +4 -4
- package/web/assets/{UnlockPage-BjA_zvKl.js → UnlockPage-DAvZd_hY.js} +1 -1
- package/web/assets/{VariablesTable-DnFsLUxT.js → VariablesTable-CoeTpHQw.js} +1 -1
- package/web/assets/{VersionBadge-BmAmCzuP.js → VersionBadge-D_oFrbj6.js} +1 -1
- package/web/assets/WikiPage-HEXd9iFN.js +1 -0
- package/web/assets/{WikiView-DpizBGZM.js → WikiView-D_gNl0pw.js} +1 -1
- package/web/assets/{add-scalar-classes-Dm1B8KrD.js → add-scalar-classes-B5XCUsCH.js} +3 -3
- package/web/assets/auth-errors-C44F3O24.js +1 -0
- package/web/assets/{autocomplete-ChLvzRqc.js → autocomplete-egYkKgXN.js} +1 -1
- package/web/assets/{basic-shape-diamond.svg-oO6zQRAj.js → basic-shape-diamond.svg-B4ql31Pl.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-CbhK6Cev.js → basic-shape-hexagon.svg-Dse435xU.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-DNuPoqt6.js → basic-shape-primary-circle-ellipse-round.svg-Ca80MM2U.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-BloH38ts.js → basic-shape-primary-square-rectangle.svg-BzMOacCe.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-sXW5EYlc.js → basic-shape-shield.svg-CDpbzQoc.js} +1 -1
- package/web/assets/{browser-CEPseXqJ.js → browser-B6yA2X2D.js} +1 -1
- package/web/assets/{browser-D5YWpkLa.js → browser-CASFdUlr.js} +1 -1
- package/web/assets/{card-C_J2wMyb.js → card-DLRYSKgj.js} +1 -1
- package/web/assets/{checkbox-D71JiZZK.js → checkbox-DX42-aCG.js} +1 -1
- package/web/assets/{chip-C7AjqTl6.js → chip-CDVNzEoh.js} +1 -1
- package/web/assets/{client-cYUmEVna.js → client-wwEU7lJc.js} +1 -1
- package/web/assets/{cloud-chat.store-BM98d5Ka.js → cloud-chat.store-2Mksi6iL.js} +1 -1
- package/web/assets/{cloud-session-BA_vygHQ.js → cloud-session-C0DzgONu.js} +1 -1
- package/web/assets/{column-updCf7gB.js → column-TZbNKWtE.js} +1 -1
- package/web/assets/{computer-device-desktop-monitor.svg-BS5IbePC.js → computer-device-desktop-monitor.svg-QvdUlZtb.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-BivUEaJ2.js → computer-device-desktop.svg-C9Sr1yFe.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-BLCnouIM.js → computer-device-laptop.svg-CQbvy4qG.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-3jImtVLb.js → computer-device-mobile-phone-android-samsung-back.svg-DRwNxxcl.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-CyNTMkt0.js → computer-device-mobile-phone-android-samsung.svg-DZiXwi21.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-CXAthN43.js → computer-device-mobile-phone-iphone-x-back.svg-D1eMrnSS.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CLNWans0.js → computer-device-mobile-phone-iphone-x.svg-MiK72cdg.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-CKRSpRZo.js → computer-device-mobile-tablet-touch.svg-DkPhnoi4.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-CEMch_mP.js → computer-device-mobile-tablet.svg-CDuR2wiu.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-CX7RUFMW.js → computer-device-network-ethernet-cat6.svg-BUBM3jji.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-CV6_np40.js → computer-device-network-lan-www.svg-28lu85cP.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-CBEi2EE9.js → computer-device-network-wifi-connection.svg-BGEvw9iY.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-Buo9J1RC.js → computer-device-network-wifi-router.svg-D8xYZAWK.js} +1 -1
- package/web/assets/{cssMode-CrW7ORez.js → cssMode-Dvq-MecZ.js} +1 -1
- package/web/assets/{divider-O0GP_oED.js → divider-B5VXYGmb.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-BuGkJPKg.js → ecology-science-erlenmeyer-flask.svg-Ct1P3ToA.js} +1 -1
- package/web/assets/{fieldset-BmcJ0u5t.js → fieldset-CIscNGD5.js} +1 -1
- package/web/assets/{freemarker2-Bh-JjlUj.js → freemarker2-CqFs1Djg.js} +1 -1
- package/web/assets/{handlebars-C2uyPXtx.js → handlebars-i2b7C1iO.js} +1 -1
- package/web/assets/{html-BHetVulZ.js → html-BBmJW8Cg.js} +1 -1
- package/web/assets/{htmlMode-D1-Rglw5.js → htmlMode-DPAh_Y5y.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-2j8w6VDy.js → image-flash-lightning.svg-BSAfy_cZ.js} +1 -1
- package/web/assets/{image-picture-flower.svg-By8I9Bfh.js → image-picture-flower.svg-4AEEapQs.js} +1 -1
- package/web/assets/{index-BccReh-B.js → index-Br0Stb0u.js} +290 -290
- package/web/assets/{interface-alert-exclamation-diamond.svg-Dp6GJNjk.js → interface-alert-exclamation-diamond.svg-DclDPUml.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-DpTNDywn.js → interface-alert-exclamation-triangle-warning.svg-AQlrdI6-.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-C-197nzW.js → interface-alert-information-circle.svg-C70b_ORM.js} +1 -1
- package/web/assets/{interface-award-crown.svg-B172Z75_.js → interface-award-crown.svg-D-uMX_D5.js} +1 -1
- package/web/assets/{interface-bookmark.svg-BCN6Md-x.js → interface-bookmark-tag.svg-BBO8UdsI.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-DQzSZJwS.js → interface-bookmark.svg-DdNPAQF4.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-CuJN-DCB.js → interface-calendar-date-one.svg-C5m8QsAn.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-BA557INS.js → interface-content-book-open-pages.svg-D9gk_nRv.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-DwdNn8jZ.js → interface-content-book-page.svg-z_oQ-Kg8.js} +1 -1
- package/web/assets/{interface-content-file.svg-LTfttl-U.js → interface-content-file.svg-CLt_X895.js} +1 -1
- package/web/assets/interface-content-folder.svg-BJQbuSNW.js +1 -0
- package/web/assets/{interface-content-folder.svg-C8-o_mcL.js → interface-content-folder.svg-BW_H9jDi.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-DCNkKnKP.js → interface-copy-clipboard.svg-D89FD0hT.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-DiiiFrpO.js → interface-edit-attachment.svg-CSax0FWg.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-BcLYtdz9.js → interface-edit-binocular.svg-C1t3PxkA.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-B2VvHnMc.js → interface-edit-magic-wand.svg-P-HVaqcv.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-jQjtH0Az.js → interface-edit-tool-paint-roller.svg-BCd-B5Li.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-CUqwrwqi.js → interface-edit-tool-pencil.svg-Dy_8C148.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-NTt-EH61.js → interface-favorite-award.svg-BOUSPQD8.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-BPDholM5.js → interface-favorite-flag.svg-yj88TNA3.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-BCr2GHPg.js → interface-favorite-heart.svg-CZCH_6x9.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-CdgwmWmL.js → interface-favorite-star.svg-CTyJilUu.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-CQ8K3bIl.js → interface-favorite-stars-sparkles.svg-BOBjnmtV.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-Bgoq6aqC.js → interface-hierarchy-flowchart.svg-B0S-kTTJ.js} +1 -1
- package/web/assets/{interface-home-house.svg-D6UM-kUG.js → interface-home-house.svg-Dku5UxpT.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-BQ-AW6qX.js → interface-hyperlink.svg-CJwD4AsW.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-BmpSrmak.js → interface-lighting-brightness.svg-DwLV7f-n.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-BvHd3M88.js → interface-lock-closed.svg-9XB_WC1w.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BItjYSCN.js → interface-lock-open-unlock.svg-DppiuvYV.js} +1 -1
- package/web/assets/{interface-login-key.svg-CGuH92sZ.js → interface-login-key.svg-C4pLwiam.js} +1 -1
- package/web/assets/{interface-search.svg-B1lg1Z20.js → interface-search.svg-BfLZwjYy.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-BnaJ5RVO.js → interface-setting-cog.svg-Cv8hVyGq.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-BLKcioyX.js → interface-share-megaphone-bullhorn.svg-BVlc-dhY.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-CDQKIZe-.js → interface-share-rocket.svg-ChHMNOi9.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-CMND-ubT.js → interface-share-satellite.svg-Bh7sMl8A.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-RTYKfs1O.js → interface-share-space-ship.svg-CcQ-3-tc.js} +1 -1
- package/web/assets/{interface-share.svg-Bb5Pg-gF.js → interface-share.svg-CCg2aMOy.js} +1 -1
- package/web/assets/{interface-signal-square.svg-BXtjcwpb.js → interface-signal-square.svg-CU31YeuE.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-D9R50jtj.js → interface-time-clock-circle.svg-BUUuMbzp.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-DPLmkqav.js → interface-time-hour-glass.svg-W7cfslag.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-D9Q-fmIJ.js → interface-users-multiple.svg-DjyQMEmj.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-DdEvOhuF.js → interface-weather-moon.svg-C2sv5n1P.js} +1 -1
- package/web/assets/{javascript-BJ_RoK9J.js → javascript-D-ps7-Fj.js} +1 -1
- package/web/assets/{jsonMode-BVUPdJvw.js → jsonMode-C8spHQzS.js} +1 -1
- package/web/assets/{liquid-Dw_w9kjN.js → liquid-DqSbumgt.js} +1 -1
- package/web/assets/{lspLanguageFeatures-D1CkvX8u.js → lspLanguageFeatures-CY8c9PkF.js} +1 -1
- package/web/assets/{mail-chat-bubble-square.svg-BpWo2cNA.js → mail-chat-bubble-square.svg-C3X6jNwQ.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-Bzv74TO9.js → mail-send-email-paper-airplane.svg-DAIGQOyP.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-C7SOLRRZ.js → mail-send-envelope.svg-CA0S-i50.js} +1 -1
- package/web/assets/{mdx-BrGSlSCx.js → mdx-DvZHY6Gn.js} +1 -1
- package/web/assets/{message-DK0NuiJV.js → message-Cj-E8qHk.js} +1 -1
- package/web/assets/{minus-wu11RoWs.js → minus-Bk1xGw-l.js} +1 -1
- package/web/assets/modal-Bi7DAFyz.js +1 -0
- package/web/assets/{modal-D3t8Ox94.js → modal-BtlOliEo.js} +1 -1
- package/web/assets/{money-cashier-receipt.svg-Cmlyv9dV.js → money-cashier-receipt.svg-TBP6hXoT.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-DyC3TaRZ.js → money-currency-dollar-pay.svg-DYwjJWCD.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-CEjUEWxA.js → money-graph-arrow-increase.svg-BR1Gr97f.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-Bara5Brl.js → money-graph-bar-chart-increase.svg-BNAoJq2R.js} +1 -1
- package/web/assets/{multiselect-BP94l_ir.js → multiselect-DI4UWQQc.js} +1 -1
- package/web/assets/{nature-ecology-leaf.svg-B5ciEPve.js → nature-ecology-leaf.svg-CHJE8I4R.js} +1 -1
- package/web/assets/{password-BUtJbxE3.js → password-tS13MOUm.js} +1 -1
- package/web/assets/{phone-telephone.svg-DNKdcZJ2.js → phone-telephone.svg-CJQLiuXQ.js} +1 -1
- package/web/assets/{plus-C7bI9mFz.js → plus-CB_mX6Lf.js} +1 -1
- package/web/assets/process.store-DCXMZqHz.js +1 -0
- package/web/assets/{programming-bug.svg-CpYo2du6.js → programming-bug.svg-BXjb-M36.js} +1 -1
- package/web/assets/{programming-cloud.svg-D_zkdWea.js → programming-cloud.svg-gt7FIwaa.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-DkHfFnEz.js → programming-computer-database-server.svg-BtO4lpAh.js} +1 -1
- package/web/assets/{programming-computer-database.svg-BCsTpoJa.js → programming-computer-database.svg-DQ-dZqw4.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-DNmJrDwu.js → programming-module-four-layout.svg-laiWKIf7.js} +1 -1
- package/web/assets/{programming-module-three.svg-BJc3-ew3.js → programming-module-three.svg--oNt7CzW.js} +1 -1
- package/web/assets/{programming-module.svg-BZwJEgm4.js → programming-module.svg-C9Ai98wU.js} +1 -1
- package/web/assets/{programming-script-code.svg-XluL4-kj.js → programming-script-code.svg-DhbU3qfH.js} +1 -1
- package/web/assets/{python-CZA6_D2R.js → python-BQIuDGub.js} +1 -1
- package/web/assets/{razor-Bo3WI0xr.js → razor-C_wqRSVy.js} +1 -1
- package/web/assets/router-B5tVgvg3.js +1 -0
- package/web/assets/{settings.store-BvLON7i0.js → settings.store-p3x3oG-N.js} +1 -1
- package/web/assets/{shopping-cart.svg-AqPlrTSd.js → shopping-cart.svg-D-mwPXiz.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-7_UzPaTB.js → shopping-gift-present.svg-CplnpU1q.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-P4w6-pd2.js → shopping-shipping-box-parcel-package.svg-D0k-fVoU.js} +1 -1
- package/web/assets/{src-Blu-ZBDL.js → src-B_ytlQOt.js} +1 -1
- package/web/assets/{src-Dcf22pj8.js → src-D0-roPyX.js} +1 -1
- package/web/assets/{tabpanel-Bky5Zm5J.js → tabpanel-BXlQXZ2Q.js} +1 -1
- package/web/assets/{tag-new-circle.svg-AXVHdNhH.js → tag-new-circle.svg-msSLdpvt.js} +1 -1
- package/web/assets/{travel-map-earth-globe.svg-BivVxEUe.js → travel-map-earth-globe.svg-BfNt3fj_.js} +1 -1
- package/web/assets/trpc--zmPP0fK.js +1 -0
- package/web/assets/{tsMode-BQuljS57.js → tsMode-B-iW-fA7.js} +1 -1
- package/web/assets/{typescript-D4Ib-WZU.js → typescript-X0FI4nNI.js} +1 -1
- package/web/assets/useAiChatDrawer-CmZm2O_C.js +1 -0
- package/web/assets/{useCloudOrg-DjEh-nNG.js → useCloudOrg-BsMHgwHL.js} +1 -1
- package/web/assets/{xml-CcW5Dkgz.js → xml-BGZfBXt_.js} +1 -1
- package/web/assets/{yaml-BOXnBlH-.js → yaml-Bu_QXl8g.js} +1 -1
- package/web/index.html +1 -1
- package/src-BCBD4MPB.js.map +0 -1
- package/web/assets/AiChatPage-CHtcy1Yk.js +0 -1
- package/web/assets/CloudAccountPage-CXphoLh_.js +0 -1
- package/web/assets/WikiPage-DXkZVbcw.js +0 -1
- package/web/assets/auth-errors-C2OoRr9K.js +0 -1
- package/web/assets/interface-content-folder.svg-DqYDXDG8.js +0 -1
- package/web/assets/modal-DIk-IYyf.js +0 -1
- package/web/assets/process.store-B0Donn4Z.js +0 -1
- package/web/assets/router-Csdq6N-6.js +0 -1
- package/web/assets/trpc-B951U01E.js +0 -1
- package/web/assets/useAiChatDrawer-UwFLSHQp.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ei as e,En as t,Fn as n,Gr as r,Gt as i,Jr as a,Kt as o,Qr as s,Si as c,Tn as l,Ui as u,Ur as d,Ut as ee,Xi as f,Xr as p,Yr as m,Zr as h,_a as g,ai as _,an as v,c as y,ca as b,hi as x,l as S,ln as C,ni as w,pn as te,qt as ne,ri as T,s as E,zt as D}from"./index-
|
|
1
|
+
import{Ei as e,En as t,Fn as n,Gr as r,Gt as i,Jr as a,Kt as o,Qr as s,Si as c,Tn as l,Ui as u,Ur as d,Ut as ee,Xi as f,Xr as p,Yr as m,Zr as h,_a as g,ai as _,an as v,c as y,ca as b,hi as x,l as S,ln as C,ni as w,pn as te,qt as ne,ri as T,s as E,zt as D}from"./index-Br0Stb0u.js";import{t as O}from"./message-Cj-E8qHk.js";import{t as k}from"./card-DLRYSKgj.js";import{t as A}from"./VersionBadge-D_oFrbj6.js";import{t as j}from"./password-tS13MOUm.js";var M={class:`unlock-container`},N={class:`unlock-header`},P={class:`unlock-title`,"data-testid":`unlock-title`},F={class:`unlock-subtitle`},I={class:`field`},L={for:`masterPassword`},R={key:0,class:`field`},z={for:`encryptionKey`},B={class:`field-help`},V=C(_({__name:`UnlockPage`,setup(_){let C=t(),V=l(),{t:H}=n(),U=y(),W=S(),G=b(``),K=b(``),q=b(``),J=b(!1),Y=b(null),X=b(null);function Z(){x(()=>{(X.value?.$el?.querySelector(`input`))?.focus()})}let Q=a(()=>Y.value?.state===`setup`);c(async()=>{Z();try{Y.value=await ee(),Y.value.state===`unlocked`&&await $()}catch{q.value=H(`unlockPage.serverUnreachable`)}});async function re(){q.value=``,J.value=!0;try{let e;if(Y.value?.state===`setup`){let t=Y.value.hasVerifyFile&&!Y.value.isLegacyMigration&&K.value||void 0;e=await o(G.value,t)}else e=await ne(G.value);i(e),await E({loadPreferences:()=>W.loadPreferences(),initTrpcWs:D,startStatusStream:()=>U.startStatusStream()}),await $()}catch(e){q.value=e instanceof Error?e.message:H(`unlockPage.unknownError`),Z()}finally{J.value=!1}}async function $(){let e=V.query.redirect;e&&e.startsWith(`/`)?await C.push(e):await C.push({name:`launch-project`})}return(t,n)=>(e(),s(`div`,M,[T(g(k),{class:`unlock-card`},{header:u(()=>[m(`div`,N,[m(`h1`,P,f(Q.value?g(H)(`unlockPage.titleSetup`):g(H)(`unlockPage.titleLocked`)),1),m(`p`,F,[Q.value&&Y.value?.isLegacyMigration?(e(),s(r,{key:0},[w(f(g(H)(`unlockPage.subtitleLegacyMigration`)),1)],64)):Q.value&&Y.value?.hasVerifyFile?(e(),s(r,{key:1},[w(f(g(H)(`unlockPage.subtitleHasVerifyFile`)),1)],64)):Q.value?(e(),s(r,{key:2},[w(f(g(H)(`unlockPage.subtitleSetup`)),1)],64)):(e(),s(r,{key:3},[w(f(g(H)(`unlockPage.subtitleUnlock`)),1)],64))])])]),content:u(()=>[m(`form`,{onSubmit:d(re,[`prevent`]),class:`unlock-form`},[m(`div`,I,[m(`label`,L,f(g(H)(`unlockPage.masterPasswordLabel`)),1),T(g(j),{ref_key:`passwordRef`,ref:X,id:`masterPassword`,"data-testid":`master-password-input`,modelValue:G.value,"onUpdate:modelValue":n[0]||=e=>G.value=e,feedback:Q.value,toggleMask:``,fluid:``,disabled:J.value,autocomplete:Q.value?`new-password`:`current-password`,placeholder:g(H)(`unlockPage.masterPasswordPlaceholder`)},null,8,[`modelValue`,`feedback`,`disabled`,`autocomplete`,`placeholder`])]),Q.value&&Y.value?.hasVerifyFile&&!Y.value?.isLegacyMigration?(e(),s(`div`,R,[m(`label`,z,f(g(H)(`unlockPage.encryptionKeyLabel`)),1),T(g(v),{id:`encryptionKey`,"data-testid":`encryption-key-input`,modelValue:K.value,"onUpdate:modelValue":n[1]||=e=>K.value=e,fluid:``,disabled:J.value,placeholder:g(H)(`unlockPage.encryptionKeyPlaceholder`),autocomplete:`off`},null,8,[`modelValue`,`disabled`,`placeholder`]),m(`small`,B,f(g(H)(`unlockPage.encryptionKeyHelp`)),1)])):h(``,!0),q.value?(e(),p(g(O),{key:1,severity:`error`,closable:!1,"data-testid":`unlock-error`},{default:u(()=>[w(f(q.value),1)]),_:1})):h(``,!0),Q.value?(e(),p(g(O),{key:2,severity:`info`,closable:!1,class:`machine-warning`},{default:u(()=>[w(f(g(H)(`unlockPage.machineWarning`)),1)]),_:1})):h(``,!0),T(g(te),{type:`submit`,"data-testid":`unlock-submit-btn`,label:J.value?g(H)(`unlockPage.pleaseWait`):Q.value?g(H)(`unlockPage.configure`):g(H)(`unlockPage.unlock`),disabled:J.value||!G.value,loading:J.value,fluid:``},null,8,[`label`,`disabled`,`loading`])],32)]),_:1}),T(A)]))}}),[[`__scopeId`,`data-v-c715ee4a`]]);export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ei as e,Fn as t,Gr as n,Jr as r,Oi as i,Qr as a,Ri as o,Si as s,Ui as c,Ur as ee,Xi as l,Xr as u,Yi as d,Yr as f,Zr as p,_a as m,ai as h,an as g,ca as _,dn as v,et as te,hi as y,in as b,jn as ne,ln as x,ni as re,pn as ie,qi as S,ri as C,vi as w,zi as ae}from"./index-BccReh-B.js";import{t as T}from"./message-DK0NuiJV.js";import{n as oe,t as E}from"./column-updCf7gB.js";import{n as se,t as ce}from"./autocomplete-ChLvzRqc.js";import{t as D}from"./uuid-2Kb5PDpq.js";var O={key:0,class:`env-badge`},k={class:`env-badge__name`},le=x(h({__name:`EnvironmentBadge`,props:{environmentId:{}},setup(t){let n=t,i=te(),o=r(()=>i.getById(n.environmentId));function s(e){if(e)return e.startsWith(`#`)?e:`#${e}`}return(t,n)=>o.value?(e(),a(`span`,O,[f(`span`,{class:`env-badge__swatch`,style:d({backgroundColor:s(o.value.bgColor)||s(o.value.color)||`var(--p-primary-color)`})},null,4),f(`span`,k,l(o.value.name),1)])):p(``,!0)}}),[[`__scopeId`,`data-v-b70e647b`]]),A={class:`key-row`},j={class:`expansion-field expansion-field--key`},ue=[`for`],de={key:2,class:`value-display`},fe={key:0,class:`expansion-field expansion-field--toggle`},pe={class:`expansion-label`,for:`varrow-secret`},me={key:1,class:`expansion-field expansion-field--toggle`},he=[`title`],ge={key:2,class:`key-row-delete`},_e={key:0,class:`not-secret-warning`},ve={class:`expansion-section`},M={class:`section-title`},ye={class:`section-fields`},be={class:`expansion-field expansion-field--prepost`},N={class:`expansion-label`,for:`varrow-prefix`},P={key:1,class:`value-display`},xe={class:`expansion-field expansion-field--value`},Se=[`for`],F={key:0,class:`secret-input-wrap`},I=[`disabled`],L=[`title`],Ce={key:1,class:`value-display value-display--with-actions`},we={key:0,class:`value-actions`},Te={key:0},R={key:1},Ee={class:`expansion-field expansion-field--prepost`},z={class:`expansion-label`,for:`varrow-suffix`},De={key:1,class:`value-display`},B={key:0,class:`preview-value`},Oe={key:0,class:`prepost-part prepost-part--pre`},ke={key:1,class:`prepost-part prepost-part--interpolation`},Ae={class:`prepost-part--value prepost-resolved-inline`},je=[`title`],Me={key:2,class:`prepost-part prepost-part--value`},Ne={key:3,class:`prepost-part prepost-part--post`},Pe={key:1,class:`expansion-section`},Fe={class:`section-header`},Ie={class:`section-title`},Le={class:`section-fields`},Re={class:`expansion-field expansion-field--prepost`},ze={class:`expansion-label`,for:`varrow-override-prefix`},Be={class:`expansion-field expansion-field--value`},V=[`for`],Ve={key:0,class:`secret-input-wrap`},He=[`disabled`],Ue=[`title`],We={class:`expansion-field expansion-field--prepost`},Ge={class:`expansion-label`,for:`varrow-override-suffix`},Ke={key:1,class:`override-view`},qe={key:0,class:`value-display--with-actions`},Je={class:`value-actions`},Ye={key:0,class:`override-value-masked`},Xe={key:1,class:`override-value`},Ze={key:1,class:`override-value`},Qe={key:1,class:`override-empty`},$e={key:0,class:`preview-value preview-value--override`},et={key:0,class:`prepost-part prepost-part--pre`},tt={key:1,class:`prepost-part prepost-part--interpolation`},nt={key:0,class:`prepost-part--value prepost-resolved-inline`},rt={key:2,class:`prepost-part prepost-part--value`},it={key:3,class:`prepost-part prepost-part--post`},at=x(h({__name:`VariableRowEditor`,props:{environmentId:{},variableId:{},overrides:{},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},canEditSource:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showOverrideBadge:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},resolvedEnv:{default:()=>({})},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},isPending:{type:Boolean,default:!1}},emits:[`deleted`,`saved`,`autocomplete-search`,`override-changed`,`edit-source`],setup(i,{emit:o}){let c=/^\{\{(.+)\}\}$/,d=/^\{\{environment\.(.+)\}\}$/,h=i,v=o,y=te(),x=ne(),{t:w}=t(),T=_(!1),oe=_(!1),E=_(!1),D=_(!1),O=_(!1),k=_(null);function le(e,t){navigator.clipboard.writeText(t),k.value=e,setTimeout(()=>{k.value===e&&(k.value=null)},1500)}let at=r(()=>y.getById(h.environmentId)?.variables?.[h.variableId]),H=_(``),U=_(``),W=_(``),G=_(``),K=_(!1),ot=_(!1),st=r(()=>Q(U.value)),q=r(()=>K.value&&!st.value);function ct(){let e=at.value;H.value=e?.key??``,U.value=e?.value?.value??``,W.value=e?.value?.pre??``,G.value=e?.value?.post??``,K.value=e?.value?.isSecret??!1,ot.value=e?.value?.injectIntoAi??!1}s(ct),ae(at,(e,t)=>{!t&&e&&ct()});let J=r(()=>h.overrides[h.variableId]??null),Y=_(``),X=_(``),Z=_(``);function lt(){let e=J.value;Y.value=e?.pre??``,X.value=e?.value??``,Z.value=e?.post??``}s(lt),ae(J,lt);function Q(e){return c.test(e)}function ut(e){let t=e.match(c);return t?t[1].replace(/^environment\./,``):e}function dt(e){let t=e.match(d);return t?h.resolvedEnv[t[1]]??null:null}function ft(e){let t=e.value;H.value=t,U.value=`{{environment.${t}}}`,K.value=!1;let n=h.autocompleteMeta?.[t];n&&(W.value=n.pre,G.value=n.post),$()}async function $(){if(T.value)return;let e=H.value.trim();if(e){T.value=!0;try{await y.upsertVariable(h.environmentId,h.variableId,{key:e,value:{value:U.value,pre:W.value,post:G.value,isSecret:q.value,injectIntoAi:ot.value}}),h.isPending&&v(`saved`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.saveError`),life:4e3})}finally{T.value=!1}}}async function pt(){if(h.isPending){v(`deleted`);return}T.value=!0;try{J.value&&await y.removeOverride(h.variableId),await y.removeVariable(h.environmentId,h.variableId),v(`deleted`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.deleteError`),life:4e3})}finally{T.value=!1}}async function mt(){let e=Y.value||X.value||Z.value;try{if(!e){J.value&&(await y.removeOverride(h.variableId),v(`override-changed`));return}await y.setOverride(h.variableId,{value:{value:X.value,pre:Y.value,post:Z.value,isSecret:q.value}}),v(`override-changed`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.overrideError`),life:4e3})}}async function ht(){try{await y.removeOverride(h.variableId),v(`override-changed`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.clearOverrideError`),life:4e3})}}function gt(e){let t=e.relatedTarget;(!t||!e.currentTarget.contains(t))&&$()}return(t,r)=>(e(),a(`div`,{class:`expansion-form`,onFocusout:gt},[f(`div`,A,[f(`div`,j,[f(`label`,{class:`expansion-label`,for:i.editable&&i.autocompleteEnabled?`varrow-key-ac`:`varrow-key-input`},l(m(w)(`common.key`)),9,ue),i.editable&&i.autocompleteEnabled?(e(),u(m(ce),{key:0,"input-id":`varrow-key-ac`,modelValue:H.value,"onUpdate:modelValue":r[0]||=e=>H.value=e,suggestions:i.autocompleteSuggestions,placeholder:m(w)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:i.disabled,onComplete:r[1]||=e=>v(`autocomplete-search`,e.query),onItemSelect:ft,onBlur:$},null,8,[`modelValue`,`suggestions`,`placeholder`,`disabled`])):i.editable?(e(),u(m(g),{key:1,id:`varrow-key-input`,modelValue:H.value,"onUpdate:modelValue":r[2]||=e=>H.value=e,placeholder:m(w)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,de,l(H.value),1))]),i.editable&&!st.value?(e(),a(`div`,fe,[f(`label`,pe,l(m(w)(`variableRowEditor.secret`)),1),C(m(se),{"input-id":`varrow-secret`,modelValue:K.value,"onUpdate:modelValue":[r[3]||=e=>K.value=e,$],disabled:i.disabled},null,8,[`modelValue`,`disabled`])])):p(``,!0),i.editable?(e(),a(`div`,me,[f(`label`,{class:`expansion-label`,for:`varrow-injectai`,title:m(w)(`variableRowEditor.injectIntoAiHint`)},l(m(w)(`variableRowEditor.injectIntoAi`)),9,he),C(m(se),{"input-id":`varrow-injectai`,modelValue:ot.value,"onUpdate:modelValue":[r[4]||=e=>ot.value=e,$],disabled:i.disabled},null,8,[`modelValue`,`disabled`])])):p(``,!0),i.showDelete&&i.editable?(e(),a(`div`,ge,[C(m(ie),{icon:`pi pi-trash`,severity:`danger`,text:``,rounded:``,size:`small`,disabled:i.disabled||T.value,onClick:pt},null,8,[`disabled`])])):p(``,!0)]),i.editable&&!K.value&&!Q(U.value)?(e(),a(`div`,_e,[r[26]||=f(`i`,{class:`pi pi-info-circle`},null,-1),f(`span`,null,l(m(w)(`variableRowEditor.notSecretWarning`)),1)])):p(``,!0),f(`div`,ve,[f(`div`,M,l(m(w)(`variableRowEditor.value`)),1),f(`div`,ye,[f(`div`,be,[f(`label`,N,l(m(w)(`variableRowEditor.prefix`)),1),i.editable?(e(),u(m(g),{key:0,id:`varrow-prefix`,modelValue:W.value,"onUpdate:modelValue":r[5]||=e=>W.value=e,placeholder:m(w)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,P,l(W.value||`—`),1))]),f(`div`,xe,[f(`label`,{class:`expansion-label`,for:q.value?`varrow-value-secret`:`varrow-value-plain`},l(m(w)(`variableRowEditor.value`)),9,Se),i.editable?(e(),a(n,{key:0},[q.value?(e(),a(`div`,F,[C(m(g),{id:`varrow-value-secret`,modelValue:U.value,"onUpdate:modelValue":r[6]||=e=>U.value=e,type:D.value?`text`:`password`,placeholder:m(w)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),f(`button`,{type:`button`,class:`secret-toggle`,disabled:i.disabled,onClick:r[7]||=e=>D.value=!D.value,tabindex:`-1`},[f(`i`,{class:S(D.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,I)])):Q(U.value)&&!oe.value?(e(),a(`span`,{key:1,class:`interpolation-badge`,title:U.value,onClick:r[8]||=e=>oe.value=!0},[C(m(b),{severity:`secondary`,value:ut(U.value)},null,8,[`value`]),r[27]||=f(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,L)):(e(),u(m(g),{key:2,id:`varrow-value-plain`,modelValue:U.value,"onUpdate:modelValue":r[9]||=e=>U.value=e,placeholder:m(w)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:i.disabled,onFocus:r[10]||=e=>oe.value=!0,onBlur:r[11]||=e=>{oe.value=!1,$()}},null,8,[`modelValue`,`placeholder`,`disabled`]))],64)):(e(),a(`span`,Ce,[U.value?(e(),a(`span`,we,[q.value?(e(),a(`i`,{key:0,class:S([D.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[12]||=e=>D.value=!D.value},null,2)):p(``,!0),f(`i`,{class:S([k.value===`val`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[13]||=e=>le(`val`,W.value+U.value+G.value)},null,2)])):p(``,!0),Q(U.value)?(e(),u(m(b),{key:1,severity:`secondary`,value:ut(U.value)},null,8,[`value`])):q.value?(e(),a(n,{key:2},[D.value?(e(),a(`span`,R,l(U.value),1)):(e(),a(`span`,Te,`***`))],64)):(e(),a(n,{key:3},[re(l(U.value),1)],64))]))]),f(`div`,Ee,[f(`label`,z,l(m(w)(`variableRowEditor.suffix`)),1),i.editable?(e(),u(m(g),{key:0,id:`varrow-suffix`,modelValue:G.value,"onUpdate:modelValue":r[14]||=e=>G.value=e,placeholder:m(w)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,De,l(G.value||`—`),1))])]),q.value?p(``,!0):(e(),a(`code`,B,[W.value?(e(),a(`span`,Oe,l(W.value),1)):p(``,!0),Q(U.value)?(e(),a(`span`,ke,[dt(U.value)==null?(e(),a(n,{key:1},[C(m(b),{severity:`secondary`,value:ut(U.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[28]||=f(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(e(),a(n,{key:0},[f(`span`,Ae,l(dt(U.value)),1),i.canEditSource?(e(),a(`i`,{key:0,class:`pi pi-pencil edit-source-icon`,title:m(w)(`variablesTable.editParentTitle`),onClick:r[15]||=ee(e=>v(`edit-source`),[`stop`])},null,8,je)):p(``,!0)],64))])):(e(),a(`span`,Me,l(U.value||`…`),1)),G.value?(e(),a(`span`,Ne,l(G.value),1)):p(``,!0)]))]),i.showOverrides&&H.value?.trim()?(e(),a(`div`,Pe,[f(`div`,Fe,[f(`div`,Ie,l(m(w)(`variableRowEditor.localOverride`)),1),i.editable&&J.value?(e(),u(m(ie),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`danger`,title:m(w)(`variableRowEditor.clearOverride`),disabled:i.disabled,onClick:ht},null,8,[`title`,`disabled`])):p(``,!0)]),f(`div`,Le,[i.editable?(e(),a(n,{key:0},[f(`div`,Re,[f(`label`,ze,l(m(w)(`variableRowEditor.prefix`)),1),C(m(g),{id:`varrow-override-prefix`,modelValue:Y.value,"onUpdate:modelValue":r[16]||=e=>Y.value=e,placeholder:m(w)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`placeholder`,`disabled`])]),f(`div`,Be,[f(`label`,{class:`expansion-label`,for:q.value?`varrow-override-value-secret`:`varrow-override-value-plain`},l(m(w)(`variableRowEditor.value`)),9,V),q.value?(e(),a(`div`,Ve,[C(m(g),{id:`varrow-override-value-secret`,modelValue:X.value,"onUpdate:modelValue":r[17]||=e=>X.value=e,type:O.value?`text`:`password`,placeholder:m(w)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),f(`button`,{type:`button`,class:`secret-toggle`,disabled:i.disabled,onClick:r[18]||=e=>O.value=!O.value,tabindex:`-1`},[f(`i`,{class:S(O.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,He)])):Q(X.value)&&!E.value?(e(),a(`span`,{key:1,class:`interpolation-badge`,title:X.value,onClick:r[19]||=e=>E.value=!0},[C(m(b),{severity:`secondary`,value:ut(X.value)},null,8,[`value`]),r[29]||=f(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,Ue)):(e(),u(m(g),{key:2,id:`varrow-override-value-plain`,modelValue:X.value,"onUpdate:modelValue":r[20]||=e=>X.value=e,placeholder:m(w)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:i.disabled,onFocus:r[21]||=e=>E.value=!0,onBlur:r[22]||=e=>{E.value=!1,mt()}},null,8,[`modelValue`,`placeholder`,`disabled`]))]),f(`div`,We,[f(`label`,Ge,l(m(w)(`variableRowEditor.suffix`)),1),C(m(g),{id:`varrow-override-suffix`,modelValue:Z.value,"onUpdate:modelValue":r[23]||=e=>Z.value=e,placeholder:m(w)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`placeholder`,`disabled`])])],64)):(e(),a(`div`,Ke,[J.value?(e(),a(`span`,qe,[f(`span`,Je,[q.value||J.value.isSecret?(e(),a(`i`,{key:0,class:S([O.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[24]||=e=>O.value=!O.value},null,2)):p(``,!0),f(`i`,{class:S([k.value===`ovr`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[25]||=e=>le(`ovr`,J.value.pre+J.value.value+J.value.post)},null,2)]),q.value||J.value.isSecret?(e(),a(n,{key:0},[O.value?(e(),a(`code`,Xe,l(J.value.pre)+l(J.value.value)+l(J.value.post),1)):(e(),a(`span`,Ye,`***`))],64)):(e(),a(`code`,Ze,l(J.value.pre)+l(J.value.value)+l(J.value.post),1))])):(e(),a(`span`,Qe,`—`))]))]),i.editable&&!q.value&&(Y.value||X.value||Z.value)?(e(),a(`code`,$e,[Y.value?(e(),a(`span`,et,l(Y.value),1)):p(``,!0),Q(X.value)?(e(),a(`span`,tt,[dt(X.value)==null?(e(),a(n,{key:1},[C(m(b),{severity:`secondary`,value:ut(X.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[30]||=f(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(e(),a(`span`,nt,l(dt(X.value)),1))])):(e(),a(`span`,rt,l(X.value||`…`),1)),Z.value?(e(),a(`span`,it,l(Z.value),1)):p(``,!0)])):p(``,!0)])):p(``,!0)],32))}}),[[`__scopeId`,`data-v-2a3078f4`]]),H={class:`table-toolbar`},U={key:0,class:`overrides-filter`},W={for:`overrides-filter`},G={class:`text-center py-4 text-gray-500`},K={class:`row-key-cell`},ot={class:`row-key-line`},st={class:`row-key`},q=[`title`],ct=[`title`],J={key:1,class:`resolved-from-line`},Y={class:`row-value`},X=[`title`,`onClick`],Z=[`title`,`onClick`],lt={key:1,class:`value-levels`},Q={class:`resolved-level`},ut={key:0,class:`secret-mask`},dt=[`title`],ft={key:0,class:`secret-mask`},$=[`title`],pt=[`title`],mt={key:6,class:`empty-value`},ht={key:0,class:`override-indicator`},gt=[`title`,`onClick`],_t=[`title`,`onClick`],vt={key:0,class:`override-value-masked`},yt=[`title`],bt=[`title`],xt={key:0,class:`parent-edit`},St={class:`parent-edit__field`},Ct={class:`parent-edit__label`,for:`parent-edit-value`},wt={class:`parent-edit__usages`},Tt={class:`parent-edit__usages-title`},Et={key:0,class:`parent-edit__usages-loading`},Dt={key:0,class:`parent-edit__usage-list`},Ot={class:`parent-edit__usage-env`},kt={key:0,class:`parent-edit__usage-svc`},At={key:1,class:`parent-edit__usages-empty`},jt=40,Mt=200,Nt=24,Pt=x(h({__name:`VariablesTable`,props:{environmentId:{},resolvedEnv:{default:()=>({})},sources:{default:()=>({})},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},showOverrideBadge:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{},scrollHeight:{default:`auto`}},emits:[`autocomplete-search`,`variables-changed`],setup(d,{emit:h}){let x=/^\{\{(.+)\}\}$/,ae=/^\{\{environment\.(.+)\}\}$/,ce={"service.HOST_LAN":`(agent LAN IP)`},O=d,k=h,{t:A}=t(),j=te(),ue=r(()=>Object.keys(O.sources).length>0),de=r(()=>Object.keys(O.resolvedEnv).length>0),fe=o(`rootRef`),pe=_(null),me=r(()=>O.scrollHeight===`auto`?pe.value??`460px`:O.scrollHeight);function he(){if(O.scrollHeight!==`auto`)return;let e=fe.value;if(!e)return;let t=(e.querySelector(`.p-datatable-table-container`)??e).getBoundingClientRect().top,n=window.innerHeight-t-Nt;pe.value=`${Math.max(Mt,Math.round(n))}px`}let ge=null;s(()=>{y(he),window.addEventListener(`resize`,he),typeof ResizeObserver<`u`&&fe.value&&(ge=new ResizeObserver(()=>he()),ge.observe(document.body))}),w(()=>{window.removeEventListener(`resize`,he),ge?.disconnect(),ge=null});let _e=_(``),ve=_(!1),M=_({});async function ye(){if(O.showOverrides)try{let e=await j.getOverrides(),t={};for(let[n,r]of Object.entries(e)){let e=r;t[n]={value:e.value.value,pre:e.value.pre,post:e.value.post,isSecret:e.value.isSecret}}M.value=t}catch{}}s(ye);let be=r(()=>j.getById(O.environmentId));function N(e){return be.value?.variables?.[e]}let P=_([]),xe=r(()=>{let e=Object.keys(be.value?.variables??{}).map(e=>({variableId:e})),t=new Set(e.map(e=>e.variableId)),n=P.value.filter(e=>!t.has(e)).map(e=>({variableId:e}));return[...e,...n]}),Se=o(`tableRef`),F=_({}),I=_([]),L=_(new Set);function Ce(e){let t=new Set(L.value);t.has(e)?t.delete(e):t.add(e),L.value=t}let we=_(null);function Te(e,t){navigator.clipboard.writeText(t),we.value=e,setTimeout(()=>{we.value===e&&(we.value=null)},1500)}function R(e){let t=N(e);if(!t)return``;let n=t.value?.value??``;return V(n)?He(n)??n:(t.value?.pre??``)+n+(t.value?.post??``)}let Ee=ne(),z=_(null),De=_(!1),B=_(!1),Oe=_(!1),ke=0,Ae=_([]);async function je(e){let t=O.sources[e]?.resolvedFrom,n=N(e)?.value?.value??``;if(!t||!n)return;let r=Ve(n),i=j.getById(t.environmentId),a=Object.entries(i?.variables??{}).find(([,e])=>e.key===r);if(!a){Ee.add({severity:`warn`,summary:A(`variablesTable.editParentNotFound`),life:4e3});return}let[o,s]=a;z.value={key:r,environmentId:t.environmentId,environmentName:t.environmentName,variableId:o,value:s.value?.value??``,pre:s.value?.pre??``,post:s.value?.post??``,isSecret:s.value?.isSecret??!1,injectIntoAi:s.value?.injectIntoAi??!1},Ae.value=[],De.value=!0,Me(r,t.environmentId)}async function Me(e,t){let n=++ke;Oe.value=!0;try{let r=j.currentProjectId;if(!r)return;let i=await j.keyUsages(r,e,t);if(n!==ke)return;Ae.value=[...i.inheritedBy.map(e=>({kind:`inherits`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.definedIn.map(e=>({kind:`defines`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.referencedBy.map(e=>({kind:`references`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{},viaKey:e.key}))]}catch{n===ke&&(Ae.value=[])}finally{n===ke&&(Oe.value=!1)}}async function Ne(){let e=z.value;if(e){B.value=!0;try{await j.upsertVariable(e.environmentId,e.variableId,{key:e.key,value:{value:e.value,pre:e.pre,post:e.post,isSecret:e.isSecret,injectIntoAi:e.injectIntoAi}}),De.value=!1,k(`variables-changed`)}catch(e){Ee.add({severity:`error`,summary:A(`common.error`),detail:e.message,life:4e3})}finally{B.value=!1}}}function Pe(e){let t=M.value[e];return t?t.pre+t.value+t.post:``}let Fe=r(()=>{let e=[...xe.value];if(ve.value&&(e=e.filter(e=>!!M.value[e.variableId])),_e.value.trim()){let t=_e.value.toLowerCase();e=e.filter(e=>{let n=N(e.variableId);if(!n)return!1;if(n.key.toLowerCase().includes(t)||(n.value?.value??``).toLowerCase().includes(t))return!0;let r=M.value[e.variableId];return!!(r&&r.value.toLowerCase().includes(t))})}return I.value.length>0?e.sort((e,t)=>{let n=I.value.indexOf(e.variableId),r=I.value.indexOf(t.variableId);return n===-1?1:r===-1?-1:n-r}):e.sort((e,t)=>{let n=N(e.variableId)?.key??``,r=N(t.variableId)?.key??``;return n?r?n.localeCompare(r):-1:1}),e});function Ie(e){let t=e.data.variableId;F.value[t]?(F.value={},I.value=[],Le(t)):(I.value=Fe.value.map(e=>e.variableId),F.value={[t]:!0})}function Le(e){y(()=>{let t=Se.value?.$el;if(!t)return;let n=Fe.value.findIndex(t=>t.variableId===e);n<0||t.querySelectorAll(`tbody tr[data-p-index]`)[n]?.scrollIntoView({block:`nearest`,behavior:`smooth`})})}function Re(e){P.value=P.value.filter(t=>t!==e),F.value[e]&&(F.value={},I.value=[])}function ze(e){P.value=P.value.filter(t=>t!==e)}function Be(){let e=D();P.value=[...P.value,e],I.value=[...xe.value.map(e=>e.variableId),e],y(()=>{F.value={[e]:!0},y(()=>{let e=document.querySelector(`.variables-expand-table .p-datatable-row-expansion:last-of-type`);e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})})})}function V(e){return x.test(e)}function Ve(e){let t=e.match(x);return t?t[1].replace(/^(?:environment|service)\./,``):e}function He(e){let t=e.match(ae);if(t)return O.resolvedEnv[t[1]]??null;let n=e.match(x);if(n){let e={...ce,...O.serviceBuiltins};if(n[1]in e)return e[n[1]]}return null}function Ue(e){return e.length<=jt?e:e.substring(0,jt)+`…`}return(t,r)=>(e(),a(n,null,[f(`div`,{ref_key:`rootRef`,ref:fe,class:`variables-table`},[f(`div`,H,[C(m(g),{modelValue:_e.value,"onUpdate:modelValue":r[0]||=e=>_e.value=e,placeholder:`Search variables...`,class:`search-input`,size:`small`},null,8,[`modelValue`]),d.showOverrides?(e(),a(`div`,U,[C(m(se),{modelValue:ve.value,"onUpdate:modelValue":r[1]||=e=>ve.value=e,"input-id":`overrides-filter`},null,8,[`modelValue`]),f(`label`,W,l(m(A)(`variablesTable.overriddenOnly`)),1)])):p(``,!0)]),C(m(oe),{ref_key:`tableRef`,ref:Se,"expanded-rows":F.value,"onUpdate:expandedRows":r[5]||=e=>F.value=e,value:Fe.value,"data-key":`variableId`,class:`p-datatable-sm variables-expand-table`,scrollable:``,"scroll-height":me.value,onRowClick:Ie},{empty:c(()=>[f(`div`,G,l(d.showAddButton?m(A)(`variablesTable.empty`):m(A)(`variablesTable.emptyReadonly`)),1)]),expansion:c(({data:e})=>[C(at,{"environment-id":d.environmentId,"variable-id":e.variableId,overrides:M.value,editable:d.editable,"show-overrides":d.showOverrides,"show-delete":d.showDelete,"show-override-badge":d.showOverrideBadge,disabled:d.disabled,"resolved-env":d.resolvedEnv,"autocomplete-enabled":d.autocompleteEnabled,"autocomplete-suggestions":d.autocompleteSuggestions,"autocomplete-meta":d.autocompleteMeta,"is-pending":P.value.includes(e.variableId),onDeleted:t=>Re(e.variableId),onSaved:t=>ze(e.variableId),onAutocompleteSearch:r[4]||=e=>k(`autocomplete-search`,e),onOverrideChanged:ye,"can-edit-source":!!d.sources[e.variableId]?.resolvedFrom,onEditSource:t=>je(e.variableId)},null,8,[`environment-id`,`variable-id`,`overrides`,`editable`,`show-overrides`,`show-delete`,`show-override-badge`,`disabled`,`resolved-env`,`autocomplete-enabled`,`autocomplete-suggestions`,`autocomplete-meta`,`is-pending`,`onDeleted`,`onSaved`,`can-edit-source`,`onEditSource`])]),default:c(()=>[C(m(E),{expander:``,style:{width:`2.5rem`}}),C(m(E),{field:`variableId`,header:m(A)(`common.key`)},{body:c(({data:t})=>[f(`div`,K,[f(`span`,ot,[f(`code`,st,l(N(t.variableId)?.key||`(new variable)`),1),d.sources[t.variableId]?.overriddenBy?(e(),a(`span`,{key:0,class:`overridden-badge overridden-badge--local`,title:m(A)(`variablesTable.localOverrideTooltip`,{env:d.sources[t.variableId].overriddenBy.environmentName})},[r[9]||=f(`i`,{class:`pi pi-desktop`},null,-1),re(` `+l(m(A)(`variablesTable.localOverride`)),1)],8,q)):d.showOverrideBadge&&d.sources[t.variableId]?.overridden&&!V(N(t.variableId)?.value?.value??``)?(e(),a(`span`,{key:1,class:`overridden-badge`,title:m(A)(`variablesTable.overrideTooltip`)},[r[10]||=f(`i`,{class:`pi pi-exclamation-triangle`},null,-1),re(` `+l(m(A)(`variablesTable.override`)),1)],8,ct)):p(``,!0)]),ue.value&&d.sources[t.variableId]?(e(),u(le,{key:0,"environment-id":d.sources[t.variableId].environmentId,class:`source-badge`},null,8,[`environment-id`])):p(``,!0),ue.value&&d.sources[t.variableId]?.resolvedFrom?(e(),a(`span`,J,[r[11]||=f(`i`,{class:`pi pi-arrow-right resolved-from-arrow`},null,-1),C(le,{"environment-id":d.sources[t.variableId].resolvedFrom.environmentId,class:`source-badge`},null,8,[`environment-id`])])):p(``,!0)])]),_:1},8,[`header`]),C(m(E),{header:m(A)(`common.value`)},{body:c(({data:t})=>[f(`span`,Y,[R(t.variableId)?(e(),a(`span`,{key:0,class:`value-actions`,onClick:r[2]||=ee(()=>{},[`stop`])},[N(t.variableId)?.value?.isSecret?(e(),a(`i`,{key:0,class:S([L.value.has(t.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:m(A)(`variablesTable.reveal`),onClick:e=>Ce(t.variableId)},null,10,X)):p(``,!0),f(`i`,{class:S([we.value===t.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:m(A)(`actions.copy`),onClick:e=>Te(t.variableId,R(t.variableId))},null,10,Z)])):p(``,!0),V(N(t.variableId)?.value?.value??``)&&He(N(t.variableId)?.value?.value??``)!=null?(e(),a(`span`,lt,[C(m(b),{severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``),class:`interpolation-hint-tag`},null,8,[`value`]),f(`span`,Q,[N(t.variableId)?.value?.isSecret&&!L.value.has(t.variableId)?(e(),a(`span`,ut,`***`)):(e(),a(`code`,{key:1,class:`resolved-final`,title:He(N(t.variableId)?.value?.value??``)},l(Ue(He(N(t.variableId)?.value?.value??``))),9,dt))])])):V(N(t.variableId)?.value?.value??``)&&de.value&&He(N(t.variableId)?.value?.value??``)==null?(e(),a(n,{key:2},[r[12]||=f(`i`,{class:`pi pi-exclamation-triangle unresolved-icon`},null,-1),C(m(b),{severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``)},null,8,[`value`]),r[13]||=f(`span`,{class:`unresolved-msg`},`Variable not found in this environment`,-1)],64)):V(N(t.variableId)?.value?.value??``)?(e(),u(m(b),{key:3,severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``)},null,8,[`value`])):N(t.variableId)?.value?.isSecret?(e(),a(n,{key:4},[L.value.has(t.variableId)?(e(),a(`code`,{key:1,title:R(t.variableId)},l(Ue(R(t.variableId))),9,$)):(e(),a(`span`,ft,`***`))],64)):N(t.variableId)?.value?.value||N(t.variableId)?.value?.pre||N(t.variableId)?.value?.post?(e(),a(`code`,{key:5,title:R(t.variableId)},l(Ue(R(t.variableId))),9,pt)):(e(),a(`span`,mt,`(empty)`))]),d.showOverrides&&!V(N(t.variableId)?.value?.value??``)&&M.value[t.variableId]?(e(),a(`span`,ht,[r[14]||=f(`i`,{class:`pi pi-arrow-right`,style:{"font-size":`0.7rem`}},null,-1),f(`span`,{class:`value-actions`,onClick:r[3]||=ee(()=>{},[`stop`])},[N(t.variableId)?.value?.isSecret||M.value[t.variableId].isSecret?(e(),a(`i`,{key:0,class:S([L.value.has(`ovr:`+t.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:m(A)(`variablesTable.reveal`),onClick:e=>Ce(`ovr:`+t.variableId)},null,10,gt)):p(``,!0),f(`i`,{class:S([we.value===`ovr:`+t.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:m(A)(`actions.copy`),onClick:e=>Te(`ovr:`+t.variableId,Pe(t.variableId))},null,10,_t)]),N(t.variableId)?.value?.isSecret||M.value[t.variableId].isSecret?(e(),a(n,{key:0},[L.value.has(`ovr:`+t.variableId)?(e(),a(`code`,{key:1,class:`override-value`,title:Pe(t.variableId)},l(Ue(Pe(t.variableId))),9,yt)):(e(),a(`span`,vt,`***`))],64)):(e(),a(`code`,{key:1,class:`override-value`,title:Pe(t.variableId)},l(Ue(Pe(t.variableId))),9,bt))])):p(``,!0)]),_:1},8,[`header`])]),_:1},8,[`expanded-rows`,`value`,`scroll-height`]),d.showAddButton?(e(),u(m(ie),{key:0,type:`button`,label:m(A)(`variablesTable.addVariable`),icon:`pi pi-plus`,text:``,disabled:d.disabled,class:`mt-3`,onClick:Be},null,8,[`label`,`disabled`])):p(``,!0)],512),C(m(v),{visible:De.value,"onUpdate:visible":r[8]||=e=>De.value=e,modal:``,header:m(A)(`variablesTable.editParentHeader`),style:{width:`38rem`,maxWidth:`95vw`}},{footer:c(()=>[C(m(ie),{label:m(A)(`common.cancel`),text:``,disabled:B.value,onClick:r[7]||=e=>De.value=!1},null,8,[`label`,`disabled`]),C(m(ie),{label:m(A)(`variablesTable.editParentConfirm`),severity:`warn`,loading:B.value,onClick:Ne},null,8,[`label`,`loading`])]),default:c(()=>[z.value?(e(),a(`div`,xt,[C(m(T),{severity:`warn`,closable:!1,class:`parent-edit__warning`},{default:c(()=>[re(l(m(A)(`variablesTable.editParentWarning`,{key:z.value.key,env:z.value.environmentName})),1)]),_:1}),f(`div`,St,[f(`label`,Ct,l(m(A)(`common.value`)),1),C(m(g),{id:`parent-edit-value`,modelValue:z.value.value,"onUpdate:modelValue":r[6]||=e=>z.value.value=e,class:`w-full`,disabled:B.value},null,8,[`modelValue`,`disabled`])]),f(`div`,wt,[f(`div`,Tt,[r[15]||=f(`i`,{class:`pi pi-sitemap`},null,-1),re(` `+l(m(A)(`variablesTable.editParentImpact`)),1)]),Oe.value?(e(),a(`div`,Et,[r[16]||=f(`i`,{class:`pi pi-spin pi-spinner`},null,-1),f(`span`,null,l(m(A)(`variablesTable.editParentLoading`)),1)])):(e(),a(n,{key:1},[Ae.value.length?(e(),a(`ul`,Dt,[(e(!0),a(n,null,i(Ae.value,(t,n)=>(e(),a(`li`,{key:n},[C(m(b),{severity:t.kind===`references`?`info`:`secondary`,value:t.kind===`references`?t.viaKey:t.kind===`inherits`?m(A)(`variablesTable.editParentInherits`):m(A)(`variablesTable.editParentDefines`)},null,8,[`severity`,`value`]),f(`span`,Ot,l(t.environmentName),1),t.serviceName?(e(),a(`span`,kt,l(t.serviceName),1)):p(``,!0)]))),128))])):(e(),a(`div`,At,l(m(A)(`variablesTable.editParentNoUsage`)),1))],64))])])):p(``,!0)]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-5af35db0`]]);export{le as n,Pt as t};
|
|
1
|
+
import{Ei as e,Fn as t,Gr as n,Jr as r,Oi as i,Qr as a,Ri as o,Si as s,Ui as c,Ur as ee,Xi as l,Xr as u,Yi as d,Yr as f,Zr as p,_a as m,ai as h,an as g,ca as _,dn as v,et as te,hi as y,in as b,jn as ne,ln as x,ni as re,pn as ie,qi as S,ri as C,vi as w,zi as ae}from"./index-Br0Stb0u.js";import{t as T}from"./message-Cj-E8qHk.js";import{n as oe,t as E}from"./column-TZbNKWtE.js";import{n as se,t as ce}from"./autocomplete-egYkKgXN.js";import{t as D}from"./uuid-2Kb5PDpq.js";var O={key:0,class:`env-badge`},k={class:`env-badge__name`},le=x(h({__name:`EnvironmentBadge`,props:{environmentId:{}},setup(t){let n=t,i=te(),o=r(()=>i.getById(n.environmentId));function s(e){if(e)return e.startsWith(`#`)?e:`#${e}`}return(t,n)=>o.value?(e(),a(`span`,O,[f(`span`,{class:`env-badge__swatch`,style:d({backgroundColor:s(o.value.bgColor)||s(o.value.color)||`var(--p-primary-color)`})},null,4),f(`span`,k,l(o.value.name),1)])):p(``,!0)}}),[[`__scopeId`,`data-v-b70e647b`]]),A={class:`key-row`},j={class:`expansion-field expansion-field--key`},ue=[`for`],de={key:2,class:`value-display`},fe={key:0,class:`expansion-field expansion-field--toggle`},pe={class:`expansion-label`,for:`varrow-secret`},me={key:1,class:`expansion-field expansion-field--toggle`},he=[`title`],ge={key:2,class:`key-row-delete`},_e={key:0,class:`not-secret-warning`},ve={class:`expansion-section`},M={class:`section-title`},ye={class:`section-fields`},be={class:`expansion-field expansion-field--prepost`},N={class:`expansion-label`,for:`varrow-prefix`},P={key:1,class:`value-display`},xe={class:`expansion-field expansion-field--value`},Se=[`for`],F={key:0,class:`secret-input-wrap`},I=[`disabled`],L=[`title`],Ce={key:1,class:`value-display value-display--with-actions`},we={key:0,class:`value-actions`},Te={key:0},R={key:1},Ee={class:`expansion-field expansion-field--prepost`},z={class:`expansion-label`,for:`varrow-suffix`},De={key:1,class:`value-display`},B={key:0,class:`preview-value`},Oe={key:0,class:`prepost-part prepost-part--pre`},ke={key:1,class:`prepost-part prepost-part--interpolation`},Ae={class:`prepost-part--value prepost-resolved-inline`},je=[`title`],Me={key:2,class:`prepost-part prepost-part--value`},Ne={key:3,class:`prepost-part prepost-part--post`},Pe={key:1,class:`expansion-section`},Fe={class:`section-header`},Ie={class:`section-title`},Le={class:`section-fields`},Re={class:`expansion-field expansion-field--prepost`},ze={class:`expansion-label`,for:`varrow-override-prefix`},Be={class:`expansion-field expansion-field--value`},V=[`for`],Ve={key:0,class:`secret-input-wrap`},He=[`disabled`],Ue=[`title`],We={class:`expansion-field expansion-field--prepost`},Ge={class:`expansion-label`,for:`varrow-override-suffix`},Ke={key:1,class:`override-view`},qe={key:0,class:`value-display--with-actions`},Je={class:`value-actions`},Ye={key:0,class:`override-value-masked`},Xe={key:1,class:`override-value`},Ze={key:1,class:`override-value`},Qe={key:1,class:`override-empty`},$e={key:0,class:`preview-value preview-value--override`},et={key:0,class:`prepost-part prepost-part--pre`},tt={key:1,class:`prepost-part prepost-part--interpolation`},nt={key:0,class:`prepost-part--value prepost-resolved-inline`},rt={key:2,class:`prepost-part prepost-part--value`},it={key:3,class:`prepost-part prepost-part--post`},at=x(h({__name:`VariableRowEditor`,props:{environmentId:{},variableId:{},overrides:{},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},canEditSource:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showOverrideBadge:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},resolvedEnv:{default:()=>({})},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},isPending:{type:Boolean,default:!1}},emits:[`deleted`,`saved`,`autocomplete-search`,`override-changed`,`edit-source`],setup(i,{emit:o}){let c=/^\{\{(.+)\}\}$/,d=/^\{\{environment\.(.+)\}\}$/,h=i,v=o,y=te(),x=ne(),{t:w}=t(),T=_(!1),oe=_(!1),E=_(!1),D=_(!1),O=_(!1),k=_(null);function le(e,t){navigator.clipboard.writeText(t),k.value=e,setTimeout(()=>{k.value===e&&(k.value=null)},1500)}let at=r(()=>y.getById(h.environmentId)?.variables?.[h.variableId]),H=_(``),U=_(``),W=_(``),G=_(``),K=_(!1),ot=_(!1),st=r(()=>Q(U.value)),q=r(()=>K.value&&!st.value);function ct(){let e=at.value;H.value=e?.key??``,U.value=e?.value?.value??``,W.value=e?.value?.pre??``,G.value=e?.value?.post??``,K.value=e?.value?.isSecret??!1,ot.value=e?.value?.injectIntoAi??!1}s(ct),ae(at,(e,t)=>{!t&&e&&ct()});let J=r(()=>h.overrides[h.variableId]??null),Y=_(``),X=_(``),Z=_(``);function lt(){let e=J.value;Y.value=e?.pre??``,X.value=e?.value??``,Z.value=e?.post??``}s(lt),ae(J,lt);function Q(e){return c.test(e)}function ut(e){let t=e.match(c);return t?t[1].replace(/^environment\./,``):e}function dt(e){let t=e.match(d);return t?h.resolvedEnv[t[1]]??null:null}function ft(e){let t=e.value;H.value=t,U.value=`{{environment.${t}}}`,K.value=!1;let n=h.autocompleteMeta?.[t];n&&(W.value=n.pre,G.value=n.post),$()}async function $(){if(T.value)return;let e=H.value.trim();if(e){T.value=!0;try{await y.upsertVariable(h.environmentId,h.variableId,{key:e,value:{value:U.value,pre:W.value,post:G.value,isSecret:q.value,injectIntoAi:ot.value}}),h.isPending&&v(`saved`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.saveError`),life:4e3})}finally{T.value=!1}}}async function pt(){if(h.isPending){v(`deleted`);return}T.value=!0;try{J.value&&await y.removeOverride(h.variableId),await y.removeVariable(h.environmentId,h.variableId),v(`deleted`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.deleteError`),life:4e3})}finally{T.value=!1}}async function mt(){let e=Y.value||X.value||Z.value;try{if(!e){J.value&&(await y.removeOverride(h.variableId),v(`override-changed`));return}await y.setOverride(h.variableId,{value:{value:X.value,pre:Y.value,post:Z.value,isSecret:q.value}}),v(`override-changed`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.overrideError`),life:4e3})}}async function ht(){try{await y.removeOverride(h.variableId),v(`override-changed`)}catch(e){x.add({severity:`error`,summary:w(`common.error`),detail:e.message??w(`variableRowEditor.clearOverrideError`),life:4e3})}}function gt(e){let t=e.relatedTarget;(!t||!e.currentTarget.contains(t))&&$()}return(t,r)=>(e(),a(`div`,{class:`expansion-form`,onFocusout:gt},[f(`div`,A,[f(`div`,j,[f(`label`,{class:`expansion-label`,for:i.editable&&i.autocompleteEnabled?`varrow-key-ac`:`varrow-key-input`},l(m(w)(`common.key`)),9,ue),i.editable&&i.autocompleteEnabled?(e(),u(m(ce),{key:0,"input-id":`varrow-key-ac`,modelValue:H.value,"onUpdate:modelValue":r[0]||=e=>H.value=e,suggestions:i.autocompleteSuggestions,placeholder:m(w)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:i.disabled,onComplete:r[1]||=e=>v(`autocomplete-search`,e.query),onItemSelect:ft,onBlur:$},null,8,[`modelValue`,`suggestions`,`placeholder`,`disabled`])):i.editable?(e(),u(m(g),{key:1,id:`varrow-key-input`,modelValue:H.value,"onUpdate:modelValue":r[2]||=e=>H.value=e,placeholder:m(w)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,de,l(H.value),1))]),i.editable&&!st.value?(e(),a(`div`,fe,[f(`label`,pe,l(m(w)(`variableRowEditor.secret`)),1),C(m(se),{"input-id":`varrow-secret`,modelValue:K.value,"onUpdate:modelValue":[r[3]||=e=>K.value=e,$],disabled:i.disabled},null,8,[`modelValue`,`disabled`])])):p(``,!0),i.editable?(e(),a(`div`,me,[f(`label`,{class:`expansion-label`,for:`varrow-injectai`,title:m(w)(`variableRowEditor.injectIntoAiHint`)},l(m(w)(`variableRowEditor.injectIntoAi`)),9,he),C(m(se),{"input-id":`varrow-injectai`,modelValue:ot.value,"onUpdate:modelValue":[r[4]||=e=>ot.value=e,$],disabled:i.disabled},null,8,[`modelValue`,`disabled`])])):p(``,!0),i.showDelete&&i.editable?(e(),a(`div`,ge,[C(m(ie),{icon:`pi pi-trash`,severity:`danger`,text:``,rounded:``,size:`small`,disabled:i.disabled||T.value,onClick:pt},null,8,[`disabled`])])):p(``,!0)]),i.editable&&!K.value&&!Q(U.value)?(e(),a(`div`,_e,[r[26]||=f(`i`,{class:`pi pi-info-circle`},null,-1),f(`span`,null,l(m(w)(`variableRowEditor.notSecretWarning`)),1)])):p(``,!0),f(`div`,ve,[f(`div`,M,l(m(w)(`variableRowEditor.value`)),1),f(`div`,ye,[f(`div`,be,[f(`label`,N,l(m(w)(`variableRowEditor.prefix`)),1),i.editable?(e(),u(m(g),{key:0,id:`varrow-prefix`,modelValue:W.value,"onUpdate:modelValue":r[5]||=e=>W.value=e,placeholder:m(w)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,P,l(W.value||`—`),1))]),f(`div`,xe,[f(`label`,{class:`expansion-label`,for:q.value?`varrow-value-secret`:`varrow-value-plain`},l(m(w)(`variableRowEditor.value`)),9,Se),i.editable?(e(),a(n,{key:0},[q.value?(e(),a(`div`,F,[C(m(g),{id:`varrow-value-secret`,modelValue:U.value,"onUpdate:modelValue":r[6]||=e=>U.value=e,type:D.value?`text`:`password`,placeholder:m(w)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),f(`button`,{type:`button`,class:`secret-toggle`,disabled:i.disabled,onClick:r[7]||=e=>D.value=!D.value,tabindex:`-1`},[f(`i`,{class:S(D.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,I)])):Q(U.value)&&!oe.value?(e(),a(`span`,{key:1,class:`interpolation-badge`,title:U.value,onClick:r[8]||=e=>oe.value=!0},[C(m(b),{severity:`secondary`,value:ut(U.value)},null,8,[`value`]),r[27]||=f(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,L)):(e(),u(m(g),{key:2,id:`varrow-value-plain`,modelValue:U.value,"onUpdate:modelValue":r[9]||=e=>U.value=e,placeholder:m(w)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:i.disabled,onFocus:r[10]||=e=>oe.value=!0,onBlur:r[11]||=e=>{oe.value=!1,$()}},null,8,[`modelValue`,`placeholder`,`disabled`]))],64)):(e(),a(`span`,Ce,[U.value?(e(),a(`span`,we,[q.value?(e(),a(`i`,{key:0,class:S([D.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[12]||=e=>D.value=!D.value},null,2)):p(``,!0),f(`i`,{class:S([k.value===`val`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[13]||=e=>le(`val`,W.value+U.value+G.value)},null,2)])):p(``,!0),Q(U.value)?(e(),u(m(b),{key:1,severity:`secondary`,value:ut(U.value)},null,8,[`value`])):q.value?(e(),a(n,{key:2},[D.value?(e(),a(`span`,R,l(U.value),1)):(e(),a(`span`,Te,`***`))],64)):(e(),a(n,{key:3},[re(l(U.value),1)],64))]))]),f(`div`,Ee,[f(`label`,z,l(m(w)(`variableRowEditor.suffix`)),1),i.editable?(e(),u(m(g),{key:0,id:`varrow-suffix`,modelValue:G.value,"onUpdate:modelValue":r[14]||=e=>G.value=e,placeholder:m(w)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`])):(e(),a(`code`,De,l(G.value||`—`),1))])]),q.value?p(``,!0):(e(),a(`code`,B,[W.value?(e(),a(`span`,Oe,l(W.value),1)):p(``,!0),Q(U.value)?(e(),a(`span`,ke,[dt(U.value)==null?(e(),a(n,{key:1},[C(m(b),{severity:`secondary`,value:ut(U.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[28]||=f(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(e(),a(n,{key:0},[f(`span`,Ae,l(dt(U.value)),1),i.canEditSource?(e(),a(`i`,{key:0,class:`pi pi-pencil edit-source-icon`,title:m(w)(`variablesTable.editParentTitle`),onClick:r[15]||=ee(e=>v(`edit-source`),[`stop`])},null,8,je)):p(``,!0)],64))])):(e(),a(`span`,Me,l(U.value||`…`),1)),G.value?(e(),a(`span`,Ne,l(G.value),1)):p(``,!0)]))]),i.showOverrides&&H.value?.trim()?(e(),a(`div`,Pe,[f(`div`,Fe,[f(`div`,Ie,l(m(w)(`variableRowEditor.localOverride`)),1),i.editable&&J.value?(e(),u(m(ie),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`danger`,title:m(w)(`variableRowEditor.clearOverride`),disabled:i.disabled,onClick:ht},null,8,[`title`,`disabled`])):p(``,!0)]),f(`div`,Le,[i.editable?(e(),a(n,{key:0},[f(`div`,Re,[f(`label`,ze,l(m(w)(`variableRowEditor.prefix`)),1),C(m(g),{id:`varrow-override-prefix`,modelValue:Y.value,"onUpdate:modelValue":r[16]||=e=>Y.value=e,placeholder:m(w)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`placeholder`,`disabled`])]),f(`div`,Be,[f(`label`,{class:`expansion-label`,for:q.value?`varrow-override-value-secret`:`varrow-override-value-plain`},l(m(w)(`variableRowEditor.value`)),9,V),q.value?(e(),a(`div`,Ve,[C(m(g),{id:`varrow-override-value-secret`,modelValue:X.value,"onUpdate:modelValue":r[17]||=e=>X.value=e,type:O.value?`text`:`password`,placeholder:m(w)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),f(`button`,{type:`button`,class:`secret-toggle`,disabled:i.disabled,onClick:r[18]||=e=>O.value=!O.value,tabindex:`-1`},[f(`i`,{class:S(O.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,He)])):Q(X.value)&&!E.value?(e(),a(`span`,{key:1,class:`interpolation-badge`,title:X.value,onClick:r[19]||=e=>E.value=!0},[C(m(b),{severity:`secondary`,value:ut(X.value)},null,8,[`value`]),r[29]||=f(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,Ue)):(e(),u(m(g),{key:2,id:`varrow-override-value-plain`,modelValue:X.value,"onUpdate:modelValue":r[20]||=e=>X.value=e,placeholder:m(w)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:i.disabled,onFocus:r[21]||=e=>E.value=!0,onBlur:r[22]||=e=>{E.value=!1,mt()}},null,8,[`modelValue`,`placeholder`,`disabled`]))]),f(`div`,We,[f(`label`,Ge,l(m(w)(`variableRowEditor.suffix`)),1),C(m(g),{id:`varrow-override-suffix`,modelValue:Z.value,"onUpdate:modelValue":r[23]||=e=>Z.value=e,placeholder:m(w)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:i.disabled,onBlur:mt},null,8,[`modelValue`,`placeholder`,`disabled`])])],64)):(e(),a(`div`,Ke,[J.value?(e(),a(`span`,qe,[f(`span`,Je,[q.value||J.value.isSecret?(e(),a(`i`,{key:0,class:S([O.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[24]||=e=>O.value=!O.value},null,2)):p(``,!0),f(`i`,{class:S([k.value===`ovr`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[25]||=e=>le(`ovr`,J.value.pre+J.value.value+J.value.post)},null,2)]),q.value||J.value.isSecret?(e(),a(n,{key:0},[O.value?(e(),a(`code`,Xe,l(J.value.pre)+l(J.value.value)+l(J.value.post),1)):(e(),a(`span`,Ye,`***`))],64)):(e(),a(`code`,Ze,l(J.value.pre)+l(J.value.value)+l(J.value.post),1))])):(e(),a(`span`,Qe,`—`))]))]),i.editable&&!q.value&&(Y.value||X.value||Z.value)?(e(),a(`code`,$e,[Y.value?(e(),a(`span`,et,l(Y.value),1)):p(``,!0),Q(X.value)?(e(),a(`span`,tt,[dt(X.value)==null?(e(),a(n,{key:1},[C(m(b),{severity:`secondary`,value:ut(X.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[30]||=f(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(e(),a(`span`,nt,l(dt(X.value)),1))])):(e(),a(`span`,rt,l(X.value||`…`),1)),Z.value?(e(),a(`span`,it,l(Z.value),1)):p(``,!0)])):p(``,!0)])):p(``,!0)],32))}}),[[`__scopeId`,`data-v-2a3078f4`]]),H={class:`table-toolbar`},U={key:0,class:`overrides-filter`},W={for:`overrides-filter`},G={class:`text-center py-4 text-gray-500`},K={class:`row-key-cell`},ot={class:`row-key-line`},st={class:`row-key`},q=[`title`],ct=[`title`],J={key:1,class:`resolved-from-line`},Y={class:`row-value`},X=[`title`,`onClick`],Z=[`title`,`onClick`],lt={key:1,class:`value-levels`},Q={class:`resolved-level`},ut={key:0,class:`secret-mask`},dt=[`title`],ft={key:0,class:`secret-mask`},$=[`title`],pt=[`title`],mt={key:6,class:`empty-value`},ht={key:0,class:`override-indicator`},gt=[`title`,`onClick`],_t=[`title`,`onClick`],vt={key:0,class:`override-value-masked`},yt=[`title`],bt=[`title`],xt={key:0,class:`parent-edit`},St={class:`parent-edit__field`},Ct={class:`parent-edit__label`,for:`parent-edit-value`},wt={class:`parent-edit__usages`},Tt={class:`parent-edit__usages-title`},Et={key:0,class:`parent-edit__usages-loading`},Dt={key:0,class:`parent-edit__usage-list`},Ot={class:`parent-edit__usage-env`},kt={key:0,class:`parent-edit__usage-svc`},At={key:1,class:`parent-edit__usages-empty`},jt=40,Mt=200,Nt=24,Pt=x(h({__name:`VariablesTable`,props:{environmentId:{},resolvedEnv:{default:()=>({})},sources:{default:()=>({})},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},showOverrideBadge:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{},scrollHeight:{default:`auto`}},emits:[`autocomplete-search`,`variables-changed`],setup(d,{emit:h}){let x=/^\{\{(.+)\}\}$/,ae=/^\{\{environment\.(.+)\}\}$/,ce={"service.HOST_LAN":`(agent LAN IP)`},O=d,k=h,{t:A}=t(),j=te(),ue=r(()=>Object.keys(O.sources).length>0),de=r(()=>Object.keys(O.resolvedEnv).length>0),fe=o(`rootRef`),pe=_(null),me=r(()=>O.scrollHeight===`auto`?pe.value??`460px`:O.scrollHeight);function he(){if(O.scrollHeight!==`auto`)return;let e=fe.value;if(!e)return;let t=(e.querySelector(`.p-datatable-table-container`)??e).getBoundingClientRect().top,n=window.innerHeight-t-Nt;pe.value=`${Math.max(Mt,Math.round(n))}px`}let ge=null;s(()=>{y(he),window.addEventListener(`resize`,he),typeof ResizeObserver<`u`&&fe.value&&(ge=new ResizeObserver(()=>he()),ge.observe(document.body))}),w(()=>{window.removeEventListener(`resize`,he),ge?.disconnect(),ge=null});let _e=_(``),ve=_(!1),M=_({});async function ye(){if(O.showOverrides)try{let e=await j.getOverrides(),t={};for(let[n,r]of Object.entries(e)){let e=r;t[n]={value:e.value.value,pre:e.value.pre,post:e.value.post,isSecret:e.value.isSecret}}M.value=t}catch{}}s(ye);let be=r(()=>j.getById(O.environmentId));function N(e){return be.value?.variables?.[e]}let P=_([]),xe=r(()=>{let e=Object.keys(be.value?.variables??{}).map(e=>({variableId:e})),t=new Set(e.map(e=>e.variableId)),n=P.value.filter(e=>!t.has(e)).map(e=>({variableId:e}));return[...e,...n]}),Se=o(`tableRef`),F=_({}),I=_([]),L=_(new Set);function Ce(e){let t=new Set(L.value);t.has(e)?t.delete(e):t.add(e),L.value=t}let we=_(null);function Te(e,t){navigator.clipboard.writeText(t),we.value=e,setTimeout(()=>{we.value===e&&(we.value=null)},1500)}function R(e){let t=N(e);if(!t)return``;let n=t.value?.value??``;return V(n)?He(n)??n:(t.value?.pre??``)+n+(t.value?.post??``)}let Ee=ne(),z=_(null),De=_(!1),B=_(!1),Oe=_(!1),ke=0,Ae=_([]);async function je(e){let t=O.sources[e]?.resolvedFrom,n=N(e)?.value?.value??``;if(!t||!n)return;let r=Ve(n),i=j.getById(t.environmentId),a=Object.entries(i?.variables??{}).find(([,e])=>e.key===r);if(!a){Ee.add({severity:`warn`,summary:A(`variablesTable.editParentNotFound`),life:4e3});return}let[o,s]=a;z.value={key:r,environmentId:t.environmentId,environmentName:t.environmentName,variableId:o,value:s.value?.value??``,pre:s.value?.pre??``,post:s.value?.post??``,isSecret:s.value?.isSecret??!1,injectIntoAi:s.value?.injectIntoAi??!1},Ae.value=[],De.value=!0,Me(r,t.environmentId)}async function Me(e,t){let n=++ke;Oe.value=!0;try{let r=j.currentProjectId;if(!r)return;let i=await j.keyUsages(r,e,t);if(n!==ke)return;Ae.value=[...i.inheritedBy.map(e=>({kind:`inherits`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.definedIn.map(e=>({kind:`defines`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.referencedBy.map(e=>({kind:`references`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{},viaKey:e.key}))]}catch{n===ke&&(Ae.value=[])}finally{n===ke&&(Oe.value=!1)}}async function Ne(){let e=z.value;if(e){B.value=!0;try{await j.upsertVariable(e.environmentId,e.variableId,{key:e.key,value:{value:e.value,pre:e.pre,post:e.post,isSecret:e.isSecret,injectIntoAi:e.injectIntoAi}}),De.value=!1,k(`variables-changed`)}catch(e){Ee.add({severity:`error`,summary:A(`common.error`),detail:e.message,life:4e3})}finally{B.value=!1}}}function Pe(e){let t=M.value[e];return t?t.pre+t.value+t.post:``}let Fe=r(()=>{let e=[...xe.value];if(ve.value&&(e=e.filter(e=>!!M.value[e.variableId])),_e.value.trim()){let t=_e.value.toLowerCase();e=e.filter(e=>{let n=N(e.variableId);if(!n)return!1;if(n.key.toLowerCase().includes(t)||(n.value?.value??``).toLowerCase().includes(t))return!0;let r=M.value[e.variableId];return!!(r&&r.value.toLowerCase().includes(t))})}return I.value.length>0?e.sort((e,t)=>{let n=I.value.indexOf(e.variableId),r=I.value.indexOf(t.variableId);return n===-1?1:r===-1?-1:n-r}):e.sort((e,t)=>{let n=N(e.variableId)?.key??``,r=N(t.variableId)?.key??``;return n?r?n.localeCompare(r):-1:1}),e});function Ie(e){let t=e.data.variableId;F.value[t]?(F.value={},I.value=[],Le(t)):(I.value=Fe.value.map(e=>e.variableId),F.value={[t]:!0})}function Le(e){y(()=>{let t=Se.value?.$el;if(!t)return;let n=Fe.value.findIndex(t=>t.variableId===e);n<0||t.querySelectorAll(`tbody tr[data-p-index]`)[n]?.scrollIntoView({block:`nearest`,behavior:`smooth`})})}function Re(e){P.value=P.value.filter(t=>t!==e),F.value[e]&&(F.value={},I.value=[])}function ze(e){P.value=P.value.filter(t=>t!==e)}function Be(){let e=D();P.value=[...P.value,e],I.value=[...xe.value.map(e=>e.variableId),e],y(()=>{F.value={[e]:!0},y(()=>{let e=document.querySelector(`.variables-expand-table .p-datatable-row-expansion:last-of-type`);e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})})})}function V(e){return x.test(e)}function Ve(e){let t=e.match(x);return t?t[1].replace(/^(?:environment|service)\./,``):e}function He(e){let t=e.match(ae);if(t)return O.resolvedEnv[t[1]]??null;let n=e.match(x);if(n){let e={...ce,...O.serviceBuiltins};if(n[1]in e)return e[n[1]]}return null}function Ue(e){return e.length<=jt?e:e.substring(0,jt)+`…`}return(t,r)=>(e(),a(n,null,[f(`div`,{ref_key:`rootRef`,ref:fe,class:`variables-table`},[f(`div`,H,[C(m(g),{modelValue:_e.value,"onUpdate:modelValue":r[0]||=e=>_e.value=e,placeholder:`Search variables...`,class:`search-input`,size:`small`},null,8,[`modelValue`]),d.showOverrides?(e(),a(`div`,U,[C(m(se),{modelValue:ve.value,"onUpdate:modelValue":r[1]||=e=>ve.value=e,"input-id":`overrides-filter`},null,8,[`modelValue`]),f(`label`,W,l(m(A)(`variablesTable.overriddenOnly`)),1)])):p(``,!0)]),C(m(oe),{ref_key:`tableRef`,ref:Se,"expanded-rows":F.value,"onUpdate:expandedRows":r[5]||=e=>F.value=e,value:Fe.value,"data-key":`variableId`,class:`p-datatable-sm variables-expand-table`,scrollable:``,"scroll-height":me.value,onRowClick:Ie},{empty:c(()=>[f(`div`,G,l(d.showAddButton?m(A)(`variablesTable.empty`):m(A)(`variablesTable.emptyReadonly`)),1)]),expansion:c(({data:e})=>[C(at,{"environment-id":d.environmentId,"variable-id":e.variableId,overrides:M.value,editable:d.editable,"show-overrides":d.showOverrides,"show-delete":d.showDelete,"show-override-badge":d.showOverrideBadge,disabled:d.disabled,"resolved-env":d.resolvedEnv,"autocomplete-enabled":d.autocompleteEnabled,"autocomplete-suggestions":d.autocompleteSuggestions,"autocomplete-meta":d.autocompleteMeta,"is-pending":P.value.includes(e.variableId),onDeleted:t=>Re(e.variableId),onSaved:t=>ze(e.variableId),onAutocompleteSearch:r[4]||=e=>k(`autocomplete-search`,e),onOverrideChanged:ye,"can-edit-source":!!d.sources[e.variableId]?.resolvedFrom,onEditSource:t=>je(e.variableId)},null,8,[`environment-id`,`variable-id`,`overrides`,`editable`,`show-overrides`,`show-delete`,`show-override-badge`,`disabled`,`resolved-env`,`autocomplete-enabled`,`autocomplete-suggestions`,`autocomplete-meta`,`is-pending`,`onDeleted`,`onSaved`,`can-edit-source`,`onEditSource`])]),default:c(()=>[C(m(E),{expander:``,style:{width:`2.5rem`}}),C(m(E),{field:`variableId`,header:m(A)(`common.key`)},{body:c(({data:t})=>[f(`div`,K,[f(`span`,ot,[f(`code`,st,l(N(t.variableId)?.key||`(new variable)`),1),d.sources[t.variableId]?.overriddenBy?(e(),a(`span`,{key:0,class:`overridden-badge overridden-badge--local`,title:m(A)(`variablesTable.localOverrideTooltip`,{env:d.sources[t.variableId].overriddenBy.environmentName})},[r[9]||=f(`i`,{class:`pi pi-desktop`},null,-1),re(` `+l(m(A)(`variablesTable.localOverride`)),1)],8,q)):d.showOverrideBadge&&d.sources[t.variableId]?.overridden&&!V(N(t.variableId)?.value?.value??``)?(e(),a(`span`,{key:1,class:`overridden-badge`,title:m(A)(`variablesTable.overrideTooltip`)},[r[10]||=f(`i`,{class:`pi pi-exclamation-triangle`},null,-1),re(` `+l(m(A)(`variablesTable.override`)),1)],8,ct)):p(``,!0)]),ue.value&&d.sources[t.variableId]?(e(),u(le,{key:0,"environment-id":d.sources[t.variableId].environmentId,class:`source-badge`},null,8,[`environment-id`])):p(``,!0),ue.value&&d.sources[t.variableId]?.resolvedFrom?(e(),a(`span`,J,[r[11]||=f(`i`,{class:`pi pi-arrow-right resolved-from-arrow`},null,-1),C(le,{"environment-id":d.sources[t.variableId].resolvedFrom.environmentId,class:`source-badge`},null,8,[`environment-id`])])):p(``,!0)])]),_:1},8,[`header`]),C(m(E),{header:m(A)(`common.value`)},{body:c(({data:t})=>[f(`span`,Y,[R(t.variableId)?(e(),a(`span`,{key:0,class:`value-actions`,onClick:r[2]||=ee(()=>{},[`stop`])},[N(t.variableId)?.value?.isSecret?(e(),a(`i`,{key:0,class:S([L.value.has(t.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:m(A)(`variablesTable.reveal`),onClick:e=>Ce(t.variableId)},null,10,X)):p(``,!0),f(`i`,{class:S([we.value===t.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:m(A)(`actions.copy`),onClick:e=>Te(t.variableId,R(t.variableId))},null,10,Z)])):p(``,!0),V(N(t.variableId)?.value?.value??``)&&He(N(t.variableId)?.value?.value??``)!=null?(e(),a(`span`,lt,[C(m(b),{severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``),class:`interpolation-hint-tag`},null,8,[`value`]),f(`span`,Q,[N(t.variableId)?.value?.isSecret&&!L.value.has(t.variableId)?(e(),a(`span`,ut,`***`)):(e(),a(`code`,{key:1,class:`resolved-final`,title:He(N(t.variableId)?.value?.value??``)},l(Ue(He(N(t.variableId)?.value?.value??``))),9,dt))])])):V(N(t.variableId)?.value?.value??``)&&de.value&&He(N(t.variableId)?.value?.value??``)==null?(e(),a(n,{key:2},[r[12]||=f(`i`,{class:`pi pi-exclamation-triangle unresolved-icon`},null,-1),C(m(b),{severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``)},null,8,[`value`]),r[13]||=f(`span`,{class:`unresolved-msg`},`Variable not found in this environment`,-1)],64)):V(N(t.variableId)?.value?.value??``)?(e(),u(m(b),{key:3,severity:`secondary`,value:Ve(N(t.variableId)?.value?.value??``)},null,8,[`value`])):N(t.variableId)?.value?.isSecret?(e(),a(n,{key:4},[L.value.has(t.variableId)?(e(),a(`code`,{key:1,title:R(t.variableId)},l(Ue(R(t.variableId))),9,$)):(e(),a(`span`,ft,`***`))],64)):N(t.variableId)?.value?.value||N(t.variableId)?.value?.pre||N(t.variableId)?.value?.post?(e(),a(`code`,{key:5,title:R(t.variableId)},l(Ue(R(t.variableId))),9,pt)):(e(),a(`span`,mt,`(empty)`))]),d.showOverrides&&!V(N(t.variableId)?.value?.value??``)&&M.value[t.variableId]?(e(),a(`span`,ht,[r[14]||=f(`i`,{class:`pi pi-arrow-right`,style:{"font-size":`0.7rem`}},null,-1),f(`span`,{class:`value-actions`,onClick:r[3]||=ee(()=>{},[`stop`])},[N(t.variableId)?.value?.isSecret||M.value[t.variableId].isSecret?(e(),a(`i`,{key:0,class:S([L.value.has(`ovr:`+t.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:m(A)(`variablesTable.reveal`),onClick:e=>Ce(`ovr:`+t.variableId)},null,10,gt)):p(``,!0),f(`i`,{class:S([we.value===`ovr:`+t.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:m(A)(`actions.copy`),onClick:e=>Te(`ovr:`+t.variableId,Pe(t.variableId))},null,10,_t)]),N(t.variableId)?.value?.isSecret||M.value[t.variableId].isSecret?(e(),a(n,{key:0},[L.value.has(`ovr:`+t.variableId)?(e(),a(`code`,{key:1,class:`override-value`,title:Pe(t.variableId)},l(Ue(Pe(t.variableId))),9,yt)):(e(),a(`span`,vt,`***`))],64)):(e(),a(`code`,{key:1,class:`override-value`,title:Pe(t.variableId)},l(Ue(Pe(t.variableId))),9,bt))])):p(``,!0)]),_:1},8,[`header`])]),_:1},8,[`expanded-rows`,`value`,`scroll-height`]),d.showAddButton?(e(),u(m(ie),{key:0,type:`button`,label:m(A)(`variablesTable.addVariable`),icon:`pi pi-plus`,text:``,disabled:d.disabled,class:`mt-3`,onClick:Be},null,8,[`label`,`disabled`])):p(``,!0)],512),C(m(v),{visible:De.value,"onUpdate:visible":r[8]||=e=>De.value=e,modal:``,header:m(A)(`variablesTable.editParentHeader`),style:{width:`38rem`,maxWidth:`95vw`}},{footer:c(()=>[C(m(ie),{label:m(A)(`common.cancel`),text:``,disabled:B.value,onClick:r[7]||=e=>De.value=!1},null,8,[`label`,`disabled`]),C(m(ie),{label:m(A)(`variablesTable.editParentConfirm`),severity:`warn`,loading:B.value,onClick:Ne},null,8,[`label`,`loading`])]),default:c(()=>[z.value?(e(),a(`div`,xt,[C(m(T),{severity:`warn`,closable:!1,class:`parent-edit__warning`},{default:c(()=>[re(l(m(A)(`variablesTable.editParentWarning`,{key:z.value.key,env:z.value.environmentName})),1)]),_:1}),f(`div`,St,[f(`label`,Ct,l(m(A)(`common.value`)),1),C(m(g),{id:`parent-edit-value`,modelValue:z.value.value,"onUpdate:modelValue":r[6]||=e=>z.value.value=e,class:`w-full`,disabled:B.value},null,8,[`modelValue`,`disabled`])]),f(`div`,wt,[f(`div`,Tt,[r[15]||=f(`i`,{class:`pi pi-sitemap`},null,-1),re(` `+l(m(A)(`variablesTable.editParentImpact`)),1)]),Oe.value?(e(),a(`div`,Et,[r[16]||=f(`i`,{class:`pi pi-spin pi-spinner`},null,-1),f(`span`,null,l(m(A)(`variablesTable.editParentLoading`)),1)])):(e(),a(n,{key:1},[Ae.value.length?(e(),a(`ul`,Dt,[(e(!0),a(n,null,i(Ae.value,(t,n)=>(e(),a(`li`,{key:n},[C(m(b),{severity:t.kind===`references`?`info`:`secondary`,value:t.kind===`references`?t.viaKey:t.kind===`inherits`?m(A)(`variablesTable.editParentInherits`):m(A)(`variablesTable.editParentDefines`)},null,8,[`severity`,`value`]),f(`span`,Ot,l(t.environmentName),1),t.serviceName?(e(),a(`span`,kt,l(t.serviceName),1)):p(``,!0)]))),128))])):(e(),a(`div`,At,l(m(A)(`variablesTable.editParentNoUsage`)),1))],64))])])):p(``,!0)]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-5af35db0`]]);export{le as n,Pt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ei as e,Qr as t,Si as n,Vt as r,Xi as i,Zr as a,ai as o,ca as s,ln as c}from"./index-
|
|
1
|
+
import{Ei as e,Qr as t,Si as n,Vt as r,Xi as i,Zr as a,ai as o,ca as s,ln as c}from"./index-Br0Stb0u.js";var l={key:0,class:`version-badge`,"data-testid":`version-badge`},u=c(o({__name:`VersionBadge`,setup(o){let c=s(``);return n(()=>{r.health.check.query().then(e=>{c.value=e.version}).catch(()=>{})}),(n,r)=>c.value?(e(),t(`span`,l,`v`+i(c.value),1)):a(``,!0)}}),[[`__scopeId`,`data-v-61dd6b89`]]);export{u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ei as e,Xr as t,ai as n}from"./index-Br0Stb0u.js";import"./src-D0-roPyX.js";import"./w3c-keyname-B2B-WOb1.js";import{t as r}from"./WikiView-D_gNl0pw.js";var i=n({__name:`WikiPage`,setup(n){return(n,i)=>(e(),t(r,{scope:`global`}))}});export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ai as e,An as t,Ei as n,En as r,Gr as i,Hr as a,Jr as o,Oi as s,Qr as c,Si as l,Ui as u,Ur as d,Vt as f,Xi as p,Xr as ee,Yr as m,Zr as h,_a as g,ai as _,an as v,ca as y,dn as b,ln as x,ni as S,pn as C,qi as w,ri as T,vi as te,zi as ne}from"./index-BccReh-B.js";import{t as re}from"./src-Dcf22pj8.js";var E={class:`fs-node`},D=[`title`],O={class:`fs-node__name`},k=[`title`],A={class:`fs-node__name`},j={key:2,class:`fs-node__actions`},M={key:0,class:`fs-node__children`},ie=_({__name:`FsNode`,props:{entry:{},selectedPath:{},expanded:{},editable:{type:Boolean}},emits:[`toggle`,`select`,`create-child`,`rename`,`delete`],setup(t,{emit:r}){let a=t,l=r,u=o(()=>a.entry.type===`dir`&&a.expanded.has(a.entry.path)),f=o(()=>a.entry.type===`file`&&a.selectedPath===a.entry.path);return(r,a)=>{let o=e(`FsNode`,!0);return n(),c(`div`,E,[m(`div`,{class:w([`fs-node__row`,{"fs-node__row--selected":f.value}])},[t.entry.type===`dir`?(n(),c(`button`,{key:0,class:`fs-node__main`,title:t.entry.path,onClick:a[0]||=e=>l(`toggle`,t.entry.path)},[m(`i`,{class:w(`pi ${u.value?`pi-chevron-down`:`pi-chevron-right`} fs-node__caret`)},null,2),m(`i`,{class:w(`pi ${u.value?`pi-folder-open`:`pi-folder`} fs-node__icon fs-node__icon--folder`)},null,2),m(`span`,O,p(t.entry.name),1)],8,D)):(n(),c(`button`,{key:1,class:`fs-node__main`,title:t.entry.path,onClick:a[1]||=e=>l(`select`,t.entry.path)},[a[11]||=m(`span`,{class:`fs-node__caret-spacer`},null,-1),a[12]||=m(`i`,{class:`pi pi-file fs-node__icon`},null,-1),m(`span`,A,p(t.entry.name),1)],8,k)),t.editable?(n(),c(`div`,j,[t.entry.type===`dir`?(n(),c(`button`,{key:0,class:`fs-node__action`,title:`Nouveau fichier`,onClick:a[2]||=d(e=>l(`create-child`,t.entry.path,`file`),[`stop`])},[...a[13]||=[m(`i`,{class:`pi pi-file-plus`},null,-1)]])):h(``,!0),t.entry.type===`dir`?(n(),c(`button`,{key:1,class:`fs-node__action`,title:`Nouveau dossier`,onClick:a[3]||=d(e=>l(`create-child`,t.entry.path,`dir`),[`stop`])},[...a[14]||=[m(`i`,{class:`pi pi-folder-plus`},null,-1)]])):h(``,!0),m(`button`,{class:`fs-node__action`,title:`Renommer`,onClick:a[4]||=d(e=>l(`rename`,t.entry.path,t.entry.type===`dir`),[`stop`])},[...a[15]||=[m(`i`,{class:`pi pi-pencil`},null,-1)]]),m(`button`,{class:`fs-node__action fs-node__action--danger`,title:`Supprimer`,onClick:a[5]||=d(e=>l(`delete`,t.entry.path,t.entry.type===`dir`),[`stop`])},[...a[16]||=[m(`i`,{class:`pi pi-trash`},null,-1)]])])):h(``,!0)],2),t.entry.type===`dir`&&u.value?(n(),c(`ul`,M,[(n(!0),c(i,null,s(t.entry.children,e=>(n(),c(`li`,{key:e.path},[T(o,{entry:e,"selected-path":t.selectedPath,expanded:t.expanded,editable:t.editable,onToggle:a[6]||=e=>l(`toggle`,e),onSelect:a[7]||=e=>l(`select`,e),onCreateChild:a[8]||=(e,t)=>l(`create-child`,e,t),onRename:a[9]||=(e,t)=>l(`rename`,e,t),onDelete:a[10]||=(e,t)=>l(`delete`,e,t)},null,8,[`entry`,`selected-path`,`expanded`,`editable`])]))),128))])):h(``,!0)])}}}),ae={key:0,class:`wiki__not-configured`},oe={key:1,class:`wiki__not-configured`},se={key:0},ce={key:1},le={key:2,class:`wiki`},ue={class:`wiki__sidebar`},de={class:`wiki__sidebar-header`},fe=[`title`],pe={class:`wiki__sidebar-actions`},me={key:0,class:`wiki__loading`},he={key:1,class:`wiki__error`},ge={key:2,class:`wiki__empty`},_e={key:3,class:`wiki__tree`},ve={class:`wiki__main`},ye={class:`wiki__title-row`},be={class:`wiki__title-path`},xe={key:0,class:`wiki__status`},Se={key:0},Ce={key:1},we={key:2,class:`wiki__status-saved`},Te={key:1,class:`wiki__status wiki__status-readonly`},Ee={key:0,class:`wiki__editor-actions`},De={key:1,class:`wiki__loading`},Oe={key:1,class:`wiki__placeholder`},ke={class:`wiki__prompt-body`},Ae={for:`wiki-prompt-input`,class:`wiki__prompt-label`},je={class:`wiki__link-list`},Me=[`onClick`],Ne={class:`wiki__link-path`},Pe={key:0,class:`wiki__link-empty`},N=x(_({__name:`WikiView`,props:{scope:{}},setup(e){let _=r(),x=e,E=t(),D=y(``),O=y([]),k=y(!1),A=y(null),j=y(!1),M=y(null),N=y(!1),P=y(new Set),F=y(null),I=y(``),L=y(!1),R=y(!1),z=y(!1),B=null,V=``,Fe=y(null),H=y(!1),U=y(``),W=y({open:!1,title:``,label:``,value:``,placeholder:``,resolve:null});function Ie(e){return new Promise(t=>{W.value={open:!0,title:e.title,label:e.label,value:e.initialValue??``,placeholder:e.placeholder??``,resolve:t}})}function Le(){let e=W.value.value.trim();W.value.resolve?.(e||null),W.value.open=!1}function G(){W.value.resolve?.(null),W.value.open=!1}let Re=o(()=>{let e=[],t=n=>{for(let r of n)r.type===`file`?e.push({path:r.path,name:r.name}):t(r.children)};return t(O.value),e}),ze=o(()=>{let e=U.value.trim().toLowerCase();return Re.value.filter(e=>e.path!==F.value).filter(t=>!e||t.path.toLowerCase().includes(e))});async function K(){k.value=!0,A.value=null,j.value=!1,M.value=null;try{let e=await f.wiki.list.query({scope:x.scope});D.value=e.root,O.value=e.entries}catch(e){let t=e.message;if(/Aucun dossier de docs|globalDocsPath|docsPath|Aucun cwd/i.test(t))j.value=!0;else{let e=t.match(/Dossier introuvable:\s*(.+)$/);e?M.value=e[1].trim():A.value=t}}finally{k.value=!1}}async function Be(){N.value=!0;try{await f.wiki.ensureRoot.mutate({scope:x.scope}),M.value=null,await K()}catch(e){A.value=e.message}finally{N.value=!1}}let q=o(()=>x.scope===`global`),Ve=o(()=>x.scope.startsWith(`service:`)),He=o(()=>Ve.value?x.scope.slice(8):null);function Ue(){q.value?_.push({name:`settings`,query:{section:`general`}}):He.value&&_.push(`/services/${He.value}/config?configTab=general`)}function We(e){P.value.has(e)?P.value.delete(e):P.value.add(e),P.value=new Set(P.value)}async function J(e){X(),z.value=!1,F.value=e,L.value=!0,I.value=``;try{let t=await f.wiki.read.query({scope:x.scope,path:e});I.value=t.content,V=t.content;let n=e.split(`/`);for(n.pop();n.length;)P.value.add(n.join(`/`)),n.pop();P.value=new Set(P.value)}catch(e){A.value=e.message}finally{L.value=!1}}function Ge(){B&&clearTimeout(B),B=setTimeout(()=>{Y()},800)}async function Y(){if(!F.value||I.value===V)return;let e=F.value,t=I.value;R.value=!0;try{await f.wiki.write.mutate({scope:x.scope,path:e,content:t}),V=t}catch(e){A.value=e.message}finally{R.value=!1}}function X(){B&&(clearTimeout(B),B=null,Y())}ne(I,()=>{F.value&&z.value&&Ge()});function Ke(){z.value?(X(),z.value=!1):z.value=!0}async function Z(e,t){let n=await Ie({title:t===`file`?`Nouveau fichier`:`Nouveau dossier`,label:t===`file`?`Nom du fichier (sans extension)`:`Nom du dossier`,initialValue:t===`file`?`nouveau`:`nouveau-dossier`});if(!n)return;let r=n.trim().replace(/[^A-Za-z0-9_./-]/g,`-`);if(!r)return;let i=t===`file`&&!/\.(md|markdown)$/i.test(r)?`${r}.md`:r,a=e?`${e}/${i}`:i;try{t===`file`?(await f.wiki.createFile.mutate({scope:x.scope,path:a}),await K(),J(a)):(await f.wiki.createDir.mutate({scope:x.scope,path:a}),P.value.add(a),P.value=new Set(P.value),await K())}catch(e){A.value=e.message}}async function qe(e,t){let n=e.split(`/`),r=n[n.length-1],i=await Ie({title:`Renommer`,label:`Nouveau nom`,initialValue:r});if(!i||i===r)return;let a=i.trim().replace(/[^A-Za-z0-9_./-]/g,`-`);if(!a)return;let o=!t&&!/\.(md|markdown)$/i.test(a)?`${a}.md`:a;n[n.length-1]=o;let s=n.join(`/`);try{await f.wiki.rename.mutate({scope:x.scope,fromPath:e,toPath:s}),F.value===e&&(F.value=s),await K()}catch(e){A.value=e.message}}function Je(e,t){E.require({message:`Supprimer "${e}" ${t?`(et tout son contenu)`:``} ?`,header:`Confirmation`,icon:`pi pi-exclamation-triangle`,rejectProps:{label:`Annuler`,severity:`secondary`,outlined:!0},acceptProps:{label:`Supprimer`,severity:`danger`},accept:async()=>{try{await f.wiki.delete.mutate({scope:x.scope,path:e}),(F.value===e||t&&F.value?.startsWith(e+`/`))&&(F.value=null,I.value=``),await K()}catch(e){A.value=e.message}}})}function Ye(){U.value=``,H.value=!0}function Xe(e){let t=Ze(F.value??``,e.path);Fe.value?.insertWikiLink?.(t,e.name.replace(/\.(md|markdown)$/i,``)),H.value=!1}function Ze(e,t){let n=e.split(`/`);n.pop();let r=t.split(`/`),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;let a=n.length-i,o=r.slice(i);return(a===0?`./`:`../`.repeat(a))+o.join(`/`)}function Qe(e){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`)){window.open(e,`_blank`,`noopener,noreferrer`);return}if(e.startsWith(`#`)||!/\.(md|markdown)(#|\?|$)/i.test(e))return;let t=e.split(`#`)[0].split(`?`)[0],n=$e(F.value??``,t);Re.value.some(e=>e.path===n)?J(n):A.value=`Fichier introuvable: ${n}`}function $e(e,t){if(t.startsWith(`/`))return t.replace(/^\/+/,``);let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)).split(`/`).filter(Boolean):[];for(let e of t.split(`/`))e===``||e===`.`||(e===`..`?n.pop():n.push(e));return n.join(`/`)}function Q(){F.value&&J(F.value)}function $(){document.visibilityState===`visible`&&Q()}return ne(()=>x.scope,()=>{F.value=null,I.value=``,O.value=[],K()}),l(()=>{K(),window.addEventListener(`focus`,Q),document.addEventListener(`visibilitychange`,$)}),te(()=>{X(),window.removeEventListener(`focus`,Q),document.removeEventListener(`visibilitychange`,$)}),(e,t)=>M.value?(n(),c(`div`,ae,[t[8]||=m(`i`,{class:`pi pi-folder-open wiki__not-configured-icon`},null,-1),t[9]||=m(`h2`,null,`Le dossier de documentation n'existe pas encore`,-1),m(`p`,null,[t[7]||=S(` Chemin attendu : `,-1),m(`code`,null,p(M.value),1)]),T(g(C),{icon:`pi pi-plus`,label:`Créer le dossier`,loading:N.value,onClick:Be},null,8,[`loading`])])):j.value?(n(),c(`div`,oe,[t[11]||=m(`i`,{class:`pi pi-cog wiki__not-configured-icon`},null,-1),m(`h2`,null,p(q.value?`Wiki global non configuré`:`Documentation du service non configurée`),1),q.value?(n(),c(`p`,se,` Le wiki global a besoin d'un chemin absolu vers un dossier sur disque pour fonctionner. `)):(n(),c(`p`,ce,[...t[10]||=[S(` Ce service n'a pas de `,-1),m(`code`,null,`cwd`,-1),S(` ni de `,-1),m(`code`,null,`docsPath`,-1),S(` renseigné. `,-1)]])),T(g(C),{icon:`pi pi-arrow-right`,label:q.value?`Configurer le wiki global`:`Configurer le service`,onClick:Ue},null,8,[`label`])])):(n(),c(`div`,le,[m(`aside`,ue,[m(`div`,de,[m(`span`,{class:`wiki__sidebar-title`,title:D.value},p(D.value||`Pages`),9,fe),m(`div`,pe,[T(g(C),{icon:`pi pi-folder-plus`,size:`small`,text:``,rounded:``,title:`Nouveau dossier racine`,onClick:t[0]||=e=>Z(``,`dir`)}),T(g(C),{icon:`pi pi-file-plus`,size:`small`,text:``,rounded:``,title:`Nouveau fichier racine`,onClick:t[1]||=e=>Z(``,`file`)}),T(g(C),{icon:`pi pi-refresh`,size:`small`,text:``,rounded:``,title:`Rafraîchir`,onClick:K})])]),k.value?(n(),c(`div`,me,`Chargement…`)):A.value?(n(),c(`div`,he,p(A.value),1)):O.value.length===0?(n(),c(`div`,ge,` Aucun fichier. Utilisez les boutons en haut pour créer un fichier ou un dossier. `)):(n(),c(`ul`,_e,[(n(!0),c(i,null,s(O.value,e=>(n(),c(`li`,{key:e.path},[T(ie,{entry:e,"selected-path":F.value,expanded:P.value,editable:!0,onToggle:We,onSelect:J,onCreateChild:Z,onRename:qe,onDelete:Je},null,8,[`entry`,`selected-path`,`expanded`])]))),128))]))]),m(`section`,ve,[F.value?(n(),c(i,{key:0},[m(`div`,ye,[t[16]||=m(`i`,{class:`pi pi-file wiki__title-icon`},null,-1),m(`span`,be,p(F.value),1),z.value?(n(),c(`span`,xe,[R.value?(n(),c(`span`,Se,[...t[12]||=[m(`i`,{class:`pi pi-spin pi-spinner`},null,-1),S(` Sauvegarde…`,-1)]])):I.value===g(V)?(n(),c(`span`,we,[...t[14]||=[m(`i`,{class:`pi pi-check`},null,-1),S(` Sauvegardé`,-1)]])):(n(),c(`span`,Ce,[...t[13]||=[m(`i`,{class:`pi pi-circle-fill wiki__status-pending`},null,-1),S(` Modifié`,-1)]]))])):(n(),c(`span`,Te,[...t[15]||=[m(`i`,{class:`pi pi-eye`},null,-1),S(` Lecture seule `,-1)]])),T(g(C),{icon:z.value?`pi pi-check`:`pi pi-pencil`,label:z.value?`Terminer`:`Modifier`,size:`small`,severity:z.value?`success`:`secondary`,outlined:!z.value,onClick:Ke},null,8,[`icon`,`label`,`severity`,`outlined`]),T(g(C),{icon:`pi pi-refresh`,size:`small`,text:``,rounded:``,title:`Recharger depuis le disque`,loading:L.value,onClick:Q},null,8,[`loading`])]),z.value?(n(),c(`div`,Ee,[T(g(C),{icon:`pi pi-link`,label:`Lier un fichier`,size:`small`,text:``,onClick:Ye})])):h(``,!0),L.value?(n(),c(`div`,De,`Chargement du fichier…`)):(n(),ee(g(re),{key:2,ref_key:`editorRef`,ref:Fe,modelValue:I.value,"onUpdate:modelValue":t[2]||=e=>I.value=e,markdown:``,editable:z.value,class:w([`wiki__editor`,{"wiki__editor--readonly":!z.value}]),placeholder:`Écrivez le contenu de la page…`,onLinkClick:Qe},null,8,[`modelValue`,`editable`,`class`]))],64)):(n(),c(`div`,Oe,[...t[17]||=[m(`i`,{class:`pi pi-book wiki__placeholder-icon`},null,-1),m(`p`,null,`Sélectionnez un fichier ou créez-en un nouveau.`,-1)]]))]),T(g(b),{visible:W.value.open,"onUpdate:visible":t[4]||=e=>W.value.open=e,header:W.value.title,modal:``,style:{width:`420px`},"close-on-escape":!0,onHide:G},{footer:u(()=>[T(g(C),{label:`Annuler`,severity:`secondary`,outlined:``,size:`small`,onClick:G}),T(g(C),{label:`OK`,size:`small`,disabled:!W.value.value.trim(),onClick:Le},null,8,[`disabled`])]),default:u(()=>[m(`div`,ke,[m(`label`,Ae,p(W.value.label),1),T(g(v),{id:`wiki-prompt-input`,modelValue:W.value.value,"onUpdate:modelValue":t[3]||=e=>W.value.value=e,class:`wiki__prompt-input`,placeholder:W.value.placeholder,autofocus:``,onKeydown:[a(d(Le,[`prevent`]),[`enter`]),a(G,[`escape`])]},null,8,[`modelValue`,`placeholder`,`onKeydown`])])]),_:1},8,[`visible`,`header`]),T(g(b),{visible:H.value,"onUpdate:visible":t[6]||=e=>H.value=e,header:`Insérer un lien vers un fichier`,modal:``,style:{width:`500px`}},{default:u(()=>[T(g(v),{modelValue:U.value,"onUpdate:modelValue":t[5]||=e=>U.value=e,placeholder:`Rechercher un fichier…`,class:`wiki__link-search`,autofocus:``},null,8,[`modelValue`]),m(`div`,je,[(n(!0),c(i,null,s(ze.value,e=>(n(),c(`button`,{key:e.path,class:`wiki__link-item`,onClick:t=>Xe(e)},[t[18]||=m(`i`,{class:`pi pi-file`},null,-1),m(`span`,Ne,p(e.path),1)],8,Me))),128)),ze.value.length===0?(n(),c(`div`,Pe,` Aucun fichier disponible. `)):h(``,!0)])]),_:1},8,[`visible`])]))}}),[[`__scopeId`,`data-v-10f9637d`]]);export{N as t};
|
|
1
|
+
import{Ai as e,An as t,Ei as n,En as r,Gr as i,Hr as a,Jr as o,Oi as s,Qr as c,Si as l,Ui as u,Ur as d,Vt as f,Xi as p,Xr as ee,Yr as m,Zr as h,_a as g,ai as _,an as v,ca as y,dn as b,ln as x,ni as S,pn as C,qi as w,ri as T,vi as te,zi as ne}from"./index-Br0Stb0u.js";import{t as re}from"./src-D0-roPyX.js";var E={class:`fs-node`},D=[`title`],O={class:`fs-node__name`},k=[`title`],A={class:`fs-node__name`},j={key:2,class:`fs-node__actions`},M={key:0,class:`fs-node__children`},ie=_({__name:`FsNode`,props:{entry:{},selectedPath:{},expanded:{},editable:{type:Boolean}},emits:[`toggle`,`select`,`create-child`,`rename`,`delete`],setup(t,{emit:r}){let a=t,l=r,u=o(()=>a.entry.type===`dir`&&a.expanded.has(a.entry.path)),f=o(()=>a.entry.type===`file`&&a.selectedPath===a.entry.path);return(r,a)=>{let o=e(`FsNode`,!0);return n(),c(`div`,E,[m(`div`,{class:w([`fs-node__row`,{"fs-node__row--selected":f.value}])},[t.entry.type===`dir`?(n(),c(`button`,{key:0,class:`fs-node__main`,title:t.entry.path,onClick:a[0]||=e=>l(`toggle`,t.entry.path)},[m(`i`,{class:w(`pi ${u.value?`pi-chevron-down`:`pi-chevron-right`} fs-node__caret`)},null,2),m(`i`,{class:w(`pi ${u.value?`pi-folder-open`:`pi-folder`} fs-node__icon fs-node__icon--folder`)},null,2),m(`span`,O,p(t.entry.name),1)],8,D)):(n(),c(`button`,{key:1,class:`fs-node__main`,title:t.entry.path,onClick:a[1]||=e=>l(`select`,t.entry.path)},[a[11]||=m(`span`,{class:`fs-node__caret-spacer`},null,-1),a[12]||=m(`i`,{class:`pi pi-file fs-node__icon`},null,-1),m(`span`,A,p(t.entry.name),1)],8,k)),t.editable?(n(),c(`div`,j,[t.entry.type===`dir`?(n(),c(`button`,{key:0,class:`fs-node__action`,title:`Nouveau fichier`,onClick:a[2]||=d(e=>l(`create-child`,t.entry.path,`file`),[`stop`])},[...a[13]||=[m(`i`,{class:`pi pi-file-plus`},null,-1)]])):h(``,!0),t.entry.type===`dir`?(n(),c(`button`,{key:1,class:`fs-node__action`,title:`Nouveau dossier`,onClick:a[3]||=d(e=>l(`create-child`,t.entry.path,`dir`),[`stop`])},[...a[14]||=[m(`i`,{class:`pi pi-folder-plus`},null,-1)]])):h(``,!0),m(`button`,{class:`fs-node__action`,title:`Renommer`,onClick:a[4]||=d(e=>l(`rename`,t.entry.path,t.entry.type===`dir`),[`stop`])},[...a[15]||=[m(`i`,{class:`pi pi-pencil`},null,-1)]]),m(`button`,{class:`fs-node__action fs-node__action--danger`,title:`Supprimer`,onClick:a[5]||=d(e=>l(`delete`,t.entry.path,t.entry.type===`dir`),[`stop`])},[...a[16]||=[m(`i`,{class:`pi pi-trash`},null,-1)]])])):h(``,!0)],2),t.entry.type===`dir`&&u.value?(n(),c(`ul`,M,[(n(!0),c(i,null,s(t.entry.children,e=>(n(),c(`li`,{key:e.path},[T(o,{entry:e,"selected-path":t.selectedPath,expanded:t.expanded,editable:t.editable,onToggle:a[6]||=e=>l(`toggle`,e),onSelect:a[7]||=e=>l(`select`,e),onCreateChild:a[8]||=(e,t)=>l(`create-child`,e,t),onRename:a[9]||=(e,t)=>l(`rename`,e,t),onDelete:a[10]||=(e,t)=>l(`delete`,e,t)},null,8,[`entry`,`selected-path`,`expanded`,`editable`])]))),128))])):h(``,!0)])}}}),ae={key:0,class:`wiki__not-configured`},oe={key:1,class:`wiki__not-configured`},se={key:0},ce={key:1},le={key:2,class:`wiki`},ue={class:`wiki__sidebar`},de={class:`wiki__sidebar-header`},fe=[`title`],pe={class:`wiki__sidebar-actions`},me={key:0,class:`wiki__loading`},he={key:1,class:`wiki__error`},ge={key:2,class:`wiki__empty`},_e={key:3,class:`wiki__tree`},ve={class:`wiki__main`},ye={class:`wiki__title-row`},be={class:`wiki__title-path`},xe={key:0,class:`wiki__status`},Se={key:0},Ce={key:1},we={key:2,class:`wiki__status-saved`},Te={key:1,class:`wiki__status wiki__status-readonly`},Ee={key:0,class:`wiki__editor-actions`},De={key:1,class:`wiki__loading`},Oe={key:1,class:`wiki__placeholder`},ke={class:`wiki__prompt-body`},Ae={for:`wiki-prompt-input`,class:`wiki__prompt-label`},je={class:`wiki__link-list`},Me=[`onClick`],Ne={class:`wiki__link-path`},Pe={key:0,class:`wiki__link-empty`},N=x(_({__name:`WikiView`,props:{scope:{}},setup(e){let _=r(),x=e,E=t(),D=y(``),O=y([]),k=y(!1),A=y(null),j=y(!1),M=y(null),N=y(!1),P=y(new Set),F=y(null),I=y(``),L=y(!1),R=y(!1),z=y(!1),B=null,V=``,Fe=y(null),H=y(!1),U=y(``),W=y({open:!1,title:``,label:``,value:``,placeholder:``,resolve:null});function Ie(e){return new Promise(t=>{W.value={open:!0,title:e.title,label:e.label,value:e.initialValue??``,placeholder:e.placeholder??``,resolve:t}})}function Le(){let e=W.value.value.trim();W.value.resolve?.(e||null),W.value.open=!1}function G(){W.value.resolve?.(null),W.value.open=!1}let Re=o(()=>{let e=[],t=n=>{for(let r of n)r.type===`file`?e.push({path:r.path,name:r.name}):t(r.children)};return t(O.value),e}),ze=o(()=>{let e=U.value.trim().toLowerCase();return Re.value.filter(e=>e.path!==F.value).filter(t=>!e||t.path.toLowerCase().includes(e))});async function K(){k.value=!0,A.value=null,j.value=!1,M.value=null;try{let e=await f.wiki.list.query({scope:x.scope});D.value=e.root,O.value=e.entries}catch(e){let t=e.message;if(/Aucun dossier de docs|globalDocsPath|docsPath|Aucun cwd/i.test(t))j.value=!0;else{let e=t.match(/Dossier introuvable:\s*(.+)$/);e?M.value=e[1].trim():A.value=t}}finally{k.value=!1}}async function Be(){N.value=!0;try{await f.wiki.ensureRoot.mutate({scope:x.scope}),M.value=null,await K()}catch(e){A.value=e.message}finally{N.value=!1}}let q=o(()=>x.scope===`global`),Ve=o(()=>x.scope.startsWith(`service:`)),He=o(()=>Ve.value?x.scope.slice(8):null);function Ue(){q.value?_.push({name:`settings`,query:{section:`general`}}):He.value&&_.push(`/services/${He.value}/config?configTab=general`)}function We(e){P.value.has(e)?P.value.delete(e):P.value.add(e),P.value=new Set(P.value)}async function J(e){X(),z.value=!1,F.value=e,L.value=!0,I.value=``;try{let t=await f.wiki.read.query({scope:x.scope,path:e});I.value=t.content,V=t.content;let n=e.split(`/`);for(n.pop();n.length;)P.value.add(n.join(`/`)),n.pop();P.value=new Set(P.value)}catch(e){A.value=e.message}finally{L.value=!1}}function Ge(){B&&clearTimeout(B),B=setTimeout(()=>{Y()},800)}async function Y(){if(!F.value||I.value===V)return;let e=F.value,t=I.value;R.value=!0;try{await f.wiki.write.mutate({scope:x.scope,path:e,content:t}),V=t}catch(e){A.value=e.message}finally{R.value=!1}}function X(){B&&(clearTimeout(B),B=null,Y())}ne(I,()=>{F.value&&z.value&&Ge()});function Ke(){z.value?(X(),z.value=!1):z.value=!0}async function Z(e,t){let n=await Ie({title:t===`file`?`Nouveau fichier`:`Nouveau dossier`,label:t===`file`?`Nom du fichier (sans extension)`:`Nom du dossier`,initialValue:t===`file`?`nouveau`:`nouveau-dossier`});if(!n)return;let r=n.trim().replace(/[^A-Za-z0-9_./-]/g,`-`);if(!r)return;let i=t===`file`&&!/\.(md|markdown)$/i.test(r)?`${r}.md`:r,a=e?`${e}/${i}`:i;try{t===`file`?(await f.wiki.createFile.mutate({scope:x.scope,path:a}),await K(),J(a)):(await f.wiki.createDir.mutate({scope:x.scope,path:a}),P.value.add(a),P.value=new Set(P.value),await K())}catch(e){A.value=e.message}}async function qe(e,t){let n=e.split(`/`),r=n[n.length-1],i=await Ie({title:`Renommer`,label:`Nouveau nom`,initialValue:r});if(!i||i===r)return;let a=i.trim().replace(/[^A-Za-z0-9_./-]/g,`-`);if(!a)return;let o=!t&&!/\.(md|markdown)$/i.test(a)?`${a}.md`:a;n[n.length-1]=o;let s=n.join(`/`);try{await f.wiki.rename.mutate({scope:x.scope,fromPath:e,toPath:s}),F.value===e&&(F.value=s),await K()}catch(e){A.value=e.message}}function Je(e,t){E.require({message:`Supprimer "${e}" ${t?`(et tout son contenu)`:``} ?`,header:`Confirmation`,icon:`pi pi-exclamation-triangle`,rejectProps:{label:`Annuler`,severity:`secondary`,outlined:!0},acceptProps:{label:`Supprimer`,severity:`danger`},accept:async()=>{try{await f.wiki.delete.mutate({scope:x.scope,path:e}),(F.value===e||t&&F.value?.startsWith(e+`/`))&&(F.value=null,I.value=``),await K()}catch(e){A.value=e.message}}})}function Ye(){U.value=``,H.value=!0}function Xe(e){let t=Ze(F.value??``,e.path);Fe.value?.insertWikiLink?.(t,e.name.replace(/\.(md|markdown)$/i,``)),H.value=!1}function Ze(e,t){let n=e.split(`/`);n.pop();let r=t.split(`/`),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;let a=n.length-i,o=r.slice(i);return(a===0?`./`:`../`.repeat(a))+o.join(`/`)}function Qe(e){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`)){window.open(e,`_blank`,`noopener,noreferrer`);return}if(e.startsWith(`#`)||!/\.(md|markdown)(#|\?|$)/i.test(e))return;let t=e.split(`#`)[0].split(`?`)[0],n=$e(F.value??``,t);Re.value.some(e=>e.path===n)?J(n):A.value=`Fichier introuvable: ${n}`}function $e(e,t){if(t.startsWith(`/`))return t.replace(/^\/+/,``);let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)).split(`/`).filter(Boolean):[];for(let e of t.split(`/`))e===``||e===`.`||(e===`..`?n.pop():n.push(e));return n.join(`/`)}function Q(){F.value&&J(F.value)}function $(){document.visibilityState===`visible`&&Q()}return ne(()=>x.scope,()=>{F.value=null,I.value=``,O.value=[],K()}),l(()=>{K(),window.addEventListener(`focus`,Q),document.addEventListener(`visibilitychange`,$)}),te(()=>{X(),window.removeEventListener(`focus`,Q),document.removeEventListener(`visibilitychange`,$)}),(e,t)=>M.value?(n(),c(`div`,ae,[t[8]||=m(`i`,{class:`pi pi-folder-open wiki__not-configured-icon`},null,-1),t[9]||=m(`h2`,null,`Le dossier de documentation n'existe pas encore`,-1),m(`p`,null,[t[7]||=S(` Chemin attendu : `,-1),m(`code`,null,p(M.value),1)]),T(g(C),{icon:`pi pi-plus`,label:`Créer le dossier`,loading:N.value,onClick:Be},null,8,[`loading`])])):j.value?(n(),c(`div`,oe,[t[11]||=m(`i`,{class:`pi pi-cog wiki__not-configured-icon`},null,-1),m(`h2`,null,p(q.value?`Wiki global non configuré`:`Documentation du service non configurée`),1),q.value?(n(),c(`p`,se,` Le wiki global a besoin d'un chemin absolu vers un dossier sur disque pour fonctionner. `)):(n(),c(`p`,ce,[...t[10]||=[S(` Ce service n'a pas de `,-1),m(`code`,null,`cwd`,-1),S(` ni de `,-1),m(`code`,null,`docsPath`,-1),S(` renseigné. `,-1)]])),T(g(C),{icon:`pi pi-arrow-right`,label:q.value?`Configurer le wiki global`:`Configurer le service`,onClick:Ue},null,8,[`label`])])):(n(),c(`div`,le,[m(`aside`,ue,[m(`div`,de,[m(`span`,{class:`wiki__sidebar-title`,title:D.value},p(D.value||`Pages`),9,fe),m(`div`,pe,[T(g(C),{icon:`pi pi-folder-plus`,size:`small`,text:``,rounded:``,title:`Nouveau dossier racine`,onClick:t[0]||=e=>Z(``,`dir`)}),T(g(C),{icon:`pi pi-file-plus`,size:`small`,text:``,rounded:``,title:`Nouveau fichier racine`,onClick:t[1]||=e=>Z(``,`file`)}),T(g(C),{icon:`pi pi-refresh`,size:`small`,text:``,rounded:``,title:`Rafraîchir`,onClick:K})])]),k.value?(n(),c(`div`,me,`Chargement…`)):A.value?(n(),c(`div`,he,p(A.value),1)):O.value.length===0?(n(),c(`div`,ge,` Aucun fichier. Utilisez les boutons en haut pour créer un fichier ou un dossier. `)):(n(),c(`ul`,_e,[(n(!0),c(i,null,s(O.value,e=>(n(),c(`li`,{key:e.path},[T(ie,{entry:e,"selected-path":F.value,expanded:P.value,editable:!0,onToggle:We,onSelect:J,onCreateChild:Z,onRename:qe,onDelete:Je},null,8,[`entry`,`selected-path`,`expanded`])]))),128))]))]),m(`section`,ve,[F.value?(n(),c(i,{key:0},[m(`div`,ye,[t[16]||=m(`i`,{class:`pi pi-file wiki__title-icon`},null,-1),m(`span`,be,p(F.value),1),z.value?(n(),c(`span`,xe,[R.value?(n(),c(`span`,Se,[...t[12]||=[m(`i`,{class:`pi pi-spin pi-spinner`},null,-1),S(` Sauvegarde…`,-1)]])):I.value===g(V)?(n(),c(`span`,we,[...t[14]||=[m(`i`,{class:`pi pi-check`},null,-1),S(` Sauvegardé`,-1)]])):(n(),c(`span`,Ce,[...t[13]||=[m(`i`,{class:`pi pi-circle-fill wiki__status-pending`},null,-1),S(` Modifié`,-1)]]))])):(n(),c(`span`,Te,[...t[15]||=[m(`i`,{class:`pi pi-eye`},null,-1),S(` Lecture seule `,-1)]])),T(g(C),{icon:z.value?`pi pi-check`:`pi pi-pencil`,label:z.value?`Terminer`:`Modifier`,size:`small`,severity:z.value?`success`:`secondary`,outlined:!z.value,onClick:Ke},null,8,[`icon`,`label`,`severity`,`outlined`]),T(g(C),{icon:`pi pi-refresh`,size:`small`,text:``,rounded:``,title:`Recharger depuis le disque`,loading:L.value,onClick:Q},null,8,[`loading`])]),z.value?(n(),c(`div`,Ee,[T(g(C),{icon:`pi pi-link`,label:`Lier un fichier`,size:`small`,text:``,onClick:Ye})])):h(``,!0),L.value?(n(),c(`div`,De,`Chargement du fichier…`)):(n(),ee(g(re),{key:2,ref_key:`editorRef`,ref:Fe,modelValue:I.value,"onUpdate:modelValue":t[2]||=e=>I.value=e,markdown:``,editable:z.value,class:w([`wiki__editor`,{"wiki__editor--readonly":!z.value}]),placeholder:`Écrivez le contenu de la page…`,onLinkClick:Qe},null,8,[`modelValue`,`editable`,`class`]))],64)):(n(),c(`div`,Oe,[...t[17]||=[m(`i`,{class:`pi pi-book wiki__placeholder-icon`},null,-1),m(`p`,null,`Sélectionnez un fichier ou créez-en un nouveau.`,-1)]]))]),T(g(b),{visible:W.value.open,"onUpdate:visible":t[4]||=e=>W.value.open=e,header:W.value.title,modal:``,style:{width:`420px`},"close-on-escape":!0,onHide:G},{footer:u(()=>[T(g(C),{label:`Annuler`,severity:`secondary`,outlined:``,size:`small`,onClick:G}),T(g(C),{label:`OK`,size:`small`,disabled:!W.value.value.trim(),onClick:Le},null,8,[`disabled`])]),default:u(()=>[m(`div`,ke,[m(`label`,Ae,p(W.value.label),1),T(g(v),{id:`wiki-prompt-input`,modelValue:W.value.value,"onUpdate:modelValue":t[3]||=e=>W.value.value=e,class:`wiki__prompt-input`,placeholder:W.value.placeholder,autofocus:``,onKeydown:[a(d(Le,[`prevent`]),[`enter`]),a(G,[`escape`])]},null,8,[`modelValue`,`placeholder`,`onKeydown`])])]),_:1},8,[`visible`,`header`]),T(g(b),{visible:H.value,"onUpdate:visible":t[6]||=e=>H.value=e,header:`Insérer un lien vers un fichier`,modal:``,style:{width:`500px`}},{default:u(()=>[T(g(v),{modelValue:U.value,"onUpdate:modelValue":t[5]||=e=>U.value=e,placeholder:`Rechercher un fichier…`,class:`wiki__link-search`,autofocus:``},null,8,[`modelValue`]),m(`div`,je,[(n(!0),c(i,null,s(ze.value,e=>(n(),c(`button`,{key:e.path,class:`wiki__link-item`,onClick:t=>Xe(e)},[t[18]||=m(`i`,{class:`pi pi-file`},null,-1),m(`span`,Ne,p(e.path),1)],8,Me))),128)),ze.value.length===0?(n(),c(`div`,Pe,` Aucun fichier disponible. `)):h(``,!0)])]),_:1},8,[`visible`])]))}}),[[`__scopeId`,`data-v-10f9637d`]]);export{N as t};
|