@norges-domstoler/dds-components 0.0.0-dev-20240717100958 → 0.0.0-dev-20240723110258
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 +203 -196
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +206 -199
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -3416,7 +3416,7 @@ var isPropValid = /* @__PURE__ */ memoize(
|
|
|
3416
3416
|
/* Z+1 */
|
|
3417
3417
|
);
|
|
3418
3418
|
|
|
3419
|
-
// ../../node_modules/.pnpm/styled-components@6.1.
|
|
3419
|
+
// ../../node_modules/.pnpm/styled-components@6.1.12_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
|
|
3420
3420
|
var import_react22 = __toESM(require("react"));
|
|
3421
3421
|
var import_shallowequal = __toESM(require_shallowequal());
|
|
3422
3422
|
|
|
@@ -4012,11 +4012,11 @@ var unitlessKeys = {
|
|
|
4012
4012
|
strokeWidth: 1
|
|
4013
4013
|
};
|
|
4014
4014
|
|
|
4015
|
-
// ../../node_modules/.pnpm/styled-components@6.1.
|
|
4015
|
+
// ../../node_modules/.pnpm/styled-components@6.1.12_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
|
|
4016
4016
|
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
4017
4017
|
var m = "active";
|
|
4018
4018
|
var y = "data-styled-version";
|
|
4019
|
-
var v = "6.1.
|
|
4019
|
+
var v = "6.1.12";
|
|
4020
4020
|
var g = "/*!sc*/\n";
|
|
4021
4021
|
var S = "undefined" != typeof window && "HTMLElement" in window;
|
|
4022
4022
|
var w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV);
|
|
@@ -4024,11 +4024,11 @@ var E = /invalid hook call/i;
|
|
|
4024
4024
|
var N = /* @__PURE__ */ new Set();
|
|
4025
4025
|
var P = function(t, n) {
|
|
4026
4026
|
if ("production" !== process.env.NODE_ENV) {
|
|
4027
|
-
var
|
|
4027
|
+
var r2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t).concat(r2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i2 = console.error;
|
|
4028
4028
|
try {
|
|
4029
4029
|
var a3 = true;
|
|
4030
4030
|
console.error = function(t2) {
|
|
4031
|
-
for (var n2 = [],
|
|
4031
|
+
for (var n2 = [], r3 = 1; r3 < arguments.length; r3++) n2[r3 - 1] = arguments[r3];
|
|
4032
4032
|
E.test(t2) ? (a3 = false, N.delete(s2)) : i2.apply(void 0, __spreadArray([t2], n2, false));
|
|
4033
4033
|
}, (0, import_react22.useRef)(), a3 && !N.has(s2) && (console.warn(s2), N.add(s2));
|
|
4034
4034
|
} catch (e) {
|
|
@@ -4094,16 +4094,16 @@ var Q = Object.getOwnPropertySymbols;
|
|
|
4094
4094
|
var ee = Object.getOwnPropertyDescriptor;
|
|
4095
4095
|
var te = Object.getPrototypeOf;
|
|
4096
4096
|
var ne = Object.prototype;
|
|
4097
|
-
function
|
|
4097
|
+
function re(e, t, n) {
|
|
4098
4098
|
if ("string" != typeof t) {
|
|
4099
4099
|
if (ne) {
|
|
4100
|
-
var
|
|
4101
|
-
|
|
4100
|
+
var r2 = te(t);
|
|
4101
|
+
r2 && r2 !== ne && re(e, r2, n);
|
|
4102
4102
|
}
|
|
4103
|
-
var
|
|
4104
|
-
Q && (
|
|
4105
|
-
for (var s2 = X(e), i2 = X(t), a3 = 0; a3 <
|
|
4106
|
-
var c2 =
|
|
4103
|
+
var o2 = K(t);
|
|
4104
|
+
Q && (o2 = o2.concat(Q(t)));
|
|
4105
|
+
for (var s2 = X(e), i2 = X(t), a3 = 0; a3 < o2.length; ++a3) {
|
|
4106
|
+
var c2 = o2[a3];
|
|
4107
4107
|
if (!(c2 in H || n && n[c2] || i2 && c2 in i2 || s2 && c2 in s2)) {
|
|
4108
4108
|
var l2 = ee(t, c2);
|
|
4109
4109
|
try {
|
|
@@ -4115,7 +4115,7 @@ function oe(e, t, n) {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
return e;
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4118
|
+
function oe(e) {
|
|
4119
4119
|
return "function" == typeof e;
|
|
4120
4120
|
}
|
|
4121
4121
|
function se(e) {
|
|
@@ -4126,7 +4126,7 @@ function ie(e, t) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
function ae(e, t) {
|
|
4128
4128
|
if (0 === e.length) return "";
|
|
4129
|
-
for (var n = e[0],
|
|
4129
|
+
for (var n = e[0], r2 = 1; r2 < e.length; r2++) n += t ? t + e[r2] : e[r2];
|
|
4130
4130
|
return n;
|
|
4131
4131
|
}
|
|
4132
4132
|
function ce(e) {
|
|
@@ -4134,8 +4134,8 @@ function ce(e) {
|
|
|
4134
4134
|
}
|
|
4135
4135
|
function le(e, t, n) {
|
|
4136
4136
|
if (void 0 === n && (n = false), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
4137
|
-
if (Array.isArray(t)) for (var
|
|
4138
|
-
else if (ce(t)) for (var
|
|
4137
|
+
if (Array.isArray(t)) for (var r2 = 0; r2 < t.length; r2++) e[r2] = le(e[r2], t[r2]);
|
|
4138
|
+
else if (ce(t)) for (var r2 in t) e[r2] = le(e[r2], t[r2]);
|
|
4139
4139
|
return e;
|
|
4140
4140
|
}
|
|
4141
4141
|
function ue(e, t) {
|
|
@@ -4144,13 +4144,13 @@ function ue(e, t) {
|
|
|
4144
4144
|
var pe = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
4145
4145
|
function de() {
|
|
4146
4146
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
4147
|
-
for (var n = e[0],
|
|
4148
|
-
return
|
|
4147
|
+
for (var n = e[0], r2 = [], o2 = 1, s2 = e.length; o2 < s2; o2 += 1) r2.push(e[o2]);
|
|
4148
|
+
return r2.forEach(function(e2) {
|
|
4149
4149
|
n = n.replace(/%[a-z]/, e2);
|
|
4150
4150
|
}), n;
|
|
4151
4151
|
}
|
|
4152
4152
|
function he(t) {
|
|
4153
|
-
for (var n = [],
|
|
4153
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
4154
4154
|
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, false)).trim());
|
|
4155
4155
|
}
|
|
4156
4156
|
var fe = function() {
|
|
@@ -4162,21 +4162,21 @@ var fe = function() {
|
|
|
4162
4162
|
return t;
|
|
4163
4163
|
}, e.prototype.insertRules = function(e2, t) {
|
|
4164
4164
|
if (e2 >= this.groupSizes.length) {
|
|
4165
|
-
for (var n = this.groupSizes,
|
|
4166
|
-
this.groupSizes = new Uint32Array(
|
|
4167
|
-
for (var s2 =
|
|
4165
|
+
for (var n = this.groupSizes, r2 = n.length, o2 = r2; e2 >= o2; ) if ((o2 <<= 1) < 0) throw he(16, "".concat(e2));
|
|
4166
|
+
this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n), this.length = o2;
|
|
4167
|
+
for (var s2 = r2; s2 < o2; s2++) this.groupSizes[s2] = 0;
|
|
4168
4168
|
}
|
|
4169
4169
|
for (var i2 = this.indexOfGroup(e2 + 1), a3 = (s2 = 0, t.length); s2 < a3; s2++) this.tag.insertRule(i2, t[s2]) && (this.groupSizes[e2]++, i2++);
|
|
4170
4170
|
}, e.prototype.clearGroup = function(e2) {
|
|
4171
4171
|
if (e2 < this.length) {
|
|
4172
|
-
var t = this.groupSizes[e2], n = this.indexOfGroup(e2),
|
|
4172
|
+
var t = this.groupSizes[e2], n = this.indexOfGroup(e2), r2 = n + t;
|
|
4173
4173
|
this.groupSizes[e2] = 0;
|
|
4174
|
-
for (var
|
|
4174
|
+
for (var o2 = n; o2 < r2; o2++) this.tag.deleteRule(n);
|
|
4175
4175
|
}
|
|
4176
4176
|
}, e.prototype.getGroup = function(e2) {
|
|
4177
4177
|
var t = "";
|
|
4178
4178
|
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
|
|
4179
|
-
for (var n = this.groupSizes[e2],
|
|
4179
|
+
for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o2 = r2 + n, s2 = r2; s2 < o2; s2++) t += "".concat(this.tag.getRule(s2)).concat(g);
|
|
4180
4180
|
return t;
|
|
4181
4181
|
}, e;
|
|
4182
4182
|
}();
|
|
@@ -4197,39 +4197,45 @@ var we = function(e, t) {
|
|
|
4197
4197
|
var be = "style[".concat(f, "][").concat(y, '="').concat(v, '"]');
|
|
4198
4198
|
var Ee = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
4199
4199
|
var Ne = function(e, t, n) {
|
|
4200
|
-
for (var
|
|
4200
|
+
for (var r2, o2 = n.split(","), s2 = 0, i2 = o2.length; s2 < i2; s2++) (r2 = o2[s2]) && e.registerName(t, r2);
|
|
4201
4201
|
};
|
|
4202
4202
|
var Pe = function(e, t) {
|
|
4203
|
-
for (var n,
|
|
4204
|
-
var a3 =
|
|
4203
|
+
for (var n, r2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), o2 = [], s2 = 0, i2 = r2.length; s2 < i2; s2++) {
|
|
4204
|
+
var a3 = r2[s2].trim();
|
|
4205
4205
|
if (a3) {
|
|
4206
4206
|
var c2 = a3.match(Ee);
|
|
4207
4207
|
if (c2) {
|
|
4208
4208
|
var l2 = 0 | parseInt(c2[1], 10), u2 = c2[2];
|
|
4209
|
-
0 !== l2 && (we(u2, l2), Ne(e, u2, c2[3]), e.getTag().insertRules(l2,
|
|
4210
|
-
} else
|
|
4209
|
+
0 !== l2 && (we(u2, l2), Ne(e, u2, c2[3]), e.getTag().insertRules(l2, o2)), o2.length = 0;
|
|
4210
|
+
} else o2.push(a3);
|
|
4211
4211
|
}
|
|
4212
4212
|
}
|
|
4213
4213
|
};
|
|
4214
|
-
|
|
4214
|
+
var _e = function(e) {
|
|
4215
|
+
for (var t = document.querySelectorAll(be), n = 0, r2 = t.length; n < r2; n++) {
|
|
4216
|
+
var o2 = t[n];
|
|
4217
|
+
o2 && o2.getAttribute(f) !== m && (Pe(e, o2), o2.parentNode && o2.parentNode.removeChild(o2));
|
|
4218
|
+
}
|
|
4219
|
+
};
|
|
4220
|
+
function Ce() {
|
|
4215
4221
|
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
4216
4222
|
}
|
|
4217
|
-
var
|
|
4218
|
-
var t = document.head, n = e || t,
|
|
4223
|
+
var Ie = function(e) {
|
|
4224
|
+
var t = document.head, n = e || t, r2 = document.createElement("style"), o2 = function(e2) {
|
|
4219
4225
|
var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
|
|
4220
4226
|
return t2[t2.length - 1];
|
|
4221
|
-
}(n), s2 = void 0 !==
|
|
4222
|
-
|
|
4223
|
-
var i2 =
|
|
4224
|
-
return i2 &&
|
|
4227
|
+
}(n), s2 = void 0 !== o2 ? o2.nextSibling : null;
|
|
4228
|
+
r2.setAttribute(f, m), r2.setAttribute(y, v);
|
|
4229
|
+
var i2 = Ce();
|
|
4230
|
+
return i2 && r2.setAttribute("nonce", i2), n.insertBefore(r2, s2), r2;
|
|
4225
4231
|
};
|
|
4226
|
-
var
|
|
4232
|
+
var Ae = function() {
|
|
4227
4233
|
function e(e2) {
|
|
4228
|
-
this.element =
|
|
4234
|
+
this.element = Ie(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
|
|
4229
4235
|
if (e3.sheet) return e3.sheet;
|
|
4230
|
-
for (var t = document.styleSheets, n = 0,
|
|
4231
|
-
var
|
|
4232
|
-
if (
|
|
4236
|
+
for (var t = document.styleSheets, n = 0, r2 = t.length; n < r2; n++) {
|
|
4237
|
+
var o2 = t[n];
|
|
4238
|
+
if (o2.ownerNode === e3) return o2;
|
|
4233
4239
|
}
|
|
4234
4240
|
throw he(17);
|
|
4235
4241
|
}(this.element), this.length = 0;
|
|
@@ -4247,9 +4253,9 @@ var Ie = function() {
|
|
|
4247
4253
|
return t && t.cssText ? t.cssText : "";
|
|
4248
4254
|
}, e;
|
|
4249
4255
|
}();
|
|
4250
|
-
var
|
|
4256
|
+
var Oe = function() {
|
|
4251
4257
|
function e(e2) {
|
|
4252
|
-
this.element =
|
|
4258
|
+
this.element = Ie(e2), this.nodes = this.element.childNodes, this.length = 0;
|
|
4253
4259
|
}
|
|
4254
4260
|
return e.prototype.insertRule = function(e2, t) {
|
|
4255
4261
|
if (e2 <= this.length && e2 >= 0) {
|
|
@@ -4263,7 +4269,7 @@ var Ae = function() {
|
|
|
4263
4269
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
4264
4270
|
}, e;
|
|
4265
4271
|
}();
|
|
4266
|
-
var
|
|
4272
|
+
var De = function() {
|
|
4267
4273
|
function e(e2) {
|
|
4268
4274
|
this.rules = [], this.length = 0;
|
|
4269
4275
|
}
|
|
@@ -4275,45 +4281,42 @@ var Oe = function() {
|
|
|
4275
4281
|
return e2 < this.length ? this.rules[e2] : "";
|
|
4276
4282
|
}, e;
|
|
4277
4283
|
}();
|
|
4278
|
-
var
|
|
4279
|
-
var
|
|
4280
|
-
var
|
|
4281
|
-
function e(e2, n,
|
|
4284
|
+
var Re = S;
|
|
4285
|
+
var Te = { isServer: !S, useCSSOMInjection: !w };
|
|
4286
|
+
var ke = function() {
|
|
4287
|
+
function e(e2, n, r2) {
|
|
4282
4288
|
void 0 === e2 && (e2 = C), void 0 === n && (n = {});
|
|
4283
|
-
var
|
|
4284
|
-
this.options = __assign(__assign({},
|
|
4285
|
-
for (var t = document.querySelectorAll(be), n2 = 0, o3 = t.length; n2 < o3; n2++) {
|
|
4286
|
-
var r3 = t[n2];
|
|
4287
|
-
r3 && r3.getAttribute(f) !== m && (Pe(e3, r3), r3.parentNode && r3.parentNode.removeChild(r3));
|
|
4288
|
-
}
|
|
4289
|
-
}(this)), ue(this, function() {
|
|
4289
|
+
var o2 = this;
|
|
4290
|
+
this.options = __assign(__assign({}, Te), e2), this.gs = n, this.names = new Map(r2), this.server = !!e2.isServer, !this.server && S && Re && (Re = false, _e(this)), ue(this, function() {
|
|
4290
4291
|
return function(e3) {
|
|
4291
|
-
for (var t = e3.getTag(), n2 = t.length,
|
|
4292
|
-
var
|
|
4292
|
+
for (var t = e3.getTag(), n2 = t.length, r3 = "", o3 = function(n3) {
|
|
4293
|
+
var o4 = function(e4) {
|
|
4293
4294
|
return ve.get(e4);
|
|
4294
4295
|
}(n3);
|
|
4295
|
-
if (void 0 ===
|
|
4296
|
-
var s3 = e3.names.get(
|
|
4297
|
-
if (void 0 === s3 || 0 === i2.length) return "continue";
|
|
4298
|
-
var a3 = "".concat(f, ".g").concat(n3, '[id="').concat(
|
|
4296
|
+
if (void 0 === o4) return "continue";
|
|
4297
|
+
var s3 = e3.names.get(o4), i2 = t.getGroup(n3);
|
|
4298
|
+
if (void 0 === s3 || !s3.size || 0 === i2.length) return "continue";
|
|
4299
|
+
var a3 = "".concat(f, ".g").concat(n3, '[id="').concat(o4, '"]'), c2 = "";
|
|
4299
4300
|
void 0 !== s3 && s3.forEach(function(e4) {
|
|
4300
4301
|
e4.length > 0 && (c2 += "".concat(e4, ","));
|
|
4301
|
-
}),
|
|
4302
|
-
}, s2 = 0; s2 < n2; s2++)
|
|
4303
|
-
return
|
|
4304
|
-
}(
|
|
4302
|
+
}), r3 += "".concat(i2).concat(a3, '{content:"').concat(c2, '"}').concat(g);
|
|
4303
|
+
}, s2 = 0; s2 < n2; s2++) o3(s2);
|
|
4304
|
+
return r3;
|
|
4305
|
+
}(o2);
|
|
4305
4306
|
});
|
|
4306
4307
|
}
|
|
4307
4308
|
return e.registerId = function(e2) {
|
|
4308
4309
|
return Se(e2);
|
|
4309
|
-
}, e.prototype.
|
|
4310
|
-
|
|
4310
|
+
}, e.prototype.rehydrate = function() {
|
|
4311
|
+
!this.server && S && _e(this);
|
|
4312
|
+
}, e.prototype.reconstructWithOptions = function(n, r2) {
|
|
4313
|
+
return void 0 === r2 && (r2 = true), new e(__assign(__assign({}, this.options), n), this.gs, r2 && this.names || void 0);
|
|
4311
4314
|
}, e.prototype.allocateGSInstance = function(e2) {
|
|
4312
4315
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
4313
4316
|
}, e.prototype.getTag = function() {
|
|
4314
4317
|
return this.tag || (this.tag = (e2 = function(e3) {
|
|
4315
4318
|
var t = e3.useCSSOMInjection, n = e3.target;
|
|
4316
|
-
return e3.isServer ? new
|
|
4319
|
+
return e3.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
|
|
4317
4320
|
}(this.options), new fe(e2)));
|
|
4318
4321
|
var e2;
|
|
4319
4322
|
}, e.prototype.hasNameForId = function(e2, t) {
|
|
@@ -4334,26 +4337,26 @@ var Te = function() {
|
|
|
4334
4337
|
this.tag = void 0;
|
|
4335
4338
|
}, e;
|
|
4336
4339
|
}();
|
|
4337
|
-
var
|
|
4338
|
-
var
|
|
4339
|
-
function
|
|
4340
|
+
var je = /&/g;
|
|
4341
|
+
var xe = /^\s*\/\/.*$/gm;
|
|
4342
|
+
function Ve(e, t) {
|
|
4340
4343
|
return e.map(function(e2) {
|
|
4341
4344
|
return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
|
|
4342
4345
|
return "".concat(t, " ").concat(e3);
|
|
4343
|
-
})), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children =
|
|
4346
|
+
})), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Ve(e2.children, t)), e2;
|
|
4344
4347
|
});
|
|
4345
4348
|
}
|
|
4346
|
-
function
|
|
4347
|
-
var t, n,
|
|
4348
|
-
return
|
|
4349
|
+
function Fe(e) {
|
|
4350
|
+
var t, n, r2, o2 = void 0 === e ? C : e, s2 = o2.options, i2 = void 0 === s2 ? C : s2, a3 = o2.plugins, c2 = void 0 === a3 ? _ : a3, l2 = function(e2, r3, o3) {
|
|
4351
|
+
return o3.startsWith(n) && o3.endsWith(n) && o3.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
|
|
4349
4352
|
}, u2 = c2.slice();
|
|
4350
4353
|
u2.push(function(e2) {
|
|
4351
|
-
e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(
|
|
4354
|
+
e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(je, n).replace(r2, l2));
|
|
4352
4355
|
}), i2.prefix && u2.push(prefixer), u2.push(stringify);
|
|
4353
|
-
var p2 = function(e2,
|
|
4354
|
-
void 0 ===
|
|
4355
|
-
var c3 = e2.replace(
|
|
4356
|
-
i2.namespace && (l3 =
|
|
4356
|
+
var p2 = function(e2, o3, s3, a4) {
|
|
4357
|
+
void 0 === o3 && (o3 = ""), void 0 === s3 && (s3 = ""), void 0 === a4 && (a4 = "&"), t = a4, n = o3, r2 = new RegExp("\\".concat(n, "\\b"), "g");
|
|
4358
|
+
var c3 = e2.replace(xe, ""), l3 = compile(s3 || o3 ? "".concat(s3, " ").concat(o3, " { ").concat(c3, " }") : c3);
|
|
4359
|
+
i2.namespace && (l3 = Ve(l3, i2.namespace));
|
|
4357
4360
|
var p3 = [];
|
|
4358
4361
|
return serialize(l3, middleware(u2.concat(rulesheet(function(e3) {
|
|
4359
4362
|
return p3.push(e3);
|
|
@@ -4363,162 +4366,162 @@ function Ve(e) {
|
|
|
4363
4366
|
return t2.name || he(15), M(e2, t2.name);
|
|
4364
4367
|
}, F).toString() : "", p2;
|
|
4365
4368
|
}
|
|
4366
|
-
var
|
|
4367
|
-
var
|
|
4368
|
-
var
|
|
4369
|
-
var
|
|
4370
|
-
var
|
|
4371
|
-
function
|
|
4372
|
-
return (0, import_react22.useContext)(
|
|
4369
|
+
var Me = new ke();
|
|
4370
|
+
var ze = Fe();
|
|
4371
|
+
var $e = import_react22.default.createContext({ shouldForwardProp: void 0, styleSheet: Me, stylis: ze });
|
|
4372
|
+
var Be = $e.Consumer;
|
|
4373
|
+
var Le = import_react22.default.createContext(void 0);
|
|
4374
|
+
function Ge() {
|
|
4375
|
+
return (0, import_react22.useContext)($e);
|
|
4373
4376
|
}
|
|
4374
|
-
function
|
|
4375
|
-
var t = (0, import_react22.useState)(e.stylisPlugins), n = t[0],
|
|
4377
|
+
function Ye(e) {
|
|
4378
|
+
var t = (0, import_react22.useState)(e.stylisPlugins), n = t[0], o2 = t[1], c2 = Ge().styleSheet, l2 = (0, import_react22.useMemo)(function() {
|
|
4376
4379
|
var t2 = c2;
|
|
4377
4380
|
return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
|
|
4378
4381
|
}, [e.disableCSSOMInjection, e.sheet, e.target, c2]), u2 = (0, import_react22.useMemo)(function() {
|
|
4379
|
-
return
|
|
4382
|
+
return Fe({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
|
|
4380
4383
|
}, [e.enableVendorPrefixes, e.namespace, n]);
|
|
4381
4384
|
(0, import_react22.useEffect)(function() {
|
|
4382
|
-
(0, import_shallowequal.default)(n, e.stylisPlugins) ||
|
|
4385
|
+
(0, import_shallowequal.default)(n, e.stylisPlugins) || o2(e.stylisPlugins);
|
|
4383
4386
|
}, [e.stylisPlugins]);
|
|
4384
4387
|
var d = (0, import_react22.useMemo)(function() {
|
|
4385
4388
|
return { shouldForwardProp: e.shouldForwardProp, styleSheet: l2, stylis: u2 };
|
|
4386
4389
|
}, [e.shouldForwardProp, l2, u2]);
|
|
4387
|
-
return import_react22.default.createElement(
|
|
4390
|
+
return import_react22.default.createElement($e.Provider, { value: d }, import_react22.default.createElement(Le.Provider, { value: u2 }, e.children));
|
|
4388
4391
|
}
|
|
4389
|
-
var
|
|
4392
|
+
var qe = function() {
|
|
4390
4393
|
function e(e2, t) {
|
|
4391
4394
|
var n = this;
|
|
4392
4395
|
this.inject = function(e3, t2) {
|
|
4393
|
-
void 0 === t2 && (t2 =
|
|
4394
|
-
var
|
|
4395
|
-
e3.hasNameForId(n.id,
|
|
4396
|
+
void 0 === t2 && (t2 = ze);
|
|
4397
|
+
var r2 = n.name + t2.hash;
|
|
4398
|
+
e3.hasNameForId(n.id, r2) || e3.insertRules(n.id, r2, t2(n.rules, r2, "@keyframes"));
|
|
4396
4399
|
}, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ue(this, function() {
|
|
4397
4400
|
throw he(12, String(n.name));
|
|
4398
4401
|
});
|
|
4399
4402
|
}
|
|
4400
4403
|
return e.prototype.getName = function(e2) {
|
|
4401
|
-
return void 0 === e2 && (e2 =
|
|
4404
|
+
return void 0 === e2 && (e2 = ze), this.name + e2.hash;
|
|
4402
4405
|
}, e;
|
|
4403
4406
|
}();
|
|
4404
|
-
var
|
|
4407
|
+
var We = function(e) {
|
|
4405
4408
|
return e >= "A" && e <= "Z";
|
|
4406
4409
|
};
|
|
4407
|
-
function
|
|
4410
|
+
function He(e) {
|
|
4408
4411
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
4409
|
-
var
|
|
4410
|
-
if (1 === n && "-" ===
|
|
4411
|
-
|
|
4412
|
+
var r2 = e[n];
|
|
4413
|
+
if (1 === n && "-" === r2 && "-" === e[0]) return e;
|
|
4414
|
+
We(r2) ? t += "-" + r2.toLowerCase() : t += r2;
|
|
4412
4415
|
}
|
|
4413
4416
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
4414
4417
|
}
|
|
4415
|
-
var
|
|
4418
|
+
var Ue = function(e) {
|
|
4416
4419
|
return null == e || false === e || "" === e;
|
|
4417
4420
|
};
|
|
4418
|
-
var
|
|
4419
|
-
var n,
|
|
4421
|
+
var Je = function(t) {
|
|
4422
|
+
var n, r2, o2 = [];
|
|
4420
4423
|
for (var s2 in t) {
|
|
4421
4424
|
var i2 = t[s2];
|
|
4422
|
-
t.hasOwnProperty(s2) && !
|
|
4425
|
+
t.hasOwnProperty(s2) && !Ue(i2) && (Array.isArray(i2) && i2.isCss || oe(i2) ? o2.push("".concat(He(s2), ":"), i2, ";") : ce(i2) ? o2.push.apply(o2, __spreadArray(__spreadArray(["".concat(s2, " {")], Je(i2), false), ["}"], false)) : o2.push("".concat(He(s2), ": ").concat((n = s2, null == (r2 = i2) || "boolean" == typeof r2 || "" === r2 ? "" : "number" != typeof r2 || 0 === r2 || n in unitlessKeys || n.startsWith("--") ? String(r2).trim() : "".concat(r2, "px")), ";")));
|
|
4423
4426
|
}
|
|
4424
|
-
return
|
|
4427
|
+
return o2;
|
|
4425
4428
|
};
|
|
4426
|
-
function
|
|
4427
|
-
if (
|
|
4429
|
+
function Xe(e, t, n, r2) {
|
|
4430
|
+
if (Ue(e)) return [];
|
|
4428
4431
|
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
4429
|
-
if (
|
|
4430
|
-
if (!
|
|
4431
|
-
var
|
|
4432
|
-
return "production" === process.env.NODE_ENV || "object" != typeof
|
|
4432
|
+
if (oe(e)) {
|
|
4433
|
+
if (!oe(s2 = e) || s2.prototype && s2.prototype.isReactComponent || !t) return [e];
|
|
4434
|
+
var o2 = e(t);
|
|
4435
|
+
return "production" === process.env.NODE_ENV || "object" != typeof o2 || Array.isArray(o2) || o2 instanceof qe || ce(o2) || null === o2 || console.error("".concat(B(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Xe(o2, t, n, r2);
|
|
4433
4436
|
}
|
|
4434
4437
|
var s2;
|
|
4435
|
-
return e instanceof
|
|
4436
|
-
return
|
|
4438
|
+
return e instanceof qe ? n ? (e.inject(n, r2), [e.getName(r2)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e2) {
|
|
4439
|
+
return Xe(e2, t, n, r2);
|
|
4437
4440
|
})) : [e.toString()];
|
|
4438
4441
|
}
|
|
4439
|
-
function
|
|
4442
|
+
function Ze(e) {
|
|
4440
4443
|
for (var t = 0; t < e.length; t += 1) {
|
|
4441
4444
|
var n = e[t];
|
|
4442
|
-
if (
|
|
4445
|
+
if (oe(n) && !se(n)) return false;
|
|
4443
4446
|
}
|
|
4444
4447
|
return true;
|
|
4445
4448
|
}
|
|
4446
|
-
var
|
|
4447
|
-
var
|
|
4449
|
+
var Ke = z(v);
|
|
4450
|
+
var Qe = function() {
|
|
4448
4451
|
function e(e2, t, n) {
|
|
4449
|
-
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) &&
|
|
4452
|
+
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e2), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
|
|
4450
4453
|
}
|
|
4451
4454
|
return e.prototype.generateAndInjectStyles = function(e2, t, n) {
|
|
4452
|
-
var
|
|
4453
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId))
|
|
4455
|
+
var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
|
|
4456
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) r2 = ie(r2, this.staticRulesId);
|
|
4454
4457
|
else {
|
|
4455
|
-
var
|
|
4458
|
+
var o2 = ae(Xe(this.rules, e2, t, n)), s2 = x(M(this.baseHash, o2) >>> 0);
|
|
4456
4459
|
if (!t.hasNameForId(this.componentId, s2)) {
|
|
4457
|
-
var i2 = n(
|
|
4460
|
+
var i2 = n(o2, ".".concat(s2), void 0, this.componentId);
|
|
4458
4461
|
t.insertRules(this.componentId, s2, i2);
|
|
4459
4462
|
}
|
|
4460
|
-
|
|
4463
|
+
r2 = ie(r2, s2), this.staticRulesId = s2;
|
|
4461
4464
|
}
|
|
4462
4465
|
else {
|
|
4463
4466
|
for (var a3 = M(this.baseHash, n.hash), c2 = "", l2 = 0; l2 < this.rules.length; l2++) {
|
|
4464
4467
|
var u2 = this.rules[l2];
|
|
4465
4468
|
if ("string" == typeof u2) c2 += u2, "production" !== process.env.NODE_ENV && (a3 = M(a3, u2));
|
|
4466
4469
|
else if (u2) {
|
|
4467
|
-
var p2 = ae(
|
|
4470
|
+
var p2 = ae(Xe(u2, e2, t, n));
|
|
4468
4471
|
a3 = M(a3, p2 + l2), c2 += p2;
|
|
4469
4472
|
}
|
|
4470
4473
|
}
|
|
4471
4474
|
if (c2) {
|
|
4472
4475
|
var d = x(a3 >>> 0);
|
|
4473
|
-
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c2, ".".concat(d), void 0, this.componentId)),
|
|
4476
|
+
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c2, ".".concat(d), void 0, this.componentId)), r2 = ie(r2, d);
|
|
4474
4477
|
}
|
|
4475
4478
|
}
|
|
4476
|
-
return
|
|
4479
|
+
return r2;
|
|
4477
4480
|
}, e;
|
|
4478
4481
|
}();
|
|
4479
|
-
var
|
|
4480
|
-
var
|
|
4482
|
+
var et = import_react22.default.createContext(void 0);
|
|
4483
|
+
var tt = et.Consumer;
|
|
4481
4484
|
var ot = {};
|
|
4482
|
-
var
|
|
4483
|
-
function
|
|
4484
|
-
var i2 = se(e), a3 = e, c2 = !L(e), p2 =
|
|
4485
|
+
var st = /* @__PURE__ */ new Set();
|
|
4486
|
+
function it(e, o2, s2) {
|
|
4487
|
+
var i2 = se(e), a3 = e, c2 = !L(e), p2 = o2.attrs, d = void 0 === p2 ? _ : p2, h = o2.componentId, f2 = void 0 === h ? function(e2, t) {
|
|
4485
4488
|
var n = "string" != typeof e2 ? "sc" : R(e2);
|
|
4486
4489
|
ot[n] = (ot[n] || 0) + 1;
|
|
4487
|
-
var
|
|
4488
|
-
return t ? "".concat(t, "-").concat(
|
|
4489
|
-
}(
|
|
4490
|
+
var r2 = "".concat(n, "-").concat($(v + n + ot[n]));
|
|
4491
|
+
return t ? "".concat(t, "-").concat(r2) : r2;
|
|
4492
|
+
}(o2.displayName, o2.parentComponentId) : h, m2 = o2.displayName, y2 = void 0 === m2 ? function(e2) {
|
|
4490
4493
|
return L(e2) ? "styled.".concat(e2) : "Styled(".concat(B(e2), ")");
|
|
4491
|
-
}(e) : m2, g2 =
|
|
4494
|
+
}(e) : m2, g2 = o2.displayName && o2.componentId ? "".concat(R(o2.displayName), "-").concat(o2.componentId) : o2.componentId || f2, S2 = i2 && a3.attrs ? a3.attrs.concat(d).filter(Boolean) : d, w2 = o2.shouldForwardProp;
|
|
4492
4495
|
if (i2 && a3.shouldForwardProp) {
|
|
4493
4496
|
var b = a3.shouldForwardProp;
|
|
4494
|
-
if (
|
|
4495
|
-
var E2 =
|
|
4497
|
+
if (o2.shouldForwardProp) {
|
|
4498
|
+
var E2 = o2.shouldForwardProp;
|
|
4496
4499
|
w2 = function(e2, t) {
|
|
4497
4500
|
return b(e2, t) && E2(e2, t);
|
|
4498
4501
|
};
|
|
4499
4502
|
} else w2 = b;
|
|
4500
4503
|
}
|
|
4501
|
-
var N2 = new
|
|
4502
|
-
function O2(e2,
|
|
4503
|
-
return function(e3,
|
|
4504
|
-
var i3 = e3.attrs, a4 = e3.componentStyle, c3 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = import_react22.default.useContext(
|
|
4504
|
+
var N2 = new Qe(s2, g2, i2 ? a3.componentStyle : void 0);
|
|
4505
|
+
function O2(e2, o3) {
|
|
4506
|
+
return function(e3, o4, s3) {
|
|
4507
|
+
var i3 = e3.attrs, a4 = e3.componentStyle, c3 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = import_react22.default.useContext(et), m3 = Ge(), y3 = e3.shouldForwardProp || m3.shouldForwardProp;
|
|
4505
4508
|
"production" !== process.env.NODE_ENV && (0, import_react22.useDebugValue)(d2);
|
|
4506
|
-
var v2 = I(
|
|
4507
|
-
for (var
|
|
4508
|
-
var a5 =
|
|
4509
|
+
var v2 = I(o4, f3, c3) || C, g3 = function(e4, n, r2) {
|
|
4510
|
+
for (var o5, s4 = __assign(__assign({}, n), { className: void 0, theme: r2 }), i4 = 0; i4 < e4.length; i4 += 1) {
|
|
4511
|
+
var a5 = oe(o5 = e4[i4]) ? o5(s4) : o5;
|
|
4509
4512
|
for (var c4 in a5) s4[c4] = "className" === c4 ? ie(s4[c4], a5[c4]) : "style" === c4 ? __assign(__assign({}, s4[c4]), a5[c4]) : a5[c4];
|
|
4510
4513
|
}
|
|
4511
4514
|
return n.className && (s4.className = ie(s4.className, n.className)), s4;
|
|
4512
|
-
}(i3,
|
|
4513
|
-
for (var b2 in g3) void 0 === g3[b2] || "$" === b2[0] || "as" === b2 || "theme" === b2 && g3.theme === v2 || ("forwardedAs" === b2 ? w3.as = g3.forwardedAs : y3 && !y3(b2, S3) || (w3[b2] = g3[b2], y3 || "development" !== process.env.NODE_ENV || isPropValid(b2) ||
|
|
4515
|
+
}(i3, o4, v2), S3 = g3.as || h2, w3 = {};
|
|
4516
|
+
for (var b2 in g3) void 0 === g3[b2] || "$" === b2[0] || "as" === b2 || "theme" === b2 && g3.theme === v2 || ("forwardedAs" === b2 ? w3.as = g3.forwardedAs : y3 && !y3(b2, S3) || (w3[b2] = g3[b2], y3 || "development" !== process.env.NODE_ENV || isPropValid(b2) || st.has(b2) || !A.has(S3) || (st.add(b2), console.warn('styled-components: it looks like an unknown prop "'.concat(b2, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
4514
4517
|
var E3 = function(e4, t) {
|
|
4515
|
-
var n =
|
|
4516
|
-
return "production" !== process.env.NODE_ENV && (0, import_react22.useDebugValue)(
|
|
4518
|
+
var n = Ge(), r2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
4519
|
+
return "production" !== process.env.NODE_ENV && (0, import_react22.useDebugValue)(r2), r2;
|
|
4517
4520
|
}(a4, g3);
|
|
4518
4521
|
"production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
|
|
4519
4522
|
var N3 = ie(p3, d2);
|
|
4520
4523
|
return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, w3.ref = s3, (0, import_react22.createElement)(S3, w3);
|
|
4521
|
-
}(D2, e2,
|
|
4524
|
+
}(D2, e2, o3);
|
|
4522
4525
|
}
|
|
4523
4526
|
O2.displayName = y2;
|
|
4524
4527
|
var D2 = import_react22.default.forwardRef(O2);
|
|
@@ -4527,95 +4530,99 @@ function st(e, r2, s2) {
|
|
|
4527
4530
|
}, set: function(e2) {
|
|
4528
4531
|
this._foldedDefaultProps = i2 ? function(e3) {
|
|
4529
4532
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
4530
|
-
for (var
|
|
4533
|
+
for (var r2 = 0, o3 = t; r2 < o3.length; r2++) le(e3, o3[r2], true);
|
|
4531
4534
|
return e3;
|
|
4532
4535
|
}({}, a3.defaultProps, e2) : e2;
|
|
4533
4536
|
} }), "production" !== process.env.NODE_ENV && (P(y2, g2), D2.warnTooManyClasses = /* @__PURE__ */ function(e2, t) {
|
|
4534
|
-
var n = {},
|
|
4535
|
-
return function(
|
|
4536
|
-
if (!
|
|
4537
|
+
var n = {}, r2 = false;
|
|
4538
|
+
return function(o3) {
|
|
4539
|
+
if (!r2 && (n[o3] = true, Object.keys(n).length >= 200)) {
|
|
4537
4540
|
var s3 = t ? ' with the id of "'.concat(t, '"') : "";
|
|
4538
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s3, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),
|
|
4541
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s3, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r2 = true, n = {};
|
|
4539
4542
|
}
|
|
4540
4543
|
};
|
|
4541
4544
|
}(y2, g2)), ue(D2, function() {
|
|
4542
4545
|
return ".".concat(D2.styledComponentId);
|
|
4543
|
-
}), c2 &&
|
|
4546
|
+
}), c2 && re(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
|
|
4544
4547
|
}
|
|
4545
|
-
function
|
|
4546
|
-
for (var n = [e[0]],
|
|
4548
|
+
function at(e, t) {
|
|
4549
|
+
for (var n = [e[0]], r2 = 0, o2 = t.length; r2 < o2; r2 += 1) n.push(t[r2], e[r2 + 1]);
|
|
4547
4550
|
return n;
|
|
4548
4551
|
}
|
|
4549
|
-
var
|
|
4552
|
+
var ct = function(e) {
|
|
4550
4553
|
return Object.assign(e, { isCss: true });
|
|
4551
4554
|
};
|
|
4552
|
-
function
|
|
4553
|
-
for (var n = [],
|
|
4554
|
-
if (
|
|
4555
|
-
var
|
|
4556
|
-
return 0 === n.length && 1 ===
|
|
4555
|
+
function lt(t) {
|
|
4556
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
4557
|
+
if (oe(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, true))));
|
|
4558
|
+
var o2 = t;
|
|
4559
|
+
return 0 === n.length && 1 === o2.length && "string" == typeof o2[0] ? Xe(o2) : ct(Xe(at(o2, n)));
|
|
4557
4560
|
}
|
|
4558
|
-
function
|
|
4559
|
-
if (void 0 ===
|
|
4561
|
+
function ut(n, r2, o2) {
|
|
4562
|
+
if (void 0 === o2 && (o2 = C), !r2) throw he(1, r2);
|
|
4560
4563
|
var s2 = function(t) {
|
|
4561
4564
|
for (var s3 = [], i2 = 1; i2 < arguments.length; i2++) s3[i2 - 1] = arguments[i2];
|
|
4562
|
-
return n(
|
|
4565
|
+
return n(r2, o2, lt.apply(void 0, __spreadArray([t], s3, false)));
|
|
4563
4566
|
};
|
|
4564
4567
|
return s2.attrs = function(e) {
|
|
4565
|
-
return
|
|
4568
|
+
return ut(n, r2, __assign(__assign({}, o2), { attrs: Array.prototype.concat(o2.attrs, e).filter(Boolean) }));
|
|
4566
4569
|
}, s2.withConfig = function(e) {
|
|
4567
|
-
return
|
|
4570
|
+
return ut(n, r2, __assign(__assign({}, o2), e));
|
|
4568
4571
|
}, s2;
|
|
4569
4572
|
}
|
|
4570
|
-
var
|
|
4571
|
-
return
|
|
4573
|
+
var pt = function(e) {
|
|
4574
|
+
return ut(it, e);
|
|
4572
4575
|
};
|
|
4573
|
-
var
|
|
4576
|
+
var dt = pt;
|
|
4574
4577
|
A.forEach(function(e) {
|
|
4575
|
-
|
|
4578
|
+
dt[e] = pt(e);
|
|
4576
4579
|
});
|
|
4577
|
-
var
|
|
4580
|
+
var ht = function() {
|
|
4578
4581
|
function e(e2, t) {
|
|
4579
|
-
this.rules = e2, this.componentId = t, this.isStatic =
|
|
4582
|
+
this.rules = e2, this.componentId = t, this.isStatic = Ze(e2), ke.registerId(this.componentId + 1);
|
|
4580
4583
|
}
|
|
4581
|
-
return e.prototype.createStyles = function(e2, t, n,
|
|
4582
|
-
var
|
|
4583
|
-
n.insertRules(s2, s2,
|
|
4584
|
+
return e.prototype.createStyles = function(e2, t, n, r2) {
|
|
4585
|
+
var o2 = r2(ae(Xe(this.rules, t, n, r2)), ""), s2 = this.componentId + e2;
|
|
4586
|
+
n.insertRules(s2, s2, o2);
|
|
4584
4587
|
}, e.prototype.removeStyles = function(e2, t) {
|
|
4585
4588
|
t.clearRules(this.componentId + e2);
|
|
4586
|
-
}, e.prototype.renderStyles = function(e2, t, n,
|
|
4587
|
-
e2 > 2 &&
|
|
4589
|
+
}, e.prototype.renderStyles = function(e2, t, n, r2) {
|
|
4590
|
+
e2 > 2 && ke.registerId(this.componentId + e2), this.removeStyles(e2, n), this.createStyles(e2, t, n, r2);
|
|
4588
4591
|
}, e;
|
|
4589
4592
|
}();
|
|
4590
|
-
var
|
|
4591
|
-
var
|
|
4593
|
+
var vt = /^\s*<\/[a-z]/i;
|
|
4594
|
+
var gt = function() {
|
|
4592
4595
|
function e() {
|
|
4593
4596
|
var e2 = this;
|
|
4594
4597
|
this._emitSheetCSS = function() {
|
|
4595
|
-
var t = e2.instance.toString()
|
|
4596
|
-
|
|
4598
|
+
var t = e2.instance.toString();
|
|
4599
|
+
if (!t) return "";
|
|
4600
|
+
var n = Ce(), r2 = ae([n && 'nonce="'.concat(n, '"'), "".concat(f, '="true"'), "".concat(y, '="').concat(v, '"')].filter(Boolean), " ");
|
|
4601
|
+
return "<style ".concat(r2, ">").concat(t, "</style>");
|
|
4597
4602
|
}, this.getStyleTags = function() {
|
|
4598
4603
|
if (e2.sealed) throw he(2);
|
|
4599
4604
|
return e2._emitSheetCSS();
|
|
4600
4605
|
}, this.getStyleElement = function() {
|
|
4601
4606
|
var n;
|
|
4602
4607
|
if (e2.sealed) throw he(2);
|
|
4603
|
-
var
|
|
4604
|
-
|
|
4608
|
+
var o2 = e2.instance.toString();
|
|
4609
|
+
if (!o2) return [];
|
|
4610
|
+
var s2 = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: o2 }, n), i2 = Ce();
|
|
4611
|
+
return i2 && (s2.nonce = i2), [import_react22.default.createElement("style", __assign({}, s2, { key: "sc-0-0" }))];
|
|
4605
4612
|
}, this.seal = function() {
|
|
4606
4613
|
e2.sealed = true;
|
|
4607
|
-
}, this.instance = new
|
|
4614
|
+
}, this.instance = new ke({ isServer: true }), this.sealed = false;
|
|
4608
4615
|
}
|
|
4609
4616
|
return e.prototype.collectStyles = function(e2) {
|
|
4610
4617
|
if (this.sealed) throw he(2);
|
|
4611
|
-
return import_react22.default.createElement(
|
|
4618
|
+
return import_react22.default.createElement(Ye, { sheet: this.instance }, e2);
|
|
4612
4619
|
}, e.prototype.interleaveWithNodeStream = function(e2) {
|
|
4613
4620
|
if (S) throw he(3);
|
|
4614
4621
|
if (this.sealed) throw he(2);
|
|
4615
4622
|
this.seal();
|
|
4616
|
-
var t = require("stream").Transform, n = e2,
|
|
4617
|
-
var s3 = e3.toString(), i2 =
|
|
4618
|
-
if (
|
|
4623
|
+
var t = require("stream").Transform, n = e2, r2 = this.instance, o2 = this._emitSheetCSS, s2 = new t({ transform: function(e3, t2, n2) {
|
|
4624
|
+
var s3 = e3.toString(), i2 = o2();
|
|
4625
|
+
if (r2.clearTag(), vt.test(s3)) {
|
|
4619
4626
|
var a3 = s3.indexOf(">") + 1, c2 = s3.slice(0, a3), l2 = s3.slice(a3);
|
|
4620
4627
|
this.push(c2 + i2 + l2);
|
|
4621
4628
|
} else this.push(i2 + s3);
|
|
@@ -4627,12 +4634,12 @@ var vt = function() {
|
|
|
4627
4634
|
}, e;
|
|
4628
4635
|
}();
|
|
4629
4636
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
4630
|
-
var
|
|
4631
|
-
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[
|
|
4637
|
+
var wt = "__sc-".concat(f, "__");
|
|
4638
|
+
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[wt] += 1);
|
|
4632
4639
|
|
|
4633
4640
|
// src/components/helpers/styling/visibilityTransition.tsx
|
|
4634
4641
|
var visibilityTransition = (open) => {
|
|
4635
|
-
return
|
|
4642
|
+
return lt`
|
|
4636
4643
|
@media (prefers-reduced-motion: no-preference) {
|
|
4637
4644
|
transition:
|
|
4638
4645
|
visibility 0.4s,
|