@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
24 lines (23 loc) • 7.39 kB
JavaScript
var IconsBytedBarCode=function(k){"use strict";var L={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"},g=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},j=function(o,n,t){var e=n?.colors||[],r=[],l=n?.theme||t.theme;switch(l){case"outline":r.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor),r.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor);break;case"filled":r.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),r.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor),r.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor);break;case"twoTone":r.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor),r.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof e[0]=="string"?e[0]:t.colors.multiColor.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.multiColor.outFillColor),r.push(typeof e[2]=="string"?e[2]:t.colors.multiColor.innerStrokeColor),r.push(typeof e[3]=="string"?e[3]:t.colors.multiColor.innerFillColor);break}return{size:n?.size||t.size,strokeWidth:n?.strokeWidth||t.strokeWidth,strokeLinecap:n?.strokeLinecap||t.strokeLinecap,strokeLinejoin:n?.strokeLinejoin||t.strokeLinejoin,colors:r,svg:n?.svg||"",id:o}},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",y=function(o,n){for(var t="",e=0,r=o.length,l,c,a,i=n?w:m;e<r;){if(l=o.charCodeAt(e++)&255,e===r){t+=i.charAt(l>>2),t+=i.charAt((l&3)<<4),t+="==";break}if(c=o.charCodeAt(e++),e===r){t+=i.charAt(l>>2),t+=i.charAt((l&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2),t+="=";break}a=o.charCodeAt(e++),t+=i.charAt(l>>2),t+=i.charAt((l&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2|(a&192)>>6),t+=i.charAt(a&63)}return t},S=function(o){var n="",t,e,r=o.length;for(t=0;t<r;t++)e=o.charCodeAt(t),e>=1&&e<=127?n+=o.charAt(t):e>2047?(n+=String.fromCharCode(224|e>>12&15),n+=String.fromCharCode(128|e>>6&63),n+=String.fromCharCode(128|e>>0&63)):(n+=String.fromCharCode(192|e>>6&31),n+=String.fromCharCode(128|e>>0&63));return n},W=L,b=function(){return W},F=function(o,n,t){return function(e){var r=b(),l=["".concat(r.prefix,"-icon")];l.push("".concat(r.prefix,"-icon-").concat(o)),n&&r.rtl&&l.push("".concat(r.prefix,"-icon-rtl")),e!=null&&e.spin&&l.push("".concat(r.prefix,"-icon-spin"));var c=j(g(),e,r),a=t(c),i=y(S(a)),d="data:image/svg+xml;base64,".concat(i);return e!=null&&e.base64?d:'<span class="'.concat(l.join(" "),`">
<img class="`).concat(r.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},C=function(o){var n,t,e,r,l,c,a,i,d,u,v,h,f;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(o.size,'" height="').concat(o.size,`" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
<g>
<rect width="48" height="48" fill="white" fill-opacity="0.01" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,`" stroke="none" fill-rule="evenodd"/>
<g transform="translate(4.000000, 6.000000)">
<path d="M0,14 L40,14" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((n=o.colors)===null||n===void 0?void 0:n[0],`" fill="none" fill-rule="evenodd"/>
<path d="M2,0 L2,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((t=o.colors)===null||t===void 0?void 0:t[0],`" fill="none" fill-rule="evenodd"/>
<path d="M2,19.9954922 L2,31.9991242" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((e=o.colors)===null||e===void 0?void 0:e[0],`" fill="none" fill-rule="evenodd"/>
<path d="M16.4,0 L16.4,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((r=o.colors)===null||r===void 0?void 0:r[0],`" fill="none" fill-rule="evenodd"/>
<path d="M16.4,20 L16.4,36" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((l=o.colors)===null||l===void 0?void 0:l[0],`" fill="none" fill-rule="evenodd"/>
<path d="M30.8,0 L30.8,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((c=o.colors)===null||c===void 0?void 0:c[0],`" fill="none" fill-rule="evenodd"/>
<path d="M38,0 L38,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((a=o.colors)===null||a===void 0?void 0:a[0],`" fill="none" fill-rule="evenodd"/>
<path d="M30.8,20 L30.8,28" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((i=o.colors)===null||i===void 0?void 0:i[0],`" fill="none" fill-rule="evenodd"/>
<path d="M9.2,0 L9.2,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((d=o.colors)===null||d===void 0?void 0:d[0],`" fill="none" fill-rule="evenodd"/>
<path d="M9.2,20 L9.2,28" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((u=o.colors)===null||u===void 0?void 0:u[0],`" fill="none" fill-rule="evenodd"/>
<path d="M23.6,0 L23.6,8" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((v=o.colors)===null||v===void 0?void 0:v[0],`" fill="none" fill-rule="evenodd"/>
<path d="M23.6,20 L23.6,28" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((h=o.colors)===null||h===void 0?void 0:h[0],`" fill="none" fill-rule="evenodd"/>
<path d="M38,20 L38,32" stroke-linecap="`).concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,'" stroke-width="').concat(o.strokeWidth,'" stroke="').concat((f=o.colors)===null||f===void 0?void 0:f[0],`" fill="none" fill-rule="evenodd"/>
</g>;
</g>;
</svg>`)},_=F("byted-bar-code",!1,C);return k.default=_,k.getIconBytedBarCodeSvgHtml=C,Object.defineProperty(k,"__esModule",{value:!0}),k}({});