dootask/public/js/build/preview.480dc4c1.js
2025-03-30 11:13:39 +08:00

2 lines
2.3 KiB
JavaScript
Vendored

import{V as t,d as s,a as n,b as a,c as l,_ as u,e as _,v as c}from"./@kangc.92e0b796.js";import{P as v}from"./prismjs.ed627128.js";import{l as o,j as m,n as d}from"./app.30a8687c.js";import{p as f}from"./index.40a8e116.js";import"./@babel.f9bcab46.js";import"./vue.fd9b772e.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.5fefb7d5.js";import"./dayjs.dd4b2d82.js";import"./localforage.4b3d3970.js";import"./markdown-it.bda97caf.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.ab8aeea4.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.897ae552.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./mitt.1ea0a2a3.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.50be9c5e.js";import"./clipboard.058ef547.js";import"./view-design-hi.5e48072b.js";import"./vuedraggable.9fd6afed.js";import"./sortablejs.d74243d9.js";import"./vue-resize-observer.c3c9ca4e.js";import"./element-sea.7f208f9b.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.0bdc1850.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.49abba38.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./lodash.18c5398d.js";var h=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{staticClass:"vmpreview-wrapper",on:{click:e.handleClick}},[i("v-md-preview",{attrs:{text:e.previewContent}})],1)},g=[];o==="zh"||o==="zh-CHT"?t.lang.use("zh-CN",s):t.lang.use("en-US",n);t.use(a());t.use(l());t.use(u());t.use(_());const w={mixins:[f],components:{[t.name]:t},created(){t.use(c,{Prism:v,extend(e){m.initReasoningPlugin(e)}})},computed:{previewContent({value:e}){return m.clearEmptyReasoning(e)}},methods:{handleClick({target:e}){if(e.nodeName==="IMG"){const r=[...this.$el.querySelectorAll("img").values()].map(i=>i.src);if(r.length===0)return;this.$store.dispatch("previewImage",{index:e.src,list:r})}}}},p={};var x=d(w,h,g,!1,C,"73c55ef6",null,null);function C(e){for(let r in p)this[r]=p[r]}var le=function(){return x.exports}();export{le as default};