UNPKG

vstx-loader

Version:

Loader component for the Vue Stacks Template

1 lines 6.99 kB
window.DataTable=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var i=r(1),s=n(i);t.exports={install:function(t,e){t.component("vstx-loader",s["default"])}}},function(t,e,r){r(2);var n=r(7)(r(8),r(9),null,null);t.exports=n.exports},function(t,e,r){var n=r(3);"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);r(5)("29a16faa",n,!0)},function(t,e,r){e=t.exports=r(4)(void 0),e.push([t.id,"",""])},function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var s=n(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[r].concat(a).concat([s]).join("\n")}return[r].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+r+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var s=this[i][0];"number"==typeof s&&(n[s]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(t,e,r){function n(t){for(var e=0;e<t.length;e++){var r=t[e],n=c[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(s(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(s(r.parts[i]));c[r.id]={id:r.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function s(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(p)return g;n.parentNode.removeChild(n)}if(m){var s=h++;n=f||(f=i()),e=a.bind(null,n,s,!1),r=a.bind(null,n,s,!0)}else n=i(),e=o.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 a(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var s=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(s,a[e]):t.appendChild(s)}}function o(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var u="undefined"!=typeof document,l=r(6),c={},d=u&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,g=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r){p=r;var i=l(t,e);return n(i),function(e){for(var r=[],s=0;s<i.length;s++){var a=i[s],o=c[a.id];o.refs--,r.push(o)}e?(i=l(t,e),n(i)):i=[];for(var s=0;s<r.length;s++){var o=r[s];if(0===o.refs){for(var u=0;u<o.parts.length;u++)o.parts[u]();delete c[o.id]}}}};var v=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var r=[],n={},i=0;i<e.length;i++){var s=e[i],a=s[0],o=s[1],u=s[2],l=s[3],c={id:t+":"+i,css:o,media:u,sourceMap:l};n[a]?n[a].parts.push(c):r.push(n[a]={id:a,parts:[c]})}return r}},function(t,e){t.exports=function(t,e,r,n){var i,s=t=t||{},a=typeof t["default"];"object"!==a&&"function"!==a||(i=t,s=t["default"]);var o="function"==typeof s?s.options:s;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),r&&(o._scopeId=r),n){var u=Object.create(o.computed||null);Object.keys(n).forEach(function(t){var e=n[t];u[t]=function(){return e}}),o.computed=u}return{esModule:i,exports:s,options:o}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={name:"loader-wave-bars",props:{barCount:{type:Number,required:!1,"default":4,note:"An Array of Objects of the DATA__ROW class."},size:{required:!1,"default":"small",note:'Pass in size strings e.g. "small" or a number controlling the rem width'},pixelsPerRem:{required:!1,"default":16,note:"REM Size of the document, for scaling purposes."},barWidth:{required:!1,"default":5,note:"Width of the bar before scaling"},barHeight:{required:!1,"default":15,note:"Height of the bar before scaling"},amplitude:{required:!1,"default":10,note:"Amplitude of the bar animation"},gap:{required:!1,"default":10,note:"Controls the size of spaces between bars"}},data:function(){return{color:"#FF6700",bars:[]}},created:function(){for(var t=0;t<this.barCount;t++){var e={x:t*this.getGap,y:0,width:this.getBarWidth,height:this.getBarHeight,begin:.2*t+"s",duration:"0.6s"};this.bars.push(e)}},computed:{rootState:function(){return{width:this.getWidth+"rem",height:this.getHeight+"rem"}},transformValues:function(){return"0 0; 0 "+this.getAmplitude+"; 0 0"},getBarWidth:function(){return this.barWidth*this.multiplier},getBarHeight:function(){return this.barHeight*this.multiplier},getGap:function(){return this.gap*this.multiplier},gapWidth:function(){return this.getGap-this.getBarWidth},getAmplitude:function(){return this.amplitude*this.multiplier},getHeight:function(){var t=(this.getBarHeight+this.getAmplitude)/this.pixelsPerRem;return t.toFixed(2)},getWidth:function(){var t=this.getBarWidth*this.barCount+this.gapWidth*(this.barCount-1),e=t/this.pixelsPerRem;return e.toFixed(2)},viewBox:function(){return"0 0 "+this.getWidth*this.pixelsPerRem+" "+this.getHeight*this.pixelsPerRem},multiplier:function(){if(this.size.length&&!isNaN(Number(this.size)))return Number(this.size).toFixed(2);switch(this.size){case"extra-small":return.5;case"small":return.75;case"large":return 1.75;case"extra-large":return 2.5;default:return 1}}},methods:{inRems:function(t){return t+"rem"}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"icon wave-bars",style:t.rootState},[r("svg",{staticStyle:{"enable-background":"new 0 0 50 50"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:t.inRems(t.getWidth),height:t.inRems(t.getHeight),viewBox:t.viewBox,"xml:space":"preserve"}},t._l(t.bars,function(e,n){return r("rect",{attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:t.color}},[r("animateTransform",{attrs:{attributeType:"xml",attributeName:"transform",type:"translate",values:t.transformValues,begin:e.begin,dur:e.duration,repeatCount:"indefinite"}})],1)}))])},staticRenderFns:[]}}]);