UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

24 lines (23 loc) 7.14 kB
var IconsBytedSun=function(u){"use strict";var w={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"},j=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},y=function(t,l,e){var o=l?.colors||[],r=[],n=l?.theme||e.theme;switch(n){case"outline":r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),r.push(typeof o[3]=="string"?o[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:r,svg:l?.svg||"",id:t}},_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",b=function(t,l){for(var e="",o=0,r=t.length,n,c,a,i=l?M:_;o<r;){if(n=t.charCodeAt(o++)&255,o===r){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4),e+="==";break}if(c=t.charCodeAt(o++),o===r){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2),e+="=";break}a=t.charCodeAt(o++),e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2|(a&192)>>6),e+=i.charAt(a&63)}return e},F=function(t){var l="",e,o,r=t.length;for(e=0;e<r;e++)o=t.charCodeAt(e),o>=1&&o<=127?l+=t.charAt(e):o>2047?(l+=String.fromCharCode(224|o>>12&15),l+=String.fromCharCode(128|o>>6&63),l+=String.fromCharCode(128|o>>0&63)):(l+=String.fromCharCode(192|o>>6&31),l+=String.fromCharCode(128|o>>0&63));return l},$=w,A=function(){return $},W=function(t,l,e){return function(o){var r=A(),n=["".concat(r.prefix,"-icon")];n.push("".concat(r.prefix,"-icon-").concat(t)),l&&r.rtl&&n.push("".concat(r.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(r.prefix,"-icon-spin"));var c=y(j(),o,r),a=e(c),i=b(F(a)),d="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?d:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(r.prefix,'-icon-img" src="').concat(d,`" /> </span>`)}},S=function(t){var l,e,o,r,n,c,a,i,d,v,h,k,f,C,L,g,p,m;return`<?xml version="1.0" encoding="UTF-8"?> <svg width="`.concat(t.size,'" height="').concat(t.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 fill-rule="evenodd" clip-rule="evenodd" d="M24 3V6.15V3Z" fill="`).concat((l=t.colors)===null||l===void 0?void 0:l[0],`"/> <path d="M24 3V6.15" stroke="`).concat((e=t.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M38.8492 9.15076L36.6219 11.3781L38.8492 9.15076Z" fill="`).concat((o=t.colors)===null||o===void 0?void 0:o[0],`"/> <path d="M38.8492 9.15076L36.6219 11.3781" stroke="`).concat((r=t.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M45 24H41.85H45Z" fill="`).concat((n=t.colors)===null||n===void 0?void 0:n[0],`"/> <path d="M45 24H41.85" stroke="`).concat((c=t.colors)===null||c===void 0?void 0:c[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M38.8492 38.8492L36.6219 36.6219L38.8492 38.8492Z" fill="`).concat((a=t.colors)===null||a===void 0?void 0:a[0],`"/> <path d="M38.8492 38.8492L36.6219 36.6219" stroke="`).concat((i=t.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M24 45V41.85V45Z" fill="`).concat((d=t.colors)===null||d===void 0?void 0:d[0],`"/> <path d="M24 45V41.85" stroke="`).concat((v=t.colors)===null||v===void 0?void 0:v[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M9.15076 38.8492L11.3781 36.6219L9.15076 38.8492Z" fill="`).concat((h=t.colors)===null||h===void 0?void 0:h[0],`"/> <path d="M9.15076 38.8492L11.3781 36.6219" stroke="`).concat((k=t.colors)===null||k===void 0?void 0:k[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3 24H6.15H3Z" fill="`).concat((f=t.colors)===null||f===void 0?void 0:f[0],`"/> <path d="M3 24H6.15" stroke="`).concat((C=t.colors)===null||C===void 0?void 0:C[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M9.15076 9.15076L11.3781 11.3781L9.15076 9.15076Z" fill="`).concat((L=t.colors)===null||L===void 0?void 0:L[0],`"/> <path d="M9.15076 9.15076L11.3781 11.3781" stroke="`).concat((g=t.colors)===null||g===void 0?void 0:g[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path d="M24 36C30.6274 36 36 30.6274 36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36Z" fill="`).concat((p=t.colors)===null||p===void 0?void 0:p[1],'" stroke="').concat((m=t.colors)===null||m===void 0?void 0:m[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> </svg>`)},H=W("byted-sun",!1,S);return u.default=H,u.getIconBytedSunSvgHtml=S,Object.defineProperty(u,"__esModule",{value:!0}),u}({});