@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
34 lines (33 loc) • 8.7 kB
JavaScript
var IconsBytedCpu=function(u){"use strict";var F={size:"1em",spin:!1,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{outStrokeColor:"#333",outFillColor:"transparent"},filled:{outStrokeColor:"#333",outFillColor:"#fff"},twoTone:{outStrokeColor:"#333",outFillColor:"#2f88ff"},multiColor:{outStrokeColor:"#333",outFillColor:"#2f88ff",innerStrokeColor:"#fff",innerFillColor:"#43ccf8"}},prefix:"cube"},A=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},Z=function(o,l,e){var t=l?.colors||[],n=[],r=l?.theme||e.theme;switch(r){case"outline":n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor);break;case"filled":n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor);break;case"twoTone":n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor);break;case"multiColor":n.push(typeof t[0]=="string"?t[0]:e.colors.multiColor.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.multiColor.outFillColor),n.push(typeof t[2]=="string"?t[2]:e.colors.multiColor.innerStrokeColor),n.push(typeof t[3]=="string"?t[3]:e.colors.multiColor.innerFillColor);break}return{size:l?.size||e.size,strokeWidth:l?.strokeWidth||e.strokeWidth,strokeLinecap:l?.strokeLinecap||e.strokeLinecap,strokeLinejoin:l?.strokeLinejoin||e.strokeLinejoin,colors:n,svg:l?.svg||"",id:o}},I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",x=function(o,l){for(var e="",t=0,n=o.length,r,c,a,i=l?T:I;t<n;){if(r=o.charCodeAt(t++)&255,t===n){e+=i.charAt(r>>2),e+=i.charAt((r&3)<<4),e+="==";break}if(c=o.charCodeAt(t++),t===n){e+=i.charAt(r>>2),e+=i.charAt((r&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2),e+="=";break}a=o.charCodeAt(t++),e+=i.charAt(r>>2),e+=i.charAt((r&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2|(a&192)>>6),e+=i.charAt(a&63)}return e},B=function(o){var l="",e,t,n=o.length;for(e=0;e<n;e++)t=o.charCodeAt(e),t>=1&&t<=127?l+=o.charAt(e):t>2047?(l+=String.fromCharCode(224|t>>12&15),l+=String.fromCharCode(128|t>>6&63),l+=String.fromCharCode(128|t>>0&63)):(l+=String.fromCharCode(192|t>>6&31),l+=String.fromCharCode(128|t>>0&63));return l},z=F,E=function(){return z},U=function(o,l,e){return function(t){var n=E(),r=["".concat(n.prefix,"-icon")];r.push("".concat(n.prefix,"-icon-").concat(o)),l&&n.rtl&&r.push("".concat(n.prefix,"-icon-rtl")),t!=null&&t.spin&&r.push("".concat(n.prefix,"-icon-spin"));var c=Z(A(),t,n),a=e(c),i=x(B(a)),s="data:image/svg+xml;base64,".concat(i);return t!=null&&t.base64?s:'<span class="'.concat(r.join(" "),`">
<img class="`).concat(n.prefix,'-icon-img" src="').concat(s,`" />
</span>`)}},b=function(o){var l,e,t,n,r,c,a,i,s,v,k,h,f,C,g,L,j,p,w,_,m,M,H,$,y,V,S,W;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(o.size,'" height="').concat(o.size,`" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="48" height="48" fill="white" fill-opacity="0.01"/>
<path d="M48 0H0V48H48V0Z" fill="white" fill-opacity="0.01"/>
<path d="M38 8H10C8.89543 8 8 8.89543 8 10V38C8 39.1046 8.89543 40 10 40H38C39.1046 40 40 39.1046 40 38V10C40 8.89543 39.1046 8 38 8Z" fill="`).concat((l=o.colors)===null||l===void 0?void 0:l[1],'" stroke="').concat((e=o.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M30 18H18V30H30V18Z" fill="`).concat((t=o.colors)===null||t===void 0?void 0:t[3],'" stroke="').concat((n=o.colors)===null||n===void 0?void 0:n[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9092 2V8V2Z" fill="`).concat((r=o.colors)===null||r===void 0?void 0:r[1],`"/>
<path d="M14.9092 2V8" stroke="`).concat((c=o.colors)===null||c===void 0?void 0:c[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9092 40V46V40Z" fill="`).concat((a=o.colors)===null||a===void 0?void 0:a[1],`"/>
<path d="M14.9092 40V46" stroke="`).concat((i=o.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24 2V8V2Z" fill="`).concat((s=o.colors)===null||s===void 0?void 0:s[1],`"/>
<path d="M24 2V8" stroke="`).concat((v=o.colors)===null||v===void 0?void 0:v[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24 40V46V40Z" fill="`).concat((k=o.colors)===null||k===void 0?void 0:k[1],`"/>
<path d="M24 40V46" stroke="`).concat((h=o.colors)===null||h===void 0?void 0:h[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.0908 2V8V2Z" fill="`).concat((f=o.colors)===null||f===void 0?void 0:f[1],`"/>
<path d="M33.0908 2V8" stroke="`).concat((C=o.colors)===null||C===void 0?void 0:C[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.0908 40V46V40Z" fill="`).concat((g=o.colors)===null||g===void 0?void 0:g[1],`"/>
<path d="M33.0908 40V46" stroke="`).concat((L=o.colors)===null||L===void 0?void 0:L[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 14.9091H8H2Z" fill="`).concat((j=o.colors)===null||j===void 0?void 0:j[1],`"/>
<path d="M2 14.9091H8" stroke="`).concat((p=o.colors)===null||p===void 0?void 0:p[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40 14.9091H46H40Z" fill="`).concat((w=o.colors)===null||w===void 0?void 0:w[1],`"/>
<path d="M40 14.9091H46" stroke="`).concat((_=o.colors)===null||_===void 0?void 0:_[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 24H8H2Z" fill="`).concat((m=o.colors)===null||m===void 0?void 0:m[1],`"/>
<path d="M2 24H8" stroke="`).concat((M=o.colors)===null||M===void 0?void 0:M[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40 24H46H40Z" fill="`).concat((H=o.colors)===null||H===void 0?void 0:H[1],`"/>
<path d="M40 24H46" stroke="`).concat(($=o.colors)===null||$===void 0?void 0:$[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 33.0909H8H2Z" fill="`).concat((y=o.colors)===null||y===void 0?void 0:y[1],`"/>
<path d="M2 33.0909H8" stroke="`).concat((V=o.colors)===null||V===void 0?void 0:V[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40 33.0909H46H40Z" fill="`).concat((S=o.colors)===null||S===void 0?void 0:S[1],`"/>
<path d="M40 33.0909H46" stroke="`).concat((W=o.colors)===null||W===void 0?void 0:W[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
</svg>`)},O=U("byted-cpu",!1,b);return u.default=O,u.getIconBytedCpuSvgHtml=b,Object.defineProperty(u,"__esModule",{value:!0}),u}({});