(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/vk-uview-ui/components/u-parse/libs/trees"],{"0fe3":function(t,e,i){"use strict";(function(t){var r=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("190c")),n={abbr:1,b:1,big:1,code:1,del:1,em:1,i:1,ins:1,label:1,q:1,small:1,span:1,strong:1,sub:1,sup:1},s={Parser:{}},o=a.default.errorImg,u={components:{trees:function(){Promise.resolve().then(function(){return resolve(i("4c5a"))}.bind(null,i)).catch(i.oe)}},name:"trees",data:function(){return{ctrl:[],placeholder:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="225"/>',errorImg:o,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 e,i=this.nodes.length;e=this.nodes[--i];)if("img"==e.name)this.top.imgList.setItem(e.attrs.i,e.attrs["original-src"]||e.attrs.src);else if("video"==e.name||"audio"==e.name){var r;"video"==e.name?r=t.createVideoContext(e.attrs.id,this):this.$refs[e.attrs.id]&&(r=this.$refs[e.attrs.id][0]),r&&(r.id=e.attrs.id,this.top.videoContexts.push(r))}},play:function(t){var e=this.top.videoContexts;if(e.length>1&&this.top.autopause)for(var i=e.length;i--;)e[i].id!=t.currentTarget.dataset.id&&e[i].pause()},imgtap:function(e){var i=e.currentTarget.dataset.attrs;if(!i.ignore){var r=!0,a={id:e.target.id,src:i.src,ignore:function(){return r=!1}};if(s.Parser.onImgtap&&s.Parser.onImgtap(a),this.top.$emit("imgtap",a),r){var n=this.top.imgList,o=n[i.i]?parseInt(i.i):(n=[i.src],0);t.previewImage({current:o,urls:n})}}},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 i=!0,r=e.currentTarget.dataset.attrs;if(r.ignore=function(){return i=!1},s.Parser.onLinkpress&&s.Parser.onLinkpress(r),this.top.$emit("linkpress",r),i){if(r["app-id"])return t.navigateToMiniProgram({appId:r["app-id"],path:r.path});r.href&&("#"==r.href[0]?this.top.useAnchor&&this.top.navigateTo({id:r.href.substring(1)}):0==r.href.indexOf("http")||0==r.href.indexOf("//")?t.setClipboardData({data:r.href,success:function(){return t.showToast({title:"链接已复制"})}}):t.navigateTo({url:r.href,fail:function(){t.switchTab({url:r.href})}}))}},error:function(t){var e=t.currentTarget,i=e.dataset.source,r=e.dataset.i;if("video"==i||"audio"==i){var a=this.ctrl[r]?this.ctrl[r].i+1:1;a<this.nodes[r].attrs.source.length&&this.$set(this.ctrl,r,a),t.detail.__args__&&(t.detail=t.detail.__args__[0])}else o&&"img"==i&&(this.top.imgList.setItem(e.dataset.index,o),this.$set(this.ctrl,r,3));this.top&&this.top.$emit("error",{source:i,target:e,errMsg:t.detail.errMsg})},_loadVideo:function(t){this.$set(this.ctrl,t.target.dataset.i,0)},use:function(t){return!t.c&&!n[t.name]&&-1==(t.attrs.style||"").indexOf("display:inline")}}};e.default=u}).call(this,i("543d")["default"])},"1e88":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.nodes,(function(e,i){var r=t.__get_orig(e),a="img"==e.name||"text"==e.type||"br"==e.name||(e.lazyLoad&&!e.attrs.autoplay||"video"==e.name&&!t.loadVideo)&&void 0==t.ctrl[i]||"video"==e.name||"audio"==e.name||"a"==e.name||"li"==e.name||"table"==e.name&&e.c&&e.flag||"table"==e.name&&e.c?null:t.use(e);return{$orig:r,m0:a}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},a=[]},"477c":function(t,e,i){"use strict";var r=i("8764"),a=i.n(r);a.a},"4c5a":function(t,e,i){"use strict";i.r(e);var r=i("1e88"),a=i("9960");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("477c");var s=i("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=o.exports},8764:function(t,e,i){},9960:function(t,e,i){"use strict";i.r(e);var r=i("0fe3"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(n);e["default"]=a.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/vk-uview-ui/components/u-parse/libs/trees-create-component',
    {
        'uni_modules/vk-uview-ui/components/u-parse/libs/trees-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("4c5a"))
        })
    },
    [['uni_modules/vk-uview-ui/components/u-parse/libs/trees-create-component']]
]);
