{"version":3,"file":"vue-content-loader.min.js","sources":["../node_modules/babel-helper-vue-jsx-merge-props/index.js","../src/uid.js","../src/ContentLoader.js","../src/BulletListLoader.js","../src/CodeLoader.js","../src/FacebookLoader.js","../src/ListLoader.js","../src/InstagramLoader.js"],"sourcesContent":["var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/\n\nmodule.exports = function mergeJSXProps (objs) {\n return objs.reduce(function (a, b) {\n var aa, bb, key, nestedKey, temp\n for (key in b) {\n aa = a[key]\n bb = b[key]\n if (aa && nestRE.test(key)) {\n // normalize class\n if (key === 'class') {\n if (typeof aa === 'string') {\n temp = aa\n a[key] = aa = {}\n aa[temp] = true\n }\n if (typeof bb === 'string') {\n temp = bb\n b[key] = bb = {}\n bb[temp] = true\n }\n }\n if (key === 'on' || key === 'nativeOn' || key === 'hook') {\n // merge functions\n for (nestedKey in bb) {\n aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])\n }\n } else if (Array.isArray(aa)) {\n a[key] = aa.concat(bb)\n } else if (Array.isArray(bb)) {\n a[key] = [aa].concat(bb)\n } else {\n for (nestedKey in bb) {\n aa[nestedKey] = bb[nestedKey]\n }\n }\n } else {\n a[key] = b[key]\n }\n }\n return a\n }, {})\n}\n\nfunction mergeFn (a, b) {\n return function () {\n a && a.apply(this, arguments)\n b && b.apply(this, arguments)\n }\n}\n","export default () =>\n Math.random()\n .toString(36)\n .substring(2)\n","import uid from './uid'\n\nexport default {\n name: 'ContentLoader',\n\n functional: true,\n\n props: {\n width: {\n type: [Number, String],\n default: 400\n },\n height: {\n type: [Number, String],\n default: 130\n },\n speed: {\n type: Number,\n default: 2\n },\n preserveAspectRatio: {\n type: String,\n default: 'xMidYMid meet'\n },\n baseUrl: {\n type: String,\n default: ''\n },\n primaryColor: {\n type: String,\n default: '#f9f9f9'\n },\n secondaryColor: {\n type: String,\n default: '#ecebeb'\n },\n primaryOpacity: {\n type: Number,\n default: 1\n },\n secondaryOpacity: {\n type: Number,\n default: 1\n },\n uniqueKey: {\n type: String\n },\n animate: {\n type: Boolean,\n default: true\n }\n },\n\n render(h, { props, data, children }) {\n const idClip = props.uniqueKey ? `${props.uniqueKey}-idClip` : uid()\n const idGradient = props.uniqueKey ? `${props.uniqueKey}-idGradient` : uid()\n\n return (\n \n \n\n \n \n {children || (\n \n )}\n \n\n \n \n {props.animate ? (\n \n ) : null}\n \n \n {props.animate ? (\n \n ) : null}\n \n \n {props.animate ? (\n \n ) : null}\n \n \n \n \n )\n }\n}\n","import ContentLoader from './ContentLoader'\n\nexport default {\n name: 'BulletListLoader',\n functional: true,\n render(h, { data }) {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n }\n}\n","import ContentLoader from './ContentLoader'\n\nexport default {\n name: 'CodeLoader',\n functional: true,\n render(h, { data }) {\n return (\n \n \n \n \n\n \n \n\n \n \n \n\n \n \n )\n }\n}\n","import ContentLoader from './ContentLoader'\n\nexport default {\n name: 'FacebookLoader',\n functional: true,\n render(h, { data }) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n}\n","import ContentLoader from './ContentLoader'\n\nexport default {\n name: 'ListLoader',\n functional: true,\n render(h, { data }) {\n return (\n \n \n \n \n \n \n \n \n )\n }\n}\n","import ContentLoader from './ContentLoader'\n\nexport default {\n name: 'InstagramLoader',\n functional: true,\n render(h, { data }) {\n return (\n \n \n\n \n \n \n \n )\n }\n}\n"],"names":["nestRE","objs","reduce","a","b","aa","bb","key","nestedKey","temp","test","mergeFn","Array","isArray","concat","apply","this","arguments","Math","random","toString","substring","name","functional","props","width","type","Number","String","height","speed","preserveAspectRatio","baseUrl","primaryColor","secondaryColor","primaryOpacity","secondaryOpacity","uniqueKey","animate","Boolean","render","h","data","children","idClip","uid","idGradient","viewBox","version","style","fill","x","y","id","rx","ry","offset","attributeName","values","dur","repeatCount","ContentLoader","cx","cy","r"],"mappings":"iMAAA,IAAIA,EAAS,iDAEI,SAAwBC,GACvC,OAAOA,EAAKC,OAAO,SAAUC,EAAGC,GAC9B,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