litepaseo 0.6.3 → 0.6.4
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 +8 -0
- package/README.md +1 -0
- package/dist/server/cli.mjs +2 -2
- package/dist/server/{worker-c_aPO7b7.mjs → worker-CF-xUWjD.mjs} +2 -1
- package/dist/web/assets/{ChangesPanel-CCv89MWn.js → ChangesPanel-BofIqZQP.js} +1 -1
- package/dist/web/assets/ChangesPanel-BofIqZQP.js.br +0 -0
- package/dist/web/assets/ChangesPanel-BofIqZQP.js.gz +0 -0
- package/dist/web/assets/{CodeBlockNode-DkSodxjo.js → CodeBlockNode-CXN_Ae9M.js} +1 -1
- package/dist/web/assets/CodeBlockNode-CXN_Ae9M.js.br +0 -0
- package/dist/web/assets/CodeBlockNode-CXN_Ae9M.js.gz +0 -0
- package/dist/web/assets/{ConversationSearch-BjpeqUQD.js → ConversationSearch-Dy5orcbn.js} +1 -1
- package/dist/web/assets/ConversationSearch-Dy5orcbn.js.br +0 -0
- package/dist/web/assets/ConversationSearch-Dy5orcbn.js.gz +0 -0
- package/dist/web/assets/FileViewer-D0xXViyr.css +1 -0
- package/dist/web/assets/FileViewer-D0xXViyr.css.br +0 -0
- package/dist/web/assets/FileViewer-D0xXViyr.css.gz +0 -0
- package/dist/web/assets/FileViewer-DNbbFxcu.js +2 -0
- package/dist/web/assets/FileViewer-DNbbFxcu.js.br +0 -0
- package/dist/web/assets/FileViewer-DNbbFxcu.js.gz +0 -0
- package/dist/web/assets/FilesPanel-B0AM9mBQ.css +1 -0
- package/dist/web/assets/FilesPanel-B0AM9mBQ.css.br +0 -0
- package/dist/web/assets/FilesPanel-B0AM9mBQ.css.gz +0 -0
- package/dist/web/assets/FilesPanel-BeKH4OzS.js +1 -0
- package/dist/web/assets/FilesPanel-BeKH4OzS.js.br +0 -0
- package/dist/web/assets/FilesPanel-BeKH4OzS.js.gz +0 -0
- package/dist/web/assets/{HostSettings-Bv5JZpp-.js → HostSettings-DYP3N6Lz.js} +1 -1
- package/dist/web/assets/HostSettings-DYP3N6Lz.js.br +0 -0
- package/dist/web/assets/HostSettings-DYP3N6Lz.js.gz +0 -0
- package/dist/web/assets/{MarkdownMessage-EN9nVzPY.js → MarkdownMessage-BC0PlDsE.js} +5 -5
- package/dist/web/assets/MarkdownMessage-BC0PlDsE.js.br +0 -0
- package/dist/web/assets/MarkdownMessage-BC0PlDsE.js.gz +0 -0
- package/dist/web/assets/{PreCodeBlock-BQT0wORf.js → PreCodeBlock-CwlxxT4M.js} +1 -1
- package/dist/web/assets/{PreCodeBlock.vue_vue_type_style_index_0_lang-DfarDC-F.js → PreCodeBlock.vue_vue_type_style_index_0_lang-B-OlOXYE.js} +1 -1
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-B-OlOXYE.js.br +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-B-OlOXYE.js.gz +0 -0
- package/dist/web/assets/{TerminalPanel-K_XWJJCf.js → TerminalPanel-Do-RL9VC.js} +2 -2
- package/dist/web/assets/TerminalPanel-Do-RL9VC.js.br +0 -0
- package/dist/web/assets/TerminalPanel-Do-RL9VC.js.gz +0 -0
- package/dist/web/assets/{Tooltip-DlJP942e.js → Tooltip-D1o1RrqS.js} +1 -1
- package/dist/web/assets/Tooltip-D1o1RrqS.js.br +0 -0
- package/dist/web/assets/Tooltip-D1o1RrqS.js.gz +0 -0
- package/dist/web/assets/index-C3vlvXwW.js +35 -0
- package/dist/web/assets/index-C3vlvXwW.js.br +0 -0
- package/dist/web/assets/index-C3vlvXwW.js.gz +0 -0
- package/dist/web/assets/{index10-CvxEEYMU.js → index10-D9pxNykk.js} +1 -1
- package/dist/web/assets/index10-D9pxNykk.js.br +0 -0
- package/dist/web/assets/index10-D9pxNykk.js.gz +0 -0
- package/dist/web/assets/index3-04lg2us9.js +1 -0
- package/dist/web/assets/index4-ajBciZDR.js +1 -0
- package/dist/web/assets/{index5-CXyDTPhW.js → index5-BzdymN4u.js} +1 -1
- package/dist/web/assets/index5-BzdymN4u.js.br +0 -0
- package/dist/web/assets/index5-BzdymN4u.js.gz +0 -0
- package/dist/web/assets/{index6-jpDV1ZAC.js → index6-CurOfyz9.js} +1 -1
- package/dist/web/assets/index6-CurOfyz9.js.br +0 -0
- package/dist/web/assets/index6-CurOfyz9.js.gz +0 -0
- package/dist/web/assets/{index7-1uZFrok-.js → index7-DxKOZxs4.js} +1 -1
- package/dist/web/assets/index7-DxKOZxs4.js.br +0 -0
- package/dist/web/assets/index7-DxKOZxs4.js.gz +0 -0
- package/dist/web/assets/{index8-CMMJJO04.js → index8-DGoFYECm.js} +1 -1
- package/dist/web/assets/index8-DGoFYECm.js.br +0 -0
- package/dist/web/assets/index8-DGoFYECm.js.gz +0 -0
- package/dist/web/assets/{index9--HlVDjgo.js → index9-CddNvmeb.js} +1 -1
- package/dist/web/assets/index9-CddNvmeb.js.br +0 -0
- package/dist/web/assets/{index9--HlVDjgo.js.gz → index9-CddNvmeb.js.gz} +0 -0
- package/dist/web/index.html +1 -1
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/web/assets/ChangesPanel-CCv89MWn.js.br +0 -0
- package/dist/web/assets/ChangesPanel-CCv89MWn.js.gz +0 -0
- package/dist/web/assets/CodeBlockNode-DkSodxjo.js.br +0 -0
- package/dist/web/assets/CodeBlockNode-DkSodxjo.js.gz +0 -0
- package/dist/web/assets/ConversationSearch-BjpeqUQD.js.br +0 -0
- package/dist/web/assets/ConversationSearch-BjpeqUQD.js.gz +0 -0
- package/dist/web/assets/FileViewer-DZoA4W84.js +0 -2
- package/dist/web/assets/FileViewer-DZoA4W84.js.br +0 -0
- package/dist/web/assets/FileViewer-DZoA4W84.js.gz +0 -0
- package/dist/web/assets/FileViewer-T756VVq4.css +0 -1
- package/dist/web/assets/FileViewer-T756VVq4.css.br +0 -0
- package/dist/web/assets/FileViewer-T756VVq4.css.gz +0 -0
- package/dist/web/assets/FilesPanel-CY9yMixJ.css +0 -1
- package/dist/web/assets/FilesPanel-CY9yMixJ.css.br +0 -0
- package/dist/web/assets/FilesPanel-CY9yMixJ.css.gz +0 -0
- package/dist/web/assets/FilesPanel-DIQsDIqh.js +0 -1
- package/dist/web/assets/FilesPanel-DIQsDIqh.js.br +0 -0
- package/dist/web/assets/FilesPanel-DIQsDIqh.js.gz +0 -0
- package/dist/web/assets/HostSettings-Bv5JZpp-.js.br +0 -0
- package/dist/web/assets/HostSettings-Bv5JZpp-.js.gz +0 -0
- package/dist/web/assets/MarkdownMessage-EN9nVzPY.js.br +0 -0
- package/dist/web/assets/MarkdownMessage-EN9nVzPY.js.gz +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DfarDC-F.js.br +0 -0
- package/dist/web/assets/PreCodeBlock.vue_vue_type_style_index_0_lang-DfarDC-F.js.gz +0 -0
- package/dist/web/assets/TerminalPanel-K_XWJJCf.js.br +0 -0
- package/dist/web/assets/TerminalPanel-K_XWJJCf.js.gz +0 -0
- package/dist/web/assets/Tooltip-DlJP942e.js.br +0 -0
- package/dist/web/assets/Tooltip-DlJP942e.js.gz +0 -0
- package/dist/web/assets/index-BL9bqeXR.js +0 -34
- package/dist/web/assets/index-BL9bqeXR.js.br +0 -0
- package/dist/web/assets/index-BL9bqeXR.js.gz +0 -0
- package/dist/web/assets/index10-CvxEEYMU.js.br +0 -0
- package/dist/web/assets/index10-CvxEEYMU.js.gz +0 -0
- package/dist/web/assets/index3-c_9QIzHt.js +0 -1
- package/dist/web/assets/index4-Bgk1S4Rt.js +0 -1
- package/dist/web/assets/index5-CXyDTPhW.js.br +0 -0
- package/dist/web/assets/index5-CXyDTPhW.js.gz +0 -0
- package/dist/web/assets/index6-jpDV1ZAC.js.br +0 -0
- package/dist/web/assets/index6-jpDV1ZAC.js.gz +0 -0
- package/dist/web/assets/index7-1uZFrok-.js.br +0 -0
- package/dist/web/assets/index7-1uZFrok-.js.gz +0 -0
- package/dist/web/assets/index8-CMMJJO04.js.br +0 -0
- package/dist/web/assets/index8-CMMJJO04.js.gz +0 -0
- package/dist/web/assets/index9--HlVDjgo.js.br +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as default}from"./PreCodeBlock.vue_vue_type_style_index_0_lang-
|
|
1
|
+
export{t as default}from"./PreCodeBlock.vue_vue_type_style_index_0_lang-B-OlOXYE.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,C as r,I as i,J as a,M as o,T as s,W as c,_ as l,at as u,b as d,d as f,f as p,g as m,h,k as g,l as _,n as v,nt as y,ot as b,q as x,rt as S,v as C,x as w,y as T}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{G as E,J as D,K as O,T as k,U as A,Y as j,at as M,ct as N,dt as P,ft as F,g as I,h as L,q as R,rt as ee,st as te,ut as ne,w as z,x as B}from"./MarkdownMessage-EN9nVzPY.js";var V=Object.defineProperty,H=Object.defineProperties,re=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,K=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||={})W.call(t,n)&&K(e,n,t[n]);if(U)for(var n of U(t))G.call(t,n)&&K(e,n,t[n]);return e},J=(e,t)=>H(e,re(t)),Y=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function X(e,t){if(t===void 0)return O(e);if(t){let n=t(e);if(n!=null&&n!==``)return n}let n=A(e);return R(n)||D()}var Z={key:0,class:`code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]`},ie={class:`flex items-center gap-0.5`},Q=[`aria-label`],$={class:`code-diff-stat removed`},ae={class:`code-diff-stat added`},oe=[`aria-label`],se={key:0,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},ce={key:1,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},le=[`aria-pressed`],ue={key:3,class:`relative`},de=[`aria-expanded`],fe=[`disabled`],pe=[`disabled`],me=[`disabled`],he={key:0,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},ge={key:1,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},_e={class:`code-loading-placeholder`},ve={class:`sr-only`,"aria-live":`polite`,role:`status`},ye=s({__name:`CodeBlockShell`,props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:[`toggleCollapse`,`decreaseFont`,`resetFont`,`increaseFont`,`copy`,`toggleExpand`,`preview`],setup(t,{emit:o}){let s=t,c=o,l=e(!1),d=e(null),g=e(null);function E(){z(!0),l.value=!l.value,l.value&&document.addEventListener(`click`,O,{once:!0,capture:!0})}function D(){z(!0),l.value=!1}function O(e){let t=e.target;d.value?.contains(t)||g.value?.contains(t)?document.addEventListener(`click`,O,{once:!0,capture:!0}):D()}let A=h(()=>s.showFontSizeButtons&&s.enableFontSizeControl||s.showExpandButton||s.isPreviewable&&s.showPreviewButton),{t:j}=B(),M=h(()=>!1!==s.showTooltips);function N(e,t){M.value&&k(e.currentTarget,t,`top`,!1,void 0,s.isDark)}function P(){M.value&&z()}function F(e){N(e,s.copyText?j(`common.copied`)||`Copied`:j(`common.copy`)||`Copy`)}let I=h(()=>!!Number.isFinite(s.codeFontSize)&&(s.codeFontSize??0)<=(s.codeFontMin??0)),L=h(()=>!s.fontBaselineReady||s.codeFontSize===s.defaultCodeFontSize),R=h(()=>!!Number.isFinite(s.codeFontSize)&&(s.codeFontSize??0)>=(s.codeFontMax??100));return(e,o)=>(i(),T(p,null,[s.showHeader?(i(),T(`div`,Z,[n(e.$slots,`header-left`),n(e.$slots,`header-right`,{},()=>[m(`div`,ie,[t.diffStats?(i(),T(`div`,{key:0,class:`code-diff-stats`,"aria-label":t.diffStatsAriaLabel},[m(`span`,$,`-`+b(t.diffStats.removed),1),m(`span`,ae,`+`+b(t.diffStats.added),1)],8,Q)):C(``,!0),s.showCopyButton?(i(),T(`button`,{key:1,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,"aria-label":t.copyText?y(j)(`common.copied`)||`Copied`:y(j)(`common.copy`)||`Copy`,onClick:o[0]||=e=>c(`copy`),onMouseenter:o[1]||=e=>F(e),onFocus:o[2]||=e=>F(e),onMouseleave:P,onBlur:P},[t.copyText?(i(),T(`svg`,ce,[...o[14]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])):(i(),T(`svg`,se,[...o[13]||=[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),m(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})],-1)]]))],40,oe)):C(``,!0),s.showCollapseButton?(i(),T(`button`,{key:2,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,"aria-pressed":t.isCollapsed,onClick:o[3]||=e=>c(`toggleCollapse`),onMouseenter:o[4]||=e=>N(e,t.isCollapsed?y(j)(`common.expand`)||`Expand`:y(j)(`common.collapse`)||`Collapse`),onFocus:o[5]||=e=>N(e,t.isCollapsed?y(j)(`common.expand`)||`Expand`:y(j)(`common.collapse`)||`Collapse`),onMouseleave:P,onBlur:P},[(i(),T(`svg`,{style:u({rotate:t.isCollapsed?`0deg`:`90deg`}),xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[...o[15]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m9 18l6-6l-6-6`},null,-1)]],4))],40,le)):C(``,!0),A.value?(i(),T(`div`,ue,[m(`button`,{ref_key:`moreBtnRef`,ref:g,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors`,"aria-expanded":l.value,"aria-haspopup":`true`,onClick:f(E,[`stop`]),onMouseenter:o[6]||=e=>N(e,y(j)(`common.more`)||`More`),onFocus:o[7]||=e=>N(e,y(j)(`common.more`)||`More`),onMouseleave:P,onBlur:P},[...o[16]||=[w(`<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="currentColor"><circle cx="12" cy="5" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle></g></svg>`,1)]],40,de),r(v,{name:`code-menu`},{default:x(()=>[l.value?(i(),T(`div`,{key:0,ref_key:`moreMenuRef`,ref:d,class:`code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]`,role:`menu`},[s.showFontSizeButtons&&s.enableFontSizeControl?(i(),T(p,{key:0},[m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:I.value,onClick:o[8]||=e=>{y(z)(!0),c(`decreaseFont`)}},[o[17]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14`})],-1),m(`span`,null,b(y(j)(`common.fontSmaller`)||`Font size −`),1)],8,fe),m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:L.value,onClick:o[9]||=e=>{y(z)(!0),c(`resetFont`)}},[o[18]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),m(`path`,{d:`M3 3v5h5`})])],-1),m(`span`,null,b(y(j)(`common.fontReset`)||`Font size reset`),1)],8,pe),m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:R.value,onClick:o[10]||=e=>{y(z)(!0),c(`increaseFont`)}},[o[19]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`})],-1),m(`span`,null,b(y(j)(`common.fontLarger`)||`Font size +`),1)],8,me)],64)):C(``,!0),s.showExpandButton?(i(),T(`button`,{key:1,type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors`,onClick:o[11]||=e=>{D(),c(`toggleExpand`)}},[t.isExpanded?(i(),T(`svg`,he,[...o[20]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`},null,-1)]])):(i(),T(`svg`,ge,[...o[21]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`},null,-1)]])),m(`span`,null,b(t.isExpanded?y(j)(`common.collapse`)||`Collapse`:y(j)(`common.expand`)||`Expand`),1)])):C(``,!0),t.isPreviewable&&s.showPreviewButton?(i(),T(`button`,{key:2,type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors`,onClick:o[12]||=e=>{D(),c(`preview`)}},[o[22]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0`}),m(`circle`,{cx:`12`,cy:`12`,r:`3`})])],-1),m(`span`,null,b(y(j)(`common.preview`)||`Preview`),1)])):C(``,!0)],512)):C(``,!0)]),_:1})])):C(``,!0)])])])):C(``,!0),a(m(`div`,{class:S([`code-block-shell-content`,{"code-block-shell-content--collapsed":t.isCollapsed}])},[n(e.$slots,`default`)],2),[[_,!!t.stream||!t.loading]]),a(m(`div`,_e,[n(e.$slots,`loading`,{},()=>[o[23]||=m(`div`,{class:`loading-skeleton`},[m(`div`,{class:`skeleton-line`}),m(`div`,{class:`skeleton-line`}),m(`div`,{class:`skeleton-line short`})],-1)])],512),[[_,!t.stream&&t.loading]]),m(`span`,ve,b(t.copyText?y(j)(`common.copied`)||`Copied`:``),1)],64))}}),be={class:`code-header-main`},xe=[`innerHTML`],Se={class:`code-header-copy`},Ce={class:`code-header-title`},we={key:0,class:`code-header-caption`},Te=s(J(q({},{inheritAttrs:!1}),{__name:`PreCodeBlock`,props:{codeBlockOptions:{},clipboardWriter:{},darkTheme:{},isDark:{type:Boolean,default:!1},lightTheme:{},resolvedVisualOptions:{},showCopyButton:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showToolbar:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},theme:{},themes:{},node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean,default:!0},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},emits:[`copy`],setup(a,{emit:s}){let f=a,p=s,_=c(),v=h(()=>{let e=_,{class:t,style:n}=e;return((e,t)=>{var n={};for(var r in e)W.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&U)for(var r of U(e))t.indexOf(r)<0&&G.call(e,r)&&(n[r]=e[r]);return n})(e,[`class`,`style`])}),S=e(null),w=e(!1),D,O=g(I,void 0),k=h(()=>f.showLineNumbers??!0!==f.codeBlockOptions?.disableLineNumbers),R=h(()=>ee(f.node)),z=h(()=>!0===f.diffInline||R.value&&te(f.codeBlockOptions??{})),B=h(()=>A(String(f.node?.language??``))),V=h(()=>{let e=B.value;return e?j[e]||e.charAt(0).toUpperCase()+e.slice(1):j[``]||`Plain Text`}),H=h(()=>M(String(f.node?.raw??``),V.value,ee(f.node))),re=h(()=>(E.value,X(B.value,O))),K=h(()=>f.resolvedVisualOptions??F(f.codeBlockOptions)),Z=h(()=>ne({darkTheme:f.darkTheme,isDark:f.isDark,lightTheme:f.lightTheme,theme:f.theme,themes:f.themes})),ie=h(()=>J(q({"--markstream-code-fallback-bg":Z.value.background,"--markstream-code-fallback-fg":Z.value.foreground},Z.value.builtin?{"--markstream-code-theme-bg":Z.value.background,"--markstream-code-theme-fg":Z.value.foreground,"--markstream-code-theme-line-number":Z.value.lineNumber}:{}),{"--markstream-diff-added-line-fill":Z.value.diffAddedLine,"--markstream-diff-added-number-fill":Z.value.diffAddedNumber,"--markstream-diff-editor-bg":Z.value.background,"--markstream-diff-removed-line-fill":Z.value.diffRemovedLine,"--markstream-diff-removed-number-fill":Z.value.diffRemovedNumber,"--markstream-diff-shell-bg":Z.value.background,"--markstream-pre-resolved-theme-bg":Z.value.background,"--markstream-pre-resolved-theme-fg":Z.value.foreground,"--markstream-pre-resolved-theme-line-number":Z.value.lineNumber,backgroundColor:Z.value.background,color:Z.value.foreground})),Q=h(()=>[`code-pre-fallback`,_.class,{"is-wrap":K.value.overflow===`wrap`}]),$=h(()=>{let e=K.value,t=R.value&&typeof f.reservedHeightPx==`number`&&Number.isFinite(f.reservedHeightPx)&&f.reservedHeightPx>0?`${Math.ceil(f.reservedHeightPx)}px`:void 0;return q(J(q(q({},N(e,{padding:f.codeBlockOptions?.padding,showLineNumbers:k.value,diff:R.value})),P(Z.value)),{"--markstream-diff-fallback-handoff-height":t??`auto`}),t?{height:t,minHeight:t,maxHeight:t}:{})});function ae(){return Y(this,null,function*(){let e=String((n=(t=f.node)?.code)??``);var t,n;try{yield function(e){return Y(this,null,function*(){if(f.clipboardWriter)return void(yield f.clipboardWriter(e));if(typeof navigator<`u`&&navigator.clipboard&&typeof navigator.clipboard.writeText==`function`)return void(yield navigator.clipboard.writeText(e));if(typeof document>`u`||!document.body)throw Error(`Clipboard API is unavailable`);let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();try{if(!document.execCommand(`copy`))throw Error(`Clipboard copy command failed`)}finally{t.remove()}})}(e),w.value=!0,p(`copy`,e),D&&clearTimeout(D),D=setTimeout(()=>{w.value=!1,D=void 0},1e3)}catch(e){w.value=!1,console.error(`[markstream-vue] Failed to copy preformatted code.`,e)}})}return o(()=>{D&&clearTimeout(D)}),(e,a)=>f.showToolbar?(i(),T(`div`,{key:0,style:u(ie.value),class:`code-block-container rounded-lg border`},[r(ye,{"show-header":f.showHeader,"show-copy-button":f.showCopyButton,"show-collapse-button":!1,"show-font-size-buttons":!1,"show-expand-button":!1,"show-preview-button":!1,"show-tooltips":f.showTooltips,"copy-text":w.value,stream:``,onCopy:ae},d({"header-left":x(()=>[n(e.$slots,`header-left`,{},()=>[m(`div`,be,[m(`span`,{class:`icon-slot h-4 w-4 flex-shrink-0`,innerHTML:re.value},null,8,xe),m(`div`,Se,[m(`div`,Ce,b(H.value.title),1),H.value.caption?(i(),T(`div`,we,b(H.value.caption),1)):C(``,!0)])])])]),default:x(()=>[r(L,t({ref_key:`preNodeRef`,ref:S},v.value,{class:Q.value,style:[y(_).style,$.value],node:f.node,loading:f.loading,"show-line-numbers":k.value,"diff-inline":z.value,"diff-hide-unchanged-regions":f.diffHideUnchangedRegions,"reserved-height-px":f.reservedHeightPx,"data-markstream-code-theme":Z.value.name}),null,16,[`class`,`style`,`node`,`loading`,`show-line-numbers`,`diff-inline`,`diff-hide-unchanged-regions`,`reserved-height-px`,`data-markstream-code-theme`])]),_:2},[e.$slots[`header-right`]?{name:`header-right`,fn:x(()=>[n(e.$slots,`header-right`)]),key:`0`}:void 0]),1032,[`show-header`,`show-copy-button`,`show-tooltips`,`copy-text`])],4)):(i(),l(L,t({key:1,ref_key:`preNodeRef`,ref:S},v.value,{class:Q.value,style:[y(_).style,$.value],node:f.node,loading:f.loading,"show-line-numbers":k.value,"diff-inline":z.value,"diff-hide-unchanged-regions":f.diffHideUnchangedRegions,"reserved-height-px":f.reservedHeightPx,"data-markstream-code-theme":Z.value.name}),null,16,[`class`,`style`,`node`,`loading`,`show-line-numbers`,`diff-inline`,`diff-hide-unchanged-regions`,`reserved-height-px`,`data-markstream-code-theme`]))}}));export{ye as n,X as r,Te as t};
|
|
1
|
+
import{$ as e,A as t,B as n,C as r,I as i,J as a,M as o,T as s,W as c,_ as l,at as u,b as d,d as f,f as p,g as m,h,k as g,l as _,n as v,nt as y,ot as b,q as x,rt as S,v as C,x as w,y as T}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{G as E,J as D,K as O,T as k,U as A,Y as j,at as M,ct as N,dt as P,ft as F,g as I,h as L,q as R,rt as ee,st as te,ut as ne,w as z,x as B}from"./MarkdownMessage-BC0PlDsE.js";var V=Object.defineProperty,H=Object.defineProperties,re=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,K=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||={})W.call(t,n)&&K(e,n,t[n]);if(U)for(var n of U(t))G.call(t,n)&&K(e,n,t[n]);return e},J=(e,t)=>H(e,re(t)),Y=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function X(e,t){if(t===void 0)return O(e);if(t){let n=t(e);if(n!=null&&n!==``)return n}let n=A(e);return R(n)||D()}var Z={key:0,class:`code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]`},ie={class:`flex items-center gap-0.5`},Q=[`aria-label`],$={class:`code-diff-stat removed`},ae={class:`code-diff-stat added`},oe=[`aria-label`],se={key:0,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},ce={key:1,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},le=[`aria-pressed`],ue={key:3,class:`relative`},de=[`aria-expanded`],fe=[`disabled`],pe=[`disabled`],me=[`disabled`],he={key:0,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},ge={key:1,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},_e={class:`code-loading-placeholder`},ve={class:`sr-only`,"aria-live":`polite`,role:`status`},ye=s({__name:`CodeBlockShell`,props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:[`toggleCollapse`,`decreaseFont`,`resetFont`,`increaseFont`,`copy`,`toggleExpand`,`preview`],setup(t,{emit:o}){let s=t,c=o,l=e(!1),d=e(null),g=e(null);function E(){z(!0),l.value=!l.value,l.value&&document.addEventListener(`click`,O,{once:!0,capture:!0})}function D(){z(!0),l.value=!1}function O(e){let t=e.target;d.value?.contains(t)||g.value?.contains(t)?document.addEventListener(`click`,O,{once:!0,capture:!0}):D()}let A=h(()=>s.showFontSizeButtons&&s.enableFontSizeControl||s.showExpandButton||s.isPreviewable&&s.showPreviewButton),{t:j}=B(),M=h(()=>!1!==s.showTooltips);function N(e,t){M.value&&k(e.currentTarget,t,`top`,!1,void 0,s.isDark)}function P(){M.value&&z()}function F(e){N(e,s.copyText?j(`common.copied`)||`Copied`:j(`common.copy`)||`Copy`)}let I=h(()=>!!Number.isFinite(s.codeFontSize)&&(s.codeFontSize??0)<=(s.codeFontMin??0)),L=h(()=>!s.fontBaselineReady||s.codeFontSize===s.defaultCodeFontSize),R=h(()=>!!Number.isFinite(s.codeFontSize)&&(s.codeFontSize??0)>=(s.codeFontMax??100));return(e,o)=>(i(),T(p,null,[s.showHeader?(i(),T(`div`,Z,[n(e.$slots,`header-left`),n(e.$slots,`header-right`,{},()=>[m(`div`,ie,[t.diffStats?(i(),T(`div`,{key:0,class:`code-diff-stats`,"aria-label":t.diffStatsAriaLabel},[m(`span`,$,`-`+b(t.diffStats.removed),1),m(`span`,ae,`+`+b(t.diffStats.added),1)],8,Q)):C(``,!0),s.showCopyButton?(i(),T(`button`,{key:1,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,"aria-label":t.copyText?y(j)(`common.copied`)||`Copied`:y(j)(`common.copy`)||`Copy`,onClick:o[0]||=e=>c(`copy`),onMouseenter:o[1]||=e=>F(e),onFocus:o[2]||=e=>F(e),onMouseleave:P,onBlur:P},[t.copyText?(i(),T(`svg`,ce,[...o[14]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])):(i(),T(`svg`,se,[...o[13]||=[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),m(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})],-1)]]))],40,oe)):C(``,!0),s.showCollapseButton?(i(),T(`button`,{key:2,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,"aria-pressed":t.isCollapsed,onClick:o[3]||=e=>c(`toggleCollapse`),onMouseenter:o[4]||=e=>N(e,t.isCollapsed?y(j)(`common.expand`)||`Expand`:y(j)(`common.collapse`)||`Collapse`),onFocus:o[5]||=e=>N(e,t.isCollapsed?y(j)(`common.expand`)||`Expand`:y(j)(`common.collapse`)||`Collapse`),onMouseleave:P,onBlur:P},[(i(),T(`svg`,{style:u({rotate:t.isCollapsed?`0deg`:`90deg`}),xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[...o[15]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m9 18l6-6l-6-6`},null,-1)]],4))],40,le)):C(``,!0),A.value?(i(),T(`div`,ue,[m(`button`,{ref_key:`moreBtnRef`,ref:g,type:`button`,class:`code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors`,"aria-expanded":l.value,"aria-haspopup":`true`,onClick:f(E,[`stop`]),onMouseenter:o[6]||=e=>N(e,y(j)(`common.more`)||`More`),onFocus:o[7]||=e=>N(e,y(j)(`common.more`)||`More`),onMouseleave:P,onBlur:P},[...o[16]||=[w(`<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="action-icon"><g fill="currentColor"><circle cx="12" cy="5" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle></g></svg>`,1)]],40,de),r(v,{name:`code-menu`},{default:x(()=>[l.value?(i(),T(`div`,{key:0,ref_key:`moreMenuRef`,ref:d,class:`code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]`,role:`menu`},[s.showFontSizeButtons&&s.enableFontSizeControl?(i(),T(p,{key:0},[m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:I.value,onClick:o[8]||=e=>{y(z)(!0),c(`decreaseFont`)}},[o[17]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14`})],-1),m(`span`,null,b(y(j)(`common.fontSmaller`)||`Font size −`),1)],8,fe),m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:L.value,onClick:o[9]||=e=>{y(z)(!0),c(`resetFont`)}},[o[18]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),m(`path`,{d:`M3 3v5h5`})])],-1),m(`span`,null,b(y(j)(`common.fontReset`)||`Font size reset`),1)],8,pe),m(`button`,{type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors`,disabled:R.value,onClick:o[10]||=e=>{y(z)(!0),c(`increaseFont`)}},[o[19]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`})],-1),m(`span`,null,b(y(j)(`common.fontLarger`)||`Font size +`),1)],8,me)],64)):C(``,!0),s.showExpandButton?(i(),T(`button`,{key:1,type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors`,onClick:o[11]||=e=>{D(),c(`toggleExpand`)}},[t.isExpanded?(i(),T(`svg`,he,[...o[20]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`},null,-1)]])):(i(),T(`svg`,ge,[...o[21]||=[m(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`},null,-1)]])),m(`span`,null,b(t.isExpanded?y(j)(`common.collapse`)||`Collapse`:y(j)(`common.expand`)||`Expand`),1)])):C(``,!0),t.isPreviewable&&s.showPreviewButton?(i(),T(`button`,{key:2,type:`button`,role:`menuitem`,class:`flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors`,onClick:o[12]||=e=>{D(),c(`preview`)}},[o[22]||=m(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`action-icon`},[m(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[m(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0`}),m(`circle`,{cx:`12`,cy:`12`,r:`3`})])],-1),m(`span`,null,b(y(j)(`common.preview`)||`Preview`),1)])):C(``,!0)],512)):C(``,!0)]),_:1})])):C(``,!0)])])])):C(``,!0),a(m(`div`,{class:S([`code-block-shell-content`,{"code-block-shell-content--collapsed":t.isCollapsed}])},[n(e.$slots,`default`)],2),[[_,!!t.stream||!t.loading]]),a(m(`div`,_e,[n(e.$slots,`loading`,{},()=>[o[23]||=m(`div`,{class:`loading-skeleton`},[m(`div`,{class:`skeleton-line`}),m(`div`,{class:`skeleton-line`}),m(`div`,{class:`skeleton-line short`})],-1)])],512),[[_,!t.stream&&t.loading]]),m(`span`,ve,b(t.copyText?y(j)(`common.copied`)||`Copied`:``),1)],64))}}),be={class:`code-header-main`},xe=[`innerHTML`],Se={class:`code-header-copy`},Ce={class:`code-header-title`},we={key:0,class:`code-header-caption`},Te=s(J(q({},{inheritAttrs:!1}),{__name:`PreCodeBlock`,props:{codeBlockOptions:{},clipboardWriter:{},darkTheme:{},isDark:{type:Boolean,default:!1},lightTheme:{},resolvedVisualOptions:{},showCopyButton:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showToolbar:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},theme:{},themes:{},node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean,default:!0},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},emits:[`copy`],setup(a,{emit:s}){let f=a,p=s,_=c(),v=h(()=>{let e=_,{class:t,style:n}=e;return((e,t)=>{var n={};for(var r in e)W.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&U)for(var r of U(e))t.indexOf(r)<0&&G.call(e,r)&&(n[r]=e[r]);return n})(e,[`class`,`style`])}),S=e(null),w=e(!1),D,O=g(I,void 0),k=h(()=>f.showLineNumbers??!0!==f.codeBlockOptions?.disableLineNumbers),R=h(()=>ee(f.node)),z=h(()=>!0===f.diffInline||R.value&&te(f.codeBlockOptions??{})),B=h(()=>A(String(f.node?.language??``))),V=h(()=>{let e=B.value;return e?j[e]||e.charAt(0).toUpperCase()+e.slice(1):j[``]||`Plain Text`}),H=h(()=>M(String(f.node?.raw??``),V.value,ee(f.node))),re=h(()=>(E.value,X(B.value,O))),K=h(()=>f.resolvedVisualOptions??F(f.codeBlockOptions)),Z=h(()=>ne({darkTheme:f.darkTheme,isDark:f.isDark,lightTheme:f.lightTheme,theme:f.theme,themes:f.themes})),ie=h(()=>J(q({"--markstream-code-fallback-bg":Z.value.background,"--markstream-code-fallback-fg":Z.value.foreground},Z.value.builtin?{"--markstream-code-theme-bg":Z.value.background,"--markstream-code-theme-fg":Z.value.foreground,"--markstream-code-theme-line-number":Z.value.lineNumber}:{}),{"--markstream-diff-added-line-fill":Z.value.diffAddedLine,"--markstream-diff-added-number-fill":Z.value.diffAddedNumber,"--markstream-diff-editor-bg":Z.value.background,"--markstream-diff-removed-line-fill":Z.value.diffRemovedLine,"--markstream-diff-removed-number-fill":Z.value.diffRemovedNumber,"--markstream-diff-shell-bg":Z.value.background,"--markstream-pre-resolved-theme-bg":Z.value.background,"--markstream-pre-resolved-theme-fg":Z.value.foreground,"--markstream-pre-resolved-theme-line-number":Z.value.lineNumber,backgroundColor:Z.value.background,color:Z.value.foreground})),Q=h(()=>[`code-pre-fallback`,_.class,{"is-wrap":K.value.overflow===`wrap`}]),$=h(()=>{let e=K.value,t=R.value&&typeof f.reservedHeightPx==`number`&&Number.isFinite(f.reservedHeightPx)&&f.reservedHeightPx>0?`${Math.ceil(f.reservedHeightPx)}px`:void 0;return q(J(q(q({},N(e,{padding:f.codeBlockOptions?.padding,showLineNumbers:k.value,diff:R.value})),P(Z.value)),{"--markstream-diff-fallback-handoff-height":t??`auto`}),t?{height:t,minHeight:t,maxHeight:t}:{})});function ae(){return Y(this,null,function*(){let e=String((n=(t=f.node)?.code)??``);var t,n;try{yield function(e){return Y(this,null,function*(){if(f.clipboardWriter)return void(yield f.clipboardWriter(e));if(typeof navigator<`u`&&navigator.clipboard&&typeof navigator.clipboard.writeText==`function`)return void(yield navigator.clipboard.writeText(e));if(typeof document>`u`||!document.body)throw Error(`Clipboard API is unavailable`);let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();try{if(!document.execCommand(`copy`))throw Error(`Clipboard copy command failed`)}finally{t.remove()}})}(e),w.value=!0,p(`copy`,e),D&&clearTimeout(D),D=setTimeout(()=>{w.value=!1,D=void 0},1e3)}catch(e){w.value=!1,console.error(`[markstream-vue] Failed to copy preformatted code.`,e)}})}return o(()=>{D&&clearTimeout(D)}),(e,a)=>f.showToolbar?(i(),T(`div`,{key:0,style:u(ie.value),class:`code-block-container rounded-lg border`},[r(ye,{"show-header":f.showHeader,"show-copy-button":f.showCopyButton,"show-collapse-button":!1,"show-font-size-buttons":!1,"show-expand-button":!1,"show-preview-button":!1,"show-tooltips":f.showTooltips,"copy-text":w.value,stream:``,onCopy:ae},d({"header-left":x(()=>[n(e.$slots,`header-left`,{},()=>[m(`div`,be,[m(`span`,{class:`icon-slot h-4 w-4 flex-shrink-0`,innerHTML:re.value},null,8,xe),m(`div`,Se,[m(`div`,Ce,b(H.value.title),1),H.value.caption?(i(),T(`div`,we,b(H.value.caption),1)):C(``,!0)])])])]),default:x(()=>[r(L,t({ref_key:`preNodeRef`,ref:S},v.value,{class:Q.value,style:[y(_).style,$.value],node:f.node,loading:f.loading,"show-line-numbers":k.value,"diff-inline":z.value,"diff-hide-unchanged-regions":f.diffHideUnchangedRegions,"reserved-height-px":f.reservedHeightPx,"data-markstream-code-theme":Z.value.name}),null,16,[`class`,`style`,`node`,`loading`,`show-line-numbers`,`diff-inline`,`diff-hide-unchanged-regions`,`reserved-height-px`,`data-markstream-code-theme`])]),_:2},[e.$slots[`header-right`]?{name:`header-right`,fn:x(()=>[n(e.$slots,`header-right`)]),key:`0`}:void 0]),1032,[`show-header`,`show-copy-button`,`show-tooltips`,`copy-text`])],4)):(i(),l(L,t({key:1,ref_key:`preNodeRef`,ref:S},v.value,{class:Q.value,style:[y(_).style,$.value],node:f.node,loading:f.loading,"show-line-numbers":k.value,"diff-inline":z.value,"diff-hide-unchanged-regions":f.diffHideUnchangedRegions,"reserved-height-px":f.reservedHeightPx,"data-markstream-code-theme":Z.value.name}),null,16,[`class`,`style`,`node`,`loading`,`show-line-numbers`,`diff-inline`,`diff-hide-unchanged-regions`,`reserved-height-px`,`data-markstream-code-theme`]))}}));export{ye as n,X as r,Te as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{$ as e,C as t,G as n,I as r,J as i,N as a,P as o,S as s,T as c,d as l,et as ee,f as u,g as d,i as f,j as p,nt as m,ot as h,rt as g,s as te,v as _,y as v,z as y}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{
|
|
1
|
+
import{$ as e,C as t,G as n,I as r,J as i,N as a,P as o,S as s,T as c,d as l,et as ee,f as u,g as d,i as f,j as p,nt as m,ot as h,rt as g,s as te,v as _,y as v,z as y}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{c as b,i as x,l as S,t as C,u as w}from"./index-C3vlvXwW.js";var ne={class:`terminals`},re={class:`term-tabs`},ie=[`title`,`onClick`],T=[`aria-label`,`onClick`],E=[`value`],D=[`disabled`],ae={key:0,class:`term-error`},oe={class:`term-body`},se={key:0,class:`term-empty`},O=[`disabled`],k=S(c({__name:`TerminalPanel`,props:{hostId:{},cwd:{},visible:{type:Boolean},api:{type:Function}},setup(c){f(e=>({v111e7199:m(C)?`#141517`:`#fbfbfc`}));let S=c,k=e([]),A=e([]),j=e(``),M=e(null),N=e(``),P=e(!1),F=e(null),I=()=>`/hosts/${encodeURIComponent(S.hostId)}/terminals`,L=ee(null),R=null,z=null,B,V=``,H=!1,U=null,W={dark:{background:`#141517`,foreground:`#e4e4e7`,cursor:`#e4e4e7`,selectionBackground:`#3a3b42`},light:{background:`#fbfbfc`,foreground:`#18181b`,cursor:`#18181b`,selectionBackground:`#d6d6dc`}};async function G(){if(!(L.value||!F.value||H))return U||(U=ce().finally(()=>{U=null}),U)}async function ce(){let[{Terminal:e},{FitAddon:t},{Unicode11Addon:n},{WebglAddon:r}]=await Promise.all([x(()=>import(`./xterm-BMsy1fDS.js`),[]),x(()=>import(`./addon-fit-DIOBYJe3.js`),[]),x(()=>import(`./addon-unicode11-C82cyeHQ.js`),[]),x(()=>import(`./addon-webgl-C3a5wC6k.js`),[])]);if(await document.fonts.ready,H||!F.value)return;let i=new e({fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--mono`)||`monospace`,fontSize:14,lineHeight:1.2,scrollback:5e3,cursorBlink:!1,allowProposedApi:!0,theme:C.value?W.dark:W.light});R=new t,i.loadAddon(R),i.loadAddon(new n),i.unicode.activeVersion=`11`,i.open(F.value);let a=new r;try{i.loadAddon(a),a.onContextLoss(()=>a.dispose())}catch{a.dispose()}i.onData(J),L.value=i,B=new ResizeObserver(()=>Y()),B.observe(F.value),Y()}n(()=>S.visible,async e=>{e&&(await p(),Y(),L.value?.focus())}),n(C,e=>L.value&&(L.value.options.theme=e?W.dark:W.light));let K=``,q=!1;function J(e){K+=e,le()}async function le(){if(q||!K||!M.value)return;q=!0;let e=M.value;for(;K;){let t=K.slice(0,32768);K=K.slice(t.length);try{await S.api(`${I()}/${e}/input`,`POST`,{data:t})}catch(e){N.value=e.message,K=``}}q=!1}function Y(){if(!L.value||!R||!F.value?.clientWidth)return;R.fit();let e=`${L.value.rows}x${L.value.cols}`;e!==V&&M.value&&(V=e,S.api(`${I()}/${M.value}/input`,`POST`,{rows:L.value.rows,cols:L.value.cols}).catch(()=>{}))}function X(e){z?.close(),M.value=e,V=``,L.value?.reset(),z=b({url:()=>`/api${I()}/${e}/stream?rows=${L.value?.rows??24}&cols=${L.value?.cols??80}`,onMessage:e=>{let t=e;t.t===`reset`?L.value?.reset():t.t===`o`&&t.d?L.value?.write(Uint8Array.from(atob(t.d),e=>e.charCodeAt(0))):t.t===`exit`&&(L.value?.write(`\r
|
|
2
2
|
\x1B[2m[process exited]\x1B[0m\r
|
|
3
|
-
`),Z())}}),Y(),L.value?.focus()}async function Z(){try{k.value=await S.api(`${I()}?cwd=${encodeURIComponent(S.cwd)}`),N.value=``}catch(e){N.value=e.message}}async function Q(){P.value=!0;try{await G();let e=await S.api(I(),`POST`,{cwd:S.cwd,...j.value?{profileId:j.value}:{},rows:L.value?.rows??24,cols:L.value?.cols??80});k.value=[...k.value,e],X(e.id)}catch(e){N.value=e.message}finally{P.value=!1}}async function ue(e){try{await S.api(`${I()}/${e}`,`DELETE`)}catch{}k.value=k.value.filter(t=>t.id!==e),M.value===e&&(z?.close(),z=null,M.value=null,L.value?.reset(),k.value[0]&&X(k.value[0].id))}async function $(){A.value=[],j.value=``;let e=S.hostId;S.api(`/hosts/${encodeURIComponent(e)}/settings`).then(t=>{e===S.hostId&&(A.value=t.config.terminalProfiles??[])}).catch(()=>{}),z?.close(),z=null,M.value=null,await Z(),await p(),await G(),H||k.value[0]&&X(k.value[0].id)}return a(()=>{$().catch(e=>{N.value=e.message})}),n(()=>[S.hostId,S.cwd],$),o(()=>{H=!0,z?.close(),B?.disconnect(),L.value?.dispose()}),(e,n)=>(r(),v(`div`,ne,[d(`div`,re,[(r(!0),v(u,null,y(k.value,(e,n)=>(r(),v(`button`,{key:e.id,class:g([`term-tab`,{chosen:e.id===M.value}]),title:e.title||e.name,onClick:t=>X(e.id)},[t(
|
|
3
|
+
`),Z())}}),Y(),L.value?.focus()}async function Z(){try{k.value=await S.api(`${I()}?cwd=${encodeURIComponent(S.cwd)}`),N.value=``}catch(e){N.value=e.message}}async function Q(){P.value=!0;try{await G();let e=await S.api(I(),`POST`,{cwd:S.cwd,...j.value?{profileId:j.value}:{},rows:L.value?.rows??24,cols:L.value?.cols??80});k.value=[...k.value,e],X(e.id)}catch(e){N.value=e.message}finally{P.value=!1}}async function ue(e){try{await S.api(`${I()}/${e}`,`DELETE`)}catch{}k.value=k.value.filter(t=>t.id!==e),M.value===e&&(z?.close(),z=null,M.value=null,L.value?.reset(),k.value[0]&&X(k.value[0].id))}async function $(){A.value=[],j.value=``;let e=S.hostId;S.api(`/hosts/${encodeURIComponent(e)}/settings`).then(t=>{e===S.hostId&&(A.value=t.config.terminalProfiles??[])}).catch(()=>{}),z?.close(),z=null,M.value=null,await Z(),await p(),await G(),H||k.value[0]&&X(k.value[0].id)}return a(()=>{$().catch(e=>{N.value=e.message})}),n(()=>[S.hostId,S.cwd],$),o(()=>{H=!0,z?.close(),B?.disconnect(),L.value?.dispose()}),(e,n)=>(r(),v(`div`,ne,[d(`div`,re,[(r(!0),v(u,null,y(k.value,(e,n)=>(r(),v(`button`,{key:e.id,class:g([`term-tab`,{chosen:e.id===M.value}]),title:e.title||e.name,onClick:t=>X(e.id)},[t(w,{name:`terminal`,size:12}),d(`span`,null,h(e.title||e.name||`Terminal ${n+1}`),1),d(`span`,{class:`term-close`,role:`button`,"aria-label":`Close `+(e.title||e.name),onClick:l(t=>ue(e.id),[`stop`])},[t(w,{name:`close`,size:11})],8,T)],10,ie))),128)),A.value.length?i((r(),v(`select`,{key:0,"onUpdate:modelValue":n[0]||=e=>j.value=e,"aria-label":`New terminal profile`,style:{"max-width":`150px`}},[n[1]||=d(`option`,{value:``},`Default shell`,-1),(r(!0),v(u,null,y(A.value,e=>(r(),v(`option`,{key:e.id,value:e.id},h(e.name),9,E))),128))],512)),[[te,j.value]]):_(``,!0),d(`button`,{class:`icon-btn term-new`,title:`New terminal`,"aria-label":`New terminal`,disabled:P.value,onClick:Q},[t(w,{name:`plus`,size:14})],8,D)]),N.value?(r(),v(`p`,ae,[t(w,{name:`alert`,size:13}),s(h(N.value),1)])):_(``,!0),d(`div`,oe,[d(`div`,{ref_key:`host`,ref:F,class:g([`term-host`,{hidden:!M.value}])},null,2),M.value?_(``,!0):(r(),v(`div`,se,[n[3]||=d(`p`,null,`No terminal open in this workspace.`,-1),d(`button`,{class:`btn btn-outline`,disabled:P.value,onClick:Q},[t(w,{name:`terminal`,size:14}),n[2]||=s(`Open terminal`,-1)],8,O)]))])]))}}),[[`__scopeId`,`data-v-264332b6`]]);export{k as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,C as t,G as n,I as r,J as i,M as a,S as o,T as s,_ as c,at as l,g as u,j as d,l as f,m as p,n as m,ot as h,q as g,rt as _}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{v}from"./MarkdownMessage-
|
|
1
|
+
import{$ as e,C as t,G as n,I as r,J as i,M as a,S as o,T as s,_ as c,at as l,g as u,j as d,l as f,m as p,n as m,ot as h,q as g,rt as _}from"./vue.runtime.esm-bundler-DwGo9CTz.js";import{v}from"./MarkdownMessage-BC0PlDsE.js";import{i as y}from"./index-C3vlvXwW.js";var b=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),x=[`id`],S=[`data-placement`],C=v(s({__name:`Tooltip`,props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(s){let v=s,C=e(null),w=e(null),T=e({transform:`translate3d(0px, 0px, 0px)`,left:`0px`,top:`0px`}),E=e({}),D=e(v.placement??`top`),O=e(!1),k=null,A=null,j=null,M=null,N=null,P=0;function F(){return M?Promise.resolve(M):(N||=y(()=>import(`./floating-ui.dom-WZBoikmf.js`).then(e=>(M=e,e)),[]).catch(e=>{throw N=null,e}),N)}function I(){k&&=(k(),null),A=null,j=null}function L(e){return b(this,null,function*(){let t=v.anchorEl,n=C.value;if(!v.visible||!t||!n||A===t&&j===n)return;let{autoUpdate:r}=yield F();e()&&v.visible&&v.anchorEl===t&&C.value===n&&(I(),A=t,j=n,k=r(t,n,()=>{R().catch(()=>{z()})}))})}function R(){return b(this,null,function*(){let e=v.anchorEl,t=C.value;if(!v.visible||!e||!t)return!1;let{arrow:n,computePosition:r,flip:i,offset:a,shift:o}=yield F();if(!v.visible||v.anchorEl!==e||C.value!==t)return!1;let s=[a(v.offset??6),i(),o({padding:6}),...w.value?[n({element:w.value,padding:4})]:[]],{x:c,y:l,placement:u,middlewareData:d}=yield r(e,t,{placement:v.placement??`top`,middleware:s,strategy:`fixed`});if(!v.visible||v.anchorEl!==e||C.value!==t)return!1;if(T.value.transform=`translate3d(${Math.round(c)}px, ${Math.round(l)}px, 0)`,T.value.left=`0px`,T.value.top=`0px`,D.value=u,d.arrow&&w.value){let{x:e,y:t}=d.arrow,n={top:`bottom`,bottom:`top`,left:`right`,right:`left`}[u.split(`-`)[0]];E.value={left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,[n]:`-3px`}}return!0})}function z(){let e=v.anchorEl,t=C.value;if(!e||!t)return!1;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=v.offset??6,a=v.placement??`top`,o=n.left,s=n.top;return a===`bottom`?s=n.bottom+i:a===`left`?o=n.left-r.width-i:a===`right`?o=n.right+i:s=n.top-r.height-i,T.value.transform=`translate3d(${Math.round(Math.max(0,o))}px, ${Math.round(Math.max(0,s))}px, 0)`,T.value.left=`0px`,T.value.top=`0px`,D.value=a,E.value={},!0}n(()=>v.visible,e=>b(null,null,function*(){let t=++P;if(e){if(O.value=!1,yield d(),t!==P||!v.visible)return;if(v.anchorEl&&C.value)try{let e=v.anchorEl,n=C.value,r=e.getBoundingClientRect();if(!(yield R())||t!==P||!v.visible||v.anchorEl!==e||C.value!==n)return;let i=T.value.transform;if(v.originX!=null&&v.originY!=null){let e=Math.abs(Number(v.originX)-r.left),n=Math.abs(Number(v.originY)-r.top);if(Math.hypot(e,n)>120){if(T.value.transform=`translate3d(${Math.round(v.originX)}px, ${Math.round(v.originY)}px, 0)`,yield d(),t!==P||!v.visible||(O.value=!0,yield d(),t!==P||!v.visible))return;T.value.transform=i}else O.value=!0}else O.value=!0;yield L(()=>t===P)}catch{if(t!==P||!v.visible)return;if(O.value=z(),v.anchorEl&&C.value)try{yield L(()=>t===P)}catch{}}else O.value=!0}else O.value=!1,I()}));let B=0;return n([()=>v.anchorEl,()=>v.placement,()=>v.content],()=>b(null,null,function*(){let e=++B;if(v.visible&&v.anchorEl&&C.value){if(yield d(),e!==B||!v.visible||!v.anchorEl||!C.value)return;try{let t=yield R();if(e!==B||!v.visible||!v.anchorEl||!C.value)return;t||z()}catch{z()}yield L(()=>e===B)}})),a(()=>{P+=1,I()}),(e,n)=>(r(),c(p,{to:`body`},[u(`div`,{class:_([`markstream-vue`,{dark:s.isDark}])},[t(m,{name:`tooltip`,appear:``},{default:g(()=>[i(u(`div`,{id:v.id,ref_key:`tooltip`,ref:C,style:l({position:`fixed`,left:T.value.left,top:T.value.top,transform:T.value.transform,visibility:O.value?`visible`:`hidden`,pointerEvents:O.value?void 0:`none`}),class:`tooltip-element`,role:`tooltip`},[o(h(s.content)+` `,1),u(`div`,{ref_key:`arrowEl`,ref:w,class:`tooltip-arrow`,"data-placement":D.value,style:l(E.value)},null,12,S)],12,x),[[f,s.visible]])]),_:1})],2)]))}}),[[`__scopeId`,`data-v-c606ee4c`]]);export{C as default};
|
|
Binary file
|
|
Binary file
|