PageSourceSearch

https://charluv.com/assets/Copy.esm-yeHNsHT3.js

js charluv.com collected 2026-10-02 01:26:17 UTC 5,662 bytes, 84 lines download raw bytes

1import { _ as _objectWithoutPropertiesLoose, k as useContext, I as IconContext, s as setAttribute, l as spread, i as insert, t as template } from "./index-BhA_zdKR.js";
2const _tmpl$ = template(`<svg><polyline points="168 167.993 216 167.993 216 39.993 88 39.993 88 87.993" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></polyline></svg>`, 4, true), _tmpl$2 = template(`<svg><rect x="39.99902" y="87.99414" width="128" height="128" stroke-width="24" stroke-linecap="round" stroke-linejoin="round" fill="none"></rect></svg>`, 4, true), _tmpl$3 = template(`<svg><polygon points="168 87.993 168 167.993 216 167.993 216 39.993 88 39.993 88 87.993 168 87.993" opacity="0.2"></polygon></svg>`, 4, true), _tmpl$4 = template(`<svg><polyline points="168 167.993 216 167.993 216 39.993 88 39.993 88 87.993" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline></svg>`, 4, true), _tmpl$5 = template(`<svg><rect x="39.99902" y="87.99414" width="128" height="128" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" fill="none"></rect></svg>`, 4, true), _tmpl$6 = template(`<svg><path d="M215.99414,31.99316h-128a8.0004,8.0004,0,0,0-8,8v40.001h-40.001a8.0004,8.0004,0,0,0-8,8v128a8.0004,8.0004,0,0,0,8,8h128a8.00039,8.00039,0,0,0,8-8v-40.001h40.001a8.00039,8.00039,0,0,0,8-8v-128A8.0004,8.0004,0,0,0,215.99414,31.99316Zm-8,128h-32.001v-71.999a8.00039,8.00039,0,0,0-8-8h-71.999v-32.001h112Z"></path></svg>`, 4, true), _tmpl$7 = template(`<svg><polyline points="168 167.993 216 167.993 216 39.993 88 39.993 88 87.993" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></polyline></svg>`, 4, true), _tmpl$8 = template(`<svg><rect x="39.99902" y="87.99414" width="128" height="128" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" fill="none"></rect></svg>`, 4, true), _tmpl$9 = template(`<svg><polyline points="168 167.993 216 167.993 216 39.993 88 39.993 88 87.993" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></polyline></svg>`, 4, true), _tmpl$10 = template(`<svg><rect x="39.99902" y="87.99414" width="128" height="128" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none"></rect></svg>`, 4, true), _tmpl$11 = template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect></svg>`, 4);
3var renderPathFor = function renderPathFor2(weight, color) {
4  switch (weight) {
5    case "bold":
6      return [(function() {
7        var _el$ = _tmpl$.cloneNode(true);
8        setAttribute(_el$, "stroke", color);
9        return _el$;
10      })(), (function() {
11        var _el$2 = _tmpl$2.cloneNode(true);
12        setAttribute(_el$2, "stroke", color);
13        return _el$2;
14      })()];
15    case "duotone":
16      return [_tmpl$3.cloneNode(true), (function() {
17        var _el$4 = _tmpl$4.cloneNode(true);
18        setAttribute(_el$4, "stroke", color);
19        return _el$4;
20      })(), (function() {
21        var _el$5 = _tmpl$5.cloneNode(true);
22        setAttribute(_el$5, "stroke", color);
23        return _el$5;
24      })()];
25    case "fill":
26      return _tmpl$6.cloneNode(true);
27    case "light":
28      return [(function() {
29        var _el$7 = _tmpl$7.cloneNode(true);
30        setAttribute(_el$7, "stroke", color);
31        return _el$7;
32      })(), (function() {
33        var _el$8 = _tmpl$8.cloneNode(true);
34        setAttribute(_el$8, "stroke", color);
35        return _el$8;
36      })()];
37    case "thin":
38      return [(function() {
39        var _el$9 = _tmpl$9.cloneNode(true);
40        setAttribute(_el$9, "stroke", color);
41        return _el$9;
42      })(), (function() {
43        var _el$10 = _tmpl$10.cloneNode(true);
44        setAttribute(_el$10, "stroke", color);
45        return _el$10;
46      })()];
47    case "regular":
48      return [(function() {
49        var _el$11 = _tmpl$4.cloneNode(true);
50        setAttribute(_el$11, "stroke", color);
51        return _el$11;
52      })(), (function() {
53        var _el$12 = _tmpl$5.cloneNode(true);
54        setAttribute(_el$12, "stroke", color);
55        return _el$12;
56      })()];
57    default:
58      console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".');
59      return null;
60  }
61};
62var Copy = function Copy2(props, ref) {
63  var color = props.color, size = props.size, weight = props.weight, mirrored = props.mirrored, children = props.children, restProps = _objectWithoutPropertiesLoose(props, ["color", "size", "weight", "mirrored", "children"]);
64  var _useContext = useContext(IconContext), contextColor = _useContext.color, contextSize = _useContext.size, contextWeight = _useContext.weight, contextMirrored = _useContext.mirrored, restContext = _objectWithoutPropertiesLoose(_useContext, ["color", "size", "weight", "mirrored"]);
65  return (function() {
66    var _el$13 = _tmpl$11.cloneNode(true), _el$14 = _el$13.firstChild;
67    var _ref$ = ref;
68    typeof _ref$ === "function" ? _ref$(_el$13) : ref = _el$13;
69    setAttribute(_el$13, "width", size != null ? size : contextSize);
70    setAttribute(_el$13, "height", size != null ? size : contextSize);
71    setAttribute(_el$13, "fill", color != null ? color : contextColor);
72    setAttribute(_el$13, "transform", mirrored || contextMirrored ? "scale(-1, 1)" : void 0);
73    spread(_el$13, restContext, true, true);
74    spread(_el$13, restProps, true, true);
75    insert(_el$13, children, _el$14);
76    insert(_el$13, function() {
77      return renderPathFor(weight != null ? weight : contextWeight, color != null ? color : contextColor);
78    }, null);
79    return _el$13;
80  })();
81};
82export {
83  Copy as C
84};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.