@vokril/ui-solid 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/{AttributeGrid-CNkALmJq.cjs → AttributeGrid-BNQaSpfE.cjs} +1 -1
- package/dist/{AttributeGrid-DnuTPJ_P.js → AttributeGrid-tjVwSI4h.js} +4 -4
- package/dist/{Button-lMUW5P3O.cjs → Button-D5Ihf90u.cjs} +1 -1
- package/dist/{Button-CX7mylBT.js → Button-DDkZzT-k.js} +1 -1
- package/dist/{CommandPalette-BnZwM7DE.js → CommandPalette-CGfXynfl.js} +7 -7
- package/dist/{CommandPalette-3wKYPO9u.cjs → CommandPalette-CdiIycaW.cjs} +1 -1
- package/dist/{CopyButton-Dnd8_2Lj.cjs → CopyButton-Hb6c_Oq1.cjs} +1 -1
- package/dist/{CopyButton-BVvv5M8g.js → CopyButton-gHxA-WL_.js} +1 -1
- package/dist/{DateRangePicker-B7XbFZP_.js → DateRangePicker-B36NSGMS.js} +5 -5
- package/dist/{DateRangePicker-Cnzwgtx-.cjs → DateRangePicker-EEcp-IbM.cjs} +1 -1
- package/dist/Disclosure-0tZlCnkH.js +76 -0
- package/dist/Disclosure-DHNtLOWi.cjs +1 -0
- package/dist/GuidedTour-DicNwdq3.cjs +1 -0
- package/dist/GuidedTour-bcaKpXPX.js +412 -0
- package/dist/{HostPortal-Dm4BmY8M.cjs → HostPortal-C1xTPZYj.cjs} +1 -1
- package/dist/{HostPortal-De65s6CU.js → HostPortal-DsVQEH2q.js} +1 -1
- package/dist/{IconPicker-Cku0jy4r.js → IconPicker-7sF4n6vD.js} +4 -4
- package/dist/{IconPicker-pYYYpMF6.cjs → IconPicker-D60txter.cjs} +1 -1
- package/dist/{Input-CHtvL4_4.cjs → Input-DTm6v0fK.cjs} +1 -1
- package/dist/{Input-C3rEQffK.js → Input-agpwYeJd.js} +1 -1
- package/dist/{Modal-zPqB1ufV.cjs → Modal-C1vp7z7l.cjs} +1 -1
- package/dist/{Modal-CjPn7xsM.js → Modal-aKptl9ig.js} +2 -2
- package/dist/{PageSkeleton-lfENszyc.js → PageSkeleton-XNfK8xoY.js} +3 -3
- package/dist/{PageSkeleton-3f-2SBNK.cjs → PageSkeleton-jljSUpu1.cjs} +1 -1
- package/dist/{SearchableSelect-C-lV1vSv.cjs → SearchableSelect-CXPSoFqf.cjs} +1 -1
- package/dist/{SearchableSelect-Du12kcI9.js → SearchableSelect-DFdGGNR6.js} +3 -3
- package/dist/{StatusBarNotificationBell-GbkAwC4w.js → StatusBarNotificationBell-CnmMzXzD.js} +39 -38
- package/dist/{StatusBarNotificationBell-fegn26_s.cjs → StatusBarNotificationBell-MXX_K48w.cjs} +21 -21
- package/dist/{Stepper-rpu7lpzB.cjs → Stepper-BLKD4ub3.cjs} +1 -1
- package/dist/{Stepper-DzI-gtKd.js → Stepper-D0rrrtAN.js} +1 -1
- package/dist/{Textarea-DOzZCc-O.js → Textarea-CKJDNOaL.js} +1 -1
- package/dist/{Textarea-D4nYoQ0J.cjs → Textarea-Ds3bMrq9.cjs} +1 -1
- package/dist/{TimeSeriesChart-BJqQpeEJ.cjs → TimeSeriesChart-B9cqfs1M.cjs} +1 -1
- package/dist/{TimeSeriesChart-DvAhuyVl.js → TimeSeriesChart-DBARL8HG.js} +1 -1
- package/dist/ToggleButton-DaDfg2cC.js +2186 -0
- package/dist/ToggleButton-WoM2S_S4.cjs +1 -0
- package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
- package/dist/{server/appThemeDerivation-Be_oKljl.cjs → appThemeDerivation-Cgg74S4e.cjs} +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createDialogShellFocus-DFEaujn4.cjs → createDialogShellFocus-C2FKc2rv.cjs} +1 -1
- package/dist/{createDialogShellFocus-Z557MGDg.js → createDialogShellFocus-CgjiySLA.js} +2 -2
- package/dist/createResizableSidebar-BqW3Ozgd.cjs +1 -0
- package/dist/createResizableSidebar-CKbN032u.js +853 -0
- package/dist/de-BQbrl0SL.cjs +1 -0
- package/dist/{server/de-q3NXnC0J.js → de-CSWSMGCG.js} +45 -39
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/forms/NumberInput.d.cts +5 -0
- package/dist/forms/NumberInput.d.ts +5 -0
- package/dist/forms/RadioGroup.d.cts +13 -0
- package/dist/forms/RadioGroup.d.ts +13 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
- package/dist/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +389 -384
- package/dist/layout/SettingsCard.d.cts +108 -0
- package/dist/layout/SettingsCard.d.ts +108 -0
- package/dist/layout/SettingsSubpageHeader.d.cts +29 -0
- package/dist/layout/SettingsSubpageHeader.d.ts +29 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.cts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +18 -14
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +85 -84
- package/dist/{rowSource-D8gyHbEE.cjs → rowSource-BWm-kZHe.cjs} +1 -1
- package/dist/{rowSource-_4IuosKj.js → rowSource-DEulMv5F.js} +1 -1
- package/dist/server/{AttributeGrid-B9j_c2wM.js → AttributeGrid-BmS2U5Gz.js} +4 -4
- package/dist/server/{AttributeGrid-BALCTvOI.cjs → AttributeGrid-fT5-b9ZJ.cjs} +1 -1
- package/dist/server/{Button-ft_8RNJj.js → Button-XL9Os1pR.js} +1 -1
- package/dist/server/{Button-DHefmmYz.cjs → Button-lNnNp0um.cjs} +1 -1
- package/dist/server/{CommandPalette-DKURJBBZ.cjs → CommandPalette-C0MbWZHM.cjs} +1 -1
- package/dist/server/{CommandPalette-B3EE1iMo.js → CommandPalette-CgTnmrYx.js} +7 -7
- package/dist/server/{CopyButton-CiYcsQcI.js → CopyButton-BdU_8aZB.js} +1 -1
- package/dist/server/{CopyButton-D2q7tQ0m.cjs → CopyButton-BpbGM72h.cjs} +1 -1
- package/dist/server/{DateRangePicker-BeByF_wt.cjs → DateRangePicker-ClJHlO9g.cjs} +1 -1
- package/dist/server/{DateRangePicker-TIOF99wh.js → DateRangePicker-DGXmbyCR.js} +5 -5
- package/dist/server/Disclosure-CUvaGDTZ.cjs +1 -0
- package/dist/server/Disclosure-ClOFRW_3.js +55 -0
- package/dist/server/GuidedTour-CCkg6Paz.js +350 -0
- package/dist/server/GuidedTour-PETCExHX.cjs +1 -0
- package/dist/server/{HostPortal-CwyePpDX.cjs → HostPortal-BNGZ8nw4.cjs} +1 -1
- package/dist/server/{HostPortal-C4xdfRyM.js → HostPortal-CdhnKAWT.js} +1 -1
- package/dist/server/{IconPicker-DX5JVIOl.js → IconPicker-B5lUuCxR.js} +5 -5
- package/dist/server/{IconPicker-QZrwihNH.cjs → IconPicker-BfRZtScr.cjs} +1 -1
- package/dist/server/{Input-V9Szcw6w.js → Input-DFAn8kou.js} +1 -1
- package/dist/server/{Input-UX0Hk53M.cjs → Input-DOTXKwhw.cjs} +1 -1
- package/dist/server/{Modal-DNYwnQ0V.cjs → Modal-BI3FtG-d.cjs} +1 -1
- package/dist/server/{Modal-Cl_asviX.js → Modal-Cbmikig8.js} +2 -2
- package/dist/server/{PageSkeleton-CP8EmxyS.cjs → PageSkeleton--ssP7Di9.cjs} +1 -1
- package/dist/server/{PageSkeleton-HhO6CRZ8.js → PageSkeleton-DRPIcDHU.js} +3 -3
- package/dist/server/{SearchableSelect-BBu5cP6P.cjs → SearchableSelect-DsHkuiTW.cjs} +1 -1
- package/dist/server/{SearchableSelect-B2ZFnp6i.js → SearchableSelect-y0Fr7cPS.js} +3 -3
- package/dist/server/{StatusBarNotificationBell-CB919YAX.cjs → StatusBarNotificationBell-BrHZ2r3X.cjs} +20 -20
- package/dist/server/{StatusBarNotificationBell-BfBGKXDG.js → StatusBarNotificationBell-CY16bTyI.js} +39 -38
- package/dist/server/{Stepper-C04rOZcI.cjs → Stepper-BOVzsqcG.cjs} +1 -1
- package/dist/server/{Stepper-CVAOsf3o.js → Stepper-DC34G5fk.js} +1 -1
- package/dist/server/{Textarea-DM4zpgWo.js → Textarea-CL2wYpW7.js} +1 -1
- package/dist/server/{Textarea-BG6F8taO.cjs → Textarea-D43xOjAJ.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-tWbSF6fJ.cjs → TimeSeriesChart-CL1GjjV5.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-kuuqH7we.js → TimeSeriesChart-CP-2M3R7.js} +1 -1
- package/dist/server/ToggleButton-BmvcLm_6.cjs +1 -0
- package/dist/server/ToggleButton-oDCxuzfp.js +1375 -0
- package/dist/server/VpRefresh-CEyHVNo-.cjs +1 -0
- package/dist/server/{VpRefresh-CjGV1jUv.js → VpRefresh-Dlqsm9Va.js} +17 -3
- package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
- package/dist/{appThemeDerivation-Be_oKljl.cjs → server/appThemeDerivation-Cgg74S4e.cjs} +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createDialogShellFocus-B10Toy2h.js → createDialogShellFocus-BXCNQyU9.js} +1 -1
- package/dist/server/{createDialogShellFocus-usbhq9Av.cjs → createDialogShellFocus-CKsZl9Uz.cjs} +1 -1
- package/dist/server/createResizableSidebar-B8zMo4jJ.js +599 -0
- package/dist/server/createResizableSidebar-DXFKY01F.cjs +1 -0
- package/dist/server/de-BQbrl0SL.cjs +1 -0
- package/dist/{de-q3NXnC0J.js → server/de-CSWSMGCG.js} +45 -39
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +1 -1
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
- package/dist/server/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
- package/dist/server/index-CME-IDQX.cjs +1 -0
- package/dist/server/{index-BNXRPhpr.js → index-vTHpJ130.js} +3879 -3892
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +327 -322
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +18 -14
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +80 -79
- package/dist/server/{rowSource-Yw-xtlih.cjs → rowSource-BOt_vVGY.cjs} +1 -1
- package/dist/server/{rowSource-BSa7rgYJ.js → rowSource-WElLH5Tb.js} +1 -1
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +1 -1
- package/dist/server/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
- package/dist/server/tr-sOAsJS3P.cjs +1 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/forms/NumberInput.jsx +14 -6
- package/dist/solid/forms/NumberInput.module.css.js +3 -1
- package/dist/solid/forms/RadioGroup.jsx +14 -3
- package/dist/solid/forms/RadioGroup.module.css.js +6 -1
- package/dist/solid/i18n/locales/de.json +4 -1
- package/dist/solid/i18n/locales/tr.json +4 -1
- package/dist/solid/layout/SettingsCard.jsx +103 -0
- package/dist/solid/layout/SettingsCard.module.css.js +33 -0
- package/dist/solid/layout/SettingsSubpageHeader.jsx +31 -0
- package/dist/solid/layout/SettingsSubpageHeader.module.css.js +10 -0
- package/dist/solid/layout/index.js +2 -0
- package/dist/solid/tokens/palette/accessiblePalette.js +2 -2
- package/dist/solid/tokens/palette/palettes.js +8 -8
- package/dist/style.css +89 -89
- package/dist/theme.css +88 -88
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/palette/accessiblePalette.d.cts +2 -2
- package/dist/tokens/palette/accessiblePalette.d.ts +2 -2
- package/dist/tokens/tokens.css +88 -88
- package/dist/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
- package/dist/tr-sOAsJS3P.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/GuidedTour-BTvAeAfT.cjs +0 -1
- package/dist/GuidedTour-CwbGGSIW.js +0 -483
- package/dist/ToggleButton-BTu9tcCi.js +0 -2144
- package/dist/ToggleButton-iMcQGwDn.cjs +0 -1
- package/dist/createResizableSidebar-De-8HN0W.js +0 -504
- package/dist/createResizableSidebar-JB_GlEN7.cjs +0 -1
- package/dist/de-BqFZ0Ac8.cjs +0 -1
- package/dist/server/GuidedTour-DCoB90h1.cjs +0 -1
- package/dist/server/GuidedTour-pdx_4IrZ.js +0 -400
- package/dist/server/ToggleButton-BbW2zC_f.js +0 -1344
- package/dist/server/ToggleButton-CQd_Jagp.cjs +0 -1
- package/dist/server/VpRefresh-Khu7XHaq.cjs +0 -1
- package/dist/server/createResizableSidebar-CeY4cES5.cjs +0 -1
- package/dist/server/createResizableSidebar-DA0AZVNV.js +0 -312
- package/dist/server/de-BqFZ0Ac8.cjs +0 -1
- package/dist/server/index-D0BVVt2h.cjs +0 -1
- package/dist/server/tr-D7bwe7tl.cjs +0 -1
- package/dist/tr-D7bwe7tl.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("solid-js/web"),d=require("solid-js"),Ce=require("./prefersReducedMotion-DYR56SKZ.cjs"),Ze=require("./mainRealmDom-BcPuVvcy.cjs"),Qe=require("./kitHost-u0-mKvEK.cjs"),Z=require("@vokril/icons"),le=require("./Button-lMUW5P3O.cjs"),et=require("./OverlayScrollArea-Cr0VAApT.cjs"),M=require("./i18n-D3s-a2a0.cjs"),De=require("./window-_BfSgFGO.cjs"),Te=require("./overlayStack-eD8AmuwY.cjs"),Me=require("./ownerAnimationFrame-T6jf6qYC.cjs"),tt=require("./errorHandler-DoDAPpv2.cjs"),nt=require("./keys-GMxY2wcl.cjs"),ot="2.875rem",at="data-modal-titlebar-probe";function Oe(n,f){const l=Ze.createElement("div");l.setAttribute(at,""),l.style.cssText=`position:absolute;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:var(--modal-maximize-inset, ${ot})`,(f!=null&&f.isConnected?f:n.body??n.documentElement).append(l);try{return l.getBoundingClientRect().height}finally{l.remove()}}const rt="vk_place_5Cs4j",lt="vk_placeLabel_ZwMrw",it="vk_placeValue_EWbq8",V={place:rt,placeLabel:lt,placeValue:it};var ct=e.template("<dl data-dangerous-place><dt></dt><dd data-place=connection>"),dt=e.template("<dt>"),st=e.template("<dd data-place=database>");function $e(n){return(()=>{var f=ct(),l=f.firstChild,v=l.nextSibling;return e.insert(l,()=>M.t("Connection")),e.insert(v,()=>n.place.connection),e.insert(f,e.createComponent(d.Show,{get when(){return n.place.database},children:g=>[(()=>{var b=dt();return e.insert(b,()=>M.t("Database")),e.effect(()=>e.className(b,V.placeLabel)),b})(),(()=>{var b=st();return e.insert(b,g),e.effect(()=>e.className(b,V.placeValue)),b})()]}),null),e.effect(g=>{var b=n.id,k=V.place,D=V.placeLabel,i=V.placeValue;return b!==g.e&&e.setAttribute(f,"id",g.e=b),k!==g.t&&e.className(f,g.t=k),D!==g.a&&e.className(l,g.a=D),i!==g.o&&e.className(v,g.o=i),g},{e:void 0,t:void 0,a:void 0,o:void 0}),f})()}const ut="Tab";function Ie(n,f){if(n!==ut)return null;const{focusableCount:l,activeIndex:v,shiftKey:g}=f;if(l<=0)return null;const b=0,k=l-1;return v<0?g?k:b:g?v===b?k:null:v===k?b:null}const mt=["a[href]","area[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function Ae(n){const f=Array.from(n.querySelectorAll(mt)),l=n.ownerDocument;return f.filter(v=>v.getAttribute("aria-hidden")!=="true"&&(v.offsetParent!==null||v===l.documentElement))}function Le(n,f){var b;const l=Ae(n),v=l.indexOf(n.ownerDocument.activeElement),g=Ie(f.key,{focusableCount:l.length,activeIndex:v,shiftKey:f.shiftKey});return g===null?!1:(f.preventDefault(),(b=l[g])==null||b.focus(),!0)}const ft="Tab",gt="Escape",ht="Enter";function Se(n,f){return n===gt?"dismiss":n===ht&&f.confirmOnEnter?"confirm":n===ft?"trap":"none"}const vt="vk_modalOverlay_53kKZ",bt="vk_modalOverlayExiting_x-xU-",wt="vk_modal_ZqkLW",yt="vk_modalEntering_hQj2V",xt="vk_modalExiting_qiJ02",pt="vk_modalDragged_tiDIq",Et="vk_modalOverlayMaximized_00k68",_t="vk_modalMaximized_iL0gq",Ct="vk_modalOverlayEmbedded_kz22G",Dt="vk_modalEmbedded_uaq4K",Tt="vk_modalHeader_fiwar",Mt="vk_modalFooter_PqFE4",kt="vk_modalBodyScroll_XIHnt",Ot="vk_modalHeaderDraggable_XVN7l",$t="vk_modalHeaderDragging_AfuEb",It="vk_modalTitle_jdWEj vk_titleLg_Iswm3",At="vk_modalTitleWrap_IW3-y",Lt="vk_modalTitleContent_x5Np7",St="vk_modalSubtitle_Is6W0",Ht="vk_modalPlace_3FEgX",Rt="vk_modalHeaderActions_uUFCL",zt="vk_modalBody_EJ4Kr",h={modalOverlay:vt,modalOverlayExiting:bt,modal:wt,modalEntering:yt,modalExiting:xt,modalDragged:pt,modalOverlayMaximized:Et,modalMaximized:_t,modalOverlayEmbedded:Ct,modalEmbedded:Dt,modalHeader:Tt,modalFooter:Mt,modalBodyScroll:kt,modalHeaderDraggable:Ot,modalHeaderDragging:$t,modalTitle:It,modalTitleWrap:At,modalTitleContent:Lt,modalSubtitle:St,modalPlace:Ht,modalHeaderActions:Rt,modalBody:zt};var Bt=e.template("<h3>"),qt=e.template("<p>"),ie=e.template("<div>"),Pt=e.template("<div tabindex=-1><div role=dialog aria-modal=true tabindex=-1><div><div></div><div>");const Ft=4,ke='button, a, input, select, textarea, label, summary, [role="button"], [role="tab"], [role="menuitem"], [data-no-drag]';function Nt(n){const f=Qe.useModalDefaults(),l=d.createMemo(()=>!!n.embedded),v=d.createMemo(()=>!!n.closeDisabled),g=d.createMemo(c=>l()||!n.open()?null:c??n.hostDocument??De.getActiveWindow().document,null);let b=!1,k=!1,D=null,i=null;const K=()=>i!=null&&i.isConnected?i.ownerDocument:g(),He=Te.useOverlayRegistration(()=>!l()&&n.open(),"modal",{type:"modal",element:()=>i!=null&&i.isConnected?i:null,document:()=>g()??void 0}),ce=()=>{if(!l())return He.isTopmost();const c=K();return c!==null&&!Te.hasOpenLayerIn(c)};let B;const Q=()=>B==null?void 0:B(),Re=c=>{b=c.target===c.currentTarget&&k},ze=c=>{const w=b;b=!1,w&&c.target===c.currentTarget&&!v()&&Q()},de=c=>{v()||!ce()||(c.stopPropagation(),Q())},Be=c=>{const w=Se(c.key,{confirmOnEnter:!1});if(w==="dismiss"){de(c);return}w==="trap"&&i&&Le(i,c)};let q=null,$=null;const qe=c=>{var w;i=c,(w=n.onDialogMount)==null||w.call(n,c),$=g()??De.getActiveWindow().document,D=$.activeElement,Me.requestOwnerAnimationFrame(c,()=>{c.isConnected&&c.focus()})},Pe=()=>{l()||i===null||(q=Ce.neutralizeBackground(i))},Fe=()=>{var c,w;q==null||q(),q=null,D!=null&&D.isConnected&&typeof D.focus=="function"&&D.focus(),n.focusFallback&&$!==null&&$.activeElement!==D&&((c=n.focusFallback())==null||c.focus()),n.focusFallback&&$!==null&&$.activeElement===$.body&&((w=n.focusFallback())==null||w.focus()),D=null,$=null,i=null},ee=d.createUniqueId(),se=d.createUniqueId(),ue=d.createUniqueId(),Ne=()=>{const c=[...n.subtitle?[se]:[],...n.place?[ue]:[]];return c.length>0?c.join(" "):void 0},me=()=>{d.onMount(Pe),d.onCleanup(Fe),d.onMount(()=>{var a;const o=(a=K())==null?void 0:a.defaultView;if(!o)return;const r=()=>{k=ce()};o.addEventListener("mousedown",r,!0),d.onCleanup(()=>o.removeEventListener("mousedown",r,!0))});const c=()=>{const o=K();return o!==null&&Ce.prefersReducedMotion(o)},[w,We]=d.createSignal(!1);let H,te=!1,fe=!1;const ne=()=>{fe||!te||(fe=!0,H!==void 0&&clearTimeout(H),H=void 0,n.onClose())};B=()=>{if(!(v()||te)){if(te=!0,z(),S(),l()||c()){ne();return}We(!0),H=setTimeout(ne,120)}},d.onCleanup(()=>{B=void 0,H!==void 0&&clearTimeout(H)});const[oe,Ve]=d.createSignal(!l()&&!c());let L;const S=()=>{L!==void 0&&(clearTimeout(L),L=void 0),oe()&&Ve(!1)};d.onMount(()=>{oe()&&(L=setTimeout(S,200))}),d.onCleanup(()=>{L!==void 0&&(clearTimeout(L),L=void 0)});const Ke=o=>{o.target===o.currentTarget&&(w()?ne():S())},[E,ge]=d.createSignal(!1),[P,F]=d.createSignal({x:0,y:0}),[he,ve]=d.createSignal(!1);let I=null,be=null;const Y=d.createMemo(()=>!l()&&(n.allowMaximize??!0)),we=d.createMemo(()=>!l()&&!w()&&!E()&&(n.allowDrag??!0)),ye=d.createMemo(()=>!l()&&!w()&&E()&&Y()&&(n.allowDrag??!0)&&(n.allowMaximizedDrag??f.allowMaximizedDrag??!0));let N=null,W=null,X=!1,U=null,A={x:0,y:0},R={x:0,y:0},j={left:0,top:0,width:0,height:0},ae=0;const z=()=>{N==null||N(),N=null},xe=()=>{if(!Y()||v()||w())return;S();const o=E(),r=typeof(i==null?void 0:i.animate)=="function"&&!c(),a=r&&i?i.getBoundingClientRect():null;if(ge(!o),r&&i&&a&&a.width>0&&a.height>0){const s=i;Me.requestOwnerAnimationFrame(s,()=>{if(i!==s||w())return;const u=s.getBoundingClientRect();if(u.width>0&&u.height>0){const t=a.left-u.left,m=a.top-u.top,y=a.width/u.width,x=a.height/u.height;s.animate([{transformOrigin:"top left",transform:`translate(${t}px, ${m}px) scale(${y}, ${x})`,borderRadius:o?"0px":"var(--radius-xl)"},{transformOrigin:"top left",transform:"translate(0px, 0px) scale(1, 1)",borderRadius:o?"var(--radius-xl)":"0px"}],{duration:o?240:280,easing:"cubic-bezier(0.16, 1, 0.3, 1)",fill:"none"})}})}if(o&&i){const s=i;queueMicrotask(()=>{if(i!==s||E()||w())return;const u=s.ownerDocument.defaultView;if(u===null)return;const t=P(),m=s.getBoundingClientRect(),y={left:m.left-t.x,top:m.top-t.y,width:m.width,height:m.height};F(G(t.x,t.y,y,u,(I==null?void 0:I.offsetHeight)??44,re(u)))})}},re=o=>Oe(o.document,be??void 0),G=(o,r,a,s,u,t)=>{const m=s.innerWidth,y=s.innerHeight,x=a.width>0?a.width:500,T=a.width>0?a.left:(m-x)/2,_=a.height>0?a.top:t+16,p=u>0?u:44,O=Math.min(0,m-x),C=Math.max(0,m-x),J=T+o,Ue=Math.min(Math.max(J,O),C)-T,_e=t,je=Math.max(_e,y-p),Ge=_+r,Je=Math.min(Math.max(Ge,_e),je)-_;return{x:Ue,y:Je}},Ye=o=>{if(o.button!==void 0&&o.button!==0||!we()&&!ye())return;const r=o.target;if(r!=null&&r.closest(ke)||!i)return;S(),z();const a=o.currentTarget,s=o.pointerId??1;let u=!1;try{a.setPointerCapture(s),u=!0}catch{u=!1}X=!0,U=s,A={x:o.clientX,y:o.clientY},R={...P()};const t=a.ownerDocument.defaultView;ae=t===null?0:re(t);const m=i.getBoundingClientRect();W=E()?m:null,j={left:m.left-R.x,top:m.top-R.y,width:m.width,height:m.height},ve(!0);const y=a.ownerDocument,x=p=>{(p.pointerId??1)===s&&pe(p)},T=p=>{(p.pointerId??1)===s&&z()},_=p=>{(p.pointerId??1)===s&&z()};a.addEventListener("lostpointercapture",_),u||(y.addEventListener("pointermove",x),y.addEventListener("pointerup",T),y.addEventListener("pointercancel",T)),N=()=>{W=null,X=!1,U=null,ve(!1);try{a.hasPointerCapture(s)&&a.releasePointerCapture(s)}catch(p){tt.bestEffortFailed("pointer capture may already have been released",p)}a.removeEventListener("lostpointercapture",_),y.removeEventListener("pointermove",x),y.removeEventListener("pointerup",T),y.removeEventListener("pointercancel",T)}},pe=o=>{const r=o.pointerId??1;if(!X||r!==U||!i)return;const a=i.ownerDocument.defaultView;if(a===null)return;const s=I?I.offsetHeight:44;if(W){if(Math.hypot(o.clientX-A.x,o.clientY-A.y)<Ft)return;const _=W;W=null;const p=Math.min(1,Math.max(0,(A.x-_.left)/Math.max(1,_.width))),O=Math.min(Math.max(A.y-_.top,0),s/2);F({x:0,y:0}),ge(!1);const C=i.getBoundingClientRect();j={left:C.left,top:C.top,width:C.width,height:C.height};const J=G(o.clientX-p*C.width-C.left,o.clientY-O-C.top,j,a,s,ae);A={x:o.clientX,y:o.clientY},R=J,F(J);return}const u=o.clientX-A.x,t=o.clientY-A.y,m=R.x+u,y=R.y+t,x=G(m,y,j,a,s,ae);F(x)},Ee=o=>{const r=o.pointerId??1;!X||r!==U||z()},Xe=o=>{if(!Y())return;const r=o.target;r!=null&&r.closest(ke)||xe()};return d.onMount(()=>{var s;const o=(s=K())==null?void 0:s.defaultView;if(!o)return;const r=()=>{if(E()||w()||l()||!i)return;S();const u=P(),t=i.getBoundingClientRect(),m={left:t.left-u.x,top:t.top-u.y,width:t.width,height:t.height},y=I?I.offsetHeight:44,x=G(u.x,u.y,m,o,y,re(o));(x.x!==u.x||x.y!==u.y)&&F(x)};o.addEventListener("resize",r);const a=new MutationObserver(r);a.observe(o.document.documentElement,{attributes:!0,attributeFilter:["style","class"]}),d.onCleanup(()=>{o.removeEventListener("resize",r),a.disconnect(),z()})}),(()=>{var o=Pt(),r=o.firstChild,a=r.firstChild,s=a.firstChild,u=s.nextSibling;return o.$$keydown=t=>{nt.isKey(t,"Escape")&&de(t)},o.$$click=ze,o.$$mousedown=Re,e.use(t=>{be=t},o),e.insert(o,()=>n.decoration,r),r.$$keydown=Be,r.addEventListener("animationend",Ke),r.$$pointerdown=S,e.use(qe,r),e.setAttribute(r,"aria-labelledby",ee),a.$$dblclick=Xe,a.addEventListener("pointercancel",Ee),a.$$pointerup=Ee,a.$$pointermove=pe,a.$$pointerdown=Ye,e.use(t=>{I=t},a),e.insert(s,e.createComponent(d.Show,{get when(){return typeof n.title=="string"},get fallback(){return(()=>{var t=ie();return e.setAttribute(t,"id",ee),e.insert(t,()=>n.title),e.effect(()=>e.className(t,h.modalTitleContent)),t})()},get children(){var t=Bt();return e.setAttribute(t,"id",ee),e.insert(t,()=>n.title),e.effect(()=>e.className(t,h.modalTitle)),t}}),null),e.insert(s,e.createComponent(d.Show,{get when(){return n.subtitle},get children(){var t=qt();return e.setAttribute(t,"id",se),e.insert(t,()=>n.subtitle),e.effect(()=>e.className(t,h.modalSubtitle)),t}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return n.onDetach},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:()=>{var t;return(t=n.onDetach)==null?void 0:t.call(n)},get disabled(){return v()},get title(){return M.t("Open in new window")},get"aria-label"(){return M.t("Open in new window")},get children(){return e.createComponent(Z.VpExternalLink,{})}})}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return Y()},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:xe,get disabled(){return v()},get title(){return e.memo(()=>!!E())()?M.t("Restore"):M.t("Maximize")},get"aria-label"(){return e.memo(()=>!!E())()?M.t("Restore"):M.t("Maximize")},get children(){return e.createComponent(d.Show,{get when(){return E()},get fallback(){return e.createComponent(Z.VpArrowsMaximize,{})},get children(){return e.createComponent(Z.VpArrowsMinimize,{})}})}})}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return!n.hideClose},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:Q,get disabled(){return v()},get title(){return M.t("Close")},get"aria-label"(){return M.t("Close")},get children(){return e.createComponent(Z.VpClose,{})}})}}),null),e.insert(r,e.createComponent(d.Show,{get when(){return n.place},children:t=>(()=>{var m=ie();return e.insert(m,e.createComponent($e,{id:ue,get place(){return t()}})),e.effect(()=>e.className(m,h.modalPlace)),m})()}),null),e.insert(r,e.createComponent(et.OverlayScrollArea,{get rootClass(){return h.modalBodyScroll},get viewportClass(){return h.modalBody},get children(){return n.children}}),null),e.insert(r,e.createComponent(d.Show,{get when(){return n.footer},get children(){var t=ie();return e.insert(t,()=>n.footer),e.effect(()=>e.className(t,h.modalFooter)),t}}),null),e.effect(t=>{var m=`${l()?h.modalOverlayEmbedded:h.modalOverlay} ${E()?h.modalOverlayMaximized:""} ${w()?h.modalOverlayExiting:""}`,y={...n.transparentBackdrop?{background:"transparent"}:{},...n.maximizeInset!==void 0?{"--modal-maximize-inset":n.maximizeInset}:{}},x=`${h.modal} ${l()?h.modalEmbedded:""} ${oe()&&!w()?h.modalEntering:""} ${E()?h.modalMaximized:""} ${he()?h.modalDragged:""} ${w()?h.modalExiting:""}`,T={...l()?void 0:{"max-width":E()?"100%":n.maxWidth??"32rem"},...n.dialogStyle,"--modal-drag-x":`${E()||l()?0:P().x}px`,"--modal-drag-y":`${E()||l()?0:P().y}px`},_=Ne(),p=`${h.modalHeader} ${we()||ye()?he()?h.modalHeaderDragging:h.modalHeaderDraggable:""}`,O=h.modalTitleWrap,C=h.modalHeaderActions;return m!==t.e&&e.className(o,t.e=m),t.t=e.style(o,y,t.t),x!==t.a&&e.className(r,t.a=x),t.o=e.style(r,T,t.o),_!==t.i&&e.setAttribute(r,"aria-describedby",t.i=_),p!==t.n&&e.className(a,t.n=p),O!==t.s&&e.className(s,t.s=O),C!==t.h&&e.className(u,t.h=C),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),o})()};return e.createComponent(d.Show,{get when(){return!l()},get fallback(){return me()},get children(){return e.createComponent(d.Show,{get when(){return g()},children:c=>e.createComponent(e.Portal,{get mount(){return c().body},get children(){return me()}})})}})}e.delegateEvents(["mousedown","click","keydown","pointerdown","pointermove","pointerup","dblclick"]);exports.ActionPlaceRow=$e;exports.Modal=Nt;exports.collectFocusableElements=Ae;exports.modalTitlebarHeight=Oe;exports.resolveDialogShellKeyIntent=Se;exports.resolveModalFocusTrapTarget=Ie;exports.trapTabFocusWithin=Le;
|
|
1
|
+
"use strict";const e=require("solid-js/web"),d=require("solid-js"),Ce=require("./prefersReducedMotion-DYR56SKZ.cjs"),Ze=require("./mainRealmDom-BcPuVvcy.cjs"),Qe=require("./kitHost-u0-mKvEK.cjs"),Z=require("@vokril/icons"),le=require("./Button-D5Ihf90u.cjs"),et=require("./OverlayScrollArea-Cr0VAApT.cjs"),M=require("./i18n-DrmazJQC.cjs"),De=require("./window-_BfSgFGO.cjs"),Te=require("./overlayStack-eD8AmuwY.cjs"),Me=require("./ownerAnimationFrame-T6jf6qYC.cjs"),tt=require("./errorHandler-DoDAPpv2.cjs"),nt=require("./keys-GMxY2wcl.cjs"),ot="2.875rem",at="data-modal-titlebar-probe";function Oe(n,f){const l=Ze.createElement("div");l.setAttribute(at,""),l.style.cssText=`position:absolute;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:var(--modal-maximize-inset, ${ot})`,(f!=null&&f.isConnected?f:n.body??n.documentElement).append(l);try{return l.getBoundingClientRect().height}finally{l.remove()}}const rt="vk_place_5Cs4j",lt="vk_placeLabel_ZwMrw",it="vk_placeValue_EWbq8",V={place:rt,placeLabel:lt,placeValue:it};var ct=e.template("<dl data-dangerous-place><dt></dt><dd data-place=connection>"),dt=e.template("<dt>"),st=e.template("<dd data-place=database>");function $e(n){return(()=>{var f=ct(),l=f.firstChild,v=l.nextSibling;return e.insert(l,()=>M.t("Connection")),e.insert(v,()=>n.place.connection),e.insert(f,e.createComponent(d.Show,{get when(){return n.place.database},children:g=>[(()=>{var b=dt();return e.insert(b,()=>M.t("Database")),e.effect(()=>e.className(b,V.placeLabel)),b})(),(()=>{var b=st();return e.insert(b,g),e.effect(()=>e.className(b,V.placeValue)),b})()]}),null),e.effect(g=>{var b=n.id,k=V.place,D=V.placeLabel,i=V.placeValue;return b!==g.e&&e.setAttribute(f,"id",g.e=b),k!==g.t&&e.className(f,g.t=k),D!==g.a&&e.className(l,g.a=D),i!==g.o&&e.className(v,g.o=i),g},{e:void 0,t:void 0,a:void 0,o:void 0}),f})()}const ut="Tab";function Ie(n,f){if(n!==ut)return null;const{focusableCount:l,activeIndex:v,shiftKey:g}=f;if(l<=0)return null;const b=0,k=l-1;return v<0?g?k:b:g?v===b?k:null:v===k?b:null}const mt=["a[href]","area[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function Ae(n){const f=Array.from(n.querySelectorAll(mt)),l=n.ownerDocument;return f.filter(v=>v.getAttribute("aria-hidden")!=="true"&&(v.offsetParent!==null||v===l.documentElement))}function Le(n,f){var b;const l=Ae(n),v=l.indexOf(n.ownerDocument.activeElement),g=Ie(f.key,{focusableCount:l.length,activeIndex:v,shiftKey:f.shiftKey});return g===null?!1:(f.preventDefault(),(b=l[g])==null||b.focus(),!0)}const ft="Tab",gt="Escape",ht="Enter";function Se(n,f){return n===gt?"dismiss":n===ht&&f.confirmOnEnter?"confirm":n===ft?"trap":"none"}const vt="vk_modalOverlay_53kKZ",bt="vk_modalOverlayExiting_x-xU-",wt="vk_modal_ZqkLW",yt="vk_modalEntering_hQj2V",xt="vk_modalExiting_qiJ02",pt="vk_modalDragged_tiDIq",Et="vk_modalOverlayMaximized_00k68",_t="vk_modalMaximized_iL0gq",Ct="vk_modalOverlayEmbedded_kz22G",Dt="vk_modalEmbedded_uaq4K",Tt="vk_modalHeader_fiwar",Mt="vk_modalFooter_PqFE4",kt="vk_modalBodyScroll_XIHnt",Ot="vk_modalHeaderDraggable_XVN7l",$t="vk_modalHeaderDragging_AfuEb",It="vk_modalTitle_jdWEj vk_titleLg_Iswm3",At="vk_modalTitleWrap_IW3-y",Lt="vk_modalTitleContent_x5Np7",St="vk_modalSubtitle_Is6W0",Ht="vk_modalPlace_3FEgX",Rt="vk_modalHeaderActions_uUFCL",zt="vk_modalBody_EJ4Kr",h={modalOverlay:vt,modalOverlayExiting:bt,modal:wt,modalEntering:yt,modalExiting:xt,modalDragged:pt,modalOverlayMaximized:Et,modalMaximized:_t,modalOverlayEmbedded:Ct,modalEmbedded:Dt,modalHeader:Tt,modalFooter:Mt,modalBodyScroll:kt,modalHeaderDraggable:Ot,modalHeaderDragging:$t,modalTitle:It,modalTitleWrap:At,modalTitleContent:Lt,modalSubtitle:St,modalPlace:Ht,modalHeaderActions:Rt,modalBody:zt};var Bt=e.template("<h3>"),qt=e.template("<p>"),ie=e.template("<div>"),Pt=e.template("<div tabindex=-1><div role=dialog aria-modal=true tabindex=-1><div><div></div><div>");const Ft=4,ke='button, a, input, select, textarea, label, summary, [role="button"], [role="tab"], [role="menuitem"], [data-no-drag]';function Nt(n){const f=Qe.useModalDefaults(),l=d.createMemo(()=>!!n.embedded),v=d.createMemo(()=>!!n.closeDisabled),g=d.createMemo(c=>l()||!n.open()?null:c??n.hostDocument??De.getActiveWindow().document,null);let b=!1,k=!1,D=null,i=null;const K=()=>i!=null&&i.isConnected?i.ownerDocument:g(),He=Te.useOverlayRegistration(()=>!l()&&n.open(),"modal",{type:"modal",element:()=>i!=null&&i.isConnected?i:null,document:()=>g()??void 0}),ce=()=>{if(!l())return He.isTopmost();const c=K();return c!==null&&!Te.hasOpenLayerIn(c)};let B;const Q=()=>B==null?void 0:B(),Re=c=>{b=c.target===c.currentTarget&&k},ze=c=>{const w=b;b=!1,w&&c.target===c.currentTarget&&!v()&&Q()},de=c=>{v()||!ce()||(c.stopPropagation(),Q())},Be=c=>{const w=Se(c.key,{confirmOnEnter:!1});if(w==="dismiss"){de(c);return}w==="trap"&&i&&Le(i,c)};let q=null,$=null;const qe=c=>{var w;i=c,(w=n.onDialogMount)==null||w.call(n,c),$=g()??De.getActiveWindow().document,D=$.activeElement,Me.requestOwnerAnimationFrame(c,()=>{c.isConnected&&c.focus()})},Pe=()=>{l()||i===null||(q=Ce.neutralizeBackground(i))},Fe=()=>{var c,w;q==null||q(),q=null,D!=null&&D.isConnected&&typeof D.focus=="function"&&D.focus(),n.focusFallback&&$!==null&&$.activeElement!==D&&((c=n.focusFallback())==null||c.focus()),n.focusFallback&&$!==null&&$.activeElement===$.body&&((w=n.focusFallback())==null||w.focus()),D=null,$=null,i=null},ee=d.createUniqueId(),se=d.createUniqueId(),ue=d.createUniqueId(),Ne=()=>{const c=[...n.subtitle?[se]:[],...n.place?[ue]:[]];return c.length>0?c.join(" "):void 0},me=()=>{d.onMount(Pe),d.onCleanup(Fe),d.onMount(()=>{var a;const o=(a=K())==null?void 0:a.defaultView;if(!o)return;const r=()=>{k=ce()};o.addEventListener("mousedown",r,!0),d.onCleanup(()=>o.removeEventListener("mousedown",r,!0))});const c=()=>{const o=K();return o!==null&&Ce.prefersReducedMotion(o)},[w,We]=d.createSignal(!1);let H,te=!1,fe=!1;const ne=()=>{fe||!te||(fe=!0,H!==void 0&&clearTimeout(H),H=void 0,n.onClose())};B=()=>{if(!(v()||te)){if(te=!0,z(),S(),l()||c()){ne();return}We(!0),H=setTimeout(ne,120)}},d.onCleanup(()=>{B=void 0,H!==void 0&&clearTimeout(H)});const[oe,Ve]=d.createSignal(!l()&&!c());let L;const S=()=>{L!==void 0&&(clearTimeout(L),L=void 0),oe()&&Ve(!1)};d.onMount(()=>{oe()&&(L=setTimeout(S,200))}),d.onCleanup(()=>{L!==void 0&&(clearTimeout(L),L=void 0)});const Ke=o=>{o.target===o.currentTarget&&(w()?ne():S())},[E,ge]=d.createSignal(!1),[P,F]=d.createSignal({x:0,y:0}),[he,ve]=d.createSignal(!1);let I=null,be=null;const Y=d.createMemo(()=>!l()&&(n.allowMaximize??!0)),we=d.createMemo(()=>!l()&&!w()&&!E()&&(n.allowDrag??!0)),ye=d.createMemo(()=>!l()&&!w()&&E()&&Y()&&(n.allowDrag??!0)&&(n.allowMaximizedDrag??f.allowMaximizedDrag??!0));let N=null,W=null,X=!1,U=null,A={x:0,y:0},R={x:0,y:0},j={left:0,top:0,width:0,height:0},ae=0;const z=()=>{N==null||N(),N=null},xe=()=>{if(!Y()||v()||w())return;S();const o=E(),r=typeof(i==null?void 0:i.animate)=="function"&&!c(),a=r&&i?i.getBoundingClientRect():null;if(ge(!o),r&&i&&a&&a.width>0&&a.height>0){const s=i;Me.requestOwnerAnimationFrame(s,()=>{if(i!==s||w())return;const u=s.getBoundingClientRect();if(u.width>0&&u.height>0){const t=a.left-u.left,m=a.top-u.top,y=a.width/u.width,x=a.height/u.height;s.animate([{transformOrigin:"top left",transform:`translate(${t}px, ${m}px) scale(${y}, ${x})`,borderRadius:o?"0px":"var(--radius-xl)"},{transformOrigin:"top left",transform:"translate(0px, 0px) scale(1, 1)",borderRadius:o?"var(--radius-xl)":"0px"}],{duration:o?240:280,easing:"cubic-bezier(0.16, 1, 0.3, 1)",fill:"none"})}})}if(o&&i){const s=i;queueMicrotask(()=>{if(i!==s||E()||w())return;const u=s.ownerDocument.defaultView;if(u===null)return;const t=P(),m=s.getBoundingClientRect(),y={left:m.left-t.x,top:m.top-t.y,width:m.width,height:m.height};F(G(t.x,t.y,y,u,(I==null?void 0:I.offsetHeight)??44,re(u)))})}},re=o=>Oe(o.document,be??void 0),G=(o,r,a,s,u,t)=>{const m=s.innerWidth,y=s.innerHeight,x=a.width>0?a.width:500,T=a.width>0?a.left:(m-x)/2,_=a.height>0?a.top:t+16,p=u>0?u:44,O=Math.min(0,m-x),C=Math.max(0,m-x),J=T+o,Ue=Math.min(Math.max(J,O),C)-T,_e=t,je=Math.max(_e,y-p),Ge=_+r,Je=Math.min(Math.max(Ge,_e),je)-_;return{x:Ue,y:Je}},Ye=o=>{if(o.button!==void 0&&o.button!==0||!we()&&!ye())return;const r=o.target;if(r!=null&&r.closest(ke)||!i)return;S(),z();const a=o.currentTarget,s=o.pointerId??1;let u=!1;try{a.setPointerCapture(s),u=!0}catch{u=!1}X=!0,U=s,A={x:o.clientX,y:o.clientY},R={...P()};const t=a.ownerDocument.defaultView;ae=t===null?0:re(t);const m=i.getBoundingClientRect();W=E()?m:null,j={left:m.left-R.x,top:m.top-R.y,width:m.width,height:m.height},ve(!0);const y=a.ownerDocument,x=p=>{(p.pointerId??1)===s&&pe(p)},T=p=>{(p.pointerId??1)===s&&z()},_=p=>{(p.pointerId??1)===s&&z()};a.addEventListener("lostpointercapture",_),u||(y.addEventListener("pointermove",x),y.addEventListener("pointerup",T),y.addEventListener("pointercancel",T)),N=()=>{W=null,X=!1,U=null,ve(!1);try{a.hasPointerCapture(s)&&a.releasePointerCapture(s)}catch(p){tt.bestEffortFailed("pointer capture may already have been released",p)}a.removeEventListener("lostpointercapture",_),y.removeEventListener("pointermove",x),y.removeEventListener("pointerup",T),y.removeEventListener("pointercancel",T)}},pe=o=>{const r=o.pointerId??1;if(!X||r!==U||!i)return;const a=i.ownerDocument.defaultView;if(a===null)return;const s=I?I.offsetHeight:44;if(W){if(Math.hypot(o.clientX-A.x,o.clientY-A.y)<Ft)return;const _=W;W=null;const p=Math.min(1,Math.max(0,(A.x-_.left)/Math.max(1,_.width))),O=Math.min(Math.max(A.y-_.top,0),s/2);F({x:0,y:0}),ge(!1);const C=i.getBoundingClientRect();j={left:C.left,top:C.top,width:C.width,height:C.height};const J=G(o.clientX-p*C.width-C.left,o.clientY-O-C.top,j,a,s,ae);A={x:o.clientX,y:o.clientY},R=J,F(J);return}const u=o.clientX-A.x,t=o.clientY-A.y,m=R.x+u,y=R.y+t,x=G(m,y,j,a,s,ae);F(x)},Ee=o=>{const r=o.pointerId??1;!X||r!==U||z()},Xe=o=>{if(!Y())return;const r=o.target;r!=null&&r.closest(ke)||xe()};return d.onMount(()=>{var s;const o=(s=K())==null?void 0:s.defaultView;if(!o)return;const r=()=>{if(E()||w()||l()||!i)return;S();const u=P(),t=i.getBoundingClientRect(),m={left:t.left-u.x,top:t.top-u.y,width:t.width,height:t.height},y=I?I.offsetHeight:44,x=G(u.x,u.y,m,o,y,re(o));(x.x!==u.x||x.y!==u.y)&&F(x)};o.addEventListener("resize",r);const a=new MutationObserver(r);a.observe(o.document.documentElement,{attributes:!0,attributeFilter:["style","class"]}),d.onCleanup(()=>{o.removeEventListener("resize",r),a.disconnect(),z()})}),(()=>{var o=Pt(),r=o.firstChild,a=r.firstChild,s=a.firstChild,u=s.nextSibling;return o.$$keydown=t=>{nt.isKey(t,"Escape")&&de(t)},o.$$click=ze,o.$$mousedown=Re,e.use(t=>{be=t},o),e.insert(o,()=>n.decoration,r),r.$$keydown=Be,r.addEventListener("animationend",Ke),r.$$pointerdown=S,e.use(qe,r),e.setAttribute(r,"aria-labelledby",ee),a.$$dblclick=Xe,a.addEventListener("pointercancel",Ee),a.$$pointerup=Ee,a.$$pointermove=pe,a.$$pointerdown=Ye,e.use(t=>{I=t},a),e.insert(s,e.createComponent(d.Show,{get when(){return typeof n.title=="string"},get fallback(){return(()=>{var t=ie();return e.setAttribute(t,"id",ee),e.insert(t,()=>n.title),e.effect(()=>e.className(t,h.modalTitleContent)),t})()},get children(){var t=Bt();return e.setAttribute(t,"id",ee),e.insert(t,()=>n.title),e.effect(()=>e.className(t,h.modalTitle)),t}}),null),e.insert(s,e.createComponent(d.Show,{get when(){return n.subtitle},get children(){var t=qt();return e.setAttribute(t,"id",se),e.insert(t,()=>n.subtitle),e.effect(()=>e.className(t,h.modalSubtitle)),t}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return n.onDetach},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:()=>{var t;return(t=n.onDetach)==null?void 0:t.call(n)},get disabled(){return v()},get title(){return M.t("Open in new window")},get"aria-label"(){return M.t("Open in new window")},get children(){return e.createComponent(Z.VpExternalLink,{})}})}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return Y()},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:xe,get disabled(){return v()},get title(){return e.memo(()=>!!E())()?M.t("Restore"):M.t("Maximize")},get"aria-label"(){return e.memo(()=>!!E())()?M.t("Restore"):M.t("Maximize")},get children(){return e.createComponent(d.Show,{get when(){return E()},get fallback(){return e.createComponent(Z.VpArrowsMaximize,{})},get children(){return e.createComponent(Z.VpArrowsMinimize,{})}})}})}}),null),e.insert(u,e.createComponent(d.Show,{get when(){return!n.hideClose},get children(){return e.createComponent(le.Button,{size:"sm",variant:"ghost",iconOnly:!0,onClick:Q,get disabled(){return v()},get title(){return M.t("Close")},get"aria-label"(){return M.t("Close")},get children(){return e.createComponent(Z.VpClose,{})}})}}),null),e.insert(r,e.createComponent(d.Show,{get when(){return n.place},children:t=>(()=>{var m=ie();return e.insert(m,e.createComponent($e,{id:ue,get place(){return t()}})),e.effect(()=>e.className(m,h.modalPlace)),m})()}),null),e.insert(r,e.createComponent(et.OverlayScrollArea,{get rootClass(){return h.modalBodyScroll},get viewportClass(){return h.modalBody},get children(){return n.children}}),null),e.insert(r,e.createComponent(d.Show,{get when(){return n.footer},get children(){var t=ie();return e.insert(t,()=>n.footer),e.effect(()=>e.className(t,h.modalFooter)),t}}),null),e.effect(t=>{var m=`${l()?h.modalOverlayEmbedded:h.modalOverlay} ${E()?h.modalOverlayMaximized:""} ${w()?h.modalOverlayExiting:""}`,y={...n.transparentBackdrop?{background:"transparent"}:{},...n.maximizeInset!==void 0?{"--modal-maximize-inset":n.maximizeInset}:{}},x=`${h.modal} ${l()?h.modalEmbedded:""} ${oe()&&!w()?h.modalEntering:""} ${E()?h.modalMaximized:""} ${he()?h.modalDragged:""} ${w()?h.modalExiting:""}`,T={...l()?void 0:{"max-width":E()?"100%":n.maxWidth??"32rem"},...n.dialogStyle,"--modal-drag-x":`${E()||l()?0:P().x}px`,"--modal-drag-y":`${E()||l()?0:P().y}px`},_=Ne(),p=`${h.modalHeader} ${we()||ye()?he()?h.modalHeaderDragging:h.modalHeaderDraggable:""}`,O=h.modalTitleWrap,C=h.modalHeaderActions;return m!==t.e&&e.className(o,t.e=m),t.t=e.style(o,y,t.t),x!==t.a&&e.className(r,t.a=x),t.o=e.style(r,T,t.o),_!==t.i&&e.setAttribute(r,"aria-describedby",t.i=_),p!==t.n&&e.className(a,t.n=p),O!==t.s&&e.className(s,t.s=O),C!==t.h&&e.className(u,t.h=C),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),o})()};return e.createComponent(d.Show,{get when(){return!l()},get fallback(){return me()},get children(){return e.createComponent(d.Show,{get when(){return g()},children:c=>e.createComponent(e.Portal,{get mount(){return c().body},get children(){return me()}})})}})}e.delegateEvents(["mousedown","click","keydown","pointerdown","pointermove","pointerup","dblclick"]);exports.ActionPlaceRow=$e;exports.Modal=Nt;exports.collectFocusableElements=Ae;exports.modalTitlebarHeight=Oe;exports.resolveDialogShellKeyIntent=Se;exports.resolveModalFocusTrapTarget=Ie;exports.trapTabFocusWithin=Le;
|
|
@@ -4,9 +4,9 @@ import { p as at, n as rt } from "./prefersReducedMotion-qcGrKv14.js";
|
|
|
4
4
|
import { c as lt } from "./mainRealmDom-DydRT2Us.js";
|
|
5
5
|
import { a as it } from "./kitHost-BMMWpU4w.js";
|
|
6
6
|
import { VpExternalLink as dt, VpArrowsMinimize as st, VpArrowsMaximize as ct, VpClose as ut } from "@vokril/icons";
|
|
7
|
-
import { B as he } from "./Button-
|
|
7
|
+
import { B as he } from "./Button-DDkZzT-k.js";
|
|
8
8
|
import { O as mt } from "./OverlayScrollArea-CrrPFLq9.js";
|
|
9
|
-
import { t as $ } from "./i18n-
|
|
9
|
+
import { t as $ } from "./i18n-BJiKwNyr.js";
|
|
10
10
|
import { g as Ae } from "./window-CUK6x8Pj.js";
|
|
11
11
|
import { u as ft, h as gt } from "./overlayStack-Bj6Lg1Rm.js";
|
|
12
12
|
import { r as Be } from "./ownerAnimationFrame-DzFcMSmn.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { insert as v, createComponent as h, effect as f, className as m, setAttribute as b, template as w, memo as L, style as $e, delegateEvents as Ce, setStyleProperty as ye, classList as Ee } from "solid-js/web";
|
|
2
2
|
import { Show as S, splitProps as Be, createSignal as M, createEffect as we, createMemo as x, For as Ae, onCleanup as X, Switch as De, Match as q, onMount as p, ErrorBoundary as Ie } from "solid-js";
|
|
3
|
-
import { t as $, g as We, D as Te, i as xe, S as Me, m as Le } from "./i18n-
|
|
3
|
+
import { t as $, g as We, D as Te, i as xe, S as Me, m as Le } from "./i18n-BJiKwNyr.js";
|
|
4
4
|
import { VpClose as Re, VpAlertTriangle as Ne } from "@vokril/icons";
|
|
5
|
-
import { C as He } from "./CopyButton-
|
|
5
|
+
import { C as He } from "./CopyButton-gHxA-WL_.js";
|
|
6
6
|
import { B as Pe } from "./Badge-BguTObKo.js";
|
|
7
|
-
import { S as Fe, B as U } from "./Button-
|
|
7
|
+
import { S as Fe, B as U } from "./Button-DDkZzT-k.js";
|
|
8
8
|
import { A as Ge } from "./Alert-DyBaU25r.js";
|
|
9
9
|
import { i as Ke } from "./isOneOf-Dtomuazg.js";
|
|
10
10
|
import { u as Q } from "./kitHost-BMMWpU4w.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),m=require("solid-js"),y=require("./i18n-D3s-a2a0.cjs"),ae=require("@vokril/icons"),fe=require("./CopyButton-Dnd8_2Lj.cjs"),be=require("./Badge-BXLrs2z-.cjs"),x=require("./Button-lMUW5P3O.cjs"),ke=require("./Alert-DCIet3Ol.cjs"),ye=require("./isOneOf-9EXOSYJu.cjs"),P=require("./kitHost-u0-mKvEK.cjs"),we=require("./notificationCatalog-DmwTAO09.cjs"),k=require("./errorHandler-DoDAPpv2.cjs"),Se=require("./mainRealmDom-BcPuVvcy.cjs"),oe=require("./windowRegistry-CxXtP-iY.cjs"),_e="vk_container_dk7eW",Ce="vk_dot_meV8k",ze="vk_sizeSm_ELTA-",$e="vk_sizeMd_o2pxF",Ae="vk_sizeLg_mLQkz",Ee="vk_statusConnected_qR7ng",Be="vk_statusDisconnected_hYp1M",Ne="vk_statusConnecting_hnYJK",Me="vk_statusError_IO6jD",De="vk_statusWarning_Woyhs",Te="vk_statusIdle_YHwe5",Ie="vk_pulse_1cb44",We="vk_label_x4Bnj",_={container:_e,dot:Ce,sizeSm:ze,sizeMd:$e,sizeLg:Ae,statusConnected:Ee,statusDisconnected:Be,statusConnecting:Ne,statusError:Me,statusWarning:De,statusIdle:Te,pulse:Ie,label:We};var xe=t.template("<span>"),pe=t.template("<span role=status><span aria-hidden=true>");const Le={connected:_.statusConnected,disconnected:_.statusDisconnected,connecting:_.statusConnecting,error:_.statusError,warning:_.statusWarning,idle:_.statusIdle},Re={connected:"Connected",disconnected:"Disconnected",connecting:"Connecting…",error:"Error",warning:"Warning",idle:"Idle"},He={sm:_.sizeSm,md:_.sizeMd,lg:_.sizeLg};function Pe(e){const n=()=>e.status,i=()=>e.size??"md",c=()=>e.pulse??e.status==="connecting";return(()=>{var r=pe(),o=r.firstChild;return t.insert(r,t.createComponent(m.Show,{get when(){return e.label},get children(){var a=xe();return t.insert(a,()=>e.label),t.effect(()=>t.className(a,_.label)),a}}),null),t.effect(a=>{var u=`${_.container} ${e.class??""}`,s=e.ariaLabel??e.label??y.t(Re[n()]),d=`${_.dot} ${He[i()]} ${Le[n()]} ${c()?_.pulse:""}`;return u!==a.e&&t.className(r,a.e=u),s!==a.t&&t.setAttribute(r,"aria-label",a.t=s),d!==a.a&&t.className(o,a.a=d),a},{e:void 0,t:void 0,a:void 0}),r})()}const Fe="vk_container_EODau",Ge="vk_svg_90HKS",Ke="vk_track_txXSe",Oe="vk_indicator_ZoP--",Ue="vk_toneBrand_qzK2M",qe="vk_toneSuccess_sQawq",je="vk_toneWarning_STrWD",Ve="vk_toneDanger_s2Owu",Je="vk_toneNeutral_oQCmv",Ze="vk_indeterminate_R-OYw",Ye="vk_valueText_qasUM",z={container:Fe,svg:Ge,track:Ke,indicator:Oe,toneBrand:Ue,toneSuccess:qe,toneWarning:je,toneDanger:Ve,toneNeutral:Je,indeterminate:Ze,valueText:Ye};var Xe=t.template("<span>%"),Qe=t.template("<div role=progressbar><svg><circle></circle><circle>");const et={brand:z.toneBrand,success:z.toneSuccess,warning:z.toneWarning,danger:z.toneDanger,neutral:z.toneNeutral},tt={xs:{dimension:16,thickness:2},sm:{dimension:24,thickness:2.5},md:{dimension:36,thickness:3.5},lg:{dimension:48,thickness:4}};function nt(e){const n=()=>e.indeterminate===!0||e.value===void 0,i=()=>{if(typeof e.size=="number")return{dimension:e.size,thickness:e.thickness??Math.max(2,Math.round(e.size/10))};const s=tt[e.size??"md"];return{dimension:s.dimension,thickness:e.thickness??s.thickness}},c=()=>{if(n())return 0;const s=e.max??100;return s<=0?0:Math.max(0,Math.min(100,(e.value??0)/s*100))},r=()=>{const s=i();return(s.dimension-s.thickness)/2},o=()=>2*Math.PI*r(),a=()=>{const s=o(),d=c();return s-d/100*s},u=()=>et[e.tone??"brand"];return(()=>{var s=Qe(),d=s.firstChild,h=d.firstChild,v=h.nextSibling;return t.insert(s,t.createComponent(m.Show,{get when(){return t.memo(()=>!!(e.showValueText&&!n()))()&&i().dimension>=32},get children(){var l=Xe(),b=l.firstChild;return t.insert(l,()=>Math.round(c()),b),t.effect(()=>t.className(l,z.valueText)),l}}),null),t.effect(l=>{var b=`${z.container} ${n()?z.indeterminate:""} ${e.class??""}`,C=n()?void 0:Math.round(c()),f=n()?void 0:0,g=n()?void 0:100,N=n()?"true":void 0,M=e.ariaLabel??"Loading progress",D=z.svg,T=i().dimension,F=i().dimension,G=`0 0 ${i().dimension} ${i().dimension}`,K=z.track,O=i().dimension/2,U=i().dimension/2,q=r(),j=i().thickness,V=`${z.indicator} ${u()}`,J=i().dimension/2,Z=i().dimension/2,Y=r(),X=i().thickness,Q=n()?void 0:`${o()}px`,ee=n()?void 0:`${a()}px`;return b!==l.e&&t.className(s,l.e=b),C!==l.t&&t.setAttribute(s,"aria-valuenow",l.t=C),f!==l.a&&t.setAttribute(s,"aria-valuemin",l.a=f),g!==l.o&&t.setAttribute(s,"aria-valuemax",l.o=g),N!==l.i&&t.setAttribute(s,"aria-busy",l.i=N),M!==l.n&&t.setAttribute(s,"aria-label",l.n=M),D!==l.s&&t.setAttribute(d,"class",l.s=D),T!==l.h&&t.setAttribute(d,"width",l.h=T),F!==l.r&&t.setAttribute(d,"height",l.r=F),G!==l.d&&t.setAttribute(d,"viewBox",l.d=G),K!==l.l&&t.setAttribute(h,"class",l.l=K),O!==l.u&&t.setAttribute(h,"cx",l.u=O),U!==l.c&&t.setAttribute(h,"cy",l.c=U),q!==l.w&&t.setAttribute(h,"r",l.w=q),j!==l.m&&t.setAttribute(h,"stroke-width",l.m=j),V!==l.f&&t.setAttribute(v,"class",l.f=V),J!==l.y&&t.setAttribute(v,"cx",l.y=J),Z!==l.g&&t.setAttribute(v,"cy",l.g=Z),Y!==l.p&&t.setAttribute(v,"r",l.p=Y),X!==l.b&&t.setAttribute(v,"stroke-width",l.b=X),Q!==l.T&&t.setAttribute(v,"stroke-dasharray",l.T=Q),ee!==l.A&&t.setAttribute(v,"stroke-dashoffset",l.A=ee),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0}),s})()}const rt="vk_skeleton_ukIlo",it="vk_line_57IJG",at="vk_block_bz9pB",ot="vk_circle_gna4J",L={skeleton:rt,line:it,block:at,circle:ot};var st=t.template("<span aria-hidden=true>");const lt={line:L.line,block:L.block,circle:L.circle};function $(e){const n=()=>{const i={};return e.width!==void 0&&(i.width=e.width),e.height!==void 0&&(i.height=e.height),i};return(()=>{var i=st();return t.effect(c=>{var r=`${L.skeleton} ${lt[e.variant??"line"]} ${e.class??""}`,o=n();return r!==c.e&&t.className(i,c.e=r),c.t=t.style(i,o,c.t),c},{e:void 0,t:void 0}),i})()}const ct="vk_root_JDCqC",dt="vk_clickable_CJfe8",ut="vk_disabled_3ZHI-",mt="vk_sizeSm_6xtuP",ht="vk_sizeMd_n-7Ks",vt="vk_variantNeutral_yBs2F",gt="vk_variantBrand_2AgQe",ft="vk_variantSuccess_vrcZo",bt="vk_variantError_kEX-j",kt="vk_variantWarning_4KLp1",yt="vk_variantInfo_XaHVV",wt="vk_variantCustom_0AFRs",St="vk_active_MiCEd",_t="vk_icon_yhIsi",Ct="vk_label_zhdE4",zt="vk_remove_RmvzI",w={root:ct,clickable:dt,disabled:ut,sizeSm:mt,sizeMd:ht,variantNeutral:vt,variantBrand:gt,variantSuccess:ft,variantError:bt,variantWarning:kt,variantInfo:yt,variantCustom:wt,active:St,icon:_t,label:Ct,remove:zt};var $t=t.template("<span aria-hidden=true>"),te=t.template("<span>"),ne=t.template("<button type=button>");const At={neutral:w.variantNeutral,brand:w.variantBrand,success:w.variantSuccess,error:w.variantError,warning:w.variantWarning,info:w.variantInfo,custom:w.variantCustom},Et={sm:w.sizeSm,md:w.sizeMd};function Bt(e){const[n]=m.splitProps(e,["variant","size","active","disabled","leadingIcon","removable","onRemove","removeAriaLabel","class","children"]),i=()=>{const r=n.variant??"neutral",o=n.size??"sm";return[w.root,At[r],Et[o],e.clickable?w.clickable:void 0,n.active?w.active:void 0,n.disabled?w.disabled:void 0,n.class].filter(u=>!!u).join(" ")},c=[t.createComponent(m.Show,{get when(){return n.leadingIcon!==void 0},get children(){var r=$t();return t.insert(r,()=>n.leadingIcon),t.effect(()=>t.className(r,w.icon)),r}}),t.createComponent(m.Show,{get when(){return n.children!==void 0},get children(){var r=te();return t.insert(r,()=>n.children),t.effect(()=>t.className(r,w.label)),r}}),t.createComponent(m.Show,{get when(){return n.removable===!0},get children(){var r=ne();return r.$$click=o=>{var a;o.stopPropagation(),(a=n.onRemove)==null||a.call(n)},t.insert(r,t.createComponent(ae.VpClose,{"aria-hidden":"true"})),t.effect(o=>{var a=w.remove,u=n.disabled,s=n.removeAriaLabel??"Remove";return a!==o.e&&t.className(r,o.e=a),u!==o.t&&(r.disabled=o.t=u),s!==o.a&&t.setAttribute(r,"aria-label",o.a=s),o},{e:void 0,t:void 0,a:void 0}),r}})];return e.clickable?(()=>{var r=ne();return r.$$click=o=>e.onClick(o),t.insert(r,c),t.effect(o=>{var a=i(),u=n.disabled,s=e.ariaPressed,d=e.ariaLabel,h=e.title;return a!==o.e&&t.className(r,o.e=a),u!==o.t&&(r.disabled=o.t=u),s!==o.a&&t.setAttribute(r,"aria-pressed",o.a=s),d!==o.o&&t.setAttribute(r,"aria-label",o.o=d),h!==o.i&&t.setAttribute(r,"title",o.i=h),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})():(()=>{var r=te();return t.insert(r,c),t.effect(()=>t.className(r,i())),r})()}t.delegateEvents(["click"]);const Nt="vk_avatar_EGGzR",Mt="vk_neutralFallback_oBOgs",Dt="vk_shapeCircle_7Upuz",Tt="vk_shapeRounded_hWGoh",It="vk_shapeSquare_KXCG7",Wt="vk_sizeXs_edqAn",xt="vk_sizeSm_Mh1j-",pt="vk_sizeMd_3Gp-H",Lt="vk_sizeLg_qg5bn",Rt="vk_sizeXl_wrWtn",Ht="vk_image_2AiAa",Pt="vk_initialsText_0YMe-",Ft="vk_statusDot_53XSX",Gt="vk_online_ZVmyI",Kt="vk_offline_qI93c",Ot="vk_busy_Wjyxi",Ut="vk_idle_T37PT",S={avatar:Nt,neutralFallback:Mt,shapeCircle:Dt,shapeRounded:Tt,shapeSquare:It,sizeXs:Wt,sizeSm:xt,sizeMd:pt,sizeLg:Lt,sizeXl:Rt,image:Ht,initialsText:Pt,statusDot:Ft,online:Gt,offline:Kt,busy:Ot,idle:Ut};var qt=t.template("<img>"),jt=t.template("<span aria-hidden=true>"),Vt=t.template("<div role=img>"),Jt=t.template("<span>");function Zt(e){const n=e.trim().split(/[\s_-]+/),i=n[0],c=n[1];return n.length>=2&&i&&c&&i[0]&&c[0]?`${i[0]}${c[0]}`.toUpperCase():i&&i.length>=2?i.slice(0,2).toUpperCase():((i==null?void 0:i[0])??"?").toUpperCase()}function Yt(e){let n=0;for(let i=0;i<e.length;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return Math.abs(n)}const re=["var(--ui-color-brand)","var(--ui-color-success)","var(--ui-color-warning)","var(--ui-color-error)","var(--ui-color-unique, var(--ui-color-brand-deep))","var(--ui-color-info)"];function Xt(e){const[n,i]=m.createSignal(!1);m.createEffect(()=>{e.src,i(!1)});const c=()=>{switch(e.size){case"xs":return S.sizeXs;case"sm":return S.sizeSm;case"lg":return S.sizeLg;case"xl":return S.sizeXl;case"md":default:return S.sizeMd}},r=()=>{switch(e.shape){case"square":return S.shapeSquare;case"rounded":return S.shapeRounded;case"circle":default:return S.shapeCircle}},o=m.createMemo(()=>e.name?Zt(e.name):"?"),a=m.createMemo(()=>!e.name&&!e.src),u=m.createMemo(()=>{if(e.name){const s=Yt(e.name)%re.length;return re[s]}return"var(--ui-color-surface-elevated)"});return(()=>{var s=Vt();return t.insert(s,t.createComponent(m.Show,{get when(){return t.memo(()=>!!e.src)()&&!n()},get fallback(){return(()=>{var d=Jt();return t.insert(d,o),t.effect(()=>t.className(d,S.initialsText)),d})()},get children(){var d=qt();return d.addEventListener("error",()=>i(!0)),t.effect(h=>{var v=e.src,l=e.alt??e.name??"Avatar",b=S.image;return v!==h.e&&t.setAttribute(d,"src",h.e=v),l!==h.t&&t.setAttribute(d,"alt",h.t=l),b!==h.a&&t.className(d,h.a=b),h},{e:void 0,t:void 0,a:void 0}),d}}),null),t.insert(s,t.createComponent(m.Show,{get when(){return e.status},get children(){var d=jt();return t.effect(()=>t.className(d,`${S.statusDot} ${S[e.status]??""}`)),d}}),null),t.effect(d=>{var h=`${S.avatar} ${a()?S.neutralFallback:""} ${c()} ${r()} ${e.class??""}`,v=e.src&&!n()?"transparent":u(),l=e.alt??e.name??"Avatar";return h!==d.e&&t.className(s,d.e=h),v!==d.t&&t.setStyleProperty(s,"background-color",d.t=v),l!==d.a&&t.setAttribute(s,"aria-label",d.a=l),d},{e:void 0,t:void 0,a:void 0}),s})()}const Qt="vk_container_bJM-w",en="vk_header_B0whI",tn="vk_titleGroup_6hqZw",nn="vk_title_168wy",rn="vk_languageBadge_Z9vw0",an="vk_codeArea_lsoO9",on="vk_lineNumbers_-SpGJ",sn="vk_codeContent_dbT3W",E={container:Qt,header:en,titleGroup:tn,title:nn,languageBadge:rn,codeArea:an,lineNumbers:on,codeContent:sn};var R=t.template("<span>"),ln=t.template("<div><div>"),cn=t.template("<div aria-hidden=true>"),dn=t.template("<div><pre><code>");function un(e){const n=()=>e.code.split(`
|
|
1
|
+
"use strict";const t=require("solid-js/web"),m=require("solid-js"),y=require("./i18n-DrmazJQC.cjs"),ae=require("@vokril/icons"),fe=require("./CopyButton-Hb6c_Oq1.cjs"),be=require("./Badge-BXLrs2z-.cjs"),x=require("./Button-D5Ihf90u.cjs"),ke=require("./Alert-DCIet3Ol.cjs"),ye=require("./isOneOf-9EXOSYJu.cjs"),P=require("./kitHost-u0-mKvEK.cjs"),we=require("./notificationCatalog-DmwTAO09.cjs"),k=require("./errorHandler-DoDAPpv2.cjs"),Se=require("./mainRealmDom-BcPuVvcy.cjs"),oe=require("./windowRegistry-CxXtP-iY.cjs"),_e="vk_container_dk7eW",Ce="vk_dot_meV8k",ze="vk_sizeSm_ELTA-",$e="vk_sizeMd_o2pxF",Ae="vk_sizeLg_mLQkz",Ee="vk_statusConnected_qR7ng",Be="vk_statusDisconnected_hYp1M",Ne="vk_statusConnecting_hnYJK",Me="vk_statusError_IO6jD",De="vk_statusWarning_Woyhs",Te="vk_statusIdle_YHwe5",Ie="vk_pulse_1cb44",We="vk_label_x4Bnj",_={container:_e,dot:Ce,sizeSm:ze,sizeMd:$e,sizeLg:Ae,statusConnected:Ee,statusDisconnected:Be,statusConnecting:Ne,statusError:Me,statusWarning:De,statusIdle:Te,pulse:Ie,label:We};var xe=t.template("<span>"),pe=t.template("<span role=status><span aria-hidden=true>");const Le={connected:_.statusConnected,disconnected:_.statusDisconnected,connecting:_.statusConnecting,error:_.statusError,warning:_.statusWarning,idle:_.statusIdle},Re={connected:"Connected",disconnected:"Disconnected",connecting:"Connecting…",error:"Error",warning:"Warning",idle:"Idle"},He={sm:_.sizeSm,md:_.sizeMd,lg:_.sizeLg};function Pe(e){const n=()=>e.status,i=()=>e.size??"md",c=()=>e.pulse??e.status==="connecting";return(()=>{var r=pe(),o=r.firstChild;return t.insert(r,t.createComponent(m.Show,{get when(){return e.label},get children(){var a=xe();return t.insert(a,()=>e.label),t.effect(()=>t.className(a,_.label)),a}}),null),t.effect(a=>{var u=`${_.container} ${e.class??""}`,s=e.ariaLabel??e.label??y.t(Re[n()]),d=`${_.dot} ${He[i()]} ${Le[n()]} ${c()?_.pulse:""}`;return u!==a.e&&t.className(r,a.e=u),s!==a.t&&t.setAttribute(r,"aria-label",a.t=s),d!==a.a&&t.className(o,a.a=d),a},{e:void 0,t:void 0,a:void 0}),r})()}const Fe="vk_container_EODau",Ge="vk_svg_90HKS",Ke="vk_track_txXSe",Oe="vk_indicator_ZoP--",Ue="vk_toneBrand_qzK2M",qe="vk_toneSuccess_sQawq",je="vk_toneWarning_STrWD",Ve="vk_toneDanger_s2Owu",Je="vk_toneNeutral_oQCmv",Ze="vk_indeterminate_R-OYw",Ye="vk_valueText_qasUM",z={container:Fe,svg:Ge,track:Ke,indicator:Oe,toneBrand:Ue,toneSuccess:qe,toneWarning:je,toneDanger:Ve,toneNeutral:Je,indeterminate:Ze,valueText:Ye};var Xe=t.template("<span>%"),Qe=t.template("<div role=progressbar><svg><circle></circle><circle>");const et={brand:z.toneBrand,success:z.toneSuccess,warning:z.toneWarning,danger:z.toneDanger,neutral:z.toneNeutral},tt={xs:{dimension:16,thickness:2},sm:{dimension:24,thickness:2.5},md:{dimension:36,thickness:3.5},lg:{dimension:48,thickness:4}};function nt(e){const n=()=>e.indeterminate===!0||e.value===void 0,i=()=>{if(typeof e.size=="number")return{dimension:e.size,thickness:e.thickness??Math.max(2,Math.round(e.size/10))};const s=tt[e.size??"md"];return{dimension:s.dimension,thickness:e.thickness??s.thickness}},c=()=>{if(n())return 0;const s=e.max??100;return s<=0?0:Math.max(0,Math.min(100,(e.value??0)/s*100))},r=()=>{const s=i();return(s.dimension-s.thickness)/2},o=()=>2*Math.PI*r(),a=()=>{const s=o(),d=c();return s-d/100*s},u=()=>et[e.tone??"brand"];return(()=>{var s=Qe(),d=s.firstChild,h=d.firstChild,v=h.nextSibling;return t.insert(s,t.createComponent(m.Show,{get when(){return t.memo(()=>!!(e.showValueText&&!n()))()&&i().dimension>=32},get children(){var l=Xe(),b=l.firstChild;return t.insert(l,()=>Math.round(c()),b),t.effect(()=>t.className(l,z.valueText)),l}}),null),t.effect(l=>{var b=`${z.container} ${n()?z.indeterminate:""} ${e.class??""}`,C=n()?void 0:Math.round(c()),f=n()?void 0:0,g=n()?void 0:100,N=n()?"true":void 0,M=e.ariaLabel??"Loading progress",D=z.svg,T=i().dimension,F=i().dimension,G=`0 0 ${i().dimension} ${i().dimension}`,K=z.track,O=i().dimension/2,U=i().dimension/2,q=r(),j=i().thickness,V=`${z.indicator} ${u()}`,J=i().dimension/2,Z=i().dimension/2,Y=r(),X=i().thickness,Q=n()?void 0:`${o()}px`,ee=n()?void 0:`${a()}px`;return b!==l.e&&t.className(s,l.e=b),C!==l.t&&t.setAttribute(s,"aria-valuenow",l.t=C),f!==l.a&&t.setAttribute(s,"aria-valuemin",l.a=f),g!==l.o&&t.setAttribute(s,"aria-valuemax",l.o=g),N!==l.i&&t.setAttribute(s,"aria-busy",l.i=N),M!==l.n&&t.setAttribute(s,"aria-label",l.n=M),D!==l.s&&t.setAttribute(d,"class",l.s=D),T!==l.h&&t.setAttribute(d,"width",l.h=T),F!==l.r&&t.setAttribute(d,"height",l.r=F),G!==l.d&&t.setAttribute(d,"viewBox",l.d=G),K!==l.l&&t.setAttribute(h,"class",l.l=K),O!==l.u&&t.setAttribute(h,"cx",l.u=O),U!==l.c&&t.setAttribute(h,"cy",l.c=U),q!==l.w&&t.setAttribute(h,"r",l.w=q),j!==l.m&&t.setAttribute(h,"stroke-width",l.m=j),V!==l.f&&t.setAttribute(v,"class",l.f=V),J!==l.y&&t.setAttribute(v,"cx",l.y=J),Z!==l.g&&t.setAttribute(v,"cy",l.g=Z),Y!==l.p&&t.setAttribute(v,"r",l.p=Y),X!==l.b&&t.setAttribute(v,"stroke-width",l.b=X),Q!==l.T&&t.setAttribute(v,"stroke-dasharray",l.T=Q),ee!==l.A&&t.setAttribute(v,"stroke-dashoffset",l.A=ee),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0}),s})()}const rt="vk_skeleton_ukIlo",it="vk_line_57IJG",at="vk_block_bz9pB",ot="vk_circle_gna4J",L={skeleton:rt,line:it,block:at,circle:ot};var st=t.template("<span aria-hidden=true>");const lt={line:L.line,block:L.block,circle:L.circle};function $(e){const n=()=>{const i={};return e.width!==void 0&&(i.width=e.width),e.height!==void 0&&(i.height=e.height),i};return(()=>{var i=st();return t.effect(c=>{var r=`${L.skeleton} ${lt[e.variant??"line"]} ${e.class??""}`,o=n();return r!==c.e&&t.className(i,c.e=r),c.t=t.style(i,o,c.t),c},{e:void 0,t:void 0}),i})()}const ct="vk_root_JDCqC",dt="vk_clickable_CJfe8",ut="vk_disabled_3ZHI-",mt="vk_sizeSm_6xtuP",ht="vk_sizeMd_n-7Ks",vt="vk_variantNeutral_yBs2F",gt="vk_variantBrand_2AgQe",ft="vk_variantSuccess_vrcZo",bt="vk_variantError_kEX-j",kt="vk_variantWarning_4KLp1",yt="vk_variantInfo_XaHVV",wt="vk_variantCustom_0AFRs",St="vk_active_MiCEd",_t="vk_icon_yhIsi",Ct="vk_label_zhdE4",zt="vk_remove_RmvzI",w={root:ct,clickable:dt,disabled:ut,sizeSm:mt,sizeMd:ht,variantNeutral:vt,variantBrand:gt,variantSuccess:ft,variantError:bt,variantWarning:kt,variantInfo:yt,variantCustom:wt,active:St,icon:_t,label:Ct,remove:zt};var $t=t.template("<span aria-hidden=true>"),te=t.template("<span>"),ne=t.template("<button type=button>");const At={neutral:w.variantNeutral,brand:w.variantBrand,success:w.variantSuccess,error:w.variantError,warning:w.variantWarning,info:w.variantInfo,custom:w.variantCustom},Et={sm:w.sizeSm,md:w.sizeMd};function Bt(e){const[n]=m.splitProps(e,["variant","size","active","disabled","leadingIcon","removable","onRemove","removeAriaLabel","class","children"]),i=()=>{const r=n.variant??"neutral",o=n.size??"sm";return[w.root,At[r],Et[o],e.clickable?w.clickable:void 0,n.active?w.active:void 0,n.disabled?w.disabled:void 0,n.class].filter(u=>!!u).join(" ")},c=[t.createComponent(m.Show,{get when(){return n.leadingIcon!==void 0},get children(){var r=$t();return t.insert(r,()=>n.leadingIcon),t.effect(()=>t.className(r,w.icon)),r}}),t.createComponent(m.Show,{get when(){return n.children!==void 0},get children(){var r=te();return t.insert(r,()=>n.children),t.effect(()=>t.className(r,w.label)),r}}),t.createComponent(m.Show,{get when(){return n.removable===!0},get children(){var r=ne();return r.$$click=o=>{var a;o.stopPropagation(),(a=n.onRemove)==null||a.call(n)},t.insert(r,t.createComponent(ae.VpClose,{"aria-hidden":"true"})),t.effect(o=>{var a=w.remove,u=n.disabled,s=n.removeAriaLabel??"Remove";return a!==o.e&&t.className(r,o.e=a),u!==o.t&&(r.disabled=o.t=u),s!==o.a&&t.setAttribute(r,"aria-label",o.a=s),o},{e:void 0,t:void 0,a:void 0}),r}})];return e.clickable?(()=>{var r=ne();return r.$$click=o=>e.onClick(o),t.insert(r,c),t.effect(o=>{var a=i(),u=n.disabled,s=e.ariaPressed,d=e.ariaLabel,h=e.title;return a!==o.e&&t.className(r,o.e=a),u!==o.t&&(r.disabled=o.t=u),s!==o.a&&t.setAttribute(r,"aria-pressed",o.a=s),d!==o.o&&t.setAttribute(r,"aria-label",o.o=d),h!==o.i&&t.setAttribute(r,"title",o.i=h),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})():(()=>{var r=te();return t.insert(r,c),t.effect(()=>t.className(r,i())),r})()}t.delegateEvents(["click"]);const Nt="vk_avatar_EGGzR",Mt="vk_neutralFallback_oBOgs",Dt="vk_shapeCircle_7Upuz",Tt="vk_shapeRounded_hWGoh",It="vk_shapeSquare_KXCG7",Wt="vk_sizeXs_edqAn",xt="vk_sizeSm_Mh1j-",pt="vk_sizeMd_3Gp-H",Lt="vk_sizeLg_qg5bn",Rt="vk_sizeXl_wrWtn",Ht="vk_image_2AiAa",Pt="vk_initialsText_0YMe-",Ft="vk_statusDot_53XSX",Gt="vk_online_ZVmyI",Kt="vk_offline_qI93c",Ot="vk_busy_Wjyxi",Ut="vk_idle_T37PT",S={avatar:Nt,neutralFallback:Mt,shapeCircle:Dt,shapeRounded:Tt,shapeSquare:It,sizeXs:Wt,sizeSm:xt,sizeMd:pt,sizeLg:Lt,sizeXl:Rt,image:Ht,initialsText:Pt,statusDot:Ft,online:Gt,offline:Kt,busy:Ot,idle:Ut};var qt=t.template("<img>"),jt=t.template("<span aria-hidden=true>"),Vt=t.template("<div role=img>"),Jt=t.template("<span>");function Zt(e){const n=e.trim().split(/[\s_-]+/),i=n[0],c=n[1];return n.length>=2&&i&&c&&i[0]&&c[0]?`${i[0]}${c[0]}`.toUpperCase():i&&i.length>=2?i.slice(0,2).toUpperCase():((i==null?void 0:i[0])??"?").toUpperCase()}function Yt(e){let n=0;for(let i=0;i<e.length;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return Math.abs(n)}const re=["var(--ui-color-brand)","var(--ui-color-success)","var(--ui-color-warning)","var(--ui-color-error)","var(--ui-color-unique, var(--ui-color-brand-deep))","var(--ui-color-info)"];function Xt(e){const[n,i]=m.createSignal(!1);m.createEffect(()=>{e.src,i(!1)});const c=()=>{switch(e.size){case"xs":return S.sizeXs;case"sm":return S.sizeSm;case"lg":return S.sizeLg;case"xl":return S.sizeXl;case"md":default:return S.sizeMd}},r=()=>{switch(e.shape){case"square":return S.shapeSquare;case"rounded":return S.shapeRounded;case"circle":default:return S.shapeCircle}},o=m.createMemo(()=>e.name?Zt(e.name):"?"),a=m.createMemo(()=>!e.name&&!e.src),u=m.createMemo(()=>{if(e.name){const s=Yt(e.name)%re.length;return re[s]}return"var(--ui-color-surface-elevated)"});return(()=>{var s=Vt();return t.insert(s,t.createComponent(m.Show,{get when(){return t.memo(()=>!!e.src)()&&!n()},get fallback(){return(()=>{var d=Jt();return t.insert(d,o),t.effect(()=>t.className(d,S.initialsText)),d})()},get children(){var d=qt();return d.addEventListener("error",()=>i(!0)),t.effect(h=>{var v=e.src,l=e.alt??e.name??"Avatar",b=S.image;return v!==h.e&&t.setAttribute(d,"src",h.e=v),l!==h.t&&t.setAttribute(d,"alt",h.t=l),b!==h.a&&t.className(d,h.a=b),h},{e:void 0,t:void 0,a:void 0}),d}}),null),t.insert(s,t.createComponent(m.Show,{get when(){return e.status},get children(){var d=jt();return t.effect(()=>t.className(d,`${S.statusDot} ${S[e.status]??""}`)),d}}),null),t.effect(d=>{var h=`${S.avatar} ${a()?S.neutralFallback:""} ${c()} ${r()} ${e.class??""}`,v=e.src&&!n()?"transparent":u(),l=e.alt??e.name??"Avatar";return h!==d.e&&t.className(s,d.e=h),v!==d.t&&t.setStyleProperty(s,"background-color",d.t=v),l!==d.a&&t.setAttribute(s,"aria-label",d.a=l),d},{e:void 0,t:void 0,a:void 0}),s})()}const Qt="vk_container_bJM-w",en="vk_header_B0whI",tn="vk_titleGroup_6hqZw",nn="vk_title_168wy",rn="vk_languageBadge_Z9vw0",an="vk_codeArea_lsoO9",on="vk_lineNumbers_-SpGJ",sn="vk_codeContent_dbT3W",E={container:Qt,header:en,titleGroup:tn,title:nn,languageBadge:rn,codeArea:an,lineNumbers:on,codeContent:sn};var R=t.template("<span>"),ln=t.template("<div><div>"),cn=t.template("<div aria-hidden=true>"),dn=t.template("<div><pre><code>");function un(e){const n=()=>e.code.split(`
|
|
2
2
|
`),i=()=>e.showLineNumbers??!0,c=()=>e.copyable??!0;return(()=>{var r=dn(),o=r.firstChild,a=o.firstChild;return t.insert(r,t.createComponent(m.Show,{get when(){return e.title||e.language||c()},get children(){var u=ln(),s=u.firstChild;return t.insert(s,t.createComponent(m.Show,{get when(){return e.title},get children(){var d=R();return t.insert(d,()=>e.title),t.effect(()=>t.className(d,E.title)),d}}),null),t.insert(s,t.createComponent(m.Show,{get when(){return e.language},get children(){var d=R();return t.insert(d,()=>e.language),t.effect(()=>t.className(d,E.languageBadge)),d}}),null),t.insert(u,t.createComponent(m.Show,{get when(){return c()},get children(){return t.createComponent(fe.CopyButton,{get text(){return e.code},size:"2xs",variant:"ghost",iconOnly:!0})}}),null),t.effect(d=>{var h=E.header,v=E.titleGroup;return h!==d.e&&t.className(u,d.e=h),v!==d.t&&t.className(s,d.t=v),d},{e:void 0,t:void 0}),u}}),o),t.insert(o,t.createComponent(m.Show,{get when(){return i()},get children(){var u=cn();return t.insert(u,t.createComponent(m.For,{get each(){return n()},children:(s,d)=>(()=>{var h=R();return t.insert(h,()=>d()+1),h})()})),t.effect(()=>t.className(u,E.lineNumbers)),u}}),a),t.insert(a,()=>e.code),t.effect(u=>{var s=`${E.container} ${e.class??""}`,d=E.codeArea,h=e.maxHeight??"260px",v=E.codeContent;return s!==u.e&&t.className(r,u.e=s),d!==u.t&&t.className(o,u.t=d),h!==u.a&&t.setStyleProperty(o,"max-height",u.a=h),v!==u.o&&t.className(a,u.o=v),u},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()}const mn="vk_inlineError_Rf4ZE",hn="vk_icon_m3t0o",vn="vk_message_X3AJH",gn="vk_sizeSm_KnRx5",fn="vk_sizeMd_XuYNk",I={inlineError:mn,icon:hn,message:vn,sizeSm:gn,sizeMd:fn};var bn=t.template("<span aria-hidden=true>"),kn=t.template("<div role=alert aria-live=polite><span>");function yn(e){const n=()=>e.showIcon??!0,i=()=>e.size??"md",c=()=>!!(e.message||e.children);return t.createComponent(m.Show,{get when(){return c()},get children(){var r=kn(),o=r.firstChild;return t.insert(r,t.createComponent(m.Show,{get when(){return n()},get children(){var a=bn();return t.insert(a,t.createComponent(ae.VpAlertTriangle,{})),t.effect(()=>t.className(a,I.icon)),a}}),o),t.insert(o,()=>e.message??e.children),t.effect(a=>{var u=`${I.inlineError} ${i()==="sm"?I.sizeSm:I.sizeMd} ${e.class??""}`,s=I.message;return u!==a.e&&t.className(r,a.e=u),s!==a.t&&t.className(o,a.t=s),a},{e:void 0,t:void 0}),r}})}function se(e){return{success:"success",error:"danger",warning:"warning",muted:"neutral"}[e]}function wn(e){return t.createComponent(be.Badge,{variant:"soft",get tone(){return se(e.variant)},minWidth:!0,get children(){return e.label}})}function le(e,n){const i=(n==null?void 0:n.delayMs)??120,c=(n==null?void 0:n.minVisibleMs)??400,[r,o]=m.createSignal(!1);let a,u,s=0;const d=()=>{a!==void 0&&(clearTimeout(a),a=void 0)},h=()=>{u!==void 0&&(clearTimeout(u),u=void 0)};return m.createEffect(()=>{if(e()){if(h(),r()||a!==void 0)return;a=setTimeout(()=>{a=void 0,s=Date.now(),o(!0)},i);return}if(d(),!r())return;const l=c-(Date.now()-s);if(l<=0){o(!1);return}u===void 0&&(u=setTimeout(()=>{u=void 0,o(!1)},l))}),m.onCleanup(()=>{d(),h()}),r}const Sn="vk_status_lhcfu",_n="vk_statusText_1arFq",Cn="vk_retainedStatus_LYlj7",zn="vk_statusError_BMwRO",W={status:Sn,statusText:_n,retainedStatus:Cn,statusError:zn};var $n=t.template("<div aria-busy=true><span aria-hidden=true>"),An=t.template("<div role=alert><span>");function En(e){const n=le(()=>e.loading,{get delayMs(){return e.delayMs},get minVisibleMs(){return e.minVisibleMs}}),i=()=>e.label??y.t("Loading…");return t.createComponent(m.Switch,{get fallback(){return e.children},get children(){return[t.createComponent(m.Match,{get when(){return e.loading||n()},get children(){return t.createComponent(m.Show,{get when(){return n()},get children(){var c=$n(),r=c.firstChild;return t.insert(c,t.createComponent(x.Spinner,{get size(){return e.size==="sm"?"sm":"md"},get label(){return i()}}),r),t.insert(r,i),t.effect(o=>{var a=W.status,u=W.statusText;return a!==o.e&&t.className(c,o.e=a),u!==o.t&&t.className(r,o.t=u),o},{e:void 0,t:void 0}),c}})}}),t.createComponent(m.Match,{get when(){return e.error},get children(){return[(()=>{var c=An(),r=c.firstChild;return t.insert(r,()=>e.error),t.insert(c,t.createComponent(m.Show,{get when(){return e.onRetry},get children(){return t.createComponent(x.Button,{size:"sm",variant:"secondary",onClick:()=>{var o;return(o=e.onRetry)==null?void 0:o.call(e)},get children(){return y.t("Retry")}})}}),null),t.effect(o=>{var a=W.status,u={[W.retainedStatus]:e.retainChildrenOnError===!0},s=W.statusError;return a!==o.e&&t.className(c,o.e=a),o.t=t.classList(c,u,o.t),s!==o.a&&t.className(r,o.a=s),o},{e:void 0,t:void 0,a:void 0}),c})(),t.createComponent(m.Show,{get when(){return e.retainChildrenOnError},get children(){return e.children}})]}}),t.createComponent(m.Match,{get when(){return e.empty},get children(){return e.emptyState}})]}})}function ce(e){return y.t(e.notice,{count:e.limit})}function Bn(e){return t.createComponent(m.Show,{get when(){return t.memo(()=>{var n;return((n=e.state)==null?void 0:n.reached)===!0})()?e.state:void 0},children:n=>t.createComponent(ke.Alert,{tone:"warning",variant:"bare",urgency:"polite",get children(){return ce(n().cap)}})})}const Nn="facts";function Mn(e){if(typeof e!="object"||e===null)return null;const n=e[Nn];if(typeof n!="object"||n===null)return null;const i=n;return typeof i.domain!="string"||i.domain.length===0||typeof i.kind!="string"||i.kind.length===0||typeof i.message!="string"?null:n}function Dn(e,n,i){const c=Mn(e);return c===null||c.domain!==n||!i(c.kind)?null:c}const Tn=["cancelled","timeout","lock-unavailable","connection-lost","auth-failed","permission-denied","transaction-aborted","unique-violation","constraint-violation","object-not-found","syntax-error","feature-unsupported","resource-exhausted","unknown"];function In(e){return ye.isOneOf(Tn,e)}const Wn="db";function xn(e){const n=Dn(e,Wn,In);return n===null||!Array.isArray(n.positions)||"transactionRecovery"in n&&!pn(n.transactionRecovery)?null:n}function pn(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const n=e;return typeof n.pendingWork=="boolean"&&(n.rollback==="statement"||n.rollback==="none"||n.rollback==="failed")}function de(e){return e==="permission-denied"||e==="object-not-found"||e==="feature-unsupported"}function ue(e){const n=xn(e);return n===null||!de(n.kind)?null:{kind:n.kind,detail:n.vendorCode===null?null:n.message}}function me(e){return e==="feature-unsupported"?y.t("Requires a newer server."):y.t("Not available to this session.")}function he(e){var c;const n=me(e.kind),i=((c=e.detail)==null?void 0:c.trim())??"";return i===""?n:`${n}: ${i}`}function Ln(e,n,i){const c=ue(n);return c===null?e(n,i):he(c)}const ve=we.defineNotification({id:"preferences.write.not-saved",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:n})=>({message:`${y.t("The preference could not be saved; the previous value was restored.")} ${n(e,y.t("Operation failed."))}`,cause:e}));function Rn(e){const{notifications:n}=P.useKitHost(),[i,c]=m.createSignal(e.get()),r=a=>{const u=a.detail;u!=null&&c(()=>u)};return window.addEventListener(e.changeEvent,r),m.onCleanup(()=>window.removeEventListener(e.changeEvent,r)),{value:i,write:a=>{e.update(a).catch(u=>{n.notify(ve,{cause:u})})}}}function Hn(e,n,i){return k.isCancellationError(n)?{kind:"cancelled"}:{kind:"failed",message:e(n,i)}}y.SUPPORTED_LANGUAGES.map(e=>({id:e.id,label:e.label}));function Pn(e){return y.isSupportedLanguage(e)?e:y.DEFAULT_LANGUAGE_ID}function Fn(){return Pn(y.getLocale())}function Gn(e){return y.matchNavigatorLanguage(e)}const Kn={boot:["Opening workspace…","Preparing workspace…","Starting {app}…","Preparing the interface…","Loading theme & settings…","Almost ready…"],eggs:["Reticulating splines...","Generating witty dialog...","Swapping time and space...","Spinning violently around the y-axis...","Tokenizing real life...","Bending the spoon...","Filtering morale...","Don't think of purple hippos...","We need a new fuse...","Have a good day.","640K ought to be enough for anybody","The architects are still drafting","The bits are breeding","We're building the buildings as fast as we can","Would you prefer chicken, steak, or tofu?","(Pay no attention to the man behind the curtain)","...and enjoy the elevator music...","Please wait while the little elves draw your map","Don't worry - a few bits tried to escape, but we caught them","Would you like fries with that?","Checking the gravitational constant in your locale...","Go ahead -- hold your breath!","...at least you're not on hold...","Hum something loud while others stare","You're not in Kansas any more","The server is powered by a lemon and two electrodes.","We're testing your patience","As if you had any other choice","Follow the white rabbit","Why don't you order a sandwich?","While the satellite moves into position","keep calm and npm install","The bits are flowing slowly today","It's still faster than you could draw it","I should have had a V8 this morning.","My other loading screen is much faster.","Testing on Timmy... We're going to need another Timmy.","Reconfoobling energymotron...","(Insert quarter)","Are we there yet?","Have you lost weight?","Just count to 10","Why so serious?","It's not you. It's me.","Counting backwards from Infinity","Don't panic...","Embiggening Prototypes","Do not run! We are your friends!","Do you come here often?","Warning: Don't set yourself on fire.","We're making you a cookie.","Creating time-loop inversion field","Spinning the wheel of fortune...","Computing chance of success","I'm sorry Dave, I can't do that.","Looking for exact change","All your web browser are belong to us","I feel like im supposed to be loading something. . .","What do you call 8 Hobbits? A Hobbyte.","Should have used a compiled language...","Is this Windows?","Adjusting flux capacitor...","Please wait until the sloth starts moving.","Don't break your screen yet!","I swear it's almost done.","Let's take a mindfulness minute...","Unicorns are at the end of this road, I promise.","Listening for the sound of one hand clapping...","Keeping all the 1's and removing all the 0's...","Cleaning off the cobwebs...","Making sure all the i's have dots...","We need more dilithium crystals","Where did all the internets go","Granting wishes...","Time flies when you're having fun.","Get some coffee and come back in ten minutes..","Stay awhile and listen..","Convincing AI not to turn evil..","There is no spoon. Because we are not done loading it","How did you get here?","Wait, do you smell something burning?","Computing the secret to life, the universe, and everything.","When nothing is going right, go left!!...","git happens","May the forks be with you","A commit a day keeps the mobs away","Constructing additional pylons...","Hello IT, have you tried turning it off and on again?","If you type Google into Google you can break the internet","Well, this is embarrassing.","What is the airspeed velocity of an unladen swallow?","Didn't know paint dried so quickly.","Dividing by zero...","Spawn more Overlord!","If I'm not back in five minutes, just wait longer.","Some days, you just can't get rid of a bug!","We're going to need a bigger boat.","Chuck Norris never git push. The repo pulls before.","I need to git pull --my-life-together","Java developers never RIP. They just get Garbage Collected.","Cracking military-grade encryption...","Simulating traveling salesman...","Proving P=NP...","Twiddling thumbs...","Searching for plot device...","Trying to sort in O(n)...","Please wait while the intern refills his coffee.","A different error message? Finally, some progress!","Winter is coming...","Switching to the latest JS framework...","Distracted by cat gifs","Finding someone to hold my beer","BRB, working on my side project","Let's hope it's worth the wait","Ordering 1s and 0s...","Whatever you do, don't look behind you...","It is dark. You're likely to be eaten by a grue.","What the what?","Your computer has a virus, its name is Windows!","Help, I'm trapped in a loader!","Mining some bitcoins...","Downloading more RAM..","Optimizing the optimizer...","Never let a computer know you're in a hurry.","Shovelling coal into the server","Pushing pixels...","How about this weather, eh?","Building a wall...","Updating Updater...","Reading Terms and Conditions for you.","Live long and prosper.","There is no cow level, but there's a goat one!","Running with scissors...","Definitely not a virus...","You may call me Steve.","Work, work...","Discovering new ways of making you wait...","Your time is very important to us. Please wait while we ignore you...","TODO: Insert elevator music","Still faster than Windows update","Waking up the minions","Feeding unicorns...","Reversing the shield polarity","Up, Up, Down, Down, Left, Right, Left, Right, B, A.","Do you like my loading animation? I made it myself","Whoah, look at it go!","No, I'm awake. I was just resting my eyes.","One mississippi, two mississippi...","Ensuring Gnomes are still short.","Baking ice cream..."]},On={boot:["Çalışma alanı açılıyor…","Çalışma alanı hazırlanıyor…","{app} başlatılıyor…","Arayüz hazırlanıyor…","Tema ve ayarlar yükleniyor…","Neredeyse hazır…"],eggs:["Splineler yeniden hesaplanıyor...","Esprili diyaloglar üretiliyor...","Zaman ve uzay yer değiştiriyor...","Y ekseni etrafında deli gibi dönülüyor...","Bitler üretiliyor...","Moral filtreleniyor...","Mor hipopotamları düşünme...","İyi günler dileriz.","640K herkese yeter de artar","Asansör müziği keyfini çıkar...","Küçük elfler haritanı çiziyor, lütfen bekle","Birkaç bit kaçmaya çalıştı ama hepsini yakaladık","Yanına patates kızartması ister misin?","Perdenin arkasındaki adama aldırma","Sabrını test ediyoruz","Sanki başka şansın varmış gibi","Beyaz tavşanı takip et","Sakin ol ve npm install","Bitler bugün biraz ağır akıyor","En azından beklemede değilsin...","Bu sabah çay içmeliydim.","Diğer yükleme ekranım çok daha hızlı.","Çeyreklik atın","Daha gelmedik mi?","Neden bu kadar ciddisin?","Sorun sende değil, bende.","Sonsuzdan geriye doğru sayıyoruz","Panik yok...","Sana kurabiye yapıyoruz.","Şans çarkı döndürülüyor...","Başarı ihtimali hesaplanıyor","Üzgünüm Dave, bunu yapamam.","Para üstü aranıyor","Derlenen bir dil kullansaydık keşke...","Bu Windows mu?","Akı kapasitörü ayarlanıyor...","Lütfen tembel hayvan hareket edene kadar bekle.","Ekranını daha kırma!","Yemin ederim neredeyse bitti.","Bir dakika nefes egzersizi yapalım...","Yolun sonunda unicornlar var, söz.","Tüm 1'leri tutup 0'ları siliyoruz...","Örümcek ağları temizleniyor...","Tüm noktalar yerine konuyor...","Daha fazla dilityum kristali lazım","İnternetler nereye gitti","Dilekler gerçekleştiriliyor...","İyi vakit geçirince zaman su gibi akar.","Bir kahve al, on dakika sonra gel..","git böyledir işte","Çatallar (fork) seninle olsun","Günde bir commit, sorunları uzak tutar","Ek pilonlar inşa ediliyor...","Merhaba IT, kapatıp açmayı denediniz mi?","Eh, bu biraz utanç verici.","Boyanın bu kadar çabuk kuruduğunu bilmiyordum.","Sıfıra bölünüyor...","Beş dakikaya dönmezsem, biraz daha bekle.","Bazı günler bir türlü bug'dan kurtulamazsın!","Daha büyük bir tekne lazım.","Hayatımı git pull etmem lazım","Askeri düzeyde şifreleme kırılıyor...","Başparmaklar şıklatılıyor...","O(n) ile sıralanmaya çalışılıyor...","Lütfen stajyer kahvesini tazelerken bekleyin.","Farklı bir hata mesajı? Nihayet ilerleme!","Kış geliyor...","En yeni JS framework'üne geçiliyor...","Kedi gif'leriyle dikkat dağıldı","Birini bulup biramı tutturuyorum","Umarım beklemeye değer","1'ler ve 0'lar sipariş ediliyor...","Ne yaparsan yap, arkana bakma...","Karanlık. Bir grue tarafından yenebilirsin.","Bu da ne böyle?","Bilgisayarında virüs var, adı Windows!","İmdat, bir loader'a kısıldım!","Biraz bitcoin kazılıyor...","Daha fazla RAM indiriliyor..","Optimizasyoncu optimize ediliyor...","Sunucuya kömür atılıyor","Pikseller itekleniyor...","Hava nasıl bugün, ha?","Güncelleyici güncelleniyor...","Şartlar ve koşullar senin yerine okunuyor.","Çok yaşa ve gönen.","İnek seviyesi yok ama bir keçi seviyesi var!","Kesinlikle virüs değil...","Bana Steve diyebilirsin.","İş, iş...","Seni bekletmenin yeni yolları keşfediliyor...","Vaktiniz bizim için çok değerli. Lütfen sizi yok sayarken bekleyin...","Hâlâ Windows güncellemesinden hızlı","Minyonlar uyandırılıyor","Unicornlar besleniyor...","Kalkan polaritesi ters çevriliyor...","Yukarı, Yukarı, Aşağı, Aşağı, Sol, Sağ, Sol, Sağ, B, A.","Yükleme animasyonumu beğendin mi? Kendim yaptım","Vay be, şuna bak nasıl gidiyor!","Hayır, uyanığım. Sadece gözlerimi dinlendiriyordum.","Bir mississippi, iki mississippi...","Dondurma fırınlanıyor..."]},Un={boot:["Arbeitsbereich wird geöffnet…","Arbeitsbereich wird vorbereitet…","{app} wird gestartet…","Benutzeroberfläche wird vorbereitet…","Theme & Einstellungen werden geladen…","Fast fertig…"],eggs:["Splines werden trianguliert...","Ein geistreicher Dialog wird erzeugt...","Zeit und Raum werden vertauscht...","Wilde Drehung um die Y-Achse...","Das echte Leben wird tokenisiert...","Der Löffel wird verbogen...","Die Moral wird gefiltert...","Denken Sie jetzt bloß nicht an lila Nilpferde...","Wir brauchen eine neue Sicherung...","Einen schönen Tag noch.","640 KB sollten für jeden reichen","Die Architekten zeichnen noch","Die Bits vermehren sich","Wir bauen die Gebäude so schnell wir können","Hähnchen, Steak oder Tofu?","(Achten Sie nicht auf den Mann hinter dem Vorhang)","...und genießen Sie die Fahrstuhlmusik...","Bitte warten, die kleinen Elfen zeichnen Ihre Karte","Keine Sorge, ein paar Bits wollten fliehen, aber wir haben sie erwischt","Möchten Sie Pommes dazu?","Die Gravitationskonstante an Ihrem Standort wird geprüft...","Nur zu, halten Sie die Luft an!","...immerhin sind Sie nicht in der Warteschleife...","Summen Sie laut vor sich hin, während andere starren","Sie sind nicht mehr in Kansas","Der Server läuft mit einer Zitrone und zwei Elektroden.","Wir testen Ihre Geduld","Als hätten Sie eine andere Wahl","Folgen Sie dem weißen Kaninchen","Wie wär's mit einem belegten Brötchen?","Während der Satellit in Position geht","keep calm und npm install","Die Bits fließen heute etwas träge","Immer noch schneller, als Sie es zeichnen könnten","Ich hätte heute Morgen einen V8 trinken sollen.","Mein anderer Ladebildschirm ist viel schneller.","Test an Timmy... Wir brauchen einen neuen Timmy.","Der Energymotron wird rekonfoobelt...","(Münze einwerfen)","Sind wir schon da?","Haben Sie abgenommen?","Zählen Sie einfach bis 10","Warum so ernst?","Es liegt nicht an dir. Es liegt an mir.","Rückwärts zählen von Unendlich","Keine Panik...","Prototypen werden vergrößerlicht","Nicht wegrennen! Wir sind Ihre Freunde!","Kommen Sie öfter hierher?","Warnung: Bitte nicht selbst anzünden.","Wir backen Ihnen einen Keks.","Ein Zeitschleifen-Inversionsfeld wird erzeugt","Das Glücksrad wird gedreht...","Erfolgswahrscheinlichkeit wird berechnet","Tut mir leid, Dave, das kann ich nicht tun.","Passendes Kleingeld wird gesucht","Alle Ihre Browser gehören uns","Ich glaube, ich sollte hier eigentlich etwas laden. . .","Wie nennt man 8 Hobbits? Ein Hobbyte.","Hätte wohl besser eine kompilierte Sprache genommen...","Ist das hier Windows?","Der Flusskompensator wird justiert...","Bitte warten, bis das Faultier sich in Bewegung setzt.","Noch nicht den Bildschirm zerschlagen!","Ich schwöre, es ist gleich fertig.","Machen wir eine kleine Achtsamkeitsminute...","Am Ende dieses Weges warten Einhörner, versprochen.","Wir lauschen dem Klang einer klatschenden Hand...","Alle Einsen behalten, alle Nullen entfernen...","Spinnweben werden entfernt...","Kontrolle, ob alle i-Punkte sitzen...","Wir brauchen mehr Dilithium-Kristalle","Wo ist bloß das ganze Internet hin","Wünsche werden erfüllt...","Die Zeit vergeht wie im Flug, wenn's Spaß macht.","Holen Sie sich einen Kaffee und kommen Sie in zehn Minuten wieder..","Bleiben Sie eine Weile und lauschen Sie..","Die KI wird überredet, nicht böse zu werden..","Es gibt keinen Löffel. Weil wir ihn noch laden","Wie sind Sie hierher gekommen?","Moment, riecht es hier nicht verbrannt?","Das Geheimnis des Lebens, des Universums und des ganzen Rests wird berechnet.","Wenn nichts richtig läuft, gehen Sie nach links!!...","git passiert eben","Mögen die Forks mit Ihnen sein","Ein Commit am Tag hält den Mob fern","Zusätzliche Pylonen werden errichtet...","Hallo, IT hier, haben Sie's mal aus- und wieder eingeschaltet?",'Wenn Sie "Google" bei Google eingeben, brechen Sie das Internet',"Nun, das ist peinlich.","Wie hoch ist die Fluggeschwindigkeit einer unbeladenen Schwalbe?","Wusste nicht, dass Farbe so schnell trocknet.","Division durch Null...","Mehr Overlords erschaffen!","Falls ich in fünf Minuten nicht zurück bin, warten Sie einfach länger.","An manchen Tagen wird man einen Bug einfach nicht los!","Wir brauchen ein größeres Boot.","Chuck Norris macht niemals git push. Das Repo pullt vorher.","Ich brauche ein git pull --mein-leben-zusammen","Java-Entwickler sterben nie. Sie werden nur Garbage Collected.","Militärische Verschlüsselung wird geknackt...","Das Problem des Handlungsreisenden wird simuliert...","P=NP wird bewiesen...","Daumen werden gedreht...","Ein passendes Handlungselement wird gesucht...","Sortierung in O(n) wird versucht...","Bitte warten, der Praktikant füllt gerade seinen Kaffee nach.","Eine andere Fehlermeldung? Endlich ein Fortschritt!","Der Winter naht...","Wechsel zum neuesten JS-Framework...","Von Katzen-GIFs abgelenkt","Jemand gesucht, der mein Bier hält","Bin gleich zurück, arbeite an meinem Nebenprojekt","Hoffen wir, es lohnt sich zu warten","Einsen und Nullen werden bestellt...","Was auch immer Sie tun, schauen Sie nicht hinter sich...","Es ist dunkel. Sie werden wahrscheinlich von einem Grue gefressen.","Was denn bitte?","Ihr Computer hat einen Virus, sein Name ist Windows!","Hilfe, ich stecke in einem Ladebildschirm fest!","Ein paar Bitcoins werden geschürft...","Mehr RAM wird heruntergeladen..","Der Optimierer wird optimiert...","Lassen Sie einen Computer nie merken, dass Sie es eilig haben.","Kohle wird in den Server geschaufelt","Pixel werden geschoben...","Ganz schönes Wetter, was?","Eine Mauer wird gebaut...","Der Updater wird aktualisiert...","Wir lesen die AGB für Sie.","Lebe lang und in Frieden.","Es gibt kein Kuh-Level, aber ein Ziegen-Level!","Mit Scheren rennen...","Ganz bestimmt kein Virus...","Sie dürfen mich Steve nennen.","Arbeit, Arbeit...","Neue Wege werden entdeckt, Sie warten zu lassen...","Ihre Zeit ist uns sehr wichtig. Bitte warten Sie, während wir Sie ignorieren...","TODO: Fahrstuhlmusik einfügen","Immer noch schneller als ein Windows-Update","Die Minions werden geweckt","Einhörner werden gefüttert...","Die Schildpolarität wird umgekehrt","Hoch, Hoch, Runter, Runter, Links, Rechts, Links, Rechts, B, A.","Gefällt Ihnen meine Ladeanimation? Habe ich selbst gemacht","Wow, schauen Sie sich das an!","Nein, ich bin wach. Ich habe nur die Augen ausgeruht.","Einundzwanzig, zweiundzwanzig...","Kontrolle, ob die Gnome noch klein sind.","Eis wird gebacken..."]},ie={en:Kn,tr:On,de:Un},qn="vk_wrap_6qkkn",jn="vk_fullscreen_M-B2-",Vn="vk_mark_jNBov",Jn="vk_spinner_2Zu4y",Zn="vk_text_dTGWk",Yn="vk_textHidden_HX4bi",B={wrap:qn,fullscreen:jn,mark:Vn,spinner:Jn,text:Zn,textHidden:Yn};var Xn=t.template("<div aria-hidden=true>"),Qn=t.template("<div>"),er=t.template("<div><div data-motion-exempt=true>");const tr=e=>{const[n,i]=m.createSignal(""),[c,r]=m.createSignal(!0);m.onMount(()=>{var f;if(!e.cycle)return;const a=Gn(Fn()),u=((f=e.appName)==null?void 0:f.trim())??"",s=(e.bootMessages??ie[a].boot).flatMap(g=>g.includes("{app}")?u?[g.replace("{app}",u)]:[]:[g]),d=ie[a].eggs;let h=0,v=-1,l;const b=g=>{r(!1),l=setTimeout(()=>{i(g),r(!0)},180)};i(s[0]??""),h=1;const C=setInterval(()=>{if(h<s.length){b(s[h]??""),h+=1;return}let g=Math.floor(Math.random()*d.length);d.length>1&&g===v&&(g=(g+1)%d.length),v=g,b(d[g]??"")},2200);m.onCleanup(()=>{clearInterval(C),l&&clearTimeout(l)})});const o=()=>e.cycle?n():e.label;return(()=>{var a=er(),u=a.firstChild;return t.insert(a,t.createComponent(m.Show,{get when(){return e.mark},get children(){var s=Xn();return t.insert(s,()=>e.mark),t.effect(()=>t.className(s,B.mark)),s}}),u),t.insert(a,t.createComponent(m.Show,{get when(){return o()},get children(){var s=Qn();return t.insert(s,o),t.effect(()=>t.className(s,e.cycle&&!c()?`${B.text} ${B.textHidden}`:B.text)),s}}),null),t.effect(s=>{var d=e.fullscreen?`${B.wrap} ${B.fullscreen}`:B.wrap,h=B.spinner;return d!==s.e&&t.className(a,s.e=d),h!==s.t&&t.className(u,s.t=h),s},{e:void 0,t:void 0}),a})()};function H(e){return e===void 0||isNaN(e)?"N/A":`${(e/(1024*1024)).toFixed(1)} MB`}function nr(e){const n=new Date(e.timestamp).toISOString().slice(11,19),i=e.category.toUpperCase().padEnd(10," "),c=(e.level??"info").toUpperCase().padEnd(5," ");let r="";if(e.data&&Object.keys(e.data).length>0)try{r=` | data: ${JSON.stringify(e.data)}`}catch(o){k.bestEffortFailed("breadcrumb data could not be serialised to JSON — written without data",o)}return`[${n}] [${i}] [${c}] ${e.message}${r}`}function rr(e,n){const i=new Date().toISOString(),c=k.scrubSecrets(k.toErrorMessage(e,"Unknown error"));let r="Error",o="No stack trace available";if(e instanceof Error)r=e.name,e.stack&&(o=k.scrubSecrets(e.stack));else if(typeof e=="object"&&e!==null){const f=e;typeof f.name=="string"&&(r=f.name),typeof f.stack=="string"&&(o=k.scrubSecrets(f.stack))}let a="Unknown",u="Unknown";typeof navigator<"u"&&(a=navigator.userAgent,u=navigator.platform);let s="N/A";if(typeof performance<"u"&&"memory"in performance){const f=performance.memory;f&&(s=`Used: ${H(f.usedJSHeapSize)} / Total: ${H(f.totalJSHeapSize)} (Limit: ${H(f.jsHeapSizeLimit)})`)}const d=n.maxBreadcrumbs??20,h=k.getBreadcrumbs().slice(-d),v=h.length>0?h.map(nr).join(`
|
|
3
3
|
`):"No breadcrumbs recorded";let l="";if(n.context&&Object.keys(n.context).length>0)try{const f=k.scrubValue(n.context);l=`
|
|
4
4
|
### Context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("solid-js/web"),d=require("solid-js"),ne=require("./useFloatingDropdown-D5UayoN6.cjs"),oe=require("./ownerAnimationFrame-T6jf6qYC.cjs"),ie=require("./Button-
|
|
1
|
+
"use strict";const e=require("solid-js/web"),d=require("solid-js"),ne=require("./useFloatingDropdown-D5UayoN6.cjs"),oe=require("./ownerAnimationFrame-T6jf6qYC.cjs"),ie=require("./Button-D5Ihf90u.cjs"),ae=require("./ownerWindow-BCmJFMbR.cjs"),le=require("@vokril/icons"),se=require("./OverlayScrollArea-Cr0VAApT.cjs"),ce=require("./Input-DTm6v0fK.cjs"),de=require("./anchoredLayout-CBjQ1etD.cjs"),ue=require("./keys-GMxY2wcl.cjs"),T=require("./i18n-DrmazJQC.cjs"),ve=["ArrowDown","ArrowUp","Home","End"];function C(r,v,u){const h=r.length;if(h===0)return-1;let p=v;for(let y=0;y<h;y++){p=(p+u+h)%h;const x=r[p];if(x&&!x.disabled)return p}return-1}function W(r){return C(r,-1,1)}function z(r){return C(r,r.length,-1)}function K(r,v,u){switch(u){case"ArrowDown":return C(r,v,1);case"ArrowUp":return C(r,v<0?r.length:v,-1);case"Home":return W(r);case"End":return z(r);default:return v}}function Z(r,v){var u;return v>=0&&v<r.length&&!((u=r[v])!=null&&u.disabled)?v:W(r)}const ge="vk_trigger_jUKey",he="vk_triggerXs_gxbr6",me="vk_triggerSm_SrndI",be="vk_triggerMd_Y3r0t",we="vk_triggerOpen_Jhc-r",fe="vk_triggerText_-aF80 vk_truncateFill_Y6vuR",ke="vk_triggerPlaceholder_i0hbO",_e="vk_arrow_ubPF-",Se="vk_arrowOpen_kaQ-f",pe="vk_dropdown_ufXlM vk_surface_3ZOnl",xe="vk_dropdownXs_CpTit",ye="vk_dropdownSm_ibtZ7",Ie="vk_dropdownMd_-ucUz",Ae="vk_searchWrapper_Q696y",Oe="vk_searchIcon_gW293",Ce="vk_searchInput_umh1v",Le="vk_optionListWrap_4LZk4",He="vk_optionList_P-PU6 vk_viewport_B94pk",$e="vk_option_STkwX vk_item_neWq-",De="vk_label_reZOk vk_label_zTITb",Me="vk_optionHighlighted_anwou vk_itemActive_vyOXZ",Te="vk_optionActive_iDicG vk_itemSelected_f4xDB",We="vk_checkmark_dgHPw",qe="vk_empty_4UrLq vk_empty_oOHu3",l={trigger:ge,triggerXs:he,triggerSm:me,triggerMd:be,triggerOpen:we,triggerText:fe,triggerPlaceholder:ke,arrow:_e,arrowOpen:Se,dropdown:pe,dropdownXs:xe,dropdownSm:ye,dropdownMd:Ie,searchWrapper:Ae,searchIcon:Oe,searchInput:Ce,optionListWrap:Le,optionList:He,option:$e,label:De,optionHighlighted:Me,optionActive:Te,checkmark:We,empty:qe};var Ne=e.template('<button type=button aria-haspopup=listbox><span></span><span aria-hidden=true><svg viewBox="0 0 10 6"fill=none stroke=currentColor stroke-width=1.6 stroke-linecap=round stroke-linejoin=round><path d="M1 1l4 4 4-4">'),Fe=e.template("<div><input type=text role=combobox>"),Pe=e.template("<div role=listbox><div>"),Xe=e.template("<div>"),Ee=e.template('<svg viewBox="0 0 12 9"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M1 4.5l3.5 3.5L11 1">'),Be=e.template("<button type=button role=option><span>");const Ue={xs:l.triggerXs,sm:l.triggerSm,md:l.triggerMd},ze={xs:l.dropdownXs,sm:l.dropdownSm,md:l.dropdownMd};function Ke(r){return typeof r=="string"?{value:r,label:r,disabled:!1}:{value:r.value,label:r.label,disabled:r.disabled??!1}}function Ze(r){const v=d.createMemo(()=>!!r.disabled),u=ce.useFormFieldAria(),[h,p]=d.createSignal(!1),[y,x]=d.createSignal(""),[G,V]=d.createSignal(-1);let b,m,I;const q=[],$=`searchable-select-${d.createUniqueId()}`,D=t=>`${$}-option-${t}`,[Y,j]=d.createSignal({top:"0px",left:"0px",width:"0px","max-height":"14rem"}),N=d.createMemo(()=>r.options.map(Ke)),A=d.createMemo(()=>{const t=y().trim().toLowerCase(),i=N();return t?i.filter(g=>g.label.toLowerCase().includes(t)||g.value.toLowerCase().includes(t)):i}),J=d.createMemo(()=>{const t=N().find(i=>i.value===r.value);return t===void 0?r.value:t.label}),L=d.createMemo(()=>r.searchable!==!1),F=()=>r.size??"md",M=()=>{if(!b)return;const t=ae.ownerWindow(b);if(t===null)return;const i=de.computeDropdownPosition({anchorRect:b.getBoundingClientRect(),measuredWidth:m==null?void 0:m.offsetWidth,measuredHeight:m==null?void 0:m.scrollHeight,viewportWidth:t.innerWidth,viewportHeight:t.innerHeight});j({top:`${i.top}px`,left:`${i.left}px`,width:`${i.width}px`,"max-height":`${i.maxHeight}px`})},Q=()=>{var t;v()||(M(),x(""),p(!0),(t=r.onOpen)==null||t.call(r),oe.requestOwnerAnimationFrame(b,()=>{M(),L()?I==null||I.focus():m==null||m.focus()}))},H=()=>{p(!1),x("")},R=()=>{if(h()){H();return}Q()},P=t=>{t.disabled||(r.onChange(t.value),H(),b==null||b.focus())},_=d.createMemo(()=>h()?Z(A(),G()):-1),X=t=>{V(typeof t=="function"?t(_()):t)},ee=t=>{var o;const i=A(),g=K(i,_(),t);X(g),g>=0&&((o=q[g])==null||o.scrollIntoView({block:"nearest"}))},te=()=>{const t=A(),i=_(),g=i>=0?t[i]:void 0;g&&P(g)},E=t=>{const i=ue.namedKeyOf(t);switch(i){case"ArrowDown":case"ArrowUp":case"Home":case"End":t.preventDefault(),ee(i);break;case"Enter":_()>=0&&(t.preventDefault(),te());break;case"Tab":H();break}};ne.useFloatingDropdown({open:h,onClose:H,getTrigger:()=>b,getDropdown:()=>m,onReposition:M,restoreFocusOnClickOutside:!0});const B=()=>J(),re=()=>r.placeholder??T.t("Select...");return[(()=>{var t=Ne(),i=t.firstChild,g=i.nextSibling;t.$$click=R;var o=b;return typeof o=="function"?e.use(o,t):b=t,e.insert(i,()=>B()||re()),e.effect(n=>{var c=r.id,s=`${l.trigger} ${Ue[F()]??""} ${h()?l.triggerOpen:""} ${r.class??""}`,a=v(),w=r.ariaLabel,f=r.ariaLabel===void 0?r.ariaLabelledBy??(u==null?void 0:u.labelId):void 0,k=u==null?void 0:u.describedBy(),S=h(),O=`${l.triggerText} ${B()?"":l.triggerPlaceholder}`,U=`${l.arrow} ${h()?l.arrowOpen:""}`;return c!==n.e&&e.setAttribute(t,"id",n.e=c),s!==n.t&&e.className(t,n.t=s),a!==n.a&&(t.disabled=n.a=a),w!==n.o&&e.setAttribute(t,"aria-label",n.o=w),f!==n.i&&e.setAttribute(t,"aria-labelledby",n.i=f),k!==n.n&&e.setAttribute(t,"aria-describedby",n.n=k),S!==n.s&&e.setAttribute(t,"aria-expanded",n.s=S),O!==n.h&&e.className(i,n.h=O),U!==n.r&&e.className(g,n.r=U),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),t})(),e.createComponent(d.Show,{get when(){return h()},get children(){return e.createComponent(e.Portal,{get mount(){return b.ownerDocument.body},get children(){var t=Pe(),i=t.firstChild;e.addEventListener(t,"keydown",L()?void 0:E,!0);var g=m;return typeof g=="function"?e.use(g,t):m=t,e.setAttribute(t,"id",$),e.insert(t,e.createComponent(d.Show,{get when(){return L()},get children(){var o=Fe(),n=o.firstChild;e.insert(o,e.createComponent(le.VpSearch,{get class(){return l.searchIcon},"aria-hidden":"true"}),n),n.$$keydown=E,n.$$input=s=>x(s.currentTarget.value);var c=I;return typeof c=="function"?e.use(c,n):I=n,e.setAttribute(n,"aria-controls",$),e.effect(s=>{var a=l.searchWrapper,w=l.searchInput,f=h(),k=_()>=0?D(_()):void 0,S=r.searchPlaceholder??T.t("Search...");return a!==s.e&&e.className(o,s.e=a),w!==s.t&&e.className(n,s.t=w),f!==s.a&&e.setAttribute(n,"aria-expanded",s.a=f),k!==s.o&&e.setAttribute(n,"aria-activedescendant",s.o=k),S!==s.i&&e.setAttribute(n,"placeholder",s.i=S),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e.effect(()=>n.value=y()),o}}),i),e.insert(i,e.createComponent(se.OverlayScrollArea,{get viewportClass(){return l.optionList},get children(){return e.createComponent(d.Show,{get when(){return A().length>0},get fallback(){return(()=>{var o=Xe();return e.insert(o,e.createComponent(d.Show,{get when(){return r.loading},get fallback(){return r.emptyMessage??T.t("No results found")},get children(){return e.createComponent(ie.Spinner,{size:"xs"})}})),e.effect(()=>e.className(o,l.empty)),o})()},get children(){return e.createComponent(d.For,{get each(){return A()},children:(o,n)=>(()=>{var c=Be(),s=c.firstChild;return c.addEventListener("mouseenter",()=>X(n())),c.$$click=()=>P(o),e.use(a=>{q[n()]=a??null},c),e.insert(s,()=>o.label),e.insert(c,e.createComponent(d.Show,{get when(){return o.value===r.value},get children(){var a=Ee();return e.effect(()=>e.setAttribute(a,"class",l.checkmark)),a}}),null),e.effect(a=>{var w=D(n()),f=o.value===r.value,k=o.disabled,S=`${l.option} ${o.value===r.value?l.optionActive:""} ${n()===_()?l.optionHighlighted:""}`,O=l.label;return w!==a.e&&e.setAttribute(c,"id",a.e=w),f!==a.t&&e.setAttribute(c,"aria-selected",a.t=f),k!==a.a&&(c.disabled=a.a=k),S!==a.o&&e.className(c,a.o=S),O!==a.i&&e.className(s,a.i=O),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),c})()})}})}})),e.effect(o=>{var n=`${l.dropdown} ${ze[F()]??""}`,c=Y(),s=r.ariaLabel,a=r.ariaLabel===void 0?u==null?void 0:u.labelId:void 0,w=_()>=0?D(_()):void 0,f=L()?void 0:-1,k=l.optionListWrap;return n!==o.e&&e.className(t,o.e=n),o.t=e.style(t,c,o.t),s!==o.a&&e.setAttribute(t,"aria-label",o.a=s),a!==o.o&&e.setAttribute(t,"aria-labelledby",o.o=a),w!==o.i&&e.setAttribute(t,"aria-activedescendant",o.i=w),f!==o.n&&e.setAttribute(t,"tabindex",o.n=f),k!==o.s&&e.className(i,o.s=k),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),t}})}})]}e.delegateEvents(["click","keydown","input"]);exports.LISTBOX_NAVIGATION_KEYS=ve;exports.SearchableSelect=Ze;exports.clampHighlightToOptions=Z;exports.firstSelectableIndex=W;exports.lastSelectableIndex=z;exports.nextSelectableIndex=C;exports.resolveHighlightForKey=K;
|
|
@@ -2,14 +2,14 @@ import { insert as y, effect as O, setAttribute as d, className as k, createComp
|
|
|
2
2
|
import { createMemo as L, createSignal as X, createUniqueId as ue, Show as T, For as ge } from "solid-js";
|
|
3
3
|
import { u as he } from "./useFloatingDropdown-2Tz_es0W.js";
|
|
4
4
|
import { r as me } from "./ownerAnimationFrame-DzFcMSmn.js";
|
|
5
|
-
import { S as we } from "./Button-
|
|
5
|
+
import { S as we } from "./Button-DDkZzT-k.js";
|
|
6
6
|
import { o as fe } from "./ownerWindow-9mx_LD47.js";
|
|
7
7
|
import { VpSearch as be } from "@vokril/icons";
|
|
8
8
|
import { O as ke } from "./OverlayScrollArea-CrrPFLq9.js";
|
|
9
|
-
import { u as _e } from "./Input-
|
|
9
|
+
import { u as _e } from "./Input-agpwYeJd.js";
|
|
10
10
|
import { g as xe } from "./anchoredLayout-E0mqCWxk.js";
|
|
11
11
|
import { n as pe } from "./keys-B2nlkpqc.js";
|
|
12
|
-
import { t as z } from "./i18n-
|
|
12
|
+
import { t as z } from "./i18n-BJiKwNyr.js";
|
|
13
13
|
const ft = [
|
|
14
14
|
"ArrowDown",
|
|
15
15
|
"ArrowUp",
|
package/dist/{StatusBarNotificationBell-GbkAwC4w.js → StatusBarNotificationBell-CnmMzXzD.js}
RENAMED
|
@@ -4,14 +4,14 @@ var Fe = (e, t, n) => Sc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { E as Qu, e as eu, o as Eu, g as zo, d as Nc, T as Cc } from "./electronBridge-BK92fycw.js";
|
|
5
5
|
import { B as Vo } from "./bugIndicatingError-h3J5qkL6.js";
|
|
6
6
|
import { n as ae, D as Di, u as sr } from "./useSettingsSubscription-DLEk4k4j.js";
|
|
7
|
-
import { t as m, b as Rc } from "./i18n-
|
|
7
|
+
import { t as m, b as Rc } from "./i18n-BJiKwNyr.js";
|
|
8
8
|
import { s as Mt, c as Ic } from "./errorHandler-BvPGW-Nm.js";
|
|
9
9
|
import { insert as Z, createComponent as T, mergeProps as Zn, effect as ze, className as be, template as Ze, spread as cr, memo as lt, Dynamic as Wo, setAttribute as st, setStyleProperty as yc, delegateEvents as fi, use as bu, addEventListener as Oc } from "solid-js/web";
|
|
10
10
|
import { Show as ve, onCleanup as We, createSignal as Ie, onMount as Jt, createEffect as Vt, on as Ju, createMemo as Ve, useContext as qo, For as yn, createRenderEffect as xc } from "solid-js";
|
|
11
11
|
import { createStore as Yo, reconcile as Ko } from "solid-js/store";
|
|
12
|
-
import { H as Dc, f as kc, C as vc } from "./createDialogShellFocus-
|
|
12
|
+
import { H as Dc, f as kc, C as vc } from "./createDialogShellFocus-CgjiySLA.js";
|
|
13
13
|
import { O as ar } from "./OverlayScrollArea-CrrPFLq9.js";
|
|
14
|
-
import { H as ki } from "./HostPortal-
|
|
14
|
+
import { H as ki } from "./HostPortal-DsVQEH2q.js";
|
|
15
15
|
import { a as Lc, u as wc } from "./HostWindowContext-B2m0bVra.js";
|
|
16
16
|
import { u as Pn } from "./kitHost-BMMWpU4w.js";
|
|
17
17
|
import { A as Mc, F as On, a as Fc, c as Pc } from "./builtins-XOM9gfIx.js";
|
|
@@ -21,14 +21,15 @@ import { i as jo } from "./isOneOf-Dtomuazg.js";
|
|
|
21
21
|
import { p as Hc, m as Gc } from "./prefersReducedMotion-qcGrKv14.js";
|
|
22
22
|
import { n as $c, i as Mn } from "./keys-B2nlkpqc.js";
|
|
23
23
|
import { c as zc, E as Vc } from "./mainRealmDom-DydRT2Us.js";
|
|
24
|
-
import { I as Wc, P as Zo } from "./Input-
|
|
24
|
+
import { I as Wc, P as Zo } from "./Input-agpwYeJd.js";
|
|
25
25
|
import { B as Mu } from "./Badge-BguTObKo.js";
|
|
26
26
|
import { VpLock as qc, VpTreeBell as Yc, VpRocket as Kc, VpTerminal as Xc, VpTreeGitMerge as jc, VpTreeDatabase as Zc, VpTreeCloud as Qc, VpTreeKey as Jc, VpTreePlug as ea, VpPass as Qo, VpError as Jo, VpWarning as es, VpInfo as ts, VpChevronDown as ns, VpGear as Zr, VpTreeClose as Qr, VpSquareCheck as ta, VpMailOpened as na, VpTrash as Jr, VpDots as ua, VpFilter as ra, VpAdjustments as ia, VpBook as oa, VpBellRinging as sa, VpCheck as ca, VpCopy as aa, VpMinus as la, VpBellOff as hi, VpBell as us, VpChevronUp as da } from "@vokril/icons";
|
|
27
|
-
import { P as er, G as fa
|
|
27
|
+
import { P as er, G as fa } from "./GuidedTour-bcaKpXPX.js";
|
|
28
28
|
import { d as ln, P as vi } from "./notificationCatalog-otJ1LHFH.js";
|
|
29
|
-
import { D as
|
|
30
|
-
import { B as Xe } from "./Button-
|
|
31
|
-
import { D as
|
|
29
|
+
import { D as ha, u as rs } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
30
|
+
import { B as Xe } from "./Button-DDkZzT-k.js";
|
|
31
|
+
import { D as ga } from "./Disclosure-0tZlCnkH.js";
|
|
32
|
+
import { D as pa, f as Ea, a as lr } from "./DateRangePicker-B36NSGMS.js";
|
|
32
33
|
import { P as ba } from "./Popover-DkqGvMNy.js";
|
|
33
34
|
import { g as _a } from "./windowRegistry-DeGmXt6W.js";
|
|
34
35
|
import { b as Li, A as wi } from "./anchoredLayout-E0mqCWxk.js";
|
|
@@ -671,19 +672,19 @@ function _u(e) {
|
|
|
671
672
|
function Ba(e) {
|
|
672
673
|
return e.get(ti);
|
|
673
674
|
}
|
|
674
|
-
async function
|
|
675
|
+
async function vE(e, t) {
|
|
675
676
|
t ? await e.set(ti, t) : await e.delete(ti);
|
|
676
677
|
}
|
|
677
678
|
function Ha(e, t) {
|
|
678
679
|
return e.get(_u(t));
|
|
679
680
|
}
|
|
680
|
-
async function
|
|
681
|
+
async function LE(e, t, n) {
|
|
681
682
|
n ? await e.set(_u(t), n) : await e.delete(_u(t));
|
|
682
683
|
}
|
|
683
|
-
function
|
|
684
|
+
function wE(e, t) {
|
|
684
685
|
return e.delete(_u(t));
|
|
685
686
|
}
|
|
686
|
-
async function
|
|
687
|
+
async function ME(e, t) {
|
|
687
688
|
const n = new Set(t), u = (await e.keys()).filter((r) => r.startsWith(ni)).map((r) => r.slice(ni.length)).filter((r) => !n.has(r));
|
|
688
689
|
await Promise.all(u.map((r) => e.delete(_u(r))));
|
|
689
690
|
}
|
|
@@ -1040,7 +1041,7 @@ async function ol(e) {
|
|
|
1040
1041
|
dontShowAgainKeys: n
|
|
1041
1042
|
}), await ae.update({ ...t, dontShowAgainKeys: n });
|
|
1042
1043
|
}
|
|
1043
|
-
async function
|
|
1044
|
+
async function FE(e) {
|
|
1044
1045
|
const t = ae.get();
|
|
1045
1046
|
if (!t.dontShowAgainKeys.includes(e)) return;
|
|
1046
1047
|
const n = t.dontShowAgainKeys.filter((u) => u !== e);
|
|
@@ -1049,14 +1050,14 @@ async function ME(e) {
|
|
|
1049
1050
|
dontShowAgainKeys: n
|
|
1050
1051
|
}), await ae.update({ ...t, dontShowAgainKeys: n });
|
|
1051
1052
|
}
|
|
1052
|
-
async function
|
|
1053
|
+
async function PE() {
|
|
1053
1054
|
const e = ae.get();
|
|
1054
1055
|
e.dontShowAgainKeys.length !== 0 && (ae.applyFromBroadcast({
|
|
1055
1056
|
...e,
|
|
1056
1057
|
dontShowAgainKeys: []
|
|
1057
1058
|
}), await ae.update({ ...e, dontShowAgainKeys: [] }));
|
|
1058
1059
|
}
|
|
1059
|
-
async function
|
|
1060
|
+
async function UE() {
|
|
1060
1061
|
const e = ae.get();
|
|
1061
1062
|
e.mutedSources.length !== 0 && (ae.applyFromBroadcast({ ...e, mutedSources: [] }), await ae.update({ ...e, mutedSources: [] }));
|
|
1062
1063
|
}
|
|
@@ -1740,7 +1741,7 @@ const bl = ln(
|
|
|
1740
1741
|
function Gi(e, t) {
|
|
1741
1742
|
return !e.isolated && e.priority !== "acknowledgment-required" && e.origin !== "user-action" && al(e.source ?? "general", e.severity, e.priority ?? "default", t);
|
|
1742
1743
|
}
|
|
1743
|
-
class
|
|
1744
|
+
class BE {
|
|
1744
1745
|
constructor(t) {
|
|
1745
1746
|
Fe(this, "renderHost");
|
|
1746
1747
|
Fe(this, "toast");
|
|
@@ -2001,7 +2002,7 @@ function Rn(e) {
|
|
|
2001
2002
|
}
|
|
2002
2003
|
return zi.get("general") ?? bi[0];
|
|
2003
2004
|
}
|
|
2004
|
-
function
|
|
2005
|
+
function HE() {
|
|
2005
2006
|
return bi;
|
|
2006
2007
|
}
|
|
2007
2008
|
function Dl(e, t) {
|
|
@@ -2185,7 +2186,7 @@ function qi(e) {
|
|
|
2185
2186
|
function Kl(e, t) {
|
|
2186
2187
|
return t.vendorError === void 0 ? null : eu(e, t.vendorError);
|
|
2187
2188
|
}
|
|
2188
|
-
function
|
|
2189
|
+
function GE(e) {
|
|
2189
2190
|
let t = { ...Di }, n = {
|
|
2190
2191
|
dismissed: !1,
|
|
2191
2192
|
remindSuppressed: !1,
|
|
@@ -11722,7 +11723,7 @@ function q1(e) {
|
|
|
11722
11723
|
const Y1 = { sql: D1, pgsql: k1, javascript: F1, typescript: U1, json: G1, xml: $1, bash: z1, python: V1, yaml: W1, plaintext: q1 };
|
|
11723
11724
|
for (const [e, t] of Object.entries(Y1)) Ru.registerLanguage(e, t);
|
|
11724
11725
|
const lc = [];
|
|
11725
|
-
function
|
|
11726
|
+
function $E(e, t) {
|
|
11726
11727
|
lc.push({ aliases: e, languageName: t }), Ru.registerAliases([...e], { languageName: t });
|
|
11727
11728
|
}
|
|
11728
11729
|
let Yr = null;
|
|
@@ -12071,7 +12072,7 @@ const Vh = {
|
|
|
12071
12072
|
bell: Yc,
|
|
12072
12073
|
lock: qc
|
|
12073
12074
|
}, di = (e) => {
|
|
12074
|
-
const t = Ve(() => e.controller), n = Ve(() => e.item), u = Ve(() => e.shell), r = Jl(), i = qo(
|
|
12075
|
+
const t = Ve(() => e.controller), n = Ve(() => e.item), u = Ve(() => e.shell), r = Jl(), i = qo(ha), [o, s] = Ie(!1);
|
|
12075
12076
|
let c;
|
|
12076
12077
|
We(() => {
|
|
12077
12078
|
c !== void 0 && clearTimeout(c);
|
|
@@ -12974,7 +12975,7 @@ const Eg = "vk_host_-dTTD", bg = "vk_scrollArea_FaEtH", _g = "vk_stack_4LHtI", m
|
|
|
12974
12975
|
ackQueueHint: Sg
|
|
12975
12976
|
};
|
|
12976
12977
|
var Ho = /* @__PURE__ */ Ze("<div>"), Ng = /* @__PURE__ */ Ze("<p>"), Cg = /* @__PURE__ */ Ze("<div role=alertdialog aria-modal=true><div>");
|
|
12977
|
-
const
|
|
12978
|
+
const zE = (e) => {
|
|
12978
12979
|
var ne;
|
|
12979
12980
|
const t = Lc().window, n = Pn(), u = n.notifications.stack, r = n.displayOwner.register(t);
|
|
12980
12981
|
We(r.dispose);
|
|
@@ -13513,7 +13514,7 @@ function $o(e) {
|
|
|
13513
13514
|
}
|
|
13514
13515
|
}
|
|
13515
13516
|
const Vu = ["error", "warning", "info", "success"], _p = 189, mp = 27;
|
|
13516
|
-
function
|
|
13517
|
+
function VE(e) {
|
|
13517
13518
|
const t = Ve(() => e.notificationTimeline), n = () => t()(), u = wc(), r = Pn(), {
|
|
13518
13519
|
notifications: i
|
|
13519
13520
|
} = r, o = i.timeline, s = gr(r), c = r.log.withTag("NotificationPanel"), a = (p) => Eu(r.desktop, c, p), d = (p) => ei(r.vendorErrors, p), [f, E] = Ie(null), [b, g] = Ie(0), [C, U] = Ie(""), [M, L] = Ie(null), [O, P] = Ie(/* @__PURE__ */ new Set()), [I, y] = Ie(!1), [H, te] = Ie(/* @__PURE__ */ new Set()), [re, fe] = Ie(/* @__PURE__ */ new Set()), [le, K] = Ie(/* @__PURE__ */ new Set()), [B, X] = Ie(!1), [ce, _e] = Ie(0);
|
|
@@ -14202,7 +14203,7 @@ function zE(e) {
|
|
|
14202
14203
|
children: (R) => {
|
|
14203
14204
|
if (R.type === "group" && R.groupItems) {
|
|
14204
14205
|
const F = () => ne().has(R.id);
|
|
14205
|
-
return T(
|
|
14206
|
+
return T(ga, {
|
|
14206
14207
|
get class() {
|
|
14207
14208
|
return me.notificationGroup;
|
|
14208
14209
|
},
|
|
@@ -14893,7 +14894,7 @@ const Vp = "vk_bell_tx9ag vk_buttonReset_3WpyU", Wp = "vk_bellIcon_w6Lmy", qp =
|
|
|
14893
14894
|
centerPopover: Kp
|
|
14894
14895
|
};
|
|
14895
14896
|
var Xp = /* @__PURE__ */ Ze("<span>"), jp = /* @__PURE__ */ Ze("<span aria-hidden=true>");
|
|
14896
|
-
function
|
|
14897
|
+
function WE(e) {
|
|
14897
14898
|
const t = Ve(() => e.open), n = Pn().notifications, {
|
|
14898
14899
|
timeline: u,
|
|
14899
14900
|
stack: r
|
|
@@ -15031,42 +15032,42 @@ export {
|
|
|
15031
15032
|
Pi as S,
|
|
15032
15033
|
xn as T,
|
|
15033
15034
|
ya as U,
|
|
15034
|
-
|
|
15035
|
+
HE as V,
|
|
15035
15036
|
Ja as W,
|
|
15036
|
-
|
|
15037
|
-
|
|
15037
|
+
ME as X,
|
|
15038
|
+
$E as Y,
|
|
15038
15039
|
Kh as Z,
|
|
15039
15040
|
rl as _,
|
|
15040
15041
|
is as a,
|
|
15041
15042
|
dr as a0,
|
|
15042
15043
|
Rn as a1,
|
|
15043
15044
|
Pa as a2,
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15045
|
+
PE as a3,
|
|
15046
|
+
FE as a4,
|
|
15047
|
+
vE as a5,
|
|
15047
15048
|
il as a6,
|
|
15048
|
-
|
|
15049
|
+
LE as a7,
|
|
15049
15050
|
tl as a8,
|
|
15050
15051
|
Wu as a9,
|
|
15051
|
-
|
|
15052
|
+
UE as aa,
|
|
15052
15053
|
Xh as b,
|
|
15053
|
-
|
|
15054
|
+
zE as c,
|
|
15054
15055
|
di as d,
|
|
15055
|
-
|
|
15056
|
-
|
|
15056
|
+
VE as e,
|
|
15057
|
+
BE as f,
|
|
15057
15058
|
ka as g,
|
|
15058
15059
|
zp as h,
|
|
15059
15060
|
wa as i,
|
|
15060
|
-
|
|
15061
|
+
WE as j,
|
|
15061
15062
|
jh as k,
|
|
15062
15063
|
cs as l,
|
|
15063
15064
|
ls as m,
|
|
15064
15065
|
ja as n,
|
|
15065
15066
|
Rl as o,
|
|
15066
15067
|
ss as p,
|
|
15067
|
-
|
|
15068
|
+
GE as q,
|
|
15068
15069
|
mu as r,
|
|
15069
|
-
|
|
15070
|
+
wE as s,
|
|
15070
15071
|
gi as t,
|
|
15071
15072
|
ol as u,
|
|
15072
15073
|
Ol as v,
|