@dicebear/shapes 5.0.0-alpha.5 → 5.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,725 +1,479 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var title = "Options";
6
- var $schema = "http://json-schema.org/draft-07/schema#";
7
- var properties = {
8
- baseColor: {
9
- type: "array",
10
- items: {
11
- anyOf: [
12
- {
13
- type: "string",
14
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
15
- },
16
- {
17
- type: "string",
18
- "enum": [
19
- "amber",
20
- "blue",
21
- "cyan",
22
- "deepOrange",
23
- "deepPurple",
24
- "green",
25
- "indigo",
26
- "lightBlue",
27
- "lightGreen",
28
- "lime",
29
- "orange",
30
- "pink",
31
- "purple",
32
- "red",
33
- "teal",
34
- "yellow"
35
- ]
36
- }
37
- ]
38
- },
39
- "default": [
40
- "amber",
41
- "blue",
42
- "cyan",
43
- "deepOrange",
44
- "deepPurple",
45
- "green",
46
- "indigo",
47
- "lightBlue",
48
- "lightGreen",
49
- "lime",
50
- "orange",
51
- "pink",
52
- "purple",
53
- "red",
54
- "teal",
55
- "yellow"
56
- ]
57
- },
58
- center: {
59
- type: "array",
60
- items: {
61
- type: "string",
62
- "enum": [
63
- "shape1Inverted",
64
- "shape1",
65
- "shape2Inverted",
66
- "shape2",
67
- "shape3Inverted",
68
- "shape3",
69
- "shape4Inverted",
70
- "shape4",
71
- "shape5Inverted",
72
- "shape5",
73
- "shape6Inverted",
74
- "shape6",
75
- "shape7Inverted",
76
- "shape7",
77
- "shape8",
78
- "shape9"
79
- ]
80
- },
81
- "default": [
82
- "shape1Inverted",
83
- "shape1",
84
- "shape2Inverted",
85
- "shape2",
86
- "shape3Inverted",
87
- "shape3",
88
- "shape4Inverted",
89
- "shape4",
90
- "shape5Inverted",
91
- "shape5",
92
- "shape6Inverted",
93
- "shape6",
94
- "shape7Inverted",
95
- "shape7",
96
- "shape8",
97
- "shape9"
98
- ]
99
- },
100
- centerModifier: {
101
- type: "array",
102
- items: {
103
- type: "string",
104
- "enum": [
105
- "none",
106
- "lightGray",
107
- "gray",
108
- "lighten"
109
- ]
110
- },
111
- "default": [
112
- "none",
113
- "lightGray",
114
- "gray",
115
- "lighten"
116
- ]
117
- },
118
- centerWrapper: {
119
- type: "array",
120
- items: {
121
- type: "string",
122
- "enum": [
123
- "default"
124
- ]
125
- },
126
- "default": [
127
- "default"
128
- ]
129
- },
130
- corners: {
131
- type: "array",
132
- items: {
133
- type: "string",
134
- "enum": [
135
- "shape10",
136
- "shape09",
137
- "shape08",
138
- "shape07",
139
- "shape06",
140
- "shape05",
141
- "shape04",
142
- "shape03",
143
- "shape02",
144
- "shape01"
145
- ]
146
- },
147
- "default": [
148
- "shape10",
149
- "shape09",
150
- "shape08",
151
- "shape07",
152
- "shape06",
153
- "shape05",
154
- "shape04",
155
- "shape03",
156
- "shape02",
157
- "shape01"
158
- ]
159
- },
160
- cornersModifier: {
161
- type: "array",
162
- items: {
163
- type: "string",
164
- "enum": [
165
- "none",
166
- "lightGray",
167
- "gray",
168
- "lighten"
169
- ]
170
- },
171
- "default": [
172
- "none",
173
- "lightGray",
174
- "gray",
175
- "lighten"
176
- ]
177
- },
178
- cornersWrapper: {
179
- type: "array",
180
- items: {
181
- type: "string",
182
- "enum": [
183
- "default"
184
- ]
185
- },
186
- "default": [
187
- "default"
188
- ]
189
- },
190
- sides: {
191
- type: "array",
192
- items: {
193
- type: "string",
194
- "enum": [
195
- "shape10",
196
- "shape09",
197
- "shape08",
198
- "shape07",
199
- "shape06",
200
- "shape05",
201
- "shape04",
202
- "shape03",
203
- "shape02",
204
- "shape01"
205
- ]
206
- },
207
- "default": [
208
- "shape10",
209
- "shape09",
210
- "shape08",
211
- "shape07",
212
- "shape06",
213
- "shape05",
214
- "shape04",
215
- "shape03",
216
- "shape02",
217
- "shape01"
218
- ]
219
- },
220
- sidesModifier: {
221
- type: "array",
222
- items: {
223
- type: "string",
224
- "enum": [
225
- "none",
226
- "lightGray",
227
- "gray",
228
- "lighten"
229
- ]
230
- },
231
- "default": [
232
- "none",
233
- "lightGray",
234
- "gray",
235
- "lighten"
236
- ]
237
- },
238
- sidesWrapper: {
239
- type: "array",
240
- items: {
241
- type: "string",
242
- "enum": [
243
- "default"
244
- ]
245
- },
246
- "default": [
247
- "default"
248
- ]
249
- }
250
- };
251
- var additionalProperties = false;
252
- var schema$1 = {
253
- title: title,
254
- $schema: $schema,
255
- properties: properties,
256
- additionalProperties: additionalProperties
257
- };
1
+ function $parcel$export(e, n, v, s) {
2
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
3
+ }
4
+ function $parcel$interopDefault(a) {
5
+ return a && a.__esModule ? a.default : a;
6
+ }
258
7
 
259
- const centerModifier = {
260
- none: (components, colors) => {
261
- var _components$centerWra, _components$centerWra2;
8
+ $parcel$export(module.exports, "create", function () { return $29c0649b5fbcf0fc$export$185802fd694ee1f5; });
9
+ $parcel$export(module.exports, "preview", function () { return $29c0649b5fbcf0fc$export$48c2d0f2f545ac27; });
10
+ $parcel$export(module.exports, "meta", function () { return $29c0649b5fbcf0fc$export$6990040ee07315; });
11
+ $parcel$export(module.exports, "schema", function () { return $29c0649b5fbcf0fc$export$4902baddc787debb; });
12
+ var $e85142bc44ba634b$exports = {};
13
+ $e85142bc44ba634b$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"},{\"type\":\"string\",\"enum\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
14
+
15
+
16
+ var $081b05112beb235d$exports = {};
17
+
18
+ $parcel$export($081b05112beb235d$exports, "centerModifier", function () { return $37e65261b2e691c8$export$ab12e1dd328f61f4; });
19
+ $parcel$export($081b05112beb235d$exports, "cornersModifier", function () { return $9c2aed8239d4d01f$export$76bffe75b78c48eb; });
20
+ $parcel$export($081b05112beb235d$exports, "sidesModifier", function () { return $8a4f7e782d4fa5b1$export$fb256829d2744cca; });
21
+ $parcel$export($081b05112beb235d$exports, "sidesWrapper", function () { return $6c18efdfc044e662$export$e13a84330d5c0f4a; });
22
+ $parcel$export($081b05112beb235d$exports, "sides", function () { return $dd167f8ed97e9c74$export$832b6fa47fa053d2; });
23
+ $parcel$export($081b05112beb235d$exports, "cornersWrapper", function () { return $51d4667e4e90d290$export$753e340586fd18e2; });
24
+ $parcel$export($081b05112beb235d$exports, "corners", function () { return $22a7d563ba5788f5$export$389cfe57f7c9dd77; });
25
+ $parcel$export($081b05112beb235d$exports, "centerWrapper", function () { return $b77b585ce5128a06$export$d2d6c9a8ff78da49; });
26
+ $parcel$export($081b05112beb235d$exports, "center", function () { return $ecfbfb991b590166$export$3481c78889e8fbe8; });
27
+ var ref5, ref1, ref2, ref3;
28
+ const $37e65261b2e691c8$export$ab12e1dd328f61f4 = {
29
+ none: (components, colors)=>{
30
+ var ref4;
31
+ return `${(ref5 = (ref4 = components.centerWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
32
+ },
33
+ lightGray: (components, colors)=>{
34
+ var ref;
35
+ return `<mask id="centerModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#centerModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
36
+ },
37
+ gray: (components, colors)=>{
38
+ var ref;
39
+ return `<mask id="centerModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#centerModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
40
+ },
41
+ lighten: (components, colors)=>{
42
+ var ref;
43
+ return `<mask id="centerModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#centerModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
44
+ }
45
+ };
262
46
 
263
- return "".concat((_components$centerWra = (_components$centerWra2 = components.centerWrapper) === null || _components$centerWra2 === void 0 ? void 0 : _components$centerWra2.value(components, colors)) !== null && _components$centerWra !== void 0 ? _components$centerWra : '');
264
- },
265
- lightGray: (components, colors) => {
266
- var _components$centerWra3, _components$centerWra4;
267
47
 
268
- return "<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$centerWra3 = (_components$centerWra4 = components.centerWrapper) === null || _components$centerWra4 === void 0 ? void 0 : _components$centerWra4.value(components, colors)) !== null && _components$centerWra3 !== void 0 ? _components$centerWra3 : '', "</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>");
269
- },
270
- gray: (components, colors) => {
271
- var _components$centerWra5, _components$centerWra6;
48
+ var ref5, ref1, ref2, ref3;
49
+ const $9c2aed8239d4d01f$export$76bffe75b78c48eb = {
50
+ none: (components, colors)=>{
51
+ var ref4;
52
+ return `${(ref5 = (ref4 = components.cornersWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
53
+ },
54
+ lightGray: (components, colors)=>{
55
+ var ref;
56
+ return `<mask id="cornersModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#cornersModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
57
+ },
58
+ gray: (components, colors)=>{
59
+ var ref;
60
+ return `<mask id="cornersModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#cornersModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
61
+ },
62
+ lighten: (components, colors)=>{
63
+ var ref;
64
+ return `<mask id="cornersModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#cornersModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
65
+ }
66
+ };
272
67
 
273
- return "<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$centerWra5 = (_components$centerWra6 = components.centerWrapper) === null || _components$centerWra6 === void 0 ? void 0 : _components$centerWra6.value(components, colors)) !== null && _components$centerWra5 !== void 0 ? _components$centerWra5 : '', "</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>");
274
- },
275
- lighten: (components, colors) => {
276
- var _components$centerWra7, _components$centerWra8;
277
68
 
278
- return "<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$centerWra7 = (_components$centerWra8 = components.centerWrapper) === null || _components$centerWra8 === void 0 ? void 0 : _components$centerWra8.value(components, colors)) !== null && _components$centerWra7 !== void 0 ? _components$centerWra7 : '', "</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"").concat(colors.base.value, "\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>");
279
- }
69
+ var ref5, ref1, ref2, ref3;
70
+ const $8a4f7e782d4fa5b1$export$fb256829d2744cca = {
71
+ none: (components, colors)=>{
72
+ var ref4;
73
+ return `${(ref5 = (ref4 = components.sidesWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
74
+ },
75
+ lightGray: (components, colors)=>{
76
+ var ref;
77
+ return `<mask id="sidesModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#sidesModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
78
+ },
79
+ gray: (components, colors)=>{
80
+ var ref;
81
+ return `<mask id="sidesModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#sidesModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
82
+ },
83
+ lighten: (components, colors)=>{
84
+ var ref;
85
+ return `<mask id="sidesModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#sidesModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
86
+ }
280
87
  };
281
88
 
282
- const cornersModifier = {
283
- none: (components, colors) => {
284
- var _components$cornersWr, _components$cornersWr2;
285
-
286
- return "".concat((_components$cornersWr = (_components$cornersWr2 = components.cornersWrapper) === null || _components$cornersWr2 === void 0 ? void 0 : _components$cornersWr2.value(components, colors)) !== null && _components$cornersWr !== void 0 ? _components$cornersWr : '');
287
- },
288
- lightGray: (components, colors) => {
289
- var _components$cornersWr3, _components$cornersWr4;
290
89
 
291
- return "<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$cornersWr3 = (_components$cornersWr4 = components.cornersWrapper) === null || _components$cornersWr4 === void 0 ? void 0 : _components$cornersWr4.value(components, colors)) !== null && _components$cornersWr3 !== void 0 ? _components$cornersWr3 : '', "</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>");
292
- },
293
- gray: (components, colors) => {
294
- var _components$cornersWr5, _components$cornersWr6;
90
+ var ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7;
91
+ const $6c18efdfc044e662$export$e13a84330d5c0f4a = {
92
+ default: (components, colors)=>{
93
+ var ref15, ref8, ref9, ref10, ref11, ref12, ref13, ref14;
94
+ return `<g transform="translate(12)">${(ref = (ref15 = components.sides) === null || ref15 === void 0 ? void 0 : ref15.value(components, colors)) !== null && ref !== void 0 ? ref : ''}</g><g transform="rotate(90 18 18)">${(ref1 = (ref8 = components.sides) === null || ref8 === void 0 ? void 0 : ref8.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</g><g transform="rotate(90 18 30)">${(ref2 = (ref9 = components.sides) === null || ref9 === void 0 ? void 0 : ref9.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</g><g transform="rotate(-180 24 18)">${(ref3 = (ref10 = components.sides) === null || ref10 === void 0 ? void 0 : ref10.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</g><g transform="rotate(-180 18 24)">${(ref4 = (ref11 = components.sides) === null || ref11 === void 0 ? void 0 : ref11.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}</g><g transform="rotate(-90 30 18)">${(ref5 = (ref12 = components.sides) === null || ref12 === void 0 ? void 0 : ref12.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}</g><g transform="rotate(-90 18 18)">${(ref6 = (ref13 = components.sides) === null || ref13 === void 0 ? void 0 : ref13.value(components, colors)) !== null && ref6 !== void 0 ? ref6 : ''}</g><g transform="translate(0 12)">${(ref7 = (ref14 = components.sides) === null || ref14 === void 0 ? void 0 : ref14.value(components, colors)) !== null && ref7 !== void 0 ? ref7 : ''}</g>`;
95
+ }
96
+ };
295
97
 
296
- return "<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$cornersWr5 = (_components$cornersWr6 = components.cornersWrapper) === null || _components$cornersWr6 === void 0 ? void 0 : _components$cornersWr6.value(components, colors)) !== null && _components$cornersWr5 !== void 0 ? _components$cornersWr5 : '', "</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>");
297
- },
298
- lighten: (components, colors) => {
299
- var _components$cornersWr7, _components$cornersWr8;
300
98
 
301
- return "<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$cornersWr7 = (_components$cornersWr8 = components.cornersWrapper) === null || _components$cornersWr8 === void 0 ? void 0 : _components$cornersWr8.value(components, colors)) !== null && _components$cornersWr7 !== void 0 ? _components$cornersWr7 : '', "</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"").concat(colors.base.value, "\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>");
302
- }
99
+ const $dd167f8ed97e9c74$export$832b6fa47fa053d2 = {
100
+ shape10: (components, colors)=>`<path d="M0 12V0l12 12H0Z" fill="${colors.base.value}"/>`
101
+ ,
102
+ shape09: (components, colors)=>`<path d="M12 12H0L12 0v12Z" fill="${colors.base.value}"/>`
103
+ ,
104
+ shape08: (components, colors)=>`<path d="M12 0v12L0 0h12Z" fill="${colors.base.value}"/>`
105
+ ,
106
+ shape07: (components, colors)=>`<path d="M0 0h12L0 12V0Z" fill="${colors.base.value}"/>`
107
+ ,
108
+ shape06: (components, colors)=>`<circle cx="6" cy="6" r="4" fill="${colors.base.value}"/>`
109
+ ,
110
+ shape05: (components, colors)=>`<path d="M12 0H0l12 6V0Z" fill="${colors.base.value}"/>`
111
+ ,
112
+ shape04: (components, colors)=>`<path d="M0 0v12L6 0H0Z" fill="${colors.base.value}"/>`
113
+ ,
114
+ shape03: (components, colors)=>`<path d="M0 12h12L0 6v6Z" fill="${colors.base.value}"/>`
115
+ ,
116
+ shape02: (components, colors)=>`<path d="M12 12V0L6 12h6Z" fill="${colors.base.value}"/>`
117
+ ,
118
+ shape01: (components, colors)=>`<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
303
119
  };
304
120
 
305
- const sidesModifier = {
306
- none: (components, colors) => {
307
- var _components$sidesWrap, _components$sidesWrap2;
308
121
 
309
- return "".concat((_components$sidesWrap = (_components$sidesWrap2 = components.sidesWrapper) === null || _components$sidesWrap2 === void 0 ? void 0 : _components$sidesWrap2.value(components, colors)) !== null && _components$sidesWrap !== void 0 ? _components$sidesWrap : '');
310
- },
311
- lightGray: (components, colors) => {
312
- var _components$sidesWrap3, _components$sidesWrap4;
313
-
314
- return "<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$sidesWrap3 = (_components$sidesWrap4 = components.sidesWrapper) === null || _components$sidesWrap4 === void 0 ? void 0 : _components$sidesWrap4.value(components, colors)) !== null && _components$sidesWrap3 !== void 0 ? _components$sidesWrap3 : '', "</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>");
315
- },
316
- gray: (components, colors) => {
317
- var _components$sidesWrap5, _components$sidesWrap6;
122
+ var ref, ref1, ref2, ref3;
123
+ const $51d4667e4e90d290$export$753e340586fd18e2 = {
124
+ default: (components, colors)=>{
125
+ var ref7, ref4, ref5, ref6;
126
+ return `${(ref = (ref7 = components.corners) === null || ref7 === void 0 ? void 0 : ref7.value(components, colors)) !== null && ref !== void 0 ? ref : ''}<g transform="rotate(90 24 24)">${(ref1 = (ref4 = components.corners) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</g><g transform="rotate(-90 24 24)">${(ref2 = (ref5 = components.corners) === null || ref5 === void 0 ? void 0 : ref5.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</g><g transform="rotate(180 24 24)">${(ref3 = (ref6 = components.corners) === null || ref6 === void 0 ? void 0 : ref6.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</g>`;
127
+ }
128
+ };
318
129
 
319
- return "<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$sidesWrap5 = (_components$sidesWrap6 = components.sidesWrapper) === null || _components$sidesWrap6 === void 0 ? void 0 : _components$sidesWrap6.value(components, colors)) !== null && _components$sidesWrap5 !== void 0 ? _components$sidesWrap5 : '', "</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>");
320
- },
321
- lighten: (components, colors) => {
322
- var _components$sidesWrap7, _components$sidesWrap8;
323
130
 
324
- return "<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">".concat((_components$sidesWrap7 = (_components$sidesWrap8 = components.sidesWrapper) === null || _components$sidesWrap8 === void 0 ? void 0 : _components$sidesWrap8.value(components, colors)) !== null && _components$sidesWrap7 !== void 0 ? _components$sidesWrap7 : '', "</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"").concat(colors.base.value, "\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>");
325
- }
131
+ const $22a7d563ba5788f5$export$389cfe57f7c9dd77 = {
132
+ shape10: (components, colors)=>`<path d="M0 12V0l12 12H0Z" fill="${colors.base.value}"/>`
133
+ ,
134
+ shape09: (components, colors)=>`<path d="M12 12H0L12 0v12Z" fill="${colors.base.value}"/>`
135
+ ,
136
+ shape08: (components, colors)=>`<path d="M12 0v12L0 0h12Z" fill="${colors.base.value}"/>`
137
+ ,
138
+ shape07: (components, colors)=>`<path d="M0 0h12L0 12V0Z" fill="${colors.base.value}"/>`
139
+ ,
140
+ shape06: (components, colors)=>`<circle cx="6" cy="6" r="4" fill="${colors.base.value}"/>`
141
+ ,
142
+ shape05: (components, colors)=>`<path d="M12 0H0l12 6V0Z" fill="${colors.base.value}"/>`
143
+ ,
144
+ shape04: (components, colors)=>`<path d="M0 0v12L6 0H0Z" fill="${colors.base.value}"/>`
145
+ ,
146
+ shape03: (components, colors)=>`<path d="M0 12h12L0 6v6Z" fill="${colors.base.value}"/>`
147
+ ,
148
+ shape02: (components, colors)=>`<path d="M12 12V0L6 12h6Z" fill="${colors.base.value}"/>`
149
+ ,
150
+ shape01: (components, colors)=>`<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
326
151
  };
327
152
 
328
- const sidesWrapper = {
329
- default: (components, colors) => {
330
- var _components$sides$val, _components$sides, _components$sides$val2, _components$sides2, _components$sides$val3, _components$sides3, _components$sides$val4, _components$sides4, _components$sides$val5, _components$sides5, _components$sides$val6, _components$sides6, _components$sides$val7, _components$sides7, _components$sides$val8, _components$sides8;
331
153
 
332
- return "<g transform=\"translate(12)\">".concat((_components$sides$val = (_components$sides = components.sides) === null || _components$sides === void 0 ? void 0 : _components$sides.value(components, colors)) !== null && _components$sides$val !== void 0 ? _components$sides$val : '', "</g><g transform=\"rotate(90 18 18)\">").concat((_components$sides$val2 = (_components$sides2 = components.sides) === null || _components$sides2 === void 0 ? void 0 : _components$sides2.value(components, colors)) !== null && _components$sides$val2 !== void 0 ? _components$sides$val2 : '', "</g><g transform=\"rotate(90 18 30)\">").concat((_components$sides$val3 = (_components$sides3 = components.sides) === null || _components$sides3 === void 0 ? void 0 : _components$sides3.value(components, colors)) !== null && _components$sides$val3 !== void 0 ? _components$sides$val3 : '', "</g><g transform=\"rotate(-180 24 18)\">").concat((_components$sides$val4 = (_components$sides4 = components.sides) === null || _components$sides4 === void 0 ? void 0 : _components$sides4.value(components, colors)) !== null && _components$sides$val4 !== void 0 ? _components$sides$val4 : '', "</g><g transform=\"rotate(-180 18 24)\">").concat((_components$sides$val5 = (_components$sides5 = components.sides) === null || _components$sides5 === void 0 ? void 0 : _components$sides5.value(components, colors)) !== null && _components$sides$val5 !== void 0 ? _components$sides$val5 : '', "</g><g transform=\"rotate(-90 30 18)\">").concat((_components$sides$val6 = (_components$sides6 = components.sides) === null || _components$sides6 === void 0 ? void 0 : _components$sides6.value(components, colors)) !== null && _components$sides$val6 !== void 0 ? _components$sides$val6 : '', "</g><g transform=\"rotate(-90 18 18)\">").concat((_components$sides$val7 = (_components$sides7 = components.sides) === null || _components$sides7 === void 0 ? void 0 : _components$sides7.value(components, colors)) !== null && _components$sides$val7 !== void 0 ? _components$sides$val7 : '', "</g><g transform=\"translate(0 12)\">").concat((_components$sides$val8 = (_components$sides8 = components.sides) === null || _components$sides8 === void 0 ? void 0 : _components$sides8.value(components, colors)) !== null && _components$sides$val8 !== void 0 ? _components$sides$val8 : '', "</g>");
333
- }
154
+ var ref;
155
+ const $b77b585ce5128a06$export$d2d6c9a8ff78da49 = {
156
+ default: (components, colors)=>{
157
+ var ref1;
158
+ return `<g transform="translate(12 12)">${(ref = (ref1 = components.center) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref !== void 0 ? ref : ''}</g>`;
159
+ }
334
160
  };
335
161
 
336
- const sides = {
337
- shape10: (components, colors) => "<path d=\"M0 12V0l12 12H0Z\" fill=\"".concat(colors.base.value, "\"/>"),
338
- shape09: (components, colors) => "<path d=\"M12 12H0L12 0v12Z\" fill=\"".concat(colors.base.value, "\"/>"),
339
- shape08: (components, colors) => "<path d=\"M12 0v12L0 0h12Z\" fill=\"".concat(colors.base.value, "\"/>"),
340
- shape07: (components, colors) => "<path d=\"M0 0h12L0 12V0Z\" fill=\"".concat(colors.base.value, "\"/>"),
341
- shape06: (components, colors) => "<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"".concat(colors.base.value, "\"/>"),
342
- shape05: (components, colors) => "<path d=\"M12 0H0l12 6V0Z\" fill=\"".concat(colors.base.value, "\"/>"),
343
- shape04: (components, colors) => "<path d=\"M0 0v12L6 0H0Z\" fill=\"".concat(colors.base.value, "\"/>"),
344
- shape03: (components, colors) => "<path d=\"M0 12h12L0 6v6Z\" fill=\"".concat(colors.base.value, "\"/>"),
345
- shape02: (components, colors) => "<path d=\"M12 12V0L6 12h6Z\" fill=\"".concat(colors.base.value, "\"/>"),
346
- shape01: (components, colors) => "<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"".concat(colors.base.value, "\"/>")
162
+
163
+ const $ecfbfb991b590166$export$3481c78889e8fbe8 = {
164
+ shape1Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z" fill="${colors.base.value}"/>`
165
+ ,
166
+ shape1: (components, colors)=>`<path d="M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z" fill="${colors.base.value}"/>`
167
+ ,
168
+ shape2Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z" fill="${colors.base.value}"/>`
169
+ ,
170
+ shape2: (components, colors)=>`<path d="M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z" fill="${colors.base.value}"/>`
171
+ ,
172
+ shape3Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z" fill="${colors.base.value}"/>`
173
+ ,
174
+ shape3: (components, colors)=>`<path d="m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z" fill="${colors.base.value}"/>`
175
+ ,
176
+ shape4Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z" fill="${colors.base.value}"/>`
177
+ ,
178
+ shape4: (components, colors)=>`<path d="M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z" fill="${colors.base.value}"/>`
179
+ ,
180
+ shape5Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" fill="${colors.base.value}"/>`
181
+ ,
182
+ shape5: (components, colors)=>`<path d="M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" fill="${colors.base.value}"/>`
183
+ ,
184
+ shape6Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z" fill="${colors.base.value}"/>`
185
+ ,
186
+ shape6: (components, colors)=>`<path d="m6 12 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
187
+ ,
188
+ shape7Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z" fill="${colors.base.value}"/>`
189
+ ,
190
+ shape7: (components, colors)=>`<circle cx="12" cy="12" r="7" fill="${colors.base.value}"/>`
191
+ ,
192
+ shape8: (components, colors)=>`<path fill="${colors.base.value}" d="M4 4h16v16H4z"/>`
193
+ ,
194
+ shape9: (components, colors)=>`<path d="M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z" fill="${colors.base.value}"/>`
347
195
  };
348
196
 
349
- const cornersWrapper = {
350
- default: (components, colors) => {
351
- var _components$corners$v, _components$corners, _components$corners$v2, _components$corners2, _components$corners$v3, _components$corners3, _components$corners$v4, _components$corners4;
352
197
 
353
- return "".concat((_components$corners$v = (_components$corners = components.corners) === null || _components$corners === void 0 ? void 0 : _components$corners.value(components, colors)) !== null && _components$corners$v !== void 0 ? _components$corners$v : '', "<g transform=\"rotate(90 24 24)\">").concat((_components$corners$v2 = (_components$corners2 = components.corners) === null || _components$corners2 === void 0 ? void 0 : _components$corners2.value(components, colors)) !== null && _components$corners$v2 !== void 0 ? _components$corners$v2 : '', "</g><g transform=\"rotate(-90 24 24)\">").concat((_components$corners$v3 = (_components$corners3 = components.corners) === null || _components$corners3 === void 0 ? void 0 : _components$corners3.value(components, colors)) !== null && _components$corners$v3 !== void 0 ? _components$corners$v3 : '', "</g><g transform=\"rotate(180 24 24)\">").concat((_components$corners$v4 = (_components$corners4 = components.corners) === null || _components$corners4 === void 0 ? void 0 : _components$corners4.value(components, colors)) !== null && _components$corners$v4 !== void 0 ? _components$corners$v4 : '', "</g>");
354
- }
355
- };
356
198
 
357
- const corners = {
358
- shape10: (components, colors) => "<path d=\"M0 12V0l12 12H0Z\" fill=\"".concat(colors.base.value, "\"/>"),
359
- shape09: (components, colors) => "<path d=\"M12 12H0L12 0v12Z\" fill=\"".concat(colors.base.value, "\"/>"),
360
- shape08: (components, colors) => "<path d=\"M12 0v12L0 0h12Z\" fill=\"".concat(colors.base.value, "\"/>"),
361
- shape07: (components, colors) => "<path d=\"M0 0h12L0 12V0Z\" fill=\"".concat(colors.base.value, "\"/>"),
362
- shape06: (components, colors) => "<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"".concat(colors.base.value, "\"/>"),
363
- shape05: (components, colors) => "<path d=\"M12 0H0l12 6V0Z\" fill=\"".concat(colors.base.value, "\"/>"),
364
- shape04: (components, colors) => "<path d=\"M0 0v12L6 0H0Z\" fill=\"".concat(colors.base.value, "\"/>"),
365
- shape03: (components, colors) => "<path d=\"M0 12h12L0 6v6Z\" fill=\"".concat(colors.base.value, "\"/>"),
366
- shape02: (components, colors) => "<path d=\"M12 12V0L6 12h6Z\" fill=\"".concat(colors.base.value, "\"/>"),
367
- shape01: (components, colors) => "<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"".concat(colors.base.value, "\"/>")
368
- };
369
199
 
370
- const centerWrapper = {
371
- default: (components, colors) => {
372
- var _components$center$va, _components$center;
200
+ function $afdcc15ff6ef769f$export$5bc6178a9a86ed74({ prng: prng , group: group , values: values = [] }) {
201
+ const componentCollection = $081b05112beb235d$exports;
202
+ const key = prng.pick(values);
203
+ if (componentCollection[group][key]) return {
204
+ name: key,
205
+ value: componentCollection[group][key]
206
+ };
207
+ else return undefined;
208
+ }
209
+
210
+
211
+ function $66fb43419017ddc9$export$4e811121b221213b({ prng: prng , options: options }) {
212
+ const centerModifierComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
213
+ prng: prng,
214
+ group: 'centerModifier',
215
+ values: options.centerModifier
216
+ });
217
+ const cornersModifierComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
218
+ prng: prng,
219
+ group: 'cornersModifier',
220
+ values: options.cornersModifier
221
+ });
222
+ const sidesModifierComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
223
+ prng: prng,
224
+ group: 'sidesModifier',
225
+ values: options.sidesModifier
226
+ });
227
+ const sidesWrapperComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
228
+ prng: prng,
229
+ group: 'sidesWrapper',
230
+ values: options.sidesWrapper
231
+ });
232
+ const sidesComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
233
+ prng: prng,
234
+ group: 'sides',
235
+ values: options.sides
236
+ });
237
+ const cornersWrapperComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
238
+ prng: prng,
239
+ group: 'cornersWrapper',
240
+ values: options.cornersWrapper
241
+ });
242
+ const cornersComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
243
+ prng: prng,
244
+ group: 'corners',
245
+ values: options.corners
246
+ });
247
+ const centerWrapperComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
248
+ prng: prng,
249
+ group: 'centerWrapper',
250
+ values: options.centerWrapper
251
+ });
252
+ const centerComponent = $afdcc15ff6ef769f$export$5bc6178a9a86ed74({
253
+ prng: prng,
254
+ group: 'center',
255
+ values: options.center
256
+ });
257
+ return {
258
+ centerModifier: centerModifierComponent,
259
+ cornersModifier: cornersModifierComponent,
260
+ sidesModifier: sidesModifierComponent,
261
+ sidesWrapper: sidesWrapperComponent,
262
+ sides: sidesComponent,
263
+ cornersWrapper: cornersWrapperComponent,
264
+ corners: cornersComponent,
265
+ centerWrapper: centerWrapperComponent,
266
+ center: centerComponent
267
+ };
268
+ }
373
269
 
374
- return "<g transform=\"translate(12 12)\">".concat((_components$center$va = (_components$center = components.center) === null || _components$center === void 0 ? void 0 : _components$center.value(components, colors)) !== null && _components$center$va !== void 0 ? _components$center$va : '', "</g>");
375
- }
376
- };
377
270
 
378
- const center = {
379
- shape1Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"".concat(colors.base.value, "\"/>"),
380
- shape1: (components, colors) => "<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"".concat(colors.base.value, "\"/>"),
381
- shape2Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"".concat(colors.base.value, "\"/>"),
382
- shape2: (components, colors) => "<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"".concat(colors.base.value, "\"/>"),
383
- shape3Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"".concat(colors.base.value, "\"/>"),
384
- shape3: (components, colors) => "<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"".concat(colors.base.value, "\"/>"),
385
- shape4Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"".concat(colors.base.value, "\"/>"),
386
- shape4: (components, colors) => "<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"".concat(colors.base.value, "\"/>"),
387
- shape5Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"".concat(colors.base.value, "\"/>"),
388
- shape5: (components, colors) => "<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"".concat(colors.base.value, "\"/>"),
389
- shape6Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"".concat(colors.base.value, "\"/>"),
390
- shape6: (components, colors) => "<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"".concat(colors.base.value, "\"/>"),
391
- shape7Inverted: (components, colors) => "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"".concat(colors.base.value, "\"/>"),
392
- shape7: (components, colors) => "<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"".concat(colors.base.value, "\"/>"),
393
- shape8: (components, colors) => "<path fill=\"".concat(colors.base.value, "\" d=\"M4 4h16v16H4z\"/>"),
394
- shape9: (components, colors) => "<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"".concat(colors.base.value, "\"/>")
271
+ var $623ae70f9d34e608$exports = {};
272
+
273
+ $parcel$export($623ae70f9d34e608$exports, "base", function () { return $6d77ae87ae942d0c$export$e2253033e6e1df16; });
274
+ const $6d77ae87ae942d0c$export$e2253033e6e1df16 = {
275
+ amber: 'rgba(255, 179, 0, 1)',
276
+ blue: 'rgba(30, 136, 229, 1)',
277
+ cyan: 'rgba(0, 172, 193, 1)',
278
+ deepOrange: 'rgba(244, 81, 30, 1)',
279
+ deepPurple: 'rgba(94, 53, 177, 1)',
280
+ green: 'rgba(67, 160, 71, 1)',
281
+ indigo: 'rgba(57, 73, 171, 1)',
282
+ lightBlue: 'rgba(3, 155, 229, 1)',
283
+ lightGreen: 'rgba(124, 179, 66, 1)',
284
+ lime: 'rgba(192, 202, 51, 1)',
285
+ orange: 'rgba(251, 140, 0, 1)',
286
+ pink: 'rgba(216, 27, 96, 1)',
287
+ purple: 'rgba(142, 36, 170, 1)',
288
+ red: 'rgba(229, 57, 53, 1)',
289
+ teal: 'rgba(0, 137, 123, 1)',
290
+ yellow: 'rgba(253, 216, 53, 1)'
395
291
  };
396
292
 
397
- var components = /*#__PURE__*/Object.freeze({
398
- __proto__: null,
399
- centerModifier: centerModifier,
400
- cornersModifier: cornersModifier,
401
- sidesModifier: sidesModifier,
402
- sidesWrapper: sidesWrapper,
403
- sides: sides,
404
- cornersWrapper: cornersWrapper,
405
- corners: corners,
406
- centerWrapper: centerWrapper,
407
- center: center
408
- });
409
-
410
- function pickComponent(_ref) {
411
- let {
412
- prng,
413
- group,
414
- values = []
415
- } = _ref;
416
- const componentCollection = components;
417
- const key = prng.pick(values);
418
-
419
- if (componentCollection[group][key]) {
293
+
294
+
295
+
296
+ function $ab3160edb90892a2$export$c6d89e41e42fa994({ prng: prng , group: group , values: values = [] }) {
297
+ const colorCollection = $623ae70f9d34e608$exports;
298
+ if (values.length === 0) values.push('transparent');
299
+ const key = prng.pick(values);
300
+ var _key;
420
301
  return {
421
- name: key,
422
- value: componentCollection[group][key]
302
+ name: key,
303
+ value: (_key = colorCollection[group][key]) !== null && _key !== void 0 ? _key : key
423
304
  };
424
- } else {
425
- return undefined;
426
- }
427
305
  }
428
306
 
429
- function getComponents(_ref) {
430
- let {
431
- prng,
432
- options
433
- } = _ref;
434
- const centerModifierComponent = pickComponent({
435
- prng,
436
- group: 'centerModifier',
437
- values: options.centerModifier
438
- });
439
- const cornersModifierComponent = pickComponent({
440
- prng,
441
- group: 'cornersModifier',
442
- values: options.cornersModifier
443
- });
444
- const sidesModifierComponent = pickComponent({
445
- prng,
446
- group: 'sidesModifier',
447
- values: options.sidesModifier
448
- });
449
- const sidesWrapperComponent = pickComponent({
450
- prng,
451
- group: 'sidesWrapper',
452
- values: options.sidesWrapper
453
- });
454
- const sidesComponent = pickComponent({
455
- prng,
456
- group: 'sides',
457
- values: options.sides
458
- });
459
- const cornersWrapperComponent = pickComponent({
460
- prng,
461
- group: 'cornersWrapper',
462
- values: options.cornersWrapper
463
- });
464
- const cornersComponent = pickComponent({
465
- prng,
466
- group: 'corners',
467
- values: options.corners
468
- });
469
- const centerWrapperComponent = pickComponent({
470
- prng,
471
- group: 'centerWrapper',
472
- values: options.centerWrapper
473
- });
474
- const centerComponent = pickComponent({
475
- prng,
476
- group: 'center',
477
- values: options.center
478
- });
479
- return {
480
- centerModifier: centerModifierComponent,
481
- cornersModifier: cornersModifierComponent,
482
- sidesModifier: sidesModifierComponent,
483
- sidesWrapper: sidesWrapperComponent,
484
- sides: sidesComponent,
485
- cornersWrapper: cornersWrapperComponent,
486
- corners: cornersComponent,
487
- centerWrapper: centerWrapperComponent,
488
- center: centerComponent
489
- };
307
+
308
+ function $95230021e170c6d3$export$6cee60e8aa85e528({ prng: prng , options: options }) {
309
+ return {
310
+ base: $ab3160edb90892a2$export$c6d89e41e42fa994({
311
+ prng: prng,
312
+ group: 'base',
313
+ values: options.baseColor
314
+ })
315
+ };
490
316
  }
491
317
 
492
- const base = {
493
- amber: 'rgba(255, 179, 0, 1)',
494
- blue: 'rgba(30, 136, 229, 1)',
495
- cyan: 'rgba(0, 172, 193, 1)',
496
- deepOrange: 'rgba(244, 81, 30, 1)',
497
- deepPurple: 'rgba(94, 53, 177, 1)',
498
- green: 'rgba(67, 160, 71, 1)',
499
- indigo: 'rgba(57, 73, 171, 1)',
500
- lightBlue: 'rgba(3, 155, 229, 1)',
501
- lightGreen: 'rgba(124, 179, 66, 1)',
502
- lime: 'rgba(192, 202, 51, 1)',
503
- orange: 'rgba(251, 140, 0, 1)',
504
- pink: 'rgba(216, 27, 96, 1)',
505
- purple: 'rgba(142, 36, 170, 1)',
506
- red: 'rgba(229, 57, 53, 1)',
507
- teal: 'rgba(0, 137, 123, 1)',
508
- yellow: 'rgba(253, 216, 53, 1)'
509
- };
510
318
 
511
- var colors = /*#__PURE__*/Object.freeze({
512
- __proto__: null,
513
- base: base
514
- });
515
-
516
- function pickColor(_ref) {
517
- var _colorCollection$grou;
518
-
519
- let {
520
- prng,
521
- group,
522
- values = []
523
- } = _ref;
524
- const colorCollection = colors;
525
-
526
- if (values.length === 0) {
527
- values.push('transparent');
528
- }
529
-
530
- const key = prng.pick(values);
531
- return {
532
- name: key,
533
- value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
534
- };
319
+ function $d4ff1ac27e0e52b9$export$19269755e7fb6f76({ prng: prng , options: options , preview: preview }) {
320
+ const pickModifier = (modifier = [], alreadyPicked = [])=>{
321
+ const pickItems = modifier.filter((v)=>false === alreadyPicked.includes(v) && v === 'none'
322
+ );
323
+ const pick = prng.pick(pickItems.length ? pickItems : modifier);
324
+ return pick ? [
325
+ pick
326
+ ] : [];
327
+ };
328
+ options.centerModifier = pickModifier(options.centerModifier);
329
+ options.sidesModifier = pickModifier(options.sidesModifier, [
330
+ options.centerModifier[0],
331
+ ]);
332
+ options.cornersModifier = pickModifier(options.cornersModifier, [
333
+ options.centerModifier[0],
334
+ options.sidesModifier[0],
335
+ ]);
535
336
  }
536
337
 
537
- function getColors(_ref) {
538
- let {
539
- prng,
540
- options
541
- } = _ref;
542
- return {
543
- base: pickColor({
544
- prng,
545
- group: 'base',
546
- values: options.baseColor
547
- })
548
- };
549
- }
550
338
 
551
- function onPreCreate(_ref) {
552
- let {
553
- prng,
554
- options,
555
- preview
556
- } = _ref;
557
-
558
- const pickModifier = function () {
559
- let modifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
560
- let alreadyPicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
561
- const pickItems = modifier.filter(v => false === alreadyPicked.includes(v) && v === 'none');
562
- const pick = prng.pick(pickItems.length ? pickItems : modifier);
563
- return pick ? [pick] : [];
564
- };
565
-
566
- options.centerModifier = pickModifier(options.centerModifier);
567
- options.sidesModifier = pickModifier(options.sidesModifier, [options.centerModifier[0]]);
568
- options.cornersModifier = pickModifier(options.cornersModifier, [options.centerModifier[0], options.sidesModifier[0]]);
339
+ function $1a3c47c6f2d4168b$export$2538c3cd8a13189f({ prng: prng , options: options , components: components , colors: colors , preview: preview }) {
340
+ // Write your modifications here
569
341
  }
570
342
 
571
- const dimensions = {
572
- centerModifier: {
573
- width: 48,
574
- height: 48
575
- },
576
- cornersModifier: {
577
- width: 48,
578
- height: 48
579
- },
580
- sidesModifier: {
581
- width: 48,
582
- height: 48
583
- },
584
- sidesWrapper: {
585
- width: 48,
586
- height: 48
587
- },
588
- sides: {
589
- width: 12,
590
- height: 12
591
- },
592
- cornersWrapper: {
593
- width: 48,
594
- height: 48
595
- },
596
- corners: {
597
- width: 12,
598
- height: 12
599
- },
600
- centerWrapper: {
601
- width: 48,
602
- height: 48
603
- },
604
- center: {
605
- width: 24,
606
- height: 24
607
- }
608
- };
609
343
 
610
- const style = {
611
- meta: {
612
- title: 'Jdenticon',
613
- creator: 'Daniel Mester Pirttijärvi',
614
- source: 'https://github.com/dmester/jdenticon',
615
- license: {
616
- name: 'MIT',
617
- url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE'
344
+ const $90082230e8b5e4ab$export$62ad7b0c781000e9 = {
345
+ centerModifier: {
346
+ width: 48,
347
+ height: 48
348
+ },
349
+ cornersModifier: {
350
+ width: 48,
351
+ height: 48
352
+ },
353
+ sidesModifier: {
354
+ width: 48,
355
+ height: 48
356
+ },
357
+ sidesWrapper: {
358
+ width: 48,
359
+ height: 48
360
+ },
361
+ sides: {
362
+ width: 12,
363
+ height: 12
364
+ },
365
+ cornersWrapper: {
366
+ width: 48,
367
+ height: 48
368
+ },
369
+ corners: {
370
+ width: 12,
371
+ height: 12
372
+ },
373
+ centerWrapper: {
374
+ width: 48,
375
+ height: 48
376
+ },
377
+ center: {
378
+ width: 24,
379
+ height: 24
618
380
  }
619
- },
620
- schema: schema$1,
621
- create: _ref => {
622
- var _components$centerMod, _components$centerMod2, _components$sidesModi, _components$sidesModi2;
623
-
624
- let {
625
- prng,
626
- options
627
- } = _ref;
628
- onPreCreate({
629
- prng,
630
- options,
631
- preview: false
632
- });
633
- const components = getComponents({
634
- prng,
635
- options
636
- });
637
- const colors = getColors({
638
- prng,
639
- options
640
- });
641
- return {
642
- attributes: {
643
- viewBox: '0 0 48 48',
644
- fill: 'none',
645
- 'shape-rendering': 'auto'
646
- },
647
- body: "".concat((_components$centerMod = (_components$centerMod2 = components.centerModifiercomponent) === null || _components$centerMod2 === void 0 ? void 0 : _components$centerMod2.value(components, colors)) !== null && _components$centerMod !== void 0 ? _components$centerMod : '', "::cornersModifier").concat((_components$sidesModi = (_components$sidesModi2 = components.sidesModifier) === null || _components$sidesModi2 === void 0 ? void 0 : _components$sidesModi2.value(components, colors)) !== null && _components$sidesModi !== void 0 ? _components$sidesModi : '')
648
- };
649
- },
650
- preview: _ref2 => {
651
- let {
652
- prng,
653
- options,
654
- property
655
- } = _ref2;
656
- const componentGroup = property.toString();
657
- const colorGroup = property.toString().replace(/Color$/, '');
658
- onPreCreate({
659
- prng,
660
- options,
661
- preview: true
662
- });
663
- const components = getComponents({
664
- prng,
665
- options
666
- });
667
- const colors = getColors({
668
- prng,
669
- options
670
- });
381
+ };
671
382
 
672
- if (componentGroup in components) {
673
- var _components$component, _components$component2;
674
-
675
- const {
676
- width,
677
- height
678
- } = dimensions[componentGroup];
679
- return {
680
- attributes: {
681
- viewBox: "0 0 ".concat(width, " ").concat(height),
682
- fill: 'none',
683
- 'shape-rendering': 'auto'
684
- },
685
- body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
686
- };
687
- }
688
383
 
689
- if (colorGroup in colors) {
690
- return {
691
- attributes: {
692
- viewBox: "0 0 1 1",
693
- fill: 'none',
694
- 'shape-rendering': 'auto'
695
- },
696
- body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
697
- };
384
+ const $8cbfc7446ccb3422$export$1d567c320f4763bc = {
385
+ meta: {
386
+ title: 'Jdenticon',
387
+ creator: 'Daniel Mester Pirttijärvi',
388
+ source: 'https://github.com/dmester/jdenticon',
389
+ license: {
390
+ name: 'MIT',
391
+ url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE'
392
+ }
393
+ },
394
+ schema: (/*@__PURE__*/$parcel$interopDefault($e85142bc44ba634b$exports)),
395
+ create: ({ prng: prng , options: options })=>{
396
+ var ref, ref1, ref2;
397
+ $d4ff1ac27e0e52b9$export$19269755e7fb6f76({
398
+ prng: prng,
399
+ options: options,
400
+ preview: false
401
+ });
402
+ const components = $66fb43419017ddc9$export$4e811121b221213b({
403
+ prng: prng,
404
+ options: options
405
+ });
406
+ const colors = $95230021e170c6d3$export$6cee60e8aa85e528({
407
+ prng: prng,
408
+ options: options
409
+ });
410
+ $1a3c47c6f2d4168b$export$2538c3cd8a13189f({
411
+ prng: prng,
412
+ options: options,
413
+ components: components,
414
+ colors: colors,
415
+ preview: false
416
+ });
417
+ var ref3, ref4, ref5;
418
+ return {
419
+ attributes: {
420
+ viewBox: '0 0 48 48',
421
+ fill: 'none',
422
+ 'shape-rendering': 'auto'
423
+ },
424
+ body: `${(ref3 = (ref = components.centerModifier) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}${(ref4 = (ref1 = components.cornersModifier) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}${(ref5 = (ref2 = components.sidesModifier) === null || ref2 === void 0 ? void 0 : ref2.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`
425
+ };
426
+ },
427
+ preview: ({ prng: prng , options: options , property: property })=>{
428
+ const componentGroup = property.toString();
429
+ const colorGroup = property.toString().replace(/Color$/, '');
430
+ $d4ff1ac27e0e52b9$export$19269755e7fb6f76({
431
+ prng: prng,
432
+ options: options,
433
+ preview: true
434
+ });
435
+ const components = $66fb43419017ddc9$export$4e811121b221213b({
436
+ prng: prng,
437
+ options: options
438
+ });
439
+ const colors = $95230021e170c6d3$export$6cee60e8aa85e528({
440
+ prng: prng,
441
+ options: options
442
+ });
443
+ $1a3c47c6f2d4168b$export$2538c3cd8a13189f({
444
+ prng: prng,
445
+ options: options,
446
+ components: components,
447
+ colors: colors,
448
+ preview: true
449
+ });
450
+ if (componentGroup in components) {
451
+ var ref;
452
+ const { width: width , height: height } = $90082230e8b5e4ab$export$62ad7b0c781000e9[componentGroup];
453
+ var ref6;
454
+ return {
455
+ attributes: {
456
+ viewBox: `0 0 ${width} ${height}`,
457
+ fill: 'none',
458
+ 'shape-rendering': 'auto'
459
+ },
460
+ body: (ref6 = (ref = components[componentGroup]) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref6 !== void 0 ? ref6 : ''
461
+ };
462
+ }
463
+ if (colorGroup in colors) return {
464
+ attributes: {
465
+ viewBox: `0 0 1 1`,
466
+ fill: 'none',
467
+ 'shape-rendering': 'auto'
468
+ },
469
+ body: `<rect width="1" height="1" fill="${colors[colorGroup].value}" />`
470
+ };
471
+ return undefined;
698
472
  }
699
-
700
- return undefined;
701
- }
702
473
  };
703
474
 
704
- /*!
705
- * Shapes (@dicebear/shapes)
706
- *
707
- * Code licensed under MIT License.
708
- * Copyright (c) 2021 Florian Körner
709
- * Copyright (c) 2021 Daniel Mester Pirttijärvi
710
- *
711
- * Design "Jdenticon" by Daniel Mester Pirttijärvi licensed under MIT.
712
- * Source: https://github.com/dmester/jdenticon
713
- * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE
714
- */
715
- let {
716
- create,
717
- preview,
718
- meta,
719
- schema
720
- } = style;
721
-
722
- exports.create = create;
723
- exports.meta = meta;
724
- exports.preview = preview;
725
- exports.schema = schema;
475
+
476
+ const { create: $29c0649b5fbcf0fc$export$185802fd694ee1f5 , preview: $29c0649b5fbcf0fc$export$48c2d0f2f545ac27 , meta: $29c0649b5fbcf0fc$export$6990040ee07315 , schema: $29c0649b5fbcf0fc$export$4902baddc787debb } = $8cbfc7446ccb3422$export$1d567c320f4763bc;
477
+
478
+
479
+ //# sourceMappingURL=index.js.map