forgeplus-react/node_modules/react-content-loader/dist/react-content-loader.min.js

2 lines
5.1 KiB
JavaScript

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.ContentLoader={},e.React)}(this,function(e,w){"use strict";function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}var b=function(){return Math.random().toString(36).substring(2)},i=function(e){var t=e.animate,r=e.ariaLabel,i=e.children,c=e.className,n=e.height,a=e.preserveAspectRatio,l=e.primaryColor,h=e.primaryOpacity,y=e.rtl,o=e.secondaryColor,d=e.secondaryOpacity,m=e.speed,x=e.style,s=e.uniquekey,u=e.width,p=function(e,t){if(null==e)return{};var r,i,c={},n=Object.keys(e);for(i=0;i<n.length;i++)t.indexOf(r=n[i])<0&&(c[r]=e[r]);return c}(e,["animate","ariaLabel","children","className","height","preserveAspectRatio","primaryColor","primaryOpacity","rtl","secondaryColor","secondaryOpacity","speed","style","uniquekey","width"]),E=s?s+"-idClip":b(),f=s?s+"-idGradient":b(),g=y?["1; -3","2; -2","3; -1"]:["-3; 1","-2; 2","-1; 3"];return w.createElement("svg",v({role:"img",style:x,className:c,"aria-labelledby":r||null,viewBox:"0 0 "+u+" "+n,preserveAspectRatio:a},p),r?w.createElement("title",null,r):null,w.createElement("rect",{x:"0",y:"0",width:u,height:n,clipPath:"url(#"+E+")",style:{fill:"url(#"+f+")"}}),w.createElement("defs",null,w.createElement("clipPath",{id:E},i),w.createElement("linearGradient",{id:f},w.createElement("stop",{offset:"0%",stopColor:l,stopOpacity:h},t&&w.createElement("animate",{attributeName:"offset",values:g[0],dur:m+"s",repeatCount:"indefinite"})),w.createElement("stop",{offset:"50%",stopColor:o,stopOpacity:d},t&&w.createElement("animate",{attributeName:"offset",values:g[1],dur:m+"s",repeatCount:"indefinite"})),w.createElement("stop",{offset:"100%",stopColor:l,stopOpacity:h},t&&w.createElement("animate",{attributeName:"offset",values:g[2],dur:m+"s",repeatCount:"indefinite"})))))},c={animate:!0,ariaLabel:"Loading interface...",height:130,preserveAspectRatio:"xMidYMid meet",primaryColor:"#f0f0f0",primaryOpacity:1,rtl:!1,secondaryColor:"#e0e0e0",secondaryOpacity:1,speed:2,width:400},n=function(e){return w.createElement("rect",{x:"0",y:"0",rx:"5",ry:"5",width:e.width,height:e.height})},t=function(e){var t=v({},c,e),r=e.children?e.children:w.createElement(n,t);return w.createElement(i,t,r)};e.default=t,e.Facebook=function(e){return w.createElement(t,e,w.createElement("rect",{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}),w.createElement("rect",{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}),w.createElement("rect",{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}),w.createElement("rect",{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}),w.createElement("rect",{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}),w.createElement("circle",{cx:"30",cy:"30",r:"30"}))},e.Instagram=function(e){return w.createElement(t,v({},e,{height:480}),w.createElement("circle",{cx:"30",cy:"30",r:"30"}),w.createElement("rect",{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}),w.createElement("rect",{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}),w.createElement("rect",{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}))},e.Code=function(e){return w.createElement(t,e,w.createElement("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}),w.createElement("rect",{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}),w.createElement("rect",{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}),w.createElement("rect",{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}),w.createElement("rect",{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}),w.createElement("rect",{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}),w.createElement("rect",{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}),w.createElement("rect",{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}),w.createElement("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}))},e.List=function(e){return w.createElement(t,e,w.createElement("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),w.createElement("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),w.createElement("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),w.createElement("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),w.createElement("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),w.createElement("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},e.BulletList=function(e){return w.createElement(t,e,w.createElement("circle",{cx:"10",cy:"20",r:"8"}),w.createElement("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),w.createElement("circle",{cx:"10",cy:"50",r:"8"}),w.createElement("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),w.createElement("circle",{cx:"10",cy:"80",r:"8"}),w.createElement("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),w.createElement("circle",{cx:"10",cy:"110",r:"8"}),w.createElement("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))},Object.defineProperty(e,"__esModule",{value:!0})});