(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/full_reduce/u-waterfall"],{"33e1":function(t,e,n){},6305:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},u=[]},8626:function(t,e,n){"use strict";var i=n("33e1"),r=n.n(i);r.a},"9c26":function(t,e,n){"use strict";n.r(e);var i=n("6305"),r=n("ec9e");for(var u in r)"default"!==u&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n("8626");var a,c=n("f0c5"),o=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"3bdf2f36",null,!1,i["a"],a);e["default"]=o.exports},cf09:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n,i,r,u,a){try{var c=t[u](a),o=c.value}catch(s){return void n(s)}c.done?e(o):Promise.resolve(o).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function c(t){u(a,i,r,c,o,"next",t)}function o(t){u(a,i,r,c,o,"throw",t)}c(void 0)}))}}var c=function(){Promise.all([n.e("common/vendor"),n.e("components/page-component/app-attr/app-attr")]).then(function(){return resolve(n("8b0c"))}.bind(null,n)).catch(n.oe)},o={name:"u-waterfall",props:{value:{type:Array,required:!0,default:function(){return[]}},addTime:{type:[Number,String],default:200},idKey:{type:String,default:"id"},theme:Object},provide:function(){return{uWaterfall:this}},data:function(){return{leftList:[],rightList:[],tempList:[],children:[],attrShow:0,goods:null}},watch:{copyFlowList:function(t,e){var n=Array.isArray(e)&&e.length>0?e.length:0;this.tempList=this.tempList.concat(this.cloneData(t.slice(n))),this.splitData()}},mounted:function(){this.tempList=this.cloneData(this.copyFlowList),this.splitData()},computed:{copyFlowList:function(){return this.cloneData(this.value)}},methods:{splitData:function(){var t=this;return a(i.default.mark((function e(){var n,r,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.tempList.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.uGetRect("#u-left-column");case 4:return n=e.sent,e.next=7,t.uGetRect("#u-right-column");case 7:if(r=e.sent,u=t.tempList[0],u){e.next=11;break}return e.abrupt("return");case 11:n&&n.height<r&&r.height?t.leftList.push(u):n&&n.height>r&&r.height?t.rightList.push(u):t.leftList.length<=t.rightList.length?t.leftList.push(u):t.rightList.push(u),t.tempList.splice(0,1),t.tempList.length&&setTimeout((function(){t.splitData()}),t.addTime);case 14:case"end":return e.stop()}}),e)})))()},cloneData:function(t){return JSON.parse(JSON.stringify(t))},uGetRect:function(e){var n=this;return new Promise((function(i){var r=t.createSelectorQuery().in(n);r.select(e).boundingClientRect((function(t){i(t)})).exec()}))},buy:function(t){this.goods=t,this.attrShow=Math.random()},route:function(e){t.navigateTo({url:e.page_url})},emptyList:function(){this.leftList=[],this.tempList=[],this.rightList=[]}},components:{appAttr:c}};e.default=o}).call(this,n("543d")["default"])},ec9e:function(t,e,n){"use strict";n.r(e);var i=n("cf09"),r=n.n(i);for(var u in i)"default"!==u&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=r.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/full_reduce/u-waterfall-create-component',
    {
        'pages/full_reduce/u-waterfall-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("9c26"))
        })
    },
    [['pages/full_reduce/u-waterfall-create-component']]
]);
