@darajs/core 1.8.0 → 1.8.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/dist/api/core.d.ts.map +1 -1
- package/dist/api/core.js +2 -0
- package/dist/api/core.js.map +1 -1
- package/dist/api/websocket.d.ts +1 -0
- package/dist/api/websocket.d.ts.map +1 -1
- package/dist/api/websocket.js.map +1 -1
- package/dist/{dara_core-1.8.0-py3-none-any.whl → dara_core-1.8.1-py3-none-any.whl} +0 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/interactivity/data-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/data-variable.js +4 -1
- package/dist/shared/interactivity/data-variable.js.map +1 -1
- package/dist/shared/interactivity/derived-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/derived-variable.js +2 -1
- package/dist/shared/interactivity/derived-variable.js.map +1 -1
- package/dist/shared/interactivity/use-server-component.d.ts.map +1 -1
- package/dist/shared/interactivity/use-server-component.js +2 -1
- package/dist/shared/interactivity/use-server-component.js.map +1 -1
- package/dist/shared/utils/use-action.d.ts.map +1 -1
- package/dist/shared/utils/use-action.js +2 -1
- package/dist/shared/utils/use-action.js.map +1 -1
- package/dist/umd/dara.core.umd.js +582 -819
- package/package.json +9 -9
|
@@ -879,17 +879,17 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
879
879
|
createRoot = m$3.createRoot;
|
|
880
880
|
m$3.hydrateRoot;
|
|
881
881
|
}
|
|
882
|
-
function _setPrototypeOf$
|
|
883
|
-
_setPrototypeOf$
|
|
882
|
+
function _setPrototypeOf$6(o2, p2) {
|
|
883
|
+
_setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
884
884
|
o3.__proto__ = p3;
|
|
885
885
|
return o3;
|
|
886
886
|
};
|
|
887
|
-
return _setPrototypeOf$
|
|
887
|
+
return _setPrototypeOf$6(o2, p2);
|
|
888
888
|
}
|
|
889
889
|
function _inheritsLoose$2(subClass, superClass) {
|
|
890
890
|
subClass.prototype = Object.create(superClass.prototype);
|
|
891
891
|
subClass.prototype.constructor = subClass;
|
|
892
|
-
_setPrototypeOf$
|
|
892
|
+
_setPrototypeOf$6(subClass, superClass);
|
|
893
893
|
}
|
|
894
894
|
var propTypes = { exports: {} };
|
|
895
895
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -12218,21 +12218,21 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12218
12218
|
}
|
|
12219
12219
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
12220
12220
|
if (superClass)
|
|
12221
|
-
_setPrototypeOf$
|
|
12221
|
+
_setPrototypeOf$5(subClass, superClass);
|
|
12222
12222
|
}
|
|
12223
|
-
function _setPrototypeOf$
|
|
12224
|
-
_setPrototypeOf$
|
|
12223
|
+
function _setPrototypeOf$5(o2, p2) {
|
|
12224
|
+
_setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12225
12225
|
o3.__proto__ = p3;
|
|
12226
12226
|
return o3;
|
|
12227
12227
|
};
|
|
12228
|
-
return _setPrototypeOf$
|
|
12228
|
+
return _setPrototypeOf$5(o2, p2);
|
|
12229
12229
|
}
|
|
12230
12230
|
function _createSuper$3(Derived) {
|
|
12231
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12231
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$5();
|
|
12232
12232
|
return function _createSuperInternal() {
|
|
12233
|
-
var Super = _getPrototypeOf$
|
|
12233
|
+
var Super = _getPrototypeOf$5(Derived), result;
|
|
12234
12234
|
if (hasNativeReflectConstruct) {
|
|
12235
|
-
var NewTarget = _getPrototypeOf$
|
|
12235
|
+
var NewTarget = _getPrototypeOf$5(this).constructor;
|
|
12236
12236
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
12237
12237
|
} else {
|
|
12238
12238
|
result = Super.apply(this, arguments);
|
|
@@ -12246,15 +12246,15 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12246
12246
|
} else if (call !== void 0) {
|
|
12247
12247
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
12248
12248
|
}
|
|
12249
|
-
return _assertThisInitialized$
|
|
12249
|
+
return _assertThisInitialized$6(self2);
|
|
12250
12250
|
}
|
|
12251
|
-
function _assertThisInitialized$
|
|
12251
|
+
function _assertThisInitialized$6(self2) {
|
|
12252
12252
|
if (self2 === void 0) {
|
|
12253
12253
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12254
12254
|
}
|
|
12255
12255
|
return self2;
|
|
12256
12256
|
}
|
|
12257
|
-
function _isNativeReflectConstruct$
|
|
12257
|
+
function _isNativeReflectConstruct$5() {
|
|
12258
12258
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
12259
12259
|
return false;
|
|
12260
12260
|
if (Reflect.construct.sham)
|
|
@@ -12269,11 +12269,11 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12269
12269
|
return false;
|
|
12270
12270
|
}
|
|
12271
12271
|
}
|
|
12272
|
-
function _getPrototypeOf$
|
|
12273
|
-
_getPrototypeOf$
|
|
12272
|
+
function _getPrototypeOf$5(o2) {
|
|
12273
|
+
_getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12274
12274
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12275
12275
|
};
|
|
12276
|
-
return _getPrototypeOf$
|
|
12276
|
+
return _getPrototypeOf$5(o2);
|
|
12277
12277
|
}
|
|
12278
12278
|
function _defineProperty$8(obj, key, value) {
|
|
12279
12279
|
if (key in obj) {
|
|
@@ -12290,10 +12290,10 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12290
12290
|
var _this;
|
|
12291
12291
|
_classCallCheck$4(this, Collapse2);
|
|
12292
12292
|
_this = _super.call(this, props);
|
|
12293
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12294
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12295
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12296
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12293
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "timeout", void 0);
|
|
12294
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "container", void 0);
|
|
12295
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "content", void 0);
|
|
12296
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "onResize", function() {
|
|
12297
12297
|
clearTimeout(_this.timeout);
|
|
12298
12298
|
if (!_this.container || !_this.content) {
|
|
12299
12299
|
return;
|
|
@@ -12324,7 +12324,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12324
12324
|
}, checkTimeout);
|
|
12325
12325
|
}
|
|
12326
12326
|
});
|
|
12327
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12327
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "onRest", function(_ref2) {
|
|
12328
12328
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
12329
12329
|
if (!_this.container || !_this.content) {
|
|
12330
12330
|
return;
|
|
@@ -12346,7 +12346,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12346
12346
|
}
|
|
12347
12347
|
}
|
|
12348
12348
|
});
|
|
12349
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12349
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "onWork", function(_ref2) {
|
|
12350
12350
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
12351
12351
|
if (!_this.container || !_this.content) {
|
|
12352
12352
|
return;
|
|
@@ -12369,10 +12369,10 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12369
12369
|
});
|
|
12370
12370
|
}
|
|
12371
12371
|
});
|
|
12372
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12372
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "onRefContainer", function(container) {
|
|
12373
12373
|
_this.container = container;
|
|
12374
12374
|
});
|
|
12375
|
-
_defineProperty$8(_assertThisInitialized$
|
|
12375
|
+
_defineProperty$8(_assertThisInitialized$6(_this), "onRefContent", function(content) {
|
|
12376
12376
|
_this.content = content;
|
|
12377
12377
|
});
|
|
12378
12378
|
if (props.initialStyle) {
|
|
@@ -12579,21 +12579,21 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12579
12579
|
}
|
|
12580
12580
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
12581
12581
|
if (superClass)
|
|
12582
|
-
_setPrototypeOf$
|
|
12582
|
+
_setPrototypeOf$4(subClass, superClass);
|
|
12583
12583
|
}
|
|
12584
|
-
function _setPrototypeOf$
|
|
12585
|
-
_setPrototypeOf$
|
|
12584
|
+
function _setPrototypeOf$4(o2, p2) {
|
|
12585
|
+
_setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12586
12586
|
o3.__proto__ = p3;
|
|
12587
12587
|
return o3;
|
|
12588
12588
|
};
|
|
12589
|
-
return _setPrototypeOf$
|
|
12589
|
+
return _setPrototypeOf$4(o2, p2);
|
|
12590
12590
|
}
|
|
12591
12591
|
function _createSuper$2(Derived) {
|
|
12592
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12592
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$4();
|
|
12593
12593
|
return function _createSuperInternal() {
|
|
12594
|
-
var Super = _getPrototypeOf$
|
|
12594
|
+
var Super = _getPrototypeOf$4(Derived), result;
|
|
12595
12595
|
if (hasNativeReflectConstruct) {
|
|
12596
|
-
var NewTarget = _getPrototypeOf$
|
|
12596
|
+
var NewTarget = _getPrototypeOf$4(this).constructor;
|
|
12597
12597
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
12598
12598
|
} else {
|
|
12599
12599
|
result = Super.apply(this, arguments);
|
|
@@ -12607,15 +12607,15 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12607
12607
|
} else if (call !== void 0) {
|
|
12608
12608
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
12609
12609
|
}
|
|
12610
|
-
return _assertThisInitialized$
|
|
12610
|
+
return _assertThisInitialized$5(self2);
|
|
12611
12611
|
}
|
|
12612
|
-
function _assertThisInitialized$
|
|
12612
|
+
function _assertThisInitialized$5(self2) {
|
|
12613
12613
|
if (self2 === void 0) {
|
|
12614
12614
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12615
12615
|
}
|
|
12616
12616
|
return self2;
|
|
12617
12617
|
}
|
|
12618
|
-
function _isNativeReflectConstruct$
|
|
12618
|
+
function _isNativeReflectConstruct$4() {
|
|
12619
12619
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
12620
12620
|
return false;
|
|
12621
12621
|
if (Reflect.construct.sham)
|
|
@@ -12630,11 +12630,11 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12630
12630
|
return false;
|
|
12631
12631
|
}
|
|
12632
12632
|
}
|
|
12633
|
-
function _getPrototypeOf$
|
|
12634
|
-
_getPrototypeOf$
|
|
12633
|
+
function _getPrototypeOf$4(o2) {
|
|
12634
|
+
_getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12635
12635
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12636
12636
|
};
|
|
12637
|
-
return _getPrototypeOf$
|
|
12637
|
+
return _getPrototypeOf$4(o2);
|
|
12638
12638
|
}
|
|
12639
12639
|
function _defineProperty$7(obj, key, value) {
|
|
12640
12640
|
if (key in obj) {
|
|
@@ -12651,7 +12651,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12651
12651
|
var _this;
|
|
12652
12652
|
_classCallCheck$3(this, UnmountClosed2);
|
|
12653
12653
|
_this = _super.call(this, props);
|
|
12654
|
-
_defineProperty$7(_assertThisInitialized$
|
|
12654
|
+
_defineProperty$7(_assertThisInitialized$5(_this), "onWork", function(_ref2) {
|
|
12655
12655
|
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$2(_ref2, _excluded$5);
|
|
12656
12656
|
_this.setState({
|
|
12657
12657
|
isResting: false,
|
|
@@ -12664,7 +12664,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12664
12664
|
}, rest));
|
|
12665
12665
|
}
|
|
12666
12666
|
});
|
|
12667
|
-
_defineProperty$7(_assertThisInitialized$
|
|
12667
|
+
_defineProperty$7(_assertThisInitialized$5(_this), "onRest", function(_ref2) {
|
|
12668
12668
|
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$2(_ref2, _excluded2$3);
|
|
12669
12669
|
_this.setState({
|
|
12670
12670
|
isResting: true,
|
|
@@ -12678,7 +12678,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
12678
12678
|
}, rest));
|
|
12679
12679
|
}
|
|
12680
12680
|
});
|
|
12681
|
-
_defineProperty$7(_assertThisInitialized$
|
|
12681
|
+
_defineProperty$7(_assertThisInitialized$5(_this), "getInitialStyle", function() {
|
|
12682
12682
|
var _this$state = _this.state, isOpened = _this$state.isOpened, isInitialRender = _this$state.isInitialRender;
|
|
12683
12683
|
if (isInitialRender) {
|
|
12684
12684
|
return isOpened ? {
|
|
@@ -17471,29 +17471,29 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17471
17471
|
};
|
|
17472
17472
|
return _extends$1.apply(this, arguments);
|
|
17473
17473
|
}
|
|
17474
|
-
function _assertThisInitialized$
|
|
17474
|
+
function _assertThisInitialized$4(self2) {
|
|
17475
17475
|
if (self2 === void 0) {
|
|
17476
17476
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17477
17477
|
}
|
|
17478
17478
|
return self2;
|
|
17479
17479
|
}
|
|
17480
|
-
function _setPrototypeOf$
|
|
17481
|
-
_setPrototypeOf$
|
|
17480
|
+
function _setPrototypeOf$3(o2, p2) {
|
|
17481
|
+
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
17482
17482
|
o3.__proto__ = p3;
|
|
17483
17483
|
return o3;
|
|
17484
17484
|
};
|
|
17485
|
-
return _setPrototypeOf$
|
|
17485
|
+
return _setPrototypeOf$3(o2, p2);
|
|
17486
17486
|
}
|
|
17487
17487
|
function _inheritsLoose$1(subClass, superClass) {
|
|
17488
17488
|
subClass.prototype = Object.create(superClass.prototype);
|
|
17489
17489
|
subClass.prototype.constructor = subClass;
|
|
17490
|
-
_setPrototypeOf$
|
|
17490
|
+
_setPrototypeOf$3(subClass, superClass);
|
|
17491
17491
|
}
|
|
17492
|
-
function _getPrototypeOf$
|
|
17493
|
-
_getPrototypeOf$
|
|
17492
|
+
function _getPrototypeOf$3(o2) {
|
|
17493
|
+
_getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
17494
17494
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
17495
17495
|
};
|
|
17496
|
-
return _getPrototypeOf$
|
|
17496
|
+
return _getPrototypeOf$3(o2);
|
|
17497
17497
|
}
|
|
17498
17498
|
function _isNativeFunction$1(fn) {
|
|
17499
17499
|
try {
|
|
@@ -17502,23 +17502,23 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17502
17502
|
return typeof fn === "function";
|
|
17503
17503
|
}
|
|
17504
17504
|
}
|
|
17505
|
-
function _isNativeReflectConstruct$
|
|
17505
|
+
function _isNativeReflectConstruct$3() {
|
|
17506
17506
|
try {
|
|
17507
17507
|
var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
17508
17508
|
}));
|
|
17509
17509
|
} catch (t3) {
|
|
17510
17510
|
}
|
|
17511
|
-
return (_isNativeReflectConstruct$
|
|
17511
|
+
return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct2() {
|
|
17512
17512
|
return !!t2;
|
|
17513
17513
|
})();
|
|
17514
17514
|
}
|
|
17515
17515
|
function _construct$1(t2, e3, r2) {
|
|
17516
|
-
if (_isNativeReflectConstruct$
|
|
17516
|
+
if (_isNativeReflectConstruct$3())
|
|
17517
17517
|
return Reflect.construct.apply(null, arguments);
|
|
17518
17518
|
var o2 = [null];
|
|
17519
17519
|
o2.push.apply(o2, e3);
|
|
17520
17520
|
var p2 = new (t2.bind.apply(t2, o2))();
|
|
17521
|
-
return r2 && _setPrototypeOf$
|
|
17521
|
+
return r2 && _setPrototypeOf$3(p2, r2.prototype), p2;
|
|
17522
17522
|
}
|
|
17523
17523
|
function _wrapNativeSuper$1(Class) {
|
|
17524
17524
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
@@ -17534,7 +17534,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17534
17534
|
_cache.set(Class2, Wrapper2);
|
|
17535
17535
|
}
|
|
17536
17536
|
function Wrapper2() {
|
|
17537
|
-
return _construct$1(Class2, arguments, _getPrototypeOf$
|
|
17537
|
+
return _construct$1(Class2, arguments, _getPrototypeOf$3(this).constructor);
|
|
17538
17538
|
}
|
|
17539
17539
|
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
17540
17540
|
constructor: {
|
|
@@ -17544,30 +17544,30 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17544
17544
|
configurable: true
|
|
17545
17545
|
}
|
|
17546
17546
|
});
|
|
17547
|
-
return _setPrototypeOf$
|
|
17547
|
+
return _setPrototypeOf$3(Wrapper2, Class2);
|
|
17548
17548
|
};
|
|
17549
17549
|
return _wrapNativeSuper$1(Class);
|
|
17550
17550
|
}
|
|
17551
|
-
var PolishedError$
|
|
17551
|
+
var PolishedError$1 = /* @__PURE__ */ function(_Error) {
|
|
17552
17552
|
_inheritsLoose$1(PolishedError2, _Error);
|
|
17553
17553
|
function PolishedError2(code) {
|
|
17554
17554
|
var _this;
|
|
17555
17555
|
{
|
|
17556
17556
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
17557
17557
|
}
|
|
17558
|
-
return _assertThisInitialized$
|
|
17558
|
+
return _assertThisInitialized$4(_this);
|
|
17559
17559
|
}
|
|
17560
17560
|
return PolishedError2;
|
|
17561
17561
|
}(/* @__PURE__ */ _wrapNativeSuper$1(Error));
|
|
17562
|
-
function colorToInt$
|
|
17562
|
+
function colorToInt$1(color) {
|
|
17563
17563
|
return Math.round(color * 255);
|
|
17564
17564
|
}
|
|
17565
|
-
function convertToInt$
|
|
17566
|
-
return colorToInt$
|
|
17565
|
+
function convertToInt$1(red, green, blue) {
|
|
17566
|
+
return colorToInt$1(red) + "," + colorToInt$1(green) + "," + colorToInt$1(blue);
|
|
17567
17567
|
}
|
|
17568
|
-
function hslToRgb$
|
|
17568
|
+
function hslToRgb$1(hue, saturation, lightness, convert2) {
|
|
17569
17569
|
if (convert2 === void 0) {
|
|
17570
|
-
convert2 = convertToInt$
|
|
17570
|
+
convert2 = convertToInt$1;
|
|
17571
17571
|
}
|
|
17572
17572
|
if (saturation === 0) {
|
|
17573
17573
|
return convert2(lightness, lightness, lightness);
|
|
@@ -17603,7 +17603,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17603
17603
|
var finalBlue = blue + lightnessModification;
|
|
17604
17604
|
return convert2(finalRed, finalGreen, finalBlue);
|
|
17605
17605
|
}
|
|
17606
|
-
var namedColorMap$
|
|
17606
|
+
var namedColorMap$1 = {
|
|
17607
17607
|
aliceblue: "f0f8ff",
|
|
17608
17608
|
antiquewhite: "faebd7",
|
|
17609
17609
|
aqua: "00ffff",
|
|
@@ -17753,33 +17753,33 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17753
17753
|
yellow: "ff0",
|
|
17754
17754
|
yellowgreen: "9acd32"
|
|
17755
17755
|
};
|
|
17756
|
-
function nameToHex$
|
|
17756
|
+
function nameToHex$1(color) {
|
|
17757
17757
|
if (typeof color !== "string")
|
|
17758
17758
|
return color;
|
|
17759
17759
|
var normalizedColorName = color.toLowerCase();
|
|
17760
|
-
return namedColorMap$
|
|
17761
|
-
}
|
|
17762
|
-
var hexRegex$
|
|
17763
|
-
var hexRgbaRegex$
|
|
17764
|
-
var reducedHexRegex$
|
|
17765
|
-
var reducedRgbaHexRegex$
|
|
17766
|
-
var rgbRegex$
|
|
17767
|
-
var rgbaRegex$
|
|
17768
|
-
var hslRegex$
|
|
17769
|
-
var hslaRegex$
|
|
17770
|
-
function parseToRgb$
|
|
17760
|
+
return namedColorMap$1[normalizedColorName] ? "#" + namedColorMap$1[normalizedColorName] : color;
|
|
17761
|
+
}
|
|
17762
|
+
var hexRegex$1 = /^#[a-fA-F0-9]{6}$/;
|
|
17763
|
+
var hexRgbaRegex$1 = /^#[a-fA-F0-9]{8}$/;
|
|
17764
|
+
var reducedHexRegex$1 = /^#[a-fA-F0-9]{3}$/;
|
|
17765
|
+
var reducedRgbaHexRegex$1 = /^#[a-fA-F0-9]{4}$/;
|
|
17766
|
+
var rgbRegex$1 = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
|
|
17767
|
+
var rgbaRegex$1 = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
|
|
17768
|
+
var hslRegex$1 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
|
|
17769
|
+
var hslaRegex$1 = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
|
|
17770
|
+
function parseToRgb$1(color) {
|
|
17771
17771
|
if (typeof color !== "string") {
|
|
17772
|
-
throw new PolishedError$
|
|
17772
|
+
throw new PolishedError$1(3);
|
|
17773
17773
|
}
|
|
17774
|
-
var normalizedColor = nameToHex$
|
|
17775
|
-
if (normalizedColor.match(hexRegex$
|
|
17774
|
+
var normalizedColor = nameToHex$1(color);
|
|
17775
|
+
if (normalizedColor.match(hexRegex$1)) {
|
|
17776
17776
|
return {
|
|
17777
17777
|
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
17778
17778
|
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
17779
17779
|
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
|
|
17780
17780
|
};
|
|
17781
17781
|
}
|
|
17782
|
-
if (normalizedColor.match(hexRgbaRegex$
|
|
17782
|
+
if (normalizedColor.match(hexRgbaRegex$1)) {
|
|
17783
17783
|
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
|
17784
17784
|
return {
|
|
17785
17785
|
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
@@ -17788,14 +17788,14 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17788
17788
|
alpha
|
|
17789
17789
|
};
|
|
17790
17790
|
}
|
|
17791
|
-
if (normalizedColor.match(reducedHexRegex$
|
|
17791
|
+
if (normalizedColor.match(reducedHexRegex$1)) {
|
|
17792
17792
|
return {
|
|
17793
17793
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
17794
17794
|
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
17795
17795
|
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
|
|
17796
17796
|
};
|
|
17797
17797
|
}
|
|
17798
|
-
if (normalizedColor.match(reducedRgbaHexRegex$
|
|
17798
|
+
if (normalizedColor.match(reducedRgbaHexRegex$1)) {
|
|
17799
17799
|
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
|
17800
17800
|
return {
|
|
17801
17801
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
@@ -17804,7 +17804,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17804
17804
|
alpha: _alpha
|
|
17805
17805
|
};
|
|
17806
17806
|
}
|
|
17807
|
-
var rgbMatched = rgbRegex$
|
|
17807
|
+
var rgbMatched = rgbRegex$1.exec(normalizedColor);
|
|
17808
17808
|
if (rgbMatched) {
|
|
17809
17809
|
return {
|
|
17810
17810
|
red: parseInt("" + rgbMatched[1], 10),
|
|
@@ -17812,7 +17812,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17812
17812
|
blue: parseInt("" + rgbMatched[3], 10)
|
|
17813
17813
|
};
|
|
17814
17814
|
}
|
|
17815
|
-
var rgbaMatched = rgbaRegex$
|
|
17815
|
+
var rgbaMatched = rgbaRegex$1.exec(normalizedColor);
|
|
17816
17816
|
if (rgbaMatched) {
|
|
17817
17817
|
return {
|
|
17818
17818
|
red: parseInt("" + rgbaMatched[1], 10),
|
|
@@ -17821,15 +17821,15 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17821
17821
|
alpha: parseFloat("" + rgbaMatched[4])
|
|
17822
17822
|
};
|
|
17823
17823
|
}
|
|
17824
|
-
var hslMatched = hslRegex$
|
|
17824
|
+
var hslMatched = hslRegex$1.exec(normalizedColor);
|
|
17825
17825
|
if (hslMatched) {
|
|
17826
17826
|
var hue = parseInt("" + hslMatched[1], 10);
|
|
17827
17827
|
var saturation = parseInt("" + hslMatched[2], 10) / 100;
|
|
17828
17828
|
var lightness = parseInt("" + hslMatched[3], 10) / 100;
|
|
17829
|
-
var rgbColorString = "rgb(" + hslToRgb$
|
|
17830
|
-
var hslRgbMatched = rgbRegex$
|
|
17829
|
+
var rgbColorString = "rgb(" + hslToRgb$1(hue, saturation, lightness) + ")";
|
|
17830
|
+
var hslRgbMatched = rgbRegex$1.exec(rgbColorString);
|
|
17831
17831
|
if (!hslRgbMatched) {
|
|
17832
|
-
throw new PolishedError$
|
|
17832
|
+
throw new PolishedError$1(4, normalizedColor, rgbColorString);
|
|
17833
17833
|
}
|
|
17834
17834
|
return {
|
|
17835
17835
|
red: parseInt("" + hslRgbMatched[1], 10),
|
|
@@ -17837,15 +17837,15 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17837
17837
|
blue: parseInt("" + hslRgbMatched[3], 10)
|
|
17838
17838
|
};
|
|
17839
17839
|
}
|
|
17840
|
-
var hslaMatched = hslaRegex$
|
|
17840
|
+
var hslaMatched = hslaRegex$1.exec(normalizedColor);
|
|
17841
17841
|
if (hslaMatched) {
|
|
17842
17842
|
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
17843
17843
|
var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
|
|
17844
17844
|
var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
|
|
17845
|
-
var _rgbColorString = "rgb(" + hslToRgb$
|
|
17846
|
-
var _hslRgbMatched = rgbRegex$
|
|
17845
|
+
var _rgbColorString = "rgb(" + hslToRgb$1(_hue, _saturation, _lightness) + ")";
|
|
17846
|
+
var _hslRgbMatched = rgbRegex$1.exec(_rgbColorString);
|
|
17847
17847
|
if (!_hslRgbMatched) {
|
|
17848
|
-
throw new PolishedError$
|
|
17848
|
+
throw new PolishedError$1(4, normalizedColor, _rgbColorString);
|
|
17849
17849
|
}
|
|
17850
17850
|
return {
|
|
17851
17851
|
red: parseInt("" + _hslRgbMatched[1], 10),
|
|
@@ -17854,60 +17854,60 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
17854
17854
|
alpha: parseFloat("" + hslaMatched[4])
|
|
17855
17855
|
};
|
|
17856
17856
|
}
|
|
17857
|
-
throw new PolishedError$
|
|
17857
|
+
throw new PolishedError$1(5);
|
|
17858
17858
|
}
|
|
17859
|
-
var reduceHexValue$
|
|
17859
|
+
var reduceHexValue$2 = function reduceHexValue2(value) {
|
|
17860
17860
|
if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
|
|
17861
17861
|
return "#" + value[1] + value[3] + value[5];
|
|
17862
17862
|
}
|
|
17863
17863
|
return value;
|
|
17864
17864
|
};
|
|
17865
|
-
function numberToHex$
|
|
17865
|
+
function numberToHex$1(value) {
|
|
17866
17866
|
var hex = value.toString(16);
|
|
17867
17867
|
return hex.length === 1 ? "0" + hex : hex;
|
|
17868
17868
|
}
|
|
17869
|
-
function rgb$
|
|
17869
|
+
function rgb$1(value, green, blue) {
|
|
17870
17870
|
if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
|
|
17871
|
-
return reduceHexValue$
|
|
17871
|
+
return reduceHexValue$2("#" + numberToHex$1(value) + numberToHex$1(green) + numberToHex$1(blue));
|
|
17872
17872
|
} else if (typeof value === "object" && green === void 0 && blue === void 0) {
|
|
17873
|
-
return reduceHexValue$
|
|
17873
|
+
return reduceHexValue$2("#" + numberToHex$1(value.red) + numberToHex$1(value.green) + numberToHex$1(value.blue));
|
|
17874
17874
|
}
|
|
17875
|
-
throw new PolishedError$
|
|
17875
|
+
throw new PolishedError$1(6);
|
|
17876
17876
|
}
|
|
17877
|
-
function rgba$
|
|
17877
|
+
function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
|
|
17878
17878
|
if (typeof firstValue === "string" && typeof secondValue === "number") {
|
|
17879
|
-
var rgbValue = parseToRgb$
|
|
17879
|
+
var rgbValue = parseToRgb$1(firstValue);
|
|
17880
17880
|
return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
|
|
17881
17881
|
} else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
|
|
17882
|
-
return fourthValue >= 1 ? rgb$
|
|
17882
|
+
return fourthValue >= 1 ? rgb$1(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
|
|
17883
17883
|
} else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
|
|
17884
|
-
return firstValue.alpha >= 1 ? rgb$
|
|
17884
|
+
return firstValue.alpha >= 1 ? rgb$1(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
|
17885
17885
|
}
|
|
17886
|
-
throw new PolishedError$
|
|
17886
|
+
throw new PolishedError$1(7);
|
|
17887
17887
|
}
|
|
17888
|
-
function curried$
|
|
17888
|
+
function curried$1(f2, length, acc) {
|
|
17889
17889
|
return function fn() {
|
|
17890
17890
|
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
|
17891
|
-
return combined.length >= length ? f2.apply(this, combined) : curried$
|
|
17891
|
+
return combined.length >= length ? f2.apply(this, combined) : curried$1(f2, length, combined);
|
|
17892
17892
|
};
|
|
17893
17893
|
}
|
|
17894
|
-
function curry$
|
|
17895
|
-
return curried$
|
|
17894
|
+
function curry$2(f2) {
|
|
17895
|
+
return curried$1(f2, f2.length, []);
|
|
17896
17896
|
}
|
|
17897
|
-
function guard$
|
|
17897
|
+
function guard$1(lowerBoundary, upperBoundary, value) {
|
|
17898
17898
|
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
17899
17899
|
}
|
|
17900
|
-
function transparentize$
|
|
17900
|
+
function transparentize$1(amount, color) {
|
|
17901
17901
|
if (color === "transparent")
|
|
17902
17902
|
return color;
|
|
17903
|
-
var parsedColor = parseToRgb$
|
|
17903
|
+
var parsedColor = parseToRgb$1(color);
|
|
17904
17904
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
17905
17905
|
var colorWithAlpha = _extends$1({}, parsedColor, {
|
|
17906
|
-
alpha: guard$
|
|
17906
|
+
alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
|
|
17907
17907
|
});
|
|
17908
|
-
return rgba$
|
|
17908
|
+
return rgba$1(colorWithAlpha);
|
|
17909
17909
|
}
|
|
17910
|
-
var curriedTransparentize$2 = /* @__PURE__ */ curry$
|
|
17910
|
+
var curriedTransparentize$2 = /* @__PURE__ */ curry$2(transparentize$1);
|
|
17911
17911
|
const Wrapper$8 = styled__default.default.div`
|
|
17912
17912
|
display: flex;
|
|
17913
17913
|
gap: 1rem;
|
|
@@ -26908,6 +26908,271 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
26908
26908
|
function validateTimezone$1(_hours, minutes) {
|
|
26909
26909
|
return minutes >= 0 && minutes <= 59;
|
|
26910
26910
|
}
|
|
26911
|
+
globalThis && globalThis.__rest || function(s, e3) {
|
|
26912
|
+
var t2 = {};
|
|
26913
|
+
for (var p2 in s)
|
|
26914
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
26915
|
+
t2[p2] = s[p2];
|
|
26916
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
26917
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s); i2 < p2.length; i2++) {
|
|
26918
|
+
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i2]))
|
|
26919
|
+
t2[p2[i2]] = s[p2[i2]];
|
|
26920
|
+
}
|
|
26921
|
+
return t2;
|
|
26922
|
+
};
|
|
26923
|
+
styled__default.default.div`
|
|
26924
|
+
/*
|
|
26925
|
+
* Apply some base styles to the markdown content so it looks good by default
|
|
26926
|
+
* Inspired by https://tailwindcss.com/docs/typography-plugin
|
|
26927
|
+
*/
|
|
26928
|
+
code {
|
|
26929
|
+
font-size: 0.9rem;
|
|
26930
|
+
}
|
|
26931
|
+
|
|
26932
|
+
p {
|
|
26933
|
+
margin-top: 1.25rem;
|
|
26934
|
+
margin-bottom: 1.25rem;
|
|
26935
|
+
line-height: 1.5rem;
|
|
26936
|
+
|
|
26937
|
+
code {
|
|
26938
|
+
padding: 0.1rem;
|
|
26939
|
+
background-color: ${(props) => props.theme.colors.grey1};
|
|
26940
|
+
border: 1px solid ${(props) => props.theme.colors.grey3};
|
|
26941
|
+
border-radius: 0.25rem;
|
|
26942
|
+
}
|
|
26943
|
+
}
|
|
26944
|
+
|
|
26945
|
+
p,
|
|
26946
|
+
tr {
|
|
26947
|
+
math {
|
|
26948
|
+
padding: 0;
|
|
26949
|
+
font-size: 1.25rem;
|
|
26950
|
+
}
|
|
26951
|
+
}
|
|
26952
|
+
|
|
26953
|
+
/* stylelint-disable-next-line */
|
|
26954
|
+
math {
|
|
26955
|
+
padding: 0.5rem;
|
|
26956
|
+
font-size: 1.5rem;
|
|
26957
|
+
}
|
|
26958
|
+
|
|
26959
|
+
a {
|
|
26960
|
+
color: ${(props) => props.theme.colors.primary};
|
|
26961
|
+
word-break: break-word;
|
|
26962
|
+
}
|
|
26963
|
+
|
|
26964
|
+
blockquote {
|
|
26965
|
+
/* stylelint-disable-next-line */
|
|
26966
|
+
quotes: '"\\201C""\\201D""\\2018""\\2019"';
|
|
26967
|
+
|
|
26968
|
+
margin-top: 1.5rem;
|
|
26969
|
+
margin-bottom: 1.5rem;
|
|
26970
|
+
padding-left: 1rem;
|
|
26971
|
+
|
|
26972
|
+
font-weight: 500;
|
|
26973
|
+
font-style: italic;
|
|
26974
|
+
color: ${(props) => props.theme.colors.grey6};
|
|
26975
|
+
|
|
26976
|
+
border-left: 0.25rem solid ${(props) => props.theme.colors.grey3};
|
|
26977
|
+
}
|
|
26978
|
+
|
|
26979
|
+
h1 {
|
|
26980
|
+
margin-top: 2rem;
|
|
26981
|
+
margin-bottom: 1rem;
|
|
26982
|
+
|
|
26983
|
+
font-size: 2.5rem;
|
|
26984
|
+
font-weight: 800;
|
|
26985
|
+
line-height: 1.1;
|
|
26986
|
+
}
|
|
26987
|
+
|
|
26988
|
+
h2 {
|
|
26989
|
+
margin-top: 1rem;
|
|
26990
|
+
margin-bottom: 1rem;
|
|
26991
|
+
|
|
26992
|
+
font-size: 2rem;
|
|
26993
|
+
font-weight: 800;
|
|
26994
|
+
line-height: 1.3;
|
|
26995
|
+
}
|
|
26996
|
+
|
|
26997
|
+
h3 {
|
|
26998
|
+
margin-top: 1.6rem;
|
|
26999
|
+
margin-bottom: 0.6rem;
|
|
27000
|
+
|
|
27001
|
+
font-size: 1.25rem;
|
|
27002
|
+
font-weight: 800;
|
|
27003
|
+
line-height: 1.25;
|
|
27004
|
+
}
|
|
27005
|
+
|
|
27006
|
+
h4 {
|
|
27007
|
+
margin-top: 1.5rem;
|
|
27008
|
+
margin-bottom: 0.5rem;
|
|
27009
|
+
line-height: 1.5;
|
|
27010
|
+
}
|
|
27011
|
+
|
|
27012
|
+
img,
|
|
27013
|
+
figure,
|
|
27014
|
+
video {
|
|
27015
|
+
margin-top: 1.5rem;
|
|
27016
|
+
margin-bottom: 1.5rem;
|
|
27017
|
+
|
|
27018
|
+
* {
|
|
27019
|
+
margin-top: 0;
|
|
27020
|
+
margin-bottom: 0;
|
|
27021
|
+
}
|
|
27022
|
+
}
|
|
27023
|
+
|
|
27024
|
+
h2 code {
|
|
27025
|
+
font-size: 0.875rem;
|
|
27026
|
+
}
|
|
27027
|
+
|
|
27028
|
+
h3 code {
|
|
27029
|
+
font-size: 0.9rem;
|
|
27030
|
+
}
|
|
27031
|
+
|
|
27032
|
+
pre {
|
|
27033
|
+
overflow-x: auto;
|
|
27034
|
+
|
|
27035
|
+
margin-top: 1.7rem;
|
|
27036
|
+
margin-bottom: 1.7rem;
|
|
27037
|
+
padding: 0 0.5em;
|
|
27038
|
+
|
|
27039
|
+
font-size: 0.9rem;
|
|
27040
|
+
line-height: 1.7;
|
|
27041
|
+
|
|
27042
|
+
background-color: ${(props) => props.theme.colors.blue2};
|
|
27043
|
+
border: 1px solid ${(props) => props.theme.colors.blue3};
|
|
27044
|
+
border-radius: 0.375rem;
|
|
27045
|
+
|
|
27046
|
+
div {
|
|
27047
|
+
background-color: ${(props) => props.theme.colors.blue2} !important;
|
|
27048
|
+
|
|
27049
|
+
span {
|
|
27050
|
+
background-color: ${(props) => props.theme.colors.blue2};
|
|
27051
|
+
}
|
|
27052
|
+
}
|
|
27053
|
+
}
|
|
27054
|
+
|
|
27055
|
+
hr + *,
|
|
27056
|
+
h2 + *,
|
|
27057
|
+
h3 + *,
|
|
27058
|
+
h4 + * {
|
|
27059
|
+
margin-top: 0;
|
|
27060
|
+
}
|
|
27061
|
+
|
|
27062
|
+
ol,
|
|
27063
|
+
ul {
|
|
27064
|
+
margin-top: 1.25rem;
|
|
27065
|
+
margin-bottom: 1.25rem;
|
|
27066
|
+
padding-left: 1.625rem;
|
|
27067
|
+
|
|
27068
|
+
li {
|
|
27069
|
+
margin-top: 0.5rem;
|
|
27070
|
+
margin-bottom: 0.5rem;
|
|
27071
|
+
padding-left: 0.375rem;
|
|
27072
|
+
line-height: 1.5rem;
|
|
27073
|
+
|
|
27074
|
+
code {
|
|
27075
|
+
padding: 0.1em;
|
|
27076
|
+
background-color: ${(props) => props.theme.colors.grey1};
|
|
27077
|
+
border: 1px solid ${(props) => props.theme.colors.grey3};
|
|
27078
|
+
border-radius: 0.25rem;
|
|
27079
|
+
}
|
|
27080
|
+
|
|
27081
|
+
strong {
|
|
27082
|
+
font-style: italic;
|
|
27083
|
+
}
|
|
27084
|
+
|
|
27085
|
+
p {
|
|
27086
|
+
margin-top: 0.75rem;
|
|
27087
|
+
margin-bottom: 0.75rem;
|
|
27088
|
+
}
|
|
27089
|
+
|
|
27090
|
+
*:first-child {
|
|
27091
|
+
margin-top: 1.25rem;
|
|
27092
|
+
}
|
|
27093
|
+
|
|
27094
|
+
*:last-child {
|
|
27095
|
+
margin-bottom: 1.25rem;
|
|
27096
|
+
}
|
|
27097
|
+
}
|
|
27098
|
+
}
|
|
27099
|
+
|
|
27100
|
+
hr {
|
|
27101
|
+
margin-top: 3rem;
|
|
27102
|
+
margin-bottom: 3rem;
|
|
27103
|
+
}
|
|
27104
|
+
|
|
27105
|
+
table {
|
|
27106
|
+
font-size: 0.875rem;
|
|
27107
|
+
line-height: 1.7;
|
|
27108
|
+
|
|
27109
|
+
thead {
|
|
27110
|
+
th {
|
|
27111
|
+
padding-right: 0.5rem;
|
|
27112
|
+
padding-bottom: 0.5rem;
|
|
27113
|
+
padding-left: 0.5rem;
|
|
27114
|
+
}
|
|
27115
|
+
|
|
27116
|
+
th:first-child {
|
|
27117
|
+
padding-left: 0;
|
|
27118
|
+
}
|
|
27119
|
+
|
|
27120
|
+
th:last-child {
|
|
27121
|
+
padding-right: 0;
|
|
27122
|
+
}
|
|
27123
|
+
}
|
|
27124
|
+
|
|
27125
|
+
tbody {
|
|
27126
|
+
td {
|
|
27127
|
+
padding: 0.5rem;
|
|
27128
|
+
}
|
|
27129
|
+
|
|
27130
|
+
td:first-child {
|
|
27131
|
+
padding-left: 0;
|
|
27132
|
+
}
|
|
27133
|
+
|
|
27134
|
+
td:last-child {
|
|
27135
|
+
padding-right: 0;
|
|
27136
|
+
}
|
|
27137
|
+
}
|
|
27138
|
+
}
|
|
27139
|
+
|
|
27140
|
+
/* Remove top margin for first-child */
|
|
27141
|
+
h1:first-child,
|
|
27142
|
+
h2:first-child,
|
|
27143
|
+
h3:first-child,
|
|
27144
|
+
h4:first-child,
|
|
27145
|
+
blockquote:first-child,
|
|
27146
|
+
ol:first-child,
|
|
27147
|
+
ul:first-child,
|
|
27148
|
+
li:first-child,
|
|
27149
|
+
p:first-child,
|
|
27150
|
+
img:first-child,
|
|
27151
|
+
figure:first-child,
|
|
27152
|
+
video:first-child,
|
|
27153
|
+
pre:first-child,
|
|
27154
|
+
hr:first-child {
|
|
27155
|
+
margin-top: 0;
|
|
27156
|
+
}
|
|
27157
|
+
|
|
27158
|
+
/* Remove bottom margin for last-child */
|
|
27159
|
+
h1:last-child,
|
|
27160
|
+
h2:last-child,
|
|
27161
|
+
h3:last-child,
|
|
27162
|
+
h4:last-child,
|
|
27163
|
+
blockquote:last-child,
|
|
27164
|
+
ol:last-child,
|
|
27165
|
+
ul:last-child,
|
|
27166
|
+
li:last-child,
|
|
27167
|
+
p:last-child,
|
|
27168
|
+
img:last-child,
|
|
27169
|
+
figure:last-child,
|
|
27170
|
+
video:last-child,
|
|
27171
|
+
pre:last-child,
|
|
27172
|
+
hr:last-child {
|
|
27173
|
+
margin-bottom: 0;
|
|
27174
|
+
}
|
|
27175
|
+
`;
|
|
26911
27176
|
var top$1 = "top";
|
|
26912
27177
|
var bottom$1 = "bottom";
|
|
26913
27178
|
var right$1 = "right";
|
|
@@ -30878,11 +31143,11 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
30878
31143
|
styled__default.default.div`
|
|
30879
31144
|
display: flex;
|
|
30880
31145
|
justify-content: space-between;
|
|
30881
|
-
|
|
30882
31146
|
width: 100%;
|
|
30883
|
-
|
|
30884
|
-
|
|
30885
|
-
|
|
31147
|
+
font-size: 0.875rem;
|
|
31148
|
+
`;
|
|
31149
|
+
styled__default.default.span`
|
|
31150
|
+
font-size: 0.75rem;
|
|
30886
31151
|
color: ${(props) => props.theme.colors.grey5};
|
|
30887
31152
|
`;
|
|
30888
31153
|
styled__default.default.span`
|
|
@@ -30891,6 +31156,7 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
30891
31156
|
overflow-wrap: break-word;
|
|
30892
31157
|
`;
|
|
30893
31158
|
styled__default.default.span`
|
|
31159
|
+
align-self: end;
|
|
30894
31160
|
font-size: 0.8rem;
|
|
30895
31161
|
color: ${(props) => props.theme.colors.grey4};
|
|
30896
31162
|
`;
|
|
@@ -30922,6 +31188,24 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
30922
31188
|
display: flex;
|
|
30923
31189
|
gap: 1rem;
|
|
30924
31190
|
justify-content: flex-end;
|
|
31191
|
+
`;
|
|
31192
|
+
styled__default.default.div`
|
|
31193
|
+
display: flex;
|
|
31194
|
+
gap: 0.5rem;
|
|
31195
|
+
align-items: center;
|
|
31196
|
+
`;
|
|
31197
|
+
styled__default.default.div`
|
|
31198
|
+
display: flex;
|
|
31199
|
+
align-items: center;
|
|
31200
|
+
justify-content: center;
|
|
31201
|
+
|
|
31202
|
+
width: 2rem;
|
|
31203
|
+
height: 2rem;
|
|
31204
|
+
|
|
31205
|
+
font-weight: 700;
|
|
31206
|
+
color: white;
|
|
31207
|
+
|
|
31208
|
+
border-radius: 50%;
|
|
30925
31209
|
`;
|
|
30926
31210
|
styled__default.default.div`
|
|
30927
31211
|
overflow-y: auto;
|
|
@@ -37086,6 +37370,19 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
37086
37370
|
}
|
|
37087
37371
|
return target;
|
|
37088
37372
|
}
|
|
37373
|
+
function _assertThisInitialized$3(self2) {
|
|
37374
|
+
if (self2 === void 0) {
|
|
37375
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37376
|
+
}
|
|
37377
|
+
return self2;
|
|
37378
|
+
}
|
|
37379
|
+
function _setPrototypeOf$2(o2, p2) {
|
|
37380
|
+
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
37381
|
+
o3.__proto__ = p3;
|
|
37382
|
+
return o3;
|
|
37383
|
+
};
|
|
37384
|
+
return _setPrototypeOf$2(o2, p2);
|
|
37385
|
+
}
|
|
37089
37386
|
function _inherits$1(subClass, superClass) {
|
|
37090
37387
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
37091
37388
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -37103,6 +37400,22 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
37103
37400
|
if (superClass)
|
|
37104
37401
|
_setPrototypeOf$2(subClass, superClass);
|
|
37105
37402
|
}
|
|
37403
|
+
function _getPrototypeOf$2(o2) {
|
|
37404
|
+
_getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
37405
|
+
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
37406
|
+
};
|
|
37407
|
+
return _getPrototypeOf$2(o2);
|
|
37408
|
+
}
|
|
37409
|
+
function _isNativeReflectConstruct$2() {
|
|
37410
|
+
try {
|
|
37411
|
+
var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
37412
|
+
}));
|
|
37413
|
+
} catch (t3) {
|
|
37414
|
+
}
|
|
37415
|
+
return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct2() {
|
|
37416
|
+
return !!t2;
|
|
37417
|
+
})();
|
|
37418
|
+
}
|
|
37106
37419
|
function _possibleConstructorReturn$1(self2, call) {
|
|
37107
37420
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
37108
37421
|
return call;
|
|
@@ -51198,26 +51511,98 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51198
51511
|
}));
|
|
51199
51512
|
});
|
|
51200
51513
|
}
|
|
51201
|
-
|
|
51202
|
-
|
|
51514
|
+
function _getPrototypeOf(o2) {
|
|
51515
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
51516
|
+
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
51517
|
+
};
|
|
51518
|
+
return _getPrototypeOf(o2);
|
|
51519
|
+
}
|
|
51520
|
+
function _isNativeFunction(fn) {
|
|
51521
|
+
try {
|
|
51522
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
51523
|
+
} catch (e3) {
|
|
51524
|
+
return typeof fn === "function";
|
|
51525
|
+
}
|
|
51526
|
+
}
|
|
51527
|
+
function _isNativeReflectConstruct() {
|
|
51528
|
+
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
51529
|
+
return false;
|
|
51530
|
+
if (Reflect.construct.sham)
|
|
51531
|
+
return false;
|
|
51532
|
+
if (typeof Proxy === "function")
|
|
51533
|
+
return true;
|
|
51534
|
+
try {
|
|
51535
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
51536
|
+
}));
|
|
51537
|
+
return true;
|
|
51538
|
+
} catch (e3) {
|
|
51539
|
+
return false;
|
|
51540
|
+
}
|
|
51541
|
+
}
|
|
51542
|
+
function _construct(Parent, args, Class) {
|
|
51543
|
+
if (_isNativeReflectConstruct()) {
|
|
51544
|
+
_construct = Reflect.construct.bind();
|
|
51545
|
+
} else {
|
|
51546
|
+
_construct = function _construct2(Parent2, args2, Class2) {
|
|
51547
|
+
var a2 = [null];
|
|
51548
|
+
a2.push.apply(a2, args2);
|
|
51549
|
+
var Constructor = Function.bind.apply(Parent2, a2);
|
|
51550
|
+
var instance = new Constructor();
|
|
51551
|
+
if (Class2)
|
|
51552
|
+
_setPrototypeOf$6(instance, Class2.prototype);
|
|
51553
|
+
return instance;
|
|
51554
|
+
};
|
|
51555
|
+
}
|
|
51556
|
+
return _construct.apply(null, arguments);
|
|
51557
|
+
}
|
|
51558
|
+
function _wrapNativeSuper(Class) {
|
|
51559
|
+
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
51560
|
+
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
51561
|
+
if (Class2 === null || !_isNativeFunction(Class2))
|
|
51562
|
+
return Class2;
|
|
51563
|
+
if (typeof Class2 !== "function") {
|
|
51564
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
51565
|
+
}
|
|
51566
|
+
if (typeof _cache !== "undefined") {
|
|
51567
|
+
if (_cache.has(Class2))
|
|
51568
|
+
return _cache.get(Class2);
|
|
51569
|
+
_cache.set(Class2, Wrapper2);
|
|
51570
|
+
}
|
|
51571
|
+
function Wrapper2() {
|
|
51572
|
+
return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
|
|
51573
|
+
}
|
|
51574
|
+
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
51575
|
+
constructor: {
|
|
51576
|
+
value: Wrapper2,
|
|
51577
|
+
enumerable: false,
|
|
51578
|
+
writable: true,
|
|
51579
|
+
configurable: true
|
|
51580
|
+
}
|
|
51581
|
+
});
|
|
51582
|
+
return _setPrototypeOf$6(Wrapper2, Class2);
|
|
51583
|
+
};
|
|
51584
|
+
return _wrapNativeSuper(Class);
|
|
51585
|
+
}
|
|
51586
|
+
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
51587
|
+
_inheritsLoose$2(PolishedError2, _Error);
|
|
51203
51588
|
function PolishedError2(code) {
|
|
51204
51589
|
var _this;
|
|
51205
51590
|
{
|
|
51206
51591
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
51207
51592
|
}
|
|
51208
|
-
return _assertThisInitialized
|
|
51593
|
+
return _assertThisInitialized(_this);
|
|
51209
51594
|
}
|
|
51210
51595
|
return PolishedError2;
|
|
51211
|
-
}(/* @__PURE__ */ _wrapNativeSuper
|
|
51212
|
-
function colorToInt
|
|
51596
|
+
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
51597
|
+
function colorToInt(color) {
|
|
51213
51598
|
return Math.round(color * 255);
|
|
51214
51599
|
}
|
|
51215
|
-
function convertToInt
|
|
51216
|
-
return colorToInt
|
|
51600
|
+
function convertToInt(red, green, blue) {
|
|
51601
|
+
return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
|
|
51217
51602
|
}
|
|
51218
|
-
function hslToRgb
|
|
51603
|
+
function hslToRgb(hue, saturation, lightness, convert2) {
|
|
51219
51604
|
if (convert2 === void 0) {
|
|
51220
|
-
convert2 = convertToInt
|
|
51605
|
+
convert2 = convertToInt;
|
|
51221
51606
|
}
|
|
51222
51607
|
if (saturation === 0) {
|
|
51223
51608
|
return convert2(lightness, lightness, lightness);
|
|
@@ -51253,7 +51638,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51253
51638
|
var finalBlue = blue + lightnessModification;
|
|
51254
51639
|
return convert2(finalRed, finalGreen, finalBlue);
|
|
51255
51640
|
}
|
|
51256
|
-
var namedColorMap
|
|
51641
|
+
var namedColorMap = {
|
|
51257
51642
|
aliceblue: "f0f8ff",
|
|
51258
51643
|
antiquewhite: "faebd7",
|
|
51259
51644
|
aqua: "00ffff",
|
|
@@ -51403,33 +51788,33 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51403
51788
|
yellow: "ff0",
|
|
51404
51789
|
yellowgreen: "9acd32"
|
|
51405
51790
|
};
|
|
51406
|
-
function nameToHex
|
|
51791
|
+
function nameToHex(color) {
|
|
51407
51792
|
if (typeof color !== "string")
|
|
51408
51793
|
return color;
|
|
51409
51794
|
var normalizedColorName = color.toLowerCase();
|
|
51410
|
-
return namedColorMap
|
|
51795
|
+
return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
|
|
51411
51796
|
}
|
|
51412
|
-
var hexRegex
|
|
51413
|
-
var hexRgbaRegex
|
|
51414
|
-
var reducedHexRegex
|
|
51415
|
-
var reducedRgbaHexRegex
|
|
51416
|
-
var rgbRegex
|
|
51417
|
-
var rgbaRegex
|
|
51418
|
-
var hslRegex
|
|
51419
|
-
var hslaRegex
|
|
51420
|
-
function parseToRgb
|
|
51797
|
+
var hexRegex = /^#[a-fA-F0-9]{6}$/;
|
|
51798
|
+
var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
|
|
51799
|
+
var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
|
|
51800
|
+
var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
|
|
51801
|
+
var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
|
|
51802
|
+
var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
51803
|
+
var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
|
|
51804
|
+
var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
51805
|
+
function parseToRgb(color) {
|
|
51421
51806
|
if (typeof color !== "string") {
|
|
51422
|
-
throw new PolishedError
|
|
51807
|
+
throw new PolishedError(3);
|
|
51423
51808
|
}
|
|
51424
|
-
var normalizedColor = nameToHex
|
|
51425
|
-
if (normalizedColor.match(hexRegex
|
|
51809
|
+
var normalizedColor = nameToHex(color);
|
|
51810
|
+
if (normalizedColor.match(hexRegex)) {
|
|
51426
51811
|
return {
|
|
51427
51812
|
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
51428
51813
|
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
51429
51814
|
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
|
|
51430
51815
|
};
|
|
51431
51816
|
}
|
|
51432
|
-
if (normalizedColor.match(hexRgbaRegex
|
|
51817
|
+
if (normalizedColor.match(hexRgbaRegex)) {
|
|
51433
51818
|
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
|
51434
51819
|
return {
|
|
51435
51820
|
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
@@ -51438,14 +51823,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51438
51823
|
alpha
|
|
51439
51824
|
};
|
|
51440
51825
|
}
|
|
51441
|
-
if (normalizedColor.match(reducedHexRegex
|
|
51826
|
+
if (normalizedColor.match(reducedHexRegex)) {
|
|
51442
51827
|
return {
|
|
51443
51828
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
51444
51829
|
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
51445
51830
|
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
|
|
51446
51831
|
};
|
|
51447
51832
|
}
|
|
51448
|
-
if (normalizedColor.match(reducedRgbaHexRegex
|
|
51833
|
+
if (normalizedColor.match(reducedRgbaHexRegex)) {
|
|
51449
51834
|
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
|
51450
51835
|
return {
|
|
51451
51836
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
@@ -51454,7 +51839,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51454
51839
|
alpha: _alpha
|
|
51455
51840
|
};
|
|
51456
51841
|
}
|
|
51457
|
-
var rgbMatched = rgbRegex
|
|
51842
|
+
var rgbMatched = rgbRegex.exec(normalizedColor);
|
|
51458
51843
|
if (rgbMatched) {
|
|
51459
51844
|
return {
|
|
51460
51845
|
red: parseInt("" + rgbMatched[1], 10),
|
|
@@ -51462,7 +51847,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51462
51847
|
blue: parseInt("" + rgbMatched[3], 10)
|
|
51463
51848
|
};
|
|
51464
51849
|
}
|
|
51465
|
-
var rgbaMatched = rgbaRegex
|
|
51850
|
+
var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
|
|
51466
51851
|
if (rgbaMatched) {
|
|
51467
51852
|
return {
|
|
51468
51853
|
red: parseInt("" + rgbaMatched[1], 10),
|
|
@@ -51471,15 +51856,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51471
51856
|
alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
|
|
51472
51857
|
};
|
|
51473
51858
|
}
|
|
51474
|
-
var hslMatched = hslRegex
|
|
51859
|
+
var hslMatched = hslRegex.exec(normalizedColor);
|
|
51475
51860
|
if (hslMatched) {
|
|
51476
51861
|
var hue = parseInt("" + hslMatched[1], 10);
|
|
51477
51862
|
var saturation = parseInt("" + hslMatched[2], 10) / 100;
|
|
51478
51863
|
var lightness = parseInt("" + hslMatched[3], 10) / 100;
|
|
51479
|
-
var rgbColorString = "rgb(" + hslToRgb
|
|
51480
|
-
var hslRgbMatched = rgbRegex
|
|
51864
|
+
var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
|
|
51865
|
+
var hslRgbMatched = rgbRegex.exec(rgbColorString);
|
|
51481
51866
|
if (!hslRgbMatched) {
|
|
51482
|
-
throw new PolishedError
|
|
51867
|
+
throw new PolishedError(4, normalizedColor, rgbColorString);
|
|
51483
51868
|
}
|
|
51484
51869
|
return {
|
|
51485
51870
|
red: parseInt("" + hslRgbMatched[1], 10),
|
|
@@ -51487,15 +51872,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51487
51872
|
blue: parseInt("" + hslRgbMatched[3], 10)
|
|
51488
51873
|
};
|
|
51489
51874
|
}
|
|
51490
|
-
var hslaMatched = hslaRegex
|
|
51875
|
+
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
|
|
51491
51876
|
if (hslaMatched) {
|
|
51492
51877
|
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
51493
51878
|
var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
|
|
51494
51879
|
var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
|
|
51495
|
-
var _rgbColorString = "rgb(" + hslToRgb
|
|
51496
|
-
var _hslRgbMatched = rgbRegex
|
|
51880
|
+
var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
|
|
51881
|
+
var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
|
|
51497
51882
|
if (!_hslRgbMatched) {
|
|
51498
|
-
throw new PolishedError
|
|
51883
|
+
throw new PolishedError(4, normalizedColor, _rgbColorString);
|
|
51499
51884
|
}
|
|
51500
51885
|
return {
|
|
51501
51886
|
red: parseInt("" + _hslRgbMatched[1], 10),
|
|
@@ -51504,191 +51889,50 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51504
51889
|
alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
|
|
51505
51890
|
};
|
|
51506
51891
|
}
|
|
51507
|
-
throw new PolishedError
|
|
51508
|
-
}
|
|
51509
|
-
function rgbToHsl(color) {
|
|
51510
|
-
var red = color.red / 255;
|
|
51511
|
-
var green = color.green / 255;
|
|
51512
|
-
var blue = color.blue / 255;
|
|
51513
|
-
var max2 = Math.max(red, green, blue);
|
|
51514
|
-
var min2 = Math.min(red, green, blue);
|
|
51515
|
-
var lightness = (max2 + min2) / 2;
|
|
51516
|
-
if (max2 === min2) {
|
|
51517
|
-
if (color.alpha !== void 0) {
|
|
51518
|
-
return {
|
|
51519
|
-
hue: 0,
|
|
51520
|
-
saturation: 0,
|
|
51521
|
-
lightness,
|
|
51522
|
-
alpha: color.alpha
|
|
51523
|
-
};
|
|
51524
|
-
} else {
|
|
51525
|
-
return {
|
|
51526
|
-
hue: 0,
|
|
51527
|
-
saturation: 0,
|
|
51528
|
-
lightness
|
|
51529
|
-
};
|
|
51530
|
-
}
|
|
51531
|
-
}
|
|
51532
|
-
var hue;
|
|
51533
|
-
var delta = max2 - min2;
|
|
51534
|
-
var saturation = lightness > 0.5 ? delta / (2 - max2 - min2) : delta / (max2 + min2);
|
|
51535
|
-
switch (max2) {
|
|
51536
|
-
case red:
|
|
51537
|
-
hue = (green - blue) / delta + (green < blue ? 6 : 0);
|
|
51538
|
-
break;
|
|
51539
|
-
case green:
|
|
51540
|
-
hue = (blue - red) / delta + 2;
|
|
51541
|
-
break;
|
|
51542
|
-
default:
|
|
51543
|
-
hue = (red - green) / delta + 4;
|
|
51544
|
-
break;
|
|
51545
|
-
}
|
|
51546
|
-
hue *= 60;
|
|
51547
|
-
if (color.alpha !== void 0) {
|
|
51548
|
-
return {
|
|
51549
|
-
hue,
|
|
51550
|
-
saturation,
|
|
51551
|
-
lightness,
|
|
51552
|
-
alpha: color.alpha
|
|
51553
|
-
};
|
|
51554
|
-
}
|
|
51555
|
-
return {
|
|
51556
|
-
hue,
|
|
51557
|
-
saturation,
|
|
51558
|
-
lightness
|
|
51559
|
-
};
|
|
51560
|
-
}
|
|
51561
|
-
function parseToHsl(color) {
|
|
51562
|
-
return rgbToHsl(parseToRgb$1(color));
|
|
51892
|
+
throw new PolishedError(5);
|
|
51563
51893
|
}
|
|
51564
|
-
var reduceHexValue
|
|
51894
|
+
var reduceHexValue = function reduceHexValue2(value) {
|
|
51565
51895
|
if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
|
|
51566
51896
|
return "#" + value[1] + value[3] + value[5];
|
|
51567
51897
|
}
|
|
51568
51898
|
return value;
|
|
51569
51899
|
};
|
|
51570
|
-
var reduceHexValue$1
|
|
51571
|
-
function numberToHex
|
|
51900
|
+
var reduceHexValue$1 = reduceHexValue;
|
|
51901
|
+
function numberToHex(value) {
|
|
51572
51902
|
var hex = value.toString(16);
|
|
51573
51903
|
return hex.length === 1 ? "0" + hex : hex;
|
|
51574
51904
|
}
|
|
51575
|
-
function
|
|
51576
|
-
return numberToHex$1(Math.round(color * 255));
|
|
51577
|
-
}
|
|
51578
|
-
function convertToHex(red, green, blue) {
|
|
51579
|
-
return reduceHexValue$1$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
|
|
51580
|
-
}
|
|
51581
|
-
function hslToHex(hue, saturation, lightness) {
|
|
51582
|
-
return hslToRgb$1(hue, saturation, lightness, convertToHex);
|
|
51583
|
-
}
|
|
51584
|
-
function hsl(value, saturation, lightness) {
|
|
51585
|
-
if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number") {
|
|
51586
|
-
return hslToHex(value, saturation, lightness);
|
|
51587
|
-
} else if (typeof value === "object" && saturation === void 0 && lightness === void 0) {
|
|
51588
|
-
return hslToHex(value.hue, value.saturation, value.lightness);
|
|
51589
|
-
}
|
|
51590
|
-
throw new PolishedError$1(1);
|
|
51591
|
-
}
|
|
51592
|
-
function hsla(value, saturation, lightness, alpha) {
|
|
51593
|
-
if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number" && typeof alpha === "number") {
|
|
51594
|
-
return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb$1(value, saturation, lightness) + "," + alpha + ")";
|
|
51595
|
-
} else if (typeof value === "object" && saturation === void 0 && lightness === void 0 && alpha === void 0) {
|
|
51596
|
-
return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb$1(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
|
|
51597
|
-
}
|
|
51598
|
-
throw new PolishedError$1(2);
|
|
51599
|
-
}
|
|
51600
|
-
function rgb$1(value, green, blue) {
|
|
51905
|
+
function rgb(value, green, blue) {
|
|
51601
51906
|
if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
|
|
51602
|
-
return reduceHexValue$1
|
|
51907
|
+
return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
|
|
51603
51908
|
} else if (typeof value === "object" && green === void 0 && blue === void 0) {
|
|
51604
|
-
return reduceHexValue$1
|
|
51909
|
+
return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
|
|
51605
51910
|
}
|
|
51606
|
-
throw new PolishedError
|
|
51911
|
+
throw new PolishedError(6);
|
|
51607
51912
|
}
|
|
51608
|
-
function rgba
|
|
51913
|
+
function rgba(firstValue, secondValue, thirdValue, fourthValue) {
|
|
51609
51914
|
if (typeof firstValue === "string" && typeof secondValue === "number") {
|
|
51610
|
-
var rgbValue = parseToRgb
|
|
51915
|
+
var rgbValue = parseToRgb(firstValue);
|
|
51611
51916
|
return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
|
|
51612
51917
|
} else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
|
|
51613
|
-
return fourthValue >= 1 ? rgb
|
|
51918
|
+
return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
|
|
51614
51919
|
} else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
|
|
51615
|
-
return firstValue.alpha >= 1 ? rgb
|
|
51920
|
+
return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
|
51616
51921
|
}
|
|
51617
|
-
throw new PolishedError
|
|
51618
|
-
}
|
|
51619
|
-
var isRgb = function isRgb2(color) {
|
|
51620
|
-
return typeof color.red === "number" && typeof color.green === "number" && typeof color.blue === "number" && (typeof color.alpha !== "number" || typeof color.alpha === "undefined");
|
|
51621
|
-
};
|
|
51622
|
-
var isRgba = function isRgba2(color) {
|
|
51623
|
-
return typeof color.red === "number" && typeof color.green === "number" && typeof color.blue === "number" && typeof color.alpha === "number";
|
|
51624
|
-
};
|
|
51625
|
-
var isHsl = function isHsl2(color) {
|
|
51626
|
-
return typeof color.hue === "number" && typeof color.saturation === "number" && typeof color.lightness === "number" && (typeof color.alpha !== "number" || typeof color.alpha === "undefined");
|
|
51627
|
-
};
|
|
51628
|
-
var isHsla = function isHsla2(color) {
|
|
51629
|
-
return typeof color.hue === "number" && typeof color.saturation === "number" && typeof color.lightness === "number" && typeof color.alpha === "number";
|
|
51630
|
-
};
|
|
51631
|
-
function toColorString(color) {
|
|
51632
|
-
if (typeof color !== "object")
|
|
51633
|
-
throw new PolishedError$1(8);
|
|
51634
|
-
if (isRgba(color))
|
|
51635
|
-
return rgba$1(color);
|
|
51636
|
-
if (isRgb(color))
|
|
51637
|
-
return rgb$1(color);
|
|
51638
|
-
if (isHsla(color))
|
|
51639
|
-
return hsla(color);
|
|
51640
|
-
if (isHsl(color))
|
|
51641
|
-
return hsl(color);
|
|
51642
|
-
throw new PolishedError$1(8);
|
|
51922
|
+
throw new PolishedError(7);
|
|
51643
51923
|
}
|
|
51644
|
-
function curried
|
|
51924
|
+
function curried(f2, length, acc) {
|
|
51645
51925
|
return function fn() {
|
|
51646
51926
|
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
|
51647
|
-
return combined.length >= length ? f2.apply(this, combined) : curried
|
|
51927
|
+
return combined.length >= length ? f2.apply(this, combined) : curried(f2, length, combined);
|
|
51648
51928
|
};
|
|
51649
51929
|
}
|
|
51650
|
-
function curry$
|
|
51651
|
-
return curried
|
|
51652
|
-
}
|
|
51653
|
-
function adjustHue(degree, color) {
|
|
51654
|
-
if (color === "transparent")
|
|
51655
|
-
return color;
|
|
51656
|
-
var hslColor = parseToHsl(color);
|
|
51657
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
51658
|
-
hue: hslColor.hue + parseFloat(degree)
|
|
51659
|
-
}));
|
|
51930
|
+
function curry$1(f2) {
|
|
51931
|
+
return curried(f2, f2.length, []);
|
|
51660
51932
|
}
|
|
51661
|
-
|
|
51662
|
-
function guard$1(lowerBoundary, upperBoundary, value) {
|
|
51933
|
+
function guard(lowerBoundary, upperBoundary, value) {
|
|
51663
51934
|
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
51664
51935
|
}
|
|
51665
|
-
function darken(amount, color) {
|
|
51666
|
-
if (color === "transparent")
|
|
51667
|
-
return color;
|
|
51668
|
-
var hslColor = parseToHsl(color);
|
|
51669
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
51670
|
-
lightness: guard$1(0, 1, hslColor.lightness - parseFloat(amount))
|
|
51671
|
-
}));
|
|
51672
|
-
}
|
|
51673
|
-
curry$2(darken);
|
|
51674
|
-
function desaturate(amount, color) {
|
|
51675
|
-
if (color === "transparent")
|
|
51676
|
-
return color;
|
|
51677
|
-
var hslColor = parseToHsl(color);
|
|
51678
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
51679
|
-
saturation: guard$1(0, 1, hslColor.saturation - parseFloat(amount))
|
|
51680
|
-
}));
|
|
51681
|
-
}
|
|
51682
|
-
curry$2(desaturate);
|
|
51683
|
-
function lighten(amount, color) {
|
|
51684
|
-
if (color === "transparent")
|
|
51685
|
-
return color;
|
|
51686
|
-
var hslColor = parseToHsl(color);
|
|
51687
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
51688
|
-
lightness: guard$1(0, 1, hslColor.lightness + parseFloat(amount))
|
|
51689
|
-
}));
|
|
51690
|
-
}
|
|
51691
|
-
curry$2(lighten);
|
|
51692
51936
|
function mix(weight, color, otherColor) {
|
|
51693
51937
|
if (color === "transparent")
|
|
51694
51938
|
return otherColor;
|
|
@@ -51696,12 +51940,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51696
51940
|
return color;
|
|
51697
51941
|
if (weight === 0)
|
|
51698
51942
|
return otherColor;
|
|
51699
|
-
var parsedColor1 = parseToRgb
|
|
51700
|
-
var color1 = _extends$
|
|
51943
|
+
var parsedColor1 = parseToRgb(color);
|
|
51944
|
+
var color1 = _extends$4({}, parsedColor1, {
|
|
51701
51945
|
alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
|
|
51702
51946
|
});
|
|
51703
|
-
var parsedColor2 = parseToRgb
|
|
51704
|
-
var color2 = _extends$
|
|
51947
|
+
var parsedColor2 = parseToRgb(otherColor);
|
|
51948
|
+
var color2 = _extends$4({}, parsedColor2, {
|
|
51705
51949
|
alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
|
|
51706
51950
|
});
|
|
51707
51951
|
var alphaDelta = color1.alpha - color2.alpha;
|
|
@@ -51716,77 +51960,22 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51716
51960
|
blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),
|
|
51717
51961
|
alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
|
|
51718
51962
|
};
|
|
51719
|
-
return rgba
|
|
51963
|
+
return rgba(mixedColor);
|
|
51720
51964
|
}
|
|
51721
|
-
var curriedMix = curry$
|
|
51965
|
+
var curriedMix = /* @__PURE__ */ curry$1(mix);
|
|
51722
51966
|
var mix$1 = curriedMix;
|
|
51723
|
-
function
|
|
51724
|
-
if (color === "transparent")
|
|
51725
|
-
return color;
|
|
51726
|
-
var parsedColor = parseToRgb$1(color);
|
|
51727
|
-
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
51728
|
-
var colorWithAlpha = _extends$1({}, parsedColor, {
|
|
51729
|
-
alpha: guard$1(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
|
|
51730
|
-
});
|
|
51731
|
-
return rgba$1(colorWithAlpha);
|
|
51732
|
-
}
|
|
51733
|
-
curry$2(opacify);
|
|
51734
|
-
function saturate(amount, color) {
|
|
51735
|
-
if (color === "transparent")
|
|
51736
|
-
return color;
|
|
51737
|
-
var hslColor = parseToHsl(color);
|
|
51738
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
51739
|
-
saturation: guard$1(0, 1, hslColor.saturation + parseFloat(amount))
|
|
51740
|
-
}));
|
|
51741
|
-
}
|
|
51742
|
-
curry$2(saturate);
|
|
51743
|
-
function setHue(hue, color) {
|
|
51744
|
-
if (color === "transparent")
|
|
51745
|
-
return color;
|
|
51746
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
51747
|
-
hue: parseFloat(hue)
|
|
51748
|
-
}));
|
|
51749
|
-
}
|
|
51750
|
-
curry$2(setHue);
|
|
51751
|
-
function setLightness(lightness, color) {
|
|
51752
|
-
if (color === "transparent")
|
|
51753
|
-
return color;
|
|
51754
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
51755
|
-
lightness: parseFloat(lightness)
|
|
51756
|
-
}));
|
|
51757
|
-
}
|
|
51758
|
-
curry$2(setLightness);
|
|
51759
|
-
function setSaturation(saturation, color) {
|
|
51760
|
-
if (color === "transparent")
|
|
51761
|
-
return color;
|
|
51762
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
51763
|
-
saturation: parseFloat(saturation)
|
|
51764
|
-
}));
|
|
51765
|
-
}
|
|
51766
|
-
curry$2(setSaturation);
|
|
51767
|
-
function shade(percentage, color) {
|
|
51768
|
-
if (color === "transparent")
|
|
51769
|
-
return color;
|
|
51770
|
-
return mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color);
|
|
51771
|
-
}
|
|
51772
|
-
curry$2(shade);
|
|
51773
|
-
function tint(percentage, color) {
|
|
51774
|
-
if (color === "transparent")
|
|
51775
|
-
return color;
|
|
51776
|
-
return mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color);
|
|
51777
|
-
}
|
|
51778
|
-
curry$2(tint);
|
|
51779
|
-
function transparentize$1(amount, color) {
|
|
51967
|
+
function transparentize(amount, color) {
|
|
51780
51968
|
if (color === "transparent")
|
|
51781
51969
|
return color;
|
|
51782
|
-
var parsedColor = parseToRgb
|
|
51970
|
+
var parsedColor = parseToRgb(color);
|
|
51783
51971
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
51784
|
-
var colorWithAlpha = _extends$
|
|
51785
|
-
alpha: guard
|
|
51972
|
+
var colorWithAlpha = _extends$4({}, parsedColor, {
|
|
51973
|
+
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
51786
51974
|
});
|
|
51787
|
-
return rgba
|
|
51975
|
+
return rgba(colorWithAlpha);
|
|
51788
51976
|
}
|
|
51789
|
-
curry$
|
|
51977
|
+
var curriedTransparentize = /* @__PURE__ */ curry$1(transparentize);
|
|
51978
|
+
var curriedTransparentize$1 = curriedTransparentize;
|
|
51790
51979
|
const NotificationWrapper$1 = styled__default.default.div`
|
|
51791
51980
|
pointer-events: auto;
|
|
51792
51981
|
|
|
@@ -52561,14 +52750,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
52561
52750
|
var _createWrap = createWrap$1;
|
|
52562
52751
|
var createWrap = _createWrap;
|
|
52563
52752
|
var WRAP_CURRY_FLAG = 8;
|
|
52564
|
-
function curry
|
|
52753
|
+
function curry(func, arity, guard2) {
|
|
52565
52754
|
arity = guard2 ? void 0 : arity;
|
|
52566
52755
|
var result = createWrap(func, WRAP_CURRY_FLAG, void 0, void 0, void 0, void 0, void 0, arity);
|
|
52567
|
-
result.placeholder = curry
|
|
52756
|
+
result.placeholder = curry.placeholder;
|
|
52568
52757
|
return result;
|
|
52569
52758
|
}
|
|
52570
|
-
curry
|
|
52571
|
-
var curry_1 = curry
|
|
52759
|
+
curry.placeholder = {};
|
|
52760
|
+
var curry_1 = curry;
|
|
52572
52761
|
function useNotifications() {
|
|
52573
52762
|
const { push } = React.useContext(NotificationContext);
|
|
52574
52763
|
const curriedPush = React__default.default.useCallback((status) => curry_1((title, err2) => {
|
|
@@ -54669,6 +54858,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54669
54858
|
}
|
|
54670
54859
|
async function fetchTaskResult(taskId, extras) {
|
|
54671
54860
|
const res = await request(`/api/core/tasks/${taskId}`, { method: HTTP_METHOD.GET }, extras);
|
|
54861
|
+
await handleAuthErrors(res, true);
|
|
54672
54862
|
await validateResponse(res, `Failed to fetch the result of task with id: ${taskId}`);
|
|
54673
54863
|
const resJson = await res.json();
|
|
54674
54864
|
if (typeof resJson === "object" && "error" in resJson) {
|
|
@@ -54678,6 +54868,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54678
54868
|
}
|
|
54679
54869
|
async function cancelTask(taskId, extras) {
|
|
54680
54870
|
const res = await request(`/api/core/tasks/${taskId}`, { method: HTTP_METHOD.DELETE }, extras);
|
|
54871
|
+
await handleAuthErrors(res, true);
|
|
54681
54872
|
await validateResponse(res, `Failed to cancel task with id: ${taskId}`);
|
|
54682
54873
|
return true;
|
|
54683
54874
|
}
|
|
@@ -55930,6 +56121,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55930
56121
|
async function fetchDataVariable(uid2, extras, filters, pagination) {
|
|
55931
56122
|
const url = createDataUrl(`/api/core/data-variable/${uid2}`, pagination);
|
|
55932
56123
|
const response = await request(url, { body: JSON.stringify({ filters }), method: HTTP_METHOD.POST }, extras);
|
|
56124
|
+
await handleAuthErrors(response, true);
|
|
55933
56125
|
await validateResponse(response, "Failed to fetch data variable");
|
|
55934
56126
|
return response.json();
|
|
55935
56127
|
}
|
|
@@ -55940,6 +56132,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55940
56132
|
{ body: JSON.stringify({ cache_key: cacheKey, filters, ws_channel: wsChannel }), method: HTTP_METHOD.POST },
|
|
55941
56133
|
extras
|
|
55942
56134
|
);
|
|
56135
|
+
await handleAuthErrors(response, true);
|
|
55943
56136
|
await validateResponse(response, "Failed to fetch data variable");
|
|
55944
56137
|
return response.json();
|
|
55945
56138
|
}
|
|
@@ -55949,6 +56142,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55949
56142
|
{ body: JSON.stringify({ cache_key: cacheKey, filters }), method: HTTP_METHOD.POST },
|
|
55950
56143
|
extras
|
|
55951
56144
|
);
|
|
56145
|
+
await handleAuthErrors(response, true);
|
|
55952
56146
|
await validateResponse(response, "Failed to fetch data variable total count");
|
|
55953
56147
|
return response.json();
|
|
55954
56148
|
}
|
|
@@ -56065,6 +56259,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56065
56259
|
},
|
|
56066
56260
|
extras
|
|
56067
56261
|
);
|
|
56262
|
+
await handleAuthErrors(res, true);
|
|
56068
56263
|
await validateResponse(res, `Failed to fetch the derived variable with uid: ${variableUid}`);
|
|
56069
56264
|
return res.json();
|
|
56070
56265
|
}
|
|
@@ -56503,6 +56698,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56503
56698
|
},
|
|
56504
56699
|
actionCtx.extras
|
|
56505
56700
|
);
|
|
56701
|
+
await handleAuthErrors(res, true);
|
|
56506
56702
|
await validateResponse(res, `Failed to fetch the action value with uid: ${annotatedAction.uid}`);
|
|
56507
56703
|
const resContent = await res.json();
|
|
56508
56704
|
if ("task_id" in resContent) {
|
|
@@ -57345,440 +57541,6 @@ Inferred class string: "${iconClasses}."`
|
|
|
57345
57541
|
function isSelectorError(e3) {
|
|
57346
57542
|
return e3 !== void 0 && e3 !== null && typeof e3 === "object" && "selectorId" in e3 && "selectorExtras" in e3;
|
|
57347
57543
|
}
|
|
57348
|
-
function _getPrototypeOf(o2) {
|
|
57349
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
57350
|
-
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
57351
|
-
};
|
|
57352
|
-
return _getPrototypeOf(o2);
|
|
57353
|
-
}
|
|
57354
|
-
function _isNativeFunction(fn) {
|
|
57355
|
-
try {
|
|
57356
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
57357
|
-
} catch (e3) {
|
|
57358
|
-
return typeof fn === "function";
|
|
57359
|
-
}
|
|
57360
|
-
}
|
|
57361
|
-
function _isNativeReflectConstruct() {
|
|
57362
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
57363
|
-
return false;
|
|
57364
|
-
if (Reflect.construct.sham)
|
|
57365
|
-
return false;
|
|
57366
|
-
if (typeof Proxy === "function")
|
|
57367
|
-
return true;
|
|
57368
|
-
try {
|
|
57369
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
57370
|
-
}));
|
|
57371
|
-
return true;
|
|
57372
|
-
} catch (e3) {
|
|
57373
|
-
return false;
|
|
57374
|
-
}
|
|
57375
|
-
}
|
|
57376
|
-
function _construct(Parent, args, Class) {
|
|
57377
|
-
if (_isNativeReflectConstruct()) {
|
|
57378
|
-
_construct = Reflect.construct.bind();
|
|
57379
|
-
} else {
|
|
57380
|
-
_construct = function _construct2(Parent2, args2, Class2) {
|
|
57381
|
-
var a2 = [null];
|
|
57382
|
-
a2.push.apply(a2, args2);
|
|
57383
|
-
var Constructor = Function.bind.apply(Parent2, a2);
|
|
57384
|
-
var instance = new Constructor();
|
|
57385
|
-
if (Class2)
|
|
57386
|
-
_setPrototypeOf$5(instance, Class2.prototype);
|
|
57387
|
-
return instance;
|
|
57388
|
-
};
|
|
57389
|
-
}
|
|
57390
|
-
return _construct.apply(null, arguments);
|
|
57391
|
-
}
|
|
57392
|
-
function _wrapNativeSuper(Class) {
|
|
57393
|
-
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
57394
|
-
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
57395
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
57396
|
-
return Class2;
|
|
57397
|
-
if (typeof Class2 !== "function") {
|
|
57398
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
57399
|
-
}
|
|
57400
|
-
if (typeof _cache !== "undefined") {
|
|
57401
|
-
if (_cache.has(Class2))
|
|
57402
|
-
return _cache.get(Class2);
|
|
57403
|
-
_cache.set(Class2, Wrapper2);
|
|
57404
|
-
}
|
|
57405
|
-
function Wrapper2() {
|
|
57406
|
-
return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
|
|
57407
|
-
}
|
|
57408
|
-
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
57409
|
-
constructor: {
|
|
57410
|
-
value: Wrapper2,
|
|
57411
|
-
enumerable: false,
|
|
57412
|
-
writable: true,
|
|
57413
|
-
configurable: true
|
|
57414
|
-
}
|
|
57415
|
-
});
|
|
57416
|
-
return _setPrototypeOf$5(Wrapper2, Class2);
|
|
57417
|
-
};
|
|
57418
|
-
return _wrapNativeSuper(Class);
|
|
57419
|
-
}
|
|
57420
|
-
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
57421
|
-
_inheritsLoose$2(PolishedError2, _Error);
|
|
57422
|
-
function PolishedError2(code) {
|
|
57423
|
-
var _this;
|
|
57424
|
-
{
|
|
57425
|
-
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
57426
|
-
}
|
|
57427
|
-
return _assertThisInitialized(_this);
|
|
57428
|
-
}
|
|
57429
|
-
return PolishedError2;
|
|
57430
|
-
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
57431
|
-
function colorToInt(color) {
|
|
57432
|
-
return Math.round(color * 255);
|
|
57433
|
-
}
|
|
57434
|
-
function convertToInt(red, green, blue) {
|
|
57435
|
-
return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
|
|
57436
|
-
}
|
|
57437
|
-
function hslToRgb(hue, saturation, lightness, convert2) {
|
|
57438
|
-
if (convert2 === void 0) {
|
|
57439
|
-
convert2 = convertToInt;
|
|
57440
|
-
}
|
|
57441
|
-
if (saturation === 0) {
|
|
57442
|
-
return convert2(lightness, lightness, lightness);
|
|
57443
|
-
}
|
|
57444
|
-
var huePrime = (hue % 360 + 360) % 360 / 60;
|
|
57445
|
-
var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
|
|
57446
|
-
var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
57447
|
-
var red = 0;
|
|
57448
|
-
var green = 0;
|
|
57449
|
-
var blue = 0;
|
|
57450
|
-
if (huePrime >= 0 && huePrime < 1) {
|
|
57451
|
-
red = chroma;
|
|
57452
|
-
green = secondComponent;
|
|
57453
|
-
} else if (huePrime >= 1 && huePrime < 2) {
|
|
57454
|
-
red = secondComponent;
|
|
57455
|
-
green = chroma;
|
|
57456
|
-
} else if (huePrime >= 2 && huePrime < 3) {
|
|
57457
|
-
green = chroma;
|
|
57458
|
-
blue = secondComponent;
|
|
57459
|
-
} else if (huePrime >= 3 && huePrime < 4) {
|
|
57460
|
-
green = secondComponent;
|
|
57461
|
-
blue = chroma;
|
|
57462
|
-
} else if (huePrime >= 4 && huePrime < 5) {
|
|
57463
|
-
red = secondComponent;
|
|
57464
|
-
blue = chroma;
|
|
57465
|
-
} else if (huePrime >= 5 && huePrime < 6) {
|
|
57466
|
-
red = chroma;
|
|
57467
|
-
blue = secondComponent;
|
|
57468
|
-
}
|
|
57469
|
-
var lightnessModification = lightness - chroma / 2;
|
|
57470
|
-
var finalRed = red + lightnessModification;
|
|
57471
|
-
var finalGreen = green + lightnessModification;
|
|
57472
|
-
var finalBlue = blue + lightnessModification;
|
|
57473
|
-
return convert2(finalRed, finalGreen, finalBlue);
|
|
57474
|
-
}
|
|
57475
|
-
var namedColorMap = {
|
|
57476
|
-
aliceblue: "f0f8ff",
|
|
57477
|
-
antiquewhite: "faebd7",
|
|
57478
|
-
aqua: "00ffff",
|
|
57479
|
-
aquamarine: "7fffd4",
|
|
57480
|
-
azure: "f0ffff",
|
|
57481
|
-
beige: "f5f5dc",
|
|
57482
|
-
bisque: "ffe4c4",
|
|
57483
|
-
black: "000",
|
|
57484
|
-
blanchedalmond: "ffebcd",
|
|
57485
|
-
blue: "0000ff",
|
|
57486
|
-
blueviolet: "8a2be2",
|
|
57487
|
-
brown: "a52a2a",
|
|
57488
|
-
burlywood: "deb887",
|
|
57489
|
-
cadetblue: "5f9ea0",
|
|
57490
|
-
chartreuse: "7fff00",
|
|
57491
|
-
chocolate: "d2691e",
|
|
57492
|
-
coral: "ff7f50",
|
|
57493
|
-
cornflowerblue: "6495ed",
|
|
57494
|
-
cornsilk: "fff8dc",
|
|
57495
|
-
crimson: "dc143c",
|
|
57496
|
-
cyan: "00ffff",
|
|
57497
|
-
darkblue: "00008b",
|
|
57498
|
-
darkcyan: "008b8b",
|
|
57499
|
-
darkgoldenrod: "b8860b",
|
|
57500
|
-
darkgray: "a9a9a9",
|
|
57501
|
-
darkgreen: "006400",
|
|
57502
|
-
darkgrey: "a9a9a9",
|
|
57503
|
-
darkkhaki: "bdb76b",
|
|
57504
|
-
darkmagenta: "8b008b",
|
|
57505
|
-
darkolivegreen: "556b2f",
|
|
57506
|
-
darkorange: "ff8c00",
|
|
57507
|
-
darkorchid: "9932cc",
|
|
57508
|
-
darkred: "8b0000",
|
|
57509
|
-
darksalmon: "e9967a",
|
|
57510
|
-
darkseagreen: "8fbc8f",
|
|
57511
|
-
darkslateblue: "483d8b",
|
|
57512
|
-
darkslategray: "2f4f4f",
|
|
57513
|
-
darkslategrey: "2f4f4f",
|
|
57514
|
-
darkturquoise: "00ced1",
|
|
57515
|
-
darkviolet: "9400d3",
|
|
57516
|
-
deeppink: "ff1493",
|
|
57517
|
-
deepskyblue: "00bfff",
|
|
57518
|
-
dimgray: "696969",
|
|
57519
|
-
dimgrey: "696969",
|
|
57520
|
-
dodgerblue: "1e90ff",
|
|
57521
|
-
firebrick: "b22222",
|
|
57522
|
-
floralwhite: "fffaf0",
|
|
57523
|
-
forestgreen: "228b22",
|
|
57524
|
-
fuchsia: "ff00ff",
|
|
57525
|
-
gainsboro: "dcdcdc",
|
|
57526
|
-
ghostwhite: "f8f8ff",
|
|
57527
|
-
gold: "ffd700",
|
|
57528
|
-
goldenrod: "daa520",
|
|
57529
|
-
gray: "808080",
|
|
57530
|
-
green: "008000",
|
|
57531
|
-
greenyellow: "adff2f",
|
|
57532
|
-
grey: "808080",
|
|
57533
|
-
honeydew: "f0fff0",
|
|
57534
|
-
hotpink: "ff69b4",
|
|
57535
|
-
indianred: "cd5c5c",
|
|
57536
|
-
indigo: "4b0082",
|
|
57537
|
-
ivory: "fffff0",
|
|
57538
|
-
khaki: "f0e68c",
|
|
57539
|
-
lavender: "e6e6fa",
|
|
57540
|
-
lavenderblush: "fff0f5",
|
|
57541
|
-
lawngreen: "7cfc00",
|
|
57542
|
-
lemonchiffon: "fffacd",
|
|
57543
|
-
lightblue: "add8e6",
|
|
57544
|
-
lightcoral: "f08080",
|
|
57545
|
-
lightcyan: "e0ffff",
|
|
57546
|
-
lightgoldenrodyellow: "fafad2",
|
|
57547
|
-
lightgray: "d3d3d3",
|
|
57548
|
-
lightgreen: "90ee90",
|
|
57549
|
-
lightgrey: "d3d3d3",
|
|
57550
|
-
lightpink: "ffb6c1",
|
|
57551
|
-
lightsalmon: "ffa07a",
|
|
57552
|
-
lightseagreen: "20b2aa",
|
|
57553
|
-
lightskyblue: "87cefa",
|
|
57554
|
-
lightslategray: "789",
|
|
57555
|
-
lightslategrey: "789",
|
|
57556
|
-
lightsteelblue: "b0c4de",
|
|
57557
|
-
lightyellow: "ffffe0",
|
|
57558
|
-
lime: "0f0",
|
|
57559
|
-
limegreen: "32cd32",
|
|
57560
|
-
linen: "faf0e6",
|
|
57561
|
-
magenta: "f0f",
|
|
57562
|
-
maroon: "800000",
|
|
57563
|
-
mediumaquamarine: "66cdaa",
|
|
57564
|
-
mediumblue: "0000cd",
|
|
57565
|
-
mediumorchid: "ba55d3",
|
|
57566
|
-
mediumpurple: "9370db",
|
|
57567
|
-
mediumseagreen: "3cb371",
|
|
57568
|
-
mediumslateblue: "7b68ee",
|
|
57569
|
-
mediumspringgreen: "00fa9a",
|
|
57570
|
-
mediumturquoise: "48d1cc",
|
|
57571
|
-
mediumvioletred: "c71585",
|
|
57572
|
-
midnightblue: "191970",
|
|
57573
|
-
mintcream: "f5fffa",
|
|
57574
|
-
mistyrose: "ffe4e1",
|
|
57575
|
-
moccasin: "ffe4b5",
|
|
57576
|
-
navajowhite: "ffdead",
|
|
57577
|
-
navy: "000080",
|
|
57578
|
-
oldlace: "fdf5e6",
|
|
57579
|
-
olive: "808000",
|
|
57580
|
-
olivedrab: "6b8e23",
|
|
57581
|
-
orange: "ffa500",
|
|
57582
|
-
orangered: "ff4500",
|
|
57583
|
-
orchid: "da70d6",
|
|
57584
|
-
palegoldenrod: "eee8aa",
|
|
57585
|
-
palegreen: "98fb98",
|
|
57586
|
-
paleturquoise: "afeeee",
|
|
57587
|
-
palevioletred: "db7093",
|
|
57588
|
-
papayawhip: "ffefd5",
|
|
57589
|
-
peachpuff: "ffdab9",
|
|
57590
|
-
peru: "cd853f",
|
|
57591
|
-
pink: "ffc0cb",
|
|
57592
|
-
plum: "dda0dd",
|
|
57593
|
-
powderblue: "b0e0e6",
|
|
57594
|
-
purple: "800080",
|
|
57595
|
-
rebeccapurple: "639",
|
|
57596
|
-
red: "f00",
|
|
57597
|
-
rosybrown: "bc8f8f",
|
|
57598
|
-
royalblue: "4169e1",
|
|
57599
|
-
saddlebrown: "8b4513",
|
|
57600
|
-
salmon: "fa8072",
|
|
57601
|
-
sandybrown: "f4a460",
|
|
57602
|
-
seagreen: "2e8b57",
|
|
57603
|
-
seashell: "fff5ee",
|
|
57604
|
-
sienna: "a0522d",
|
|
57605
|
-
silver: "c0c0c0",
|
|
57606
|
-
skyblue: "87ceeb",
|
|
57607
|
-
slateblue: "6a5acd",
|
|
57608
|
-
slategray: "708090",
|
|
57609
|
-
slategrey: "708090",
|
|
57610
|
-
snow: "fffafa",
|
|
57611
|
-
springgreen: "00ff7f",
|
|
57612
|
-
steelblue: "4682b4",
|
|
57613
|
-
tan: "d2b48c",
|
|
57614
|
-
teal: "008080",
|
|
57615
|
-
thistle: "d8bfd8",
|
|
57616
|
-
tomato: "ff6347",
|
|
57617
|
-
turquoise: "40e0d0",
|
|
57618
|
-
violet: "ee82ee",
|
|
57619
|
-
wheat: "f5deb3",
|
|
57620
|
-
white: "fff",
|
|
57621
|
-
whitesmoke: "f5f5f5",
|
|
57622
|
-
yellow: "ff0",
|
|
57623
|
-
yellowgreen: "9acd32"
|
|
57624
|
-
};
|
|
57625
|
-
function nameToHex(color) {
|
|
57626
|
-
if (typeof color !== "string")
|
|
57627
|
-
return color;
|
|
57628
|
-
var normalizedColorName = color.toLowerCase();
|
|
57629
|
-
return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
|
|
57630
|
-
}
|
|
57631
|
-
var hexRegex = /^#[a-fA-F0-9]{6}$/;
|
|
57632
|
-
var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
|
|
57633
|
-
var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
|
|
57634
|
-
var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
|
|
57635
|
-
var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
|
|
57636
|
-
var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
57637
|
-
var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
|
|
57638
|
-
var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
57639
|
-
function parseToRgb(color) {
|
|
57640
|
-
if (typeof color !== "string") {
|
|
57641
|
-
throw new PolishedError(3);
|
|
57642
|
-
}
|
|
57643
|
-
var normalizedColor = nameToHex(color);
|
|
57644
|
-
if (normalizedColor.match(hexRegex)) {
|
|
57645
|
-
return {
|
|
57646
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
57647
|
-
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
57648
|
-
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
|
|
57649
|
-
};
|
|
57650
|
-
}
|
|
57651
|
-
if (normalizedColor.match(hexRgbaRegex)) {
|
|
57652
|
-
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
|
57653
|
-
return {
|
|
57654
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
57655
|
-
green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
|
|
57656
|
-
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
|
|
57657
|
-
alpha
|
|
57658
|
-
};
|
|
57659
|
-
}
|
|
57660
|
-
if (normalizedColor.match(reducedHexRegex)) {
|
|
57661
|
-
return {
|
|
57662
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
57663
|
-
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
57664
|
-
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
|
|
57665
|
-
};
|
|
57666
|
-
}
|
|
57667
|
-
if (normalizedColor.match(reducedRgbaHexRegex)) {
|
|
57668
|
-
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
|
57669
|
-
return {
|
|
57670
|
-
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
57671
|
-
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
57672
|
-
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
|
|
57673
|
-
alpha: _alpha
|
|
57674
|
-
};
|
|
57675
|
-
}
|
|
57676
|
-
var rgbMatched = rgbRegex.exec(normalizedColor);
|
|
57677
|
-
if (rgbMatched) {
|
|
57678
|
-
return {
|
|
57679
|
-
red: parseInt("" + rgbMatched[1], 10),
|
|
57680
|
-
green: parseInt("" + rgbMatched[2], 10),
|
|
57681
|
-
blue: parseInt("" + rgbMatched[3], 10)
|
|
57682
|
-
};
|
|
57683
|
-
}
|
|
57684
|
-
var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
|
|
57685
|
-
if (rgbaMatched) {
|
|
57686
|
-
return {
|
|
57687
|
-
red: parseInt("" + rgbaMatched[1], 10),
|
|
57688
|
-
green: parseInt("" + rgbaMatched[2], 10),
|
|
57689
|
-
blue: parseInt("" + rgbaMatched[3], 10),
|
|
57690
|
-
alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
|
|
57691
|
-
};
|
|
57692
|
-
}
|
|
57693
|
-
var hslMatched = hslRegex.exec(normalizedColor);
|
|
57694
|
-
if (hslMatched) {
|
|
57695
|
-
var hue = parseInt("" + hslMatched[1], 10);
|
|
57696
|
-
var saturation = parseInt("" + hslMatched[2], 10) / 100;
|
|
57697
|
-
var lightness = parseInt("" + hslMatched[3], 10) / 100;
|
|
57698
|
-
var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
|
|
57699
|
-
var hslRgbMatched = rgbRegex.exec(rgbColorString);
|
|
57700
|
-
if (!hslRgbMatched) {
|
|
57701
|
-
throw new PolishedError(4, normalizedColor, rgbColorString);
|
|
57702
|
-
}
|
|
57703
|
-
return {
|
|
57704
|
-
red: parseInt("" + hslRgbMatched[1], 10),
|
|
57705
|
-
green: parseInt("" + hslRgbMatched[2], 10),
|
|
57706
|
-
blue: parseInt("" + hslRgbMatched[3], 10)
|
|
57707
|
-
};
|
|
57708
|
-
}
|
|
57709
|
-
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
|
|
57710
|
-
if (hslaMatched) {
|
|
57711
|
-
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
57712
|
-
var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
|
|
57713
|
-
var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
|
|
57714
|
-
var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
|
|
57715
|
-
var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
|
|
57716
|
-
if (!_hslRgbMatched) {
|
|
57717
|
-
throw new PolishedError(4, normalizedColor, _rgbColorString);
|
|
57718
|
-
}
|
|
57719
|
-
return {
|
|
57720
|
-
red: parseInt("" + _hslRgbMatched[1], 10),
|
|
57721
|
-
green: parseInt("" + _hslRgbMatched[2], 10),
|
|
57722
|
-
blue: parseInt("" + _hslRgbMatched[3], 10),
|
|
57723
|
-
alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
|
|
57724
|
-
};
|
|
57725
|
-
}
|
|
57726
|
-
throw new PolishedError(5);
|
|
57727
|
-
}
|
|
57728
|
-
var reduceHexValue = function reduceHexValue2(value) {
|
|
57729
|
-
if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
|
|
57730
|
-
return "#" + value[1] + value[3] + value[5];
|
|
57731
|
-
}
|
|
57732
|
-
return value;
|
|
57733
|
-
};
|
|
57734
|
-
var reduceHexValue$1 = reduceHexValue;
|
|
57735
|
-
function numberToHex(value) {
|
|
57736
|
-
var hex = value.toString(16);
|
|
57737
|
-
return hex.length === 1 ? "0" + hex : hex;
|
|
57738
|
-
}
|
|
57739
|
-
function rgb(value, green, blue) {
|
|
57740
|
-
if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
|
|
57741
|
-
return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
|
|
57742
|
-
} else if (typeof value === "object" && green === void 0 && blue === void 0) {
|
|
57743
|
-
return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
|
|
57744
|
-
}
|
|
57745
|
-
throw new PolishedError(6);
|
|
57746
|
-
}
|
|
57747
|
-
function rgba(firstValue, secondValue, thirdValue, fourthValue) {
|
|
57748
|
-
if (typeof firstValue === "string" && typeof secondValue === "number") {
|
|
57749
|
-
var rgbValue = parseToRgb(firstValue);
|
|
57750
|
-
return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
|
|
57751
|
-
} else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
|
|
57752
|
-
return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
|
|
57753
|
-
} else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
|
|
57754
|
-
return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
|
57755
|
-
}
|
|
57756
|
-
throw new PolishedError(7);
|
|
57757
|
-
}
|
|
57758
|
-
function curried(f2, length, acc) {
|
|
57759
|
-
return function fn() {
|
|
57760
|
-
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
|
57761
|
-
return combined.length >= length ? f2.apply(this, combined) : curried(f2, length, combined);
|
|
57762
|
-
};
|
|
57763
|
-
}
|
|
57764
|
-
function curry(f2) {
|
|
57765
|
-
return curried(f2, f2.length, []);
|
|
57766
|
-
}
|
|
57767
|
-
function guard(lowerBoundary, upperBoundary, value) {
|
|
57768
|
-
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
57769
|
-
}
|
|
57770
|
-
function transparentize(amount, color) {
|
|
57771
|
-
if (color === "transparent")
|
|
57772
|
-
return color;
|
|
57773
|
-
var parsedColor = parseToRgb(color);
|
|
57774
|
-
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
57775
|
-
var colorWithAlpha = _extends$4({}, parsedColor, {
|
|
57776
|
-
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
57777
|
-
});
|
|
57778
|
-
return rgba(colorWithAlpha);
|
|
57779
|
-
}
|
|
57780
|
-
var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
|
|
57781
|
-
var curriedTransparentize$1 = curriedTransparentize;
|
|
57782
57544
|
const StyledErrorDisplay = styled__default.default.div`
|
|
57783
57545
|
display: flex;
|
|
57784
57546
|
gap: 1rem;
|
|
@@ -58086,6 +57848,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
58086
57848
|
},
|
|
58087
57849
|
extras
|
|
58088
57850
|
);
|
|
57851
|
+
await handleAuthErrors(res, true);
|
|
58089
57852
|
await validateResponse(res, `Failed to fetch the component: ${component}`);
|
|
58090
57853
|
const result = await res.json();
|
|
58091
57854
|
return result;
|