(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/jyf-parser/libs/trees"],{494:function(t,e,r){"use strict";r.r(e);var n=r(495),i=r(497);for(var s in i)["default"].indexOf(s)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(s);r(499);var a,o=r(35),u=r(501),c=Object(o["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],a);"function"===typeof u["default"]&&Object(u["default"])(c),c.options.__file="components/jyf-parser/libs/trees.vue",e["default"]=c.exports},495:function(t,e,r){"use strict";r.r(e);var n=r(496);r.d(e,"render",(function(){return n["render"]})),r.d(e,"staticRenderFns",(function(){return n["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return n["recyclableRender"]})),r.d(e,"components",(function(){return n["components"]}))},496:function(t,e,r){"use strict";var n;r.r(e),r.d(e,"render",(function(){return i})),r.d(e,"staticRenderFns",(function(){return a})),r.d(e,"recyclableRender",(function(){return s})),r.d(e,"components",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},s=!1,a=[];i._withStripped=!0},497:function(t,e,r){"use strict";r.r(e);var n=r(498),i=r.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},498:function(t,e,r){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t.Parser={};var i=function(){Promise.resolve().then(function(){return resolve(r(494))}.bind(null,r)).catch(r.oe)},s=r(343).errorImg,a={components:{trees:i},name:"trees",data:function(){return{ctrl:[],placeholder:'data:image/svg+xml;utf8,',errorImg:s,loadVideo:"undefined"==typeof plus,c:"",s:""}},props:{nodes:Array,lazyLoad:Boolean,loading:String},mounted:function(){for(this.top=this.$parent;"parser"!=this.top.$options.name;this.top=this.top.$parent);this.init()},methods:{init:function(){for(var t,e=this.nodes.length;t=this.nodes[--e];)if("img"==t.name)this.top.imgList.setItem(t.attrs.i,t.attrs.src);else if("video"==t.name||"audio"==t.name){var r;"video"==t.name?r=n.createVideoContext(t.attrs.id,this):this.$refs[t.attrs.id]&&(r=this.$refs[t.attrs.id][0]),r&&(r.id=t.attrs.id,this.top.videoContexts.push(r))}},play:function(t){var e=this.top.videoContexts;if(e.length>1&&this.top.autopause)for(var r=e.length;r--;)e[r].id!=t.currentTarget.dataset.id&&e[r].pause()},imgtap:function(e){var r=e.currentTarget.dataset.attrs;if(!r.ignore){var i=!0,s={id:e.target.id,src:r.src,ignore:function(){return i=!1}};if(t.Parser.onImgtap&&t.Parser.onImgtap(s),this.top.$emit("imgtap",s),i){var a=this.top.imgList,o=a[r.i]?parseInt(r.i):(a=[r.src],0);n.previewImage({current:o,urls:a})}}},loadImg:function(t){var e=t.currentTarget.dataset.i;this.lazyLoad&&!this.ctrl[e]?this.$set(this.ctrl,e,1):this.loading&&2!=this.ctrl[e]&&this.$set(this.ctrl,e,2)},linkpress:function(e){var r=!0,i=e.currentTarget.dataset.attrs;if(i.ignore=function(){return r=!1},t.Parser.onLinkpress&&t.Parser.onLinkpress(i),this.top.$emit("linkpress",i),r){if(i["app-id"])return n.navigateToMiniProgram({appId:i["app-id"],path:i.path});i.href&&("#"==i.href[0]?this.top.useAnchor&&this.top.navigateTo({id:i.href.substring(1)}):0==i.href.indexOf("http")||0==i.href.indexOf("//")?n.setClipboardData({data:i.href,success:function(){return n.showToast({title:"链接已复制"})}}):n.navigateTo({url:i.href,fail:function(){n.switchTab({url:i.href})}}))}},error:function(t){var e=t.currentTarget,r=e.dataset.source,n=e.dataset.i;if("video"==r||"audio"==r){var i=this.ctrl[n]?this.ctrl[n].i+1:1;i