@vtj/pro 0.8.149 → 0.8.151

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.
Files changed (40) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +9 -9
  9. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  10. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +14 -14
  11. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  12. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +11 -11
  13. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  14. package/dist/@vtj/materials/deps/vue/vue.global.js +72 -60
  15. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +6 -6
  16. package/dist/assets/{@element-plus-icons-vue-Dc6Vke8I.js → @element-plus-icons-vue-kBg3mnDz.js} +1 -1
  17. package/dist/assets/@vue-reactivity-DMF4ll7U.js +5 -0
  18. package/dist/assets/{@vue-runtime-core-Dv2aaIzE.js → @vue-runtime-core-BfpGOWOA.js} +4 -4
  19. package/dist/assets/@vue-runtime-dom-Dc29j4rP.js +5 -0
  20. package/dist/assets/{@vue-shared-dA1qt5eX.js → @vue-shared-rYQynMsI.js} +3 -3
  21. package/dist/assets/{@vueuse-core-BCtyAGOH.js → @vueuse-core-p0_uHRIU.js} +1 -1
  22. package/dist/assets/{@vueuse-shared-Cn8NxUpp.js → @vueuse-shared-BwDElUZM.js} +1 -1
  23. package/dist/assets/{Editor-C1dy1R3N-ln-rqrRi.js → Editor-C1dy1R3N-bgCT7xJ0.js} +1 -1
  24. package/dist/assets/element-plus-CSy6fwk1.js +21 -0
  25. package/dist/assets/element-plus-DuWaR0LC.css +1 -0
  26. package/dist/assets/{extension-DQUM_cB-.js → extension-9MPfbLOZ.js} +61 -61
  27. package/dist/assets/extension-DE7QqFqv.css +1 -0
  28. package/dist/assets/{index-moxqTM-9.js → index-CPl6oZQc.js} +2 -2
  29. package/dist/assets/{index-DqjQdeos.js → index-DPERMBLk.js} +1 -1
  30. package/dist/assets/{preview-CWGRm45V.js → preview-2sMUli2f.js} +2 -2
  31. package/dist/assets/{vue-CFsOSTF8.js → vue-BJ3zDna1.js} +2 -2
  32. package/dist/assets/{vue-router-Dtd9oFbJ.js → vue-router-C6P8Hq_D.js} +1 -1
  33. package/dist/assets/{vxe-table-BTvzEvWj.js → vxe-table-C8RNTzDn.js} +1 -1
  34. package/dist/index.html +13 -13
  35. package/package.json +10 -10
  36. package/dist/assets/@vue-reactivity-c4thGohU.js +0 -5
  37. package/dist/assets/@vue-runtime-dom-xMS3Znut.js +0 -5
  38. package/dist/assets/element-plus-CqSzUMLn.js +0 -21
  39. package/dist/assets/element-plus-CsJRdetr.css +0 -1
  40. package/dist/assets/extension-CdrxS6tv.css +0 -1
@@ -1 +1 @@
1
- var B=Object.defineProperty,N=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&T(e,n,t[n]);if(v)for(var n of v(t))D.call(t,n)&&T(e,n,t[n]);return e},O=(e,t)=>N(e,U(t));var P=(e,t)=>{var n={};for(var r in e)A.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v)for(var r of v(e))t.indexOf(r)<0&&D.call(e,r)&&(n[r]=e[r]);return n};import{v as j,x as E,y as I,a as d,s as H,z as w,e as _,j as J,A as K,B as Q}from"./@vue-reactivity-c4thGohU.js";import{t as $,j as M,f as k,n as V,x as R}from"./@vue-runtime-core-Dv2aaIzE.js";var X=Object.defineProperty,Y=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))ee.call(t,n)&&x(e,n,t[n]);if(S)for(var n of S(t))te.call(t,n)&&x(e,n,t[n]);return e},re=(e,t)=>Y(e,Z(t));function ge(e,t){var n;const r=H();return R(()=>{r.value=e()},re(ne({},t),{flush:(n=void 0)!=null?n:"sync"})),w(r)}var C;const G=typeof window!="undefined",he=e=>typeof e!="undefined",W=e=>typeof e=="function",Oe=e=>typeof e=="string",m=()=>{},Pe=G&&((C=window==null?void 0:window.navigator)==null?void 0:C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function y(e){return typeof e=="function"?e():j(e)}function L(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function oe(e,t={}){let n,r,o=m;const s=i=>{clearTimeout(i),o(),o=m};return i=>{const a=y(e),l=y(t.maxWait);return n&&s(n),a<=0||l!==void 0&&l<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((c,p)=>{o=t.rejectOnCancel?p:c,l&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(i())},l)),n=setTimeout(()=>{r&&s(r),r=null,c(i())},a)})}}function se(e,t=!0,n=!0,r=!1){let o=0,s,u=!0,i=m,a;const l=()=>{s&&(clearTimeout(s),s=void 0,i(),i=m)};return p=>{const f=y(e),b=Date.now()-o,g=()=>a=p();return l(),f<=0?(o=Date.now(),g()):(b>f&&(n||!u)?(o=Date.now(),g()):t&&(a=new Promise((F,z)=>{i=r?z:F,s=setTimeout(()=>{o=Date.now(),u=!0,F(g()),l()},Math.max(0,f-b))})),!n&&!s&&(s=setTimeout(()=>u=!0,f)),u=!1,a)}}function _e(e){return e}function $e(e,t){let n,r,o;const s=d(!0),u=()=>{s.value=!0,o()};$(e,u,{flush:"sync"});const i=W(t)?t:t.get,a=W(t)?void 0:t.set,l=_((c,p)=>(r=c,o=p,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(f){a==null||a(f)}}));return Object.isExtensible(l)&&(l.trigger=u),l}function ie(e){return E()?(I(e),!0):!1}function ue(e,t=200,n={}){return L(oe(t,n),e)}function be(e,t=200,n={}){const r=d(e.value),o=ue(()=>{r.value=e.value},t,n);return $(e,()=>o()),r}function Fe(e,t=200,n=!1,r=!0,o=!1){return L(se(t,n,r,o),e)}function Te(e,t=!0){M()?k(e):t?e():V(e)}function Ae(e,t,n={}){const{immediate:r=!0}=n,o=d(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,u()}function a(...l){u(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...l)},y(t))}return r&&(o.value=!0,G&&a()),ie(i),{isPending:w(o),start:a,stop:i}}function De(e){return E()?(I(e),!0):!1}function ae(e){return typeof e=="function"?e():j(e)}const Se=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const le=Object.prototype.toString,xe=e=>le.call(e)==="[object Object]",ce=()=>{};function fe(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const q=e=>e();function pe(e=q){const t=d(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:w(t),pause:n,resume:r,eventFilter:o}}function de(e){return M()}function Ce(...e){if(e.length!==1)return Q(...e);const t=e[0];return typeof t=="function"?w(_(()=>({get:t,set:ce}))):d(t)}function ve(e,t,n={}){const s=n,{eventFilter:r=q}=s,o=P(s,["eventFilter"]);return $(e,fe(r,t),o)}function We(e,t,n={}){const c=n,{eventFilter:r}=c,o=P(c,["eventFilter"]),{eventFilter:s,pause:u,resume:i,isActive:a}=pe(r);return{stop:ve(e,t,O(h({},o),{eventFilter:s})),pause:u,resume:i,isActive:a}}function je(e,t={}){if(!J(e))return K(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=_(()=>({get(){return e.value[r]},set(o){var s;if((s=ae(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=O(h({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function Ee(e,t=!0,n){de()?k(e,n):t?e():V(e)}export{Pe as a,Te as b,_e as c,G as d,$e as e,W as f,he as g,ce as h,Oe as i,xe as j,ae as k,De as l,Se as m,m as n,je as o,Ee as p,Ce as q,y as r,be as s,ie as t,Fe as u,Ae as v,We as w,ge as x};
1
+ var B=Object.defineProperty,N=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&T(e,n,t[n]);if(v)for(var n of v(t))D.call(t,n)&&T(e,n,t[n]);return e},O=(e,t)=>N(e,U(t));var P=(e,t)=>{var n={};for(var r in e)A.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v)for(var r of v(e))t.indexOf(r)<0&&D.call(e,r)&&(n[r]=e[r]);return n};import{v as j,x as E,y as I,a as d,s as H,z as w,e as _,j as J,A as K,B as Q}from"./@vue-reactivity-DMF4ll7U.js";import{t as $,j as M,f as k,n as V,x as R}from"./@vue-runtime-core-BfpGOWOA.js";var X=Object.defineProperty,Y=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))ee.call(t,n)&&x(e,n,t[n]);if(S)for(var n of S(t))te.call(t,n)&&x(e,n,t[n]);return e},re=(e,t)=>Y(e,Z(t));function ge(e,t){var n;const r=H();return R(()=>{r.value=e()},re(ne({},t),{flush:(n=void 0)!=null?n:"sync"})),w(r)}var C;const G=typeof window!="undefined",he=e=>typeof e!="undefined",W=e=>typeof e=="function",Oe=e=>typeof e=="string",m=()=>{},Pe=G&&((C=window==null?void 0:window.navigator)==null?void 0:C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function y(e){return typeof e=="function"?e():j(e)}function L(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function oe(e,t={}){let n,r,o=m;const s=i=>{clearTimeout(i),o(),o=m};return i=>{const a=y(e),l=y(t.maxWait);return n&&s(n),a<=0||l!==void 0&&l<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((c,p)=>{o=t.rejectOnCancel?p:c,l&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(i())},l)),n=setTimeout(()=>{r&&s(r),r=null,c(i())},a)})}}function se(e,t=!0,n=!0,r=!1){let o=0,s,u=!0,i=m,a;const l=()=>{s&&(clearTimeout(s),s=void 0,i(),i=m)};return p=>{const f=y(e),b=Date.now()-o,g=()=>a=p();return l(),f<=0?(o=Date.now(),g()):(b>f&&(n||!u)?(o=Date.now(),g()):t&&(a=new Promise((F,z)=>{i=r?z:F,s=setTimeout(()=>{o=Date.now(),u=!0,F(g()),l()},Math.max(0,f-b))})),!n&&!s&&(s=setTimeout(()=>u=!0,f)),u=!1,a)}}function _e(e){return e}function $e(e,t){let n,r,o;const s=d(!0),u=()=>{s.value=!0,o()};$(e,u,{flush:"sync"});const i=W(t)?t:t.get,a=W(t)?void 0:t.set,l=_((c,p)=>(r=c,o=p,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(f){a==null||a(f)}}));return Object.isExtensible(l)&&(l.trigger=u),l}function ie(e){return E()?(I(e),!0):!1}function ue(e,t=200,n={}){return L(oe(t,n),e)}function be(e,t=200,n={}){const r=d(e.value),o=ue(()=>{r.value=e.value},t,n);return $(e,()=>o()),r}function Fe(e,t=200,n=!1,r=!0,o=!1){return L(se(t,n,r,o),e)}function Te(e,t=!0){M()?k(e):t?e():V(e)}function Ae(e,t,n={}){const{immediate:r=!0}=n,o=d(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,u()}function a(...l){u(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...l)},y(t))}return r&&(o.value=!0,G&&a()),ie(i),{isPending:w(o),start:a,stop:i}}function De(e){return E()?(I(e),!0):!1}function ae(e){return typeof e=="function"?e():j(e)}const Se=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const le=Object.prototype.toString,xe=e=>le.call(e)==="[object Object]",ce=()=>{};function fe(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const q=e=>e();function pe(e=q){const t=d(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:w(t),pause:n,resume:r,eventFilter:o}}function de(e){return M()}function Ce(...e){if(e.length!==1)return Q(...e);const t=e[0];return typeof t=="function"?w(_(()=>({get:t,set:ce}))):d(t)}function ve(e,t,n={}){const s=n,{eventFilter:r=q}=s,o=P(s,["eventFilter"]);return $(e,fe(r,t),o)}function We(e,t,n={}){const c=n,{eventFilter:r}=c,o=P(c,["eventFilter"]),{eventFilter:s,pause:u,resume:i,isActive:a}=pe(r);return{stop:ve(e,t,O(h({},o),{eventFilter:s})),pause:u,resume:i,isActive:a}}function je(e,t={}){if(!J(e))return K(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=_(()=>({get(){return e.value[r]},set(o){var s;if((s=ae(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=O(h({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function Ee(e,t=!0,n){de()?k(e,n):t?e():V(e)}export{Pe as a,Te as b,_e as c,G as d,$e as e,W as f,he as g,ce as h,Oe as i,xe as j,ae as k,De as l,Se as m,m as n,je as o,Ee as p,Ce as q,y as r,be as s,ie as t,Fe as u,Ae as v,We as w,ge as x};
@@ -1 +1 @@
1
- var v=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var y=(a,o,t)=>o in a?v(a,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[o]=t,g=(a,o)=>{for(var t in o||(o={}))h.call(o,t)&&y(a,t,o[t]);if(f)for(var t of f(o))E.call(o,t)&&y(a,t,o[t]);return a};var _=(a,o,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(a,o)).next())});import{_ as p,e as V}from"./monaco-editor-WNIdoi5y.js";import{b as w,w as T}from"./@vue-runtime-dom-xMS3Znut.js";import{d as D,f as b,n as k,g as B,t as P,o as A,c as L}from"./@vue-runtime-core-Dv2aaIzE.js";import{a as O}from"./@vue-reactivity-c4thGohU.js";import{C as x,D as C}from"./@vue-shared-dA1qt5eX.js";const S=D({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(a,{expose:o,emit:t}){const r=a;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-05I1Fjzo-InIOOABV.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BkwH8iYE-BHLVOqtg.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-DefZQYbA-C7iMHwg3.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-Dn3IQaLA-DkQynqZ-.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-C8k3yDdT-CJj2fzsN.js"),[],import.meta.url)),new s.default})}};const d=t,c=O();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return b(()=>{k(m)}),B(()=>{e&&e.dispose()}),P(()=>r.modelValue,i=>{e&&e.setValue(i)}),o({getEditor:()=>e}),(i,n)=>(A(),L("div",{class:x(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=w(T(()=>{},["stop"]),["enter"])),style:C({height:r.height})},null,38))}});export{S as default};
1
+ var v=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var y=(a,o,t)=>o in a?v(a,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[o]=t,g=(a,o)=>{for(var t in o||(o={}))h.call(o,t)&&y(a,t,o[t]);if(f)for(var t of f(o))E.call(o,t)&&y(a,t,o[t]);return a};var _=(a,o,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(a,o)).next())});import{_ as p,e as V}from"./monaco-editor-WNIdoi5y.js";import{b as w,w as T}from"./@vue-runtime-dom-Dc29j4rP.js";import{d as D,f as b,n as k,g as B,t as P,o as A,c as L}from"./@vue-runtime-core-BfpGOWOA.js";import{a as O}from"./@vue-reactivity-DMF4ll7U.js";import{C as x,D as C}from"./@vue-shared-rYQynMsI.js";const S=D({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(a,{expose:o,emit:t}){const r=a;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-05I1Fjzo-InIOOABV.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BkwH8iYE-BHLVOqtg.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-DefZQYbA-C7iMHwg3.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-Dn3IQaLA-DkQynqZ-.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-C8k3yDdT-CJj2fzsN.js"),[],import.meta.url)),new s.default})}};const d=t,c=O();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return b(()=>{k(m)}),B(()=>{e&&e.dispose()}),P(()=>r.modelValue,i=>{e&&e.setValue(i)}),o({getEditor:()=>e}),(i,n)=>(A(),L("div",{class:x(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=w(T(()=>{},["stop"]),["enter"])),style:C({height:r.height})},null,38))}});export{S as default};