(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/discoverWaterfall/WaterfallsFlow"],{"35c3":function(t,i,e){"use strict";var s=e("3eb1"),l=e.n(s);l.a},"3eb1":function(t,i,e){},"831d":function(t,i,e){"use strict";e.r(i);var s=e("e23b"),l=e("de41");for(var n in l)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return l[t]}))}(n);e("35c3");var h=e("828b"),a=Object(h["a"])(l["default"],s["b"],s["c"],!1,null,"dae074b2",null,!1,s["a"],void 0);i["default"]=a.exports},dd9d:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e("769c"),e("4d38");var s={components:{WaterfallsFlowItem:function(){e.e("components/discoverWaterfall/WaterfallsFlowItem").then(function(){return resolve(e("c952"))}.bind(null,e)).catch(e.oe)}},props:{wfList:{type:Array,require:!0},type:{type:Number,default:0},updateNum:{type:Number,default:10},border:{type:Boolean,default:!1},isSelf:{type:Boolean,default:!1}},data:function(){return{allList:[],leftList:[],rightList:[],mark:0,boxHeight:[]}},watch:{wfList:{handler:function(t,i){var e=this;(!this.wfList.length||this.wfList.length===this.updateNum&&this.wfList.length<=this.allList.length)&&(this.allList=[],this.leftList=[],this.rightList=[],this.boxHeight=[],this.mark=0),this.wfList.length&&(this.allList=this.wfList,this.leftList=[],this.rightList=[],this.boxHeight=[],this.allList.forEach((function(t,i){(e.allList.length<3||e.allList.length<=7&&e.allList.length-i>1||e.allList.length>7&&e.allList.length-i>2)&&(i%2?e.rightList.push(t):e.leftList.push(t))})),this.allList.length<3?this.mark=this.allList.length+1:this.allList.length<=7?this.mark=this.allList.length-1:this.mark=this.allList.length-2,this.mark<this.allList.length&&this.waterFall())},immediate:!0,deep:!0},mounted:function(){},mark:function(){var t=this.allList.length;this.mark<t&&0!==this.mark&&this.boxHeight.length&&this.waterFall()}},methods:{waterFall:function(){var t=this.mark;if(0==t)this.leftList.push(this.allList[t]),this.getViewHeight(0);else if(1==t)this.rightList.push(this.allList[t]),this.getViewHeight(1);else{if(this.boxHeight.length){var i=this.boxHeight[0]>this.boxHeight[1]?1:0;i?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length<this.leftList.length?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t]);this.getViewHeight()}},getViewHeight:function(){var i=this;this.$nextTick((function(){setTimeout((function(){t.createSelectorQuery().in(i).select("#right").boundingClientRect((function(e){e&&(i.boxHeight[1]=e.height),t.createSelectorQuery().in(i).select("#left").boundingClientRect((function(t){t&&(i.boxHeight[0]=t.height),i.mark=i.mark+1})).exec()})).exec()}),100)}))},itemTap:function(i){if(1==i.content_type)t.navigateTo({url:"/pages/discover/discoverDetails/index?id="+i.id});else{this.isSelf?t.navigateTo({url:"/pages/discover/discoverVideo/index?id="+i.id+"&relation_id="+i.relation_id}):t.navigateTo({url:"/pages/discover/discoverVideo/index?id="+i.id})}}}};i.default=s}).call(this,e("df3c")["default"])},de41:function(t,i,e){"use strict";e.r(i);var s=e("dd9d"),l=e.n(s);for(var n in s)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(n);i["default"]=l.a},e23b:function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return l})),e.d(i,"a",(function(){}));var s=function(){var t=this.$createElement,i=(this._self._c,this.leftList.length),e=this.rightList.length;this.$mp.data=Object.assign({},{$root:{g0:i,g1:e}})},l=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/discoverWaterfall/WaterfallsFlow-create-component',
    {
        'components/discoverWaterfall/WaterfallsFlow-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("831d"))
        })
    },
    [['components/discoverWaterfall/WaterfallsFlow-create-component']]
]);
