nimble-ui
Version:
1 lines • 37.1 kB
JavaScript
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="qDgq")}({"/GK1":function(t,e,n){"use strict";var i=n("shrL");e.a=i.a},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(i.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var i=n("lXuC")},"2tHm":function(t,e,n){"use strict";var i=n("zagf");e.a=function(t,e,n,o){var s=o/(n/e);!function n(r,a){setTimeout(function(){Object(i.a)(t,[a]),(o>0&&a<o||o<0&&a>o)&&r>0?n(r-e,a+s):Object(i.a)(t,[o])},e)}(n,0)}},"37ml":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,n){e.mixin(Object(i.a)(t,[n]))});return t};var i=n("ekq3")},"3AwK":function(t,e,n){"use strict";function i(t,e){var n=e.value,i=n,o=function(t){var e={};t&&(t.poster?e.srcAttr="poster":(t.background||t.backgroundImage||t.bg)&&(e.srcAttr="background"));return e}(e.modifiers),s=(o&&o.srcAttr||"src")+"",r=/background/i.test(s);n instanceof Object&&(i=n.src),r?t.style.backgroundImage="url("+i+")":t[s]=i}Object.defineProperty(e,"__esModule",{value:!0});var o=n("p84V");e.default=Object(o.a)(function(){return{bind:i,inserted:i,update:i}},"lazy")},"4TYt":function(t,e,n){"use strict";var i=n("Krqh");e.a=i.a},"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",i=e.component(n);i||e.component(n,t)});return t}},"56aJ":function(t,e){},"5fCB":function(t,e,n){"use strict";var i=n("E5mE"),o=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,s=arguments.length,r=Array(s),a=0;a<s;a++)r[a]=arguments[a];if(r instanceof Array&&(n=r.slice(0,1)[0]),"boolean"==typeof n&&(e=n,r.splice(0,1),e||(n=r.splice(0,1)[0])),r&&r.length<1)return"boolean"==typeof n?r[1]:n;e&&(n=null);for(var c=0;c<r.length;c++){var l=r[c];if(l instanceof Object)if(e){for(var u in n&&n instanceof Object||(n=l instanceof Array?[]:{}),l)if(l.hasOwnProperty(u)){var f=l[u];if(d(f)){var h=d(n[u])&&n[u]||(f instanceof Array?[]:{});n[u]=t(h,f)}else void 0!==f?n[u]=f:void 0!==n[u]&&(n[u]=f)}}else n=n&&n instanceof Object?Object.assign(n,l):l}return n;function d(t){return t&&(Object(i.a)(t,"Array")||Object(o.a)(t))||!1}}},"6D8K":function(t,e){},"B/FW":function(t,e){},BOJz:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={extends:n("ho/f").a,name:"NuTag",props:{nameText:{type:[String,Number],default:"标签"},styleName:{type:String,default:""}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_tag",class:[t.styleName&&"nu_tag-"+t.styleName||""],on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[n("span",{staticClass:"nu_tag",attrs:{"data-text":t.nameText||t.text}})])},staticRenderFns:[]};var s=n("VU/8")(i,o,!1,function(t){n("HNS/")},null,null).exports,r=n("4qRk");e.default=Object(r.a)(s)},CBoO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Z5sI"),o={extends:n("HDd3").a,props:{list:{type:Array},filterKey:{type:Function},scrollAanimation:{default:!1},time:{type:Number,default:10},duration:{type:Number,default:200}}},s=n("VU/8")(o,null,!1,null,null,null).exports,r=n("MWZt"),a=n("4TYt"),c=n("I3JS"),l=n("2tHm"),u=n("ekq3"),f=n("sL/4"),h={props:{itemKey:{type:[Number,String]},itemData:{},activeIndex:{}},watch:{activeIndex:function(t){this.itemKey===t&&this.$emit("selectChange",t)}}},d={render:function(){var t=this.$createElement,e=this._self._c||t;return this.itemData?e("li",{staticClass:"nus_stickyItem"},[this._t("default",null,{itemKey:this.itemKey,itemData:this.itemData})],2):this._e()},staticRenderFns:[]};var m={extends:s,components:{StickyItem:n("VU/8")(h,d,!1,function(t){n("56aJ")},null,null).exports},mixins:[Object(i.default)("activeIndex")],watch:{list:function(t){var e=this;t&&t.length&&setTimeout(function(){e._getScrollEl(!0),e._refresh()},50)}},created:function(){var t=this;t.indexList=Object(c.a)(),t.indexList.$on("itemmove",function(e){t.$emit("itemmove",e)}),t._refreshHandler=Object(r.a)(function(){var e=t._getScrollEl(),n=e&&e.scrollHeight||0;Math.abs((t._myScrollHeight||0)-n)>50&&(t._myScrollHeight=n,t._refresh())},200)||t._refresh;var e=void 0;t._onScroll=function(n){if(!t.lock){var i=t._getScrollEl(),o=i&&(i.scrollTop||i.scrollY);void 0!==e&&clearTimeout(e),e=setTimeout(function(){t._refreshHandler(n)},100),t._setActiveIndex(o)}},t._onResize=function(){t._refresh()}},mounted:function(){var t=this;t.$nextTick(function(){t._initCom(),setTimeout(function(){t._getScrollEl(!0),t._refresh()},50)})},beforeDestroy:function(){this.scrollEl&&this.scrollEl.removeEventListener("scroll",this._onScroll),window.removeEventListener("resize",this._onResize)},methods:{_filterKey:function(t,e){var n=e;return t&&void 0!==t.index&&(n=t.index),Object(u.a)(this.filterKey||n,[t,e])},_initCom:function(){this._getScrollEl(!0),window.addEventListener("resize",this._onResize,!1),this._refresh(),!this.activeIndex&&this._setActiveIndex(0)},_getScrollEl:function(t){t&&this.scrollEl&&(this.scrollEl.removeEventListener("scroll",this._onScroll),this.scrollEl.removeEventListener("load",this._refreshHandler));var e=!t&&this.scrollEl||Object(f.a)(this.$el);return this.scrollEl&&!t||!e||(this._scrollElTop=Object(a.a)(e)||0,this._myScrollHeight=e.scrollHeight||0,e.addEventListener("scroll",this._onScroll,!1),e.addEventListener("load",this._refreshHandler,!0)),this.scrollEl=e,e},_refresh:function(){this.indexList.refresh(this.$refs.hook_items),this._onScroll()},_onSelectChange:function(t,e){if(this.myIndex!==t){this.myIndex=t;var n=this.indexList.getItem(t);if("number"==typeof n.top){var i=n.top-(this._scrollElTop||0);this._setScrollTop(i)}}this.$emit("checked",e)},_setScrollTop:function(t){var e=this,n=e.scrollEl,i=n===window?n.scrollY:n.scrollTop;function o(o){var s=void 0,r=i+o;n===window?(n.scrollTo({top:r,behavior:"instant"}),s=n.scrollY):(n.scrollTop=r,s=n.scrollTop),Math.abs(t-r)<1&&(e._timeout=setTimeout(function(){e.lock=!1,"number"==typeof s&&t!==s&&e._onScroll(s)},20))}n&&(void 0!==e._timeout&&clearTimeout(e._timeout),e.lock=!0,e.scrollAanimation?Object(l.a)(o,e.time,e.duration,t-i):o(t-i))},_toActiveIndex:function(t){var e=this._filterKey(this.list&&this.list[t],t);if(this.myIndex!==t||e!==this.activeIndex)return this.myIndex=t,e},_setActiveIndex:function(t){var e=this.indexList.getIndex(t+this._scrollElTop),n=this._toActiveIndex(e);void 0!==n&&(this.myActiveIndex=n)}}},p={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"nus_sticky-list"},[t.list?[t._l(t.list,function(e,i){return[n("sticky-item",{key:i,ref:"hook_items",refInFor:!0,attrs:{itemKey:t._filterKey(e,i),itemData:e,activeIndex:t.myActiveIndex},on:{selectChange:function(n){t._onSelectChange(i,e)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.itemKey,o=e.itemData;return[t._t("default",null,{itemKey:n,itemIndex:i,itemData:o})]}}])})]})]:t._e()],2)},staticRenderFns:[]};var _=n("VU/8")(m,p,!1,function(t){n("qxno")},null,null).exports,v=n("/GK1"),y={extends:s,name:"NuSticky",props:{labelFixed:{type:[Boolean,Function],default:function(){return function(t,e,n){var i=!1;return(e<=0&&n<0||e>0)&&(i=!0),i}}},filterItemTitle:{type:Function}},components:{StickyList:_},mixins:[Object(i.default)("activeIndex")],computed:{_filterItemTitle:function(){var t=this.myActiveIndex||"",e=this.activeItemData||{};return Object(u.a)(this.filterItemTitle||e.text||t,[e,t,this.itemIndex])}},data:function(){return{isLabelFixed:!1,activeItemData:null}},mounted:function(){var t=this;t.$nextTick(function(){setTimeout(function(){t._getLabelHeight()},0)})},methods:{_onChecked:function(t){this.activeItemData=t,this.$emit("itemmove",t)},_getLabelHeight:function(t){var e=(this.$refs||{}).hook_label,n=this._labelHeight||0;return!e||!t&&n||(n=e.offsetHeight),this._labelHeight=n,n},_setIsLabelFixed:function(t,e){return this.isLabelFixed=Object(u.a)(this.labelFixed,[this.myActiveIndex,t,e]),this.isLabelFixed},_itemMove:function(t){var e=this.$refs.hook_label;if(this._setIsLabelFixed(t.index||0,t.top),e){var n=this._labelBottom||0,i=this._getLabelHeight();if(i&&(n<=i||n>i&&t.bottom<=i)){var o=t.bottom<=i?t.bottom-i:0;e.style[Object(v.a)("transform")]="translate3d(0px, "+o+"px, 0px)",this._labelBottom=o}}this.$emit("checked",t)}}},x={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_sticky"},[n("sticky-list",{attrs:{list:t.list,filterKey:t.filterKey,scrollAanimation:t.scrollAanimation,time:t.time,duration:t.duration,activeIndex:t.myActiveIndex},on:{"update:activeIndex":function(e){t.myActiveIndex=e},itemmove:t._itemMove,checked:t._onChecked},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.itemKey,i=e.itemIndex,o=e.itemData;return[t._t("default",null,{itemKey:n,itemIndex:i,itemData:o})]}}])}),t._v(" "),t.isLabelFixed?n("div",{ref:"hook_label",staticClass:"nu_sticky-label"},[t._t("hook_label",[n("div",{staticClass:"nu_sticky-label-text"},[t._v("\n "+t._s(t._filterItemTitle)+"\n ")])],{itemData:t.activeItemData,activeIndex:t.myActiveIndex})],2):t._e()],1)},staticRenderFns:[]};var b=n("VU/8")(y,x,!1,function(t){n("cRZj")},null,null).exports,g=n("4qRk");e.default=Object(g.a)(b)},Cljp:function(t,e){},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var o="$s"+(n=Object(i.a)(e.name));t.prototype&&!t.prototype[o]&&function(t,e,n){if(t&&e&&n){t[n]=e;try{Object.defineProperty(t,n,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,o)}else console.error("Mount is not defined for the image name");return n};var i=n("0Zk/")},HDd3:function(t,e,n){"use strict";var i={extends:n("Lv3q").a},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},"HNS/":function(t,e){},Hxsb:function(t,e,n){"use strict";e.a=function(t,e){var n;e=e||{};var s={};s[t=(t||"")+""]=e.value||{};var r="my"+Object(o.a)(t);return{props:s,data:function(){var n={};return n[r]=Object(i.a)(e.myValueInit||this[t],[this[t]],this),n},watch:(n={},n[t]=function(t,n){var o=Object(i.a)(e.mValueChange,[t,n],this);!1!==o&&(this[r]=t)},n[r]=function(n,o){var s=Object(i.a)(e.myValueChange,[n,o],this);!1!==s&&this.$emit("update:"+t,n)},n)}};var i=n("ekq3"),o=n("WGR+")},I3JS:function(t,e,n){"use strict";var i,o=n("qd2b"),s=n("Krqh"),r=n("fk+x"),a=n("MEnT");!function(t){t.ITEM_MOVE="itemmove"}(i||(i={}));var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.name="NavIndex",i._maxHeight=0,i._minHeight=0,i._offsetList=null,i.refresh(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.refresh=function(t){this._maxHeight=0,this._minHeight=0,this._offsetList=t&&this._initListOffset(t,!0)||null},e.prototype.getItem=function(t,e){return(this._initListOffset(e)||[])[t]||{}},e.prototype.getScrollTop=function(t){var e=this._initListOffset(t),n=e&&e[0],i=0,o=void 0;if(n){var s=n.el,c=this._isFixed;for(void 0===c&&(c=s&&s.offsetParent&&"fixed"===Object(r.a)(s.offsetParent,"position")||!1),this._isFixed=c,c&&(s=document.body);s;)i+=(s=Object(a.a)(s))&&(s.scrollTop||s.scrollY||0)||0,o=s,s=s.parentNode;i=(c?0-i:i)||0}return{scrollTop:i,el:o,isFixed:!!this._isFixed}},e.prototype.getIndex=function(t,e){t=t||0;var n=this._initListOffset(e)||[],o=n[0]||{},s=o&&o.top||0,r=n.length||0,a=this._getRegion(t-s,this._minHeight,this._maxHeight),c=Math.min(Math.max(r,1),a.endIndex),l=Math.max(0,Math.min(a.startIndex,c-1)),u=this._calcIndex(l,c-1,t,n);null===u&&(n[0]&&(n[0].bottom||0)>=t?u=0:n[r-1]&&(n[r-1].bottom||0)<=t&&(u=r-1));var f=n&&n[u||0];if(f){var h=(f.bottom||0)-t,d=(f.top||0)-t;this.$emit(i.ITEM_MOVE,{index:u,top:Math.min(d,0),bottom:Math.max(h,0)})}return u||0},e.prototype._initListOffset=function(t,e){var n=this._offsetList;return!e&&n&&n.length?n:(n=t&&this._getListOffset(t)||null,this._offsetList=n,n)},e.prototype._getListOffset=function(t){var e=this,n=t||[],i=[];return n&&n.length&&n.forEach(function(t,n){var o=t.$el||t,r={};if(o){var a=o.offsetHeight,c=0;r={top:c=0===n?Object(s.a)(o):i[n-1].bottom||0,height:a,bottom:c+a,el:o}}r.height&&((e._maxHeight||0)<r.height&&(e._maxHeight=r.height),(!e._minHeight||e._minHeight>r.height)&&(e._minHeight=r.height)),i.push(r)}),i},e.prototype._getRegion=function(t,e,n){e=e||1,n=n||1,t=t||0;var i=Math.floor(t/n-.5),o=Math.ceil(t/e+.5);return{startIndex:Math.max(Math.min(i,o-1),0),endIndex:Math.max(o,1)}},e.prototype._calcIndex=function(t,e,n,i){var o=null,s=Math.ceil((e-t)/2);if(e>=t&&e>=0&&t>=0&&i&&i.length)if(s>1){var r=t+s,a=i[r];a.top<=n&&a.bottom>n?o=r:a.top>n&&i[t].top<=n?o=i[t].bottom>n?t:this._calcIndex(t,r-1,n,i):a.bottom<=n&&i[e].bottom>n&&(o=i[e].top<=n?e:this._calcIndex(r+1,e-1,n,i))}else if(s>=0)for(var c=t;c<=e;c++){var l=i[c];if(l.top<=n&&l.bottom>n){o=c;break}}return o},e}(o.a);e.a=function(t){return c.instance(t)}},KUZl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2tHm"),o=n("I3JS"),s=n("ekq3"),r={extends:n("HDd3").a},a=n("VU/8")(r,null,!1,null,null,null).exports,c=n("Hxsb"),l={extends:a,props:{nameText:{},itemkey:{},isNavTouch:{}},mixins:[Object(c.a)("activeIndex",{mValueChange:function(t){t===this.itemkey&&this.$emit("checked",{itemkey:t})}})],computed:{myName:function(){var t=this.nameText;return void 0===t&&(t=this.itemkey),t}},methods:{_click:function(t){this._onClick(t),this.myActiveIndex=this.itemkey},_tap:function(t){this._onTap(t),this.myActiveIndex=this.itemkey},_onMouseover:function(){this.$emit("selectChange",this.itemkey)},_onTouchStart:function(t){this.isNavTouch&&(this.myActiveIndex=this.itemkey),this.$emit("touchstart",t)},_onTouchMove:function(t){this.$emit("touchmove",t)}}},u={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("li",{staticClass:"nus_nav-item",class:[t.activeIndex===t.itemkey&&"nu_active"],on:{click:t._click,tap:t._tap,mouseover:function(e){e.stopPropagation(),e.preventDefault(),t._onMouseover(e)},touchmove:t._onTouchMove,touchstart:t._onTouchStart}},[t._t("default",[t._v("\n "+t._s(t.myName||"")+"\n ")])],2)},staticRenderFns:[]};var f=n("VU/8")(l,u,!1,function(t){n("X5jY")},null,null).exports,h={name:"NuScrollnav",extends:a,props:{list:{type:Array},filterKey:{type:Function},isNavTouch:{default:!0}},components:{navItem:f},mixins:[Object(c.a)("activeIndex")],watch:{list:function(){var t=this;t.$nextTick(function(){t.indexList.refresh(t.$refs.hook_navItems)})}},created:function(){this.indexList=Object(o.a)()},mounted:function(){var t=this;t.$nextTick(function(){t.indexList.refresh(t.$refs.hook_navItems),!t.activeIndex&&t._toActiveIndex(0)}),t.resize=function(){t.indexList.refresh(t.$refs.hook_navItems)},setTimeout(function(){t.indexList.refresh(t.$refs.hook_navItems)},200),window.addEventListener("resize",t.resize)},beforeDestroy:function(){window.removeEventListener("resize",this.resize),window.removeEventListener("mouseup",this._setMouseStart)},methods:{_filterKey:function(t,e){var n=e;return t&&void 0!==t.index&&(n=t.index),Object(s.a)(this.filterKey||n,[t,e])},_onChecked:function(t){var e=this,n=e.indexList.getItem(0),o=e.indexList.getItem(t||0).top-n.top+n.height/2-e.$el.offsetHeight/2,s=e.$el.scrollTop;Object(i.a)(function(t){e.$el.scrollTop=s+t},10,200,o-s)},_onMousedown:function(){var t=this;t.isNavTouch&&(t._mouseStart=!0,t._setMouseStart=t._setMouseStart||function(){t._mouseStart=!1,window.removeEventListener("mouseup",t._setMouseStart)},window.addEventListener("mouseup",t._setMouseStart))},_selectChange:function(t){this._mouseStart&&(this.myActiveIndex=t)},_toActiveIndex:function(t){this.myIndex!==t&&(this.myIndex=t,this.myActiveIndex=this._filterKey(this.list&&this.list[t],t))},_getEvent:function(t){return t.touches&&t.touches[0]||t},_onTouchStart:function(){this.isNavTouch&&(this.myIndex=null,this._scrollTop=this._getScrollTop(!0))},_onTouchMove:function(t){if(this.isNavTouch){t.preventDefault(),t.stopPropagation();var e=(t=this._getEvent(t)).pageY;if(Math.abs((this.pageY||0)-e)>4){this._scrollTop=this._getScrollTop(),this.pageY=e;var n=this.indexList.getIndex(e+this._scrollTop);this._toActiveIndex(n)}}},_getScrollTop:function(t){if(t||"number"!=typeof this._scrollTop||this._scrollEl===window){var e=this.indexList.getScrollTop()||{};this._scrollTop=this._hasWinScroll(t)&&e.isFixed||!this._hasWinScroll(t)&&!e.isFixed?0:e.scrollTop,this._scrollEl=e.el}return this._scrollTop||0},_hasWinScroll:function(t){(t||"boolean"!=typeof this._isWinScroll)&&((document.body.scrollHeight||document.documentElement.scrollHeight)<=window.innerHeight-5?this._isWinScroll=!0:this._isWinScroll=!1);return!!this._isWinScroll}}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.list&&t.list.length?n("ul",{staticClass:"nus_scrollnav",on:{mousedown:t._onMousedown,touchmove:t._onTouchMove,touchstart:t._onTouchStart}},[t._l(t.list,function(e,i){return[n("nav-item",{key:i,ref:"hook_navItems",refInFor:!0,staticClass:"nu_nav-item",attrs:{activeIndex:t.myActiveIndex,itemkey:t._filterKey(e,i),nameText:e.navName,isNavTouch:t.isNavTouch},on:{"update:activeIndex":function(e){t.myActiveIndex=e},checked:function(e){t._onChecked(i)},selectChange:t._selectChange}},[t._t("default",null,{itemIndex:i,itemData:e,isNavTouch:t.isNavTouch,filterKey:t.filterKey})],2)]})],2):t._e()},staticRenderFns:[]};var m=n("VU/8")(h,d,!1,function(t){n("oixg")},null,null).exports,p=n("4qRk");e.default=Object(p.a)(m)},Krqh:function(t,e,n){"use strict";e.a=function(t){var e=t.offsetTop;t=t.offsetParent;for(;null!=t;)e+=t.offsetTop,t=t.offsetParent;return e}},Lbtb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("N1Ww"),o=n("d0AA"),s={extends:i.a,name:"NuImgc",components:{NuAspect:o.default},props:{aspect:{type:[Boolean,String,Number]},className:{type:String}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_imgc"},[t.imgUrl?n("nu-aspect",{staticClass:"nu_img-wrap",attrs:{aspect:t.aspect,className:t.className},on:{click:t._onClick,tap:t._onTap}},[t.isLazy?n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.myLazyOptions,expression:"myLazyOptions"}],staticClass:"nu_imgc-img",attrs:{alt:""}}):n("img",{staticClass:"nu_imgc-img",attrs:{src:t.imgUrl,alt:""}}),t._v(" "),t._t("default")],2):t._e()],1)},staticRenderFns:[]};var a=n("VU/8")(s,r,!1,function(t){n("hvU/")},null,null).exports,c=n("4qRk");e.default=Object(c.a)(a)},Lv3q:function(t,e,n){"use strict";n("B/FW");var i=n("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=i.exports},LySh:function(t,e){},MEnT:function(t,e,n){"use strict";e.a=function(t){if("undefined"==typeof HTMLElement||!(t instanceof HTMLElement))return window;var e=t;for(;e&&e!==document.body&&e!==document.documentElement;){if(e!==t){if(e._isScroll)return e;if(!e.parentNode)break;if(!1!==e._isScroll){if(/(scroll|auto)/.test(o(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var i=n("fk+x");function o(t){return Object(i.a)(t,"overflow")+Object(i.a)(t,"overflow-y")+Object(i.a)(t,"overflow-x")}},MWZt:function(t,e,n){"use strict";var i=n("yY2C");e.a=i.a},MzTb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ho/f"),o=n("Wxd7"),s={name:"NuCell",extends:i.a,components:{NuIcon:o.default},props:{itemData:{},isJustify:{type:Boolean,default:!0},isMore:{type:Boolean},icon:{default:""},iconClass:{}},computed:{isShowMore:function(){var t=this.$slot||{};return!!this.isMore&&(this.icon||t.hook_more)}},methods:{_clickMore:function(t){this.$emit("more",t)}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_cell",class:[t.isShowMore&&"nu_cell-more",t.isJustify&&"nu_cell-justify"],on:{click:t._onClick,tap:t._onTap}},[t._t("default",null,{itemData:t.itemData}),t._v(" "),t.isShowMore?n("div",{staticClass:"nu_more-wrap",on:{click:t._clickMore}},[t._t("hook_more",[n("nu-icon",{staticClass:"nu_more-icon",attrs:{icon:t.icon,iconClass:t.iconClass}})])],2):t._e()],2)},staticRenderFns:[]};var a=n("VU/8")(s,r,!1,function(t){n("RQ+/")},null,null).exports,c=n("4qRk");e.default=Object(c.a)(a)},N1Ww:function(t,e,n){"use strict";var i=n("rRBi"),o=n("ho/f"),s=n("caJ4"),r=n("3AwK"),a={extends:o.a,props:{imgUrl:{type:String},lazyOptions:{type:Object},isLazy:{type:Boolean,default:!0},aspect:{type:[String,Number]}},computed:{myLazyOptions:function(){var t=this,e=Object(i.a)(!1,{isWrap:!t.aspect},t.lazyOptions,{src:t.imgUrl});if(e&&e.loading){var n=e.loading;e.loading=function(i){try{n.call(e,i)}catch(t){}t.$emit("imgLoading",i)}}else e.loading=function(e){t.$emit("imgLoading",e)};return e}},beforeCreate:function(){Object(s.a)(this.constructor,r.default)}};var c=n("VU/8")(a,null,!1,function(t){n("zaQa")},null,null);e.a=c.exports},"RQ+/":function(t,e){},TZrh:function(t,e){},"VU/8":function(t,e){t.exports=function(t,e,n,i,o,s){var r,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(r=t,a=t.default);var l,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):i&&(l=i),l){var f=u.functional,h=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:r,exports:a,options:u}}},"WGR+":function(t,e,n){"use strict";var i=n("0Zk/");e.a=i.a},WIwv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3"),o={name:"NuCellgroup",props:{list:{},filterItem:{type:Function}},methods:{_filterItem:function(t,e,n){return Object(i.a)(this.filterItem||t,[t,e,n])}}},s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_cellgroup"},[t.list&&t.list.length?[t._l(t.list,function(e,n){return[t._t("default",null,{itemData:t._filterItem(e,n),index:n,data:e})]})]:t._t("default")],2)},staticRenderFns:[]};var r=n("VU/8")(o,s,!1,function(t){n("obxd")},null,null).exports,a=n("4qRk");e.default=Object(a.a)(r)},Wxd7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={extends:n("ho/f").a,name:"NuIcon",props:{iconClass:{default:"nu_icon"},icon:{type:String}}},o={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_icon",class:t.iconClass,on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t._v("\n "+t._s(t.icon)+"\n ")]),t._v(" "),t._t("hook_ext")],2)},staticRenderFns:[]};var s=n("VU/8")(i,o,!1,function(t){n("6D8K")},null,null).exports,r=n("4qRk");e.default=Object(r.a)(s)},X5jY:function(t,e){},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var s=Object(i.a)(e);s._constructed=!0,s=Object(o.a)(!1,s,n),t.dispatchEvent(s)}};var i=n("XAAj"),o=n("5fCB")},Z5sI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Hxsb"),o=n("37ml");e.default=Object(o.a)(i.a)},cRZj:function(t,e){},caJ4:function(t,e,n){"use strict";e.a=function(t,e,n){t.use(e,n)}},d0AA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ho/f"),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s={name:"NuAspect",extends:i.a,props:{aspect:{type:[Boolean,String,Number]},className:{type:String}},data:function(){return{isClass:!1}},computed:{myAspect:function(){var t=this.aspect;if(this.isClass=!1,!0===t||t+""=="1")t="nu_aspect",this.isClass=!0;else{t=((t||"")+"").replace("%","");var e=parseFloat(t,10);if(isNaN(e))this.isClass=!0;else switch(void 0===e?"undefined":o(e)){case"number":(t=Math.abs(t))>5?t+="%":t>0&&(t=100*t+"%")}}return t}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_aspect",class:[t.myAspect&&"nu_aspect-base",t.isClass&&t.myAspect,!t.myAspect&&t.className],style:t.myAspect&&!t.isClass&&{paddingTop:t.myAspect},on:{click:t._onClick,tap:t._onTap}},[t.myAspect?n("div",{staticClass:"nu_aspect-wrap",class:t.className},[n("div",{staticClass:"nu_aspect-cont"},[t._t("default")],2)]):[t._t("default")]],2)},staticRenderFns:[]};var a=n("VU/8")(s,r,!1,function(t){n("LySh")},null,null).exports,c=n("4qRk");e.default=Object(c.a)(a)},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(i.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=o.call(e,"constructor")&&e.constructor;return"function"==typeof n&&o.toString.call(n)===o.toString.call(Object)};var i=n("E5mE"),o=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var i=n("zagf");e.a=i.a},"fk+x":function(t,e,n){"use strict";e.a=function(t,e){return("undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e])||""}},"ho/f":function(t,e,n){"use strict";var i={extends:n("Lv3q").a},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},"hvU/":function(t,e){},iB7C:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ho/f"),o=n("Wxd7"),s=n("Lbtb"),r=n("BOJz"),a={extends:i.a,name:"NuFunicon",components:{NuIcon:o.default,NuImgc:s.default,NuTag:r.default},props:{lazyOptions:{type:Object},isLazy:{type:Boolean,default:!0},icon:{type:String},iconClass:{},imgUrl:{type:String},nameText:{type:String}}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_funicon",on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t.imgUrl?n("div",{staticClass:"nu_fun-icon"},[n("nu-imgc",{attrs:{aspect:!0,imgUrl:t.imgUrl,isLazy:t.isLazy,lazyOptions:t.lazyOptions}},[t._t("hook_ext")],2)],1):t.icon?n("nu-icon",{staticClass:"nu_fun-icon",attrs:{icon:t.icon,iconClass:t.iconClass}},[n("template",{slot:"hook_ext"},[t._t("hook_ext")],2)],2):t._e()]),t._v(" "),t._t("hook_nameText",[t.nameText?n("nu-tag",{staticClass:"nu_text",attrs:{nameText:t.nameText}}):t._e()])],2)},staticRenderFns:[]};var l=n("VU/8")(a,c,!1,function(t){n("Cljp")},null,null).exports,u=n("4qRk");e.default=Object(u.a)(l)},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},obxd:function(t,e){},oixg:function(t,e){},p84V:function(t,e,n){"use strict";e.a=function(t,e){t&&!t.install&&(t.install=function(n,o){var s=n.directive(e);if(!s){var r=Object(i.a)(t,[o]);r&&n.directive(e,r.directive||r)}});return t};var i=n("ekq3")},qDgq:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3"),o=n("Hxsb"),s=n("KUZl"),r=n("CBoO"),a=n("HDd3"),c=n("wWr4"),l={name:"NuIndexlist",extends:a.a,components:{NuScrollnav:s.default,NuSticky:r.default,NuCelllist:c.default},props:{list:{type:Array},filterKey:{type:Function},scrollAanimation:{default:!1},time:{},duration:{},isNavTouch:{},navDir:{default:"r"},slotFilter:{default:!1},lazyOptions:{type:Object},isLazy:{type:Boolean,default:!0},labelFixed:{type:[Boolean,Function]},filterItemTitle:{type:Function},filterItemData:{type:Function}},mixins:[Object(o.a)("activeIndex")],computed:{comList:function(){var t=[{key:"cont"}];switch((this.navDir+"").toLowerCase()){case"l":t.unshift({key:"nav",className:"nu_nav-left"});break;case"r":t.push({key:"nav"})}return t}},methods:{_filterKey:function(t,e){var n=e;return t&&void 0!==t.index&&(n=t.index),Object(i.a)(this.filterKey||n,[t,e])},_filterProps:function(t,e,n){return{lazyOptions:this.lazyOptions,isLazy:this.isLazy,itemKey:t,itemData:e,itemIndex:n,labelFixed:this.labelFixed,filterItemTitle:this.filterItemTitle,filterItemData:this.filterItemData}},_onChecked:function(t){this.$emit("itemmove",t)},_itemMove:function(t){this.$emit("checked",t)},_slotFilter:function(t){return!!Object(i.a)(this.slotFilter,[t])},_onConfirmchange:function(t){this.$emit("confirmchange",t)}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_indexlist"},[t._l(t.comList,function(e,i){return["cont"===e.key?n("div",{key:i,staticClass:"nu_index-cont"},[n("nu-sticky",{attrs:{activeIndex:t.myActiveIndex,list:t.list,filterKey:t.filterKey,scrollAanimation:t.scrollAanimation,time:t.time,duration:t.duration},on:{"update:activeIndex":function(e){t.myActiveIndex=e},itemmove:t._itemMove,checked:t._onChecked},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.itemKey,o=e.itemData,s=e.itemIndex;return[t._slotFilter({itemKey:i,itemData:o,itemIndex:s})?n("nu-celllist",t._b({on:{confirmchange:t._onConfirmchange,click:t._onClick,tap:t._onTap}},"nu-celllist",t._filterProps(i,o,s),!1)):t._t("default",[n("nu-celllist",t._b({on:{confirmchange:t._onConfirmchange,click:t._onClick,tap:t._onTap}},"nu-celllist",t._filterProps(i,o,s),!1))],{confirmchange:t._onConfirmchange,click:t._onClick,tap:t._onTap},t._filterProps(i,o,s))]}}])})],1):t._e(),t._v(" "),"nav"===e.key?n("div",{key:i,staticClass:"nu_index-nav-wrap",class:[e.className]},[n("nu-scrollnav",{staticClass:"nu_index-nav",attrs:{activeIndex:t.myActiveIndex,list:t.list,isNavTouch:t.isNavTouch,filterKey:t.filterKey},on:{"update:activeIndex":function(e){t.myActiveIndex=e}}})],1):t._e()]})],2)},staticRenderFns:[]};var f=n("VU/8")(l,u,!1,function(t){n("qdNk")},null,null).exports,h=n("4qRk");e.default=Object(h.a)(f)},qd2b:function(t,e,n){"use strict";var i=n("5fCB"),o=n("Z05q"),s=n("zagf");var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}return t.prototype.$dispatchEvent=function(t,e,n){return Object(o.a)(t,e,n)},t.prototype.$on=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push([e,n])},t.prototype.$once=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this,o=!1,s=function s(){i.$off(t,s),o||(o=!0,e.apply(n,arguments))};s.fn=e,i.$on(t,s)},t.prototype.$off=function(t,e){var n=this._events&&this._events[t];if(n)for(var i=n.length;i--;)(n[i][0]===e||n[i][0]&&n[i][0].fn===e)&&(n[i][0]=void 0)},t.prototype.$emit=function(t){var e=this._events&&this._events[t];if(e){for(var n=e.length,i=[].concat(e),o=arguments.length,r=Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];for(var c=0;c<n;c++){var l=i[c],u=l[0],f=l[1];Object(s.a)(u,r,f)}}},t}(),a=n("FNmr");n.d(e,"a",function(){return c});var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.name="",i.defaultOption={},i.setDefaultOptions(!0,n),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.singleton=function(t){var e=this._singleton||this.instance(t);return this._singleton=e,e},e.instance=function(t){return new this(t)},e.install=function(t,e){var n=this.instance(e);return t&&t.use instanceof Function&&t.use(n,e),n},e.prototype.getParent=function(){return Object(s.a)(this._getParent||this._vue&&this._vue.prototype||null,[],this)},e.prototype.install=function(t,e){this._vue=this._vue||t;var n=Object(a.a)(t,this);return this.setDefaultOptions(e&&n&&e[n]||e),this},e.prototype.setDefaultOptions=function(t){var e=void 0,n=!0;"boolean"==typeof t?(n=t,e=arguments[1]||{}):e=t,e&&(this.defaultOption=Object(i.a)(n,this.defaultOption||{},e))},e.prototype.getOptions=function(){for(var t=[{},this.defaultOption||{}],e=!0,n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];return"boolean"==typeof o[0]&&(e=o[0],o.splice(0,1)),o&&o.length>0&&(t=t.concat(o)),i.a.apply(void 0,[e].concat(t))},e.prototype.preload=function(){var t=this;return new Promise(function(e,n){e(t)})},e}(r)},qdNk:function(t,e){},qxno:function(t,e){},rRBi:function(t,e,n){"use strict";var i=n("5fCB");e.a=i.a},"sL/4":function(t,e,n){"use strict";var i=n("MEnT");e.a=function t(e){var n=e;n&&n.scrollHeight-n.offsetHeight<50&&(n=n!==window?t(Object(i.a)(n)):null),n===window&&(document.body.scrollHeight||document.documentElement.scrollHeight)-window.innerHeight<30&&(n=null);return n}},shrL:function(t,e,n){"use strict";e.a=function(t,e){if(t=Object(i.a)(((t||"")+"").replace(/\s+/g,"")),!e&&a[t])return a[t];if(!e&&t in s)return t;for(var n=Object(o.a)(t),c=0;c<r.length;c++){var l=r[c],u=l+n;if(u in s)return r=[l],a[t]=u,e?l:u}return e?"":t};var i=n("lXuC"),o=n("0Zk/"),s=document.createElement("div").style,r=["Moz","webkit","O","ms"],a={}},wWr4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekq3"),o=n("HDd3"),s=n("WIwv"),r=n("MzTb"),a=n("iB7C"),c={extends:o.a,name:"NuCelllist",components:{NuCellgroup:s.default,NuCell:r.default,NuFunicon:a.default},props:{itemIndex:{},itemData:{type:Object},itemKey:{},filterItemTitle:{type:Function},filterItemData:{type:Function},lazyOptions:{type:Object},isLazy:{type:Boolean,default:!0}},computed:{_filterItemTitle:function(){var t=this.itemKey||"",e=this.itemData||{};return Object(i.a)(this.filterItemTitle||e.text||t,[e,t,this.itemIndex])}},methods:{_filterItem:function(t,e){return Object(i.a)(this.filterItemData||t,[t,e])||t},_click:function(t,e){this.$emit("confirmchange",e),this._onClick(t)},_tap:function(t,e){this.$emit("confirmchange",e),this._onTap(t)}}},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.itemData&&t.itemData.list?n("div",{staticClass:"nus_cell-list"},[t._filterItemTitle?n("div",{staticClass:"nu_cell-list-label"},[t._v("\n "+t._s(t._filterItemTitle)+"\n ")]):t._e(),t._v(" "),n("nu-cellgroup",{staticClass:"nu_cell-list-bd"},t._l(t.itemData.list,function(e,i){return n("nu-cell",{key:i,staticClass:"nu_cell-list-item",attrs:{isJustify:!1,itemData:t._filterItem(e,i)},on:{click:t._onClick,tap:t._onTap},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.itemData;return[i.imgUrl?n("nu-funicon",{staticClass:"nu_cell-list-icon",attrs:{lazyOptions:t.lazyOptions,isLazy:t.isLazy,imgUrl:i.imgUrl}}):t._e(),i.text?n("span",{staticClass:"nu_cell-list-text"},[t._v("\n "+t._s(i.text)+"\n ")]):t._e()]}}])})}))],1):t._e()},staticRenderFns:[]};var u=n("VU/8")(c,l,!1,function(t){n("TZrh")},null,null).exports,f=n("4qRk");e.default=Object(f.a)(u)},yY2C:function(t,e,n){"use strict";e.a=function(t,e,n,i){var o=null,s=0;return function(){for(var r=arguments.length,a=Array(r),c=0;c<r;c++)a[c]=arguments[c];if(o){if(i)return;clearTimeout(o),o=null}var l=Date.now()-s;function u(){s=Date.now(),o=!1,t.apply(n,a)}i&&l>=e?u():o=setTimeout(u,e)}}},zaQa:function(t,e){},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var i=t;t instanceof Function&&(i=t.apply(n,e));return i}}});