vue2-csspin
Version:
vue spinner component for vue.js 2.x(css-pin wrapper)
2 lines • 14.6 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["Vue2Csspin"]=e():t["Vue2Csspin"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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="fb15")}({"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),c=n("5c6c"),i=n("fc6a"),u=n("c04e"),a=n("5135"),f=n("0cfb"),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=i(t),e=u(e,!0),f)try{return s(t,e)}catch(n){}if(a(t,e))return c(!o.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),c=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e)}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),c=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},2823:function(t,e,n){},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("825a"),i=n("df75");t.exports=r?Object.defineProperties:function(t,e){c(t);var n,r=i(e),u=r.length,a=0;while(u>a)o.f(t,n=r[a++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3d4a":function(t,e,n){"use strict";n("2823")},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),c=n("23cb"),i=function(t){return function(e,n,i){var u,a=r(e),f=o(a.length),s=c(i,f);if(t&&n!=n){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),c="["+o+"]",i=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"69f3":function(t,e,n){var r,o,c,i=n("7f9a"),u=n("da84"),a=n("861d"),f=n("9112"),s=n("5135"),p=n("c6cd"),l=n("f772"),d=n("d012"),v=u.WeakMap,y=function(t){return c(t)?o(t):r(t,{})},b=function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(i){var h=p.state||(p.state=new v),g=h.get,m=h.has,x=h.set;r=function(t,e){return e.facade=t,x.call(h,t,e),e},o=function(t){return g.call(h,t)||{}},c=function(t){return m.call(h,t)}}else{var _=l("state");d[_]=!0,r=function(t,e){return e.facade=t,f(t,_,e),e},o=function(t){return s(t,_)?t[_]:{}},c=function(t){return s(t,_)}}t.exports={set:r,get:o,has:c,enforce:y,getterFor:b}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),c=n("5135"),i=n("ce4e"),u=n("8925"),a=n("69f3"),f=a.get,s=a.enforce,p=String(String).split("String");(t.exports=function(t,e,n,u){var a,f=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||o(n,"name",e),a=s(n),a.source||(a.source=p.join("string"==typeof e?e:""))),t!==r?(f?!d&&t[e]&&(l=!0):delete t[e],l?t[e]=n:o(t,e,n)):l?t[e]=n:i(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var c,i;return o&&"function"==typeof(c=e.constructor)&&c!==n&&r(i=c.prototype)&&i!==n.prototype&&o(t,i),t}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7c73":function(t,e,n){var r,o=n("825a"),c=n("37e8"),i=n("7839"),u=n("d012"),a=n("1be4"),f=n("cc12"),s=n("f772"),p=">",l="<",d="prototype",v="script",y=s("IE_PROTO"),b=function(){},h=function(t){return l+v+p+t+l+"/"+v+p},g=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=f("iframe"),n="java"+v+":";return e.style.display="none",a.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?g(r):m();var t=i.length;while(t--)delete x[d][i[t]];return x()};u[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[d]=o(t),n=new b,b[d]=null,n[y]=t):n=x(),void 0===e?n:c(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,c;(function(n,i){o=[],r=i,c="function"===typeof r?r.apply(e,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,u=c.exec(d.stack)||i.exec(d.stack),a=u&&u[1]||!1,f=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");a===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var l=0;l<p.length;l++){if("interactive"===p[l].readyState)return p[l];if(p[l].src===a)return p[l];if(a===s&&p[l].innerHTML&&p[l].innerHTML.trim()===o)return p[l]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,c=function(t,e){var n=u[i(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},i=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=c.data={},a=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),c=n("825a"),i=n("c04e"),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(c(t),e=i(e,!0),c(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),c=n("94ca"),i=n("6eeb"),u=n("5135"),a=n("c6b6"),f=n("7156"),s=n("c04e"),p=n("d039"),l=n("7c73"),d=n("241c").f,v=n("06cf").f,y=n("9bf2").f,b=n("58a8").trim,h="Number",g=o[h],m=g.prototype,x=a(l(m))==h,_=function(t){var e,n,r,o,c,i,u,a,f=s(t,!1);if("string"==typeof f&&f.length>2)if(f=b(f),e=f.charCodeAt(0),43===e||45===e){if(n=f.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(c=f.slice(2),i=c.length,u=0;u<i;u++)if(a=c.charCodeAt(u),a<48||a>o)return NaN;return parseInt(c,r)}return+f};if(c(h,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var S,w=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof w&&(x?p((function(){m.valueOf.call(n)})):a(n)!=h)?f(new g(_(e)),n,w):_(e)},O=r?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),j=0;O.length>j;j++)u(g,S=O[j])&&!u(w,S)&&y(w,S,v(g,S));w.prototype=m,m.constructor=w,i(o,h,w)}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),c="__core-js_shared__",i=r[c]||o(c,{});t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),c=n("4d64").indexOf,i=n("d012");t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)!r(i,n)&&r(u,n)&&f.push(n);while(e.length>a)r(u,n=e[a++])&&(~c(f,n)||f.push(n));return f}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),c=r.document,i=o(c)&&o(c.createElement);t.exports=function(t){return i?c.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),c=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?c(r[t])||c(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(c){}return function(n,c){return r(n),o(c),e?t.call(n,c):n.__proto__=c,n}}():void 0)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"Vue2Csspin",(function(){return l})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-csspin-modal",style:{backgroundColor:t.color,opacity:t.opacity}},[n("div",{staticClass:"vue-csspin-box"},[n("div",{staticClass:"cp-spinner",class:t.spinStyle}),n("div",{staticStyle:{margin:"1rem"}},[t._v(t._s(t.message))])])])},u=[],a=(n("a9e3"),{name:"Vue2Csspin",props:{message:{type:String,default:"Loading"},spinStyle:{type:String,default:"cp-round"},opacity:{type:Number,default:.7,validator:function(t){return t>=0&&t<=1}},color:{type:String,default:"white"}}}),f=a;n("3d4a");function s(t,e,n,r,o,c,i,u){var a,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),c&&(f._scopeId="data-v-"+c),i?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=a):o&&(a=u?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,e){return a.call(e),s(t,e)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,a):[a]}return{exports:t,options:f}}var p=s(f,i,u,!1,null,"b12aa53c",null),l=p.exports,d=function(t){t.component("vue2-csspin",l)};"undefined"!==typeof window&&window.Vue&&d(window.Vue);var v=d;e["default"]=v},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}}})}));
//# sourceMappingURL=vue2-csspin.umd.min.js.map