@equinor/roma-framework 0.0.5 → 0.0.7-BETA.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/dev-portal/index.d.ts +10 -0
- package/dev-portal/index.html +2 -2
- package/dev-portal/lib/api/fetcher.d.ts +21 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/dev-portal/lib/api/roma/index.d.ts +8 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
- package/dev-portal/lib/api/trade-recap/deal.d.ts +160 -0
- package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
- package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
- package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
- package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
- package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -0
- package/dev-portal/lib/api/util.d.ts +1 -0
- package/dev-portal/lib/app-provider.d.ts +15 -0
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/dev-portal/lib/eds-event-provider.d.ts +6 -0
- package/dev-portal/lib/make-component.d.ts +12 -0
- package/dev-portal/lib/style-provider.d.ts +7 -0
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +611 -121
- package/index.d.ts +1 -1
- package/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/lib/api/roma/index.d.ts +8 -1
- package/lib/api/roma/model/appDto.d.ts +26 -0
- package/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/lib/api/roma/model/index.d.ts +19 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/lib/api/roma/model/settingDto.d.ts +13 -0
- package/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/lib/api/roma/model/versionDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +34 -0
- package/lib/app-provider.d.ts +15 -0
- package/package.json +1 -1
- package/roma-framework.mjs +1105 -3232
- package/lib/api/roma/get-environment.d.ts +0 -7
- package/lib/sse/useSse.d.ts +0 -5
package/roma-framework.mjs
CHANGED
|
@@ -2,52 +2,75 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFramework, FrameworkProvider } from "@equinor/fusion-framework-react";
|
|
3
3
|
import { configureModules } from "@equinor/fusion-framework-app";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import
|
|
5
|
+
import { useState, useEffect, lazy, useRef, createContext, useContext, useMemo } from "react";
|
|
6
6
|
import { ModuleProvider } from "@equinor/fusion-framework-react-module";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { StyleSheetManager } from "styled-components";
|
|
8
|
+
import { EdsProvider, StarProgress, Typography, Card } from "@equinor/eds-core-react";
|
|
9
|
+
import { QueryClient, QueryClientProvider, useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
|
|
10
|
+
import { useCurrentApp, useApps as useApps$1 } from "@equinor/fusion-framework-react/app";
|
|
9
11
|
import { App } from "@equinor/fusion-framework-module-app/app";
|
|
12
|
+
import { tokens } from "@equinor/eds-tokens";
|
|
10
13
|
import { useHttpClient } from "@equinor/fusion-framework-react-module-http";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const createExtraScopePlugin = (scope) => {
|
|
15
|
+
const plugin = (element, index, childEls) => {
|
|
16
|
+
if (element.type === "rule") {
|
|
17
|
+
element.props = element.props.map((value) => {
|
|
18
|
+
const containerMatch = `div[id^='eds-']`;
|
|
19
|
+
return `${scope} ${value}, ${containerMatch} ${value}`;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return plugin;
|
|
24
|
+
};
|
|
25
|
+
const StyleProvider = ({ scope, children }) => {
|
|
26
|
+
const stylisPlugins = [];
|
|
27
|
+
if (scope) {
|
|
28
|
+
const plugin = createExtraScopePlugin(`#${scope}`);
|
|
29
|
+
Object.defineProperty(plugin, "name", { value: `style-scope-${scope}` });
|
|
30
|
+
stylisPlugins.push(plugin);
|
|
31
|
+
}
|
|
32
|
+
return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
|
|
33
|
+
};
|
|
34
|
+
var extendStatics = function(d, b) {
|
|
35
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
36
|
+
d2.__proto__ = b2;
|
|
37
|
+
} || function(d2, b2) {
|
|
38
|
+
for (var p in b2)
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
40
|
+
d2[p] = b2[p];
|
|
18
41
|
};
|
|
19
|
-
return extendStatics(d,
|
|
42
|
+
return extendStatics(d, b);
|
|
20
43
|
};
|
|
21
|
-
function __extends(d,
|
|
22
|
-
if (typeof
|
|
23
|
-
throw new TypeError("Class extends value " + String(
|
|
24
|
-
extendStatics(d,
|
|
44
|
+
function __extends(d, b) {
|
|
45
|
+
if (typeof b !== "function" && b !== null)
|
|
46
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
47
|
+
extendStatics(d, b);
|
|
25
48
|
function __() {
|
|
26
49
|
this.constructor = d;
|
|
27
50
|
}
|
|
28
|
-
d.prototype =
|
|
51
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29
52
|
}
|
|
30
53
|
var __assign = function() {
|
|
31
54
|
__assign = Object.assign || function __assign2(t) {
|
|
32
55
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
56
|
s = arguments[i];
|
|
34
|
-
for (var
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
36
|
-
t[
|
|
57
|
+
for (var p in s)
|
|
58
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
59
|
+
t[p] = s[p];
|
|
37
60
|
}
|
|
38
61
|
return t;
|
|
39
62
|
};
|
|
40
63
|
return __assign.apply(this, arguments);
|
|
41
64
|
};
|
|
42
|
-
function __rest
|
|
65
|
+
function __rest(s, e) {
|
|
43
66
|
var t = {};
|
|
44
|
-
for (var
|
|
45
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
46
|
-
t[
|
|
67
|
+
for (var p in s)
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
69
|
+
t[p] = s[p];
|
|
47
70
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
48
|
-
for (var i = 0,
|
|
49
|
-
if (e.indexOf(
|
|
50
|
-
t[
|
|
71
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
72
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
73
|
+
t[p[i]] = s[p[i]];
|
|
51
74
|
}
|
|
52
75
|
return t;
|
|
53
76
|
}
|
|
@@ -86,2818 +109,21 @@ function __read(o, n) {
|
|
|
86
109
|
}
|
|
87
110
|
return ar;
|
|
88
111
|
}
|
|
89
|
-
function __spreadArray(to,
|
|
112
|
+
function __spreadArray(to, from, pack) {
|
|
90
113
|
if (pack || arguments.length === 2)
|
|
91
|
-
for (var i = 0, l =
|
|
92
|
-
if (ar || !(i in
|
|
114
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
115
|
+
if (ar || !(i in from)) {
|
|
93
116
|
if (!ar)
|
|
94
|
-
ar = Array.prototype.slice.call(
|
|
95
|
-
ar[i] =
|
|
117
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
118
|
+
ar[i] = from[i];
|
|
96
119
|
}
|
|
97
120
|
}
|
|
98
|
-
return to.concat(ar || Array.prototype.slice.call(
|
|
121
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
99
122
|
}
|
|
100
123
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
101
124
|
var e = new Error(message);
|
|
102
125
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
103
126
|
};
|
|
104
|
-
function memoize$1(fn) {
|
|
105
|
-
var cache = /* @__PURE__ */ Object.create(null);
|
|
106
|
-
return function(arg) {
|
|
107
|
-
if (cache[arg] === void 0)
|
|
108
|
-
cache[arg] = fn(arg);
|
|
109
|
-
return cache[arg];
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
113
|
-
var isPropValid = /* @__PURE__ */ memoize$1(
|
|
114
|
-
function(prop) {
|
|
115
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
116
|
-
}
|
|
117
|
-
/* Z+1 */
|
|
118
|
-
);
|
|
119
|
-
function getDefaultExportFromCjs(x2) {
|
|
120
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
121
|
-
}
|
|
122
|
-
var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
|
|
123
|
-
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
124
|
-
if (ret !== void 0) {
|
|
125
|
-
return !!ret;
|
|
126
|
-
}
|
|
127
|
-
if (objA === objB) {
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
var keysA = Object.keys(objA);
|
|
134
|
-
var keysB = Object.keys(objB);
|
|
135
|
-
if (keysA.length !== keysB.length) {
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
|
|
139
|
-
for (var idx = 0; idx < keysA.length; idx++) {
|
|
140
|
-
var key = keysA[idx];
|
|
141
|
-
if (!bHasOwnProperty(key)) {
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
var valueA = objA[key];
|
|
145
|
-
var valueB = objB[key];
|
|
146
|
-
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
147
|
-
if (ret === false || ret === void 0 && valueA !== valueB) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return true;
|
|
152
|
-
};
|
|
153
|
-
const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequal);
|
|
154
|
-
var MS = "-ms-";
|
|
155
|
-
var MOZ = "-moz-";
|
|
156
|
-
var WEBKIT = "-webkit-";
|
|
157
|
-
var COMMENT = "comm";
|
|
158
|
-
var RULESET = "rule";
|
|
159
|
-
var DECLARATION = "decl";
|
|
160
|
-
var IMPORT = "@import";
|
|
161
|
-
var KEYFRAMES = "@keyframes";
|
|
162
|
-
var LAYER = "@layer";
|
|
163
|
-
var abs = Math.abs;
|
|
164
|
-
var from = String.fromCharCode;
|
|
165
|
-
var assign = Object.assign;
|
|
166
|
-
function hash(value, length2) {
|
|
167
|
-
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
168
|
-
}
|
|
169
|
-
function trim(value) {
|
|
170
|
-
return value.trim();
|
|
171
|
-
}
|
|
172
|
-
function match(value, pattern) {
|
|
173
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
174
|
-
}
|
|
175
|
-
function replace(value, pattern, replacement) {
|
|
176
|
-
return value.replace(pattern, replacement);
|
|
177
|
-
}
|
|
178
|
-
function indexof(value, search) {
|
|
179
|
-
return value.indexOf(search);
|
|
180
|
-
}
|
|
181
|
-
function charat(value, index) {
|
|
182
|
-
return value.charCodeAt(index) | 0;
|
|
183
|
-
}
|
|
184
|
-
function substr(value, begin, end) {
|
|
185
|
-
return value.slice(begin, end);
|
|
186
|
-
}
|
|
187
|
-
function strlen(value) {
|
|
188
|
-
return value.length;
|
|
189
|
-
}
|
|
190
|
-
function sizeof(value) {
|
|
191
|
-
return value.length;
|
|
192
|
-
}
|
|
193
|
-
function append(value, array) {
|
|
194
|
-
return array.push(value), value;
|
|
195
|
-
}
|
|
196
|
-
function combine(array, callback) {
|
|
197
|
-
return array.map(callback).join("");
|
|
198
|
-
}
|
|
199
|
-
function filter$1(array, pattern) {
|
|
200
|
-
return array.filter(function(value) {
|
|
201
|
-
return !match(value, pattern);
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
var line = 1;
|
|
205
|
-
var column = 1;
|
|
206
|
-
var length = 0;
|
|
207
|
-
var position = 0;
|
|
208
|
-
var character = 0;
|
|
209
|
-
var characters = "";
|
|
210
|
-
function node(value, root, parent, type, props, children, length2, siblings) {
|
|
211
|
-
return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
|
|
212
|
-
}
|
|
213
|
-
function copy(root, props) {
|
|
214
|
-
return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
|
|
215
|
-
}
|
|
216
|
-
function lift(root) {
|
|
217
|
-
while (root.root)
|
|
218
|
-
root = copy(root.root, { children: [root] });
|
|
219
|
-
append(root, root.siblings);
|
|
220
|
-
}
|
|
221
|
-
function char() {
|
|
222
|
-
return character;
|
|
223
|
-
}
|
|
224
|
-
function prev() {
|
|
225
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
226
|
-
if (column--, character === 10)
|
|
227
|
-
column = 1, line--;
|
|
228
|
-
return character;
|
|
229
|
-
}
|
|
230
|
-
function next() {
|
|
231
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
232
|
-
if (column++, character === 10)
|
|
233
|
-
column = 1, line++;
|
|
234
|
-
return character;
|
|
235
|
-
}
|
|
236
|
-
function peek() {
|
|
237
|
-
return charat(characters, position);
|
|
238
|
-
}
|
|
239
|
-
function caret() {
|
|
240
|
-
return position;
|
|
241
|
-
}
|
|
242
|
-
function slice(begin, end) {
|
|
243
|
-
return substr(characters, begin, end);
|
|
244
|
-
}
|
|
245
|
-
function token$1(type) {
|
|
246
|
-
switch (type) {
|
|
247
|
-
case 0:
|
|
248
|
-
case 9:
|
|
249
|
-
case 10:
|
|
250
|
-
case 13:
|
|
251
|
-
case 32:
|
|
252
|
-
return 5;
|
|
253
|
-
case 33:
|
|
254
|
-
case 43:
|
|
255
|
-
case 44:
|
|
256
|
-
case 47:
|
|
257
|
-
case 62:
|
|
258
|
-
case 64:
|
|
259
|
-
case 126:
|
|
260
|
-
case 59:
|
|
261
|
-
case 123:
|
|
262
|
-
case 125:
|
|
263
|
-
return 4;
|
|
264
|
-
case 58:
|
|
265
|
-
return 3;
|
|
266
|
-
case 34:
|
|
267
|
-
case 39:
|
|
268
|
-
case 40:
|
|
269
|
-
case 91:
|
|
270
|
-
return 2;
|
|
271
|
-
case 41:
|
|
272
|
-
case 93:
|
|
273
|
-
return 1;
|
|
274
|
-
}
|
|
275
|
-
return 0;
|
|
276
|
-
}
|
|
277
|
-
function alloc(value) {
|
|
278
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
279
|
-
}
|
|
280
|
-
function dealloc(value) {
|
|
281
|
-
return characters = "", value;
|
|
282
|
-
}
|
|
283
|
-
function delimit(type) {
|
|
284
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
285
|
-
}
|
|
286
|
-
function whitespace(type) {
|
|
287
|
-
while (character = peek())
|
|
288
|
-
if (character < 33)
|
|
289
|
-
next();
|
|
290
|
-
else
|
|
291
|
-
break;
|
|
292
|
-
return token$1(type) > 2 || token$1(character) > 3 ? "" : " ";
|
|
293
|
-
}
|
|
294
|
-
function escaping(index, count) {
|
|
295
|
-
while (--count && next())
|
|
296
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
297
|
-
break;
|
|
298
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
299
|
-
}
|
|
300
|
-
function delimiter(type) {
|
|
301
|
-
while (next())
|
|
302
|
-
switch (character) {
|
|
303
|
-
case type:
|
|
304
|
-
return position;
|
|
305
|
-
case 34:
|
|
306
|
-
case 39:
|
|
307
|
-
if (type !== 34 && type !== 39)
|
|
308
|
-
delimiter(character);
|
|
309
|
-
break;
|
|
310
|
-
case 40:
|
|
311
|
-
if (type === 41)
|
|
312
|
-
delimiter(type);
|
|
313
|
-
break;
|
|
314
|
-
case 92:
|
|
315
|
-
next();
|
|
316
|
-
break;
|
|
317
|
-
}
|
|
318
|
-
return position;
|
|
319
|
-
}
|
|
320
|
-
function commenter(type, index) {
|
|
321
|
-
while (next())
|
|
322
|
-
if (type + character === 47 + 10)
|
|
323
|
-
break;
|
|
324
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
325
|
-
break;
|
|
326
|
-
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
327
|
-
}
|
|
328
|
-
function identifier(index) {
|
|
329
|
-
while (!token$1(peek()))
|
|
330
|
-
next();
|
|
331
|
-
return slice(index, position);
|
|
332
|
-
}
|
|
333
|
-
function compile(value) {
|
|
334
|
-
return dealloc(parse$1("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
335
|
-
}
|
|
336
|
-
function parse$1(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
337
|
-
var index = 0;
|
|
338
|
-
var offset = 0;
|
|
339
|
-
var length2 = pseudo;
|
|
340
|
-
var atrule = 0;
|
|
341
|
-
var property = 0;
|
|
342
|
-
var previous = 0;
|
|
343
|
-
var variable = 1;
|
|
344
|
-
var scanning = 1;
|
|
345
|
-
var ampersand = 1;
|
|
346
|
-
var character2 = 0;
|
|
347
|
-
var type = "";
|
|
348
|
-
var props = rules;
|
|
349
|
-
var children = rulesets;
|
|
350
|
-
var reference = rule;
|
|
351
|
-
var characters2 = type;
|
|
352
|
-
while (scanning)
|
|
353
|
-
switch (previous = character2, character2 = next()) {
|
|
354
|
-
case 40:
|
|
355
|
-
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
356
|
-
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
|
|
357
|
-
ampersand = -1;
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
case 34:
|
|
361
|
-
case 39:
|
|
362
|
-
case 91:
|
|
363
|
-
characters2 += delimit(character2);
|
|
364
|
-
break;
|
|
365
|
-
case 9:
|
|
366
|
-
case 10:
|
|
367
|
-
case 13:
|
|
368
|
-
case 32:
|
|
369
|
-
characters2 += whitespace(previous);
|
|
370
|
-
break;
|
|
371
|
-
case 92:
|
|
372
|
-
characters2 += escaping(caret() - 1, 7);
|
|
373
|
-
continue;
|
|
374
|
-
case 47:
|
|
375
|
-
switch (peek()) {
|
|
376
|
-
case 42:
|
|
377
|
-
case 47:
|
|
378
|
-
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
379
|
-
break;
|
|
380
|
-
default:
|
|
381
|
-
characters2 += "/";
|
|
382
|
-
}
|
|
383
|
-
break;
|
|
384
|
-
case 123 * variable:
|
|
385
|
-
points[index++] = strlen(characters2) * ampersand;
|
|
386
|
-
case 125 * variable:
|
|
387
|
-
case 59:
|
|
388
|
-
case 0:
|
|
389
|
-
switch (character2) {
|
|
390
|
-
case 0:
|
|
391
|
-
case 125:
|
|
392
|
-
scanning = 0;
|
|
393
|
-
case 59 + offset:
|
|
394
|
-
if (ampersand == -1)
|
|
395
|
-
characters2 = replace(characters2, /\f/g, "");
|
|
396
|
-
if (property > 0 && strlen(characters2) - length2)
|
|
397
|
-
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
|
|
398
|
-
break;
|
|
399
|
-
case 59:
|
|
400
|
-
characters2 += ";";
|
|
401
|
-
default:
|
|
402
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
|
|
403
|
-
if (character2 === 123)
|
|
404
|
-
if (offset === 0)
|
|
405
|
-
parse$1(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
406
|
-
else
|
|
407
|
-
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
408
|
-
case 100:
|
|
409
|
-
case 108:
|
|
410
|
-
case 109:
|
|
411
|
-
case 115:
|
|
412
|
-
parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
|
|
413
|
-
break;
|
|
414
|
-
default:
|
|
415
|
-
parse$1(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
419
|
-
break;
|
|
420
|
-
case 58:
|
|
421
|
-
length2 = 1 + strlen(characters2), property = previous;
|
|
422
|
-
default:
|
|
423
|
-
if (variable < 1) {
|
|
424
|
-
if (character2 == 123)
|
|
425
|
-
--variable;
|
|
426
|
-
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
427
|
-
continue;
|
|
428
|
-
}
|
|
429
|
-
switch (characters2 += from(character2), character2 * variable) {
|
|
430
|
-
case 38:
|
|
431
|
-
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
432
|
-
break;
|
|
433
|
-
case 44:
|
|
434
|
-
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
435
|
-
break;
|
|
436
|
-
case 64:
|
|
437
|
-
if (peek() === 45)
|
|
438
|
-
characters2 += delimit(next());
|
|
439
|
-
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
440
|
-
break;
|
|
441
|
-
case 45:
|
|
442
|
-
if (previous === 45 && strlen(characters2) == 2)
|
|
443
|
-
variable = 0;
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
return rulesets;
|
|
447
|
-
}
|
|
448
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
|
|
449
|
-
var post = offset - 1;
|
|
450
|
-
var rule = offset === 0 ? rules : [""];
|
|
451
|
-
var size = sizeof(rule);
|
|
452
|
-
for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
|
|
453
|
-
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
|
|
454
|
-
if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
455
|
-
props[k2++] = z2;
|
|
456
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
|
|
457
|
-
}
|
|
458
|
-
function comment(value, root, parent, siblings) {
|
|
459
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
460
|
-
}
|
|
461
|
-
function declaration(value, root, parent, length2, siblings) {
|
|
462
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
|
|
463
|
-
}
|
|
464
|
-
function prefix(value, length2, children) {
|
|
465
|
-
switch (hash(value, length2)) {
|
|
466
|
-
case 5103:
|
|
467
|
-
return WEBKIT + "print-" + value + value;
|
|
468
|
-
case 5737:
|
|
469
|
-
case 4201:
|
|
470
|
-
case 3177:
|
|
471
|
-
case 3433:
|
|
472
|
-
case 1641:
|
|
473
|
-
case 4457:
|
|
474
|
-
case 2921:
|
|
475
|
-
case 5572:
|
|
476
|
-
case 6356:
|
|
477
|
-
case 5844:
|
|
478
|
-
case 3191:
|
|
479
|
-
case 6645:
|
|
480
|
-
case 3005:
|
|
481
|
-
case 6391:
|
|
482
|
-
case 5879:
|
|
483
|
-
case 5623:
|
|
484
|
-
case 6135:
|
|
485
|
-
case 4599:
|
|
486
|
-
case 4855:
|
|
487
|
-
case 4215:
|
|
488
|
-
case 6389:
|
|
489
|
-
case 5109:
|
|
490
|
-
case 5365:
|
|
491
|
-
case 5621:
|
|
492
|
-
case 3829:
|
|
493
|
-
return WEBKIT + value + value;
|
|
494
|
-
case 4789:
|
|
495
|
-
return MOZ + value + value;
|
|
496
|
-
case 5349:
|
|
497
|
-
case 4246:
|
|
498
|
-
case 4810:
|
|
499
|
-
case 6968:
|
|
500
|
-
case 2756:
|
|
501
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
502
|
-
case 5936:
|
|
503
|
-
switch (charat(value, length2 + 11)) {
|
|
504
|
-
case 114:
|
|
505
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
506
|
-
case 108:
|
|
507
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
508
|
-
case 45:
|
|
509
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
510
|
-
}
|
|
511
|
-
case 6828:
|
|
512
|
-
case 4268:
|
|
513
|
-
case 2903:
|
|
514
|
-
return WEBKIT + value + MS + value + value;
|
|
515
|
-
case 6165:
|
|
516
|
-
return WEBKIT + value + MS + "flex-" + value + value;
|
|
517
|
-
case 5187:
|
|
518
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
519
|
-
case 5443:
|
|
520
|
-
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
|
|
521
|
-
case 4675:
|
|
522
|
-
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
|
|
523
|
-
case 5548:
|
|
524
|
-
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
525
|
-
case 5292:
|
|
526
|
-
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
527
|
-
case 6060:
|
|
528
|
-
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
529
|
-
case 4554:
|
|
530
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
531
|
-
case 6187:
|
|
532
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
533
|
-
case 5495:
|
|
534
|
-
case 3959:
|
|
535
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
536
|
-
case 4968:
|
|
537
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
538
|
-
case 4200:
|
|
539
|
-
if (!match(value, /flex-|baseline/))
|
|
540
|
-
return MS + "grid-column-align" + substr(value, length2) + value;
|
|
541
|
-
break;
|
|
542
|
-
case 2592:
|
|
543
|
-
case 3360:
|
|
544
|
-
return MS + replace(value, "template-", "") + value;
|
|
545
|
-
case 4384:
|
|
546
|
-
case 3616:
|
|
547
|
-
if (children && children.some(function(element, index) {
|
|
548
|
-
return length2 = index, match(element.props, /grid-\w+-end/);
|
|
549
|
-
})) {
|
|
550
|
-
return ~indexof(value + (children = children[length2].value), "span") ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span") ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
|
|
551
|
-
}
|
|
552
|
-
return MS + replace(value, "-start", "") + value;
|
|
553
|
-
case 4896:
|
|
554
|
-
case 4128:
|
|
555
|
-
return children && children.some(function(element) {
|
|
556
|
-
return match(element.props, /grid-\w+-start/);
|
|
557
|
-
}) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
|
|
558
|
-
case 4095:
|
|
559
|
-
case 3583:
|
|
560
|
-
case 4068:
|
|
561
|
-
case 2532:
|
|
562
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
563
|
-
case 8116:
|
|
564
|
-
case 7059:
|
|
565
|
-
case 5753:
|
|
566
|
-
case 5535:
|
|
567
|
-
case 5445:
|
|
568
|
-
case 5701:
|
|
569
|
-
case 4933:
|
|
570
|
-
case 4677:
|
|
571
|
-
case 5533:
|
|
572
|
-
case 5789:
|
|
573
|
-
case 5021:
|
|
574
|
-
case 4765:
|
|
575
|
-
if (strlen(value) - 1 - length2 > 6)
|
|
576
|
-
switch (charat(value, length2 + 1)) {
|
|
577
|
-
case 109:
|
|
578
|
-
if (charat(value, length2 + 4) !== 45)
|
|
579
|
-
break;
|
|
580
|
-
case 102:
|
|
581
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
582
|
-
case 115:
|
|
583
|
-
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
|
|
584
|
-
}
|
|
585
|
-
break;
|
|
586
|
-
case 5152:
|
|
587
|
-
case 5920:
|
|
588
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a, b2, c, d, e, f2) {
|
|
589
|
-
return MS + a + ":" + b2 + f2 + (c ? MS + a + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
|
|
590
|
-
});
|
|
591
|
-
case 4949:
|
|
592
|
-
if (charat(value, length2 + 6) === 121)
|
|
593
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
594
|
-
break;
|
|
595
|
-
case 6444:
|
|
596
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
597
|
-
case 120:
|
|
598
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
599
|
-
case 100:
|
|
600
|
-
return replace(value, ":", ":" + MS) + value;
|
|
601
|
-
}
|
|
602
|
-
break;
|
|
603
|
-
case 5719:
|
|
604
|
-
case 2647:
|
|
605
|
-
case 2135:
|
|
606
|
-
case 3927:
|
|
607
|
-
case 2391:
|
|
608
|
-
return replace(value, "scroll-", "scroll-snap-") + value;
|
|
609
|
-
}
|
|
610
|
-
return value;
|
|
611
|
-
}
|
|
612
|
-
function serialize(children, callback) {
|
|
613
|
-
var output = "";
|
|
614
|
-
for (var i = 0; i < children.length; i++)
|
|
615
|
-
output += callback(children[i], i, children, callback) || "";
|
|
616
|
-
return output;
|
|
617
|
-
}
|
|
618
|
-
function stringify(element, index, children, callback) {
|
|
619
|
-
switch (element.type) {
|
|
620
|
-
case LAYER:
|
|
621
|
-
if (element.children.length)
|
|
622
|
-
break;
|
|
623
|
-
case IMPORT:
|
|
624
|
-
case DECLARATION:
|
|
625
|
-
return element.return = element.return || element.value;
|
|
626
|
-
case COMMENT:
|
|
627
|
-
return "";
|
|
628
|
-
case KEYFRAMES:
|
|
629
|
-
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
630
|
-
case RULESET:
|
|
631
|
-
if (!strlen(element.value = element.props.join(",")))
|
|
632
|
-
return "";
|
|
633
|
-
}
|
|
634
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
635
|
-
}
|
|
636
|
-
function middleware(collection) {
|
|
637
|
-
var length2 = sizeof(collection);
|
|
638
|
-
return function(element, index, children, callback) {
|
|
639
|
-
var output = "";
|
|
640
|
-
for (var i = 0; i < length2; i++)
|
|
641
|
-
output += collection[i](element, index, children, callback) || "";
|
|
642
|
-
return output;
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
function rulesheet(callback) {
|
|
646
|
-
return function(element) {
|
|
647
|
-
if (!element.root) {
|
|
648
|
-
if (element = element.return)
|
|
649
|
-
callback(element);
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
function prefixer(element, index, children, callback) {
|
|
654
|
-
if (element.length > -1) {
|
|
655
|
-
if (!element.return)
|
|
656
|
-
switch (element.type) {
|
|
657
|
-
case DECLARATION:
|
|
658
|
-
element.return = prefix(element.value, element.length, children);
|
|
659
|
-
return;
|
|
660
|
-
case KEYFRAMES:
|
|
661
|
-
return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
|
|
662
|
-
case RULESET:
|
|
663
|
-
if (element.length)
|
|
664
|
-
return combine(children = element.props, function(value) {
|
|
665
|
-
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
666
|
-
case ":read-only":
|
|
667
|
-
case ":read-write":
|
|
668
|
-
lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
|
|
669
|
-
lift(copy(element, { props: [value] }));
|
|
670
|
-
assign(element, { props: filter$1(children, callback) });
|
|
671
|
-
break;
|
|
672
|
-
case "::placeholder":
|
|
673
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
|
|
674
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
|
|
675
|
-
lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
|
|
676
|
-
lift(copy(element, { props: [value] }));
|
|
677
|
-
assign(element, { props: filter$1(children, callback) });
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
return "";
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
var unitlessKeys = {
|
|
686
|
-
animationIterationCount: 1,
|
|
687
|
-
aspectRatio: 1,
|
|
688
|
-
borderImageOutset: 1,
|
|
689
|
-
borderImageSlice: 1,
|
|
690
|
-
borderImageWidth: 1,
|
|
691
|
-
boxFlex: 1,
|
|
692
|
-
boxFlexGroup: 1,
|
|
693
|
-
boxOrdinalGroup: 1,
|
|
694
|
-
columnCount: 1,
|
|
695
|
-
columns: 1,
|
|
696
|
-
flex: 1,
|
|
697
|
-
flexGrow: 1,
|
|
698
|
-
flexPositive: 1,
|
|
699
|
-
flexShrink: 1,
|
|
700
|
-
flexNegative: 1,
|
|
701
|
-
flexOrder: 1,
|
|
702
|
-
gridRow: 1,
|
|
703
|
-
gridRowEnd: 1,
|
|
704
|
-
gridRowSpan: 1,
|
|
705
|
-
gridRowStart: 1,
|
|
706
|
-
gridColumn: 1,
|
|
707
|
-
gridColumnEnd: 1,
|
|
708
|
-
gridColumnSpan: 1,
|
|
709
|
-
gridColumnStart: 1,
|
|
710
|
-
msGridRow: 1,
|
|
711
|
-
msGridRowSpan: 1,
|
|
712
|
-
msGridColumn: 1,
|
|
713
|
-
msGridColumnSpan: 1,
|
|
714
|
-
fontWeight: 1,
|
|
715
|
-
lineHeight: 1,
|
|
716
|
-
opacity: 1,
|
|
717
|
-
order: 1,
|
|
718
|
-
orphans: 1,
|
|
719
|
-
tabSize: 1,
|
|
720
|
-
widows: 1,
|
|
721
|
-
zIndex: 1,
|
|
722
|
-
zoom: 1,
|
|
723
|
-
WebkitLineClamp: 1,
|
|
724
|
-
// SVG-related properties
|
|
725
|
-
fillOpacity: 1,
|
|
726
|
-
floodOpacity: 1,
|
|
727
|
-
stopOpacity: 1,
|
|
728
|
-
strokeDasharray: 1,
|
|
729
|
-
strokeDashoffset: 1,
|
|
730
|
-
strokeMiterlimit: 1,
|
|
731
|
-
strokeOpacity: 1,
|
|
732
|
-
strokeWidth: 1
|
|
733
|
-
};
|
|
734
|
-
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", y = "undefined" != typeof window && "HTMLElement" in window, v = 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), S = /invalid hook call/i, w = /* @__PURE__ */ new Set(), b = function(t, n) {
|
|
735
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
736
|
-
var o = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o, " 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.", i = console.error;
|
|
737
|
-
try {
|
|
738
|
-
var a = true;
|
|
739
|
-
console.error = function(t2) {
|
|
740
|
-
for (var n2 = [], o2 = 1; o2 < arguments.length; o2++)
|
|
741
|
-
n2[o2 - 1] = arguments[o2];
|
|
742
|
-
S.test(t2) ? (a = false, w.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
|
|
743
|
-
}, useRef(), a && !w.has(s) && (console.warn(s), w.add(s));
|
|
744
|
-
} catch (e) {
|
|
745
|
-
S.test(e.message) && w.delete(s);
|
|
746
|
-
} finally {
|
|
747
|
-
console.error = i;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}, E = Object.freeze([]), N = Object.freeze({});
|
|
751
|
-
function P(e, t, n) {
|
|
752
|
-
return void 0 === n && (n = N), e.theme !== n.theme && e.theme || t || n.theme;
|
|
753
|
-
}
|
|
754
|
-
var _ = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), C = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, I = /(^-|-$)/g;
|
|
755
|
-
function A(e) {
|
|
756
|
-
return e.replace(C, "-").replace(I, "");
|
|
757
|
-
}
|
|
758
|
-
var O = /(a)(d)/gi, D = function(e) {
|
|
759
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
760
|
-
};
|
|
761
|
-
function R(e) {
|
|
762
|
-
var t, n = "";
|
|
763
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0)
|
|
764
|
-
n = D(t % 52) + n;
|
|
765
|
-
return (D(t % 52) + n).replace(O, "$1-$2");
|
|
766
|
-
}
|
|
767
|
-
var T, k = function(e, t) {
|
|
768
|
-
for (var n = t.length; n; )
|
|
769
|
-
e = 33 * e ^ t.charCodeAt(--n);
|
|
770
|
-
return e;
|
|
771
|
-
}, j = function(e) {
|
|
772
|
-
return k(5381, e);
|
|
773
|
-
};
|
|
774
|
-
function x(e) {
|
|
775
|
-
return R(j(e) >>> 0);
|
|
776
|
-
}
|
|
777
|
-
function V(e) {
|
|
778
|
-
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
779
|
-
}
|
|
780
|
-
function F(e) {
|
|
781
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
782
|
-
}
|
|
783
|
-
var M = "function" == typeof Symbol && Symbol.for, $ = M ? Symbol.for("react.memo") : 60115, z = M ? Symbol.for("react.forward_ref") : 60112, B = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, L = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, G = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, Y = ((T = {})[z] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, T[$] = G, T);
|
|
784
|
-
function W(e) {
|
|
785
|
-
return ("type" in (t = e) && t.type.$$typeof) === $ ? G : "$$typeof" in e ? Y[e.$$typeof] : B;
|
|
786
|
-
var t;
|
|
787
|
-
}
|
|
788
|
-
var q = Object.defineProperty, H = Object.getOwnPropertyNames, U = Object.getOwnPropertySymbols, J = Object.getOwnPropertyDescriptor, X = Object.getPrototypeOf, Z = Object.prototype;
|
|
789
|
-
function K(e, t, n) {
|
|
790
|
-
if ("string" != typeof t) {
|
|
791
|
-
if (Z) {
|
|
792
|
-
var o = X(t);
|
|
793
|
-
o && o !== Z && K(e, o, n);
|
|
794
|
-
}
|
|
795
|
-
var r = H(t);
|
|
796
|
-
U && (r = r.concat(U(t)));
|
|
797
|
-
for (var s = W(e), i = W(t), a = 0; a < r.length; ++a) {
|
|
798
|
-
var c = r[a];
|
|
799
|
-
if (!(c in L || n && n[c] || i && c in i || s && c in s)) {
|
|
800
|
-
var l = J(t, c);
|
|
801
|
-
try {
|
|
802
|
-
q(e, c, l);
|
|
803
|
-
} catch (e2) {
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
return e;
|
|
809
|
-
}
|
|
810
|
-
function Q(e) {
|
|
811
|
-
return "function" == typeof e;
|
|
812
|
-
}
|
|
813
|
-
function ee(e) {
|
|
814
|
-
return "object" == typeof e && "styledComponentId" in e;
|
|
815
|
-
}
|
|
816
|
-
function te(e, t) {
|
|
817
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
818
|
-
}
|
|
819
|
-
function ne(e, t) {
|
|
820
|
-
if (0 === e.length)
|
|
821
|
-
return "";
|
|
822
|
-
for (var n = e[0], o = 1; o < e.length; o++)
|
|
823
|
-
n += t ? t + e[o] : e[o];
|
|
824
|
-
return n;
|
|
825
|
-
}
|
|
826
|
-
function oe(e) {
|
|
827
|
-
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
828
|
-
}
|
|
829
|
-
function re$1(e, t, n) {
|
|
830
|
-
if (void 0 === n && (n = false), !n && !oe(e) && !Array.isArray(e))
|
|
831
|
-
return t;
|
|
832
|
-
if (Array.isArray(t))
|
|
833
|
-
for (var o = 0; o < t.length; o++)
|
|
834
|
-
e[o] = re$1(e[o], t[o]);
|
|
835
|
-
else if (oe(t))
|
|
836
|
-
for (var o in t)
|
|
837
|
-
e[o] = re$1(e[o], t[o]);
|
|
838
|
-
return e;
|
|
839
|
-
}
|
|
840
|
-
function se(e, t) {
|
|
841
|
-
Object.defineProperty(e, "toString", { value: t });
|
|
842
|
-
}
|
|
843
|
-
var ie = "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>`" } : {};
|
|
844
|
-
function ae() {
|
|
845
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
846
|
-
e[t] = arguments[t];
|
|
847
|
-
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1)
|
|
848
|
-
o.push(e[r]);
|
|
849
|
-
return o.forEach(function(e2) {
|
|
850
|
-
n = n.replace(/%[a-z]/, e2);
|
|
851
|
-
}), n;
|
|
852
|
-
}
|
|
853
|
-
function ce(t) {
|
|
854
|
-
for (var n = [], o = 1; o < arguments.length; o++)
|
|
855
|
-
n[o - 1] = arguments[o];
|
|
856
|
-
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(ae.apply(void 0, __spreadArray([ie[t]], n, false)).trim());
|
|
857
|
-
}
|
|
858
|
-
var le = function() {
|
|
859
|
-
function e(e2) {
|
|
860
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
|
|
861
|
-
}
|
|
862
|
-
return e.prototype.indexOfGroup = function(e2) {
|
|
863
|
-
for (var t = 0, n = 0; n < e2; n++)
|
|
864
|
-
t += this.groupSizes[n];
|
|
865
|
-
return t;
|
|
866
|
-
}, e.prototype.insertRules = function(e2, t) {
|
|
867
|
-
if (e2 >= this.groupSizes.length) {
|
|
868
|
-
for (var n = this.groupSizes, o = n.length, r = o; e2 >= r; )
|
|
869
|
-
if ((r <<= 1) < 0)
|
|
870
|
-
throw ce(16, "".concat(e2));
|
|
871
|
-
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
872
|
-
for (var s = o; s < r; s++)
|
|
873
|
-
this.groupSizes[s] = 0;
|
|
874
|
-
}
|
|
875
|
-
for (var i = this.indexOfGroup(e2 + 1), a = (s = 0, t.length); s < a; s++)
|
|
876
|
-
this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++);
|
|
877
|
-
}, e.prototype.clearGroup = function(e2) {
|
|
878
|
-
if (e2 < this.length) {
|
|
879
|
-
var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o = n + t;
|
|
880
|
-
this.groupSizes[e2] = 0;
|
|
881
|
-
for (var r = n; r < o; r++)
|
|
882
|
-
this.tag.deleteRule(n);
|
|
883
|
-
}
|
|
884
|
-
}, e.prototype.getGroup = function(e2) {
|
|
885
|
-
var t = "";
|
|
886
|
-
if (e2 >= this.length || 0 === this.groupSizes[e2])
|
|
887
|
-
return t;
|
|
888
|
-
for (var n = this.groupSizes[e2], o = this.indexOfGroup(e2), r = o + n, s = o; s < r; s++)
|
|
889
|
-
t += "".concat(this.tag.getRule(s)).concat("/*!sc*/\n");
|
|
890
|
-
return t;
|
|
891
|
-
}, e;
|
|
892
|
-
}(), ue = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Map(), de = 1, he = function(e) {
|
|
893
|
-
if (ue.has(e))
|
|
894
|
-
return ue.get(e);
|
|
895
|
-
for (; pe.has(de); )
|
|
896
|
-
de++;
|
|
897
|
-
var t = de++;
|
|
898
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824))
|
|
899
|
-
throw ce(16, "".concat(t));
|
|
900
|
-
return ue.set(e, t), pe.set(t, e), t;
|
|
901
|
-
}, fe = function(e, t) {
|
|
902
|
-
ue.set(e, t), pe.set(t, e);
|
|
903
|
-
}, me = "style[".concat(f, "][").concat("data-styled-version", '="').concat("6.0.8", '"]'), ye = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ve = function(e, t, n) {
|
|
904
|
-
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++)
|
|
905
|
-
(o = r[s]) && e.registerName(t, o);
|
|
906
|
-
}, ge = function(e, t) {
|
|
907
|
-
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split("/*!sc*/\n"), r = [], s = 0, i = o.length; s < i; s++) {
|
|
908
|
-
var a = o[s].trim();
|
|
909
|
-
if (a) {
|
|
910
|
-
var c = a.match(ye);
|
|
911
|
-
if (c) {
|
|
912
|
-
var l = 0 | parseInt(c[1], 10), u = c[2];
|
|
913
|
-
0 !== l && (fe(u, l), ve(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
914
|
-
} else
|
|
915
|
-
r.push(a);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
};
|
|
919
|
-
function Se() {
|
|
920
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
921
|
-
}
|
|
922
|
-
var we = function(e) {
|
|
923
|
-
var t = document.head, n = e || t, o = document.createElement("style"), r = function(e2) {
|
|
924
|
-
var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
|
|
925
|
-
return t2[t2.length - 1];
|
|
926
|
-
}(n), s = void 0 !== r ? r.nextSibling : null;
|
|
927
|
-
o.setAttribute(f, "active"), o.setAttribute("data-styled-version", "6.0.8");
|
|
928
|
-
var i = Se();
|
|
929
|
-
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
930
|
-
}, be = function() {
|
|
931
|
-
function e(e2) {
|
|
932
|
-
this.element = we(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
|
|
933
|
-
if (e3.sheet)
|
|
934
|
-
return e3.sheet;
|
|
935
|
-
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
936
|
-
var r = t[n];
|
|
937
|
-
if (r.ownerNode === e3)
|
|
938
|
-
return r;
|
|
939
|
-
}
|
|
940
|
-
throw ce(17);
|
|
941
|
-
}(this.element), this.length = 0;
|
|
942
|
-
}
|
|
943
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
944
|
-
try {
|
|
945
|
-
return this.sheet.insertRule(t, e2), this.length++, true;
|
|
946
|
-
} catch (e3) {
|
|
947
|
-
return false;
|
|
948
|
-
}
|
|
949
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
950
|
-
this.sheet.deleteRule(e2), this.length--;
|
|
951
|
-
}, e.prototype.getRule = function(e2) {
|
|
952
|
-
var t = this.sheet.cssRules[e2];
|
|
953
|
-
return t && t.cssText ? t.cssText : "";
|
|
954
|
-
}, e;
|
|
955
|
-
}(), Ee = function() {
|
|
956
|
-
function e(e2) {
|
|
957
|
-
this.element = we(e2), this.nodes = this.element.childNodes, this.length = 0;
|
|
958
|
-
}
|
|
959
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
960
|
-
if (e2 <= this.length && e2 >= 0) {
|
|
961
|
-
var n = document.createTextNode(t);
|
|
962
|
-
return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
|
|
963
|
-
}
|
|
964
|
-
return false;
|
|
965
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
966
|
-
this.element.removeChild(this.nodes[e2]), this.length--;
|
|
967
|
-
}, e.prototype.getRule = function(e2) {
|
|
968
|
-
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
969
|
-
}, e;
|
|
970
|
-
}(), Ne = function() {
|
|
971
|
-
function e(e2) {
|
|
972
|
-
this.rules = [], this.length = 0;
|
|
973
|
-
}
|
|
974
|
-
return e.prototype.insertRule = function(e2, t) {
|
|
975
|
-
return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
|
|
976
|
-
}, e.prototype.deleteRule = function(e2) {
|
|
977
|
-
this.rules.splice(e2, 1), this.length--;
|
|
978
|
-
}, e.prototype.getRule = function(e2) {
|
|
979
|
-
return e2 < this.length ? this.rules[e2] : "";
|
|
980
|
-
}, e;
|
|
981
|
-
}(), Pe = y, _e = { isServer: !y, useCSSOMInjection: !v }, Ce = function() {
|
|
982
|
-
function e(e2, n, o) {
|
|
983
|
-
void 0 === e2 && (e2 = N), void 0 === n && (n = {});
|
|
984
|
-
var r = this;
|
|
985
|
-
this.options = __assign(__assign({}, _e), e2), this.gs = n, this.names = new Map(o), this.server = !!e2.isServer, !this.server && y && Pe && (Pe = false, function(e3) {
|
|
986
|
-
for (var t = document.querySelectorAll(me), n2 = 0, o2 = t.length; n2 < o2; n2++) {
|
|
987
|
-
var r2 = t[n2];
|
|
988
|
-
r2 && "active" !== r2.getAttribute(f) && (ge(e3, r2), r2.parentNode && r2.parentNode.removeChild(r2));
|
|
989
|
-
}
|
|
990
|
-
}(this)), se(this, function() {
|
|
991
|
-
return function(e3) {
|
|
992
|
-
for (var t = e3.getTag(), n2 = t.length, o2 = "", r2 = function(n3) {
|
|
993
|
-
var r3 = function(e4) {
|
|
994
|
-
return pe.get(e4);
|
|
995
|
-
}(n3);
|
|
996
|
-
if (void 0 === r3)
|
|
997
|
-
return "continue";
|
|
998
|
-
var s2 = e3.names.get(r3), i = t.getGroup(n3);
|
|
999
|
-
if (void 0 === s2 || 0 === i.length)
|
|
1000
|
-
return "continue";
|
|
1001
|
-
var a = "".concat(f, ".g").concat(n3, '[id="').concat(r3, '"]'), c = "";
|
|
1002
|
-
void 0 !== s2 && s2.forEach(function(e4) {
|
|
1003
|
-
e4.length > 0 && (c += "".concat(e4, ","));
|
|
1004
|
-
}), o2 += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat("/*!sc*/\n");
|
|
1005
|
-
}, s = 0; s < n2; s++)
|
|
1006
|
-
r2(s);
|
|
1007
|
-
return o2;
|
|
1008
|
-
}(r);
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
return e.registerId = function(e2) {
|
|
1012
|
-
return he(e2);
|
|
1013
|
-
}, e.prototype.reconstructWithOptions = function(n, o) {
|
|
1014
|
-
return void 0 === o && (o = true), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1015
|
-
}, e.prototype.allocateGSInstance = function(e2) {
|
|
1016
|
-
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
1017
|
-
}, e.prototype.getTag = function() {
|
|
1018
|
-
return this.tag || (this.tag = (e2 = function(e3) {
|
|
1019
|
-
var t = e3.useCSSOMInjection, n = e3.target;
|
|
1020
|
-
return e3.isServer ? new Ne(n) : t ? new be(n) : new Ee(n);
|
|
1021
|
-
}(this.options), new le(e2)));
|
|
1022
|
-
var e2;
|
|
1023
|
-
}, e.prototype.hasNameForId = function(e2, t) {
|
|
1024
|
-
return this.names.has(e2) && this.names.get(e2).has(t);
|
|
1025
|
-
}, e.prototype.registerName = function(e2, t) {
|
|
1026
|
-
if (he(e2), this.names.has(e2))
|
|
1027
|
-
this.names.get(e2).add(t);
|
|
1028
|
-
else {
|
|
1029
|
-
var n = /* @__PURE__ */ new Set();
|
|
1030
|
-
n.add(t), this.names.set(e2, n);
|
|
1031
|
-
}
|
|
1032
|
-
}, e.prototype.insertRules = function(e2, t, n) {
|
|
1033
|
-
this.registerName(e2, t), this.getTag().insertRules(he(e2), n);
|
|
1034
|
-
}, e.prototype.clearNames = function(e2) {
|
|
1035
|
-
this.names.has(e2) && this.names.get(e2).clear();
|
|
1036
|
-
}, e.prototype.clearRules = function(e2) {
|
|
1037
|
-
this.getTag().clearGroup(he(e2)), this.clearNames(e2);
|
|
1038
|
-
}, e.prototype.clearTag = function() {
|
|
1039
|
-
this.tag = void 0;
|
|
1040
|
-
}, e;
|
|
1041
|
-
}(), Ie = /&/g, Ae = /^\s*\/\/.*$/gm;
|
|
1042
|
-
function Oe(e, t) {
|
|
1043
|
-
return e.map(function(e2) {
|
|
1044
|
-
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) {
|
|
1045
|
-
return "".concat(t, " ").concat(e3);
|
|
1046
|
-
})), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Oe(e2.children, t)), e2;
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
function De(e) {
|
|
1050
|
-
var t, n, o, r = void 0 === e ? N : e, s = r.options, i = void 0 === s ? N : s, a = r.plugins, c = void 0 === a ? E : a, l = function(e2, o2, r2) {
|
|
1051
|
-
return r2 === n || r2.startsWith(n) && r2.endsWith(n) && r2.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
|
|
1052
|
-
}, u = c.slice();
|
|
1053
|
-
u.push(function(e2) {
|
|
1054
|
-
e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(Ie, n).replace(o, l));
|
|
1055
|
-
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1056
|
-
var p2 = function(e2, r2, s2, a2) {
|
|
1057
|
-
void 0 === r2 && (r2 = ""), void 0 === s2 && (s2 = ""), void 0 === a2 && (a2 = "&"), t = a2, n = r2, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1058
|
-
var c2 = e2.replace(Ae, ""), l2 = compile(s2 || r2 ? "".concat(s2, " ").concat(r2, " { ").concat(c2, " }") : c2);
|
|
1059
|
-
i.namespace && (l2 = Oe(l2, i.namespace));
|
|
1060
|
-
var p3 = [];
|
|
1061
|
-
return serialize(l2, middleware(u.concat(rulesheet(function(e3) {
|
|
1062
|
-
return p3.push(e3);
|
|
1063
|
-
})))), p3;
|
|
1064
|
-
};
|
|
1065
|
-
return p2.hash = c.length ? c.reduce(function(e2, t2) {
|
|
1066
|
-
return t2.name || ce(15), k(e2, t2.name);
|
|
1067
|
-
}, 5381).toString() : "", p2;
|
|
1068
|
-
}
|
|
1069
|
-
var Re = new Ce(), Te = De(), ke = React__default.createContext({ shouldForwardProp: void 0, styleSheet: Re, stylis: Te });
|
|
1070
|
-
ke.Consumer;
|
|
1071
|
-
var xe = React__default.createContext(void 0);
|
|
1072
|
-
function Ve() {
|
|
1073
|
-
return useContext(ke);
|
|
1074
|
-
}
|
|
1075
|
-
function Fe(e) {
|
|
1076
|
-
var t = useState(e.stylisPlugins), n = t[0], r = t[1], c = Ve().styleSheet, l = useMemo(function() {
|
|
1077
|
-
var t2 = c;
|
|
1078
|
-
return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
|
|
1079
|
-
}, [e.disableCSSOMInjection, e.sheet, e.target, c]), u = useMemo(function() {
|
|
1080
|
-
return De({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
|
|
1081
|
-
}, [e.enableVendorPrefixes, e.namespace, n]);
|
|
1082
|
-
useEffect(function() {
|
|
1083
|
-
p(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
1084
|
-
}, [e.stylisPlugins]);
|
|
1085
|
-
var d = useMemo(function() {
|
|
1086
|
-
return { shouldForwardProp: e.shouldForwardProp, styleSheet: l, stylis: u };
|
|
1087
|
-
}, [e.shouldForwardProp, l, u]);
|
|
1088
|
-
return React__default.createElement(ke.Provider, { value: d }, React__default.createElement(xe.Provider, { value: u }, e.children));
|
|
1089
|
-
}
|
|
1090
|
-
var Me = function() {
|
|
1091
|
-
function e(e2, t) {
|
|
1092
|
-
var n = this;
|
|
1093
|
-
this.inject = function(e3, t2) {
|
|
1094
|
-
void 0 === t2 && (t2 = Te);
|
|
1095
|
-
var o = n.name + t2.hash;
|
|
1096
|
-
e3.hasNameForId(n.id, o) || e3.insertRules(n.id, o, t2(n.rules, o, "@keyframes"));
|
|
1097
|
-
}, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, se(this, function() {
|
|
1098
|
-
throw ce(12, String(n.name));
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
return e.prototype.getName = function(e2) {
|
|
1102
|
-
return void 0 === e2 && (e2 = Te), this.name + e2.hash;
|
|
1103
|
-
}, e;
|
|
1104
|
-
}(), $e = function(e) {
|
|
1105
|
-
return e >= "A" && e <= "Z";
|
|
1106
|
-
};
|
|
1107
|
-
function ze(e) {
|
|
1108
|
-
for (var t = "", n = 0; n < e.length; n++) {
|
|
1109
|
-
var o = e[n];
|
|
1110
|
-
if (1 === n && "-" === o && "-" === e[0])
|
|
1111
|
-
return e;
|
|
1112
|
-
$e(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1113
|
-
}
|
|
1114
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1115
|
-
}
|
|
1116
|
-
var Be = function(e) {
|
|
1117
|
-
return null == e || false === e || "" === e;
|
|
1118
|
-
}, Le = function(t) {
|
|
1119
|
-
var n, o, r = [];
|
|
1120
|
-
for (var s in t) {
|
|
1121
|
-
var i = t[s];
|
|
1122
|
-
t.hasOwnProperty(s) && !Be(i) && (Array.isArray(i) && i.isCss || Q(i) ? r.push("".concat(ze(s), ":"), i, ";") : oe(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Le(i), false), ["}"], false)) : r.push("".concat(ze(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
|
|
1123
|
-
}
|
|
1124
|
-
return r;
|
|
1125
|
-
};
|
|
1126
|
-
function Ge(e, t, n, o) {
|
|
1127
|
-
if (Be(e))
|
|
1128
|
-
return [];
|
|
1129
|
-
if (ee(e))
|
|
1130
|
-
return [".".concat(e.styledComponentId)];
|
|
1131
|
-
if (Q(e)) {
|
|
1132
|
-
if (!Q(s = e) || s.prototype && s.prototype.isReactComponent || !t)
|
|
1133
|
-
return [e];
|
|
1134
|
-
var r = e(t);
|
|
1135
|
-
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof Me || oe(r) || null === r || console.error("".concat(V(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.")), Ge(r, t, n, o);
|
|
1136
|
-
}
|
|
1137
|
-
var s;
|
|
1138
|
-
return e instanceof Me ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : oe(e) ? Le(e) : Array.isArray(e) ? Array.prototype.concat.apply(E, e.map(function(e2) {
|
|
1139
|
-
return Ge(e2, t, n, o);
|
|
1140
|
-
})) : [e.toString()];
|
|
1141
|
-
}
|
|
1142
|
-
function Ye(e) {
|
|
1143
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1144
|
-
var n = e[t];
|
|
1145
|
-
if (Q(n) && !ee(n))
|
|
1146
|
-
return false;
|
|
1147
|
-
}
|
|
1148
|
-
return true;
|
|
1149
|
-
}
|
|
1150
|
-
var We = j("6.0.8"), qe = function() {
|
|
1151
|
-
function e(e2, t, n) {
|
|
1152
|
-
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ye(e2), this.componentId = t, this.baseHash = k(We, t), this.baseStyle = n, Ce.registerId(t);
|
|
1153
|
-
}
|
|
1154
|
-
return e.prototype.generateAndInjectStyles = function(e2, t, n) {
|
|
1155
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
|
|
1156
|
-
if (this.isStatic && !n.hash)
|
|
1157
|
-
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId))
|
|
1158
|
-
o = te(o, this.staticRulesId);
|
|
1159
|
-
else {
|
|
1160
|
-
var r = ne(Ge(this.rules, e2, t, n)), s = R(k(this.baseHash, r) >>> 0);
|
|
1161
|
-
if (!t.hasNameForId(this.componentId, s)) {
|
|
1162
|
-
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1163
|
-
t.insertRules(this.componentId, s, i);
|
|
1164
|
-
}
|
|
1165
|
-
o = te(o, s), this.staticRulesId = s;
|
|
1166
|
-
}
|
|
1167
|
-
else {
|
|
1168
|
-
for (var a = k(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1169
|
-
var u = this.rules[l];
|
|
1170
|
-
if ("string" == typeof u)
|
|
1171
|
-
c += u, "production" !== process.env.NODE_ENV && (a = k(a, u));
|
|
1172
|
-
else if (u) {
|
|
1173
|
-
var p2 = ne(Ge(u, e2, t, n));
|
|
1174
|
-
a = k(a, p2 + l), c += p2;
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
if (c) {
|
|
1178
|
-
var d = R(a >>> 0);
|
|
1179
|
-
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = te(o, d);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
return o;
|
|
1183
|
-
}, e;
|
|
1184
|
-
}(), He = React__default.createContext(void 0);
|
|
1185
|
-
He.Consumer;
|
|
1186
|
-
var Ze = {}, Ke = /* @__PURE__ */ new Set();
|
|
1187
|
-
function Qe(e, r, s) {
|
|
1188
|
-
var i = ee(e), a = e, c = !F(e), p2 = r.attrs, d = void 0 === p2 ? E : p2, h = r.componentId, f2 = void 0 === h ? function(e2, t) {
|
|
1189
|
-
var n = "string" != typeof e2 ? "sc" : A(e2);
|
|
1190
|
-
Ze[n] = (Ze[n] || 0) + 1;
|
|
1191
|
-
var o = "".concat(n, "-").concat(x("6.0.8" + n + Ze[n]));
|
|
1192
|
-
return t ? "".concat(t, "-").concat(o) : o;
|
|
1193
|
-
}(r.displayName, r.parentComponentId) : h, m = r.displayName, y2 = void 0 === m ? function(e2) {
|
|
1194
|
-
return F(e2) ? "styled.".concat(e2) : "Styled(".concat(V(e2), ")");
|
|
1195
|
-
}(e) : m, v2 = r.displayName && r.componentId ? "".concat(A(r.displayName), "-").concat(r.componentId) : r.componentId || f2, g = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, S2 = r.shouldForwardProp;
|
|
1196
|
-
if (i && a.shouldForwardProp) {
|
|
1197
|
-
var w2 = a.shouldForwardProp;
|
|
1198
|
-
if (r.shouldForwardProp) {
|
|
1199
|
-
var C2 = r.shouldForwardProp;
|
|
1200
|
-
S2 = function(e2, t) {
|
|
1201
|
-
return w2(e2, t) && C2(e2, t);
|
|
1202
|
-
};
|
|
1203
|
-
} else
|
|
1204
|
-
S2 = w2;
|
|
1205
|
-
}
|
|
1206
|
-
var I2 = new qe(s, v2, i ? a.componentStyle : void 0);
|
|
1207
|
-
function O2(e2, r2) {
|
|
1208
|
-
return function(e3, r3, s2) {
|
|
1209
|
-
var i2 = e3.attrs, a2 = e3.componentStyle, c2 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = React__default.useContext(He), m2 = Ve(), y3 = e3.shouldForwardProp || m2.shouldForwardProp;
|
|
1210
|
-
"production" !== process.env.NODE_ENV && useDebugValue(d2);
|
|
1211
|
-
var v3 = function(e4, n, o) {
|
|
1212
|
-
for (var r4, s3 = __assign(__assign({}, n), { className: void 0, theme: o }), i3 = 0; i3 < e4.length; i3 += 1) {
|
|
1213
|
-
var a3 = Q(r4 = e4[i3]) ? r4(s3) : r4;
|
|
1214
|
-
for (var c3 in a3)
|
|
1215
|
-
s3[c3] = "className" === c3 ? te(s3[c3], a3[c3]) : "style" === c3 ? __assign(__assign({}, s3[c3]), a3[c3]) : a3[c3];
|
|
1216
|
-
}
|
|
1217
|
-
return n.className && (s3.className = te(s3.className, n.className)), s3;
|
|
1218
|
-
}(i2, r3, P(r3, f3, c2) || N), g2 = v3.as || h2, S3 = {};
|
|
1219
|
-
for (var w3 in v3)
|
|
1220
|
-
void 0 === v3[w3] || "$" === w3[0] || "as" === w3 || "theme" === w3 || ("forwardedAs" === w3 ? S3.as = v3.forwardedAs : y3 && !y3(w3, g2) || (S3[w3] = v3[w3], y3 || "development" !== process.env.NODE_ENV || isPropValid(w3) || Ke.has(w3) || !_.has(g2) || (Ke.add(w3), console.warn('styled-components: it looks like an unknown prop "'.concat(w3, '" 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.)')))));
|
|
1221
|
-
var b2 = function(e4, t) {
|
|
1222
|
-
var n = Ve(), o = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1223
|
-
return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
|
|
1224
|
-
}(a2, v3);
|
|
1225
|
-
"production" !== process.env.NODE_ENV && e3.warnTooManyClasses && e3.warnTooManyClasses(b2);
|
|
1226
|
-
var E2 = te(p3, d2);
|
|
1227
|
-
return b2 && (E2 += " " + b2), v3.className && (E2 += " " + v3.className), S3[F(g2) && !_.has(g2) ? "class" : "className"] = E2, S3.ref = s2, createElement(g2, S3);
|
|
1228
|
-
}(D2, e2, r2);
|
|
1229
|
-
}
|
|
1230
|
-
"production" !== process.env.NODE_ENV && (O2.displayName = y2);
|
|
1231
|
-
var D2 = React__default.forwardRef(O2);
|
|
1232
|
-
return D2.attrs = g, D2.componentStyle = I2, D2.shouldForwardProp = S2, "production" !== process.env.NODE_ENV && (D2.displayName = y2), D2.foldedComponentIds = i ? te(a.foldedComponentIds, a.styledComponentId) : "", D2.styledComponentId = v2, D2.target = i ? a.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
|
|
1233
|
-
return this._foldedDefaultProps;
|
|
1234
|
-
}, set: function(e2) {
|
|
1235
|
-
this._foldedDefaultProps = i ? function(e3) {
|
|
1236
|
-
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1237
|
-
t[n - 1] = arguments[n];
|
|
1238
|
-
for (var o = 0, r2 = t; o < r2.length; o++)
|
|
1239
|
-
re$1(e3, r2[o], true);
|
|
1240
|
-
return e3;
|
|
1241
|
-
}({}, a.defaultProps, e2) : e2;
|
|
1242
|
-
} }), "production" !== process.env.NODE_ENV && (b(y2, v2), D2.warnTooManyClasses = function(e2, t) {
|
|
1243
|
-
var n = {}, o = false;
|
|
1244
|
-
return function(r2) {
|
|
1245
|
-
if (!o && (n[r2] = true, Object.keys(n).length >= 200)) {
|
|
1246
|
-
var s2 = t ? ' with the id of "'.concat(t, '"') : "";
|
|
1247
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s2, ".\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 />"), o = true, n = {};
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
}(y2, v2)), se(D2, function() {
|
|
1251
|
-
return ".".concat(D2.styledComponentId);
|
|
1252
|
-
}), c && K(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
|
|
1253
|
-
}
|
|
1254
|
-
function et(e, t) {
|
|
1255
|
-
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1)
|
|
1256
|
-
n.push(t[o], e[o + 1]);
|
|
1257
|
-
return n;
|
|
1258
|
-
}
|
|
1259
|
-
var tt = function(e) {
|
|
1260
|
-
return Object.assign(e, { isCss: true });
|
|
1261
|
-
};
|
|
1262
|
-
function nt(t) {
|
|
1263
|
-
for (var n = [], o = 1; o < arguments.length; o++)
|
|
1264
|
-
n[o - 1] = arguments[o];
|
|
1265
|
-
if (Q(t) || oe(t)) {
|
|
1266
|
-
var r = t;
|
|
1267
|
-
return tt(Ge(et(E, __spreadArray([r], n, true))));
|
|
1268
|
-
}
|
|
1269
|
-
var s = t;
|
|
1270
|
-
return 0 === n.length && 1 === s.length && "string" == typeof s[0] ? Ge(s) : tt(Ge(et(s, n)));
|
|
1271
|
-
}
|
|
1272
|
-
function ot(n, o, r) {
|
|
1273
|
-
if (void 0 === r && (r = N), !o)
|
|
1274
|
-
throw ce(1, o);
|
|
1275
|
-
var s = function(t) {
|
|
1276
|
-
for (var s2 = [], i = 1; i < arguments.length; i++)
|
|
1277
|
-
s2[i - 1] = arguments[i];
|
|
1278
|
-
return n(o, r, nt.apply(void 0, __spreadArray([t], s2, false)));
|
|
1279
|
-
};
|
|
1280
|
-
return s.attrs = function(e) {
|
|
1281
|
-
return ot(n, o, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
|
|
1282
|
-
}, s.withConfig = function(e) {
|
|
1283
|
-
return ot(n, o, __assign(__assign({}, r), e));
|
|
1284
|
-
}, s;
|
|
1285
|
-
}
|
|
1286
|
-
var rt = function(e) {
|
|
1287
|
-
return ot(Qe, e);
|
|
1288
|
-
}, st = rt;
|
|
1289
|
-
_.forEach(function(e) {
|
|
1290
|
-
st[e] = rt(e);
|
|
1291
|
-
});
|
|
1292
|
-
function ct(t) {
|
|
1293
|
-
for (var n = [], o = 1; o < arguments.length; o++)
|
|
1294
|
-
n[o - 1] = arguments[o];
|
|
1295
|
-
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1296
|
-
var r = ne(nt.apply(void 0, __spreadArray([t], n, false))), s = x(r);
|
|
1297
|
-
return new Me(s, r);
|
|
1298
|
-
}
|
|
1299
|
-
"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");
|
|
1300
|
-
var dt = "__sc-".concat(f, "__");
|
|
1301
|
-
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[dt] || (window[dt] = 0), 1 === window[dt] && 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[dt] += 1);
|
|
1302
|
-
const createExtraScopePlugin = (scope) => {
|
|
1303
|
-
const plugin = (element, index, childEls) => {
|
|
1304
|
-
if (element.type === "rule") {
|
|
1305
|
-
element.props = element.props.map((value) => {
|
|
1306
|
-
const containerMatch = `div[id^='eds-']`;
|
|
1307
|
-
return `${scope} ${value}, ${containerMatch} ${value}`;
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
};
|
|
1311
|
-
return plugin;
|
|
1312
|
-
};
|
|
1313
|
-
const StyleProvider = ({ scope, children }) => {
|
|
1314
|
-
const stylisPlugins = scope ? [createExtraScopePlugin(`#${scope}`)] : [];
|
|
1315
|
-
return /* @__PURE__ */ jsx(Fe, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
|
|
1316
|
-
};
|
|
1317
|
-
function _typeof(o) {
|
|
1318
|
-
"@babel/helpers - typeof";
|
|
1319
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
1320
|
-
return typeof o2;
|
|
1321
|
-
} : function(o2) {
|
|
1322
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
1323
|
-
}, _typeof(o);
|
|
1324
|
-
}
|
|
1325
|
-
function _toPrimitive(input, hint) {
|
|
1326
|
-
if (_typeof(input) !== "object" || input === null)
|
|
1327
|
-
return input;
|
|
1328
|
-
var prim = input[Symbol.toPrimitive];
|
|
1329
|
-
if (prim !== void 0) {
|
|
1330
|
-
var res = prim.call(input, hint || "default");
|
|
1331
|
-
if (_typeof(res) !== "object")
|
|
1332
|
-
return res;
|
|
1333
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1334
|
-
}
|
|
1335
|
-
return (hint === "string" ? String : Number)(input);
|
|
1336
|
-
}
|
|
1337
|
-
function _toPropertyKey(arg) {
|
|
1338
|
-
var key = _toPrimitive(arg, "string");
|
|
1339
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
1340
|
-
}
|
|
1341
|
-
function _defineProperty(obj, key, value) {
|
|
1342
|
-
key = _toPropertyKey(key);
|
|
1343
|
-
if (key in obj) {
|
|
1344
|
-
Object.defineProperty(obj, key, {
|
|
1345
|
-
value,
|
|
1346
|
-
enumerable: true,
|
|
1347
|
-
configurable: true,
|
|
1348
|
-
writable: true
|
|
1349
|
-
});
|
|
1350
|
-
} else {
|
|
1351
|
-
obj[key] = value;
|
|
1352
|
-
}
|
|
1353
|
-
return obj;
|
|
1354
|
-
}
|
|
1355
|
-
function ownKeys(e, r) {
|
|
1356
|
-
var t = Object.keys(e);
|
|
1357
|
-
if (Object.getOwnPropertySymbols) {
|
|
1358
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
1359
|
-
r && (o = o.filter(function(r2) {
|
|
1360
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
1361
|
-
})), t.push.apply(t, o);
|
|
1362
|
-
}
|
|
1363
|
-
return t;
|
|
1364
|
-
}
|
|
1365
|
-
function _objectSpread2(e) {
|
|
1366
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
1367
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
1368
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
1369
|
-
_defineProperty(e, r2, t[r2]);
|
|
1370
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
1371
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
return e;
|
|
1375
|
-
}
|
|
1376
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1377
|
-
if (source == null)
|
|
1378
|
-
return {};
|
|
1379
|
-
var target = {};
|
|
1380
|
-
var sourceKeys = Object.keys(source);
|
|
1381
|
-
var key, i;
|
|
1382
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1383
|
-
key = sourceKeys[i];
|
|
1384
|
-
if (excluded.indexOf(key) >= 0)
|
|
1385
|
-
continue;
|
|
1386
|
-
target[key] = source[key];
|
|
1387
|
-
}
|
|
1388
|
-
return target;
|
|
1389
|
-
}
|
|
1390
|
-
function _objectWithoutProperties(source, excluded) {
|
|
1391
|
-
if (source == null)
|
|
1392
|
-
return {};
|
|
1393
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
1394
|
-
var key, i;
|
|
1395
|
-
if (Object.getOwnPropertySymbols) {
|
|
1396
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
1397
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
1398
|
-
key = sourceSymbolKeys[i];
|
|
1399
|
-
if (excluded.indexOf(key) >= 0)
|
|
1400
|
-
continue;
|
|
1401
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
1402
|
-
continue;
|
|
1403
|
-
target[key] = source[key];
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
return target;
|
|
1407
|
-
}
|
|
1408
|
-
var clickbounds = {
|
|
1409
|
-
jumbo__base: "88px",
|
|
1410
|
-
default__base: "48px",
|
|
1411
|
-
default__input: "56px",
|
|
1412
|
-
compact__standard: "32px",
|
|
1413
|
-
compact__input: "44px"
|
|
1414
|
-
};
|
|
1415
|
-
var colors$1 = {
|
|
1416
|
-
text: {
|
|
1417
|
-
static_icons__default: {
|
|
1418
|
-
hex: "#3d3d3d",
|
|
1419
|
-
hsla: "hsla(0, 0%, 23.9%, 1)",
|
|
1420
|
-
rgba: "var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"
|
|
1421
|
-
},
|
|
1422
|
-
static_icons__secondary: {
|
|
1423
|
-
hex: "#565656",
|
|
1424
|
-
hsla: "hsla(0, 0%, 33.7%, 1)",
|
|
1425
|
-
rgba: "var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"
|
|
1426
|
-
},
|
|
1427
|
-
static_icons__tertiary: {
|
|
1428
|
-
hex: "#6f6f6f",
|
|
1429
|
-
hsla: "hsla(0, 0%, 43.5%, 1)",
|
|
1430
|
-
rgba: "var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"
|
|
1431
|
-
},
|
|
1432
|
-
static_icons__primary_white: {
|
|
1433
|
-
hex: "#ffffff",
|
|
1434
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1435
|
-
rgba: "var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"
|
|
1436
|
-
}
|
|
1437
|
-
},
|
|
1438
|
-
ui: {
|
|
1439
|
-
background__default: {
|
|
1440
|
-
hex: "#ffffff",
|
|
1441
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1442
|
-
rgba: "var(--eds_ui_background__default, rgba(255, 255, 255, 1))"
|
|
1443
|
-
},
|
|
1444
|
-
background__semitransparent: {
|
|
1445
|
-
hex: "#ffffff",
|
|
1446
|
-
hsla: "hsla(0, 0%, 100%, 0.2)",
|
|
1447
|
-
rgba: "var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"
|
|
1448
|
-
},
|
|
1449
|
-
background__light: {
|
|
1450
|
-
hex: "#f7f7f7",
|
|
1451
|
-
hsla: "hsla(0, 0%, 96.9%, 1)",
|
|
1452
|
-
rgba: "var(--eds_ui_background__light, rgba(247, 247, 247, 1))"
|
|
1453
|
-
},
|
|
1454
|
-
background__scrim: {
|
|
1455
|
-
hex: "#000000",
|
|
1456
|
-
hsla: "hsla(0, 0%, 0%, 0.4)",
|
|
1457
|
-
rgba: "var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"
|
|
1458
|
-
},
|
|
1459
|
-
background__overlay: {
|
|
1460
|
-
hex: "#000000",
|
|
1461
|
-
hsla: "hsla(0, 0%, 0%, 0.8)",
|
|
1462
|
-
rgba: "var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"
|
|
1463
|
-
},
|
|
1464
|
-
background__medium: {
|
|
1465
|
-
hex: "#dcdcdc",
|
|
1466
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
1467
|
-
rgba: "var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"
|
|
1468
|
-
},
|
|
1469
|
-
background__info: {
|
|
1470
|
-
hex: "#d5eaf4",
|
|
1471
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
1472
|
-
rgba: "var(--eds_ui_background__info, rgba(213, 234, 244, 1))"
|
|
1473
|
-
},
|
|
1474
|
-
background__warning: {
|
|
1475
|
-
hex: "#ffe7d6",
|
|
1476
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
1477
|
-
rgba: "var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"
|
|
1478
|
-
},
|
|
1479
|
-
background__danger: {
|
|
1480
|
-
hex: "#ffc1c1",
|
|
1481
|
-
hsla: "hsla(0, 100%, 87.8%, 1)",
|
|
1482
|
-
rgba: "var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
infographic: {
|
|
1486
|
-
substitute__purple_berry: {
|
|
1487
|
-
hex: "#8c1159",
|
|
1488
|
-
hsla: "hsla(325, 78.3%, 30.8%, 1)",
|
|
1489
|
-
rgba: "var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"
|
|
1490
|
-
},
|
|
1491
|
-
substitute__pink_rose: {
|
|
1492
|
-
hex: "#e24973",
|
|
1493
|
-
hsla: "hsla(344, 72.5%, 58.6%, 1)",
|
|
1494
|
-
rgba: "var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"
|
|
1495
|
-
},
|
|
1496
|
-
substitute__pink_salmon: {
|
|
1497
|
-
hex: "#ff92a8",
|
|
1498
|
-
hsla: "hsla(348, 100%, 78.6%, 1)",
|
|
1499
|
-
rgba: "var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"
|
|
1500
|
-
},
|
|
1501
|
-
substitute__green_cucumber: {
|
|
1502
|
-
hex: "#005f57",
|
|
1503
|
-
hsla: "hsla(175, 100%, 18.6%, 1)",
|
|
1504
|
-
rgba: "var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"
|
|
1505
|
-
},
|
|
1506
|
-
substitute__green_succulent: {
|
|
1507
|
-
hex: "#00977b",
|
|
1508
|
-
hsla: "hsla(169, 100%, 29.6%, 1)",
|
|
1509
|
-
rgba: "var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"
|
|
1510
|
-
},
|
|
1511
|
-
substitute__green_mint: {
|
|
1512
|
-
hex: "#40d38f",
|
|
1513
|
-
hsla: "hsla(152, 62.6%, 53.9%, 1)",
|
|
1514
|
-
rgba: "var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"
|
|
1515
|
-
},
|
|
1516
|
-
substitute__blue_ocean: {
|
|
1517
|
-
hex: "#004088",
|
|
1518
|
-
hsla: "hsla(212, 100%, 26.7%, 1)",
|
|
1519
|
-
rgba: "var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"
|
|
1520
|
-
},
|
|
1521
|
-
substitute__blue_overcast: {
|
|
1522
|
-
hex: "#0084c4",
|
|
1523
|
-
hsla: "hsla(200, 100%, 38.4%, 1)",
|
|
1524
|
-
rgba: "var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"
|
|
1525
|
-
},
|
|
1526
|
-
substitute__blue_sky: {
|
|
1527
|
-
hex: "#52c0ff",
|
|
1528
|
-
hsla: "hsla(202, 100%, 66.1%, 1)",
|
|
1529
|
-
rgba: "var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"
|
|
1530
|
-
},
|
|
1531
|
-
primary__moss_green_100: {
|
|
1532
|
-
hex: "#007079",
|
|
1533
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
1534
|
-
rgba: "var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"
|
|
1535
|
-
},
|
|
1536
|
-
primary__moss_green_55: {
|
|
1537
|
-
hex: "#73b1b5",
|
|
1538
|
-
hsla: "hsla(184, 30.8%, 58%, 1)",
|
|
1539
|
-
rgba: "var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"
|
|
1540
|
-
},
|
|
1541
|
-
primary__moss_green_34: {
|
|
1542
|
-
hex: "#a8ced1",
|
|
1543
|
-
hsla: "hsla(184, 30.8%, 73.9%, 1)",
|
|
1544
|
-
rgba: "var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"
|
|
1545
|
-
},
|
|
1546
|
-
primary__moss_green_21: {
|
|
1547
|
-
hex: "#c9e0e2",
|
|
1548
|
-
hsla: "hsla(185, 30.1%, 83.7%, 1)",
|
|
1549
|
-
rgba: "var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"
|
|
1550
|
-
},
|
|
1551
|
-
primary__moss_green_13: {
|
|
1552
|
-
hex: "#deedee",
|
|
1553
|
-
hsla: "hsla(184, 32%, 90.2%, 1)",
|
|
1554
|
-
rgba: "var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"
|
|
1555
|
-
},
|
|
1556
|
-
primary__energy_red_100: {
|
|
1557
|
-
hex: "#eb0037",
|
|
1558
|
-
hsla: "hsla(346, 100%, 46.1%, 1)",
|
|
1559
|
-
rgba: "var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"
|
|
1560
|
-
},
|
|
1561
|
-
primary__energy_red_55: {
|
|
1562
|
-
hex: "#ff7d98",
|
|
1563
|
-
hsla: "hsla(348, 100%, 74.5%, 1)",
|
|
1564
|
-
rgba: "var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"
|
|
1565
|
-
},
|
|
1566
|
-
primary__energy_red_34: {
|
|
1567
|
-
hex: "#ffaebf",
|
|
1568
|
-
hsla: "hsla(347, 100%, 84.1%, 1)",
|
|
1569
|
-
rgba: "var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"
|
|
1570
|
-
},
|
|
1571
|
-
primary__energy_red_21: {
|
|
1572
|
-
hex: "#ffcdd7",
|
|
1573
|
-
hsla: "hsla(348, 100%, 90.2%, 1)",
|
|
1574
|
-
rgba: "var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"
|
|
1575
|
-
},
|
|
1576
|
-
primary__energy_red_13: {
|
|
1577
|
-
hex: "#ffe0e7",
|
|
1578
|
-
hsla: "hsla(346, 100%, 93.9%, 1)",
|
|
1579
|
-
rgba: "var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"
|
|
1580
|
-
},
|
|
1581
|
-
primary__weathered_red: {
|
|
1582
|
-
hex: "#7d0023",
|
|
1583
|
-
hsla: "hsla(343, 100%, 24.5%, 1)",
|
|
1584
|
-
rgba: "var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"
|
|
1585
|
-
},
|
|
1586
|
-
primary__slate_blue: {
|
|
1587
|
-
hex: "#243746",
|
|
1588
|
-
hsla: "hsla(206, 32.1%, 20.8%, 1)",
|
|
1589
|
-
rgba: "var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"
|
|
1590
|
-
},
|
|
1591
|
-
primary__spruce_wood: {
|
|
1592
|
-
hex: "#ffe7d6",
|
|
1593
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
1594
|
-
rgba: "var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"
|
|
1595
|
-
},
|
|
1596
|
-
primary__mist_blue: {
|
|
1597
|
-
hex: "#d5eaf4",
|
|
1598
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
1599
|
-
rgba: "var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"
|
|
1600
|
-
},
|
|
1601
|
-
primary__lichen_green: {
|
|
1602
|
-
hex: "#e6faec",
|
|
1603
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
1604
|
-
rgba: "var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"
|
|
1605
|
-
}
|
|
1606
|
-
},
|
|
1607
|
-
logo: {
|
|
1608
|
-
fill_positive: {
|
|
1609
|
-
hex: "#eb0037",
|
|
1610
|
-
hsla: "hsla(346, 100%, 46.1%, 1)",
|
|
1611
|
-
rgba: "var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"
|
|
1612
|
-
},
|
|
1613
|
-
fill_negative: {
|
|
1614
|
-
hex: "#ffffff",
|
|
1615
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1616
|
-
rgba: "var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
interactive: {
|
|
1620
|
-
primary__selected_highlight: {
|
|
1621
|
-
hex: "#e6faec",
|
|
1622
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
1623
|
-
rgba: "var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"
|
|
1624
|
-
},
|
|
1625
|
-
primary__selected_hover: {
|
|
1626
|
-
hex: "#c3f3d2",
|
|
1627
|
-
hsla: "hsla(139, 66.7%, 85.9%, 1)",
|
|
1628
|
-
rgba: "var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"
|
|
1629
|
-
},
|
|
1630
|
-
primary__resting: {
|
|
1631
|
-
hex: "#007079",
|
|
1632
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
1633
|
-
rgba: "var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"
|
|
1634
|
-
},
|
|
1635
|
-
primary__hover: {
|
|
1636
|
-
hex: "#004f55",
|
|
1637
|
-
hsla: "hsla(184, 100%, 16.7%, 1)",
|
|
1638
|
-
rgba: "var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"
|
|
1639
|
-
},
|
|
1640
|
-
primary__hover_alt: {
|
|
1641
|
-
hex: "#deedee",
|
|
1642
|
-
hsla: "hsla(184, 32%, 90.2%, 1)",
|
|
1643
|
-
rgba: "var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"
|
|
1644
|
-
},
|
|
1645
|
-
secondary__highlight: {
|
|
1646
|
-
hex: "#d5eaf4",
|
|
1647
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
1648
|
-
rgba: "var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"
|
|
1649
|
-
},
|
|
1650
|
-
secondary__resting: {
|
|
1651
|
-
hex: "#243746",
|
|
1652
|
-
hsla: "hsla(206, 32.1%, 20.8%, 1)",
|
|
1653
|
-
rgba: "var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"
|
|
1654
|
-
},
|
|
1655
|
-
secondary__link_hover: {
|
|
1656
|
-
hex: "#17242f",
|
|
1657
|
-
hsla: "hsla(208, 34.3%, 13.7%, 1)",
|
|
1658
|
-
rgba: "var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"
|
|
1659
|
-
},
|
|
1660
|
-
danger__highlight: {
|
|
1661
|
-
hex: "#ffc1c1",
|
|
1662
|
-
hsla: "hsla(0, 100%, 87.8%, 1)",
|
|
1663
|
-
rgba: "var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"
|
|
1664
|
-
},
|
|
1665
|
-
danger__resting: {
|
|
1666
|
-
hex: "#eb0000",
|
|
1667
|
-
hsla: "hsla(0, 100%, 46.1%, 1)",
|
|
1668
|
-
rgba: "var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"
|
|
1669
|
-
},
|
|
1670
|
-
danger__hover: {
|
|
1671
|
-
hex: "#b30d2f",
|
|
1672
|
-
hsla: "hsla(348, 86.5%, 37.6%, 1)",
|
|
1673
|
-
rgba: "var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"
|
|
1674
|
-
},
|
|
1675
|
-
danger__text: {
|
|
1676
|
-
hex: "#b30d2f",
|
|
1677
|
-
hsla: "hsla(348, 86.5%, 37.6%, 1)",
|
|
1678
|
-
rgba: "var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"
|
|
1679
|
-
},
|
|
1680
|
-
warning__highlight: {
|
|
1681
|
-
hex: "#ffe7d6",
|
|
1682
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
1683
|
-
rgba: "var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"
|
|
1684
|
-
},
|
|
1685
|
-
warning__resting: {
|
|
1686
|
-
hex: "#ff9200",
|
|
1687
|
-
hsla: "hsla(34, 100%, 50%, 1)",
|
|
1688
|
-
rgba: "var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"
|
|
1689
|
-
},
|
|
1690
|
-
warning__hover: {
|
|
1691
|
-
hex: "#ad6200",
|
|
1692
|
-
hsla: "hsla(34, 100%, 33.9%, 1)",
|
|
1693
|
-
rgba: "var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"
|
|
1694
|
-
},
|
|
1695
|
-
warning__text: {
|
|
1696
|
-
hex: "#ad6200",
|
|
1697
|
-
hsla: "hsla(34, 100%, 33.9%, 1)",
|
|
1698
|
-
rgba: "var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"
|
|
1699
|
-
},
|
|
1700
|
-
success__highlight: {
|
|
1701
|
-
hex: "#e6faec",
|
|
1702
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
1703
|
-
rgba: "var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"
|
|
1704
|
-
},
|
|
1705
|
-
success__resting: {
|
|
1706
|
-
hex: "#4bb748",
|
|
1707
|
-
hsla: "hsla(118, 43.5%, 50%, 1)",
|
|
1708
|
-
rgba: "var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"
|
|
1709
|
-
},
|
|
1710
|
-
success__hover: {
|
|
1711
|
-
hex: "#358132",
|
|
1712
|
-
hsla: "hsla(118, 44.1%, 35.1%, 1)",
|
|
1713
|
-
rgba: "var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"
|
|
1714
|
-
},
|
|
1715
|
-
success__text: {
|
|
1716
|
-
hex: "#358132",
|
|
1717
|
-
hsla: "hsla(118, 44.1%, 35.1%, 1)",
|
|
1718
|
-
rgba: "var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"
|
|
1719
|
-
},
|
|
1720
|
-
table__cell__fill_resting: {
|
|
1721
|
-
hex: "#ffffff",
|
|
1722
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1723
|
-
rgba: "var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"
|
|
1724
|
-
},
|
|
1725
|
-
table__cell__fill_hover: {
|
|
1726
|
-
hex: "#eaeaea",
|
|
1727
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
1728
|
-
rgba: "var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"
|
|
1729
|
-
},
|
|
1730
|
-
table__cell__fill_activated: {
|
|
1731
|
-
hex: "#e6faec",
|
|
1732
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
1733
|
-
rgba: "var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"
|
|
1734
|
-
},
|
|
1735
|
-
table__header__fill_activated: {
|
|
1736
|
-
hex: "#eaeaea",
|
|
1737
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
1738
|
-
rgba: "var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"
|
|
1739
|
-
},
|
|
1740
|
-
table__header__fill_hover: {
|
|
1741
|
-
hex: "#dcdcdc",
|
|
1742
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
1743
|
-
rgba: "var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"
|
|
1744
|
-
},
|
|
1745
|
-
table__header__fill_resting: {
|
|
1746
|
-
hex: "#f7f7f7",
|
|
1747
|
-
hsla: "hsla(0, 0%, 96.9%, 1)",
|
|
1748
|
-
rgba: "var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"
|
|
1749
|
-
},
|
|
1750
|
-
disabled__text: {
|
|
1751
|
-
hex: "#bebebe",
|
|
1752
|
-
hsla: "hsla(0, 0%, 74.5%, 1)",
|
|
1753
|
-
rgba: "var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"
|
|
1754
|
-
},
|
|
1755
|
-
text_highlight: {
|
|
1756
|
-
hex: "#d5eaf4",
|
|
1757
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
1758
|
-
rgba: "var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"
|
|
1759
|
-
},
|
|
1760
|
-
focus: {
|
|
1761
|
-
hex: "#007079",
|
|
1762
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
1763
|
-
rgba: "var(--eds_interactive__focus, rgba(0, 112, 121, 1))"
|
|
1764
|
-
},
|
|
1765
|
-
disabled__border: {
|
|
1766
|
-
hex: "#dcdcdc",
|
|
1767
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
1768
|
-
rgba: "var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"
|
|
1769
|
-
},
|
|
1770
|
-
disabled__fill: {
|
|
1771
|
-
hex: "#eaeaea",
|
|
1772
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
1773
|
-
rgba: "var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"
|
|
1774
|
-
},
|
|
1775
|
-
link_on_interactive_colors: {
|
|
1776
|
-
hex: "#ffffff",
|
|
1777
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1778
|
-
rgba: "var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"
|
|
1779
|
-
},
|
|
1780
|
-
icon_on_interactive_colors: {
|
|
1781
|
-
hex: "#ffffff",
|
|
1782
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
1783
|
-
rgba: "var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"
|
|
1784
|
-
},
|
|
1785
|
-
link_in_snackbars: {
|
|
1786
|
-
hex: "#97cace",
|
|
1787
|
-
hsla: "hsla(184, 35.9%, 70%, 1)",
|
|
1788
|
-
rgba: "var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"
|
|
1789
|
-
},
|
|
1790
|
-
pressed_overlay_dark: {
|
|
1791
|
-
hex: "#000000",
|
|
1792
|
-
hsla: "hsla(0, 0%, 0%, 0.2)",
|
|
1793
|
-
rgba: "var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"
|
|
1794
|
-
},
|
|
1795
|
-
pressed_overlay_light: {
|
|
1796
|
-
hex: "#ffffff",
|
|
1797
|
-
hsla: "hsla(0, 0%, 100%, 0.2)",
|
|
1798
|
-
rgba: "var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
};
|
|
1802
|
-
var elevation$1 = {
|
|
1803
|
-
raised: "0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
1804
|
-
none: "0 0 1px rgba(0, 0, 0, 0.14)",
|
|
1805
|
-
overlay: "0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
1806
|
-
sticky: "0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",
|
|
1807
|
-
temporary_nav: "0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",
|
|
1808
|
-
above_scrim: "0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"
|
|
1809
|
-
};
|
|
1810
|
-
var interactions = {
|
|
1811
|
-
_modes: {
|
|
1812
|
-
compact: {
|
|
1813
|
-
pressed_dark_overlay: {
|
|
1814
|
-
blendMode: "pass_through",
|
|
1815
|
-
pressedColor: "transparent"
|
|
1816
|
-
},
|
|
1817
|
-
focused: {
|
|
1818
|
-
style: "dashed",
|
|
1819
|
-
color: "rgba(0, 112, 121, 1)",
|
|
1820
|
-
width: "2px"
|
|
1821
|
-
},
|
|
1822
|
-
pressed_light_overlay: {
|
|
1823
|
-
blendMode: "pass_through",
|
|
1824
|
-
pressedColor: "rgba(255, 255, 255, 1)"
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
},
|
|
1828
|
-
pressed_dark_overlay: {
|
|
1829
|
-
blendMode: "darken",
|
|
1830
|
-
pressedColor: "rgba(0, 0, 0, 0.2)"
|
|
1831
|
-
},
|
|
1832
|
-
focused: {
|
|
1833
|
-
style: "dashed",
|
|
1834
|
-
color: "rgba(0, 112, 121, 1)",
|
|
1835
|
-
width: "2px"
|
|
1836
|
-
},
|
|
1837
|
-
pressed_light_overlay: {
|
|
1838
|
-
blendMode: "pass_through",
|
|
1839
|
-
pressedColor: "rgba(255, 255, 255, 0.2)"
|
|
1840
|
-
}
|
|
1841
|
-
};
|
|
1842
|
-
var shape = {
|
|
1843
|
-
_modes: {
|
|
1844
|
-
compact: {
|
|
1845
|
-
rounded: {
|
|
1846
|
-
minHeight: "24px",
|
|
1847
|
-
minWidth: "80px",
|
|
1848
|
-
borderRadius: "100px"
|
|
1849
|
-
},
|
|
1850
|
-
button: {
|
|
1851
|
-
minHeight: "24px",
|
|
1852
|
-
minWidth: "112px",
|
|
1853
|
-
borderRadius: "4px"
|
|
1854
|
-
},
|
|
1855
|
-
toggle: {
|
|
1856
|
-
minHeight: "24px",
|
|
1857
|
-
minWidth: "112px",
|
|
1858
|
-
borderRadius: "4px"
|
|
1859
|
-
},
|
|
1860
|
-
corners: {
|
|
1861
|
-
minHeight: "24px",
|
|
1862
|
-
minWidth: "112px",
|
|
1863
|
-
borderRadius: "4px"
|
|
1864
|
-
},
|
|
1865
|
-
icon_button: {
|
|
1866
|
-
minHeight: "32px",
|
|
1867
|
-
minWidth: "32px",
|
|
1868
|
-
borderRadius: "100px"
|
|
1869
|
-
},
|
|
1870
|
-
straight: {
|
|
1871
|
-
minHeight: "24px",
|
|
1872
|
-
minWidth: "112px",
|
|
1873
|
-
borderRadius: ""
|
|
1874
|
-
},
|
|
1875
|
-
toggle_rounded_border: {
|
|
1876
|
-
minHeight: "24px",
|
|
1877
|
-
minWidth: "2px",
|
|
1878
|
-
borderRadius: ""
|
|
1879
|
-
},
|
|
1880
|
-
toggle_straight_border: {
|
|
1881
|
-
minHeight: "24px",
|
|
1882
|
-
minWidth: "2px",
|
|
1883
|
-
borderRadius: ""
|
|
1884
|
-
},
|
|
1885
|
-
circle: {
|
|
1886
|
-
minHeight: "24px",
|
|
1887
|
-
minWidth: "24px",
|
|
1888
|
-
borderRadius: "100px"
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
toggle_straight_border: {
|
|
1893
|
-
minHeight: "36px",
|
|
1894
|
-
minWidth: "4px",
|
|
1895
|
-
borderRadius: ""
|
|
1896
|
-
},
|
|
1897
|
-
toggle_rounded_border: {
|
|
1898
|
-
minHeight: "36px",
|
|
1899
|
-
minWidth: "4px",
|
|
1900
|
-
borderRadius: ""
|
|
1901
|
-
},
|
|
1902
|
-
circle: {
|
|
1903
|
-
minHeight: "40px",
|
|
1904
|
-
minWidth: "40px",
|
|
1905
|
-
borderRadius: "100px"
|
|
1906
|
-
},
|
|
1907
|
-
rounded: {
|
|
1908
|
-
minHeight: "40px",
|
|
1909
|
-
minWidth: "80px",
|
|
1910
|
-
borderRadius: "100px"
|
|
1911
|
-
},
|
|
1912
|
-
button: {
|
|
1913
|
-
minHeight: "36px",
|
|
1914
|
-
minWidth: "112px",
|
|
1915
|
-
borderRadius: "4px"
|
|
1916
|
-
},
|
|
1917
|
-
toggle: {
|
|
1918
|
-
minHeight: "36px",
|
|
1919
|
-
minWidth: "112px",
|
|
1920
|
-
borderRadius: "4px"
|
|
1921
|
-
},
|
|
1922
|
-
corners: {
|
|
1923
|
-
minHeight: "36px",
|
|
1924
|
-
minWidth: "112px",
|
|
1925
|
-
borderRadius: "4px"
|
|
1926
|
-
},
|
|
1927
|
-
icon_button: {
|
|
1928
|
-
minHeight: "40px",
|
|
1929
|
-
minWidth: "40px",
|
|
1930
|
-
borderRadius: "100px"
|
|
1931
|
-
},
|
|
1932
|
-
field: {
|
|
1933
|
-
minHeight: "56px",
|
|
1934
|
-
minWidth: "294px",
|
|
1935
|
-
borderRadius: ""
|
|
1936
|
-
},
|
|
1937
|
-
straight: {
|
|
1938
|
-
minHeight: "36px",
|
|
1939
|
-
minWidth: "112px",
|
|
1940
|
-
borderRadius: ""
|
|
1941
|
-
},
|
|
1942
|
-
caret: {
|
|
1943
|
-
minHeight: "8px",
|
|
1944
|
-
minWidth: "6px",
|
|
1945
|
-
borderRadius: ""
|
|
1946
|
-
}
|
|
1947
|
-
};
|
|
1948
|
-
var typography$1 = {
|
|
1949
|
-
heading: {
|
|
1950
|
-
h1_bold: {
|
|
1951
|
-
color: "var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",
|
|
1952
|
-
fontFamily: "Equinor",
|
|
1953
|
-
fontSize: "2.000rem",
|
|
1954
|
-
fontWeight: 700,
|
|
1955
|
-
lineHeight: "1.250em",
|
|
1956
|
-
textAlign: "left"
|
|
1957
|
-
},
|
|
1958
|
-
h1: {
|
|
1959
|
-
color: "var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",
|
|
1960
|
-
fontFamily: "Equinor",
|
|
1961
|
-
fontSize: "2.000rem",
|
|
1962
|
-
fontWeight: 400,
|
|
1963
|
-
lineHeight: "1.250em",
|
|
1964
|
-
textAlign: "left"
|
|
1965
|
-
},
|
|
1966
|
-
h2: {
|
|
1967
|
-
color: "var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",
|
|
1968
|
-
fontFamily: "Equinor",
|
|
1969
|
-
fontSize: "1.750rem",
|
|
1970
|
-
fontWeight: 400,
|
|
1971
|
-
lineHeight: "1.250em",
|
|
1972
|
-
textAlign: "left"
|
|
1973
|
-
},
|
|
1974
|
-
h3: {
|
|
1975
|
-
color: "var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",
|
|
1976
|
-
fontFamily: "Equinor",
|
|
1977
|
-
fontSize: "1.500rem",
|
|
1978
|
-
fontWeight: 400,
|
|
1979
|
-
lineHeight: "1.250em",
|
|
1980
|
-
textAlign: "left"
|
|
1981
|
-
},
|
|
1982
|
-
h4: {
|
|
1983
|
-
color: "var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",
|
|
1984
|
-
fontFamily: "Equinor",
|
|
1985
|
-
fontSize: "1.250rem",
|
|
1986
|
-
fontWeight: 400,
|
|
1987
|
-
lineHeight: "1.600em",
|
|
1988
|
-
textAlign: "left"
|
|
1989
|
-
},
|
|
1990
|
-
h5: {
|
|
1991
|
-
color: "var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",
|
|
1992
|
-
fontFamily: "Equinor",
|
|
1993
|
-
fontSize: "1.125rem",
|
|
1994
|
-
fontWeight: 500,
|
|
1995
|
-
letterSpacing: "0.013em",
|
|
1996
|
-
lineHeight: "1.333em",
|
|
1997
|
-
textAlign: "left"
|
|
1998
|
-
},
|
|
1999
|
-
h6: {
|
|
2000
|
-
color: "var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",
|
|
2001
|
-
fontFamily: "Equinor",
|
|
2002
|
-
fontSize: "1.000rem",
|
|
2003
|
-
fontWeight: 500,
|
|
2004
|
-
letterSpacing: "0.013em",
|
|
2005
|
-
lineHeight: "1.500em",
|
|
2006
|
-
textAlign: "left"
|
|
2007
|
-
}
|
|
2008
|
-
},
|
|
2009
|
-
navigation: {
|
|
2010
|
-
menu_title: {
|
|
2011
|
-
color: "var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",
|
|
2012
|
-
fontFamily: "Equinor",
|
|
2013
|
-
fontSize: "1.000rem",
|
|
2014
|
-
fontWeight: 400,
|
|
2015
|
-
letterSpacing: "0.013em",
|
|
2016
|
-
lineHeight: "1.000em",
|
|
2017
|
-
textAlign: "left"
|
|
2018
|
-
},
|
|
2019
|
-
menu_tabs: {
|
|
2020
|
-
color: "var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",
|
|
2021
|
-
fontFamily: "Equinor",
|
|
2022
|
-
fontSize: "1.000rem",
|
|
2023
|
-
fontWeight: 500,
|
|
2024
|
-
letterSpacing: "0.013em",
|
|
2025
|
-
lineHeight: "1.000em",
|
|
2026
|
-
textAlign: "left"
|
|
2027
|
-
},
|
|
2028
|
-
label: {
|
|
2029
|
-
color: "var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",
|
|
2030
|
-
fontFamily: "Equinor",
|
|
2031
|
-
fontSize: "0.750rem",
|
|
2032
|
-
fontWeight: 500,
|
|
2033
|
-
lineHeight: "1.333em",
|
|
2034
|
-
textAlign: "left"
|
|
2035
|
-
},
|
|
2036
|
-
drawer_active: {
|
|
2037
|
-
color: "var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",
|
|
2038
|
-
fontFamily: "Equinor",
|
|
2039
|
-
fontSize: "1.000rem",
|
|
2040
|
-
fontWeight: 700,
|
|
2041
|
-
letterSpacing: "0.006em",
|
|
2042
|
-
lineHeight: "1.000em",
|
|
2043
|
-
textAlign: "left"
|
|
2044
|
-
},
|
|
2045
|
-
drawer_inactive: {
|
|
2046
|
-
color: "var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",
|
|
2047
|
-
fontFamily: "Equinor",
|
|
2048
|
-
fontSize: "1.000rem",
|
|
2049
|
-
fontWeight: 500,
|
|
2050
|
-
letterSpacing: "0.013em",
|
|
2051
|
-
lineHeight: "1.000em",
|
|
2052
|
-
textAlign: "left"
|
|
2053
|
-
},
|
|
2054
|
-
button: {
|
|
2055
|
-
color: "var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",
|
|
2056
|
-
fontFamily: "Equinor",
|
|
2057
|
-
fontSize: "0.875rem",
|
|
2058
|
-
fontWeight: 500,
|
|
2059
|
-
lineHeight: "1.143em",
|
|
2060
|
-
textAlign: "left"
|
|
2061
|
-
},
|
|
2062
|
-
breadcrumb: {
|
|
2063
|
-
color: "var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",
|
|
2064
|
-
fontFamily: "Equinor",
|
|
2065
|
-
fontSize: "0.875rem",
|
|
2066
|
-
fontWeight: 500,
|
|
2067
|
-
lineHeight: "1.143em",
|
|
2068
|
-
textAlign: "left"
|
|
2069
|
-
},
|
|
2070
|
-
breadcrumb_hover: {
|
|
2071
|
-
color: "var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",
|
|
2072
|
-
fontFamily: "Equinor",
|
|
2073
|
-
fontSize: "0.875rem",
|
|
2074
|
-
fontWeight: 500,
|
|
2075
|
-
lineHeight: "1.143em",
|
|
2076
|
-
textDecoration: "underline",
|
|
2077
|
-
textAlign: "left"
|
|
2078
|
-
},
|
|
2079
|
-
menu_title_hover: {
|
|
2080
|
-
color: "var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",
|
|
2081
|
-
fontFamily: "Equinor",
|
|
2082
|
-
fontSize: "1.000rem",
|
|
2083
|
-
fontWeight: 400,
|
|
2084
|
-
letterSpacing: "0.013em",
|
|
2085
|
-
lineHeight: "1.000em",
|
|
2086
|
-
textAlign: "left"
|
|
2087
|
-
}
|
|
2088
|
-
},
|
|
2089
|
-
input: {
|
|
2090
|
-
label: {
|
|
2091
|
-
color: "var(--eds_input__label_color, rgba(0, 0, 0, 1))",
|
|
2092
|
-
fontFamily: "Equinor",
|
|
2093
|
-
fontSize: "0.750rem",
|
|
2094
|
-
fontWeight: 500,
|
|
2095
|
-
lineHeight: "1.333em",
|
|
2096
|
-
textAlign: "left"
|
|
2097
|
-
},
|
|
2098
|
-
text: {
|
|
2099
|
-
color: "var(--eds_input__text_color, rgba(0, 0, 0, 1))",
|
|
2100
|
-
fontFamily: "Equinor",
|
|
2101
|
-
fontSize: "1.000rem",
|
|
2102
|
-
fontWeight: 400,
|
|
2103
|
-
letterSpacing: "0.025em",
|
|
2104
|
-
lineHeight: "1.500em",
|
|
2105
|
-
textAlign: "left"
|
|
2106
|
-
},
|
|
2107
|
-
text_monospaced: {
|
|
2108
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
2109
|
-
color: "var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",
|
|
2110
|
-
fontFamily: "Equinor",
|
|
2111
|
-
fontSize: "1.000rem",
|
|
2112
|
-
fontWeight: 400,
|
|
2113
|
-
letterSpacing: "0.063em",
|
|
2114
|
-
lineHeight: "1.500em",
|
|
2115
|
-
textAlign: "left"
|
|
2116
|
-
},
|
|
2117
|
-
helper: {
|
|
2118
|
-
color: "var(--eds_input__helper_color, rgba(0, 0, 0, 1))",
|
|
2119
|
-
fontFamily: "Equinor",
|
|
2120
|
-
fontSize: "0.750rem",
|
|
2121
|
-
fontWeight: 500,
|
|
2122
|
-
letterSpacing: "0.013em",
|
|
2123
|
-
lineHeight: "1.333em",
|
|
2124
|
-
textAlign: "left"
|
|
2125
|
-
}
|
|
2126
|
-
},
|
|
2127
|
-
paragraph: {
|
|
2128
|
-
body_short_italic: {
|
|
2129
|
-
color: "var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",
|
|
2130
|
-
fontFamily: "Equinor",
|
|
2131
|
-
fontSize: "1.000rem",
|
|
2132
|
-
fontWeight: 400,
|
|
2133
|
-
lineHeight: "1.250em",
|
|
2134
|
-
fontStyle: "italic",
|
|
2135
|
-
textAlign: "left"
|
|
2136
|
-
},
|
|
2137
|
-
caption: {
|
|
2138
|
-
color: "var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",
|
|
2139
|
-
fontFamily: "Equinor",
|
|
2140
|
-
fontSize: "0.875rem",
|
|
2141
|
-
fontWeight: 500,
|
|
2142
|
-
lineHeight: "1.143em",
|
|
2143
|
-
textAlign: "left"
|
|
2144
|
-
},
|
|
2145
|
-
meta: {
|
|
2146
|
-
color: "var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",
|
|
2147
|
-
fontFamily: "Equinor",
|
|
2148
|
-
fontSize: "0.625rem",
|
|
2149
|
-
fontWeight: 500,
|
|
2150
|
-
lineHeight: "1.600em",
|
|
2151
|
-
textAlign: "left"
|
|
2152
|
-
},
|
|
2153
|
-
body_short: {
|
|
2154
|
-
color: "var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",
|
|
2155
|
-
fontFamily: "Equinor",
|
|
2156
|
-
fontSize: "1.000rem",
|
|
2157
|
-
fontWeight: 400,
|
|
2158
|
-
lineHeight: "1.250em",
|
|
2159
|
-
textAlign: "left"
|
|
2160
|
-
},
|
|
2161
|
-
body_short_bold_italic: {
|
|
2162
|
-
color: "var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",
|
|
2163
|
-
fontFamily: "Equinor",
|
|
2164
|
-
fontSize: "1.000rem",
|
|
2165
|
-
fontWeight: 700,
|
|
2166
|
-
lineHeight: "1.250em",
|
|
2167
|
-
fontStyle: "italic",
|
|
2168
|
-
textAlign: "left"
|
|
2169
|
-
},
|
|
2170
|
-
body_short_bold: {
|
|
2171
|
-
color: "var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",
|
|
2172
|
-
fontFamily: "Equinor",
|
|
2173
|
-
fontSize: "1.000rem",
|
|
2174
|
-
fontWeight: 700,
|
|
2175
|
-
lineHeight: "1.250em",
|
|
2176
|
-
textAlign: "left"
|
|
2177
|
-
},
|
|
2178
|
-
body_short_link: {
|
|
2179
|
-
color: "var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",
|
|
2180
|
-
fontFamily: "Equinor",
|
|
2181
|
-
fontSize: "1.000rem",
|
|
2182
|
-
fontWeight: 400,
|
|
2183
|
-
lineHeight: "1.250em",
|
|
2184
|
-
textDecoration: "underline",
|
|
2185
|
-
textAlign: "left"
|
|
2186
|
-
},
|
|
2187
|
-
overline: {
|
|
2188
|
-
color: "var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",
|
|
2189
|
-
fontFamily: "Equinor",
|
|
2190
|
-
fontSize: "0.625rem",
|
|
2191
|
-
fontWeight: 500,
|
|
2192
|
-
letterSpacing: "0.069em",
|
|
2193
|
-
lineHeight: "1.600em",
|
|
2194
|
-
textTransform: "uppercase",
|
|
2195
|
-
textAlign: "left"
|
|
2196
|
-
},
|
|
2197
|
-
ingress: {
|
|
2198
|
-
color: "var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",
|
|
2199
|
-
fontFamily: "Equinor",
|
|
2200
|
-
fontSize: "1.125rem",
|
|
2201
|
-
fontWeight: 400,
|
|
2202
|
-
lineHeight: "1.333em",
|
|
2203
|
-
textAlign: "left"
|
|
2204
|
-
},
|
|
2205
|
-
body_long: {
|
|
2206
|
-
color: "var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",
|
|
2207
|
-
fontFamily: "Equinor",
|
|
2208
|
-
fontSize: "1.000rem",
|
|
2209
|
-
fontWeight: 400,
|
|
2210
|
-
lineHeight: "1.500em",
|
|
2211
|
-
textAlign: "left"
|
|
2212
|
-
},
|
|
2213
|
-
body_long_link: {
|
|
2214
|
-
color: "var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",
|
|
2215
|
-
fontFamily: "Equinor",
|
|
2216
|
-
fontSize: "1.000rem",
|
|
2217
|
-
fontWeight: 400,
|
|
2218
|
-
lineHeight: "1.500em",
|
|
2219
|
-
textDecoration: "underline",
|
|
2220
|
-
textAlign: "left"
|
|
2221
|
-
},
|
|
2222
|
-
body_long_italic: {
|
|
2223
|
-
color: "var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",
|
|
2224
|
-
fontFamily: "Equinor",
|
|
2225
|
-
fontSize: "1.000rem",
|
|
2226
|
-
fontWeight: 400,
|
|
2227
|
-
lineHeight: "1.500em",
|
|
2228
|
-
fontStyle: "italic",
|
|
2229
|
-
textAlign: "left"
|
|
2230
|
-
},
|
|
2231
|
-
body_long_bold: {
|
|
2232
|
-
color: "var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",
|
|
2233
|
-
fontFamily: "Equinor",
|
|
2234
|
-
fontSize: "1.000rem",
|
|
2235
|
-
fontWeight: 700,
|
|
2236
|
-
lineHeight: "1.500em",
|
|
2237
|
-
textAlign: "left"
|
|
2238
|
-
},
|
|
2239
|
-
body_long_bold_italic: {
|
|
2240
|
-
color: "var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",
|
|
2241
|
-
fontFamily: "Equinor",
|
|
2242
|
-
fontSize: "1.000rem",
|
|
2243
|
-
fontWeight: 700,
|
|
2244
|
-
lineHeight: "1.500em",
|
|
2245
|
-
fontStyle: "italic",
|
|
2246
|
-
textAlign: "left"
|
|
2247
|
-
}
|
|
2248
|
-
},
|
|
2249
|
-
table: {
|
|
2250
|
-
cell_header: {
|
|
2251
|
-
color: "var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",
|
|
2252
|
-
fontFamily: "Equinor",
|
|
2253
|
-
fontSize: "0.875rem",
|
|
2254
|
-
fontWeight: 700,
|
|
2255
|
-
lineHeight: "1.429em",
|
|
2256
|
-
textAlign: "left"
|
|
2257
|
-
},
|
|
2258
|
-
cell_text: {
|
|
2259
|
-
color: "var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",
|
|
2260
|
-
fontFamily: "Equinor",
|
|
2261
|
-
fontSize: "0.875rem",
|
|
2262
|
-
fontWeight: 500,
|
|
2263
|
-
lineHeight: "1.429em",
|
|
2264
|
-
textAlign: "left"
|
|
2265
|
-
},
|
|
2266
|
-
cell_text_bold: {
|
|
2267
|
-
color: "var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",
|
|
2268
|
-
fontFamily: "Equinor",
|
|
2269
|
-
fontSize: "0.875rem",
|
|
2270
|
-
fontWeight: 700,
|
|
2271
|
-
lineHeight: "1.429em",
|
|
2272
|
-
textAlign: "left"
|
|
2273
|
-
},
|
|
2274
|
-
cell_text_link: {
|
|
2275
|
-
color: "var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",
|
|
2276
|
-
fontFamily: "Equinor",
|
|
2277
|
-
fontSize: "0.875rem",
|
|
2278
|
-
fontWeight: 500,
|
|
2279
|
-
lineHeight: "1.429em",
|
|
2280
|
-
textDecoration: "underline",
|
|
2281
|
-
textAlign: "left"
|
|
2282
|
-
},
|
|
2283
|
-
cell_numeric_monospaced: {
|
|
2284
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
2285
|
-
color: "var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",
|
|
2286
|
-
fontFamily: "Equinor",
|
|
2287
|
-
fontSize: "0.875rem",
|
|
2288
|
-
fontWeight: 500,
|
|
2289
|
-
lineHeight: "1.429em",
|
|
2290
|
-
textAlign: "left"
|
|
2291
|
-
}
|
|
2292
|
-
},
|
|
2293
|
-
_modes: {
|
|
2294
|
-
compact: {
|
|
2295
|
-
table: {
|
|
2296
|
-
cell_header: {
|
|
2297
|
-
color: "var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",
|
|
2298
|
-
fontFamily: "Equinor",
|
|
2299
|
-
fontSize: "0.875rem",
|
|
2300
|
-
fontWeight: 700,
|
|
2301
|
-
lineHeight: "1.143em",
|
|
2302
|
-
textAlign: "left"
|
|
2303
|
-
},
|
|
2304
|
-
cell_text: {
|
|
2305
|
-
color: "var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",
|
|
2306
|
-
fontFamily: "Equinor",
|
|
2307
|
-
fontSize: "0.875rem",
|
|
2308
|
-
fontWeight: 500,
|
|
2309
|
-
lineHeight: "1.143em",
|
|
2310
|
-
textAlign: "left"
|
|
2311
|
-
},
|
|
2312
|
-
cell_text_bold: {
|
|
2313
|
-
color: "var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",
|
|
2314
|
-
fontFamily: "Equinor",
|
|
2315
|
-
fontSize: "0.875rem",
|
|
2316
|
-
fontWeight: 700,
|
|
2317
|
-
lineHeight: "1.143em",
|
|
2318
|
-
textAlign: "left"
|
|
2319
|
-
},
|
|
2320
|
-
cell_text_link: {
|
|
2321
|
-
color: "var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",
|
|
2322
|
-
fontFamily: "Equinor",
|
|
2323
|
-
fontSize: "0.875rem",
|
|
2324
|
-
fontWeight: 500,
|
|
2325
|
-
lineHeight: "1.143em",
|
|
2326
|
-
textDecoration: "underline",
|
|
2327
|
-
textAlign: "left"
|
|
2328
|
-
},
|
|
2329
|
-
cell_numeric_monospaced: {
|
|
2330
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
2331
|
-
color: "var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",
|
|
2332
|
-
fontFamily: "Equinor",
|
|
2333
|
-
fontSize: "0.875rem",
|
|
2334
|
-
fontWeight: 500,
|
|
2335
|
-
lineHeight: "1.143em",
|
|
2336
|
-
textAlign: "left"
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
},
|
|
2341
|
-
ui: {
|
|
2342
|
-
tooltip: {
|
|
2343
|
-
color: "var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",
|
|
2344
|
-
fontFamily: "Equinor",
|
|
2345
|
-
fontSize: "0.750rem",
|
|
2346
|
-
fontWeight: 500,
|
|
2347
|
-
lineHeight: "1.333em",
|
|
2348
|
-
textAlign: "left"
|
|
2349
|
-
},
|
|
2350
|
-
snackbar: {
|
|
2351
|
-
color: "var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",
|
|
2352
|
-
fontFamily: "Equinor",
|
|
2353
|
-
fontSize: "0.750rem",
|
|
2354
|
-
fontWeight: 500,
|
|
2355
|
-
lineHeight: "1.333em",
|
|
2356
|
-
textAlign: "left"
|
|
2357
|
-
},
|
|
2358
|
-
accordion_header: {
|
|
2359
|
-
color: "var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",
|
|
2360
|
-
fontFamily: "Equinor",
|
|
2361
|
-
fontSize: "1.000rem",
|
|
2362
|
-
fontWeight: 500,
|
|
2363
|
-
lineHeight: "1.500em",
|
|
2364
|
-
textAlign: "left"
|
|
2365
|
-
},
|
|
2366
|
-
chip__badge: {
|
|
2367
|
-
color: "var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",
|
|
2368
|
-
fontFamily: "Equinor",
|
|
2369
|
-
fontSize: "0.750rem",
|
|
2370
|
-
fontWeight: 500,
|
|
2371
|
-
lineHeight: "1.333em",
|
|
2372
|
-
textAlign: "left"
|
|
2373
|
-
},
|
|
2374
|
-
chart: {
|
|
2375
|
-
color: "var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",
|
|
2376
|
-
fontFamily: "Equinor",
|
|
2377
|
-
fontSize: "0.750rem",
|
|
2378
|
-
fontWeight: 500,
|
|
2379
|
-
lineHeight: "1.333em",
|
|
2380
|
-
textAlign: "left"
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
};
|
|
2384
|
-
var spacings$4 = {
|
|
2385
|
-
comfortable: {
|
|
2386
|
-
xxx_large: "48px",
|
|
2387
|
-
xx_large: "40px",
|
|
2388
|
-
x_large: "32px",
|
|
2389
|
-
large: "24px",
|
|
2390
|
-
medium: "16px",
|
|
2391
|
-
medium_small: "12px",
|
|
2392
|
-
small: "8px",
|
|
2393
|
-
x_small: "4px",
|
|
2394
|
-
xx_small: "2px"
|
|
2395
|
-
}
|
|
2396
|
-
};
|
|
2397
|
-
var tokens = {
|
|
2398
|
-
clickbounds,
|
|
2399
|
-
colors: colors$1,
|
|
2400
|
-
elevation: elevation$1,
|
|
2401
|
-
interactions,
|
|
2402
|
-
shape,
|
|
2403
|
-
typography: typography$1,
|
|
2404
|
-
spacings: spacings$4
|
|
2405
|
-
};
|
|
2406
|
-
function _arrayWithHoles(arr) {
|
|
2407
|
-
if (Array.isArray(arr))
|
|
2408
|
-
return arr;
|
|
2409
|
-
}
|
|
2410
|
-
function _iterableToArrayLimit(r, l) {
|
|
2411
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2412
|
-
if (null != t) {
|
|
2413
|
-
var e, n, i, u, a = [], f2 = true, o = false;
|
|
2414
|
-
try {
|
|
2415
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
2416
|
-
if (Object(t) !== t)
|
|
2417
|
-
return;
|
|
2418
|
-
f2 = false;
|
|
2419
|
-
} else
|
|
2420
|
-
for (; !(f2 = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f2 = true)
|
|
2421
|
-
;
|
|
2422
|
-
} catch (r2) {
|
|
2423
|
-
o = true, n = r2;
|
|
2424
|
-
} finally {
|
|
2425
|
-
try {
|
|
2426
|
-
if (!f2 && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
2427
|
-
return;
|
|
2428
|
-
} finally {
|
|
2429
|
-
if (o)
|
|
2430
|
-
throw n;
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
return a;
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
function _arrayLikeToArray(arr, len) {
|
|
2437
|
-
if (len == null || len > arr.length)
|
|
2438
|
-
len = arr.length;
|
|
2439
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
2440
|
-
arr2[i] = arr[i];
|
|
2441
|
-
return arr2;
|
|
2442
|
-
}
|
|
2443
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
2444
|
-
if (!o)
|
|
2445
|
-
return;
|
|
2446
|
-
if (typeof o === "string")
|
|
2447
|
-
return _arrayLikeToArray(o, minLen);
|
|
2448
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2449
|
-
if (n === "Object" && o.constructor)
|
|
2450
|
-
n = o.constructor.name;
|
|
2451
|
-
if (n === "Map" || n === "Set")
|
|
2452
|
-
return Array.from(o);
|
|
2453
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2454
|
-
return _arrayLikeToArray(o, minLen);
|
|
2455
|
-
}
|
|
2456
|
-
function _nonIterableRest() {
|
|
2457
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2458
|
-
}
|
|
2459
|
-
function _slicedToArray(arr, i) {
|
|
2460
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
2461
|
-
}
|
|
2462
|
-
var shorthand = function shorthand2(token2) {
|
|
2463
|
-
if (!token2) {
|
|
2464
|
-
return void 0;
|
|
2465
|
-
}
|
|
2466
|
-
var _token$width = token2.width, width = _token$width === void 0 ? "" : _token$width, _token$style = token2.style, style = _token$style === void 0 ? "" : _token$style, _token$color = token2.color, color = _token$color === void 0 ? "" : _token$color;
|
|
2467
|
-
if (!width) {
|
|
2468
|
-
return null;
|
|
2469
|
-
}
|
|
2470
|
-
return "".concat(width, " ").concat(style, " ").concat(color);
|
|
2471
|
-
};
|
|
2472
|
-
var bordersTemplate = function bordersTemplate2(border2) {
|
|
2473
|
-
var _border$left, _border$left2, _border$right, _border$right2;
|
|
2474
|
-
if (!border2) {
|
|
2475
|
-
return nt({});
|
|
2476
|
-
}
|
|
2477
|
-
switch (border2.type) {
|
|
2478
|
-
case "border":
|
|
2479
|
-
return nt({
|
|
2480
|
-
border: shorthand(border2),
|
|
2481
|
-
borderRadius: border2.radius
|
|
2482
|
-
});
|
|
2483
|
-
case "bordergroup":
|
|
2484
|
-
return nt({
|
|
2485
|
-
borderBottom: shorthand(border2.bottom),
|
|
2486
|
-
borderTop: shorthand(border2.top),
|
|
2487
|
-
borderLeft: shorthand(border2.left),
|
|
2488
|
-
borderRight: shorthand(border2.right),
|
|
2489
|
-
borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
|
|
2490
|
-
borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
|
|
2491
|
-
borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
|
|
2492
|
-
borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
|
|
2493
|
-
});
|
|
2494
|
-
default:
|
|
2495
|
-
return nt({});
|
|
2496
|
-
}
|
|
2497
|
-
};
|
|
2498
|
-
var focusColor = tokens.colors.interactive.focus.rgba;
|
|
2499
|
-
var outlineTemplate = function outlineTemplate2(outline) {
|
|
2500
|
-
var _outline$color = outline.color, color = _outline$color === void 0 ? focusColor : _outline$color, _outline$style = outline.style, style = _outline$style === void 0 ? "dashed" : _outline$style, _outline$width = outline.width, width = _outline$width === void 0 ? "2px" : _outline$width, _outline$offset = outline.offset, offset = _outline$offset === void 0 ? "0px" : _outline$offset, type = outline.type;
|
|
2501
|
-
var outline_ = {
|
|
2502
|
-
color,
|
|
2503
|
-
style,
|
|
2504
|
-
width,
|
|
2505
|
-
offset,
|
|
2506
|
-
type
|
|
2507
|
-
};
|
|
2508
|
-
return nt({
|
|
2509
|
-
outline: shorthand(outline_),
|
|
2510
|
-
outlineOffset: outline_.offset
|
|
2511
|
-
});
|
|
2512
|
-
};
|
|
2513
|
-
var typographyTemplate = function typographyTemplate2(typography2, link2) {
|
|
2514
|
-
if (!typography2) {
|
|
2515
|
-
return "";
|
|
2516
|
-
}
|
|
2517
|
-
var base = "\n margin: 0;\n color: ".concat(typography2.color, ";\n font-family: ").concat(typography2.fontFamily, ";\n font-size: ").concat(typography2.fontSize, ";\n font-weight: ").concat(typography2.fontWeight, ";\n line-height: ").concat(typography2.lineHeight, ";\n ");
|
|
2518
|
-
if (typography2.fontStyle) {
|
|
2519
|
-
base += "\nfont-style: ".concat(typography2.fontStyle, ";");
|
|
2520
|
-
}
|
|
2521
|
-
if (typography2.letterSpacing) {
|
|
2522
|
-
base += "\nletter-spacing: ".concat(typography2.letterSpacing, ";");
|
|
2523
|
-
}
|
|
2524
|
-
if (typography2.textTransform) {
|
|
2525
|
-
base += "\ntext-transform: ".concat(typography2.textTransform, ";");
|
|
2526
|
-
}
|
|
2527
|
-
if (typography2.textDecoration) {
|
|
2528
|
-
base += "\ntext-decoration: ".concat(typography2.textDecoration, ";");
|
|
2529
|
-
}
|
|
2530
|
-
if (typography2.textAlign) {
|
|
2531
|
-
base += "\ntext-align: ".concat(typography2.textAlign, ";");
|
|
2532
|
-
}
|
|
2533
|
-
if (typography2.fontFeature) {
|
|
2534
|
-
base += "\nfont-feature-settings: ".concat(typography2.fontFeature, ";");
|
|
2535
|
-
}
|
|
2536
|
-
if (link2) {
|
|
2537
|
-
base += "\ncursor: pointer;";
|
|
2538
|
-
}
|
|
2539
|
-
return base;
|
|
2540
|
-
};
|
|
2541
|
-
var initalState = {
|
|
2542
|
-
/** Density for all components inside `EdsProvider` */
|
|
2543
|
-
density: "comfortable"
|
|
2544
|
-
};
|
|
2545
|
-
var EdsContext = /* @__PURE__ */ createContext(initalState);
|
|
2546
|
-
var EdsProvider = function EdsProvider2(_ref) {
|
|
2547
|
-
var children = _ref.children, density = _ref.density;
|
|
2548
|
-
var _useState = useState(_objectSpread2(_objectSpread2({}, initalState), {}, {
|
|
2549
|
-
density: density || "comfortable"
|
|
2550
|
-
})), _useState2 = _slicedToArray(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
2551
|
-
var setDensity = function setDensity2(density2) {
|
|
2552
|
-
return setState(function(prevState) {
|
|
2553
|
-
return _objectSpread2(_objectSpread2({}, prevState), {}, {
|
|
2554
|
-
density: density2
|
|
2555
|
-
});
|
|
2556
|
-
});
|
|
2557
|
-
};
|
|
2558
|
-
useEffect(function() {
|
|
2559
|
-
if (typeof density !== "undefined" && density !== state.density) {
|
|
2560
|
-
setDensity(density);
|
|
2561
|
-
}
|
|
2562
|
-
}, [density, state.density]);
|
|
2563
|
-
var value = {
|
|
2564
|
-
density: state.density,
|
|
2565
|
-
setDensity
|
|
2566
|
-
};
|
|
2567
|
-
return /* @__PURE__ */ jsx(EdsContext.Provider, {
|
|
2568
|
-
value,
|
|
2569
|
-
children
|
|
2570
|
-
});
|
|
2571
|
-
};
|
|
2572
|
-
var _tokens$colors$ui = tokens.colors.ui, background$1 = _tokens$colors$ui.background__default.rgba, backgroundInfo = _tokens$colors$ui.background__info.rgba, backgroundWarning = _tokens$colors$ui.background__warning.rgba, backgroundDanger = _tokens$colors$ui.background__danger.rgba, spacingMedium = tokens.spacings.comfortable.medium, borderRadius = tokens.shape.corners.borderRadius;
|
|
2573
|
-
var primary$2 = {
|
|
2574
|
-
background: background$1,
|
|
2575
|
-
border: {
|
|
2576
|
-
type: "border",
|
|
2577
|
-
radius: borderRadius
|
|
2578
|
-
},
|
|
2579
|
-
spacings: {
|
|
2580
|
-
left: spacingMedium,
|
|
2581
|
-
bottom: spacingMedium,
|
|
2582
|
-
right: spacingMedium,
|
|
2583
|
-
top: spacingMedium
|
|
2584
|
-
}
|
|
2585
|
-
};
|
|
2586
|
-
var info = {
|
|
2587
|
-
background: backgroundInfo
|
|
2588
|
-
};
|
|
2589
|
-
var danger$1 = {
|
|
2590
|
-
background: backgroundDanger
|
|
2591
|
-
};
|
|
2592
|
-
var warning$1 = {
|
|
2593
|
-
background: backgroundWarning
|
|
2594
|
-
};
|
|
2595
|
-
const Card_tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2596
|
-
__proto__: null,
|
|
2597
|
-
danger: danger$1,
|
|
2598
|
-
info,
|
|
2599
|
-
primary: primary$2,
|
|
2600
|
-
warning: warning$1
|
|
2601
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2602
|
-
var elevation = tokens.elevation, background = tokens.colors.ui.background__default.rgba;
|
|
2603
|
-
var paper = {
|
|
2604
|
-
background
|
|
2605
|
-
};
|
|
2606
|
-
var _excluded$8 = ["elevation"];
|
|
2607
|
-
var StyledPaper = st.div.withConfig({
|
|
2608
|
-
displayName: "Paper__StyledPaper",
|
|
2609
|
-
componentId: "sc-6ncnv9-0"
|
|
2610
|
-
})(["background:", ";box-shadow:", ";"], paper.background, function(_ref) {
|
|
2611
|
-
var $elevation = _ref.$elevation;
|
|
2612
|
-
return $elevation;
|
|
2613
|
-
});
|
|
2614
|
-
var Paper = /* @__PURE__ */ forwardRef(function Paper2(_ref2, ref) {
|
|
2615
|
-
var _elevationToken$eleva;
|
|
2616
|
-
var _ref2$elevation = _ref2.elevation, elevation$12 = _ref2$elevation === void 0 ? "none" : _ref2$elevation, rest = _objectWithoutProperties(_ref2, _excluded$8);
|
|
2617
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2618
|
-
$elevation: (_elevationToken$eleva = elevation[elevation$12]) !== null && _elevationToken$eleva !== void 0 ? _elevationToken$eleva : "none"
|
|
2619
|
-
});
|
|
2620
|
-
return /* @__PURE__ */ jsx(StyledPaper, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2621
|
-
ref
|
|
2622
|
-
}));
|
|
2623
|
-
});
|
|
2624
|
-
var _excluded$7 = ["children", "variant", "elevation"];
|
|
2625
|
-
var primary$1 = primary$2;
|
|
2626
|
-
var StyledCard = st(Paper).withConfig({
|
|
2627
|
-
displayName: "Card__StyledCard",
|
|
2628
|
-
componentId: "sc-bjucjn-0"
|
|
2629
|
-
})(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;", ";"], function(_ref) {
|
|
2630
|
-
var $background = _ref.$background;
|
|
2631
|
-
return $background;
|
|
2632
|
-
}, bordersTemplate(primary$1.border));
|
|
2633
|
-
var Card$1 = /* @__PURE__ */ forwardRef(function Card(_ref2, ref) {
|
|
2634
|
-
var children = _ref2.children, _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "default" : _ref2$variant, _ref2$elevation = _ref2.elevation, elevation2 = _ref2$elevation === void 0 ? "none" : _ref2$elevation, rest = _objectWithoutProperties(_ref2, _excluded$7);
|
|
2635
|
-
var cardVariant = variant === "default" ? "primary" : variant;
|
|
2636
|
-
var token2 = Card_tokens[cardVariant];
|
|
2637
|
-
var props = _objectSpread2({
|
|
2638
|
-
ref,
|
|
2639
|
-
$background: token2.background
|
|
2640
|
-
}, rest);
|
|
2641
|
-
return /* @__PURE__ */ jsx(StyledCard, _objectSpread2(_objectSpread2({
|
|
2642
|
-
elevation: elevation2
|
|
2643
|
-
}, props), {}, {
|
|
2644
|
-
children
|
|
2645
|
-
}));
|
|
2646
|
-
});
|
|
2647
|
-
var typography = tokens.typography, colorsToken = tokens.colors, focusOutlineWidth = tokens.interactions.focused.width;
|
|
2648
|
-
var heading = typography.heading, paragraph = typography.paragraph;
|
|
2649
|
-
var _colorsToken$interact = colorsToken.interactive, primary = _colorsToken$interact.primary__resting.rgba, secondary = _colorsToken$interact.secondary__resting.rgba, danger = _colorsToken$interact.danger__resting.rgba, warning = _colorsToken$interact.warning__resting.rgba, success = _colorsToken$interact.success__resting.rgba, disabled = _colorsToken$interact.disabled__text.rgba, focus = _colorsToken$interact.focus.rgba;
|
|
2650
|
-
var colors = {
|
|
2651
|
-
primary,
|
|
2652
|
-
secondary,
|
|
2653
|
-
danger,
|
|
2654
|
-
warning,
|
|
2655
|
-
success,
|
|
2656
|
-
disabled
|
|
2657
|
-
};
|
|
2658
|
-
var quickVariants = _objectSpread2(_objectSpread2({}, heading), paragraph);
|
|
2659
|
-
var link = {
|
|
2660
|
-
states: {
|
|
2661
|
-
focus: {
|
|
2662
|
-
outline: {
|
|
2663
|
-
width: focusOutlineWidth,
|
|
2664
|
-
color: focus,
|
|
2665
|
-
style: "dashed",
|
|
2666
|
-
type: "outline",
|
|
2667
|
-
offset: "2px"
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
};
|
|
2672
|
-
var _excluded$6 = ["variant", "children", "bold", "italic", "link", "lines", "color", "group", "token", "as"];
|
|
2673
|
-
var getElementType = function getElementType2(variant, link2) {
|
|
2674
|
-
if (link2) {
|
|
2675
|
-
return "a";
|
|
2676
|
-
}
|
|
2677
|
-
switch (variant) {
|
|
2678
|
-
case "h1":
|
|
2679
|
-
case "h2":
|
|
2680
|
-
case "h3":
|
|
2681
|
-
case "h4":
|
|
2682
|
-
case "h5":
|
|
2683
|
-
case "h6":
|
|
2684
|
-
return variant;
|
|
2685
|
-
case "caption":
|
|
2686
|
-
case "overline":
|
|
2687
|
-
case "ingress":
|
|
2688
|
-
case "meta":
|
|
2689
|
-
case "body_short":
|
|
2690
|
-
case "body_long":
|
|
2691
|
-
default:
|
|
2692
|
-
return "p";
|
|
2693
|
-
}
|
|
2694
|
-
};
|
|
2695
|
-
var findTypography = function findTypography2(variantName, group) {
|
|
2696
|
-
if (!group && quickVariants[variantName]) {
|
|
2697
|
-
return quickVariants[variantName];
|
|
2698
|
-
}
|
|
2699
|
-
return typography[group][variantName];
|
|
2700
|
-
};
|
|
2701
|
-
var findColor = function findColor2() {
|
|
2702
|
-
var inputColor = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
2703
|
-
return typeof colors[inputColor] === "undefined" ? inputColor : colors[inputColor];
|
|
2704
|
-
};
|
|
2705
|
-
var toVariantName = function toVariantName2(variant) {
|
|
2706
|
-
var bold = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
2707
|
-
var italic = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
2708
|
-
var link2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
2709
|
-
return "".concat(variant).concat(bold ? "_bold" : "").concat(italic ? "_italic" : "").concat(link2 ? "_link" : "");
|
|
2710
|
-
};
|
|
2711
|
-
var StyledTypography = st.p.withConfig({
|
|
2712
|
-
displayName: "Typography__StyledTypography",
|
|
2713
|
-
componentId: "sc-179guof-0"
|
|
2714
|
-
})(["", " ", " ", " ", ""], function(_ref) {
|
|
2715
|
-
var $typography = _ref.$typography, $link = _ref.$link;
|
|
2716
|
-
return typographyTemplate($typography, $link);
|
|
2717
|
-
}, function(_ref2) {
|
|
2718
|
-
var $color = _ref2.$color;
|
|
2719
|
-
return nt({
|
|
2720
|
-
color: findColor($color)
|
|
2721
|
-
});
|
|
2722
|
-
}, function(_ref3) {
|
|
2723
|
-
var $lines = _ref3.$lines;
|
|
2724
|
-
return (
|
|
2725
|
-
//https://caniuse.com/#feat=css-line-clamp
|
|
2726
|
-
$lines > 0 && nt(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], $lines)
|
|
2727
|
-
);
|
|
2728
|
-
}, function(_ref4) {
|
|
2729
|
-
var $link = _ref4.$link;
|
|
2730
|
-
return $link && nt(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
|
|
2731
|
-
});
|
|
2732
|
-
var Typography = /* @__PURE__ */ forwardRef(function Typography2(_ref5, ref) {
|
|
2733
|
-
var _ref5$variant = _ref5.variant, variant = _ref5$variant === void 0 ? "body_short" : _ref5$variant, children = _ref5.children, bold = _ref5.bold, italic = _ref5.italic, link2 = _ref5.link, lines = _ref5.lines, color = _ref5.color, group = _ref5.group, token2 = _ref5.token, providedAs = _ref5.as, other = _objectWithoutProperties(_ref5, _excluded$6);
|
|
2734
|
-
var as = providedAs ? providedAs : getElementType(variant, link2);
|
|
2735
|
-
var variantName = toVariantName(variant, bold, italic, link2);
|
|
2736
|
-
var typography2 = findTypography(variantName, group);
|
|
2737
|
-
if (typeof typography2 === "undefined") {
|
|
2738
|
-
throw new Error('Typography variant not found for variant "'.concat(variantName, '" ("').concat(variant, '") & group "').concat(group || "", '"'));
|
|
2739
|
-
}
|
|
2740
|
-
return /* @__PURE__ */ jsx(StyledTypography, _objectSpread2(_objectSpread2({
|
|
2741
|
-
as,
|
|
2742
|
-
$typography: _objectSpread2(_objectSpread2({}, typography2), token2),
|
|
2743
|
-
$link: link2,
|
|
2744
|
-
$lines: lines,
|
|
2745
|
-
ref,
|
|
2746
|
-
$color: color
|
|
2747
|
-
}, other), {}, {
|
|
2748
|
-
children
|
|
2749
|
-
}));
|
|
2750
|
-
});
|
|
2751
|
-
var _excluded$5 = ["children", "alignRight", "meta"];
|
|
2752
|
-
var spacings$3 = primary$2.spacings;
|
|
2753
|
-
var StyledCardActions = st.div.withConfig({
|
|
2754
|
-
displayName: "CardActions__StyledCardActions",
|
|
2755
|
-
componentId: "sc-1d5vskp-0"
|
|
2756
|
-
})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], function(_ref) {
|
|
2757
|
-
var $justifyContent = _ref.$justifyContent;
|
|
2758
|
-
return $justifyContent;
|
|
2759
|
-
}, spacings$3.right, spacings$3.left, spacings$3.top, spacings$3.bottom);
|
|
2760
|
-
var CardActions = /* @__PURE__ */ forwardRef(function CardActions2(_ref2, ref) {
|
|
2761
|
-
var children = _ref2.children, _ref2$alignRight = _ref2.alignRight, alignRight = _ref2$alignRight === void 0 ? false : _ref2$alignRight, _ref2$meta = _ref2.meta, meta = _ref2$meta === void 0 ? "" : _ref2$meta, rest = _objectWithoutProperties(_ref2, _excluded$5);
|
|
2762
|
-
var $justifyContent = alignRight ? "flex-end" : "flex-start";
|
|
2763
|
-
var props = _objectSpread2({
|
|
2764
|
-
ref,
|
|
2765
|
-
$justifyContent
|
|
2766
|
-
}, rest);
|
|
2767
|
-
return /* @__PURE__ */ jsxs(StyledCardActions, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2768
|
-
children: [children, meta !== "" && /* @__PURE__ */ jsx(Typography, {
|
|
2769
|
-
variant: "caption",
|
|
2770
|
-
children: meta
|
|
2771
|
-
})]
|
|
2772
|
-
}));
|
|
2773
|
-
});
|
|
2774
|
-
var _excluded$4 = ["children"];
|
|
2775
|
-
var spacings$2 = primary$2.spacings;
|
|
2776
|
-
var StyledCardContent = st.div.withConfig({
|
|
2777
|
-
displayName: "CardContent__StyledCardContent",
|
|
2778
|
-
componentId: "sc-esm4ym-0"
|
|
2779
|
-
})(["display:grid;padding:0 ", " 0 ", ";&:last-child{padding-bottom:", ";}"], spacings$2.right, spacings$2.left, spacings$2.bottom);
|
|
2780
|
-
var CardContent = /* @__PURE__ */ forwardRef(function CardContent2(_ref, ref) {
|
|
2781
|
-
var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded$4);
|
|
2782
|
-
return /* @__PURE__ */ jsx(StyledCardContent, _objectSpread2(_objectSpread2({
|
|
2783
|
-
ref
|
|
2784
|
-
}, props), {}, {
|
|
2785
|
-
children
|
|
2786
|
-
}));
|
|
2787
|
-
});
|
|
2788
|
-
var _excluded$3 = ["children", "fullWidth"];
|
|
2789
|
-
var spacings$1 = primary$2.spacings, border = primary$2.border;
|
|
2790
|
-
var StyledCardMedia = st.div.withConfig({
|
|
2791
|
-
displayName: "CardMedia__StyledCardMedia",
|
|
2792
|
-
componentId: "sc-kr8q9c-0"
|
|
2793
|
-
})(["display:flex;width:auto;", ""], function(_ref) {
|
|
2794
|
-
var $fullWidth = _ref.$fullWidth;
|
|
2795
|
-
return $fullWidth ? nt(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius) : nt(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$1.right, spacings$1.left, spacings$1.top, spacings$1.right, spacings$1.left, spacings$1.right, spacings$1.bottom, spacings$1.left);
|
|
2796
|
-
});
|
|
2797
|
-
var CardMedia = /* @__PURE__ */ forwardRef(function CardMedia2(_ref2, ref) {
|
|
2798
|
-
var children = _ref2.children, _ref2$fullWidth = _ref2.fullWidth, fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth, rest = _objectWithoutProperties(_ref2, _excluded$3);
|
|
2799
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2800
|
-
ref,
|
|
2801
|
-
$fullWidth: fullWidth
|
|
2802
|
-
});
|
|
2803
|
-
return /* @__PURE__ */ jsx(StyledCardMedia, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2804
|
-
children
|
|
2805
|
-
}));
|
|
2806
|
-
});
|
|
2807
|
-
var _excluded$2 = ["children"];
|
|
2808
|
-
var spacings = primary$2.spacings;
|
|
2809
|
-
var StyledCardHeader = st.div.withConfig({
|
|
2810
|
-
displayName: "CardHeader__StyledCardHeader",
|
|
2811
|
-
componentId: "sc-15k8edh-0"
|
|
2812
|
-
})(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";> :not(:first-child){margin-left:", ";}&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], spacings.right, spacings.left, spacings.left, spacings.top, spacings.bottom);
|
|
2813
|
-
var CardHeader = /* @__PURE__ */ forwardRef(function CardHeader2(_ref, ref) {
|
|
2814
|
-
var children = _ref.children, rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
2815
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2816
|
-
ref
|
|
2817
|
-
});
|
|
2818
|
-
return /* @__PURE__ */ jsx(StyledCardHeader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2819
|
-
children
|
|
2820
|
-
}));
|
|
2821
|
-
});
|
|
2822
|
-
var _excluded$1 = ["children"];
|
|
2823
|
-
var StyledCardHeaderTitle = st.div.withConfig({
|
|
2824
|
-
displayName: "CardHeaderTitle__StyledCardHeaderTitle",
|
|
2825
|
-
componentId: "sc-11m80r3-0"
|
|
2826
|
-
})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
|
|
2827
|
-
var CardHeaderTitle = /* @__PURE__ */ forwardRef(function CardHeaderTitle2(_ref, ref) {
|
|
2828
|
-
var children = _ref.children, rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
2829
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2830
|
-
ref
|
|
2831
|
-
});
|
|
2832
|
-
return /* @__PURE__ */ jsx(StyledCardHeaderTitle, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2833
|
-
children
|
|
2834
|
-
}));
|
|
2835
|
-
});
|
|
2836
|
-
var Card2 = Card$1;
|
|
2837
|
-
Card2.Actions = CardActions;
|
|
2838
|
-
Card2.Content = CardContent;
|
|
2839
|
-
Card2.Header = CardHeader;
|
|
2840
|
-
Card2.Media = CardMedia;
|
|
2841
|
-
Card2.HeaderTitle = CardHeaderTitle;
|
|
2842
|
-
Card2.Actions.displayName = "Card.Actions";
|
|
2843
|
-
Card2.Content.displayName = "Card.Content";
|
|
2844
|
-
Card2.Header.displayName = "Card.Header";
|
|
2845
|
-
Card2.Media.displayName = "Card.Media";
|
|
2846
|
-
Card2.HeaderTitle.displayName = "Card.HeaderTitle";
|
|
2847
|
-
var logoFillPositive = tokens.colors.logo.fill_positive.rgba;
|
|
2848
|
-
var token = {
|
|
2849
|
-
background: logoFillPositive
|
|
2850
|
-
};
|
|
2851
|
-
var _excluded = ["variant", "value", "size"];
|
|
2852
|
-
var indeterminate = ct(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]);
|
|
2853
|
-
var determinate = ct(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]);
|
|
2854
|
-
var Svg = st.svg.withConfig({
|
|
2855
|
-
displayName: "StarProgress__Svg",
|
|
2856
|
-
componentId: "sc-c0byj9-0"
|
|
2857
|
-
})(["fill:", ";", ""], token.background, function(_ref) {
|
|
2858
|
-
var $variant = _ref.$variant, $progress = _ref.$progress;
|
|
2859
|
-
return $variant === "indeterminate" ? nt(["path{&:nth-child(1){animation:", " 1.3s linear infinite;}&:nth-child(2){animation:", " 1.3s linear 0.3s infinite;}&:nth-child(3){animation:", " 1.3s linear 0.4s infinite;}&:nth-child(4){animation:", " 1.3s linear 0.6s infinite;}&:nth-child(5){animation:", " 1.3s linear 0.8s infinite;}&:nth-child(6){animation:", " 1.3s linear 1s infinite;}}"], indeterminate, indeterminate, indeterminate, indeterminate, indeterminate, indeterminate) : nt(["path{animation:", " 1.3s linear;&:nth-child(6){animation-play-state:", ";}&:nth-child(5){animation-play-state:", ";}&:nth-child(4){animation-play-state:", ";}&:nth-child(3){animation-play-state:", ";}&:nth-child(2){animation-play-state:", ";}&:nth-child(1){animation-play-state:", ";}}"], determinate, $progress > 90 ? "running" : "paused", $progress > 80 ? "running" : "paused", $progress > 60 ? "running" : "paused", $progress > 40 ? "running" : "paused", $progress > 20 ? "running" : "paused", $progress <= 20 ? "running" : "paused");
|
|
2860
|
-
});
|
|
2861
|
-
var StarProgress = /* @__PURE__ */ forwardRef(function StarProgress2(_ref2, ref) {
|
|
2862
|
-
var _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "indeterminate" : _ref2$variant, _ref2$value = _ref2.value, value = _ref2$value === void 0 ? null : _ref2$value, _ref2$size = _ref2.size, size = _ref2$size === void 0 ? 48 : _ref2$size, rest = _objectWithoutProperties(_ref2, _excluded);
|
|
2863
|
-
var progress = Math.round(value);
|
|
2864
|
-
var height = size * 1.2;
|
|
2865
|
-
var width = size;
|
|
2866
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
2867
|
-
ref,
|
|
2868
|
-
$variant: variant,
|
|
2869
|
-
$progress: progress
|
|
2870
|
-
});
|
|
2871
|
-
if (variant === "determinate") {
|
|
2872
|
-
if (value !== void 0) {
|
|
2873
|
-
props["aria-valuenow"] = progress;
|
|
2874
|
-
props["aria-valuemin"] = 0;
|
|
2875
|
-
props["aria-valuemax"] = 100;
|
|
2876
|
-
}
|
|
2877
|
-
}
|
|
2878
|
-
return /* @__PURE__ */ jsxs(Svg, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2879
|
-
role: "progressbar",
|
|
2880
|
-
width,
|
|
2881
|
-
height,
|
|
2882
|
-
viewBox: "0 0 40 48",
|
|
2883
|
-
fill: "none",
|
|
2884
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2885
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
2886
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
2887
|
-
d: "M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"
|
|
2888
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2889
|
-
d: "M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"
|
|
2890
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2891
|
-
d: "M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"
|
|
2892
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2893
|
-
d: "M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"
|
|
2894
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2895
|
-
d: "M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"
|
|
2896
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2897
|
-
d: "M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"
|
|
2898
|
-
})]
|
|
2899
|
-
}));
|
|
2900
|
-
});
|
|
2901
127
|
function isFunction(value) {
|
|
2902
128
|
return typeof value === "function";
|
|
2903
129
|
}
|
|
@@ -3111,8 +337,8 @@ var Subscriber = function(_super) {
|
|
|
3111
337
|
}
|
|
3112
338
|
return _this;
|
|
3113
339
|
}
|
|
3114
|
-
Subscriber2.create = function(
|
|
3115
|
-
return new SafeSubscriber(
|
|
340
|
+
Subscriber2.create = function(next, error, complete) {
|
|
341
|
+
return new SafeSubscriber(next, error, complete);
|
|
3116
342
|
};
|
|
3117
343
|
Subscriber2.prototype.next = function(value) {
|
|
3118
344
|
if (this.isStopped)
|
|
@@ -3380,8 +606,8 @@ function requireReactIs_production_min() {
|
|
|
3380
606
|
if (hasRequiredReactIs_production_min)
|
|
3381
607
|
return reactIs_production_min;
|
|
3382
608
|
hasRequiredReactIs_production_min = 1;
|
|
3383
|
-
var
|
|
3384
|
-
function
|
|
609
|
+
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
610
|
+
function z(a) {
|
|
3385
611
|
if ("object" === typeof a && null !== a) {
|
|
3386
612
|
var u = a.$$typeof;
|
|
3387
613
|
switch (u) {
|
|
@@ -3391,12 +617,12 @@ function requireReactIs_production_min() {
|
|
|
3391
617
|
case m:
|
|
3392
618
|
case e:
|
|
3393
619
|
case g:
|
|
3394
|
-
case
|
|
3395
|
-
case
|
|
620
|
+
case f:
|
|
621
|
+
case p:
|
|
3396
622
|
return a;
|
|
3397
623
|
default:
|
|
3398
624
|
switch (a = a && a.$$typeof, a) {
|
|
3399
|
-
case
|
|
625
|
+
case k:
|
|
3400
626
|
case n:
|
|
3401
627
|
case t:
|
|
3402
628
|
case r:
|
|
@@ -3411,12 +637,12 @@ function requireReactIs_production_min() {
|
|
|
3411
637
|
}
|
|
3412
638
|
}
|
|
3413
639
|
}
|
|
3414
|
-
function
|
|
3415
|
-
return
|
|
640
|
+
function A(a) {
|
|
641
|
+
return z(a) === m;
|
|
3416
642
|
}
|
|
3417
643
|
reactIs_production_min.AsyncMode = l;
|
|
3418
644
|
reactIs_production_min.ConcurrentMode = m;
|
|
3419
|
-
reactIs_production_min.ContextConsumer =
|
|
645
|
+
reactIs_production_min.ContextConsumer = k;
|
|
3420
646
|
reactIs_production_min.ContextProvider = h;
|
|
3421
647
|
reactIs_production_min.Element = c;
|
|
3422
648
|
reactIs_production_min.ForwardRef = n;
|
|
@@ -3425,49 +651,49 @@ function requireReactIs_production_min() {
|
|
|
3425
651
|
reactIs_production_min.Memo = r;
|
|
3426
652
|
reactIs_production_min.Portal = d;
|
|
3427
653
|
reactIs_production_min.Profiler = g;
|
|
3428
|
-
reactIs_production_min.StrictMode =
|
|
3429
|
-
reactIs_production_min.Suspense =
|
|
654
|
+
reactIs_production_min.StrictMode = f;
|
|
655
|
+
reactIs_production_min.Suspense = p;
|
|
3430
656
|
reactIs_production_min.isAsyncMode = function(a) {
|
|
3431
|
-
return
|
|
657
|
+
return A(a) || z(a) === l;
|
|
3432
658
|
};
|
|
3433
|
-
reactIs_production_min.isConcurrentMode =
|
|
659
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
3434
660
|
reactIs_production_min.isContextConsumer = function(a) {
|
|
3435
|
-
return
|
|
661
|
+
return z(a) === k;
|
|
3436
662
|
};
|
|
3437
663
|
reactIs_production_min.isContextProvider = function(a) {
|
|
3438
|
-
return
|
|
664
|
+
return z(a) === h;
|
|
3439
665
|
};
|
|
3440
666
|
reactIs_production_min.isElement = function(a) {
|
|
3441
667
|
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
3442
668
|
};
|
|
3443
669
|
reactIs_production_min.isForwardRef = function(a) {
|
|
3444
|
-
return
|
|
670
|
+
return z(a) === n;
|
|
3445
671
|
};
|
|
3446
672
|
reactIs_production_min.isFragment = function(a) {
|
|
3447
|
-
return
|
|
673
|
+
return z(a) === e;
|
|
3448
674
|
};
|
|
3449
675
|
reactIs_production_min.isLazy = function(a) {
|
|
3450
|
-
return
|
|
676
|
+
return z(a) === t;
|
|
3451
677
|
};
|
|
3452
678
|
reactIs_production_min.isMemo = function(a) {
|
|
3453
|
-
return
|
|
679
|
+
return z(a) === r;
|
|
3454
680
|
};
|
|
3455
681
|
reactIs_production_min.isPortal = function(a) {
|
|
3456
|
-
return
|
|
682
|
+
return z(a) === d;
|
|
3457
683
|
};
|
|
3458
684
|
reactIs_production_min.isProfiler = function(a) {
|
|
3459
|
-
return
|
|
685
|
+
return z(a) === g;
|
|
3460
686
|
};
|
|
3461
687
|
reactIs_production_min.isStrictMode = function(a) {
|
|
3462
|
-
return
|
|
688
|
+
return z(a) === f;
|
|
3463
689
|
};
|
|
3464
690
|
reactIs_production_min.isSuspense = function(a) {
|
|
3465
|
-
return
|
|
691
|
+
return z(a) === p;
|
|
3466
692
|
};
|
|
3467
693
|
reactIs_production_min.isValidElementType = function(a) {
|
|
3468
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a ===
|
|
694
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
3469
695
|
};
|
|
3470
|
-
reactIs_production_min.typeOf =
|
|
696
|
+
reactIs_production_min.typeOf = z;
|
|
3471
697
|
return reactIs_production_min;
|
|
3472
698
|
}
|
|
3473
699
|
var reactIs_development = {};
|
|
@@ -3749,9 +975,9 @@ var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
|
3749
975
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
3750
976
|
function parseDateTimeSkeleton(skeleton) {
|
|
3751
977
|
var result = {};
|
|
3752
|
-
skeleton.replace(DATE_TIME_REGEX, function(
|
|
3753
|
-
var len =
|
|
3754
|
-
switch (
|
|
978
|
+
skeleton.replace(DATE_TIME_REGEX, function(match) {
|
|
979
|
+
var len = match.length;
|
|
980
|
+
switch (match[0]) {
|
|
3755
981
|
case "G":
|
|
3756
982
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
3757
983
|
break;
|
|
@@ -3850,8 +1076,8 @@ function parseNumberSkeletonFromString(skeleton) {
|
|
|
3850
1076
|
if (skeleton.length === 0) {
|
|
3851
1077
|
throw new Error("Number skeleton cannot be empty");
|
|
3852
1078
|
}
|
|
3853
|
-
var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(
|
|
3854
|
-
return
|
|
1079
|
+
var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x) {
|
|
1080
|
+
return x.length > 0;
|
|
3855
1081
|
});
|
|
3856
1082
|
var tokens2 = [];
|
|
3857
1083
|
for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
|
|
@@ -3885,7 +1111,7 @@ function parseSignificantPrecision(str) {
|
|
|
3885
1111
|
} else if (str[str.length - 1] === "s") {
|
|
3886
1112
|
result.roundingPriority = "lessPrecision";
|
|
3887
1113
|
}
|
|
3888
|
-
str.replace(SIGNIFICANT_PRECISION_REGEX, function(
|
|
1114
|
+
str.replace(SIGNIFICANT_PRECISION_REGEX, function(_, g1, g2) {
|
|
3889
1115
|
if (typeof g2 !== "string") {
|
|
3890
1116
|
result.minimumSignificantDigits = g1.length;
|
|
3891
1117
|
result.maximumSignificantDigits = g1.length;
|
|
@@ -3981,8 +1207,8 @@ function parseNotationOptions(opt) {
|
|
|
3981
1207
|
function parseNumberSkeleton(tokens2) {
|
|
3982
1208
|
var result = {};
|
|
3983
1209
|
for (var _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) {
|
|
3984
|
-
var
|
|
3985
|
-
switch (
|
|
1210
|
+
var token = tokens_1[_i];
|
|
1211
|
+
switch (token.stem) {
|
|
3986
1212
|
case "percent":
|
|
3987
1213
|
case "%":
|
|
3988
1214
|
result.style = "percent";
|
|
@@ -3993,7 +1219,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
3993
1219
|
continue;
|
|
3994
1220
|
case "currency":
|
|
3995
1221
|
result.style = "currency";
|
|
3996
|
-
result.currency =
|
|
1222
|
+
result.currency = token.options[0];
|
|
3997
1223
|
continue;
|
|
3998
1224
|
case "group-off":
|
|
3999
1225
|
case ",_":
|
|
@@ -4006,7 +1232,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4006
1232
|
case "measure-unit":
|
|
4007
1233
|
case "unit":
|
|
4008
1234
|
result.style = "unit";
|
|
4009
|
-
result.unit = icuUnitToEcma(
|
|
1235
|
+
result.unit = icuUnitToEcma(token.options[0]);
|
|
4010
1236
|
continue;
|
|
4011
1237
|
case "compact-short":
|
|
4012
1238
|
case "K":
|
|
@@ -4019,12 +1245,12 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4019
1245
|
result.compactDisplay = "long";
|
|
4020
1246
|
continue;
|
|
4021
1247
|
case "scientific":
|
|
4022
|
-
result = __assign(__assign(__assign({}, result), { notation: "scientific" }),
|
|
1248
|
+
result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token.options.reduce(function(all, opt2) {
|
|
4023
1249
|
return __assign(__assign({}, all), parseNotationOptions(opt2));
|
|
4024
1250
|
}, {}));
|
|
4025
1251
|
continue;
|
|
4026
1252
|
case "engineering":
|
|
4027
|
-
result = __assign(__assign(__assign({}, result), { notation: "engineering" }),
|
|
1253
|
+
result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token.options.reduce(function(all, opt2) {
|
|
4028
1254
|
return __assign(__assign({}, all), parseNotationOptions(opt2));
|
|
4029
1255
|
}, {}));
|
|
4030
1256
|
continue;
|
|
@@ -4047,13 +1273,13 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4047
1273
|
result.currencyDisplay = "symbol";
|
|
4048
1274
|
continue;
|
|
4049
1275
|
case "scale":
|
|
4050
|
-
result.scale = parseFloat(
|
|
1276
|
+
result.scale = parseFloat(token.options[0]);
|
|
4051
1277
|
continue;
|
|
4052
1278
|
case "integer-width":
|
|
4053
|
-
if (
|
|
1279
|
+
if (token.options.length > 1) {
|
|
4054
1280
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
4055
1281
|
}
|
|
4056
|
-
|
|
1282
|
+
token.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
|
|
4057
1283
|
if (g1) {
|
|
4058
1284
|
result.minimumIntegerDigits = g2.length;
|
|
4059
1285
|
} else if (g3 && g4) {
|
|
@@ -4065,15 +1291,15 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4065
1291
|
});
|
|
4066
1292
|
continue;
|
|
4067
1293
|
}
|
|
4068
|
-
if (CONCISE_INTEGER_WIDTH_REGEX.test(
|
|
4069
|
-
result.minimumIntegerDigits =
|
|
1294
|
+
if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {
|
|
1295
|
+
result.minimumIntegerDigits = token.stem.length;
|
|
4070
1296
|
continue;
|
|
4071
1297
|
}
|
|
4072
|
-
if (FRACTION_PRECISION_REGEX.test(
|
|
4073
|
-
if (
|
|
1298
|
+
if (FRACTION_PRECISION_REGEX.test(token.stem)) {
|
|
1299
|
+
if (token.options.length > 1) {
|
|
4074
1300
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
4075
1301
|
}
|
|
4076
|
-
|
|
1302
|
+
token.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
|
|
4077
1303
|
if (g2 === "*") {
|
|
4078
1304
|
result.minimumFractionDigits = g1.length;
|
|
4079
1305
|
} else if (g3 && g3[0] === "#") {
|
|
@@ -4087,7 +1313,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4087
1313
|
}
|
|
4088
1314
|
return "";
|
|
4089
1315
|
});
|
|
4090
|
-
var opt =
|
|
1316
|
+
var opt = token.options[0];
|
|
4091
1317
|
if (opt === "w") {
|
|
4092
1318
|
result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" });
|
|
4093
1319
|
} else if (opt) {
|
|
@@ -4095,15 +1321,15 @@ function parseNumberSkeleton(tokens2) {
|
|
|
4095
1321
|
}
|
|
4096
1322
|
continue;
|
|
4097
1323
|
}
|
|
4098
|
-
if (SIGNIFICANT_PRECISION_REGEX.test(
|
|
4099
|
-
result = __assign(__assign({}, result), parseSignificantPrecision(
|
|
1324
|
+
if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {
|
|
1325
|
+
result = __assign(__assign({}, result), parseSignificantPrecision(token.stem));
|
|
4100
1326
|
continue;
|
|
4101
1327
|
}
|
|
4102
|
-
var signOpts = parseSign(
|
|
1328
|
+
var signOpts = parseSign(token.stem);
|
|
4103
1329
|
if (signOpts) {
|
|
4104
1330
|
result = __assign(__assign({}, result), signOpts);
|
|
4105
1331
|
}
|
|
4106
|
-
var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(
|
|
1332
|
+
var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);
|
|
4107
1333
|
if (conciseScientificAndEngineeringOpts) {
|
|
4108
1334
|
result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts);
|
|
4109
1335
|
}
|
|
@@ -5599,18 +2825,18 @@ var REGEX_SUPPORTS_U_AND_Y = true;
|
|
|
5599
2825
|
try {
|
|
5600
2826
|
var re = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5601
2827
|
REGEX_SUPPORTS_U_AND_Y = ((_a = re.exec("a")) === null || _a === void 0 ? void 0 : _a[0]) === "a";
|
|
5602
|
-
} catch (
|
|
2828
|
+
} catch (_) {
|
|
5603
2829
|
REGEX_SUPPORTS_U_AND_Y = false;
|
|
5604
2830
|
}
|
|
5605
2831
|
var startsWith = hasNativeStartsWith ? (
|
|
5606
2832
|
// Native
|
|
5607
|
-
function startsWith2(s, search,
|
|
5608
|
-
return s.startsWith(search,
|
|
2833
|
+
function startsWith2(s, search, position) {
|
|
2834
|
+
return s.startsWith(search, position);
|
|
5609
2835
|
}
|
|
5610
2836
|
) : (
|
|
5611
2837
|
// For IE11
|
|
5612
|
-
function startsWith3(s, search,
|
|
5613
|
-
return s.slice(
|
|
2838
|
+
function startsWith3(s, search, position) {
|
|
2839
|
+
return s.slice(position, position + search.length) === search;
|
|
5614
2840
|
}
|
|
5615
2841
|
);
|
|
5616
2842
|
var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
|
|
@@ -5621,10 +2847,10 @@ var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
|
|
|
5621
2847
|
codePoints[_i] = arguments[_i];
|
|
5622
2848
|
}
|
|
5623
2849
|
var elements = "";
|
|
5624
|
-
var
|
|
2850
|
+
var length = codePoints.length;
|
|
5625
2851
|
var i = 0;
|
|
5626
2852
|
var code;
|
|
5627
|
-
while (
|
|
2853
|
+
while (length > i) {
|
|
5628
2854
|
code = codePoints[i++];
|
|
5629
2855
|
if (code > 1114111)
|
|
5630
2856
|
throw RangeError(code + " is not a valid code point");
|
|
@@ -5640,8 +2866,8 @@ var fromEntries = (
|
|
|
5640
2866
|
function fromEntries2(entries) {
|
|
5641
2867
|
var obj = {};
|
|
5642
2868
|
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
5643
|
-
var _a2 = entries_1[_i],
|
|
5644
|
-
obj[
|
|
2869
|
+
var _a2 = entries_1[_i], k = _a2[0], v = _a2[1];
|
|
2870
|
+
obj[k] = v;
|
|
5645
2871
|
}
|
|
5646
2872
|
return obj;
|
|
5647
2873
|
}
|
|
@@ -5695,21 +2921,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
|
|
|
5695
2921
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
|
|
5696
2922
|
var _a2;
|
|
5697
2923
|
IDENTIFIER_PREFIX_RE_1.lastIndex = index;
|
|
5698
|
-
var
|
|
5699
|
-
return (_a2 =
|
|
2924
|
+
var match = IDENTIFIER_PREFIX_RE_1.exec(s);
|
|
2925
|
+
return (_a2 = match[1]) !== null && _a2 !== void 0 ? _a2 : "";
|
|
5700
2926
|
};
|
|
5701
2927
|
} else {
|
|
5702
2928
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s, index) {
|
|
5703
|
-
var
|
|
2929
|
+
var match = [];
|
|
5704
2930
|
while (true) {
|
|
5705
2931
|
var c = codePointAt(s, index);
|
|
5706
2932
|
if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c)) {
|
|
5707
2933
|
break;
|
|
5708
2934
|
}
|
|
5709
|
-
|
|
2935
|
+
match.push(c);
|
|
5710
2936
|
index += c >= 65536 ? 2 : 1;
|
|
5711
2937
|
}
|
|
5712
|
-
return fromCodePoint.apply(void 0,
|
|
2938
|
+
return fromCodePoint.apply(void 0, match);
|
|
5713
2939
|
};
|
|
5714
2940
|
}
|
|
5715
2941
|
var Parser = (
|
|
@@ -5735,29 +2961,29 @@ var Parser = (
|
|
|
5735
2961
|
Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
|
|
5736
2962
|
var elements = [];
|
|
5737
2963
|
while (!this.isEOF()) {
|
|
5738
|
-
var
|
|
5739
|
-
if (
|
|
2964
|
+
var char = this.char();
|
|
2965
|
+
if (char === 123) {
|
|
5740
2966
|
var result = this.parseArgument(nestingLevel, expectingCloseTag);
|
|
5741
2967
|
if (result.err) {
|
|
5742
2968
|
return result;
|
|
5743
2969
|
}
|
|
5744
2970
|
elements.push(result.val);
|
|
5745
|
-
} else if (
|
|
2971
|
+
} else if (char === 125 && nestingLevel > 0) {
|
|
5746
2972
|
break;
|
|
5747
|
-
} else if (
|
|
5748
|
-
var
|
|
2973
|
+
} else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
|
|
2974
|
+
var position = this.clonePosition();
|
|
5749
2975
|
this.bump();
|
|
5750
2976
|
elements.push({
|
|
5751
2977
|
type: TYPE.pound,
|
|
5752
|
-
location: createLocation(
|
|
2978
|
+
location: createLocation(position, this.clonePosition())
|
|
5753
2979
|
});
|
|
5754
|
-
} else if (
|
|
2980
|
+
} else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5755
2981
|
if (expectingCloseTag) {
|
|
5756
2982
|
break;
|
|
5757
2983
|
} else {
|
|
5758
2984
|
return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
|
|
5759
2985
|
}
|
|
5760
|
-
} else if (
|
|
2986
|
+
} else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
|
|
5761
2987
|
var result = this.parseTag(nestingLevel, parentArgType);
|
|
5762
2988
|
if (result.err) {
|
|
5763
2989
|
return result;
|
|
@@ -6310,9 +3536,9 @@ var Parser = (
|
|
|
6310
3536
|
this.position.offset += code < 65536 ? 1 : 2;
|
|
6311
3537
|
}
|
|
6312
3538
|
};
|
|
6313
|
-
Parser2.prototype.bumpIf = function(
|
|
6314
|
-
if (startsWith(this.message,
|
|
6315
|
-
for (var i = 0; i <
|
|
3539
|
+
Parser2.prototype.bumpIf = function(prefix) {
|
|
3540
|
+
if (startsWith(this.message, prefix, this.offset())) {
|
|
3541
|
+
for (var i = 0; i < prefix.length; i++) {
|
|
6316
3542
|
this.bump();
|
|
6317
3543
|
}
|
|
6318
3544
|
return true;
|
|
@@ -6385,9 +3611,9 @@ function pruneLocation(els) {
|
|
|
6385
3611
|
els.forEach(function(el) {
|
|
6386
3612
|
delete el.location;
|
|
6387
3613
|
if (isSelectElement(el) || isPluralElement(el)) {
|
|
6388
|
-
for (var
|
|
6389
|
-
delete el.options[
|
|
6390
|
-
pruneLocation(el.options[
|
|
3614
|
+
for (var k in el.options) {
|
|
3615
|
+
delete el.options[k].location;
|
|
3616
|
+
pruneLocation(el.options[k].value);
|
|
6391
3617
|
}
|
|
6392
3618
|
} else if (isNumberElement(el) && isNumberSkeleton(el.style)) {
|
|
6393
3619
|
delete el.style.location;
|
|
@@ -6446,8 +3672,8 @@ function variadic(fn, cache, serializer) {
|
|
|
6446
3672
|
}
|
|
6447
3673
|
return computedValue;
|
|
6448
3674
|
}
|
|
6449
|
-
function assemble(fn, context, strategy, cache,
|
|
6450
|
-
return strategy.bind(context, fn, cache,
|
|
3675
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
3676
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
6451
3677
|
}
|
|
6452
3678
|
function strategyDefault(fn, options) {
|
|
6453
3679
|
var strategy = fn.length === 1 ? monadic : variadic;
|
|
@@ -6631,8 +3857,8 @@ function formatToParts(els, locales, formatters, formats, values, currentPluralV
|
|
|
6631
3857
|
throw new InvalidValueTypeError(value_1, "function", originalMessage);
|
|
6632
3858
|
}
|
|
6633
3859
|
var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue);
|
|
6634
|
-
var chunks = formatFn(parts.map(function(
|
|
6635
|
-
return
|
|
3860
|
+
var chunks = formatFn(parts.map(function(p) {
|
|
3861
|
+
return p.value;
|
|
6636
3862
|
}));
|
|
6637
3863
|
if (!Array.isArray(chunks)) {
|
|
6638
3864
|
chunks = [chunks];
|
|
@@ -6674,8 +3900,8 @@ function mergeConfig(c1, c2) {
|
|
|
6674
3900
|
if (!c2) {
|
|
6675
3901
|
return c1;
|
|
6676
3902
|
}
|
|
6677
|
-
return __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all,
|
|
6678
|
-
all[
|
|
3903
|
+
return __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) {
|
|
3904
|
+
all[k] = __assign(__assign({}, c1[k]), c2[k] || {});
|
|
6679
3905
|
return all;
|
|
6680
3906
|
}, {}));
|
|
6681
3907
|
}
|
|
@@ -6683,8 +3909,8 @@ function mergeConfigs(defaultConfig, configs) {
|
|
|
6683
3909
|
if (!configs) {
|
|
6684
3910
|
return defaultConfig;
|
|
6685
3911
|
}
|
|
6686
|
-
return Object.keys(defaultConfig).reduce(function(all,
|
|
6687
|
-
all[
|
|
3912
|
+
return Object.keys(defaultConfig).reduce(function(all, k) {
|
|
3913
|
+
all[k] = mergeConfig(defaultConfig[k], configs[k]);
|
|
6688
3914
|
return all;
|
|
6689
3915
|
}, __assign({}, defaultConfig));
|
|
6690
3916
|
}
|
|
@@ -6798,7 +4024,7 @@ var IntlMessageFormat = (
|
|
|
6798
4024
|
}
|
|
6799
4025
|
var _a2 = opts || {};
|
|
6800
4026
|
_a2.formatters;
|
|
6801
|
-
var parseOpts = __rest
|
|
4027
|
+
var parseOpts = __rest(_a2, ["formatters"]);
|
|
6802
4028
|
this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale }));
|
|
6803
4029
|
} else {
|
|
6804
4030
|
this.ast = message;
|
|
@@ -7006,9 +4232,9 @@ var defaultErrorHandler = function(error) {
|
|
|
7006
4232
|
console.error(error);
|
|
7007
4233
|
}
|
|
7008
4234
|
};
|
|
7009
|
-
var defaultWarnHandler = function(
|
|
4235
|
+
var defaultWarnHandler = function(warning) {
|
|
7010
4236
|
if (process.env.NODE_ENV !== "production") {
|
|
7011
|
-
console.warn(
|
|
4237
|
+
console.warn(warning);
|
|
7012
4238
|
}
|
|
7013
4239
|
};
|
|
7014
4240
|
var DEFAULT_INTL_CONFIG$1 = {
|
|
@@ -7144,15 +4370,15 @@ function getNamedFormat(formats, type, name, onError) {
|
|
|
7144
4370
|
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
7145
4371
|
}
|
|
7146
4372
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
7147
|
-
return Object.keys(opts).reduce(function(all,
|
|
7148
|
-
all[
|
|
4373
|
+
return Object.keys(opts).reduce(function(all, k) {
|
|
4374
|
+
all[k] = __assign({ timeZone }, opts[k]);
|
|
7149
4375
|
return all;
|
|
7150
4376
|
}, {});
|
|
7151
4377
|
}
|
|
7152
4378
|
function deepMergeOptions(opts1, opts2) {
|
|
7153
4379
|
var keys = Object.keys(__assign(__assign({}, opts1), opts2));
|
|
7154
|
-
return keys.reduce(function(all,
|
|
7155
|
-
all[
|
|
4380
|
+
return keys.reduce(function(all, k) {
|
|
4381
|
+
all[k] = __assign(__assign({}, opts1[k] || {}), opts2[k] || {});
|
|
7156
4382
|
return all;
|
|
7157
4383
|
}, {});
|
|
7158
4384
|
}
|
|
@@ -7293,15 +4519,15 @@ function formatDateTimeRange(config2, getDateTimeFormat) {
|
|
|
7293
4519
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
7294
4520
|
_a2[_i - 2] = arguments[_i];
|
|
7295
4521
|
}
|
|
7296
|
-
var
|
|
4522
|
+
var from = _a2[0], to = _a2[1], _b = _a2[2], options = _b === void 0 ? {} : _b;
|
|
7297
4523
|
var timeZone = config2.timeZone, locale = config2.locale, onError = config2.onError;
|
|
7298
4524
|
var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, timeZone ? { timeZone } : {});
|
|
7299
4525
|
try {
|
|
7300
|
-
return getDateTimeFormat(locale, filteredOptions).formatRange(
|
|
4526
|
+
return getDateTimeFormat(locale, filteredOptions).formatRange(from, to);
|
|
7301
4527
|
} catch (e) {
|
|
7302
4528
|
onError(new IntlFormatError("Error formatting date time range.", config2.locale, e));
|
|
7303
4529
|
}
|
|
7304
|
-
return String(
|
|
4530
|
+
return String(from);
|
|
7305
4531
|
}
|
|
7306
4532
|
function formatDateToParts(config2, getDateTimeFormat) {
|
|
7307
4533
|
var _a2 = [];
|
|
@@ -7387,13 +4613,13 @@ function formatListToParts(_a2, getListFormat, values, options) {
|
|
|
7387
4613
|
var filteredOptions = filterProps(options, LIST_FORMAT_OPTIONS);
|
|
7388
4614
|
try {
|
|
7389
4615
|
var richValues_1 = {};
|
|
7390
|
-
var serializedValues = values.map(function(
|
|
7391
|
-
if (typeof
|
|
4616
|
+
var serializedValues = values.map(function(v, i) {
|
|
4617
|
+
if (typeof v === "object") {
|
|
7392
4618
|
var id = generateToken(i);
|
|
7393
|
-
richValues_1[id] =
|
|
4619
|
+
richValues_1[id] = v;
|
|
7394
4620
|
return id;
|
|
7395
4621
|
}
|
|
7396
|
-
return String(
|
|
4622
|
+
return String(v);
|
|
7397
4623
|
});
|
|
7398
4624
|
return getListFormat(locale, filteredOptions).formatToParts(serializedValues).map(function(part) {
|
|
7399
4625
|
return part.type === "literal" ? part : __assign(__assign({}, part), { value: richValues_1[part.value] || part.value });
|
|
@@ -7556,7 +4782,7 @@ function assignUniqueKeysToParts(formatXMLElementFn) {
|
|
|
7556
4782
|
return formatXMLElementFn(React.Children.toArray(parts));
|
|
7557
4783
|
};
|
|
7558
4784
|
}
|
|
7559
|
-
function
|
|
4785
|
+
function shallowEqual(objA, objB) {
|
|
7560
4786
|
if (objA === objB) {
|
|
7561
4787
|
return true;
|
|
7562
4788
|
}
|
|
@@ -7605,7 +4831,7 @@ var DisplayNameParts;
|
|
|
7605
4831
|
function createFormattedDateTimePartsComponent(name) {
|
|
7606
4832
|
var ComponentParts = function(props) {
|
|
7607
4833
|
var intl = useIntl();
|
|
7608
|
-
var value = props.value, children = props.children, formatProps = __rest
|
|
4834
|
+
var value = props.value, children = props.children, formatProps = __rest(props, ["value", "children"]);
|
|
7609
4835
|
var date = typeof value === "string" ? new Date(value || 0) : value;
|
|
7610
4836
|
var formattedParts = name === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
|
|
7611
4837
|
return children(formattedParts);
|
|
@@ -7616,7 +4842,7 @@ function createFormattedDateTimePartsComponent(name) {
|
|
|
7616
4842
|
function createFormattedComponent(name) {
|
|
7617
4843
|
var Component = function(props) {
|
|
7618
4844
|
var intl = useIntl();
|
|
7619
|
-
var value = props.value, children = props.children, formatProps = __rest
|
|
4845
|
+
var value = props.value, children = props.children, formatProps = __rest(
|
|
7620
4846
|
props,
|
|
7621
4847
|
["value", "children"]
|
|
7622
4848
|
);
|
|
@@ -7650,9 +4876,9 @@ function assignUniqueKeysToFormatXMLElementFnArgument(values) {
|
|
|
7650
4876
|
if (!values) {
|
|
7651
4877
|
return values;
|
|
7652
4878
|
}
|
|
7653
|
-
return Object.keys(values).reduce(function(acc,
|
|
7654
|
-
var
|
|
7655
|
-
acc[
|
|
4879
|
+
return Object.keys(values).reduce(function(acc, k) {
|
|
4880
|
+
var v = values[k];
|
|
4881
|
+
acc[k] = isFormatXMLElementFn(v) ? assignUniqueKeysToParts(v) : v;
|
|
7656
4882
|
return acc;
|
|
7657
4883
|
}, {});
|
|
7658
4884
|
}
|
|
@@ -7674,7 +4900,7 @@ var formatMessage = function(config2, formatters, descriptor, rawValues) {
|
|
|
7674
4900
|
return chunks;
|
|
7675
4901
|
};
|
|
7676
4902
|
var createIntl = function(_a2, cache) {
|
|
7677
|
-
var rawDefaultRichTextElements = _a2.defaultRichTextElements, config2 = __rest
|
|
4903
|
+
var rawDefaultRichTextElements = _a2.defaultRichTextElements, config2 = __rest(_a2, ["defaultRichTextElements"]);
|
|
7678
4904
|
var defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(rawDefaultRichTextElements);
|
|
7679
4905
|
var coreIntl = createIntl$1(__assign(__assign(__assign({}, DEFAULT_INTL_CONFIG), config2), { defaultRichTextElements }), cache);
|
|
7680
4906
|
var resolvedConfig = {
|
|
@@ -7712,7 +4938,7 @@ var IntlProvider = (
|
|
|
7712
4938
|
IntlProvider2.getDerivedStateFromProps = function(props, _a2) {
|
|
7713
4939
|
var prevConfig = _a2.prevConfig, cache = _a2.cache;
|
|
7714
4940
|
var config2 = processIntlConfig(props);
|
|
7715
|
-
if (!
|
|
4941
|
+
if (!shallowEqual(prevConfig, config2)) {
|
|
7716
4942
|
return {
|
|
7717
4943
|
intl: createIntl(config2, cache),
|
|
7718
4944
|
prevConfig: config2
|
|
@@ -7782,9 +5008,9 @@ const EquinorLoader = ({
|
|
|
7782
5008
|
);
|
|
7783
5009
|
};
|
|
7784
5010
|
const ErrorViewer = ({ error }) => {
|
|
7785
|
-
return /* @__PURE__ */ jsxs(
|
|
7786
|
-
/* @__PURE__ */ jsx(
|
|
7787
|
-
/* @__PURE__ */ jsx(
|
|
5011
|
+
return /* @__PURE__ */ jsxs(Card, { variant: "warning", style: { width: 800 }, children: [
|
|
5012
|
+
/* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx(Typography, { variant: "h4", color: "warning", children: error.message }) }),
|
|
5013
|
+
/* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsx("pre", { style: { whiteSpace: "pre-wrap" }, children: error.stack ?? "Error" }) })
|
|
7788
5014
|
] });
|
|
7789
5015
|
};
|
|
7790
5016
|
function getAppModule(app, framework) {
|
|
@@ -7809,7 +5035,7 @@ function AppLoader({
|
|
|
7809
5035
|
}) {
|
|
7810
5036
|
const queryClient = useQueryClient();
|
|
7811
5037
|
kind = kind ?? "widget";
|
|
7812
|
-
const { setCurrentApp, clearCurrentApp } = useCurrentApp();
|
|
5038
|
+
const { setCurrentApp, clearCurrentApp, currentApp } = useCurrentApp();
|
|
7813
5039
|
const framework = useFramework();
|
|
7814
5040
|
const [error, setError] = useState(null);
|
|
7815
5041
|
const [loading, setLoading] = useState(false);
|
|
@@ -7824,8 +5050,8 @@ function AppLoader({
|
|
|
7824
5050
|
const [basename] = window.location.pathname.match(
|
|
7825
5051
|
/\/?apps\/[a-z|-]+(\/)?/g
|
|
7826
5052
|
) ?? [""];
|
|
7827
|
-
lastValueFrom(appModuleScript).then((
|
|
7828
|
-
const script =
|
|
5053
|
+
lastValueFrom(appModuleScript).then((x) => {
|
|
5054
|
+
const script = x.script;
|
|
7829
5055
|
const render = script.renderApp ?? script.default;
|
|
7830
5056
|
render(el, {
|
|
7831
5057
|
query: queryClient,
|
|
@@ -7858,7 +5084,6 @@ function AppLoader({
|
|
|
7858
5084
|
}
|
|
7859
5085
|
setLoading(true);
|
|
7860
5086
|
const el = document.createElement("div");
|
|
7861
|
-
el.style.height = "30%";
|
|
7862
5087
|
(_a2 = ref.current) == null ? void 0 : _a2.appendChild(el);
|
|
7863
5088
|
const appModule = renderApplication(el);
|
|
7864
5089
|
setLoading(false);
|
|
@@ -7869,7 +5094,8 @@ function AppLoader({
|
|
|
7869
5094
|
} catch {
|
|
7870
5095
|
}
|
|
7871
5096
|
appModule.dispose();
|
|
7872
|
-
|
|
5097
|
+
if (kind === "app")
|
|
5098
|
+
clearCurrentApp();
|
|
7873
5099
|
};
|
|
7874
5100
|
}, [app]);
|
|
7875
5101
|
const ref = useRef(null);
|
|
@@ -7930,280 +5156,54 @@ function useParams() {
|
|
|
7930
5156
|
matches
|
|
7931
5157
|
} = React.useContext(RouteContext);
|
|
7932
5158
|
let routeMatch = matches[matches.length - 1];
|
|
7933
|
-
return routeMatch ? routeMatch.params : {};
|
|
7934
|
-
}
|
|
7935
|
-
new Promise(() => {
|
|
7936
|
-
});
|
|
7937
|
-
const AppViewer = () => {
|
|
7938
|
-
const { appKey } = useParams();
|
|
7939
|
-
const { apps } = useApps({ includeHidden: true });
|
|
7940
|
-
const app = useMemo(() => {
|
|
7941
|
-
return apps == null ? void 0 : apps.find((app2) => app2.key === appKey);
|
|
7942
|
-
}, [appKey, apps]);
|
|
7943
|
-
if (!apps) {
|
|
7944
|
-
return /* @__PURE__ */ jsx(EquinorLoader, { text: "Loading apps..." });
|
|
7945
|
-
}
|
|
7946
|
-
if (!app) {
|
|
7947
|
-
return /* @__PURE__ */ jsx(ErrorViewer, { error: new Error("App not found") });
|
|
7948
|
-
}
|
|
7949
|
-
return /* @__PURE__ */ jsx(AppLoader, { app, kind: "app" });
|
|
7950
|
-
};
|
|
7951
|
-
async function getBytes(stream, onChunk) {
|
|
7952
|
-
const reader = stream.getReader();
|
|
7953
|
-
let result;
|
|
7954
|
-
while (!(result = await reader.read()).done) {
|
|
7955
|
-
onChunk(result.value);
|
|
7956
|
-
}
|
|
7957
|
-
}
|
|
7958
|
-
function getLines(onLine) {
|
|
7959
|
-
let buffer;
|
|
7960
|
-
let position2;
|
|
7961
|
-
let fieldLength;
|
|
7962
|
-
let discardTrailingNewline = false;
|
|
7963
|
-
return function onChunk(arr) {
|
|
7964
|
-
if (buffer === void 0) {
|
|
7965
|
-
buffer = arr;
|
|
7966
|
-
position2 = 0;
|
|
7967
|
-
fieldLength = -1;
|
|
7968
|
-
} else {
|
|
7969
|
-
buffer = concat(buffer, arr);
|
|
7970
|
-
}
|
|
7971
|
-
const bufLength = buffer.length;
|
|
7972
|
-
let lineStart = 0;
|
|
7973
|
-
while (position2 < bufLength) {
|
|
7974
|
-
if (discardTrailingNewline) {
|
|
7975
|
-
if (buffer[position2] === 10) {
|
|
7976
|
-
lineStart = ++position2;
|
|
7977
|
-
}
|
|
7978
|
-
discardTrailingNewline = false;
|
|
7979
|
-
}
|
|
7980
|
-
let lineEnd = -1;
|
|
7981
|
-
for (; position2 < bufLength && lineEnd === -1; ++position2) {
|
|
7982
|
-
switch (buffer[position2]) {
|
|
7983
|
-
case 58:
|
|
7984
|
-
if (fieldLength === -1) {
|
|
7985
|
-
fieldLength = position2 - lineStart;
|
|
7986
|
-
}
|
|
7987
|
-
break;
|
|
7988
|
-
case 13:
|
|
7989
|
-
discardTrailingNewline = true;
|
|
7990
|
-
case 10:
|
|
7991
|
-
lineEnd = position2;
|
|
7992
|
-
break;
|
|
7993
|
-
}
|
|
7994
|
-
}
|
|
7995
|
-
if (lineEnd === -1) {
|
|
7996
|
-
break;
|
|
7997
|
-
}
|
|
7998
|
-
onLine(buffer.subarray(lineStart, lineEnd), fieldLength);
|
|
7999
|
-
lineStart = position2;
|
|
8000
|
-
fieldLength = -1;
|
|
8001
|
-
}
|
|
8002
|
-
if (lineStart === bufLength) {
|
|
8003
|
-
buffer = void 0;
|
|
8004
|
-
} else if (lineStart !== 0) {
|
|
8005
|
-
buffer = buffer.subarray(lineStart);
|
|
8006
|
-
position2 -= lineStart;
|
|
8007
|
-
}
|
|
8008
|
-
};
|
|
8009
|
-
}
|
|
8010
|
-
function getMessages(onId, onRetry, onMessage) {
|
|
8011
|
-
let message = newMessage();
|
|
8012
|
-
const decoder = new TextDecoder();
|
|
8013
|
-
return function onLine(line2, fieldLength) {
|
|
8014
|
-
if (line2.length === 0) {
|
|
8015
|
-
onMessage === null || onMessage === void 0 ? void 0 : onMessage(message);
|
|
8016
|
-
message = newMessage();
|
|
8017
|
-
} else if (fieldLength > 0) {
|
|
8018
|
-
const field = decoder.decode(line2.subarray(0, fieldLength));
|
|
8019
|
-
const valueOffset = fieldLength + (line2[fieldLength + 1] === 32 ? 2 : 1);
|
|
8020
|
-
const value = decoder.decode(line2.subarray(valueOffset));
|
|
8021
|
-
switch (field) {
|
|
8022
|
-
case "data":
|
|
8023
|
-
message.data = message.data ? message.data + "\n" + value : value;
|
|
8024
|
-
break;
|
|
8025
|
-
case "event":
|
|
8026
|
-
message.event = value;
|
|
8027
|
-
break;
|
|
8028
|
-
case "id":
|
|
8029
|
-
onId(message.id = value);
|
|
8030
|
-
break;
|
|
8031
|
-
case "retry":
|
|
8032
|
-
const retry = parseInt(value, 10);
|
|
8033
|
-
if (!isNaN(retry)) {
|
|
8034
|
-
onRetry(message.retry = retry);
|
|
8035
|
-
}
|
|
8036
|
-
break;
|
|
8037
|
-
}
|
|
8038
|
-
}
|
|
8039
|
-
};
|
|
8040
|
-
}
|
|
8041
|
-
function concat(a, b2) {
|
|
8042
|
-
const res = new Uint8Array(a.length + b2.length);
|
|
8043
|
-
res.set(a);
|
|
8044
|
-
res.set(b2, a.length);
|
|
8045
|
-
return res;
|
|
8046
|
-
}
|
|
8047
|
-
function newMessage() {
|
|
8048
|
-
return {
|
|
8049
|
-
data: "",
|
|
8050
|
-
event: "",
|
|
8051
|
-
id: "",
|
|
8052
|
-
retry: void 0
|
|
8053
|
-
};
|
|
5159
|
+
return routeMatch ? routeMatch.params : {};
|
|
8054
5160
|
}
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
5161
|
+
new Promise(() => {
|
|
5162
|
+
});
|
|
5163
|
+
const AppContext = createContext({
|
|
5164
|
+
isLoading: false,
|
|
5165
|
+
apps: void 0
|
|
5166
|
+
});
|
|
5167
|
+
const AppProvider = ({ children }) => {
|
|
5168
|
+
const { apps, isLoading } = useApps$1({ includeHidden: true });
|
|
5169
|
+
return /* @__PURE__ */ jsx(
|
|
5170
|
+
AppContext.Provider,
|
|
5171
|
+
{
|
|
5172
|
+
value: {
|
|
5173
|
+
apps,
|
|
5174
|
+
isLoading
|
|
5175
|
+
},
|
|
5176
|
+
children
|
|
8064
5177
|
}
|
|
8065
|
-
|
|
5178
|
+
);
|
|
8066
5179
|
};
|
|
8067
|
-
const
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
if (
|
|
8075
|
-
|
|
8076
|
-
}
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
function dispose() {
|
|
8090
|
-
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
8091
|
-
window.clearTimeout(retryTimer);
|
|
8092
|
-
curRequestController.abort();
|
|
8093
|
-
}
|
|
8094
|
-
inputSignal === null || inputSignal === void 0 ? void 0 : inputSignal.addEventListener("abort", () => {
|
|
8095
|
-
dispose();
|
|
8096
|
-
resolve();
|
|
8097
|
-
});
|
|
8098
|
-
const fetch = inputFetch !== null && inputFetch !== void 0 ? inputFetch : window.fetch;
|
|
8099
|
-
const onopen = inputOnOpen !== null && inputOnOpen !== void 0 ? inputOnOpen : defaultOnOpen;
|
|
8100
|
-
async function create2() {
|
|
8101
|
-
var _a3;
|
|
8102
|
-
curRequestController = new AbortController();
|
|
8103
|
-
try {
|
|
8104
|
-
const response = await fetch(input, Object.assign(Object.assign({}, rest), { headers, signal: curRequestController.signal }));
|
|
8105
|
-
await onopen(response);
|
|
8106
|
-
await getBytes(response.body, getLines(getMessages((id) => {
|
|
8107
|
-
if (id) {
|
|
8108
|
-
headers[LastEventId] = id;
|
|
8109
|
-
} else {
|
|
8110
|
-
delete headers[LastEventId];
|
|
8111
|
-
}
|
|
8112
|
-
}, (retry) => {
|
|
8113
|
-
retryInterval = retry;
|
|
8114
|
-
}, onmessage)));
|
|
8115
|
-
onclose === null || onclose === void 0 ? void 0 : onclose();
|
|
8116
|
-
dispose();
|
|
8117
|
-
resolve();
|
|
8118
|
-
} catch (err) {
|
|
8119
|
-
if (!curRequestController.signal.aborted) {
|
|
8120
|
-
try {
|
|
8121
|
-
const interval = (_a3 = onerror === null || onerror === void 0 ? void 0 : onerror(err)) !== null && _a3 !== void 0 ? _a3 : retryInterval;
|
|
8122
|
-
window.clearTimeout(retryTimer);
|
|
8123
|
-
retryTimer = window.setTimeout(create2, interval);
|
|
8124
|
-
} catch (innerErr) {
|
|
8125
|
-
dispose();
|
|
8126
|
-
reject(innerErr);
|
|
8127
|
-
}
|
|
8128
|
-
}
|
|
8129
|
-
}
|
|
8130
|
-
}
|
|
8131
|
-
create2();
|
|
8132
|
-
});
|
|
8133
|
-
}
|
|
8134
|
-
function defaultOnOpen(response) {
|
|
8135
|
-
const contentType = response.headers.get("content-type");
|
|
8136
|
-
if (!(contentType === null || contentType === void 0 ? void 0 : contentType.startsWith(EventStreamContentType))) {
|
|
8137
|
-
throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${contentType}`);
|
|
5180
|
+
const useApps = ({
|
|
5181
|
+
includeHidden
|
|
5182
|
+
} = {}) => {
|
|
5183
|
+
const { apps: allApps, isLoading } = useContext(AppContext);
|
|
5184
|
+
return useMemo(() => {
|
|
5185
|
+
if (!allApps)
|
|
5186
|
+
return { isLoading, apps: [] };
|
|
5187
|
+
if (includeHidden) {
|
|
5188
|
+
return { isLoading, apps: allApps };
|
|
5189
|
+
}
|
|
5190
|
+
const apps = allApps.filter((app) => !app.hide);
|
|
5191
|
+
return { isLoading, apps };
|
|
5192
|
+
}, [allApps, includeHidden, isLoading]);
|
|
5193
|
+
};
|
|
5194
|
+
const AppViewer = () => {
|
|
5195
|
+
const { appKey } = useParams();
|
|
5196
|
+
const { apps } = useApps({ includeHidden: true });
|
|
5197
|
+
const app = useMemo(() => {
|
|
5198
|
+
return apps == null ? void 0 : apps.find((app2) => app2.key === appKey);
|
|
5199
|
+
}, [appKey, apps]);
|
|
5200
|
+
if (!apps) {
|
|
5201
|
+
return /* @__PURE__ */ jsx(EquinorLoader, { text: "Loading apps..." });
|
|
8138
5202
|
}
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
}
|
|
8142
|
-
|
|
8143
|
-
const [messages, setMessages] = useState([]);
|
|
8144
|
-
const { modules } = useFramework();
|
|
8145
|
-
const auth = modules.auth;
|
|
8146
|
-
useEffect(() => {
|
|
8147
|
-
const abortController = new AbortController();
|
|
8148
|
-
const abort = abortController.signal;
|
|
8149
|
-
const createConnection = () => {
|
|
8150
|
-
setMessages([]);
|
|
8151
|
-
auth.acquireAccessToken({
|
|
8152
|
-
scopes: [
|
|
8153
|
-
// TODO: Using hardcoded scope now. Need to change this when we move beyond POC state
|
|
8154
|
-
"api://83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/user_impersonation"
|
|
8155
|
-
]
|
|
8156
|
-
}).then((token2) => {
|
|
8157
|
-
if (!token2)
|
|
8158
|
-
console.error("No token");
|
|
8159
|
-
if (abort.aborted)
|
|
8160
|
-
return;
|
|
8161
|
-
fetchEventSource(`${window.location.origin}/${path}`, {
|
|
8162
|
-
headers: {
|
|
8163
|
-
Authorization: `Bearer ${token2}`
|
|
8164
|
-
},
|
|
8165
|
-
openWhenHidden: true,
|
|
8166
|
-
signal: abort,
|
|
8167
|
-
onmessage: (eventSourceMessage) => {
|
|
8168
|
-
const data = eventSourceMessage.data;
|
|
8169
|
-
try {
|
|
8170
|
-
const parsed = JSON.parse(data);
|
|
8171
|
-
setMessages((msg) => {
|
|
8172
|
-
const unique = msg.filter(
|
|
8173
|
-
(m) => m.eventSourceId !== eventSourceMessage.id
|
|
8174
|
-
);
|
|
8175
|
-
const count = unique.length;
|
|
8176
|
-
if (count >= messageCount) {
|
|
8177
|
-
return [
|
|
8178
|
-
{ ...parsed, eventSourceId: eventSourceMessage.id },
|
|
8179
|
-
...unique.slice(0, -1)
|
|
8180
|
-
];
|
|
8181
|
-
} else {
|
|
8182
|
-
return [
|
|
8183
|
-
{ ...parsed, eventSourceId: eventSourceMessage.id },
|
|
8184
|
-
...unique
|
|
8185
|
-
];
|
|
8186
|
-
}
|
|
8187
|
-
});
|
|
8188
|
-
} catch (ex) {
|
|
8189
|
-
console.error("Failed to parse message: ", ex);
|
|
8190
|
-
}
|
|
8191
|
-
},
|
|
8192
|
-
onclose: () => {
|
|
8193
|
-
throw new RetriableError("Connection closed, reconnecting.");
|
|
8194
|
-
}
|
|
8195
|
-
}).then(() => {
|
|
8196
|
-
setMessages([]);
|
|
8197
|
-
setTimeout(() => createConnection(), 500);
|
|
8198
|
-
});
|
|
8199
|
-
});
|
|
8200
|
-
};
|
|
8201
|
-
createConnection();
|
|
8202
|
-
return () => abortController.abort("Repaint");
|
|
8203
|
-
}, [auth, path, messageCount]);
|
|
8204
|
-
return {
|
|
8205
|
-
messages: [...messages]
|
|
8206
|
-
};
|
|
5203
|
+
if (!app) {
|
|
5204
|
+
return /* @__PURE__ */ jsx(ErrorViewer, { error: new Error("App not found") });
|
|
5205
|
+
}
|
|
5206
|
+
return /* @__PURE__ */ jsx(AppLoader, { app, kind: "app" });
|
|
8207
5207
|
};
|
|
8208
5208
|
const ErrorTypography = ({
|
|
8209
5209
|
variant,
|
|
@@ -8242,15 +5242,15 @@ const getError = (error) => {
|
|
|
8242
5242
|
};
|
|
8243
5243
|
const HttpErrorViewer = ({ error }) => {
|
|
8244
5244
|
return /* @__PURE__ */ jsxs(
|
|
8245
|
-
|
|
5245
|
+
Card,
|
|
8246
5246
|
{
|
|
8247
5247
|
style: {
|
|
8248
5248
|
minWidth: 400,
|
|
8249
5249
|
border: `1px solid ${tokens.colors.ui.background__danger.hex}`
|
|
8250
5250
|
},
|
|
8251
5251
|
children: [
|
|
8252
|
-
/* @__PURE__ */ jsx(
|
|
8253
|
-
/* @__PURE__ */ jsx(
|
|
5252
|
+
/* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx(Typography, { variant: "h4", color: "danger", children: error.message }) }),
|
|
5253
|
+
/* @__PURE__ */ jsx(Card.Content, { children: getError(error.response) })
|
|
8254
5254
|
]
|
|
8255
5255
|
}
|
|
8256
5256
|
);
|
|
@@ -8261,8 +5261,8 @@ const createUrlParamsFromObject = (obj) => {
|
|
|
8261
5261
|
if (obj[key] === null || typeof obj[key] === "undefined")
|
|
8262
5262
|
return;
|
|
8263
5263
|
if (Array.isArray(obj[key])) {
|
|
8264
|
-
obj[key].forEach((
|
|
8265
|
-
params.append(key,
|
|
5264
|
+
obj[key].forEach((v) => {
|
|
5265
|
+
params.append(key, v.toString());
|
|
8266
5266
|
});
|
|
8267
5267
|
} else if (typeof obj[key] === "string") {
|
|
8268
5268
|
params.append(key, obj[key]);
|
|
@@ -8351,31 +5351,904 @@ const useDownloadRecap = (params) => {
|
|
|
8351
5351
|
enabled: !!params.dealId
|
|
8352
5352
|
});
|
|
8353
5353
|
};
|
|
8354
|
-
const
|
|
8355
|
-
|
|
8356
|
-
|
|
5354
|
+
const useCustomClient = () => {
|
|
5355
|
+
const client = useHttpClient("portal");
|
|
5356
|
+
return async ({
|
|
5357
|
+
url,
|
|
5358
|
+
method,
|
|
5359
|
+
params,
|
|
5360
|
+
headers,
|
|
5361
|
+
data,
|
|
5362
|
+
signal
|
|
5363
|
+
}) => {
|
|
5364
|
+
const response = await client.fetch(
|
|
5365
|
+
`${url}` + new URLSearchParams(params),
|
|
5366
|
+
{
|
|
5367
|
+
method,
|
|
5368
|
+
// Request method
|
|
5369
|
+
signal,
|
|
5370
|
+
// Abort signal
|
|
5371
|
+
headers,
|
|
5372
|
+
// Additional headers
|
|
5373
|
+
...data ? { body: JSON.stringify(data) } : {}
|
|
5374
|
+
// Add body if data is provided
|
|
5375
|
+
}
|
|
5376
|
+
);
|
|
5377
|
+
if (response.headers.get("content-length") === "0" || response.status === 204) {
|
|
5378
|
+
return response.text();
|
|
5379
|
+
}
|
|
5380
|
+
return response.json();
|
|
5381
|
+
};
|
|
5382
|
+
};
|
|
5383
|
+
const useGetSettingByUserAndSettingKeyHook = () => {
|
|
5384
|
+
const getSettingByUserAndSettingKey = useCustomClient();
|
|
5385
|
+
return (userId, settingKey, signal) => {
|
|
5386
|
+
return getSettingByUserAndSettingKey({
|
|
5387
|
+
url: `/api/settings/user/${userId}/setting/${settingKey}`,
|
|
5388
|
+
method: "get",
|
|
5389
|
+
signal
|
|
5390
|
+
});
|
|
5391
|
+
};
|
|
5392
|
+
};
|
|
5393
|
+
const getGetSettingByUserAndSettingKeyQueryKey = (userId, settingKey) => {
|
|
5394
|
+
return [`/api/settings/user/${userId}/setting/${settingKey}`];
|
|
5395
|
+
};
|
|
5396
|
+
const useGetSettingByUserAndSettingKeyQueryOptions = (userId, settingKey, options) => {
|
|
5397
|
+
const { query: queryOptions } = options ?? {};
|
|
5398
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndSettingKeyQueryKey(userId, settingKey);
|
|
5399
|
+
const getSettingByUserAndSettingKey = useGetSettingByUserAndSettingKeyHook();
|
|
5400
|
+
const queryFn = ({ signal }) => getSettingByUserAndSettingKey(userId, settingKey, signal);
|
|
5401
|
+
return {
|
|
5402
|
+
queryKey,
|
|
5403
|
+
queryFn,
|
|
5404
|
+
enabled: !!(userId && settingKey),
|
|
5405
|
+
...queryOptions
|
|
5406
|
+
};
|
|
5407
|
+
};
|
|
5408
|
+
const useGetSettingByUserAndSettingKey = (userId, settingKey, options) => {
|
|
5409
|
+
const queryOptions = useGetSettingByUserAndSettingKeyQueryOptions(
|
|
5410
|
+
userId,
|
|
5411
|
+
settingKey,
|
|
5412
|
+
options
|
|
8357
5413
|
);
|
|
5414
|
+
const query = useQuery(queryOptions);
|
|
5415
|
+
query.queryKey = queryOptions.queryKey;
|
|
5416
|
+
return query;
|
|
8358
5417
|
};
|
|
8359
|
-
const
|
|
8360
|
-
const
|
|
8361
|
-
|
|
8362
|
-
|
|
5418
|
+
const useCreateOrUpdateSettingByUserAndSettingKeyHook = () => {
|
|
5419
|
+
const createOrUpdateSettingByUserAndSettingKey = useCustomClient();
|
|
5420
|
+
return (userId, settingKey, settingDto) => {
|
|
5421
|
+
return createOrUpdateSettingByUserAndSettingKey({
|
|
5422
|
+
url: `/api/settings/user/${userId}/setting/${settingKey}`,
|
|
5423
|
+
method: "post",
|
|
5424
|
+
headers: { "Content-Type": "application/json" },
|
|
5425
|
+
data: settingDto
|
|
5426
|
+
});
|
|
5427
|
+
};
|
|
5428
|
+
};
|
|
5429
|
+
const useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions = (options) => {
|
|
5430
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5431
|
+
const createOrUpdateSettingByUserAndSettingKey = useCreateOrUpdateSettingByUserAndSettingKeyHook();
|
|
5432
|
+
const mutationFn = (props) => {
|
|
5433
|
+
const { userId, settingKey, data } = props ?? {};
|
|
5434
|
+
return createOrUpdateSettingByUserAndSettingKey(userId, settingKey, data);
|
|
5435
|
+
};
|
|
5436
|
+
return { mutationFn, ...mutationOptions };
|
|
5437
|
+
};
|
|
5438
|
+
const useCreateOrUpdateSettingByUserAndSettingKey = (options) => {
|
|
5439
|
+
const mutationOptions = useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions(options);
|
|
5440
|
+
return useMutation(mutationOptions);
|
|
5441
|
+
};
|
|
5442
|
+
const useDeleteSettingByUserAndSettingKeyHook = () => {
|
|
5443
|
+
const deleteSettingByUserAndSettingKey = useCustomClient();
|
|
5444
|
+
return (userId, settingKey) => {
|
|
5445
|
+
return deleteSettingByUserAndSettingKey({
|
|
5446
|
+
url: `/api/settings/user/${userId}/setting/${settingKey}`,
|
|
5447
|
+
method: "delete"
|
|
5448
|
+
});
|
|
5449
|
+
};
|
|
5450
|
+
};
|
|
5451
|
+
const useDeleteSettingByUserAndSettingKeyMutationOptions = (options) => {
|
|
5452
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5453
|
+
const deleteSettingByUserAndSettingKey = useDeleteSettingByUserAndSettingKeyHook();
|
|
5454
|
+
const mutationFn = (props) => {
|
|
5455
|
+
const { userId, settingKey } = props ?? {};
|
|
5456
|
+
return deleteSettingByUserAndSettingKey(userId, settingKey);
|
|
5457
|
+
};
|
|
5458
|
+
return { mutationFn, ...mutationOptions };
|
|
5459
|
+
};
|
|
5460
|
+
const useDeleteSettingByUserAndSettingKey = (options) => {
|
|
5461
|
+
const mutationOptions = useDeleteSettingByUserAndSettingKeyMutationOptions(options);
|
|
5462
|
+
return useMutation(mutationOptions);
|
|
5463
|
+
};
|
|
5464
|
+
const useGetSettingByUserAndAppShortNameAndSetttingKeyHook = () => {
|
|
5465
|
+
const getSettingByUserAndAppShortNameAndSetttingKey = useCustomClient();
|
|
5466
|
+
return (userId, appShortName, settingKey, signal) => {
|
|
5467
|
+
return getSettingByUserAndAppShortNameAndSetttingKey({
|
|
5468
|
+
url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
|
|
5469
|
+
method: "get",
|
|
5470
|
+
signal
|
|
5471
|
+
});
|
|
5472
|
+
};
|
|
5473
|
+
};
|
|
5474
|
+
const getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey = (userId, appShortName, settingKey) => {
|
|
5475
|
+
return [
|
|
5476
|
+
`/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`
|
|
5477
|
+
];
|
|
5478
|
+
};
|
|
5479
|
+
const useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions = (userId, appShortName, settingKey, options) => {
|
|
5480
|
+
const { query: queryOptions } = options ?? {};
|
|
5481
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey(
|
|
5482
|
+
userId,
|
|
5483
|
+
appShortName,
|
|
5484
|
+
settingKey
|
|
5485
|
+
);
|
|
5486
|
+
const getSettingByUserAndAppShortNameAndSetttingKey = useGetSettingByUserAndAppShortNameAndSetttingKeyHook();
|
|
5487
|
+
const queryFn = ({ signal }) => getSettingByUserAndAppShortNameAndSetttingKey(
|
|
5488
|
+
userId,
|
|
5489
|
+
appShortName,
|
|
5490
|
+
settingKey,
|
|
5491
|
+
signal
|
|
5492
|
+
);
|
|
5493
|
+
return {
|
|
8363
5494
|
queryKey,
|
|
8364
|
-
queryFn
|
|
8365
|
-
|
|
5495
|
+
queryFn,
|
|
5496
|
+
enabled: !!(userId && appShortName && settingKey),
|
|
5497
|
+
...queryOptions
|
|
5498
|
+
};
|
|
5499
|
+
};
|
|
5500
|
+
const useGetSettingByUserAndAppShortNameAndSetttingKey = (userId, appShortName, settingKey, options) => {
|
|
5501
|
+
const queryOptions = useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions(
|
|
5502
|
+
userId,
|
|
5503
|
+
appShortName,
|
|
5504
|
+
settingKey,
|
|
5505
|
+
options
|
|
5506
|
+
);
|
|
5507
|
+
const query = useQuery(queryOptions);
|
|
5508
|
+
query.queryKey = queryOptions.queryKey;
|
|
5509
|
+
return query;
|
|
5510
|
+
};
|
|
5511
|
+
const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook = () => {
|
|
5512
|
+
const createOrUpdateSettingByUserAndAppShortNameAndSettingKey = useCustomClient();
|
|
5513
|
+
return (userId, appShortName, settingKey, settingDto) => {
|
|
5514
|
+
return createOrUpdateSettingByUserAndAppShortNameAndSettingKey({
|
|
5515
|
+
url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
|
|
5516
|
+
method: "post",
|
|
5517
|
+
headers: { "Content-Type": "application/json" },
|
|
5518
|
+
data: settingDto
|
|
5519
|
+
});
|
|
5520
|
+
};
|
|
5521
|
+
};
|
|
5522
|
+
const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions = (options) => {
|
|
5523
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5524
|
+
const createOrUpdateSettingByUserAndAppShortNameAndSettingKey = useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook();
|
|
5525
|
+
const mutationFn = (props) => {
|
|
5526
|
+
const { userId, appShortName, settingKey, data } = props ?? {};
|
|
5527
|
+
return createOrUpdateSettingByUserAndAppShortNameAndSettingKey(
|
|
5528
|
+
userId,
|
|
5529
|
+
appShortName,
|
|
5530
|
+
settingKey,
|
|
5531
|
+
data
|
|
5532
|
+
);
|
|
5533
|
+
};
|
|
5534
|
+
return { mutationFn, ...mutationOptions };
|
|
5535
|
+
};
|
|
5536
|
+
const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKey = (options) => {
|
|
5537
|
+
const mutationOptions = useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions(
|
|
5538
|
+
options
|
|
5539
|
+
);
|
|
5540
|
+
return useMutation(mutationOptions);
|
|
5541
|
+
};
|
|
5542
|
+
const useDeleteSettingByUserAndAppShortNameAndSettingKeyHook = () => {
|
|
5543
|
+
const deleteSettingByUserAndAppShortNameAndSettingKey = useCustomClient();
|
|
5544
|
+
return (userId, appShortName, settingKey) => {
|
|
5545
|
+
return deleteSettingByUserAndAppShortNameAndSettingKey({
|
|
5546
|
+
url: `/api/settings/user/${userId}/application/${appShortName}/setting/${settingKey}`,
|
|
5547
|
+
method: "delete"
|
|
5548
|
+
});
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
const useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions = (options) => {
|
|
5552
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5553
|
+
const deleteSettingByUserAndAppShortNameAndSettingKey = useDeleteSettingByUserAndAppShortNameAndSettingKeyHook();
|
|
5554
|
+
const mutationFn = (props) => {
|
|
5555
|
+
const { userId, appShortName, settingKey } = props ?? {};
|
|
5556
|
+
return deleteSettingByUserAndAppShortNameAndSettingKey(
|
|
5557
|
+
userId,
|
|
5558
|
+
appShortName,
|
|
5559
|
+
settingKey
|
|
5560
|
+
);
|
|
5561
|
+
};
|
|
5562
|
+
return { mutationFn, ...mutationOptions };
|
|
5563
|
+
};
|
|
5564
|
+
const useDeleteSettingByUserAndAppShortNameAndSettingKey = (options) => {
|
|
5565
|
+
const mutationOptions = useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions(options);
|
|
5566
|
+
return useMutation(mutationOptions);
|
|
5567
|
+
};
|
|
5568
|
+
const useGetSettingByUserAndAppShortNameHook = () => {
|
|
5569
|
+
const getSettingByUserAndAppShortName = useCustomClient();
|
|
5570
|
+
return (userId, appShortName, signal) => {
|
|
5571
|
+
return getSettingByUserAndAppShortName({
|
|
5572
|
+
url: `/api/settings/user/${userId}/application/${appShortName}`,
|
|
5573
|
+
method: "get",
|
|
5574
|
+
signal
|
|
5575
|
+
});
|
|
5576
|
+
};
|
|
5577
|
+
};
|
|
5578
|
+
const getGetSettingByUserAndAppShortNameQueryKey = (userId, appShortName) => {
|
|
5579
|
+
return [`/api/settings/user/${userId}/application/${appShortName}`];
|
|
5580
|
+
};
|
|
5581
|
+
const useGetSettingByUserAndAppShortNameQueryOptions = (userId, appShortName, options) => {
|
|
5582
|
+
const { query: queryOptions } = options ?? {};
|
|
5583
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingByUserAndAppShortNameQueryKey(userId, appShortName);
|
|
5584
|
+
const getSettingByUserAndAppShortName = useGetSettingByUserAndAppShortNameHook();
|
|
5585
|
+
const queryFn = ({ signal }) => getSettingByUserAndAppShortName(userId, appShortName, signal);
|
|
5586
|
+
return {
|
|
5587
|
+
queryKey,
|
|
5588
|
+
queryFn,
|
|
5589
|
+
enabled: !!(userId && appShortName),
|
|
5590
|
+
...queryOptions
|
|
5591
|
+
};
|
|
5592
|
+
};
|
|
5593
|
+
const useGetSettingByUserAndAppShortName = (userId, appShortName, options) => {
|
|
5594
|
+
const queryOptions = useGetSettingByUserAndAppShortNameQueryOptions(
|
|
5595
|
+
userId,
|
|
5596
|
+
appShortName,
|
|
5597
|
+
options
|
|
5598
|
+
);
|
|
5599
|
+
const query = useQuery(queryOptions);
|
|
5600
|
+
query.queryKey = queryOptions.queryKey;
|
|
5601
|
+
return query;
|
|
5602
|
+
};
|
|
5603
|
+
const useGetAllAppsHook = () => {
|
|
5604
|
+
const getAllApps = useCustomClient();
|
|
5605
|
+
return (signal) => {
|
|
5606
|
+
return getAllApps({ url: `/api/apps`, method: "get", signal });
|
|
5607
|
+
};
|
|
5608
|
+
};
|
|
5609
|
+
const getGetAllAppsQueryKey = () => {
|
|
5610
|
+
return [`/api/apps`];
|
|
5611
|
+
};
|
|
5612
|
+
const useGetAllAppsQueryOptions = (options) => {
|
|
5613
|
+
const { query: queryOptions } = options ?? {};
|
|
5614
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllAppsQueryKey();
|
|
5615
|
+
const getAllApps = useGetAllAppsHook();
|
|
5616
|
+
const queryFn = ({ signal }) => getAllApps(signal);
|
|
5617
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
5618
|
+
};
|
|
5619
|
+
const useGetAllApps = (options) => {
|
|
5620
|
+
const queryOptions = useGetAllAppsQueryOptions(options);
|
|
5621
|
+
const query = useQuery(queryOptions);
|
|
5622
|
+
query.queryKey = queryOptions.queryKey;
|
|
5623
|
+
return query;
|
|
5624
|
+
};
|
|
5625
|
+
const useCreateOrUpdateAppHook = () => {
|
|
5626
|
+
const createOrUpdateApp = useCustomClient();
|
|
5627
|
+
return (appDto) => {
|
|
5628
|
+
return createOrUpdateApp({
|
|
5629
|
+
url: `/api/apps`,
|
|
5630
|
+
method: "post",
|
|
5631
|
+
headers: { "Content-Type": "application/json" },
|
|
5632
|
+
data: appDto
|
|
5633
|
+
});
|
|
5634
|
+
};
|
|
5635
|
+
};
|
|
5636
|
+
const useCreateOrUpdateAppMutationOptions = (options) => {
|
|
5637
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5638
|
+
const createOrUpdateApp = useCreateOrUpdateAppHook();
|
|
5639
|
+
const mutationFn = (props) => {
|
|
5640
|
+
const { data } = props ?? {};
|
|
5641
|
+
return createOrUpdateApp(data);
|
|
5642
|
+
};
|
|
5643
|
+
return { mutationFn, ...mutationOptions };
|
|
5644
|
+
};
|
|
5645
|
+
const useCreateOrUpdateApp = (options) => {
|
|
5646
|
+
const mutationOptions = useCreateOrUpdateAppMutationOptions(options);
|
|
5647
|
+
return useMutation(mutationOptions);
|
|
5648
|
+
};
|
|
5649
|
+
const useGetAppByKeyHook = () => {
|
|
5650
|
+
const getAppByKey = useCustomClient();
|
|
5651
|
+
return (key, signal) => {
|
|
5652
|
+
return getAppByKey({ url: `/api/apps/key/${key}`, method: "get", signal });
|
|
5653
|
+
};
|
|
5654
|
+
};
|
|
5655
|
+
const getGetAppByKeyQueryKey = (key) => {
|
|
5656
|
+
return [`/api/apps/key/${key}`];
|
|
5657
|
+
};
|
|
5658
|
+
const useGetAppByKeyQueryOptions = (key, options) => {
|
|
5659
|
+
const { query: queryOptions } = options ?? {};
|
|
5660
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAppByKeyQueryKey(key);
|
|
5661
|
+
const getAppByKey = useGetAppByKeyHook();
|
|
5662
|
+
const queryFn = ({ signal }) => getAppByKey(key, signal);
|
|
5663
|
+
return {
|
|
5664
|
+
queryKey,
|
|
5665
|
+
queryFn,
|
|
5666
|
+
enabled: !!key,
|
|
5667
|
+
...queryOptions
|
|
5668
|
+
};
|
|
5669
|
+
};
|
|
5670
|
+
const useGetAppByKey = (key, options) => {
|
|
5671
|
+
const queryOptions = useGetAppByKeyQueryOptions(key, options);
|
|
5672
|
+
const query = useQuery(queryOptions);
|
|
5673
|
+
query.queryKey = queryOptions.queryKey;
|
|
5674
|
+
return query;
|
|
5675
|
+
};
|
|
5676
|
+
const useDeleteAppByKeyHook = () => {
|
|
5677
|
+
const deleteAppByKey = useCustomClient();
|
|
5678
|
+
return (key) => {
|
|
5679
|
+
return deleteAppByKey({ url: `/api/apps/key/${key}`, method: "delete" });
|
|
5680
|
+
};
|
|
5681
|
+
};
|
|
5682
|
+
const useDeleteAppByKeyMutationOptions = (options) => {
|
|
5683
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5684
|
+
const deleteAppByKey = useDeleteAppByKeyHook();
|
|
5685
|
+
const mutationFn = (props) => {
|
|
5686
|
+
const { key } = props ?? {};
|
|
5687
|
+
return deleteAppByKey(key);
|
|
5688
|
+
};
|
|
5689
|
+
return { mutationFn, ...mutationOptions };
|
|
5690
|
+
};
|
|
5691
|
+
const useDeleteAppByKey = (options) => {
|
|
5692
|
+
const mutationOptions = useDeleteAppByKeyMutationOptions(options);
|
|
5693
|
+
return useMutation(mutationOptions);
|
|
5694
|
+
};
|
|
5695
|
+
const useGetAllServicesHook = () => {
|
|
5696
|
+
const getAllServices = useCustomClient();
|
|
5697
|
+
return (signal) => {
|
|
5698
|
+
return getAllServices({ url: `/api/apps/services`, method: "get", signal });
|
|
5699
|
+
};
|
|
5700
|
+
};
|
|
5701
|
+
const getGetAllServicesQueryKey = () => {
|
|
5702
|
+
return [`/api/apps/services`];
|
|
5703
|
+
};
|
|
5704
|
+
const useGetAllServicesQueryOptions = (options) => {
|
|
5705
|
+
const { query: queryOptions } = options ?? {};
|
|
5706
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllServicesQueryKey();
|
|
5707
|
+
const getAllServices = useGetAllServicesHook();
|
|
5708
|
+
const queryFn = ({ signal }) => getAllServices(signal);
|
|
5709
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
5710
|
+
};
|
|
5711
|
+
const useGetAllServices = (options) => {
|
|
5712
|
+
const queryOptions = useGetAllServicesQueryOptions(options);
|
|
5713
|
+
const query = useQuery(queryOptions);
|
|
5714
|
+
query.queryKey = queryOptions.queryKey;
|
|
5715
|
+
return query;
|
|
5716
|
+
};
|
|
5717
|
+
const useCreateOrUpdateServiceHook = () => {
|
|
5718
|
+
const createOrUpdateService = useCustomClient();
|
|
5719
|
+
return (serviceDto) => {
|
|
5720
|
+
return createOrUpdateService({
|
|
5721
|
+
url: `/api/apps/services`,
|
|
5722
|
+
method: "post",
|
|
5723
|
+
headers: { "Content-Type": "application/json" },
|
|
5724
|
+
data: serviceDto
|
|
5725
|
+
});
|
|
5726
|
+
};
|
|
5727
|
+
};
|
|
5728
|
+
const useCreateOrUpdateServiceMutationOptions = (options) => {
|
|
5729
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5730
|
+
const createOrUpdateService = useCreateOrUpdateServiceHook();
|
|
5731
|
+
const mutationFn = (props) => {
|
|
5732
|
+
const { data } = props ?? {};
|
|
5733
|
+
return createOrUpdateService(data);
|
|
5734
|
+
};
|
|
5735
|
+
return { mutationFn, ...mutationOptions };
|
|
5736
|
+
};
|
|
5737
|
+
const useCreateOrUpdateService = (options) => {
|
|
5738
|
+
const mutationOptions = useCreateOrUpdateServiceMutationOptions(options);
|
|
5739
|
+
return useMutation(mutationOptions);
|
|
5740
|
+
};
|
|
5741
|
+
const useGetServiceByKeyHook = () => {
|
|
5742
|
+
const getServiceByKey = useCustomClient();
|
|
5743
|
+
return (key, signal) => {
|
|
5744
|
+
return getServiceByKey({
|
|
5745
|
+
url: `/api/apps/services/key/${key}`,
|
|
5746
|
+
method: "get",
|
|
5747
|
+
signal
|
|
5748
|
+
});
|
|
5749
|
+
};
|
|
5750
|
+
};
|
|
5751
|
+
const getGetServiceByKeyQueryKey = (key) => {
|
|
5752
|
+
return [`/api/apps/services/key/${key}`];
|
|
5753
|
+
};
|
|
5754
|
+
const useGetServiceByKeyQueryOptions = (key, options) => {
|
|
5755
|
+
const { query: queryOptions } = options ?? {};
|
|
5756
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetServiceByKeyQueryKey(key);
|
|
5757
|
+
const getServiceByKey = useGetServiceByKeyHook();
|
|
5758
|
+
const queryFn = ({ signal }) => getServiceByKey(key, signal);
|
|
5759
|
+
return {
|
|
5760
|
+
queryKey,
|
|
5761
|
+
queryFn,
|
|
5762
|
+
enabled: !!key,
|
|
5763
|
+
...queryOptions
|
|
5764
|
+
};
|
|
5765
|
+
};
|
|
5766
|
+
const useGetServiceByKey = (key, options) => {
|
|
5767
|
+
const queryOptions = useGetServiceByKeyQueryOptions(key, options);
|
|
5768
|
+
const query = useQuery(queryOptions);
|
|
5769
|
+
query.queryKey = queryOptions.queryKey;
|
|
5770
|
+
return query;
|
|
5771
|
+
};
|
|
5772
|
+
const useDeleteServiceByKeyHook = () => {
|
|
5773
|
+
const deleteServiceByKey = useCustomClient();
|
|
5774
|
+
return (key) => {
|
|
5775
|
+
return deleteServiceByKey({
|
|
5776
|
+
url: `/api/apps/services/key/${key}`,
|
|
5777
|
+
method: "delete"
|
|
5778
|
+
});
|
|
5779
|
+
};
|
|
5780
|
+
};
|
|
5781
|
+
const useDeleteServiceByKeyMutationOptions = (options) => {
|
|
5782
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5783
|
+
const deleteServiceByKey = useDeleteServiceByKeyHook();
|
|
5784
|
+
const mutationFn = (props) => {
|
|
5785
|
+
const { key } = props ?? {};
|
|
5786
|
+
return deleteServiceByKey(key);
|
|
5787
|
+
};
|
|
5788
|
+
return { mutationFn, ...mutationOptions };
|
|
5789
|
+
};
|
|
5790
|
+
const useDeleteServiceByKey = (options) => {
|
|
5791
|
+
const mutationOptions = useDeleteServiceByKeyMutationOptions(options);
|
|
5792
|
+
return useMutation(mutationOptions);
|
|
5793
|
+
};
|
|
5794
|
+
const useGetAllCategoriesHook = () => {
|
|
5795
|
+
const getAllCategories = useCustomClient();
|
|
5796
|
+
return (signal) => {
|
|
5797
|
+
return getAllCategories({
|
|
5798
|
+
url: `/api/apps/categories`,
|
|
5799
|
+
method: "get",
|
|
5800
|
+
signal
|
|
5801
|
+
});
|
|
5802
|
+
};
|
|
5803
|
+
};
|
|
5804
|
+
const getGetAllCategoriesQueryKey = () => {
|
|
5805
|
+
return [`/api/apps/categories`];
|
|
5806
|
+
};
|
|
5807
|
+
const useGetAllCategoriesQueryOptions = (options) => {
|
|
5808
|
+
const { query: queryOptions } = options ?? {};
|
|
5809
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllCategoriesQueryKey();
|
|
5810
|
+
const getAllCategories = useGetAllCategoriesHook();
|
|
5811
|
+
const queryFn = ({ signal }) => getAllCategories(signal);
|
|
5812
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
5813
|
+
};
|
|
5814
|
+
const useGetAllCategories = (options) => {
|
|
5815
|
+
const queryOptions = useGetAllCategoriesQueryOptions(options);
|
|
5816
|
+
const query = useQuery(queryOptions);
|
|
5817
|
+
query.queryKey = queryOptions.queryKey;
|
|
5818
|
+
return query;
|
|
5819
|
+
};
|
|
5820
|
+
const useCreateOrUpdateCategoryHook = () => {
|
|
5821
|
+
const createOrUpdateCategory = useCustomClient();
|
|
5822
|
+
return (categoryDto) => {
|
|
5823
|
+
return createOrUpdateCategory({
|
|
5824
|
+
url: `/api/apps/categories`,
|
|
5825
|
+
method: "post",
|
|
5826
|
+
headers: { "Content-Type": "application/json" },
|
|
5827
|
+
data: categoryDto
|
|
5828
|
+
});
|
|
5829
|
+
};
|
|
5830
|
+
};
|
|
5831
|
+
const useCreateOrUpdateCategoryMutationOptions = (options) => {
|
|
5832
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5833
|
+
const createOrUpdateCategory = useCreateOrUpdateCategoryHook();
|
|
5834
|
+
const mutationFn = (props) => {
|
|
5835
|
+
const { data } = props ?? {};
|
|
5836
|
+
return createOrUpdateCategory(data);
|
|
5837
|
+
};
|
|
5838
|
+
return { mutationFn, ...mutationOptions };
|
|
5839
|
+
};
|
|
5840
|
+
const useCreateOrUpdateCategory = (options) => {
|
|
5841
|
+
const mutationOptions = useCreateOrUpdateCategoryMutationOptions(options);
|
|
5842
|
+
return useMutation(mutationOptions);
|
|
5843
|
+
};
|
|
5844
|
+
const useGetCategoryByIdHook = () => {
|
|
5845
|
+
const getCategoryById = useCustomClient();
|
|
5846
|
+
return (id, signal) => {
|
|
5847
|
+
return getCategoryById({
|
|
5848
|
+
url: `/api/apps/categories/id/${id}`,
|
|
5849
|
+
method: "get",
|
|
5850
|
+
signal
|
|
5851
|
+
});
|
|
5852
|
+
};
|
|
5853
|
+
};
|
|
5854
|
+
const getGetCategoryByIdQueryKey = (id) => {
|
|
5855
|
+
return [`/api/apps/categories/id/${id}`];
|
|
5856
|
+
};
|
|
5857
|
+
const useGetCategoryByIdQueryOptions = (id, options) => {
|
|
5858
|
+
const { query: queryOptions } = options ?? {};
|
|
5859
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetCategoryByIdQueryKey(id);
|
|
5860
|
+
const getCategoryById = useGetCategoryByIdHook();
|
|
5861
|
+
const queryFn = ({ signal }) => getCategoryById(id, signal);
|
|
5862
|
+
return {
|
|
5863
|
+
queryKey,
|
|
5864
|
+
queryFn,
|
|
5865
|
+
enabled: !!id,
|
|
5866
|
+
...queryOptions
|
|
5867
|
+
};
|
|
5868
|
+
};
|
|
5869
|
+
const useGetCategoryById = (id, options) => {
|
|
5870
|
+
const queryOptions = useGetCategoryByIdQueryOptions(id, options);
|
|
5871
|
+
const query = useQuery(queryOptions);
|
|
5872
|
+
query.queryKey = queryOptions.queryKey;
|
|
5873
|
+
return query;
|
|
5874
|
+
};
|
|
5875
|
+
const useDeleteCategoryByIdHook = () => {
|
|
5876
|
+
const deleteCategoryById = useCustomClient();
|
|
5877
|
+
return (id) => {
|
|
5878
|
+
return deleteCategoryById({
|
|
5879
|
+
url: `/api/apps/categories/id/${id}`,
|
|
5880
|
+
method: "delete"
|
|
5881
|
+
});
|
|
5882
|
+
};
|
|
5883
|
+
};
|
|
5884
|
+
const useDeleteCategoryByIdMutationOptions = (options) => {
|
|
5885
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5886
|
+
const deleteCategoryById = useDeleteCategoryByIdHook();
|
|
5887
|
+
const mutationFn = (props) => {
|
|
5888
|
+
const { id } = props ?? {};
|
|
5889
|
+
return deleteCategoryById(id);
|
|
5890
|
+
};
|
|
5891
|
+
return { mutationFn, ...mutationOptions };
|
|
5892
|
+
};
|
|
5893
|
+
const useDeleteCategoryById = (options) => {
|
|
5894
|
+
const mutationOptions = useDeleteCategoryByIdMutationOptions(options);
|
|
5895
|
+
return useMutation(mutationOptions);
|
|
5896
|
+
};
|
|
5897
|
+
const useStreamEventsHook = () => {
|
|
5898
|
+
const streamEvents = useCustomClient();
|
|
5899
|
+
return (signal) => {
|
|
5900
|
+
return streamEvents({
|
|
5901
|
+
url: `/eventstream/activitylog`,
|
|
5902
|
+
method: "get",
|
|
5903
|
+
signal
|
|
5904
|
+
});
|
|
5905
|
+
};
|
|
5906
|
+
};
|
|
5907
|
+
const getStreamEventsQueryKey = () => {
|
|
5908
|
+
return [`/eventstream/activitylog`];
|
|
5909
|
+
};
|
|
5910
|
+
const useStreamEventsQueryOptions = (options) => {
|
|
5911
|
+
const { query: queryOptions } = options ?? {};
|
|
5912
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getStreamEventsQueryKey();
|
|
5913
|
+
const streamEvents = useStreamEventsHook();
|
|
5914
|
+
const queryFn = ({ signal }) => streamEvents(signal);
|
|
5915
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
5916
|
+
};
|
|
5917
|
+
const useStreamEvents = (options) => {
|
|
5918
|
+
const queryOptions = useStreamEventsQueryOptions(options);
|
|
5919
|
+
const query = useQuery(queryOptions);
|
|
5920
|
+
query.queryKey = queryOptions.queryKey;
|
|
5921
|
+
return query;
|
|
5922
|
+
};
|
|
5923
|
+
const useGetCurrentEnvironmentHook = () => {
|
|
5924
|
+
const getCurrentEnvironment = useCustomClient();
|
|
5925
|
+
return (signal) => {
|
|
5926
|
+
return getCurrentEnvironment({
|
|
5927
|
+
url: `/_discovery/environments/current`,
|
|
5928
|
+
method: "get",
|
|
5929
|
+
signal
|
|
5930
|
+
});
|
|
5931
|
+
};
|
|
5932
|
+
};
|
|
5933
|
+
const getGetCurrentEnvironmentQueryKey = () => {
|
|
5934
|
+
return [`/_discovery/environments/current`];
|
|
5935
|
+
};
|
|
5936
|
+
const useGetCurrentEnvironmentQueryOptions = (options) => {
|
|
5937
|
+
const { query: queryOptions } = options ?? {};
|
|
5938
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetCurrentEnvironmentQueryKey();
|
|
5939
|
+
const getCurrentEnvironment = useGetCurrentEnvironmentHook();
|
|
5940
|
+
const queryFn = ({ signal }) => getCurrentEnvironment(signal);
|
|
5941
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
5942
|
+
};
|
|
5943
|
+
const useGetCurrentEnvironment = (options) => {
|
|
5944
|
+
const queryOptions = useGetCurrentEnvironmentQueryOptions(options);
|
|
5945
|
+
const query = useQuery(queryOptions);
|
|
5946
|
+
query.queryKey = queryOptions.queryKey;
|
|
5947
|
+
return query;
|
|
5948
|
+
};
|
|
5949
|
+
const GetAllRomaConfigurationTypes200Item = {
|
|
5950
|
+
servicebus: "servicebus"
|
|
5951
|
+
};
|
|
5952
|
+
const useGetRomaConfigurationByIdHook = () => {
|
|
5953
|
+
const getRomaConfigurationById = useCustomClient();
|
|
5954
|
+
return (id, signal) => {
|
|
5955
|
+
return getRomaConfigurationById({
|
|
5956
|
+
url: `/api/configurations/id/${id}`,
|
|
5957
|
+
method: "get",
|
|
5958
|
+
signal
|
|
5959
|
+
});
|
|
5960
|
+
};
|
|
5961
|
+
};
|
|
5962
|
+
const getGetRomaConfigurationByIdQueryKey = (id) => {
|
|
5963
|
+
return [`/api/configurations/id/${id}`];
|
|
5964
|
+
};
|
|
5965
|
+
const useGetRomaConfigurationByIdQueryOptions = (id, options) => {
|
|
5966
|
+
const { query: queryOptions } = options ?? {};
|
|
5967
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetRomaConfigurationByIdQueryKey(id);
|
|
5968
|
+
const getRomaConfigurationById = useGetRomaConfigurationByIdHook();
|
|
5969
|
+
const queryFn = ({ signal }) => getRomaConfigurationById(id, signal);
|
|
5970
|
+
return {
|
|
5971
|
+
queryKey,
|
|
5972
|
+
queryFn,
|
|
5973
|
+
enabled: !!id,
|
|
5974
|
+
...queryOptions
|
|
5975
|
+
};
|
|
5976
|
+
};
|
|
5977
|
+
const useGetRomaConfigurationById = (id, options) => {
|
|
5978
|
+
const queryOptions = useGetRomaConfigurationByIdQueryOptions(id, options);
|
|
5979
|
+
const query = useQuery(queryOptions);
|
|
5980
|
+
query.queryKey = queryOptions.queryKey;
|
|
5981
|
+
return query;
|
|
5982
|
+
};
|
|
5983
|
+
const useUpdateRomaConfigurationHook = () => {
|
|
5984
|
+
const updateRomaConfiguration = useCustomClient();
|
|
5985
|
+
return (id, romaConfigurationDto) => {
|
|
5986
|
+
return updateRomaConfiguration({
|
|
5987
|
+
url: `/api/configurations/id/${id}`,
|
|
5988
|
+
method: "put",
|
|
5989
|
+
headers: { "Content-Type": "application/json" },
|
|
5990
|
+
data: romaConfigurationDto
|
|
5991
|
+
});
|
|
5992
|
+
};
|
|
5993
|
+
};
|
|
5994
|
+
const useUpdateRomaConfigurationMutationOptions = (options) => {
|
|
5995
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5996
|
+
const updateRomaConfiguration = useUpdateRomaConfigurationHook();
|
|
5997
|
+
const mutationFn = (props) => {
|
|
5998
|
+
const { id, data } = props ?? {};
|
|
5999
|
+
return updateRomaConfiguration(id, data);
|
|
6000
|
+
};
|
|
6001
|
+
return { mutationFn, ...mutationOptions };
|
|
6002
|
+
};
|
|
6003
|
+
const useUpdateRomaConfiguration = (options) => {
|
|
6004
|
+
const mutationOptions = useUpdateRomaConfigurationMutationOptions(options);
|
|
6005
|
+
return useMutation(mutationOptions);
|
|
6006
|
+
};
|
|
6007
|
+
const useDeleteRomaConfigurationHook = () => {
|
|
6008
|
+
const deleteRomaConfiguration = useCustomClient();
|
|
6009
|
+
return (id) => {
|
|
6010
|
+
return deleteRomaConfiguration({
|
|
6011
|
+
url: `/api/configurations/id/${id}`,
|
|
6012
|
+
method: "delete"
|
|
6013
|
+
});
|
|
6014
|
+
};
|
|
6015
|
+
};
|
|
6016
|
+
const useDeleteRomaConfigurationMutationOptions = (options) => {
|
|
6017
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
6018
|
+
const deleteRomaConfiguration = useDeleteRomaConfigurationHook();
|
|
6019
|
+
const mutationFn = (props) => {
|
|
6020
|
+
const { id } = props ?? {};
|
|
6021
|
+
return deleteRomaConfiguration(id);
|
|
6022
|
+
};
|
|
6023
|
+
return { mutationFn, ...mutationOptions };
|
|
6024
|
+
};
|
|
6025
|
+
const useDeleteRomaConfiguration = (options) => {
|
|
6026
|
+
const mutationOptions = useDeleteRomaConfigurationMutationOptions(options);
|
|
6027
|
+
return useMutation(mutationOptions);
|
|
6028
|
+
};
|
|
6029
|
+
const useGetAllRomaConfigurationHook = () => {
|
|
6030
|
+
const getAllRomaConfiguration = useCustomClient();
|
|
6031
|
+
return (signal) => {
|
|
6032
|
+
return getAllRomaConfiguration({
|
|
6033
|
+
url: `/api/configurations`,
|
|
6034
|
+
method: "get",
|
|
6035
|
+
signal
|
|
6036
|
+
});
|
|
6037
|
+
};
|
|
6038
|
+
};
|
|
6039
|
+
const getGetAllRomaConfigurationQueryKey = () => {
|
|
6040
|
+
return [`/api/configurations`];
|
|
6041
|
+
};
|
|
6042
|
+
const useGetAllRomaConfigurationQueryOptions = (options) => {
|
|
6043
|
+
const { query: queryOptions } = options ?? {};
|
|
6044
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationQueryKey();
|
|
6045
|
+
const getAllRomaConfiguration = useGetAllRomaConfigurationHook();
|
|
6046
|
+
const queryFn = ({ signal }) => getAllRomaConfiguration(signal);
|
|
6047
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
6048
|
+
};
|
|
6049
|
+
const useGetAllRomaConfiguration = (options) => {
|
|
6050
|
+
const queryOptions = useGetAllRomaConfigurationQueryOptions(options);
|
|
6051
|
+
const query = useQuery(queryOptions);
|
|
6052
|
+
query.queryKey = queryOptions.queryKey;
|
|
6053
|
+
return query;
|
|
6054
|
+
};
|
|
6055
|
+
const useAddRomaConfigurationHook = () => {
|
|
6056
|
+
const addRomaConfiguration = useCustomClient();
|
|
6057
|
+
return (romaConfigurationDto) => {
|
|
6058
|
+
return addRomaConfiguration({
|
|
6059
|
+
url: `/api/configurations`,
|
|
6060
|
+
method: "post",
|
|
6061
|
+
headers: { "Content-Type": "application/json" },
|
|
6062
|
+
data: romaConfigurationDto
|
|
6063
|
+
});
|
|
6064
|
+
};
|
|
6065
|
+
};
|
|
6066
|
+
const useAddRomaConfigurationMutationOptions = (options) => {
|
|
6067
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
6068
|
+
const addRomaConfiguration = useAddRomaConfigurationHook();
|
|
6069
|
+
const mutationFn = (props) => {
|
|
6070
|
+
const { data } = props ?? {};
|
|
6071
|
+
return addRomaConfiguration(data);
|
|
6072
|
+
};
|
|
6073
|
+
return { mutationFn, ...mutationOptions };
|
|
6074
|
+
};
|
|
6075
|
+
const useAddRomaConfiguration = (options) => {
|
|
6076
|
+
const mutationOptions = useAddRomaConfigurationMutationOptions(options);
|
|
6077
|
+
return useMutation(mutationOptions);
|
|
6078
|
+
};
|
|
6079
|
+
const useGetAllRomaConfigurationTypesHook = () => {
|
|
6080
|
+
const getAllRomaConfigurationTypes = useCustomClient();
|
|
6081
|
+
return (signal) => {
|
|
6082
|
+
return getAllRomaConfigurationTypes({
|
|
6083
|
+
url: `/api/configurations/types`,
|
|
6084
|
+
method: "get",
|
|
6085
|
+
signal
|
|
6086
|
+
});
|
|
6087
|
+
};
|
|
6088
|
+
};
|
|
6089
|
+
const getGetAllRomaConfigurationTypesQueryKey = () => {
|
|
6090
|
+
return [`/api/configurations/types`];
|
|
6091
|
+
};
|
|
6092
|
+
const useGetAllRomaConfigurationTypesQueryOptions = (options) => {
|
|
6093
|
+
const { query: queryOptions } = options ?? {};
|
|
6094
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationTypesQueryKey();
|
|
6095
|
+
const getAllRomaConfigurationTypes = useGetAllRomaConfigurationTypesHook();
|
|
6096
|
+
const queryFn = ({ signal }) => getAllRomaConfigurationTypes(signal);
|
|
6097
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
6098
|
+
};
|
|
6099
|
+
const useGetAllRomaConfigurationTypes = (options) => {
|
|
6100
|
+
const queryOptions = useGetAllRomaConfigurationTypesQueryOptions(options);
|
|
6101
|
+
const query = useQuery(queryOptions);
|
|
6102
|
+
query.queryKey = queryOptions.queryKey;
|
|
6103
|
+
return query;
|
|
6104
|
+
};
|
|
6105
|
+
const useGetAllRomaConfigurationByTypeHook = () => {
|
|
6106
|
+
const getAllRomaConfigurationByType = useCustomClient();
|
|
6107
|
+
return (type, signal) => {
|
|
6108
|
+
return getAllRomaConfigurationByType({
|
|
6109
|
+
url: `/api/configurations/types/type/${type}`,
|
|
6110
|
+
method: "get",
|
|
6111
|
+
signal
|
|
6112
|
+
});
|
|
6113
|
+
};
|
|
6114
|
+
};
|
|
6115
|
+
const getGetAllRomaConfigurationByTypeQueryKey = (type) => {
|
|
6116
|
+
return [`/api/configurations/types/type/${type}`];
|
|
6117
|
+
};
|
|
6118
|
+
const useGetAllRomaConfigurationByTypeQueryOptions = (type, options) => {
|
|
6119
|
+
const { query: queryOptions } = options ?? {};
|
|
6120
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllRomaConfigurationByTypeQueryKey(type);
|
|
6121
|
+
const getAllRomaConfigurationByType = useGetAllRomaConfigurationByTypeHook();
|
|
6122
|
+
const queryFn = ({ signal }) => getAllRomaConfigurationByType(type, signal);
|
|
6123
|
+
return {
|
|
6124
|
+
queryKey,
|
|
6125
|
+
queryFn,
|
|
6126
|
+
enabled: !!type,
|
|
6127
|
+
...queryOptions
|
|
6128
|
+
};
|
|
6129
|
+
};
|
|
6130
|
+
const useGetAllRomaConfigurationByType = (type, options) => {
|
|
6131
|
+
const queryOptions = useGetAllRomaConfigurationByTypeQueryOptions(
|
|
6132
|
+
type,
|
|
6133
|
+
options
|
|
6134
|
+
);
|
|
6135
|
+
const query = useQuery(queryOptions);
|
|
6136
|
+
query.queryKey = queryOptions.queryKey;
|
|
6137
|
+
return query;
|
|
8366
6138
|
};
|
|
8367
6139
|
export {
|
|
6140
|
+
AppContext,
|
|
8368
6141
|
AppLoader,
|
|
6142
|
+
AppProvider,
|
|
8369
6143
|
AppViewer,
|
|
8370
6144
|
EquinorLoader,
|
|
8371
6145
|
ErrorViewer,
|
|
6146
|
+
GetAllRomaConfigurationTypes200Item,
|
|
8372
6147
|
HttpErrorViewer,
|
|
8373
6148
|
StyleProvider,
|
|
6149
|
+
getGetAllAppsQueryKey,
|
|
6150
|
+
getGetAllCategoriesQueryKey,
|
|
6151
|
+
getGetAllRomaConfigurationByTypeQueryKey,
|
|
6152
|
+
getGetAllRomaConfigurationQueryKey,
|
|
6153
|
+
getGetAllRomaConfigurationTypesQueryKey,
|
|
6154
|
+
getGetAllServicesQueryKey,
|
|
6155
|
+
getGetAppByKeyQueryKey,
|
|
6156
|
+
getGetCategoryByIdQueryKey,
|
|
6157
|
+
getGetCurrentEnvironmentQueryKey,
|
|
6158
|
+
getGetRomaConfigurationByIdQueryKey,
|
|
6159
|
+
getGetServiceByKeyQueryKey,
|
|
6160
|
+
getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey,
|
|
6161
|
+
getGetSettingByUserAndAppShortNameQueryKey,
|
|
6162
|
+
getGetSettingByUserAndSettingKeyQueryKey,
|
|
6163
|
+
getStreamEventsQueryKey,
|
|
8374
6164
|
makeComponent,
|
|
6165
|
+
useAddRomaConfiguration,
|
|
6166
|
+
useAddRomaConfigurationHook,
|
|
6167
|
+
useAddRomaConfigurationMutationOptions,
|
|
6168
|
+
useApps,
|
|
6169
|
+
useCreateOrUpdateApp,
|
|
6170
|
+
useCreateOrUpdateAppHook,
|
|
6171
|
+
useCreateOrUpdateAppMutationOptions,
|
|
6172
|
+
useCreateOrUpdateCategory,
|
|
6173
|
+
useCreateOrUpdateCategoryHook,
|
|
6174
|
+
useCreateOrUpdateCategoryMutationOptions,
|
|
6175
|
+
useCreateOrUpdateService,
|
|
6176
|
+
useCreateOrUpdateServiceHook,
|
|
6177
|
+
useCreateOrUpdateServiceMutationOptions,
|
|
6178
|
+
useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKey,
|
|
6179
|
+
useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook,
|
|
6180
|
+
useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions,
|
|
6181
|
+
useCreateOrUpdateSettingByUserAndSettingKey,
|
|
6182
|
+
useCreateOrUpdateSettingByUserAndSettingKeyHook,
|
|
6183
|
+
useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions,
|
|
6184
|
+
useDeleteAppByKey,
|
|
6185
|
+
useDeleteAppByKeyHook,
|
|
6186
|
+
useDeleteAppByKeyMutationOptions,
|
|
6187
|
+
useDeleteCategoryById,
|
|
6188
|
+
useDeleteCategoryByIdHook,
|
|
6189
|
+
useDeleteCategoryByIdMutationOptions,
|
|
6190
|
+
useDeleteRomaConfiguration,
|
|
6191
|
+
useDeleteRomaConfigurationHook,
|
|
6192
|
+
useDeleteRomaConfigurationMutationOptions,
|
|
6193
|
+
useDeleteServiceByKey,
|
|
6194
|
+
useDeleteServiceByKeyHook,
|
|
6195
|
+
useDeleteServiceByKeyMutationOptions,
|
|
6196
|
+
useDeleteSettingByUserAndAppShortNameAndSettingKey,
|
|
6197
|
+
useDeleteSettingByUserAndAppShortNameAndSettingKeyHook,
|
|
6198
|
+
useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions,
|
|
6199
|
+
useDeleteSettingByUserAndSettingKey,
|
|
6200
|
+
useDeleteSettingByUserAndSettingKeyHook,
|
|
6201
|
+
useDeleteSettingByUserAndSettingKeyMutationOptions,
|
|
8375
6202
|
useDownloadRecap,
|
|
6203
|
+
useGetAllApps,
|
|
6204
|
+
useGetAllAppsHook,
|
|
6205
|
+
useGetAllAppsQueryOptions,
|
|
6206
|
+
useGetAllCategories,
|
|
6207
|
+
useGetAllCategoriesHook,
|
|
6208
|
+
useGetAllCategoriesQueryOptions,
|
|
6209
|
+
useGetAllRomaConfiguration,
|
|
6210
|
+
useGetAllRomaConfigurationByType,
|
|
6211
|
+
useGetAllRomaConfigurationByTypeHook,
|
|
6212
|
+
useGetAllRomaConfigurationByTypeQueryOptions,
|
|
6213
|
+
useGetAllRomaConfigurationHook,
|
|
6214
|
+
useGetAllRomaConfigurationQueryOptions,
|
|
6215
|
+
useGetAllRomaConfigurationTypes,
|
|
6216
|
+
useGetAllRomaConfigurationTypesHook,
|
|
6217
|
+
useGetAllRomaConfigurationTypesQueryOptions,
|
|
6218
|
+
useGetAllServices,
|
|
6219
|
+
useGetAllServicesHook,
|
|
6220
|
+
useGetAllServicesQueryOptions,
|
|
6221
|
+
useGetAppByKey,
|
|
6222
|
+
useGetAppByKeyHook,
|
|
6223
|
+
useGetAppByKeyQueryOptions,
|
|
6224
|
+
useGetCategoryById,
|
|
6225
|
+
useGetCategoryByIdHook,
|
|
6226
|
+
useGetCategoryByIdQueryOptions,
|
|
6227
|
+
useGetCurrentEnvironment,
|
|
6228
|
+
useGetCurrentEnvironmentHook,
|
|
6229
|
+
useGetCurrentEnvironmentQueryOptions,
|
|
8376
6230
|
useGetDeals,
|
|
8377
|
-
useGetEnvironment,
|
|
8378
6231
|
useGetRecap,
|
|
8379
|
-
|
|
6232
|
+
useGetRomaConfigurationById,
|
|
6233
|
+
useGetRomaConfigurationByIdHook,
|
|
6234
|
+
useGetRomaConfigurationByIdQueryOptions,
|
|
6235
|
+
useGetServiceByKey,
|
|
6236
|
+
useGetServiceByKeyHook,
|
|
6237
|
+
useGetServiceByKeyQueryOptions,
|
|
6238
|
+
useGetSettingByUserAndAppShortName,
|
|
6239
|
+
useGetSettingByUserAndAppShortNameAndSetttingKey,
|
|
6240
|
+
useGetSettingByUserAndAppShortNameAndSetttingKeyHook,
|
|
6241
|
+
useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions,
|
|
6242
|
+
useGetSettingByUserAndAppShortNameHook,
|
|
6243
|
+
useGetSettingByUserAndAppShortNameQueryOptions,
|
|
6244
|
+
useGetSettingByUserAndSettingKey,
|
|
6245
|
+
useGetSettingByUserAndSettingKeyHook,
|
|
6246
|
+
useGetSettingByUserAndSettingKeyQueryOptions,
|
|
6247
|
+
useStreamEvents,
|
|
6248
|
+
useStreamEventsHook,
|
|
6249
|
+
useStreamEventsQueryOptions,
|
|
6250
|
+
useUpdateRomaConfiguration,
|
|
6251
|
+
useUpdateRomaConfigurationHook,
|
|
6252
|
+
useUpdateRomaConfigurationMutationOptions,
|
|
8380
6253
|
withStyleIsolation
|
|
8381
6254
|
};
|