(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/vk-uview-ui/components/u-parse/libs/trees"],{2621:function(t,e,r){},"298a":function(t,e,r){"use strict";r.r(e);var i=r("2a1d"),a=r("dd4b");for(var n in a)"default"!==n&&function(t){r.d(e,t,(function(){return a[t]}))}(n);r("e50a");var s,o=r("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=u.exports},"2a1d":function(t,e,r){"use strict";var i;r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,r=(t._self._c,t.__map(t.nodes,(function(e,r){var i=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[r]||"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:i,m0:a}})));t.$mp.data=Object.assign({},{$root:{l0:r}})},n=[]},bdaa:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(r("ee45"));function a(t){return t&&t.__esModule?t:{default:t}}var 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=function(){Promise.resolve().then(function(){return resolve(r("298a"))}.bind(null,r)).catch(r.oe)},u=i.default.errorImg,d={components:{trees:o},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:u,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,r=this.nodes.length;e=this.nodes[--r];)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 i;"video"==e.name?i=t.createVideoContext(e.attrs.id,this):this.$refs[e.attrs.id]&&(i=this.$refs[e.attrs.id][0]),i&&(i.id=e.attrs.id,this.top.videoContexts.push(i))}},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,a={id:e.target.id,src:r.src,ignore:function(){return i=!1}};if(s.Parser.onImgtap&&s.Parser.onImgtap(a),this.top.$emit("imgtap",a),i){var n=this.top.imgList,o=n[r.i]?parseInt(r.i):(n=[r.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 r=!0,i=e.currentTarget.dataset.attrs;if(i.ignore=function(){return r=!1},s.Parser.onLinkpress&&s.Parser.onLinkpress(i),this.top.$emit("linkpress",i),r){if(i["app-id"])return t.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("//")?t.setClipboardData({data:i.href,success:function(){return t.showToast({title:"链接已复制"})}}):t.navigateTo({url:i.href,fail:function(){t.switchTab({url:i.href})}}))}},error:function(t){var e=t.currentTarget,r=e.dataset.source,i=e.dataset.i;if("video"==r||"audio"==r){var a=this.ctrl[i]?this.ctrl[i].i+1:1;a<this.nodes[i].attrs.source.length&&this.$set(this.ctrl,i,a),t.detail.__args__&&(t.detail=t.detail.__args__[0])}else u&&"img"==r&&(this.top.imgList.setItem(e.dataset.index,u),this.$set(this.ctrl,i,3));this.top&&this.top.$emit("error",{source:r,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=d}).call(this,r("543d")["default"])},dd4b:function(t,e,r){"use strict";r.r(e);var i=r("bdaa"),a=r.n(i);for(var n in i)"default"!==n&&function(t){r.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},e50a:function(t,e,r){"use strict";var i=r("2621"),a=r.n(i);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__("298a"))
        })
    },
    [['uni_modules/vk-uview-ui/components/u-parse/libs/trees-create-component']]
]);
