(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-sticky/u-sticky"],{329:function(t,e,n){"use strict";n.r(e);var i=n(330),s=n(332);for(var c in s)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(c);n(335);var o,r=n(32),u=Object(r["default"])(s["default"],i["render"],i["staticRenderFns"],!1,null,"e18bd96e",null,!1,i["components"],o);u.options.__file="uni_modules/uview-ui/components/u-sticky/u-sticky.vue",e["default"]=u.exports},330:function(t,e,n){"use strict";n.r(e);var i=n(331);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},331:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return s})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return c})),n.d(e,"components",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.style])),i=t.__get_style([t.stickyContent]);t.$mp.data=Object.assign({},{$root:{s0:n,s1:i}})},c=!1,o=[];s._withStripped=!0},332:function(t,e,n){"use strict";n.r(e);var i=n(333),s=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=s.a},333:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(n(55)),c=i(n(57)),o=i(n(334)),r={name:"u-sticky",mixins:[t.$u.mpMixin,t.$u.mixin,o.default],data:function(){return{cssSticky:!1,stickyTop:0,elId:t.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var e={};return this.disabled?e.position="static":this.cssSticky?(e.position="sticky",e.zIndex=this.uZindex,e.top=t.$u.addUnit(this.stickyTop)):e.height=this.fixed?this.height+"px":"auto",e.backgroundColor=this.bgColor,t.$u.deepMerge(t.$u.addStyle(this.customStyle),e)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:t.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var e=this;this.disconnectObserver("contentObserver");var n=t.createIntersectionObserver({thresholds:[.95,.98,1]});n.relativeToViewport({top:-this.stickyTop}),n.observe("#".concat(this.elId),(function(t){e.setFixed(t.boundingClientRect.top)})),this.contentObserver=n},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=t.$u.getPx(this.offsetTop)+t.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var e=this;return(0,c.default)(s.default.mark((function n(){return s.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return"android"===t.$u.os()&&Number(t.$u.sys().system)>8&&(e.cssSticky=!0),n.next=3,e.checkComputedStyle();case 3:e.cssSticky=n.sent,"ios"===t.$u.os()&&(e.cssSticky=!0);case 5:case"end":return n.stop()}}),n)})))()},checkComputedStyle:function(){var e=this;return new Promise((function(n){t.createSelectorQuery().in(e).select(".u-sticky").fields({computedStyle:["position"]}).exec((function(t){n("sticky"===t[0].position)}))}))},checkCssStickyForH5:function(){}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=r}).call(this,n(2)["default"])},335:function(t,e,n){"use strict";n.r(e);var i=n(336),s=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=s.a},336:function(t,e,n){}}]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-sticky/u-sticky.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/uview-ui/components/u-sticky/u-sticky-create-component',
    {
        'uni_modules/uview-ui/components/u-sticky/u-sticky-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(329))
        })
    },
    [['uni_modules/uview-ui/components/u-sticky/u-sticky-create-component']]
]);
