!function(){var t=document.createElement("style");t.innerHTML="._sticky_4d2w6_1{position:sticky;top:0;z-index:99}._white_4d2w6_6{background-color:#fff}._white_4d2w6_6>div{padding-top:.4rem;box-shadow:0 0 .26667rem rgba(216,216,216,.5)}\n",document.head.appendChild(t),System.register(["./index-legacy.48c8d62c.js"],(function(t){"use strict";var e,i,o,s;return{setters:[function(t){e=t.d,i=t._,o=t.am,s=t.c}],execute:function(){var n={sticky:"_sticky_4d2w6_1",white:"_white_4d2w6_6"};t("O",e({emits:["getHeight"],name:"o-sticky",props:{position:{type:String,default:"top"},background:{type:String,default:""},mode:{type:String,default:"fixed"},offsetTop:{type:String,default:"0px"},offsetBottom:{default:"0px"}},data:function(){return{divStyle:{},heightV:0,sectionStyle:{width:"100%",height:"auto",left:"0"}}},mounted:function(){var t=this;"top"===this.position?this.divStyle.top=this.offsetTop||"0px":this.divStyle.bottom=this.offsetBottom||"0px",i((function(){setTimeout((function(){var e=o(t.$refs.div).height;console.log(e,t.position),t.sectionStyle.height="".concat(e,"px"),t.heightV=e,t.$emit("getHeight",e),console.log(e,"osticky height")}),200),setTimeout((function(){var e=o(t.$refs.div2).height;console.log(e,t.position,"next"),e!==t.heightV&&"top"===t.position&&(t.sectionStyle.height="".concat(e,"px"),t.heightV=e,t.$emit("getHeight",e),console.log(e,"next osticky height"))}),1e3)}))},watch:{offsetTop:function(){this.divStyle.top=this.offsetTop},offsetBottom:function(){this.divStyle.bottom=this.offsetBottom}},render:function(){return s("div",{style:[this.sectionStyle],class:"sticky"===this.mode&&n.sticky},[s("div",{ref:"div",class:["van-sticky","fixed"===this.mode?"van-sticky--fixed":"",n[this.background]],style:[this.divStyle,this.sectionStyle]},[s("div",{ref:"div2"},[this.$slots.default&&this.$slots.default()])])])}}))}}}))}();