text: /*! vue-ydui v1.2.0 by YDCSS (c) 2018 Licensed MIT */
  !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ydui=e():t.ydui=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="/dist/",e(0)}({0:function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.StepItem=e.Step=void 0;var o=r(130),s=n(o),i=r(129),a=n(i);e.Step=s.default,e.StepItem=a.default},1:function(t,e){t.exports=function(t,e,r,n){var o,s=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(o=t,s=t.default);var a="function"==typeof s?s.options:s;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r),n){var d=a.computed||(a.computed={});Object.keys(n).forEach(function(t){var e=n[t];d[t]=function(){return e}})}return{esModule:o,exports:s,options:a}}},2:function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e];r[2]?t.push("@media "+r[2]+"{"+r[1]+"}"):t.push(r[1])}return t.join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(n[s]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),t.push(i))}},t}},3:function(t,e,r){function n(t){for(var e=0;e<t.length;e++){var r=t[e],n=u[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(s(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var i=[],o=0;o<r.parts.length;o++)i.push(s(r.parts[o]));u[r.id]={id:r.id,refs:1,parts:i}}}}function o(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function s(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(m)return h;n.parentNode.removeChild(n)}if(y){var s=f++;n=l||(l=o()),e=i.bind(null,n,s,!1),r=i.bind(null,n,s,!0)}else n=o(),e=a.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}function i(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=v(e,o);else{var s=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(s,i[e]):t.appendChild(s)}}function a(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var d="undefined"!=typeof document,p=r(4),u={},c=d&&(document.head||document.getElementsByTagName("head")[0]),l=null,f=0,m=!1,h=function(){},y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r){m=r;var o=p(t,e);return n(o),function(e){for(var r=[],s=0;s<o.length;s++){var i=o[s],a=u[i.id];a.refs--,r.push(a)}e?(o=p(t,e),n(o)):o=[];for(var s=0;s<r.length;s++){var a=r[s];if(0===a.refs){for(var d=0;d<a.parts.length;d++)a.parts[d]();delete u[a.id]}}}};var v=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},4:function(t,e){t.exports=function(t,e){for(var r=[],n={},o=0;o<e.length;o++){var s=e[o],i=s[0],a=s[1],d=s[2],p=s[3],u={id:t+":"+o,css:a,media:d,sourceMap:p};n[i]?n[i].parts.push(u):r.push(n[i]={id:i,parts:[u]})}return r}},5:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){var t=function(t){t.preventDefault(),t.stopPropagation()},e=!1;return{lock:function(r){e||(e=!0,(r||document).addEventListener("touchmove",t))},unlock:function(r){e=!1,(r||document).removeEventListener("touchmove",t)}}}(),n=function(){return{lock:function(t){o&&p(t||document.body,"g-fix-ios-prevent-scroll")},unlock:function(t){o&&u(t||document.body,"g-fix-ios-prevent-scroll")}}}(),o=!!(window.navigator&&window.navigator.userAgent||"").match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),s=function(t){var e=/^#([a-fA-F0-9]){3}(([a-fA-F0-9]){3})?$/,r=/^[rR][gG][bB][aA]\(\s*((25[0-5]|2[0-4]\d|1?\d{1,2})\s*,\s*){3}\s*(\.|\d+\.)?\d+\s*\)$/,n=/^[rR][gG][bB]\(\s*((25[0-5]|2[0-4]\d|1?\d{1,2})\s*,\s*){2}(25[0-5]|2[0-4]\d|1?\d{1,2})\s*\)$/;return e.test(t)||r.test(t)||n.test(t)},i=function(t){for(var e=t;e&&"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType;){var r=document.defaultView.getComputedStyle(e).overflowY;if("scroll"===r||"auto"===r)return e;e=e.parentNode}return window},a=function(t,e){var r=t===window?document.body.offsetHeight:t.offsetHeight,n=t===window?0:t.getBoundingClientRect().top,o=e.getBoundingClientRect().top-n,s=o+e.offsetHeight;return o>=0&&o<r||s>0&&s<=r},d=function(t,e){return e=e||"",!(0===e.replace(/\s/g,"").length||!t)&&new RegExp(" "+e+" ").test(" "+t.className+" ")},p=function(t,e){d(t,e)||(t.className=""===t.className?e:t.className+" "+e)},u=function(t,e){if(d(t,e)){for(var r=" "+t.className.replace(/[\t\r\n]/g,"")+" ";r.indexOf(" "+e+" ")>=0;)r=r.replace(" "+e+" "," ");t.className=r.replace(/^\s+|\s+$/g,"")}},c=function(t){function e(r,n,o){if(r===n)return void("function"==typeof s&&s());var i=r+o>n?n:r+o;r>n&&(i=r-o<n?n:r-o),t===window?window.scrollTo(i,i):t.scrollTop=i,window.requestAnimationFrame(function(){return e(i,n,o)})}var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,s=arguments[4];window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)});var i=Math.abs(r-n),a=Math.ceil(i/o*50);e(r,n,a)};e.pageScroll=r,e.preventScroll=n,e.isIOS=o,e.isColor=s,e.getScrollview=i,e.checkInview=a,e.addClass=p,e.removeClass=u,e.scrollTop=c},63:function(t,e,r){e=t.exports=r(2)(),e.push([t.id,'.yd-step{font-size:13px}.yd-step-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.yd-step-item{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.yd-step-item:not(:first-child):before{content:"";height:2px;position:absolute;top:-1px;background-color:#ccc}.yd-step-item>em{border-radius:50%;position:absolute;top:50%;left:50%;background-color:#ccc}.yd-step-item-bottom,.yd-step-item-top{position:absolute;left:0;text-align:center;white-space:nowrap;text-overflow:ellipsis;width:100%;padding:0 4px}.yd-step-item-top-text>span{color:#989898}.yd-step-item-bottom{color:#333}.yd-step-theme1 .yd-step-content{padding:10px 0 42px}.yd-step-theme1 .yd-step-item:not(:first-child):before{width:70%;left:-35%}.yd-step-theme1 .yd-step-item>em{width:20px;height:20px;margin-left:-10px;margin-top:-10px;text-align:center;line-height:20px;font-size:12px}.yd-step-theme1 .yd-step-item>em>i{color:#fff}.yd-step-theme1 .yd-step-item-top{bottom:18px}.yd-step-theme1 .yd-step-item-bottom{top:18px}.yd-step-theme1 .yd-step-item-current:before,.yd-step-theme1 .yd-step-item-current>em{background-color:currentColor}.yd-step-theme1 .yd-step-item-current>em.yd-step-checkmark:after{content:"";position:absolute;top:4px;left:8px;border:1px solid #fff;border-top:0;border-left:0;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:5px;height:10px}.yd-step-theme1 .yd-step-item-current .yd-step-item-bottom{color:currentColor}.yd-step-theme2 .yd-step-content{padding:42px 0}.yd-step-theme2 .yd-step-item:not(:first-child):before{width:80%;left:-40%}.yd-step-theme2 .yd-step-item>em{width:10px;height:10px;margin-left:-5px;margin-top:-5px}.yd-step-theme2 .yd-step-item-top{bottom:15px}.yd-step-theme2 .yd-step-item-bottom{top:15px}.yd-step-theme2 .yd-step-item-current .yd-step-item-top-text{display:inline-block;background-color:currentColor;padding:5px 11px 3px;border-radius:100px;position:relative;z-index:1}.yd-step-theme2 .yd-step-item-current .yd-step-item-top-text>span{color:#fff}.yd-step-theme2 .yd-step-item-current>em{background-color:currentColor}.yd-step-theme2 .yd-step-item-current>em:after{content:"";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;position:absolute;top:-10px;left:50%;margin-left:-6px}',""])},129:function(t,e,r){var n=r(1)(r(305),r(207),null,null);t.exports=n.exports},130:function(t,e,r){r(237);var n=r(1)(r(306),r(190),null,null);t.exports=n.exports},190:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"yd-step",class:"yd-step-theme"+t.theme},[r("ul",{staticClass:"yd-step-content",style:{paddingBottom:t.hasBottom?"42px":"10px",paddingTop:t.hasTop?"42px":"10px",color:t.currentColor}},[t._t("default")],2)])},staticRenderFns:[]}},207:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("li",{staticClass:"yd-step-item",class:t.currentClass},[1==t.theme?[r("em",{class:t.stepNumber<t.current?"yd-step-checkmark":""},[r("i",[t._v(t._s(t.stepNumber>=t.current?t.stepNumber:""))])])]:[r("em")],t._v(" "),r("div",{staticClass:"yd-step-item-top"},[r("div",{staticClass:"yd-step-item-top-text"},[r("span",[t._t("top")],2)])]),t._v(" "),r("div",{staticClass:"yd-step-item-bottom"},[t._t("bottom")],2)],2)},staticRenderFns:[]}},237:function(t,e,r){var n=r(63);"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);r(3)("2d85b719",n,!0)},305:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"yd-step-item",data:function(){return{stepNumber:"",current:"",theme:"",currentClass:""}},methods:{setCurrentClass:function(){return 2==this.theme?void(this.currentClass=this.stepNumber==this.current?"yd-step-item-current":""):void(this.currentClass=this.stepNumber<=this.current?"yd-step-item-current":"")}},mounted:function(){this.$nextTick(this.$parent.updateChildStatus)}}},306:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5);e.default={name:"yd-step",data:function(){return{hasTop:!1,hasBottom:!1}},props:{theme:{validator:function(t){return["1","2"].indexOf(t)>-1},default:"1"},current:{validator:function(t){return/^\d*$/.test(t)},default:0},currentColor:{validator:function(t){return(0,n.isColor)(t)},default:"#0DB78A"}},methods:{updateChildStatus:function(t){var e=this,r=this.$children.filter(function(t){return"yd-step-item"===t.$options.name});r.forEach(function(n,o){n.stepNumber=o+1,o+1===r.length&&e.current>=n.stepNumber?n.current=n.stepNumber:n.current=e.current,n.theme=e.theme,n.$slots.bottom&&(e.hasBottom=!0),n.$slots.top&&(e.hasTop=!0),n.loaded&&!t||(n.setCurrentClass(),n.loaded=!0)})}},watch:{current:function(){var t=this;this.$nextTick(function(){t.updateChildStatus(!0)})}}}}})});