@websolutespa/bom-mixer-ui 0.0.1
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/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/dist/carousel-1-DVCEK6QW.mjs +13 -0
- package/dist/carousel-1-DXYGMXKJ.mjs +14 -0
- package/dist/chunk-2NOCZCBX.mjs +494 -0
- package/dist/chunk-2QPVBWSO.mjs +27 -0
- package/dist/chunk-3O6XPTXR.mjs +54 -0
- package/dist/chunk-4G2V76JL.mjs +87 -0
- package/dist/chunk-4GP5DTTM.mjs +1101 -0
- package/dist/chunk-56QPQUHL.mjs +87 -0
- package/dist/chunk-5HED55DH.mjs +89 -0
- package/dist/chunk-5JVP5WNM.mjs +109 -0
- package/dist/chunk-5OIM36YU.mjs +43 -0
- package/dist/chunk-6HX6MNJA.mjs +808 -0
- package/dist/chunk-6RQBZFNK.mjs +13 -0
- package/dist/chunk-74GX2GU5.mjs +84 -0
- package/dist/chunk-A5PJ35ED.mjs +30 -0
- package/dist/chunk-A7SAZJPB.mjs +54 -0
- package/dist/chunk-AWRVGAMB.mjs +34 -0
- package/dist/chunk-B5WDQW62.mjs +469 -0
- package/dist/chunk-CCBJBAAA.mjs +47 -0
- package/dist/chunk-DANHURV6.mjs +84 -0
- package/dist/chunk-DBOW5IIN.mjs +5138 -0
- package/dist/chunk-DC3AZYXP.mjs +48 -0
- package/dist/chunk-DV6WR2TC.mjs +51 -0
- package/dist/chunk-G4IKIC5S.mjs +36 -0
- package/dist/chunk-GDCL5WRV.mjs +47 -0
- package/dist/chunk-GGXSEAD2.mjs +494 -0
- package/dist/chunk-GNG6WR62.mjs +220 -0
- package/dist/chunk-GZ4XU7KO.mjs +84 -0
- package/dist/chunk-HCSER4UQ.mjs +31 -0
- package/dist/chunk-IF5CE4SD.mjs +89 -0
- package/dist/chunk-IG66RP7S.mjs +54 -0
- package/dist/chunk-IK736OHT.mjs +31 -0
- package/dist/chunk-IZQZVLFR.mjs +84 -0
- package/dist/chunk-J7LSTFGB.mjs +51 -0
- package/dist/chunk-JQPC4MHB.mjs +40 -0
- package/dist/chunk-JTGZNI2A.mjs +92 -0
- package/dist/chunk-JYFB4EY7.mjs +26 -0
- package/dist/chunk-KJAR4KTH.mjs +114 -0
- package/dist/chunk-LEHIZSHR.mjs +122 -0
- package/dist/chunk-LSXKWZBB.mjs +808 -0
- package/dist/chunk-LV3AK64L.mjs +37 -0
- package/dist/chunk-MU4CJBV7.mjs +82 -0
- package/dist/chunk-MW5M3AIG.mjs +29 -0
- package/dist/chunk-MZ764V34.mjs +33 -0
- package/dist/chunk-N5J24WJE.mjs +22 -0
- package/dist/chunk-NLXIPXSN.mjs +44 -0
- package/dist/chunk-NM3CSEJ3.mjs +33 -0
- package/dist/chunk-NWHJ5ZAA.mjs +27 -0
- package/dist/chunk-OAAW3SV6.mjs +199 -0
- package/dist/chunk-OAVF6LFH.mjs +58 -0
- package/dist/chunk-PFPUP4FL.mjs +807 -0
- package/dist/chunk-QSN3F243.mjs +33 -0
- package/dist/chunk-QXUK3J2W.mjs +199 -0
- package/dist/chunk-RU2KB7XM.mjs +51 -0
- package/dist/chunk-SBQY6FWU.mjs +77 -0
- package/dist/chunk-TNJCCH5V.mjs +220 -0
- package/dist/chunk-U4CLZOPI.mjs +232 -0
- package/dist/chunk-UGZQFVRQ.mjs +29 -0
- package/dist/chunk-VTNTTQXM.mjs +54 -0
- package/dist/chunk-W346ZVLC.mjs +13 -0
- package/dist/chunk-XAXJC3FV.mjs +36 -0
- package/dist/chunk-Y2QTR7KM.mjs +55 -0
- package/dist/chunk-ZBPDMEV4.mjs +122 -0
- package/dist/chunk-ZFNJUDPN.mjs +43 -0
- package/dist/download-1-FRTTCFSC.mjs +14 -0
- package/dist/download-1-HFDPW6PG.mjs +13 -0
- package/dist/index.d.ts +2548 -0
- package/dist/index.js +15611 -0
- package/dist/index.mjs +11555 -0
- package/dist/magazine-related-D3WTHTLF.mjs +14 -0
- package/dist/magazine-related-JCGUUCUP.mjs +15 -0
- package/dist/media-full-1-BDODTFLB.mjs +10 -0
- package/dist/media-full-1-EBZLR4NY.mjs +10 -0
- package/dist/media-full-2-2PO7MSS6.mjs +11 -0
- package/dist/media-full-2-M4O7HRCV.mjs +11 -0
- package/dist/media-media-1-ET3G2SWF.mjs +12 -0
- package/dist/media-media-1-HIJUPGM7.mjs +12 -0
- package/dist/media-media-1-V6ZQ6RZG.mjs +12 -0
- package/dist/not-found-JWIKAAPV.mjs +10 -0
- package/dist/not-found-YT633IOF.mjs +10 -0
- package/dist/products-detail-download-4FB5IJ3Q.mjs +13 -0
- package/dist/products-detail-download-7G2TYM3Q.mjs +14 -0
- package/dist/products-detail-related-2PVSOSDY.mjs +16 -0
- package/dist/products-detail-related-EVYW6HQA.mjs +15 -0
- package/dist/products-detail-related-YIFMTUCQ.mjs +15 -0
- package/dist/products-detail-size-color-AKSUWV6K.mjs +15 -0
- package/dist/products-detail-size-color-DN3E6KET.mjs +15 -0
- package/dist/products-detail-size-color-YLQ352FR.mjs +15 -0
- package/dist/related-1-27HY3JEE.mjs +16 -0
- package/dist/related-1-RW2MS6XN.mjs +15 -0
- package/dist/related-1-XXICN6PY.mjs +15 -0
- package/dist/shop-detail-related-AW5RTFOH.mjs +15 -0
- package/dist/shop-detail-related-OS5YUH6Y.mjs +15 -0
- package/dist/shop-detail-related-SQ5MBIA2.mjs +16 -0
- package/dist/sizes-colors-1-IPWE45PQ.mjs +15 -0
- package/dist/sizes-colors-1-JSJSGDQB.mjs +15 -0
- package/dist/sizes-colors-1-R36L2GI3.mjs +15 -0
- package/dist/text-1-265D6JDN.mjs +11 -0
- package/dist/text-1-4LCCLSTO.mjs +11 -0
- package/dist/text-aside-1-5COCRCVM.mjs +12 -0
- package/dist/text-aside-1-H56SUGSM.mjs +12 -0
- package/dist/text-aside-1-YIXPMUBS.mjs +12 -0
- package/dist/text-media-1-FTVDNKGV.mjs +13 -0
- package/dist/text-media-1-QQY7WNS2.mjs +13 -0
- package/dist/text-media-1-ZGI6ITM6.mjs +13 -0
- package/dist/text-text-1-KCRMHXGX.mjs +11 -0
- package/dist/text-text-1-NOFPMB5T.mjs +11 -0
- package/package.json +79 -0
|
@@ -0,0 +1,1101 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
25
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
26
|
+
}) : x)(function(x) {
|
|
27
|
+
if (typeof require !== "undefined")
|
|
28
|
+
return require.apply(this, arguments);
|
|
29
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
30
|
+
});
|
|
31
|
+
var __objRest = (source, exclude) => {
|
|
32
|
+
var target = {};
|
|
33
|
+
for (var prop in source)
|
|
34
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35
|
+
target[prop] = source[prop];
|
|
36
|
+
if (source != null && __getOwnPropSymbols)
|
|
37
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
38
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
39
|
+
target[prop] = source[prop];
|
|
40
|
+
}
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
43
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
44
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
45
|
+
};
|
|
46
|
+
var __copyProps = (to, from, except, desc) => {
|
|
47
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
48
|
+
for (let key of __getOwnPropNames(from))
|
|
49
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
50
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
51
|
+
}
|
|
52
|
+
return to;
|
|
53
|
+
};
|
|
54
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
55
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
56
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
57
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
58
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
59
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
60
|
+
mod
|
|
61
|
+
));
|
|
62
|
+
var __async = (__this, __arguments, generator) => {
|
|
63
|
+
return new Promise((resolve, reject) => {
|
|
64
|
+
var fulfilled = (value) => {
|
|
65
|
+
try {
|
|
66
|
+
step(generator.next(value));
|
|
67
|
+
} catch (e) {
|
|
68
|
+
reject(e);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var rejected = (value) => {
|
|
72
|
+
try {
|
|
73
|
+
step(generator.throw(value));
|
|
74
|
+
} catch (e) {
|
|
75
|
+
reject(e);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
79
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// ../../../../node_modules/@swc/helpers/lib/_extends.js
|
|
84
|
+
var require_extends = __commonJS({
|
|
85
|
+
"../../../../node_modules/@swc/helpers/lib/_extends.js"(exports) {
|
|
86
|
+
"use strict";
|
|
87
|
+
Object.defineProperty(exports, "__esModule", {
|
|
88
|
+
value: true
|
|
89
|
+
});
|
|
90
|
+
exports.default = _extends;
|
|
91
|
+
function _extends() {
|
|
92
|
+
return extends_.apply(this, arguments);
|
|
93
|
+
}
|
|
94
|
+
function extends_() {
|
|
95
|
+
extends_ = Object.assign || function(target) {
|
|
96
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
97
|
+
var source = arguments[i];
|
|
98
|
+
for (var key in source) {
|
|
99
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
100
|
+
target[key] = source[key];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return target;
|
|
105
|
+
};
|
|
106
|
+
return extends_.apply(this, arguments);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// ../../../../node_modules/@swc/helpers/lib/_interop_require_default.js
|
|
112
|
+
var require_interop_require_default = __commonJS({
|
|
113
|
+
"../../../../node_modules/@swc/helpers/lib/_interop_require_default.js"(exports) {
|
|
114
|
+
"use strict";
|
|
115
|
+
Object.defineProperty(exports, "__esModule", {
|
|
116
|
+
value: true
|
|
117
|
+
});
|
|
118
|
+
exports.default = _interopRequireDefault;
|
|
119
|
+
function _interopRequireDefault(obj) {
|
|
120
|
+
return obj && obj.__esModule ? obj : {
|
|
121
|
+
default: obj
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// ../../../../node_modules/next/dist/shared/lib/loadable-context.js
|
|
128
|
+
var require_loadable_context = __commonJS({
|
|
129
|
+
"../../../../node_modules/next/dist/shared/lib/loadable-context.js"(exports) {
|
|
130
|
+
"use strict";
|
|
131
|
+
Object.defineProperty(exports, "__esModule", {
|
|
132
|
+
value: true
|
|
133
|
+
});
|
|
134
|
+
exports.LoadableContext = void 0;
|
|
135
|
+
var _interop_require_default = require_interop_require_default().default;
|
|
136
|
+
var _react = _interop_require_default(__require("react"));
|
|
137
|
+
var LoadableContext = _react.default.createContext(null);
|
|
138
|
+
exports.LoadableContext = LoadableContext;
|
|
139
|
+
if (process.env.NODE_ENV !== "production") {
|
|
140
|
+
LoadableContext.displayName = "LoadableContext";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// ../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
|
|
146
|
+
var require_use_sync_external_store_shim_production_min = __commonJS({
|
|
147
|
+
"../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js"(exports) {
|
|
148
|
+
"use strict";
|
|
149
|
+
var e = __require("react");
|
|
150
|
+
function h(a, b) {
|
|
151
|
+
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
152
|
+
}
|
|
153
|
+
var k = "function" === typeof Object.is ? Object.is : h;
|
|
154
|
+
var l = e.useState;
|
|
155
|
+
var m = e.useEffect;
|
|
156
|
+
var n = e.useLayoutEffect;
|
|
157
|
+
var p = e.useDebugValue;
|
|
158
|
+
function q(a, b) {
|
|
159
|
+
var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c = f[0].inst, g = f[1];
|
|
160
|
+
n(function() {
|
|
161
|
+
c.value = d;
|
|
162
|
+
c.getSnapshot = b;
|
|
163
|
+
r(c) && g({ inst: c });
|
|
164
|
+
}, [a, d, b]);
|
|
165
|
+
m(function() {
|
|
166
|
+
r(c) && g({ inst: c });
|
|
167
|
+
return a(function() {
|
|
168
|
+
r(c) && g({ inst: c });
|
|
169
|
+
});
|
|
170
|
+
}, [a]);
|
|
171
|
+
p(d);
|
|
172
|
+
return d;
|
|
173
|
+
}
|
|
174
|
+
function r(a) {
|
|
175
|
+
var b = a.getSnapshot;
|
|
176
|
+
a = a.value;
|
|
177
|
+
try {
|
|
178
|
+
var d = b();
|
|
179
|
+
return !k(a, d);
|
|
180
|
+
} catch (f) {
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function t(a, b) {
|
|
185
|
+
return b();
|
|
186
|
+
}
|
|
187
|
+
var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t : q;
|
|
188
|
+
exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : u;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
// ../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
193
|
+
var require_use_sync_external_store_shim_development = __commonJS({
|
|
194
|
+
"../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
195
|
+
"use strict";
|
|
196
|
+
if (process.env.NODE_ENV !== "production") {
|
|
197
|
+
(function() {
|
|
198
|
+
"use strict";
|
|
199
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
200
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
201
|
+
}
|
|
202
|
+
var React2 = __require("react");
|
|
203
|
+
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
204
|
+
function error(format) {
|
|
205
|
+
{
|
|
206
|
+
{
|
|
207
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
208
|
+
args[_key2 - 1] = arguments[_key2];
|
|
209
|
+
}
|
|
210
|
+
printWarning("error", format, args);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function printWarning(level, format, args) {
|
|
215
|
+
{
|
|
216
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
217
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
218
|
+
if (stack !== "") {
|
|
219
|
+
format += "%s";
|
|
220
|
+
args = args.concat([stack]);
|
|
221
|
+
}
|
|
222
|
+
var argsWithFormat = args.map(function(item) {
|
|
223
|
+
return String(item);
|
|
224
|
+
});
|
|
225
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
226
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function is(x, y) {
|
|
230
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
231
|
+
}
|
|
232
|
+
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
233
|
+
var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
234
|
+
var didWarnOld18Alpha = false;
|
|
235
|
+
var didWarnUncachedGetSnapshot = false;
|
|
236
|
+
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
237
|
+
{
|
|
238
|
+
if (!didWarnOld18Alpha) {
|
|
239
|
+
if (React2.startTransition !== void 0) {
|
|
240
|
+
didWarnOld18Alpha = true;
|
|
241
|
+
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
var value = getSnapshot();
|
|
246
|
+
{
|
|
247
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
248
|
+
var cachedValue = getSnapshot();
|
|
249
|
+
if (!objectIs(value, cachedValue)) {
|
|
250
|
+
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
251
|
+
didWarnUncachedGetSnapshot = true;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
var _useState = useState({
|
|
256
|
+
inst: {
|
|
257
|
+
value,
|
|
258
|
+
getSnapshot
|
|
259
|
+
}
|
|
260
|
+
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
261
|
+
useLayoutEffect(function() {
|
|
262
|
+
inst.value = value;
|
|
263
|
+
inst.getSnapshot = getSnapshot;
|
|
264
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
265
|
+
forceUpdate({
|
|
266
|
+
inst
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}, [subscribe, value, getSnapshot]);
|
|
270
|
+
useEffect(function() {
|
|
271
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
272
|
+
forceUpdate({
|
|
273
|
+
inst
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
var handleStoreChange = function() {
|
|
277
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
278
|
+
forceUpdate({
|
|
279
|
+
inst
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
return subscribe(handleStoreChange);
|
|
284
|
+
}, [subscribe]);
|
|
285
|
+
useDebugValue(value);
|
|
286
|
+
return value;
|
|
287
|
+
}
|
|
288
|
+
function checkIfSnapshotChanged(inst) {
|
|
289
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
290
|
+
var prevValue = inst.value;
|
|
291
|
+
try {
|
|
292
|
+
var nextValue = latestGetSnapshot();
|
|
293
|
+
return !objectIs(prevValue, nextValue);
|
|
294
|
+
} catch (error2) {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
299
|
+
return getSnapshot();
|
|
300
|
+
}
|
|
301
|
+
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
302
|
+
var isServerEnvironment = !canUseDOM;
|
|
303
|
+
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
304
|
+
var useSyncExternalStore$2 = React2.useSyncExternalStore !== void 0 ? React2.useSyncExternalStore : shim;
|
|
305
|
+
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
306
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
307
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
308
|
+
}
|
|
309
|
+
})();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
// ../../../../node_modules/use-sync-external-store/shim/index.js
|
|
315
|
+
var require_shim = __commonJS({
|
|
316
|
+
"../../../../node_modules/use-sync-external-store/shim/index.js"(exports, module) {
|
|
317
|
+
"use strict";
|
|
318
|
+
if (process.env.NODE_ENV === "production") {
|
|
319
|
+
module.exports = require_use_sync_external_store_shim_production_min();
|
|
320
|
+
} else {
|
|
321
|
+
module.exports = require_use_sync_external_store_shim_development();
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
// ../../../../node_modules/next/dist/shared/lib/loadable.js
|
|
327
|
+
var require_loadable = __commonJS({
|
|
328
|
+
"../../../../node_modules/next/dist/shared/lib/loadable.js"(exports) {
|
|
329
|
+
"use strict";
|
|
330
|
+
Object.defineProperty(exports, "__esModule", {
|
|
331
|
+
value: true
|
|
332
|
+
});
|
|
333
|
+
exports.default = void 0;
|
|
334
|
+
var _extends = require_extends().default;
|
|
335
|
+
var _interop_require_default = require_interop_require_default().default;
|
|
336
|
+
var _react = _interop_require_default(__require("react"));
|
|
337
|
+
var _loadableContext = require_loadable_context();
|
|
338
|
+
var { useSyncExternalStore } = process.env.__NEXT_REACT_ROOT ? __require("react") : require_shim();
|
|
339
|
+
var ALL_INITIALIZERS = [];
|
|
340
|
+
var READY_INITIALIZERS = [];
|
|
341
|
+
var initialized = false;
|
|
342
|
+
function load(loader) {
|
|
343
|
+
let promise = loader();
|
|
344
|
+
let state = {
|
|
345
|
+
loading: true,
|
|
346
|
+
loaded: null,
|
|
347
|
+
error: null
|
|
348
|
+
};
|
|
349
|
+
state.promise = promise.then((loaded) => {
|
|
350
|
+
state.loading = false;
|
|
351
|
+
state.loaded = loaded;
|
|
352
|
+
return loaded;
|
|
353
|
+
}).catch((err) => {
|
|
354
|
+
state.loading = false;
|
|
355
|
+
state.error = err;
|
|
356
|
+
throw err;
|
|
357
|
+
});
|
|
358
|
+
return state;
|
|
359
|
+
}
|
|
360
|
+
function resolve(obj) {
|
|
361
|
+
return obj && obj.__esModule ? obj.default : obj;
|
|
362
|
+
}
|
|
363
|
+
function createLoadableComponent(loadFn, options) {
|
|
364
|
+
let opts = Object.assign({
|
|
365
|
+
loader: null,
|
|
366
|
+
loading: null,
|
|
367
|
+
delay: 200,
|
|
368
|
+
timeout: null,
|
|
369
|
+
webpack: null,
|
|
370
|
+
modules: null,
|
|
371
|
+
suspense: false
|
|
372
|
+
}, options);
|
|
373
|
+
if (opts.suspense) {
|
|
374
|
+
opts.lazy = _react.default.lazy(opts.loader);
|
|
375
|
+
}
|
|
376
|
+
let subscription = null;
|
|
377
|
+
function init() {
|
|
378
|
+
if (!subscription) {
|
|
379
|
+
const sub = new LoadableSubscription(loadFn, opts);
|
|
380
|
+
subscription = {
|
|
381
|
+
getCurrentValue: sub.getCurrentValue.bind(sub),
|
|
382
|
+
subscribe: sub.subscribe.bind(sub),
|
|
383
|
+
retry: sub.retry.bind(sub),
|
|
384
|
+
promise: sub.promise.bind(sub)
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
return subscription.promise();
|
|
388
|
+
}
|
|
389
|
+
if (typeof window === "undefined") {
|
|
390
|
+
ALL_INITIALIZERS.push(init);
|
|
391
|
+
}
|
|
392
|
+
if (!initialized && typeof window !== "undefined") {
|
|
393
|
+
const moduleIds = opts.webpack && typeof __require.resolveWeak === "function" ? opts.webpack() : opts.modules;
|
|
394
|
+
if (moduleIds) {
|
|
395
|
+
READY_INITIALIZERS.push((ids) => {
|
|
396
|
+
for (const moduleId of moduleIds) {
|
|
397
|
+
if (ids.indexOf(moduleId) !== -1) {
|
|
398
|
+
return init();
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function useLoadableModule() {
|
|
405
|
+
init();
|
|
406
|
+
const context = _react.default.useContext(_loadableContext.LoadableContext);
|
|
407
|
+
if (context && Array.isArray(opts.modules)) {
|
|
408
|
+
opts.modules.forEach((moduleName) => {
|
|
409
|
+
context(moduleName);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function LoadableImpl(props, ref) {
|
|
414
|
+
useLoadableModule();
|
|
415
|
+
const state = useSyncExternalStore(subscription.subscribe, subscription.getCurrentValue, subscription.getCurrentValue);
|
|
416
|
+
_react.default.useImperativeHandle(ref, () => ({
|
|
417
|
+
retry: subscription.retry
|
|
418
|
+
}), []);
|
|
419
|
+
return _react.default.useMemo(() => {
|
|
420
|
+
if (state.loading || state.error) {
|
|
421
|
+
return _react.default.createElement(opts.loading, {
|
|
422
|
+
isLoading: state.loading,
|
|
423
|
+
pastDelay: state.pastDelay,
|
|
424
|
+
timedOut: state.timedOut,
|
|
425
|
+
error: state.error,
|
|
426
|
+
retry: subscription.retry
|
|
427
|
+
});
|
|
428
|
+
} else if (state.loaded) {
|
|
429
|
+
return _react.default.createElement(resolve(state.loaded), props);
|
|
430
|
+
} else {
|
|
431
|
+
return null;
|
|
432
|
+
}
|
|
433
|
+
}, [
|
|
434
|
+
props,
|
|
435
|
+
state
|
|
436
|
+
]);
|
|
437
|
+
}
|
|
438
|
+
function LazyImpl(props, ref) {
|
|
439
|
+
useLoadableModule();
|
|
440
|
+
return _react.default.createElement(opts.lazy, _extends({}, props, {
|
|
441
|
+
ref
|
|
442
|
+
}));
|
|
443
|
+
}
|
|
444
|
+
const LoadableComponent = opts.suspense ? LazyImpl : LoadableImpl;
|
|
445
|
+
LoadableComponent.preload = () => init();
|
|
446
|
+
LoadableComponent.displayName = "LoadableComponent";
|
|
447
|
+
return _react.default.forwardRef(LoadableComponent);
|
|
448
|
+
}
|
|
449
|
+
var LoadableSubscription = class {
|
|
450
|
+
promise() {
|
|
451
|
+
return this._res.promise;
|
|
452
|
+
}
|
|
453
|
+
retry() {
|
|
454
|
+
this._clearTimeouts();
|
|
455
|
+
this._res = this._loadFn(this._opts.loader);
|
|
456
|
+
this._state = {
|
|
457
|
+
pastDelay: false,
|
|
458
|
+
timedOut: false
|
|
459
|
+
};
|
|
460
|
+
const { _res: res, _opts: opts } = this;
|
|
461
|
+
if (res.loading) {
|
|
462
|
+
if (typeof opts.delay === "number") {
|
|
463
|
+
if (opts.delay === 0) {
|
|
464
|
+
this._state.pastDelay = true;
|
|
465
|
+
} else {
|
|
466
|
+
this._delay = setTimeout(() => {
|
|
467
|
+
this._update({
|
|
468
|
+
pastDelay: true
|
|
469
|
+
});
|
|
470
|
+
}, opts.delay);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (typeof opts.timeout === "number") {
|
|
474
|
+
this._timeout = setTimeout(() => {
|
|
475
|
+
this._update({
|
|
476
|
+
timedOut: true
|
|
477
|
+
});
|
|
478
|
+
}, opts.timeout);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
this._res.promise.then(() => {
|
|
482
|
+
this._update({});
|
|
483
|
+
this._clearTimeouts();
|
|
484
|
+
}).catch((_err) => {
|
|
485
|
+
this._update({});
|
|
486
|
+
this._clearTimeouts();
|
|
487
|
+
});
|
|
488
|
+
this._update({});
|
|
489
|
+
}
|
|
490
|
+
_update(partial) {
|
|
491
|
+
this._state = _extends({}, this._state, {
|
|
492
|
+
error: this._res.error,
|
|
493
|
+
loaded: this._res.loaded,
|
|
494
|
+
loading: this._res.loading
|
|
495
|
+
}, partial);
|
|
496
|
+
this._callbacks.forEach((callback) => callback());
|
|
497
|
+
}
|
|
498
|
+
_clearTimeouts() {
|
|
499
|
+
clearTimeout(this._delay);
|
|
500
|
+
clearTimeout(this._timeout);
|
|
501
|
+
}
|
|
502
|
+
getCurrentValue() {
|
|
503
|
+
return this._state;
|
|
504
|
+
}
|
|
505
|
+
subscribe(callback) {
|
|
506
|
+
this._callbacks.add(callback);
|
|
507
|
+
return () => {
|
|
508
|
+
this._callbacks.delete(callback);
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
constructor(loadFn, opts) {
|
|
512
|
+
this._loadFn = loadFn;
|
|
513
|
+
this._opts = opts;
|
|
514
|
+
this._callbacks = /* @__PURE__ */ new Set();
|
|
515
|
+
this._delay = null;
|
|
516
|
+
this._timeout = null;
|
|
517
|
+
this.retry();
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
function Loadable(opts) {
|
|
521
|
+
return createLoadableComponent(load, opts);
|
|
522
|
+
}
|
|
523
|
+
function flushInitializers(initializers, ids) {
|
|
524
|
+
let promises = [];
|
|
525
|
+
while (initializers.length) {
|
|
526
|
+
let init = initializers.pop();
|
|
527
|
+
promises.push(init(ids));
|
|
528
|
+
}
|
|
529
|
+
return Promise.all(promises).then(() => {
|
|
530
|
+
if (initializers.length) {
|
|
531
|
+
return flushInitializers(initializers, ids);
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
Loadable.preloadAll = () => {
|
|
536
|
+
return new Promise((resolveInitializers, reject) => {
|
|
537
|
+
flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
Loadable.preloadReady = (ids = []) => {
|
|
541
|
+
return new Promise((resolvePreload) => {
|
|
542
|
+
const res = () => {
|
|
543
|
+
initialized = true;
|
|
544
|
+
return resolvePreload();
|
|
545
|
+
};
|
|
546
|
+
flushInitializers(READY_INITIALIZERS, ids).then(res, res);
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
if (typeof window !== "undefined") {
|
|
550
|
+
window.__NEXT_PRELOADREADY = Loadable.preloadReady;
|
|
551
|
+
}
|
|
552
|
+
var _default = Loadable;
|
|
553
|
+
exports.default = _default;
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
// ../../../../node_modules/next/dist/shared/lib/dynamic.js
|
|
558
|
+
var require_dynamic = __commonJS({
|
|
559
|
+
"../../../../node_modules/next/dist/shared/lib/dynamic.js"(exports, module) {
|
|
560
|
+
"use strict";
|
|
561
|
+
"client";
|
|
562
|
+
Object.defineProperty(exports, "__esModule", {
|
|
563
|
+
value: true
|
|
564
|
+
});
|
|
565
|
+
exports.default = dynamic;
|
|
566
|
+
exports.noSSR = noSSR;
|
|
567
|
+
var _extends = require_extends().default;
|
|
568
|
+
var _interop_require_default = require_interop_require_default().default;
|
|
569
|
+
var _react = _interop_require_default(__require("react"));
|
|
570
|
+
var _loadable = _interop_require_default(require_loadable());
|
|
571
|
+
function dynamic(dynamicOptions, options) {
|
|
572
|
+
let loadableFn = _loadable.default;
|
|
573
|
+
let loadableOptions = (options == null ? void 0 : options.suspense) ? {} : {
|
|
574
|
+
// A loading component is not required, so we default it
|
|
575
|
+
loading: ({ error, isLoading, pastDelay }) => {
|
|
576
|
+
if (!pastDelay)
|
|
577
|
+
return null;
|
|
578
|
+
if (process.env.NODE_ENV === "development") {
|
|
579
|
+
if (isLoading) {
|
|
580
|
+
return null;
|
|
581
|
+
}
|
|
582
|
+
if (error) {
|
|
583
|
+
return /* @__PURE__ */ _react.default.createElement("p", null, error.message, /* @__PURE__ */ _react.default.createElement("br", null), error.stack);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
return null;
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
if (dynamicOptions instanceof Promise) {
|
|
590
|
+
loadableOptions.loader = () => dynamicOptions;
|
|
591
|
+
} else if (typeof dynamicOptions === "function") {
|
|
592
|
+
loadableOptions.loader = dynamicOptions;
|
|
593
|
+
} else if (typeof dynamicOptions === "object") {
|
|
594
|
+
loadableOptions = _extends({}, loadableOptions, dynamicOptions);
|
|
595
|
+
}
|
|
596
|
+
loadableOptions = _extends({}, loadableOptions, options);
|
|
597
|
+
if (!process.env.__NEXT_REACT_ROOT && loadableOptions.suspense) {
|
|
598
|
+
throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
|
|
599
|
+
}
|
|
600
|
+
if (loadableOptions.suspense) {
|
|
601
|
+
if (process.env.NODE_ENV !== "production") {
|
|
602
|
+
if (loadableOptions.ssr === false) {
|
|
603
|
+
console.warn(`"ssr: false" is ignored by next/dynamic because you can not enable "suspense" while disabling "ssr" at the same time. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
|
|
604
|
+
}
|
|
605
|
+
if (loadableOptions.loading != null) {
|
|
606
|
+
console.warn(`"loading" is ignored by next/dynamic because you have enabled "suspense". Place your loading element in your suspense boundary's "fallback" prop instead. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
delete loadableOptions.ssr;
|
|
610
|
+
delete loadableOptions.loading;
|
|
611
|
+
}
|
|
612
|
+
if (loadableOptions.loadableGenerated) {
|
|
613
|
+
loadableOptions = _extends({}, loadableOptions, loadableOptions.loadableGenerated);
|
|
614
|
+
delete loadableOptions.loadableGenerated;
|
|
615
|
+
}
|
|
616
|
+
if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.suspense) {
|
|
617
|
+
if (!loadableOptions.ssr) {
|
|
618
|
+
delete loadableOptions.ssr;
|
|
619
|
+
return noSSR(loadableFn, loadableOptions);
|
|
620
|
+
}
|
|
621
|
+
delete loadableOptions.ssr;
|
|
622
|
+
}
|
|
623
|
+
return loadableFn(loadableOptions);
|
|
624
|
+
}
|
|
625
|
+
var isServerSide = typeof window === "undefined";
|
|
626
|
+
function noSSR(LoadableInitializer, loadableOptions) {
|
|
627
|
+
delete loadableOptions.webpack;
|
|
628
|
+
delete loadableOptions.modules;
|
|
629
|
+
if (!isServerSide) {
|
|
630
|
+
return LoadableInitializer(loadableOptions);
|
|
631
|
+
}
|
|
632
|
+
const Loading = loadableOptions.loading;
|
|
633
|
+
return () => /* @__PURE__ */ _react.default.createElement(Loading, {
|
|
634
|
+
error: null,
|
|
635
|
+
isLoading: true,
|
|
636
|
+
pastDelay: false,
|
|
637
|
+
timedOut: false
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
641
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
642
|
+
Object.assign(exports.default, exports);
|
|
643
|
+
module.exports = exports.default;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
// ../../../../node_modules/next/dynamic.js
|
|
649
|
+
var require_dynamic2 = __commonJS({
|
|
650
|
+
"../../../../node_modules/next/dynamic.js"(exports, module) {
|
|
651
|
+
module.exports = require_dynamic();
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
// src/components/utils.ts
|
|
656
|
+
import React from "react";
|
|
657
|
+
import { css } from "styled-components";
|
|
658
|
+
|
|
659
|
+
// src/components/css.ts
|
|
660
|
+
var CssObj = {
|
|
661
|
+
"alignContent": "align-content",
|
|
662
|
+
"alignItems": "align-items",
|
|
663
|
+
"alignSelf": "align-self",
|
|
664
|
+
/*
|
|
665
|
+
"animation": "animation",
|
|
666
|
+
"animationDelay": "animation-delay",
|
|
667
|
+
"animationDirection": "animation-direction",
|
|
668
|
+
"animationDuration": "animation-duration",
|
|
669
|
+
"animationFillMode": "animation-fill-mode",
|
|
670
|
+
"animationIterationCount": "animation-iteration-count",
|
|
671
|
+
"animationName": "animation-name",
|
|
672
|
+
"animationPlayState": "animation-play-state",
|
|
673
|
+
"animationTimingFunction": "animation-timing-function",
|
|
674
|
+
*/
|
|
675
|
+
"aspectRatio": "aspect-ratio",
|
|
676
|
+
/*
|
|
677
|
+
"backfaceVisibility": "backface-visibility",
|
|
678
|
+
*/
|
|
679
|
+
"background": "background",
|
|
680
|
+
/*
|
|
681
|
+
"backgroundAttachment": "background-attachment",
|
|
682
|
+
"backgroundClip": "background-clip",
|
|
683
|
+
*/
|
|
684
|
+
"backgroundColor": "background-color",
|
|
685
|
+
/*
|
|
686
|
+
"backgroundImage": "background-image",
|
|
687
|
+
"backgroundOrigin": "background-origin",
|
|
688
|
+
"backgroundPosition": "background-position",
|
|
689
|
+
"backgroundRepeat": "background-repeat",
|
|
690
|
+
"backgroundSize": "background-size",
|
|
691
|
+
*/
|
|
692
|
+
"border": "border",
|
|
693
|
+
"borderBottom": "border-bottom",
|
|
694
|
+
/*
|
|
695
|
+
"borderBottomColor": "border-bottom-color",
|
|
696
|
+
"borderBottomLeftRadius": "border-bottom-left-radius",
|
|
697
|
+
"borderBottomRightRadius": "border-bottom-right-radius",
|
|
698
|
+
"borderBottomStyle": "border-bottom-style",
|
|
699
|
+
"borderBottomWidth": "border-bottom-width",
|
|
700
|
+
"borderCollapse": "border-collapse",
|
|
701
|
+
"borderColor": "border-color",
|
|
702
|
+
"borderImage": "border-image",
|
|
703
|
+
"borderImageOutset": "border-image-outset",
|
|
704
|
+
"borderImageRepeat": "border-image-repeat",
|
|
705
|
+
"borderImageSlice": "border-image-slice",
|
|
706
|
+
"borderImageSource": "border-image-source",
|
|
707
|
+
"borderImageWidth": "border-image-width",
|
|
708
|
+
*/
|
|
709
|
+
"borderLeft": "border-left",
|
|
710
|
+
/*
|
|
711
|
+
"borderLeftColor": "border-left-color",
|
|
712
|
+
"borderLeftStyle": "border-left-style",
|
|
713
|
+
"borderLeftWidth": "border-left-width",
|
|
714
|
+
*/
|
|
715
|
+
"borderRadius": "border-radius",
|
|
716
|
+
"borderRight": "border-right",
|
|
717
|
+
/*
|
|
718
|
+
"borderRightColor": "border-right-color",
|
|
719
|
+
"borderRightStyle": "border-right-style",
|
|
720
|
+
"borderRightWidth": "border-right-width",
|
|
721
|
+
"borderSpacing": "border-spacing",
|
|
722
|
+
"borderStyle": "border-style",
|
|
723
|
+
*/
|
|
724
|
+
"borderTop": "border-top",
|
|
725
|
+
/*
|
|
726
|
+
"borderTopColor": "border-top-color",
|
|
727
|
+
"borderTopLeftRadius": "border-top-left-radius",
|
|
728
|
+
"borderTopRightRadius": "border-top-right-radius",
|
|
729
|
+
"borderTopStyle": "border-top-style",
|
|
730
|
+
"borderTopWidth": "border-top-width",
|
|
731
|
+
"borderWidth": "border-width",
|
|
732
|
+
*/
|
|
733
|
+
"bottom": "bottom",
|
|
734
|
+
"boxShadow": "box-shadow",
|
|
735
|
+
/*
|
|
736
|
+
"boxSizing": "box-sizing",
|
|
737
|
+
"captionSide": "caption-side",
|
|
738
|
+
"clear": "clear",
|
|
739
|
+
*/
|
|
740
|
+
"clip": "clip",
|
|
741
|
+
"color": "color",
|
|
742
|
+
"columnCount": "column-count",
|
|
743
|
+
"columnFill": "column-fill",
|
|
744
|
+
"columnGap": "column-gap",
|
|
745
|
+
"columnRule": "column-rule",
|
|
746
|
+
/*
|
|
747
|
+
"columnRuleColor": "column-rule-color",
|
|
748
|
+
"columnRuleStyle": "column-rule-style",
|
|
749
|
+
"columnRuleWidth": "column-rule-width",
|
|
750
|
+
*/
|
|
751
|
+
"columnSpan": "column-span",
|
|
752
|
+
"columnWidth": "column-width",
|
|
753
|
+
"columns": "columns",
|
|
754
|
+
"content": "content",
|
|
755
|
+
/*
|
|
756
|
+
"counterIncrement": "counter-increment",
|
|
757
|
+
"counterReset": "counter-reset",
|
|
758
|
+
*/
|
|
759
|
+
"cursor": "cursor",
|
|
760
|
+
"direction": "direction",
|
|
761
|
+
"display": "display",
|
|
762
|
+
/*
|
|
763
|
+
"emptyCells": "empty-cells",
|
|
764
|
+
*/
|
|
765
|
+
"flex": "flex",
|
|
766
|
+
"flexBasis": "flex-basis",
|
|
767
|
+
"flexDirection": "flex-direction",
|
|
768
|
+
"flexFlow": "flex-flow",
|
|
769
|
+
"flexGrow": "flex-grow",
|
|
770
|
+
"flexShrink": "flex-shrink",
|
|
771
|
+
"flexWrap": "flex-wrap",
|
|
772
|
+
"float": "float",
|
|
773
|
+
/*
|
|
774
|
+
"font": "font",
|
|
775
|
+
"fontFamily": "font-family",
|
|
776
|
+
*/
|
|
777
|
+
"fontSize": "font-size",
|
|
778
|
+
/*
|
|
779
|
+
"fontSizeAdjust": "font-size-adjust",
|
|
780
|
+
"fontStretch": "font-stretch",
|
|
781
|
+
"fontStyle": "font-style",
|
|
782
|
+
"fontVariant": "font-variant",
|
|
783
|
+
*/
|
|
784
|
+
"fontWeight": "font-weight",
|
|
785
|
+
"gap": "gap",
|
|
786
|
+
"grid": "grid",
|
|
787
|
+
"gridAutoColumns": "grid-auto-columns",
|
|
788
|
+
"gridColumnEnd": "grid-column-end",
|
|
789
|
+
"gridColumnStart": "grid-column-start",
|
|
790
|
+
"gridTemplate": "grid-template",
|
|
791
|
+
"gridTemplateColumns": "grid-template-columns",
|
|
792
|
+
"height": "height",
|
|
793
|
+
"justifyContent": "justify-content",
|
|
794
|
+
"left": "left",
|
|
795
|
+
"letterSpacing": "letter-spacing",
|
|
796
|
+
"lineHeight": "line-height",
|
|
797
|
+
/*
|
|
798
|
+
"listStyle": "list-style",
|
|
799
|
+
"listStyleImage": "list-style-image",
|
|
800
|
+
"listStylePosition": "list-style-position",
|
|
801
|
+
"listStyleType": "list-style-type",
|
|
802
|
+
*/
|
|
803
|
+
"margin": "margin",
|
|
804
|
+
"marginBottom": "margin-bottom",
|
|
805
|
+
"marginLeft": "margin-left",
|
|
806
|
+
"marginRight": "margin-right",
|
|
807
|
+
"marginTop": "margin-top",
|
|
808
|
+
"maxHeight": "max-height",
|
|
809
|
+
"maxWidth": "max-width",
|
|
810
|
+
"minHeight": "min-height",
|
|
811
|
+
"minWidth": "min-width",
|
|
812
|
+
"opacity": "opacity",
|
|
813
|
+
"order": "order",
|
|
814
|
+
"outline": "outline",
|
|
815
|
+
/*
|
|
816
|
+
"outlineColor": "outline-color",
|
|
817
|
+
"outlineOffset": "outline-offset",
|
|
818
|
+
"outlineStyle": "outline-style",
|
|
819
|
+
"outlineWidth": "outline-width",
|
|
820
|
+
*/
|
|
821
|
+
"overflow": "overflow",
|
|
822
|
+
"overflowX": "overflow-x",
|
|
823
|
+
"overflowY": "overflow-y",
|
|
824
|
+
"padding": "padding",
|
|
825
|
+
"paddingBottom": "padding-bottom",
|
|
826
|
+
"paddingLeft": "padding-left",
|
|
827
|
+
"paddingRight": "padding-right",
|
|
828
|
+
"paddingTop": "padding-top",
|
|
829
|
+
/*
|
|
830
|
+
"pageBreakAfter": "page-break-after",
|
|
831
|
+
"pageBreakBefore": "page-break-before",
|
|
832
|
+
"pageBreakInside": "page-break-inside",
|
|
833
|
+
"perspective": "perspective",
|
|
834
|
+
"perspectiveOrigin": "perspective-origin",
|
|
835
|
+
*/
|
|
836
|
+
"position": "position",
|
|
837
|
+
/*
|
|
838
|
+
"quotes": "quotes",
|
|
839
|
+
"resize": "resize",
|
|
840
|
+
*/
|
|
841
|
+
"right": "right",
|
|
842
|
+
"rowGap": "row-gap",
|
|
843
|
+
/*
|
|
844
|
+
"tabSize": "tab-size",
|
|
845
|
+
"tableLayout": "table-layout",
|
|
846
|
+
*/
|
|
847
|
+
"textAlign": "text-align",
|
|
848
|
+
/*
|
|
849
|
+
"textAlignLast": "text-align-last",
|
|
850
|
+
*/
|
|
851
|
+
"textDecoration": "text-decoration",
|
|
852
|
+
/*
|
|
853
|
+
"textDecorationColor": "text-decoration-color",
|
|
854
|
+
"textDecorationLine": "text-decoration-line",
|
|
855
|
+
"textDecorationStyle": "text-decoration-style",
|
|
856
|
+
"textIndent": "text-indent",
|
|
857
|
+
"textJustify": "text-justify",
|
|
858
|
+
"textOverflow": "text-overflow",
|
|
859
|
+
"textShadow": "text-shadow",
|
|
860
|
+
*/
|
|
861
|
+
"textTransform": "text-transform",
|
|
862
|
+
"top": "top",
|
|
863
|
+
"transform": "transform",
|
|
864
|
+
/*
|
|
865
|
+
"transformOrigin": "transform-origin",
|
|
866
|
+
"transformStyle": "transform-style",
|
|
867
|
+
*/
|
|
868
|
+
"transition": "transition",
|
|
869
|
+
/*
|
|
870
|
+
"transitionDelay": "transition-delay",
|
|
871
|
+
"transitionDuration": "transition-duration",
|
|
872
|
+
"transitionProperty": "transition-property",
|
|
873
|
+
"transitionTimingFunction": "transition-timing-function",
|
|
874
|
+
"verticalAlign": "vertical-align",
|
|
875
|
+
*/
|
|
876
|
+
"visibility": "visibility",
|
|
877
|
+
"whiteSpace": "white-space",
|
|
878
|
+
"width": "width",
|
|
879
|
+
/*
|
|
880
|
+
"wordBreak": "word-break",
|
|
881
|
+
"wordSpacing": "word-spacing",
|
|
882
|
+
"wordWrap": "word-wrap",
|
|
883
|
+
*/
|
|
884
|
+
"zIndex": "z-index"
|
|
885
|
+
};
|
|
886
|
+
var CssMap = new Map(Object.entries(CssObj));
|
|
887
|
+
|
|
888
|
+
// src/components/utils.ts
|
|
889
|
+
var ObjectKeys = Object.keys;
|
|
890
|
+
function getContainer(props, fluid) {
|
|
891
|
+
if (fluid) {
|
|
892
|
+
return `
|
|
893
|
+
max-width: calc(100% - var(--grid-column-gap) * 2);
|
|
894
|
+
`;
|
|
895
|
+
} else {
|
|
896
|
+
const theme = props.theme;
|
|
897
|
+
if (theme.maxWidth && theme.mediaQuery) {
|
|
898
|
+
return ObjectKeys(theme.mediaQuery).map((key) => {
|
|
899
|
+
const value = theme.mediaQuery[key];
|
|
900
|
+
return `
|
|
901
|
+
@media(min-width: ${value}px) {
|
|
902
|
+
max-width: ${theme.container.maxWidth[key]};
|
|
903
|
+
}
|
|
904
|
+
`;
|
|
905
|
+
}).join("\n");
|
|
906
|
+
} else {
|
|
907
|
+
return "";
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
function getCssResponsive(props, defaultValue = {}) {
|
|
912
|
+
props = __spreadValues(__spreadValues({}, defaultValue), props);
|
|
913
|
+
let rules = "";
|
|
914
|
+
for (const [key, value] of Object.entries(props)) {
|
|
915
|
+
const rule = key.replace(/(.+?)(Sm|Md|Lg|Xl)?$/, function(m, g1, g2) {
|
|
916
|
+
const prop = g1;
|
|
917
|
+
if (CssMap.has(prop)) {
|
|
918
|
+
const rule2 = `${CssMap.get(prop)}: ${value};`;
|
|
919
|
+
if (g2) {
|
|
920
|
+
const size = g2.toLowerCase();
|
|
921
|
+
return `@media(min-width: ${props.theme.mediaQuery[size]}px) {
|
|
922
|
+
${rule2}
|
|
923
|
+
}`;
|
|
924
|
+
} else {
|
|
925
|
+
return rule2;
|
|
926
|
+
}
|
|
927
|
+
} else {
|
|
928
|
+
return "";
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
rules += rule + "\n";
|
|
932
|
+
}
|
|
933
|
+
return rules;
|
|
934
|
+
}
|
|
935
|
+
function getAspectResponsive(props, defaultValue = {}) {
|
|
936
|
+
props = __spreadValues(__spreadValues({}, defaultValue), props);
|
|
937
|
+
let rules = "";
|
|
938
|
+
for (const [key, value] of Object.entries(props)) {
|
|
939
|
+
const rule = key.replace(/(.+?)(Sm|Md|Lg|Xl)?$/, function(m, g1, g2) {
|
|
940
|
+
const prop = g1;
|
|
941
|
+
if (prop === "aspectRatio") {
|
|
942
|
+
const rule2 = `
|
|
943
|
+
position: relative;
|
|
944
|
+
overflow: hidden;
|
|
945
|
+
`;
|
|
946
|
+
if (g2) {
|
|
947
|
+
const size = g2.toLowerCase();
|
|
948
|
+
return `@media(min-width: ${props.theme.mediaQuery[size]}px) {
|
|
949
|
+
${rule2}
|
|
950
|
+
}`;
|
|
951
|
+
} else {
|
|
952
|
+
return rule2;
|
|
953
|
+
}
|
|
954
|
+
} else {
|
|
955
|
+
return "";
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
rules += rule + "\n";
|
|
959
|
+
}
|
|
960
|
+
return rules;
|
|
961
|
+
}
|
|
962
|
+
function getGrid(props, defaultValue = {}) {
|
|
963
|
+
props = __spreadValues(__spreadValues({}, defaultValue), props);
|
|
964
|
+
return css`
|
|
965
|
+
${props.columns ? css`
|
|
966
|
+
--grid-columns: ${props.columns};
|
|
967
|
+
` : ""}
|
|
968
|
+
${props.columnGap ? css`
|
|
969
|
+
--grid-column-gap: ${props.columnGap};
|
|
970
|
+
` : ""}
|
|
971
|
+
${props.rowGap ? css`
|
|
972
|
+
--grid-row-gap: ${props.rowGap};
|
|
973
|
+
` : ""}
|
|
974
|
+
${props.size ? css`
|
|
975
|
+
--grid-size: ${props.size};
|
|
976
|
+
` : ""}
|
|
977
|
+
display: grid;
|
|
978
|
+
grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
|
|
979
|
+
grid-column-gap: var(--grid-column-gap);
|
|
980
|
+
grid-row-gap: var(--grid-row-gap);
|
|
981
|
+
`;
|
|
982
|
+
}
|
|
983
|
+
function eachMedia(props, callback) {
|
|
984
|
+
const theme = props.theme;
|
|
985
|
+
if (theme.mediaQuery && typeof callback === "function") {
|
|
986
|
+
return ObjectKeys(theme.mediaQuery).map((key) => {
|
|
987
|
+
const value = theme.mediaQuery[key];
|
|
988
|
+
const rule = callback(key);
|
|
989
|
+
return rule ? `@media(min-width: ${value}px) { ${rule} }` : "";
|
|
990
|
+
}).join("\n");
|
|
991
|
+
} else {
|
|
992
|
+
return "";
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
function getVariant(variants, type) {
|
|
996
|
+
return type && variants[type] ? variants[type] || "" : "";
|
|
997
|
+
}
|
|
998
|
+
function isChildElement(parent, child) {
|
|
999
|
+
if (!parent || !child) {
|
|
1000
|
+
return false;
|
|
1001
|
+
}
|
|
1002
|
+
let node = child;
|
|
1003
|
+
while (node) {
|
|
1004
|
+
if (node === parent) {
|
|
1005
|
+
return true;
|
|
1006
|
+
}
|
|
1007
|
+
node = node.parentNode;
|
|
1008
|
+
}
|
|
1009
|
+
return false;
|
|
1010
|
+
}
|
|
1011
|
+
function mapChildsByType(children, type, mapMethod) {
|
|
1012
|
+
return React.Children.map(children, (child) => {
|
|
1013
|
+
if (!React.isValidElement(child)) {
|
|
1014
|
+
return child;
|
|
1015
|
+
}
|
|
1016
|
+
if (child.type === type) {
|
|
1017
|
+
return mapMethod(child);
|
|
1018
|
+
} else if (child.props.children) {
|
|
1019
|
+
child = React.cloneElement(child, __spreadProps(__spreadValues({}, child.props), {
|
|
1020
|
+
children: mapChildsByType(child.props.children, type, mapMethod)
|
|
1021
|
+
}));
|
|
1022
|
+
}
|
|
1023
|
+
return child;
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
function getChildsByType(children, type) {
|
|
1027
|
+
const items = [];
|
|
1028
|
+
const others = React.Children.map(children, (item) => {
|
|
1029
|
+
if (!React.isValidElement(item)) {
|
|
1030
|
+
return item;
|
|
1031
|
+
}
|
|
1032
|
+
if (item.type === type) {
|
|
1033
|
+
items.push(item);
|
|
1034
|
+
return null;
|
|
1035
|
+
}
|
|
1036
|
+
return item;
|
|
1037
|
+
});
|
|
1038
|
+
const childs = items.length > 0 ? items : void 0;
|
|
1039
|
+
return [childs, others];
|
|
1040
|
+
}
|
|
1041
|
+
function hasChildOfType(children, type) {
|
|
1042
|
+
const [foundChildren, otherChildren] = getChildsByType(children, type);
|
|
1043
|
+
const hasChildOfType2 = foundChildren !== void 0;
|
|
1044
|
+
return hasChildOfType2;
|
|
1045
|
+
}
|
|
1046
|
+
function hypenize(text) {
|
|
1047
|
+
return text.replace(new RegExp("(?<![A-Z])[A-Z]|(?<![0-9]|^)[0-9]", "g"), (m) => "-" + m.toLowerCase());
|
|
1048
|
+
}
|
|
1049
|
+
function camelize(text) {
|
|
1050
|
+
return text.replace(/(^[a-z])|-([a-z0-9])/gi, ($0, $1, $2) => $2 ? $2.toUpperCase() : $1.toUpperCase());
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export {
|
|
1054
|
+
__spreadValues,
|
|
1055
|
+
__spreadProps,
|
|
1056
|
+
__require,
|
|
1057
|
+
__objRest,
|
|
1058
|
+
__commonJS,
|
|
1059
|
+
__toESM,
|
|
1060
|
+
__async,
|
|
1061
|
+
ObjectKeys,
|
|
1062
|
+
getContainer,
|
|
1063
|
+
getCssResponsive,
|
|
1064
|
+
getAspectResponsive,
|
|
1065
|
+
getGrid,
|
|
1066
|
+
eachMedia,
|
|
1067
|
+
getVariant,
|
|
1068
|
+
isChildElement,
|
|
1069
|
+
mapChildsByType,
|
|
1070
|
+
getChildsByType,
|
|
1071
|
+
hasChildOfType,
|
|
1072
|
+
hypenize,
|
|
1073
|
+
camelize,
|
|
1074
|
+
require_interop_require_default,
|
|
1075
|
+
require_extends,
|
|
1076
|
+
require_dynamic2 as require_dynamic
|
|
1077
|
+
};
|
|
1078
|
+
/*! Bundled license information:
|
|
1079
|
+
|
|
1080
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js:
|
|
1081
|
+
(**
|
|
1082
|
+
* @license React
|
|
1083
|
+
* use-sync-external-store-shim.production.min.js
|
|
1084
|
+
*
|
|
1085
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1086
|
+
*
|
|
1087
|
+
* This source code is licensed under the MIT license found in the
|
|
1088
|
+
* LICENSE file in the root directory of this source tree.
|
|
1089
|
+
*)
|
|
1090
|
+
|
|
1091
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
1092
|
+
(**
|
|
1093
|
+
* @license React
|
|
1094
|
+
* use-sync-external-store-shim.development.js
|
|
1095
|
+
*
|
|
1096
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1097
|
+
*
|
|
1098
|
+
* This source code is licensed under the MIT license found in the
|
|
1099
|
+
* LICENSE file in the root directory of this source tree.
|
|
1100
|
+
*)
|
|
1101
|
+
*/
|