(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uv-sticky/components/uv-sticky/uv-sticky"],{265:function(t,e,n){"use strict";n.r(e);var i=n(266),s=n(268);for(var c in s)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(c);n(280);var o,r=n(36),u=Object(r["default"])(s["default"],i["render"],i["staticRenderFns"],!1,null,"1d1481e1",null,!1,i["components"],o);u.options.__file="uni_modules/uv-sticky/components/uv-sticky/uv-sticky.vue",e["default"]=u.exports},266:function(t,e,n){"use strict";n.r(e);var i=n(267);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"]}))},267: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},268:function(t,e,n){"use strict";n.r(e);var i=n(269),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},269: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(63)),c=i(n(65)),o=i(n(270)),r=i(n(271)),u=i(n(279)),d={name:"uv-sticky",mixins:[o.default,r.default,u.default],data:function(){return{cssSticky:!1,stickyTop:0,elId:"",left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=this.$uv.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,this.$uv.deepMerge(t,this.$uv.addStyle(this.customStyle))},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:970}},created:function(){this.elId=this.$uv.guid()},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uvGetRect("#"+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=this.$uv.getPx(this.offsetTop)+this.$uv.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,c.default)(s.default.mark((function e(){return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return"android"===t.$uv.os()&&Number(t.$uv.sys().system)>8&&(t.cssSticky=!0),e.next=3,t.checkComputedStyle();case 3:t.cssSticky=e.sent,"ios"===t.$uv.os()&&(t.cssSticky=!0);case 5:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){var e=this;return new Promise((function(n){t.createSelectorQuery().in(e).select(".uv-sticky").fields({computedStyle:["position"]}).exec((function(t){n("sticky"===t[0].position)}))}))},checkCssStickyForH5:function(){}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=d}).call(this,n(2)["default"])},280:function(t,e,n){"use strict";n.r(e);var i=n(281),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},281:function(t,e,n){}}]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uv-sticky/components/uv-sticky/uv-sticky.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/uv-sticky/components/uv-sticky/uv-sticky-create-component',
    {
        'uni_modules/uv-sticky/components/uv-sticky/uv-sticky-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(265))
        })
    },
    [['uni_modules/uv-sticky/components/uv-sticky/uv-sticky-create-component']]
]);
