scorer-ui-kit 2.0.4 → 2.0.6
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/Filters/atoms/DateTimeBlock.d.ts +1 -0
- package/dist/Filters/index.d.ts +2 -1
- package/dist/Filters/molecules/FilterLayout.d.ts +24 -0
- package/dist/Form/atoms/SliderInput.d.ts +3 -1
- package/dist/Form/molecules/PercentageSlider.d.ts +2 -0
- package/dist/Form/organisms/AreaUploadManager.d.ts +4 -0
- package/dist/Global/atoms/UserDrawerMeta.d.ts +10 -0
- package/dist/Global/index.d.ts +26 -0
- package/dist/Icons/StatusIcon.d.ts +1 -0
- package/dist/LineUI/LineReducer.d.ts +15 -1
- package/dist/LineUI/LineSet.d.ts +3 -0
- package/dist/LineUI/LineUI.d.ts +3 -0
- package/dist/LineUI/LineUIRTC.d.ts +3 -0
- package/dist/LineUI/LineUIVideo.d.ts +3 -0
- package/dist/LineUI/LineUnit.d.ts +3 -0
- package/dist/LineUI/index.d.ts +6 -0
- package/dist/NoImageBig~MNFHGlMj.svg +4 -0
- package/dist/Tables/atoms/TableRowThumbnail.d.ts +1 -0
- package/dist/Tables/atoms/TypeTableRow.d.ts +1 -0
- package/dist/Tables/organisms/TypeTable.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1541 -790
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1541 -791
- package/dist/index.modern.js.map +1 -1
- package/dist/svg/NoImage.d.ts +3 -0
- package/dist/svg/index.d.ts +1 -0
- package/dist/themes/light/custom.d.ts +9 -0
- package/dist/themes/light/light.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1501,6 +1501,9 @@ var custom = {
|
|
|
1501
1501
|
highlightLine: {
|
|
1502
1502
|
stroke: 'hsla(205deg, 45%, 90%, 90%);'
|
|
1503
1503
|
},
|
|
1504
|
+
highlightLineBorder: {
|
|
1505
|
+
stroke: 'hsla(204.8,53.4%,46.3%,100%);'
|
|
1506
|
+
},
|
|
1504
1507
|
grabHandle: {
|
|
1505
1508
|
fill: 'hsla(205deg, 45%, 90%, 100%)',
|
|
1506
1509
|
stroke: 'hsla(205deg, 45%, 100%, 100%)'
|
|
@@ -1546,6 +1549,9 @@ var custom = {
|
|
|
1546
1549
|
highlightLine: {
|
|
1547
1550
|
stroke: 'hsla(120deg, 45%, 90%, 90%);'
|
|
1548
1551
|
},
|
|
1552
|
+
highlightLineBorder: {
|
|
1553
|
+
stroke: 'hsla(120deg, 81%, 70%, 90%);'
|
|
1554
|
+
},
|
|
1549
1555
|
grabHandle: {
|
|
1550
1556
|
fill: 'hsla(120deg, 45%, 90%, 100%)',
|
|
1551
1557
|
stroke: 'hsla(120deg, 45%, 100%, 100%)'
|
|
@@ -1591,6 +1597,9 @@ var custom = {
|
|
|
1591
1597
|
highlightLine: {
|
|
1592
1598
|
stroke: 'hsla(0, 45%, 90%, 90%);'
|
|
1593
1599
|
},
|
|
1600
|
+
highlightLineBorder: {
|
|
1601
|
+
stroke: 'hsla(0deg, 86%, 70%, 100%);'
|
|
1602
|
+
},
|
|
1594
1603
|
grabHandle: {
|
|
1595
1604
|
fill: 'hsla(0, 45%, 90%, 100%)',
|
|
1596
1605
|
stroke: 'hsla(0, 45%, 100%, 100%)'
|
|
@@ -3675,6 +3684,22 @@ function CheckMark(props) {
|
|
|
3675
3684
|
}));
|
|
3676
3685
|
}
|
|
3677
3686
|
|
|
3687
|
+
function SvgNoImage() {
|
|
3688
|
+
return React.createElement("svg", {
|
|
3689
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
3690
|
+
width: '55',
|
|
3691
|
+
height: '60',
|
|
3692
|
+
fill: 'none',
|
|
3693
|
+
viewBox: '5 80 300 174'
|
|
3694
|
+
}, React.createElement("path", {
|
|
3695
|
+
fill: '#F0F0F0',
|
|
3696
|
+
d: 'M0 0H320V240H0z'
|
|
3697
|
+
}), React.createElement("path", {
|
|
3698
|
+
fill: '#656565',
|
|
3699
|
+
d: 'M113.8 112.087V130h-1.212c-.192 0-.355-.033-.488-.1a1.246 1.246 0 01-.375-.338l-10.362-13.5a16.889 16.889 0 01.05 1.175V130h-2.126v-17.913h1.251c.108 0 .2.009.275.025.075.009.141.03.2.063a.589.589 0 01.175.125c.058.05.12.117.187.2l10.363 13.487-.05-.625a13.596 13.596 0 01-.013-.587v-12.688h2.125zm21.129 8.963c0 1.342-.212 2.575-.637 3.7a8.463 8.463 0 01-1.8 2.887 8.102 8.102 0 01-2.8 1.888c-1.084.442-2.284.663-3.6.663-1.317 0-2.517-.221-3.6-.663a8.119 8.119 0 01-2.788-1.888 8.463 8.463 0 01-1.8-2.887c-.425-1.125-.637-2.358-.637-3.7s.212-2.571.637-3.688c.425-1.125 1.025-2.091 1.8-2.9a8.052 8.052 0 012.788-1.9c1.083-.45 2.283-.675 3.6-.675 1.316 0 2.516.225 3.6.675a8.035 8.035 0 012.8 1.9c.775.809 1.375 1.775 1.8 2.9.425 1.117.637 2.346.637 3.688zm-2.487 0c0-1.1-.15-2.088-.45-2.963-.3-.875-.725-1.612-1.275-2.212a5.504 5.504 0 00-2-1.4c-.784-.325-1.659-.488-2.625-.488-.959 0-1.829.163-2.613.488a5.618 5.618 0 00-2.012 1.4c-.55.6-.975 1.337-1.275 2.212-.3.875-.45 1.863-.45 2.963s.15 2.087.45 2.962c.3.867.725 1.605 1.275 2.213a5.687 5.687 0 002.012 1.387c.784.317 1.654.475 2.613.475.966 0 1.841-.158 2.625-.475a5.57 5.57 0 002-1.387c.55-.608.975-1.346 1.275-2.213.3-.875.45-1.862.45-2.962zM147.22 130h-2.425v-17.913h2.425V130zm23.22-17.913V130h-2.125v-13.163c0-.175.004-.362.012-.562l.05-.613-6.15 11.2c-.192.375-.483.563-.875.563h-.35c-.392 0-.683-.188-.875-.563l-6.275-11.25c.05.442.075.85.075 1.225V130h-2.125v-17.913h1.788c.216 0 .383.021.5.063.116.042.229.158.337.35l6.188 11.025c.1.2.195.408.287.625.1.217.192.437.275.662.083-.225.171-.445.263-.662.091-.225.191-.438.3-.638l6.075-11.012c.1-.192.208-.308.325-.35a1.66 1.66 0 01.512-.063h1.788zm14.092 11.263l-2.812-7.288a14.972 14.972 0 01-.263-.75c-.091-.291-.179-.6-.262-.925a13.51 13.51 0 01-.538 1.688l-2.812 7.275h6.687zm5.05 6.65h-1.875c-.216 0-.391-.054-.525-.163a1 1 0 01-.3-.412l-1.675-4.325h-8.037l-1.675 4.325a.878.878 0 01-.288.4.794.794 0 01-.525.175h-1.875l7.163-17.913h2.45L189.582 130zm16.443-8.613v6.875c-.9.65-1.862 1.138-2.887 1.463-1.017.317-2.134.475-3.35.475-1.442 0-2.742-.221-3.9-.663-1.159-.45-2.15-1.075-2.975-1.875a8.282 8.282 0 01-1.888-2.9c-.442-1.125-.662-2.362-.662-3.712 0-1.367.212-2.613.637-3.738.433-1.125 1.046-2.087 1.838-2.887.791-.808 1.754-1.433 2.887-1.875 1.133-.442 2.4-.663 3.8-.663.708 0 1.367.055 1.975.163.608.1 1.171.25 1.688.45.516.192.995.429 1.437.712a8.5 8.5 0 011.238.938l-.688 1.1a.739.739 0 01-.425.325c-.167.042-.354 0-.562-.125-.2-.117-.43-.258-.688-.425a5.555 5.555 0 00-.95-.475 7.037 7.037 0 00-1.312-.4c-.5-.108-1.096-.163-1.788-.163-1.008 0-1.921.167-2.737.5a5.683 5.683 0 00-2.088 1.413c-.575.608-1.017 1.35-1.325 2.225-.308.867-.462 1.842-.462 2.925 0 1.125.158 2.133.475 3.025.325.883.783 1.637 1.375 2.262a5.955 5.955 0 002.175 1.413c.85.325 1.804.487 2.862.487.833 0 1.571-.091 2.213-.275a9.829 9.829 0 001.9-.787v-3.938h-2.788a.549.549 0 01-.387-.137.459.459 0 01-.138-.338v-1.375h5.5zm14.762 6.638l-.013 1.975h-11.037v-17.913h11.037v1.975h-8.612v5.95h6.975v1.9h-6.975v6.113h8.625z'
|
|
3700
|
+
}));
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3678
3703
|
var _templateObject$e, _templateObject2$d, _templateObject3$b, _templateObject4$a, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$3, _templateObject12$1, _templateObject13$1;
|
|
3679
3704
|
var CheckboxState;
|
|
3680
3705
|
|
|
@@ -4070,7 +4095,12 @@ var uniqueID = function uniqueID() {
|
|
|
4070
4095
|
return String(Date.now().toString(32) + Math.random().toString(16)).replace(/\./g, '');
|
|
4071
4096
|
};
|
|
4072
4097
|
|
|
4073
|
-
var
|
|
4098
|
+
var isNotNumber = function isNotNumber(value) {
|
|
4099
|
+
var intValue = parseInt(value);
|
|
4100
|
+
return intValue !== intValue;
|
|
4101
|
+
};
|
|
4102
|
+
|
|
4103
|
+
var _excluded$9 = ["min", "max", "marks", "defaultValue", "thumbColor", "disabled", "onlyMarkSelect", "inputCallback", "onChangeCallback", "allMarkCentered"];
|
|
4074
4104
|
|
|
4075
4105
|
var _templateObject$i, _templateObject2$h, _templateObject3$f, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$a, _templateObject8$9, _templateObject9$9, _templateObject10$9, _templateObject11$5, _templateObject12$3;
|
|
4076
4106
|
var ThumbDiameter = 16;
|
|
@@ -4169,7 +4199,7 @@ var getMarkAlignment = function getMarkAlignment(value, min, max) {
|
|
|
4169
4199
|
return 'center';
|
|
4170
4200
|
};
|
|
4171
4201
|
|
|
4172
|
-
var renderMarks = function renderMarks(markList, min, max, listTag) {
|
|
4202
|
+
var renderMarks = function renderMarks(markList, min, max, listTag, allMarkCentered) {
|
|
4173
4203
|
var listOptions = [];
|
|
4174
4204
|
var marksElements = markList.map(function (_ref11, index) {
|
|
4175
4205
|
var value = _ref11.value,
|
|
@@ -4185,7 +4215,7 @@ var renderMarks = function renderMarks(markList, min, max, listTag) {
|
|
|
4185
4215
|
leftValue: left
|
|
4186
4216
|
}), React__default.createElement(MarkLabel, {
|
|
4187
4217
|
leftValue: left,
|
|
4188
|
-
alignment: getMarkAlignment(value, min, max)
|
|
4218
|
+
alignment: allMarkCentered ? 'center' : getMarkAlignment(value, min, max)
|
|
4189
4219
|
}, label));
|
|
4190
4220
|
});
|
|
4191
4221
|
return React__default.createElement(React.Fragment, null, marksElements, React__default.createElement("datalist", {
|
|
@@ -4210,6 +4240,8 @@ var SliderInput = function SliderInput(_ref12) {
|
|
|
4210
4240
|
inputCallback = _ref12$inputCallback === void 0 ? function () {} : _ref12$inputCallback,
|
|
4211
4241
|
_ref12$onChangeCallba = _ref12.onChangeCallback,
|
|
4212
4242
|
onChangeCallback = _ref12$onChangeCallba === void 0 ? function () {} : _ref12$onChangeCallba,
|
|
4243
|
+
_ref12$allMarkCentere = _ref12.allMarkCentered,
|
|
4244
|
+
allMarkCentered = _ref12$allMarkCentere === void 0 ? false : _ref12$allMarkCentere,
|
|
4213
4245
|
props = _objectWithoutPropertiesLoose(_ref12, _excluded$9);
|
|
4214
4246
|
|
|
4215
4247
|
var maxValid = getValidMax(max, min);
|
|
@@ -4283,7 +4315,7 @@ var SliderInput = function SliderInput(_ref12) {
|
|
|
4283
4315
|
}, [defaultValue, maxValid, minValid]);
|
|
4284
4316
|
return React__default.createElement(SliderWrapper, {
|
|
4285
4317
|
disabled: disabled
|
|
4286
|
-
}, React__default.createElement(Rail, null), React__default.createElement(ThumbWrapper, null, marks && renderMarks(marks, minValid, maxValid, "sliderList-" + minValid + "-" + maxValid), isGhostActive && onlyMarkSelect ? React__default.createElement(GhostThumb, {
|
|
4318
|
+
}, React__default.createElement(Rail, null), React__default.createElement(ThumbWrapper, null, marks && renderMarks(marks, minValid, maxValid, "sliderList-" + minValid + "-" + maxValid, allMarkCentered), isGhostActive && onlyMarkSelect ? React__default.createElement(GhostThumb, {
|
|
4287
4319
|
"data-value": selectedValue,
|
|
4288
4320
|
leftValue: ghostThumbValue,
|
|
4289
4321
|
"data-percentage": ghostThumbValue,
|
|
@@ -4418,13 +4450,16 @@ var DurationSlider = function DurationSlider(_ref3) {
|
|
|
4418
4450
|
})));
|
|
4419
4451
|
};
|
|
4420
4452
|
|
|
4421
|
-
var _excluded$c = ["defaultValue", "inputCallback", "updateThumbColor", "updateTitle"];
|
|
4453
|
+
var _excluded$c = ["defaultValue", "inputCallback", "updateThumbColor", "updateTitle", "showValue", "allMarkCentered"];
|
|
4422
4454
|
|
|
4423
4455
|
var _templateObject$l, _templateObject2$k, _templateObject3$i;
|
|
4424
4456
|
var Container$b = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose([""])));
|
|
4425
|
-
var Headers$1 = styled__default.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: hsl(207, 5%, 57%);\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n
|
|
4426
|
-
var
|
|
4427
|
-
|
|
4457
|
+
var Headers$1 = styled__default.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: hsl(207, 5%, 57%);\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n ", ";\n"])), function (_ref) {
|
|
4458
|
+
var allMarkCentered = _ref.allMarkCentered;
|
|
4459
|
+
return allMarkCentered ? "padding: 0;" : "padding: 0 6px;";
|
|
4460
|
+
});
|
|
4461
|
+
var ValueTitle$1 = styled__default(Label)(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n"])), function (_ref2) {
|
|
4462
|
+
var theme = _ref2.theme;
|
|
4428
4463
|
return theme.fontFamily.data;
|
|
4429
4464
|
});
|
|
4430
4465
|
|
|
@@ -4452,13 +4487,15 @@ var getTitleLevel = function getTitleLevel(value) {
|
|
|
4452
4487
|
return 'Safe Level';
|
|
4453
4488
|
};
|
|
4454
4489
|
|
|
4455
|
-
var PercentageSlider = function PercentageSlider(
|
|
4456
|
-
var
|
|
4457
|
-
defaultValue =
|
|
4458
|
-
inputCallback =
|
|
4459
|
-
updateThumbColor =
|
|
4460
|
-
updateTitle =
|
|
4461
|
-
|
|
4490
|
+
var PercentageSlider = function PercentageSlider(_ref3) {
|
|
4491
|
+
var _ref3$defaultValue = _ref3.defaultValue,
|
|
4492
|
+
defaultValue = _ref3$defaultValue === void 0 ? 0 : _ref3$defaultValue,
|
|
4493
|
+
inputCallback = _ref3.inputCallback,
|
|
4494
|
+
updateThumbColor = _ref3.updateThumbColor,
|
|
4495
|
+
updateTitle = _ref3.updateTitle,
|
|
4496
|
+
showValue = _ref3.showValue,
|
|
4497
|
+
allMarkCentered = _ref3.allMarkCentered,
|
|
4498
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$c);
|
|
4462
4499
|
|
|
4463
4500
|
var _useState = React.useState(defaultValue),
|
|
4464
4501
|
selectedValue = _useState[0],
|
|
@@ -4471,10 +4508,12 @@ var PercentageSlider = function PercentageSlider(_ref2) {
|
|
|
4471
4508
|
|
|
4472
4509
|
setSelectedValue(value);
|
|
4473
4510
|
}, [inputCallback]);
|
|
4474
|
-
return React__default.createElement(Container$b, null, React__default.createElement(Headers$1,
|
|
4511
|
+
return React__default.createElement(Container$b, null, React__default.createElement(Headers$1, {
|
|
4512
|
+
allMarkCentered: allMarkCentered
|
|
4513
|
+
}, React__default.createElement(Label, {
|
|
4475
4514
|
htmlFor: 'percentage-slider',
|
|
4476
4515
|
labelText: updateTitle ? updateTitle(selectedValue) : getTitleLevel(selectedValue)
|
|
4477
|
-
}), React__default.createElement(ValueTitle$1, {
|
|
4516
|
+
}), showValue && React__default.createElement(ValueTitle$1, {
|
|
4478
4517
|
htmlFor: 'percentage-slider',
|
|
4479
4518
|
labelText: selectedValue + "%"
|
|
4480
4519
|
})), React__default.createElement(SliderInput, Object.assign({}, props, {
|
|
@@ -4482,8 +4521,10 @@ var PercentageSlider = function PercentageSlider(_ref2) {
|
|
|
4482
4521
|
max: 100,
|
|
4483
4522
|
min: 0,
|
|
4484
4523
|
defaultValue: defaultValue,
|
|
4524
|
+
showValue: showValue,
|
|
4485
4525
|
onChangeCallback: handleSelectedValue,
|
|
4486
|
-
thumbColor: updateThumbColor ? updateThumbColor(selectedValue) : getThumbColor(selectedValue)
|
|
4526
|
+
thumbColor: updateThumbColor ? updateThumbColor(selectedValue) : getThumbColor(selectedValue),
|
|
4527
|
+
allMarkCentered: allMarkCentered
|
|
4487
4528
|
})));
|
|
4488
4529
|
};
|
|
4489
4530
|
|
|
@@ -4614,6 +4655,17 @@ var DropArea = function DropArea(_ref3) {
|
|
|
4614
4655
|
|
|
4615
4656
|
setInDropZone(false);
|
|
4616
4657
|
}, [dropCallback]);
|
|
4658
|
+
var handleWindowDragAndDrop = React.useCallback(function (e) {
|
|
4659
|
+
e.preventDefault();
|
|
4660
|
+
}, []);
|
|
4661
|
+
React.useEffect(function () {
|
|
4662
|
+
window.addEventListener("dragover", handleWindowDragAndDrop);
|
|
4663
|
+
window.addEventListener("drop", handleWindowDragAndDrop);
|
|
4664
|
+
return function () {
|
|
4665
|
+
window.removeEventListener('dragover', handleWindowDragAndDrop);
|
|
4666
|
+
window.removeEventListener('drop', handleWindowDragAndDrop);
|
|
4667
|
+
};
|
|
4668
|
+
}, [handleWindowDragAndDrop]);
|
|
4617
4669
|
return React__default.createElement(Container$c, Object.assign({}, {
|
|
4618
4670
|
height: height
|
|
4619
4671
|
}, props), React__default.createElement(DragAndDrop, Object.assign({}, {
|
|
@@ -5502,13 +5554,10 @@ var Container$g = styled__default.div(_templateObject$r || (_templateObject$r =
|
|
|
5502
5554
|
return theme.fontFamily.ui;
|
|
5503
5555
|
});
|
|
5504
5556
|
var StyledDropArea = styled__default(DropArea)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n"])));
|
|
5505
|
-
var InputButtonWrapper = styled__default.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n z-index: 99;\n margin-top: 20px;\n"])));
|
|
5506
|
-
var FilesUploadGroup = styled__default.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n border-radius: 5px;\n
|
|
5557
|
+
var InputButtonWrapper = styled__default.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n z-index: 99;\n margin-top: 20px;\n display: flex;\n gap: 20px;\n"])));
|
|
5558
|
+
var FilesUploadGroup = styled__default.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n border-radius: 5px;\n background-color: hsl(204, 15%, 94%);\n position: relative;\n"])), function (_ref2) {
|
|
5507
5559
|
var hasFiles = _ref2.hasFiles;
|
|
5508
5560
|
return hasFiles ? '26px 0 20px 0' : '65px 0 42px 0';
|
|
5509
|
-
}, function (_ref3) {
|
|
5510
|
-
var theme = _ref3.theme;
|
|
5511
|
-
return theme.styles.filters.dropdownContainer.background;
|
|
5512
5561
|
});
|
|
5513
5562
|
var Title = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n color: hsl(208, 8%, 38%);\n font-size: 20px;\n"])));
|
|
5514
5563
|
var Description = styled__default.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 2.14;\n text-align: center;\n color: hsl(207, 5%, 57%);\n margin-top: 10px;\n max-width: 386px;\n"])));
|
|
@@ -5563,27 +5612,33 @@ var getUpdateFiles = function getUpdateFiles(newFiles, files, allowedFileTypes)
|
|
|
5563
5612
|
return result;
|
|
5564
5613
|
};
|
|
5565
5614
|
|
|
5566
|
-
var AreaUploadManager = function AreaUploadManager(
|
|
5567
|
-
var
|
|
5568
|
-
title =
|
|
5569
|
-
description =
|
|
5570
|
-
fileIcons =
|
|
5571
|
-
|
|
5572
|
-
selectFilesText =
|
|
5573
|
-
|
|
5574
|
-
addMoreFilesText =
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5615
|
+
var AreaUploadManager = function AreaUploadManager(_ref3) {
|
|
5616
|
+
var _ref3$title = _ref3.title,
|
|
5617
|
+
title = _ref3$title === void 0 ? 'Select Files' : _ref3$title,
|
|
5618
|
+
description = _ref3.description,
|
|
5619
|
+
fileIcons = _ref3.fileIcons,
|
|
5620
|
+
_ref3$selectFilesText = _ref3.selectFilesText,
|
|
5621
|
+
selectFilesText = _ref3$selectFilesText === void 0 ? 'Select Files' : _ref3$selectFilesText,
|
|
5622
|
+
_ref3$addMoreFilesTex = _ref3.addMoreFilesText,
|
|
5623
|
+
addMoreFilesText = _ref3$addMoreFilesTex === void 0 ? 'Add More Files' : _ref3$addMoreFilesTex,
|
|
5624
|
+
_ref3$clearFilesText = _ref3.clearFilesText,
|
|
5625
|
+
clearFilesText = _ref3$clearFilesText === void 0 ? 'Clear Files' : _ref3$clearFilesText,
|
|
5626
|
+
_ref3$beginUploadText = _ref3.beginUploadText,
|
|
5627
|
+
beginUploadText = _ref3$beginUploadText === void 0 ? 'Begin Upload' : _ref3$beginUploadText,
|
|
5628
|
+
allowedFileTypes = _ref3.allowedFileTypes,
|
|
5629
|
+
customComponent = _ref3.customComponent,
|
|
5630
|
+
_ref3$onChangeCallbac = _ref3.onChangeCallback,
|
|
5631
|
+
onChangeCallback = _ref3$onChangeCallbac === void 0 ? function () {} : _ref3$onChangeCallbac,
|
|
5632
|
+
_ref3$clearFilesCallb = _ref3.clearFilesCallback,
|
|
5633
|
+
clearFilesCallback = _ref3$clearFilesCallb === void 0 ? function () {} : _ref3$clearFilesCallb,
|
|
5634
|
+
_ref3$beginUploadCall = _ref3.beginUploadCallback,
|
|
5635
|
+
beginUploadCallback = _ref3$beginUploadCall === void 0 ? function () {} : _ref3$beginUploadCall;
|
|
5579
5636
|
|
|
5580
5637
|
var _useState = React.useState(null),
|
|
5581
5638
|
files = _useState[0],
|
|
5582
5639
|
setFiles = _useState[1];
|
|
5583
5640
|
|
|
5584
5641
|
var handleFiles = React.useCallback(function (newFiles) {
|
|
5585
|
-
console.log('files received', newFiles);
|
|
5586
|
-
|
|
5587
5642
|
if (newFiles === null) {
|
|
5588
5643
|
return;
|
|
5589
5644
|
}
|
|
@@ -5595,6 +5650,10 @@ var AreaUploadManager = function AreaUploadManager(_ref4) {
|
|
|
5595
5650
|
setFiles(goodFiles);
|
|
5596
5651
|
onChangeCallback(goodFiles, rejectedFiles);
|
|
5597
5652
|
}, [files, allowedFileTypes, onChangeCallback]);
|
|
5653
|
+
var clearFiles = React.useCallback(function () {
|
|
5654
|
+
setFiles(null);
|
|
5655
|
+
clearFilesCallback();
|
|
5656
|
+
}, [clearFilesCallback]);
|
|
5598
5657
|
return React__default.createElement(Container$g, null, React__default.createElement(FilesUploadGroup, {
|
|
5599
5658
|
hasFiles: files !== null
|
|
5600
5659
|
}, React__default.createElement(StyledDropArea, {
|
|
@@ -5606,8 +5665,17 @@ var AreaUploadManager = function AreaUploadManager(_ref4) {
|
|
|
5606
5665
|
text: files !== null ? addMoreFilesText : selectFilesText,
|
|
5607
5666
|
inputCallback: handleFiles,
|
|
5608
5667
|
multiple: true,
|
|
5609
|
-
buttonDesign: files !== null ? 'secondary' : 'primary'
|
|
5610
|
-
|
|
5668
|
+
buttonDesign: files !== null ? 'secondary' : 'primary',
|
|
5669
|
+
accept: allowedFileTypes === null || allowedFileTypes === void 0 ? void 0 : allowedFileTypes.join(', ')
|
|
5670
|
+
}), files !== null && React__default.createElement(React.Fragment, null, React__default.createElement(Button, {
|
|
5671
|
+
size: 'small',
|
|
5672
|
+
onClick: beginUploadCallback,
|
|
5673
|
+
design: 'primary'
|
|
5674
|
+
}, beginUploadText), React__default.createElement(Button, {
|
|
5675
|
+
size: 'small',
|
|
5676
|
+
onClick: clearFiles,
|
|
5677
|
+
design: 'secondary'
|
|
5678
|
+
}, clearFilesText)))));
|
|
5611
5679
|
};
|
|
5612
5680
|
|
|
5613
5681
|
var _excluded$i = ["children", "spacing"];
|
|
@@ -5629,7 +5697,7 @@ var Form = function Form(_ref2) {
|
|
|
5629
5697
|
}, props), children);
|
|
5630
5698
|
};
|
|
5631
5699
|
|
|
5632
|
-
var _templateObject$t, _templateObject2$s, _templateObject3$o, _templateObject4$k, _templateObject5$i, _templateObject6$f, _templateObject7$e, _templateObject8$d, _templateObject9$d, _templateObject10$b
|
|
5700
|
+
var _templateObject$t, _templateObject2$s, _templateObject3$o, _templateObject4$k, _templateObject5$i, _templateObject6$f, _templateObject7$e, _templateObject8$d, _templateObject9$d, _templateObject10$b;
|
|
5633
5701
|
var Container$h = styled__default.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n ", "\n"])), function (_ref) {
|
|
5634
5702
|
var hide = _ref.hide;
|
|
5635
5703
|
return hide && styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: none;\n "])));
|
|
@@ -5649,41 +5717,117 @@ var Label$1 = styled__default.label(_templateObject3$o || (_templateObject3$o =
|
|
|
5649
5717
|
});
|
|
5650
5718
|
var Item = styled__default.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n padding: 12px;\n display: flex;\n justify-content: left;\n"])));
|
|
5651
5719
|
var IconWrap = styled__default.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n flex: 0 0 40px;\n padding-top: 2px;\n"])));
|
|
5652
|
-
var Input$1 = styled__default.input(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n ", "\n\n ", ";\n\n width: 100%;\n border:
|
|
5720
|
+
var Input$1 = styled__default.input(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n ", "\n\n ", ";\n\n width: 100%;\n border: ", ";\n outline: none;\n flex: 1;\n justify-content: space-between;\n border-radius: 3px;\n\n &:focus, &:hover {\n border-color: ", ";\n }\n"])), function (_ref6) {
|
|
5653
5721
|
var theme = _ref6.theme;
|
|
5654
|
-
return styled.css(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n
|
|
5722
|
+
return styled.css(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n "])), theme.fontFamily.data);
|
|
5655
5723
|
}, function (_ref7) {
|
|
5656
5724
|
var theme = _ref7.theme;
|
|
5657
5725
|
return theme.typography.filters.value;
|
|
5658
5726
|
}, function (_ref8) {
|
|
5659
|
-
var
|
|
5660
|
-
return
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
var theme = _ref9.theme;
|
|
5665
|
-
return theme.colors.menu.passive;
|
|
5727
|
+
var isTimeInput = _ref8.isTimeInput;
|
|
5728
|
+
return isTimeInput ? function (_ref9) {
|
|
5729
|
+
var isTimeRangeValid = _ref9.isTimeRangeValid;
|
|
5730
|
+
return isTimeRangeValid ? 'hsl(0 14% 90%) 1px solid' : 'rgb(255,0,0) 1px solid';
|
|
5731
|
+
} : 'transparent 1px solid';
|
|
5666
5732
|
}, function (_ref10) {
|
|
5667
|
-
var
|
|
5668
|
-
return
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
}
|
|
5733
|
+
var isTimeInput = _ref10.isTimeInput;
|
|
5734
|
+
return isTimeInput ? function (_ref11) {
|
|
5735
|
+
var isTimeRangeValid = _ref11.isTimeRangeValid;
|
|
5736
|
+
return isTimeRangeValid ? 'hsl(0 14% 90%) 1px solid' : 'rgb(255,0,0) 1px solid';
|
|
5737
|
+
} : 'transparent 1px solid';
|
|
5738
|
+
});
|
|
5739
|
+
var TimeColon = styled__default.div(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n flex: 0 0 20px;\n text-align: center;\n"])));
|
|
5740
|
+
var InputWrap = styled__default.div(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: 1;\n box-sizing: border-box;\n border-radius: 3px;\n\n &:focus-within {\n\n background: ", ";\n box-shadow: 0px 0px 0px 5px ", ";\n\n ", "{\n color: ", ";\n text-align: center;\n }\n }\n"])), function (_ref12) {
|
|
5673
5741
|
var theme = _ref12.theme;
|
|
5742
|
+
return theme.colors.menu.passive;
|
|
5743
|
+
}, function (_ref13) {
|
|
5744
|
+
var theme = _ref13.theme;
|
|
5745
|
+
return theme.colors.menu.passive;
|
|
5746
|
+
}, TimeColon, function (_ref14) {
|
|
5747
|
+
var theme = _ref14.theme;
|
|
5674
5748
|
return theme.colors.pureTop;
|
|
5675
5749
|
});
|
|
5676
5750
|
|
|
5677
|
-
var DateTimeBlock = function DateTimeBlock(
|
|
5678
|
-
var
|
|
5679
|
-
allowAfterMidnight =
|
|
5680
|
-
title =
|
|
5681
|
-
hasDate =
|
|
5682
|
-
hasTime =
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5751
|
+
var DateTimeBlock = function DateTimeBlock(_ref15) {
|
|
5752
|
+
var _ref15$allowAfterMidn = _ref15.allowAfterMidnight,
|
|
5753
|
+
allowAfterMidnight = _ref15$allowAfterMidn === void 0 ? false : _ref15$allowAfterMidn,
|
|
5754
|
+
title = _ref15.title,
|
|
5755
|
+
hasDate = _ref15.hasDate,
|
|
5756
|
+
hasTime = _ref15.hasTime,
|
|
5757
|
+
_ref15$isTimeRangeVal = _ref15.isTimeRangeValid,
|
|
5758
|
+
isTimeRangeValid = _ref15$isTimeRangeVal === void 0 ? true : _ref15$isTimeRangeVal,
|
|
5759
|
+
_ref15$date = _ref15.date,
|
|
5760
|
+
date = _ref15$date === void 0 ? new Date() : _ref15$date,
|
|
5761
|
+
_ref15$setDateCallbac = _ref15.setDateCallback,
|
|
5762
|
+
setDateCallback = _ref15$setDateCallbac === void 0 ? function () {} : _ref15$setDateCallbac;
|
|
5763
|
+
|
|
5764
|
+
var validHourMin = function validHourMin(textHour, textMin, hasDate, allowAfterMidnight) {
|
|
5765
|
+
var intHour = Number(textHour.slice(-2));
|
|
5766
|
+
var intMin = Number(textMin.slice(-2));
|
|
5767
|
+
var newHour = intHour > 24 ? Number(textHour.slice(-1)) : intHour;
|
|
5768
|
+
var newMin = intMin > 60 ? Number(textMin.slice(-1)) : intMin;
|
|
5769
|
+
|
|
5770
|
+
if (newHour >= 24 && newMin !== -1 && allowAfterMidnight) {
|
|
5771
|
+
return {
|
|
5772
|
+
newHour: 24,
|
|
5773
|
+
newMin: 0
|
|
5774
|
+
};
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
if (newHour === 0 && newMin === 0 && allowAfterMidnight && !hasDate) {
|
|
5778
|
+
return {
|
|
5779
|
+
newHour: 0,
|
|
5780
|
+
newMin: 1
|
|
5781
|
+
};
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
if (newHour === 23 && newMin === 60 && !allowAfterMidnight) {
|
|
5785
|
+
return {
|
|
5786
|
+
newHour: 23,
|
|
5787
|
+
newMin: 59
|
|
5788
|
+
};
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
if (newHour >= 24 && !allowAfterMidnight) {
|
|
5792
|
+
return {
|
|
5793
|
+
newHour: 23,
|
|
5794
|
+
newMin: newMin
|
|
5795
|
+
};
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5798
|
+
if (newMin === 60) {
|
|
5799
|
+
return {
|
|
5800
|
+
newHour: newHour + 1,
|
|
5801
|
+
newMin: 0
|
|
5802
|
+
};
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
if (newHour > 0 && newMin === -1) {
|
|
5806
|
+
return {
|
|
5807
|
+
newHour: newHour - 1,
|
|
5808
|
+
newMin: 59
|
|
5809
|
+
};
|
|
5810
|
+
}
|
|
5811
|
+
|
|
5812
|
+
if (newHour === 0 && newMin === -1) {
|
|
5813
|
+
return {
|
|
5814
|
+
newHour: newHour,
|
|
5815
|
+
newMin: 0
|
|
5816
|
+
};
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
if (newHour === -1) {
|
|
5820
|
+
return {
|
|
5821
|
+
newHour: 0,
|
|
5822
|
+
newMin: newMin
|
|
5823
|
+
};
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
return {
|
|
5827
|
+
newHour: newHour,
|
|
5828
|
+
newMin: newMin
|
|
5829
|
+
};
|
|
5830
|
+
};
|
|
5687
5831
|
|
|
5688
5832
|
var _useState = React.useState(dateFns.format(date, "mm")),
|
|
5689
5833
|
displayHours = _useState[0],
|
|
@@ -5693,24 +5837,42 @@ var DateTimeBlock = function DateTimeBlock(_ref13) {
|
|
|
5693
5837
|
displayMinutes = _useState2[0],
|
|
5694
5838
|
setDisplayMinutes = _useState2[1];
|
|
5695
5839
|
|
|
5696
|
-
var setDateHours = React.useCallback(function (
|
|
5697
|
-
var value =
|
|
5840
|
+
var setDateHours = React.useCallback(function (_ref16) {
|
|
5841
|
+
var value = _ref16.target.value;
|
|
5842
|
+
|
|
5843
|
+
if (isNotNumber(value)) {
|
|
5844
|
+
return;
|
|
5845
|
+
}
|
|
5846
|
+
|
|
5847
|
+
var _validHourMin = validHourMin(value, displayMinutes, hasDate, allowAfterMidnight),
|
|
5848
|
+
newHour = _validHourMin.newHour,
|
|
5849
|
+
newMin = _validHourMin.newMin;
|
|
5850
|
+
|
|
5698
5851
|
setDateCallback(dateFns.min([dateFns.endOfDay(date), dateFns.set(date, {
|
|
5699
|
-
hours:
|
|
5700
|
-
minutes:
|
|
5852
|
+
hours: newHour,
|
|
5853
|
+
minutes: newMin,
|
|
5701
5854
|
seconds: 0,
|
|
5702
5855
|
milliseconds: 0
|
|
5703
5856
|
})]));
|
|
5704
|
-
}, [date, displayMinutes, setDateCallback]);
|
|
5705
|
-
var setDateMinutes = React.useCallback(function (
|
|
5706
|
-
var value =
|
|
5857
|
+
}, [allowAfterMidnight, date, displayMinutes, hasDate, setDateCallback]);
|
|
5858
|
+
var setDateMinutes = React.useCallback(function (_ref17) {
|
|
5859
|
+
var value = _ref17.target.value;
|
|
5860
|
+
|
|
5861
|
+
if (isNotNumber(value)) {
|
|
5862
|
+
return;
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5865
|
+
var _validHourMin2 = validHourMin(displayHours, value, hasDate, allowAfterMidnight),
|
|
5866
|
+
newHour = _validHourMin2.newHour,
|
|
5867
|
+
newMin = _validHourMin2.newMin;
|
|
5868
|
+
|
|
5707
5869
|
setDateCallback(dateFns.min([dateFns.endOfDay(date), dateFns.set(date, {
|
|
5708
|
-
hours:
|
|
5709
|
-
minutes:
|
|
5870
|
+
hours: newHour,
|
|
5871
|
+
minutes: newMin,
|
|
5710
5872
|
seconds: 0,
|
|
5711
5873
|
milliseconds: 0
|
|
5712
5874
|
})]));
|
|
5713
|
-
}, [date, displayHours, setDateCallback]);
|
|
5875
|
+
}, [allowAfterMidnight, date, displayHours, hasDate, setDateCallback]);
|
|
5714
5876
|
React.useEffect(function () {
|
|
5715
5877
|
if (allowAfterMidnight && dateFns.isEqual(date, dateFns.endOfDay(date))) {
|
|
5716
5878
|
setDisplayHours('24');
|
|
@@ -5727,33 +5889,45 @@ var DateTimeBlock = function DateTimeBlock(_ref13) {
|
|
|
5727
5889
|
color: 'dimmed',
|
|
5728
5890
|
size: 14,
|
|
5729
5891
|
weight: 'light'
|
|
5730
|
-
})), React__default.createElement(InputWrap, null, React__default.createElement(Input$1, {
|
|
5892
|
+
})), React__default.createElement(InputWrap, null, React__default.createElement(Input$1, Object.assign({
|
|
5731
5893
|
type: 'text',
|
|
5732
5894
|
readOnly: true,
|
|
5733
5895
|
value: dateFns.format(date, "yyyy/MM/dd")
|
|
5734
|
-
}
|
|
5896
|
+
}, {
|
|
5897
|
+
isTimeRangeValid: isTimeRangeValid
|
|
5898
|
+
})))), hasTime && React__default.createElement(Item, null, React__default.createElement(IconWrap, null, React__default.createElement(Icon, {
|
|
5735
5899
|
icon: 'Time',
|
|
5736
5900
|
color: 'dimmed',
|
|
5737
5901
|
size: 14,
|
|
5738
5902
|
weight: 'light'
|
|
5739
|
-
})), React__default.createElement(InputWrap, null, React__default.createElement(Input$1, {
|
|
5903
|
+
})), React__default.createElement(InputWrap, null, React__default.createElement(Input$1, Object.assign({
|
|
5740
5904
|
name: 'hours',
|
|
5741
5905
|
type: 'number',
|
|
5742
|
-
min: '
|
|
5906
|
+
min: '-1',
|
|
5743
5907
|
max: allowAfterMidnight ? 24 : 23,
|
|
5744
5908
|
value: displayHours,
|
|
5745
5909
|
onChange: setDateHours
|
|
5746
|
-
}
|
|
5910
|
+
}, {
|
|
5911
|
+
isTimeRangeValid: isTimeRangeValid
|
|
5912
|
+
}, {
|
|
5913
|
+
autoComplete: 'off',
|
|
5914
|
+
isTimeInput: true
|
|
5915
|
+
})), React__default.createElement(TimeColon, null, ":"), React__default.createElement(Input$1, Object.assign({
|
|
5747
5916
|
name: 'minutes',
|
|
5748
5917
|
type: 'number',
|
|
5749
|
-
min: '
|
|
5750
|
-
max: '
|
|
5918
|
+
min: '-1',
|
|
5919
|
+
max: '60',
|
|
5751
5920
|
value: displayMinutes,
|
|
5752
5921
|
onChange: setDateMinutes
|
|
5753
|
-
}
|
|
5922
|
+
}, {
|
|
5923
|
+
isTimeRangeValid: isTimeRangeValid
|
|
5924
|
+
}, {
|
|
5925
|
+
autoComplete: 'off',
|
|
5926
|
+
isTimeInput: true
|
|
5927
|
+
})))));
|
|
5754
5928
|
};
|
|
5755
5929
|
|
|
5756
|
-
var _templateObject$u, _templateObject2$t, _templateObject3$p, _templateObject4$l, _templateObject5$j, _templateObject6$g, _templateObject7$f, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$
|
|
5930
|
+
var _templateObject$u, _templateObject2$t, _templateObject3$p, _templateObject4$l, _templateObject5$j, _templateObject6$g, _templateObject7$f, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$7, _templateObject12$5, _templateObject13$4, _templateObject14$2, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27;
|
|
5757
5931
|
|
|
5758
5932
|
var initializeInterval = function initializeInterval(day) {
|
|
5759
5933
|
return {
|
|
@@ -5796,7 +5970,7 @@ var CurrentMonth = styled__default.div(_templateObject10$c || (_templateObject10
|
|
|
5796
5970
|
var theme = _ref7.theme;
|
|
5797
5971
|
return theme.typography.filters.datepicker.focusedYear;
|
|
5798
5972
|
});
|
|
5799
|
-
var IconWrap$1 = styled__default.div(_templateObject11$
|
|
5973
|
+
var IconWrap$1 = styled__default.div(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose([""])));
|
|
5800
5974
|
var PaginateMonth = styled__default.button(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n flex: 0 0 90px;\n\n border: none;\n background: transparent;\n outline: none;\n\n ", ";\n\n display: flex;\n justify-content: space-around;\n align-items: center;\n\n &:hover {\n background: transparent;\n ", ";\n\n ", "{\n [stroke]{\n stroke: ", ";\n }\n }\n }\n\n"])), function (_ref8) {
|
|
5801
5975
|
var theme = _ref8.theme;
|
|
5802
5976
|
return theme.typography.filters.datepicker.monthLink["default"];
|
|
@@ -5918,6 +6092,11 @@ var DatePicker = function DatePicker(_ref27) {
|
|
|
5918
6092
|
setWeeksOfMonth = _useState4[1];
|
|
5919
6093
|
|
|
5920
6094
|
var isInitialMount = React.useRef(true);
|
|
6095
|
+
|
|
6096
|
+
var _useState5 = React.useState(true),
|
|
6097
|
+
isTimeRangeValid = _useState5[0],
|
|
6098
|
+
setIsTimeRangeValid = _useState5[1];
|
|
6099
|
+
|
|
5921
6100
|
var dayGuide = lang === 'ja' ? jpDayGuide : enDayGuide;
|
|
5922
6101
|
React.useEffect(function () {
|
|
5923
6102
|
if (isInitialMount.current) {
|
|
@@ -5970,44 +6149,59 @@ var DatePicker = function DatePicker(_ref27) {
|
|
|
5970
6149
|
}
|
|
5971
6150
|
}
|
|
5972
6151
|
}, [dateMode, selectedRange, targetedDate]);
|
|
5973
|
-
|
|
6152
|
+
React.useEffect(function () {
|
|
5974
6153
|
var _ref28 = selectedRange ? selectedRange : TODAY_INTERVAL,
|
|
6154
|
+
start = _ref28.start,
|
|
5975
6155
|
end = _ref28.end;
|
|
5976
6156
|
|
|
5977
|
-
if (dateFns.isAfter(dateFns.add(start, {
|
|
6157
|
+
if (timeMode === 'interval' && dateFns.isAfter(dateFns.add(start, {
|
|
5978
6158
|
minutes: 1
|
|
5979
|
-
}), end))
|
|
6159
|
+
}), end)) {
|
|
6160
|
+
if (dateFns.isEqual(end, dateFns.endOfDay(start)) && end.getSeconds() > 0) {
|
|
6161
|
+
setIsTimeRangeValid(true);
|
|
6162
|
+
} else {
|
|
6163
|
+
setIsTimeRangeValid(false);
|
|
6164
|
+
}
|
|
6165
|
+
} else {
|
|
6166
|
+
setIsTimeRangeValid(true);
|
|
6167
|
+
}
|
|
6168
|
+
}, [selectedRange, timeMode]);
|
|
6169
|
+
var updateStartDate = React.useCallback(function (start) {
|
|
6170
|
+
var _ref29 = selectedRange ? selectedRange : TODAY_INTERVAL,
|
|
6171
|
+
end = _ref29.end;
|
|
6172
|
+
|
|
5980
6173
|
setSelectedRange({
|
|
5981
6174
|
start: start,
|
|
5982
6175
|
end: end
|
|
5983
6176
|
});
|
|
5984
6177
|
}, [selectedRange]);
|
|
5985
6178
|
var updateEndDate = React.useCallback(function (end) {
|
|
5986
|
-
var
|
|
5987
|
-
start =
|
|
6179
|
+
var _ref30 = selectedRange ? selectedRange : TODAY_INTERVAL,
|
|
6180
|
+
start = _ref30.start;
|
|
5988
6181
|
|
|
5989
|
-
if (dateFns.isAfter(dateFns.add(start, {
|
|
5990
|
-
minutes: 1
|
|
5991
|
-
}), end)) return;
|
|
5992
6182
|
setSelectedRange({
|
|
5993
6183
|
start: start,
|
|
5994
6184
|
end: end
|
|
5995
6185
|
});
|
|
5996
6186
|
}, [selectedRange]);
|
|
5997
|
-
return React__default.createElement(Container$i, null, React__default.createElement(DateTimeArea, null, React__default.createElement(DateTimeBlock, {
|
|
6187
|
+
return React__default.createElement(Container$i, null, React__default.createElement(DateTimeArea, null, React__default.createElement(DateTimeBlock, Object.assign({}, {
|
|
6188
|
+
isTimeRangeValid: isTimeRangeValid
|
|
6189
|
+
}, {
|
|
5998
6190
|
title: dateTimeTextUpper,
|
|
5999
6191
|
hasDate: true,
|
|
6000
6192
|
hasTime: timeMode !== 'off',
|
|
6001
6193
|
date: selectedRange ? selectedRange.start : TODAY_INTERVAL.start,
|
|
6002
6194
|
setDateCallback: updateStartDate
|
|
6003
|
-
}), React__default.createElement(DateTimeBlock, {
|
|
6195
|
+
})), React__default.createElement(DateTimeBlock, Object.assign({}, {
|
|
6196
|
+
isTimeRangeValid: isTimeRangeValid
|
|
6197
|
+
}, {
|
|
6004
6198
|
title: dateTimeTextLower,
|
|
6005
6199
|
hasDate: dateMode === 'interval',
|
|
6006
6200
|
hasTime: timeMode === 'interval',
|
|
6007
6201
|
date: selectedRange ? selectedRange.end : TODAY_INTERVAL.end,
|
|
6008
6202
|
allowAfterMidnight: true,
|
|
6009
6203
|
setDateCallback: updateEndDate
|
|
6010
|
-
}), React__default.createElement(TimeZoneOption, null, React__default.createElement(TimeZoneLabel, null, timeZoneTitle), React__default.createElement(TimeZoneValue, null, timeZoneValueTitle))), React__default.createElement(CalendarArea, null, React__default.createElement(CalendarHeader, null, React__default.createElement(PaginateMonth, {
|
|
6204
|
+
})), React__default.createElement(TimeZoneOption, null, React__default.createElement(TimeZoneLabel, null, timeZoneTitle), React__default.createElement(TimeZoneValue, null, timeZoneValueTitle))), React__default.createElement(CalendarArea, null, React__default.createElement(CalendarHeader, null, React__default.createElement(PaginateMonth, {
|
|
6011
6205
|
type: 'button',
|
|
6012
6206
|
onClick: function onClick() {
|
|
6013
6207
|
return setFocusedMonth(dateFns.addMonths(focusedMonth, -1));
|
|
@@ -6070,7 +6264,6 @@ var cellState = function cellState(day, interval, _hoverDate) {
|
|
|
6070
6264
|
isInsideInterval = dateFns.isWithinInterval(day, interval);
|
|
6071
6265
|
} catch (error) {
|
|
6072
6266
|
isInsideInterval = false;
|
|
6073
|
-
console.log('wrong interval in datepicker', error);
|
|
6074
6267
|
}
|
|
6075
6268
|
|
|
6076
6269
|
if (isInsideInterval || dateFns.isSameDay(interval.start, day)) {
|
|
@@ -6460,31 +6653,26 @@ var LoadingBox = function LoadingBox(_ref2) {
|
|
|
6460
6653
|
|
|
6461
6654
|
var _excluded$o = ["buttonIcon", "buttonText", "list", "selected", "disabled", "isLoading", "loadingText", "optionType", "hasOptionsFilter", "searchPlaceholder", "maxDisplayedItems", "searchResultText", "emptyResultText", "onSelect"];
|
|
6462
6655
|
|
|
6463
|
-
var _templateObject$B, _templateObject2$A, _templateObject3$v, _templateObject4$q, _templateObject5$n, _templateObject6$k, _templateObject7$j, _templateObject8$h, _templateObject9$g;
|
|
6656
|
+
var _templateObject$B, _templateObject2$A, _templateObject3$v, _templateObject4$q, _templateObject5$n, _templateObject6$k, _templateObject7$j, _templateObject8$h, _templateObject9$g, _templateObject10$e;
|
|
6464
6657
|
var Container$o = styled__default.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n display: inline-block;\n position: relative;\n"])));
|
|
6465
|
-
var TopLine$1 = styled__default.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n ", ";\n height:
|
|
6658
|
+
var TopLine$1 = styled__default.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n ", ";\n height: 3px;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n"])), function (_ref) {
|
|
6466
6659
|
var theme = _ref.theme;
|
|
6467
6660
|
return theme.styles.filters.dropdownContainer.topBorder;
|
|
6468
6661
|
});
|
|
6469
|
-
var InnerBox = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n
|
|
6470
|
-
var theme = _ref2.theme;
|
|
6471
|
-
return theme.styles.filters.dropdownContainer.background;
|
|
6472
|
-
});
|
|
6662
|
+
var InnerBox = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n box-shadow: 0 4px 9px 0 hsla(204, 22%, 67%, 0.07);\n border-right: solid 1px hsl(207, 16%, 86%);\n border-bottom: solid 1px hsl(207, 16%, 86%);\n border-left: solid 1px hsl(207, 16%, 86%);\n background-color: hsl(200, 23%, 97%);\n"])));
|
|
6473
6663
|
var StyledFilterOption = styled__default(FilterOption)(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n letter-spacing: 0.2px;\n"])));
|
|
6474
|
-
var OptionList = styled__default.div(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n max-height:
|
|
6475
|
-
var
|
|
6664
|
+
var OptionList = styled__default.div(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n max-height: ", ";\n min-height: 40px;\n position: relative;\n overflow-y: auto;\n margin-right: 2px;\n\n ", " {\n height: 35px;\n padding-left: 10px;\n }\n"])), function (_ref2) {
|
|
6665
|
+
var moreItem = _ref2.moreItem;
|
|
6666
|
+
return moreItem ? '168px' : '175px';
|
|
6667
|
+
}, StyledFilterOption);
|
|
6668
|
+
var ResultsContainer = styled__default.div(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n border-top: 1px solid hsl(0, 0%, 91%);\n padding-bottom: 8px;\n"])));
|
|
6669
|
+
var ResultCounter = styled__default.div(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n opacity: 0.75;\n font-family: ", ";\n color: hsl(0, 0%, 55%);\n font-size: 12px;\n font-style: italic;\n font-weight: 300;\n display: flex;\n align-items: center;\n justify-content: left;\n padding-left: 9px;\n height: 30px;\n margin-bottom: 6px;\n border-bottom: 1px solid hsl(0, 0%, 91%);\n"])), function (_ref3) {
|
|
6476
6670
|
var theme = _ref3.theme;
|
|
6477
|
-
return theme.colors.divider;
|
|
6478
|
-
});
|
|
6479
|
-
var ResultCounter = styled__default.div(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n opacity: 0.75;\n font-family: ", ";\n color: hsl(0, 0%, 55%);\n font-size: 12px;\n font-style: italic;\n font-weight: 300;\n display: flex;\n align-items: center;\n justify-content: left;\n padding-left: 9px;\n height: 30px;\n margin-bottom: 6px;\n border-bottom: ", " 1px solid;\n"])), function (_ref4) {
|
|
6480
|
-
var theme = _ref4.theme;
|
|
6481
6671
|
return theme.fontFamily.data;
|
|
6482
|
-
}, function (_ref5) {
|
|
6483
|
-
var theme = _ref5.theme;
|
|
6484
|
-
return theme.colors.divider;
|
|
6485
6672
|
});
|
|
6486
6673
|
var SearchWrapper = styled__default.div(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n height: 41px;\n display: flex;\n align-items: center;\n"])));
|
|
6487
6674
|
var EmptyResultText = styled__default.div(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n display: block;\n color: hsl(0, 0%, 56%);\n margin-left: 12px;\n user-select: none;\n pointer-events: none;\n height: 35px;\n display: flex;\n align-items: center;\n font-size: 12px;\n"])));
|
|
6675
|
+
var Gradient = styled__default.div(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n height: 15px;\n background-image: linear-gradient(to bottom, transparent, #e5e5e5);\n width: 99%;\n left: 50%;\n transform: translateX(-50%);\n pointer-events: none;\n"])));
|
|
6488
6676
|
|
|
6489
6677
|
var isValueSelected = function isValueSelected(item, selected) {
|
|
6490
6678
|
var isItemSelected = false;
|
|
@@ -6610,29 +6798,29 @@ var getResultText = function getResultText(template, visible, total) {
|
|
|
6610
6798
|
return newMessage.replace('[VISIBLE]', "" + visible);
|
|
6611
6799
|
};
|
|
6612
6800
|
|
|
6613
|
-
var FilterDropdown = function FilterDropdown(
|
|
6614
|
-
var buttonIcon =
|
|
6615
|
-
buttonText =
|
|
6616
|
-
list =
|
|
6617
|
-
|
|
6618
|
-
selected =
|
|
6619
|
-
|
|
6620
|
-
disabled =
|
|
6621
|
-
|
|
6622
|
-
isLoading =
|
|
6623
|
-
loadingText =
|
|
6624
|
-
|
|
6625
|
-
optionType =
|
|
6626
|
-
hasOptionsFilter =
|
|
6627
|
-
searchPlaceholder =
|
|
6628
|
-
|
|
6629
|
-
maxDisplayedItems =
|
|
6630
|
-
|
|
6631
|
-
searchResultText =
|
|
6632
|
-
emptyResultText =
|
|
6633
|
-
|
|
6634
|
-
onSelect =
|
|
6635
|
-
props = _objectWithoutPropertiesLoose(
|
|
6801
|
+
var FilterDropdown = function FilterDropdown(_ref4) {
|
|
6802
|
+
var buttonIcon = _ref4.buttonIcon,
|
|
6803
|
+
buttonText = _ref4.buttonText,
|
|
6804
|
+
list = _ref4.list,
|
|
6805
|
+
_ref4$selected = _ref4.selected,
|
|
6806
|
+
selected = _ref4$selected === void 0 ? null : _ref4$selected,
|
|
6807
|
+
_ref4$disabled = _ref4.disabled,
|
|
6808
|
+
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
6809
|
+
_ref4$isLoading = _ref4.isLoading,
|
|
6810
|
+
isLoading = _ref4$isLoading === void 0 ? false : _ref4$isLoading,
|
|
6811
|
+
loadingText = _ref4.loadingText,
|
|
6812
|
+
_ref4$optionType = _ref4.optionType,
|
|
6813
|
+
optionType = _ref4$optionType === void 0 ? 'text' : _ref4$optionType,
|
|
6814
|
+
hasOptionsFilter = _ref4.hasOptionsFilter,
|
|
6815
|
+
searchPlaceholder = _ref4.searchPlaceholder,
|
|
6816
|
+
_ref4$maxDisplayedIte = _ref4.maxDisplayedItems,
|
|
6817
|
+
maxDisplayedItems = _ref4$maxDisplayedIte === void 0 ? 5 : _ref4$maxDisplayedIte,
|
|
6818
|
+
_ref4$searchResultTex = _ref4.searchResultText,
|
|
6819
|
+
searchResultText = _ref4$searchResultTex === void 0 ? 'Showing [VISIBLE] of [TOTAL]' : _ref4$searchResultTex,
|
|
6820
|
+
emptyResultText = _ref4.emptyResultText,
|
|
6821
|
+
_ref4$onSelect = _ref4.onSelect,
|
|
6822
|
+
onSelect = _ref4$onSelect === void 0 ? function () {} : _ref4$onSelect,
|
|
6823
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded$o);
|
|
6636
6824
|
|
|
6637
6825
|
var _useState = React.useState(selectedOrderList(list, maxDisplayedItems, selected)),
|
|
6638
6826
|
visibleList = _useState[0],
|
|
@@ -6697,7 +6885,9 @@ var FilterDropdown = function FilterDropdown(_ref6) {
|
|
|
6697
6885
|
noBackground: true
|
|
6698
6886
|
})), isLoading || !list ? React__default.createElement(LoadingBox, Object.assign({}, {
|
|
6699
6887
|
loadingText: loadingText
|
|
6700
|
-
})) : React__default.createElement(ResultsContainer, null, hasOptionsFilter && React__default.createElement(ResultCounter, null, getResultText(searchResultText, visibleList.length, list.length)), React__default.createElement(OptionList,
|
|
6888
|
+
})) : React__default.createElement(ResultsContainer, null, hasOptionsFilter && React__default.createElement(ResultCounter, null, getResultText(searchResultText, visibleList.length, list.length)), React__default.createElement(OptionList, {
|
|
6889
|
+
moreItem: list.length > 5
|
|
6890
|
+
}, visibleList.length > 0 ? visibleList.map(function (item, index) {
|
|
6701
6891
|
var value = item.value;
|
|
6702
6892
|
var text = item.text;
|
|
6703
6893
|
return React__default.createElement(StyledFilterOption, Object.assign({
|
|
@@ -6711,7 +6901,7 @@ var FilterDropdown = function FilterDropdown(_ref6) {
|
|
|
6711
6901
|
optionType: optionType,
|
|
6712
6902
|
value: value
|
|
6713
6903
|
}));
|
|
6714
|
-
}) : React__default.createElement(EmptyResultText, null, emptyResultText))))));
|
|
6904
|
+
}) : React__default.createElement(EmptyResultText, null, emptyResultText)), list.length > 5 && React__default.createElement(Gradient, null)))));
|
|
6715
6905
|
};
|
|
6716
6906
|
|
|
6717
6907
|
var _excluded$p = ["buttonText", "disabled", "list", "isLoading", "loadingText", "isSortAscending", "selected", "descendingText", "ascendingText", "onSelect"];
|
|
@@ -6819,12 +7009,216 @@ var SortDropdown = function SortDropdown(_ref7) {
|
|
|
6819
7009
|
}))))));
|
|
6820
7010
|
};
|
|
6821
7011
|
|
|
7012
|
+
var _templateObject$D, _templateObject2$C, _templateObject3$x, _templateObject4$s, _templateObject5$p, _templateObject6$m, _templateObject7$l, _templateObject8$j, _templateObject9$i, _templateObject10$f, _templateObject11$8, _templateObject12$6, _templateObject13$5, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$1;
|
|
7013
|
+
var Container$q = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: inline-block;\n position: relative;\n"])));
|
|
7014
|
+
var ContextActionBaseCSS = styled.css(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n -webkit-tap-highlight-color: transparent;\n border: none;\n background: none;\n display: flex;\n justify-content:left;\n align-items:center;\n flex-wrap: wrap;\n cursor: pointer;\n outline: none;\n text-decoration: none;\n padding: 0;\n"])));
|
|
7015
|
+
var ContextIcon = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n ", ";\n width: 30px;\n height: 30px;\n border-radius: 3px;\n display:flex;\n justify-content:center;\n align-items:center;\n svg {\n display: block;\n }\n"])), function (_ref) {
|
|
7016
|
+
var theme = _ref.theme;
|
|
7017
|
+
return styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n ", ";\n transition: background ", " ", ";\n "])), theme.styles.global.mainMenu.iconBackground["default"], theme.animation.speed.fast, theme.animation.easing.primary.easeInOut);
|
|
7018
|
+
});
|
|
7019
|
+
var ContextActionButton = styled__default.button(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n ", "\n ", "{\n cursor: pointer;\n }\n &:hover {\n div > svg > g {\n stroke: hsl(0, 0%, 100%);\n }\n }\n &:hover ", "{\n ", ";\n }\n }\n ", "\n ", "\n"])), ContextActionBaseCSS, ContextIcon, ContextIcon, function (_ref2) {
|
|
7020
|
+
var theme = _ref2.theme;
|
|
7021
|
+
return theme.styles.global.mainMenu.iconBackground.hover;
|
|
7022
|
+
}, function (_ref3) {
|
|
7023
|
+
var isActive = _ref3.isActive;
|
|
7024
|
+
return isActive && styled.css(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n ", " {\n ", ";\n }\n &:hover ", "{\n background-color: hsl(205, 100%, 72%);\n cursor: pointer;\n }\n "])), ContextIcon, function (_ref4) {
|
|
7025
|
+
var theme = _ref4.theme;
|
|
7026
|
+
return theme.styles.global.mainMenu.iconBackground.hover;
|
|
7027
|
+
}, ContextIcon);
|
|
7028
|
+
}, function (_ref5) {
|
|
7029
|
+
var isInnerContextButton = _ref5.isInnerContextButton;
|
|
7030
|
+
return isInnerContextButton && styled.css(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n margin-right: 5px;\n "])));
|
|
7031
|
+
});
|
|
7032
|
+
var ContentBox$1 = styled__default.div(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n z-index: 100;\n min-width: ", "px;\n position: absolute;\n ", ";\n"])), function (_ref6) {
|
|
7033
|
+
var minWidth = _ref6.minWidth;
|
|
7034
|
+
return minWidth;
|
|
7035
|
+
}, function (_ref7) {
|
|
7036
|
+
var openState = _ref7.openState,
|
|
7037
|
+
disabled = _ref7.disabled;
|
|
7038
|
+
return openState && styled.css(_templateObject9$i || (_templateObject9$i = _taggedTemplateLiteralLoose(["\n display: ", ";\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n "])), openState.isOpen ? 'inline-block' : 'none', disabled && 'none', openState.position === 'bottom-right' && styled.css(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n bottom: 0;\n left: 0;\n transform: translateY(calc(100% + 5px ));\n "]))), openState.position === 'bottom-left' && styled.css(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n right: 0;\n transform: translateY(calc(100% + 5px ));\n "]))), openState.position === 'top-left' && styled.css(_templateObject12$6 || (_templateObject12$6 = _taggedTemplateLiteralLoose(["\n top: 0;\n right: 0;\n transform: translateY(calc( -100% - 5px ));\n "]))), openState.position === 'top-right' && styled.css(_templateObject13$5 || (_templateObject13$5 = _taggedTemplateLiteralLoose(["\n top: 0;\n left: 0;\n transform: translateY(calc( -100% - 5px ));\n "]))));
|
|
7039
|
+
});
|
|
7040
|
+
var ButtonWrapper$1 = styled__default.div(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n"])));
|
|
7041
|
+
var TopLine$3 = styled__default.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n ", ";\n height: 3px;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n"])), function (_ref8) {
|
|
7042
|
+
var theme = _ref8.theme;
|
|
7043
|
+
return theme.styles.filters.dropdownContainer.topBorder;
|
|
7044
|
+
});
|
|
7045
|
+
var InnerBox$2 = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n box-shadow: 0 4px 9px 0 hsla(204, 22%, 67%, 0.07);\n border: solid 1px hsl(207,16%,86%);\n border-top: none;\n background-color: hsl(200, 23%, 97%);\n"])));
|
|
7046
|
+
var LayoutGroup = styled__default.div(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 4px 8px 4px 10px;\n width: auto;\n"])));
|
|
7047
|
+
var PaginationGroup = styled__default.div(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n border-top: ", " 1px solid;\n padding: 4px 8px 4px 10px;\n align-items: center;\n justify-content: space-between;\n width: auto;\n"])), function (_ref9) {
|
|
7048
|
+
var colors = _ref9.theme.colors;
|
|
7049
|
+
return colors.divider;
|
|
7050
|
+
});
|
|
7051
|
+
var IconWrapper$3 = styled__default.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
7052
|
+
var LayoutText = styled__default.p(_templateObject20$2 || (_templateObject20$2 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: 14px;\n color: #8f8f8f;\n"])), function (_ref10) {
|
|
7053
|
+
var theme = _ref10.theme;
|
|
7054
|
+
return theme.fontFamily.ui;
|
|
7055
|
+
});
|
|
7056
|
+
var PaginationText = styled__default.p(_templateObject21$2 || (_templateObject21$2 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: 14px;\n color: #8f8f8f;\n"])), function (_ref11) {
|
|
7057
|
+
var theme = _ref11.theme;
|
|
7058
|
+
return theme.fontFamily.ui;
|
|
7059
|
+
});
|
|
7060
|
+
var PageSizeContainer = styled__default.div(_templateObject22$2 || (_templateObject22$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
7061
|
+
var SelectFieldContainer = styled__default.div(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose(["\n select{\n background-color: #fff;\n }\n"])));
|
|
7062
|
+
|
|
7063
|
+
var getDropPosition$1 = function getDropPosition(buttonRect, minWidth, minHeight) {
|
|
7064
|
+
var position = 'bottom-right';
|
|
7065
|
+
var openLeft = buttonRect.left + minWidth > window.innerWidth;
|
|
7066
|
+
var openTop = buttonRect.bottom + minHeight > window.innerHeight;
|
|
7067
|
+
var spaceTop = buttonRect.bottom > minHeight;
|
|
7068
|
+
|
|
7069
|
+
if (openLeft && openTop && spaceTop) {
|
|
7070
|
+
position = 'top-left';
|
|
7071
|
+
} else if (openTop && !openLeft && spaceTop) {
|
|
7072
|
+
position = 'top-right';
|
|
7073
|
+
} else if (!openTop && openLeft) {
|
|
7074
|
+
position = 'bottom-left';
|
|
7075
|
+
}
|
|
7076
|
+
|
|
7077
|
+
return position;
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
var FilterLayout = function FilterLayout(_ref12) {
|
|
7081
|
+
var _ref12$disabled = _ref12.disabled,
|
|
7082
|
+
disabled = _ref12$disabled === void 0 ? false : _ref12$disabled,
|
|
7083
|
+
_ref12$onToggleOpenCa = _ref12.onToggleOpenCallback,
|
|
7084
|
+
onToggleOpenCallback = _ref12$onToggleOpenCa === void 0 ? function () {} : _ref12$onToggleOpenCa,
|
|
7085
|
+
_ref12$onCloseCallbac = _ref12.onCloseCallback,
|
|
7086
|
+
onCloseCallback = _ref12$onCloseCallbac === void 0 ? function () {} : _ref12$onCloseCallbac,
|
|
7087
|
+
_ref12$pageSizeOption = _ref12.pageSizeOptions,
|
|
7088
|
+
pageSizeOptions = _ref12$pageSizeOption === void 0 ? [10, 20, 30, 50, 100] : _ref12$pageSizeOption,
|
|
7089
|
+
_ref12$onPageSizeChan = _ref12.onPageSizeChange,
|
|
7090
|
+
onPageSizeChange = _ref12$onPageSizeChan === void 0 ? function () {} : _ref12$onPageSizeChan,
|
|
7091
|
+
_ref12$defaultPageSiz = _ref12.defaultPageSize,
|
|
7092
|
+
defaultPageSize = _ref12$defaultPageSiz === void 0 ? 10 : _ref12$defaultPageSiz,
|
|
7093
|
+
_ref12$getLayout = _ref12.getLayout,
|
|
7094
|
+
getLayout = _ref12$getLayout === void 0 ? function () {} : _ref12$getLayout,
|
|
7095
|
+
_ref12$layoutText = _ref12.layoutText,
|
|
7096
|
+
layoutText = _ref12$layoutText === void 0 ? 'Layout' : _ref12$layoutText,
|
|
7097
|
+
_ref12$pageSizeText = _ref12.pageSizeText,
|
|
7098
|
+
pageSizeText = _ref12$pageSizeText === void 0 ? 'Items Per Page' : _ref12$pageSizeText,
|
|
7099
|
+
contentArray = _ref12.contentArray,
|
|
7100
|
+
_ref12$minWidth = _ref12.minWidth,
|
|
7101
|
+
minWidth = _ref12$minWidth === void 0 ? 250 : _ref12$minWidth,
|
|
7102
|
+
_ref12$minHeight = _ref12.minHeight,
|
|
7103
|
+
minHeight = _ref12$minHeight === void 0 ? 90 : _ref12$minHeight,
|
|
7104
|
+
_ref12$hasPageSetting = _ref12.hasPageSettings,
|
|
7105
|
+
hasPageSettings = _ref12$hasPageSetting === void 0 ? true : _ref12$hasPageSetting;
|
|
7106
|
+
|
|
7107
|
+
var _useState = React.useState({
|
|
7108
|
+
isOpen: false,
|
|
7109
|
+
position: 'bottom-right'
|
|
7110
|
+
}),
|
|
7111
|
+
openState = _useState[0],
|
|
7112
|
+
setOpenState = _useState[1];
|
|
7113
|
+
|
|
7114
|
+
var buttonWrapperRef = React.useRef(null);
|
|
7115
|
+
var mainRef = React.useRef(null);
|
|
7116
|
+
|
|
7117
|
+
var _useState2 = React.useState('grid'),
|
|
7118
|
+
isGridLayout = _useState2[0],
|
|
7119
|
+
setIsGridLayout = _useState2[1];
|
|
7120
|
+
|
|
7121
|
+
var _useState3 = React.useState(defaultPageSize),
|
|
7122
|
+
pageSize = _useState3[0],
|
|
7123
|
+
setPageSize = _useState3[1];
|
|
7124
|
+
|
|
7125
|
+
var handleClose = React.useCallback(function () {
|
|
7126
|
+
if (openState.isOpen) {
|
|
7127
|
+
onCloseCallback();
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7130
|
+
setOpenState(function (prev) {
|
|
7131
|
+
var isOpen = false;
|
|
7132
|
+
return _extends({}, prev, {
|
|
7133
|
+
isOpen: isOpen
|
|
7134
|
+
});
|
|
7135
|
+
});
|
|
7136
|
+
}, [onCloseCallback, openState.isOpen]);
|
|
7137
|
+
useClickOutside(mainRef, handleClose);
|
|
7138
|
+
var handleToggleOpen = React.useCallback(function (minWidth, minHeight) {
|
|
7139
|
+
if (!buttonWrapperRef.current) {
|
|
7140
|
+
return;
|
|
7141
|
+
}
|
|
7142
|
+
|
|
7143
|
+
var buttonRect = buttonWrapperRef.current.getBoundingClientRect();
|
|
7144
|
+
|
|
7145
|
+
if (!buttonRect) {
|
|
7146
|
+
return;
|
|
7147
|
+
}
|
|
7148
|
+
|
|
7149
|
+
var position = getDropPosition$1(buttonRect, minWidth, minHeight);
|
|
7150
|
+
onToggleOpenCallback(openState.isOpen);
|
|
7151
|
+
setOpenState(function (prev) {
|
|
7152
|
+
var isOpen = !prev.isOpen;
|
|
7153
|
+
return _extends({}, prev, {
|
|
7154
|
+
isOpen: isOpen,
|
|
7155
|
+
position: position
|
|
7156
|
+
});
|
|
7157
|
+
});
|
|
7158
|
+
}, [onToggleOpenCallback, openState.isOpen]);
|
|
7159
|
+
var switchLayout = React.useCallback(function (layout) {
|
|
7160
|
+
setIsGridLayout(layout);
|
|
7161
|
+
getLayout(layout);
|
|
7162
|
+
}, [getLayout]);
|
|
7163
|
+
var handlePageSizeChange = React.useCallback(function (size) {
|
|
7164
|
+
onPageSizeChange(Number(size));
|
|
7165
|
+
}, [onPageSizeChange]);
|
|
7166
|
+
React.useEffect(function () {
|
|
7167
|
+
setPageSize(defaultPageSize);
|
|
7168
|
+
}, [defaultPageSize]);
|
|
7169
|
+
var internal = React__default.createElement(React__default.Fragment, null, React__default.createElement(ContextIcon, null, React__default.createElement(Icon, {
|
|
7170
|
+
icon: 'ViewSettings',
|
|
7171
|
+
color: openState.isOpen ? 'inverse' : 'dimmed',
|
|
7172
|
+
size: 16
|
|
7173
|
+
})));
|
|
7174
|
+
return React__default.createElement(Container$q, {
|
|
7175
|
+
ref: mainRef
|
|
7176
|
+
}, React__default.createElement(ButtonWrapper$1, {
|
|
7177
|
+
ref: buttonWrapperRef
|
|
7178
|
+
}, React__default.createElement(ContextActionButton, {
|
|
7179
|
+
isActive: openState.isOpen,
|
|
7180
|
+
isInnerContextButton: false,
|
|
7181
|
+
onClick: function onClick() {
|
|
7182
|
+
return handleToggleOpen(minWidth, minHeight);
|
|
7183
|
+
}
|
|
7184
|
+
}, internal)), React__default.createElement(ContentBox$1, Object.assign({}, {
|
|
7185
|
+
openState: openState,
|
|
7186
|
+
disabled: disabled,
|
|
7187
|
+
minWidth: minWidth
|
|
7188
|
+
}), React__default.createElement(TopLine$3, null), React__default.createElement(InnerBox$2, null, React__default.createElement(LayoutGroup, null, React__default.createElement(LayoutText, null, layoutText), React__default.createElement(IconWrapper$3, null, contentArray.map(function (item, index) {
|
|
7189
|
+
return React__default.createElement(ContextActionButton, {
|
|
7190
|
+
key: index,
|
|
7191
|
+
isInnerContextButton: index !== contentArray.length - 1,
|
|
7192
|
+
isActive: isGridLayout === item.id,
|
|
7193
|
+
onClick: function onClick() {
|
|
7194
|
+
return switchLayout(item.id);
|
|
7195
|
+
}
|
|
7196
|
+
}, React__default.createElement(ContextIcon, {
|
|
7197
|
+
title: item.tooltipText
|
|
7198
|
+
}, React__default.createElement(Icon, {
|
|
7199
|
+
icon: item.icon,
|
|
7200
|
+
color: isGridLayout === item.id ? 'inverse' : 'dimmed',
|
|
7201
|
+
size: 16
|
|
7202
|
+
})));
|
|
7203
|
+
}))), hasPageSettings && React__default.createElement(PaginationGroup, null, React__default.createElement(PaginationText, null, pageSizeText), pageSizeOptions && React__default.createElement(PageSizeContainer, null, React__default.createElement(SelectFieldContainer, null, React__default.createElement(SelectField, {
|
|
7204
|
+
changeCallback: handlePageSizeChange,
|
|
7205
|
+
defaultValue: pageSize,
|
|
7206
|
+
isCompact: true,
|
|
7207
|
+
value: pageSize
|
|
7208
|
+
}, pageSizeOptions.map(function (size, index) {
|
|
7209
|
+
return React__default.createElement("option", {
|
|
7210
|
+
key: index,
|
|
7211
|
+
value: size
|
|
7212
|
+
}, size);
|
|
7213
|
+
}))))))));
|
|
7214
|
+
};
|
|
7215
|
+
|
|
6822
7216
|
var _excluded$q = ["buttonIcon", "buttonText", "disabled", "initialValue", "dateMode", "timeMode", "selected", "dateTimeTextUpper", "dateTimeTextLower", "timeZoneTitle", "timeZoneValueTitle", "lang", "onCloseCallback", "onUpdateCallback", "onToggleCallback"];
|
|
6823
7217
|
|
|
6824
|
-
var _templateObject$
|
|
7218
|
+
var _templateObject$E;
|
|
6825
7219
|
var MIN_WIDTH = 470;
|
|
6826
7220
|
var MIN_HEIGHT = 360;
|
|
6827
|
-
var Container$
|
|
7221
|
+
var Container$r = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose([""])));
|
|
6828
7222
|
|
|
6829
7223
|
var DropdownDatePicker = function DropdownDatePicker(_ref) {
|
|
6830
7224
|
var buttonIcon = _ref.buttonIcon,
|
|
@@ -6892,7 +7286,7 @@ var DropdownDatePicker = function DropdownDatePicker(_ref) {
|
|
|
6892
7286
|
canReset = false;
|
|
6893
7287
|
};
|
|
6894
7288
|
}, [selected]);
|
|
6895
|
-
return React__default.createElement(Container$
|
|
7289
|
+
return React__default.createElement(Container$r, Object.assign({}, props), React__default.createElement(FilterDropHandler, Object.assign({}, {
|
|
6896
7290
|
buttonIcon: buttonIcon,
|
|
6897
7291
|
buttonText: buttonText,
|
|
6898
7292
|
disabled: disabled
|
|
@@ -6918,17 +7312,17 @@ var DropdownDatePicker = function DropdownDatePicker(_ref) {
|
|
|
6918
7312
|
|
|
6919
7313
|
var _excluded$r = ["hasShowMore", "searchFilters", "datePickerFilters", "dropdownFilters", "showMoreText", "showLessText"];
|
|
6920
7314
|
|
|
6921
|
-
var _templateObject$
|
|
6922
|
-
var fadeInAnimation = styled.keyframes(_templateObject$
|
|
6923
|
-
var SearchInputWrapper = styled__default.div(_templateObject2$
|
|
6924
|
-
var CloseSearchInputWrapper = styled__default.div(_templateObject3$
|
|
7315
|
+
var _templateObject$F, _templateObject2$D, _templateObject3$y, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$m, _templateObject8$k;
|
|
7316
|
+
var fadeInAnimation = styled.keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n 0% {\n width: 50%;\n opacity: .5;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
7317
|
+
var SearchInputWrapper = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n flex: 1 1 200px;\n max-width: 320px;\n"])));
|
|
7318
|
+
var CloseSearchInputWrapper = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n ", ";\n"])), function (_ref) {
|
|
6925
7319
|
var theme = _ref.theme;
|
|
6926
|
-
return theme && styled.css(_templateObject4$
|
|
7320
|
+
return theme && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n animation: ", " ", " ", ";\n "])), fadeInAnimation, theme.animation.speed.slow, theme.animation.easing.primary.inOut);
|
|
6927
7321
|
});
|
|
6928
|
-
var StyledFilterButton = styled__default(FilterButton)(_templateObject5$
|
|
6929
|
-
var StyledDropdown = styled__default(FilterDropdown)(_templateObject6$
|
|
6930
|
-
var StyledDropdownDatePicker = styled__default(DropdownDatePicker)(_templateObject7$
|
|
6931
|
-
var Container$
|
|
7322
|
+
var StyledFilterButton = styled__default(FilterButton)(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose([""])));
|
|
7323
|
+
var StyledDropdown = styled__default(FilterDropdown)(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose([""])));
|
|
7324
|
+
var StyledDropdownDatePicker = styled__default(DropdownDatePicker)(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose([""])));
|
|
7325
|
+
var Container$s = styled__default.div(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n ", ", ", ", ", ", ", " {\n margin: 0 3px 10px 3px;\n }\n"])), SearchInputWrapper, StyledDropdown, StyledFilterButton, StyledDropdownDatePicker);
|
|
6932
7326
|
|
|
6933
7327
|
var renderDropdowns = function renderDropdowns(dropdownFilters, showMoreDropdowns, hasShowMore) {
|
|
6934
7328
|
return dropdownFilters.map(function (dropdown) {
|
|
@@ -7034,7 +7428,7 @@ var FilterInputs = function FilterInputs(_ref2) {
|
|
|
7034
7428
|
setVisibleSearchInputs(_newVisible);
|
|
7035
7429
|
}
|
|
7036
7430
|
}, [visibleSearchInputs]);
|
|
7037
|
-
return React__default.createElement(Container$
|
|
7431
|
+
return React__default.createElement(Container$s, Object.assign({}, {
|
|
7038
7432
|
props: props
|
|
7039
7433
|
}), renderSearchInputs(searchFilters, visibleSearchInputs, handleVisibleSearch), renderDatePickers(datePickerFilters), renderDropdowns(dropdownFilters, showMoreDropdowns, hasShowMore), (!hasShowMore || !showMoreDropdowns) && renderAddSearchButtons(searchFilters, visibleSearchInputs, handleVisibleSearch), hasShowMore && React__default.createElement(FilterButton, {
|
|
7040
7434
|
icon: 'FilterEllipsis',
|
|
@@ -7044,26 +7438,36 @@ var FilterInputs = function FilterInputs(_ref2) {
|
|
|
7044
7438
|
|
|
7045
7439
|
var _excluded$s = ["labelLists", "totalResults", "resultTextTemplate", "clearText", "resultsDateFormat", "onRemoveFilter", "onClearAll"];
|
|
7046
7440
|
|
|
7047
|
-
var _templateObject$
|
|
7048
|
-
var Container$
|
|
7049
|
-
var ResultsTextWrapper = styled__default.div(_templateObject2$
|
|
7441
|
+
var _templateObject$G, _templateObject2$E, _templateObject3$z, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$n, _templateObject8$l;
|
|
7442
|
+
var Container$t = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 12px;\n min-height: 22px;\n"])));
|
|
7443
|
+
var ResultsTextWrapper = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n color: hsl(207, 5%, 57%);\n"])), function (_ref) {
|
|
7050
7444
|
var theme = _ref.theme;
|
|
7051
7445
|
return theme.fontFamily.ui;
|
|
7052
7446
|
});
|
|
7053
|
-
var FilterLabel = styled__default.div(_templateObject3$
|
|
7447
|
+
var FilterLabel = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n height: 18px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n padding: 0 11px 0 8px;\n margin-left: 3px;\n color: hsl(207, 5%, 57%);\n\n ", ";\n\n ", " {\n display: flex;\n align-items: center;\n }\n border-right: 1px solid hsla(0, 0%, 13%, 0.16);\n"])), function (_ref2) {
|
|
7054
7448
|
var theme = _ref2.theme;
|
|
7055
|
-
return theme && styled.css(_templateObject4$
|
|
7449
|
+
return theme && styled.css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n "])), theme.fontFamily.data);
|
|
7056
7450
|
}, IconWrapper);
|
|
7057
|
-
var FilterLabelText = styled__default.div(_templateObject5$
|
|
7451
|
+
var FilterLabelText = styled__default.div(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n padding: ", ";\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 300px;\n"])), function (_ref3) {
|
|
7058
7452
|
var hasIcon = _ref3.hasIcon;
|
|
7059
7453
|
return hasIcon ? '0 15px 0 9px' : '0 15px 0 0';
|
|
7060
7454
|
});
|
|
7061
|
-
var ClearTextButton = styled__default.button(_templateObject6$
|
|
7455
|
+
var ClearTextButton = styled__default.button(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n ", ";\n font-family: ", ";\n color: hsl(216, 4%, 77%);\n margin-left: 11px;\n font-size: 12px;\n"])), resetButtonStyles, function (_ref4) {
|
|
7062
7456
|
var theme = _ref4.theme;
|
|
7063
7457
|
return theme.fontFamily.data;
|
|
7064
7458
|
});
|
|
7065
|
-
var RemoveButton = styled__default.button(_templateObject7$
|
|
7066
|
-
var FilterLabelsGroup = styled__default.div(_templateObject8$
|
|
7459
|
+
var RemoveButton = styled__default.button(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n ", ";\n"])), resetButtonStyles);
|
|
7460
|
+
var FilterLabelsGroup = styled__default.div(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin-left: 10px;\n"])));
|
|
7461
|
+
|
|
7462
|
+
var validWithMidnight = function validWithMidnight(endDate, resultsDateFormat) {
|
|
7463
|
+
if (endDate.getHours() === 23 && endDate.getSeconds() > 0) {
|
|
7464
|
+
return dateFns.format(dateFns.add(dateFns.startOfDay(endDate), {
|
|
7465
|
+
days: 1
|
|
7466
|
+
}), resultsDateFormat);
|
|
7467
|
+
}
|
|
7468
|
+
|
|
7469
|
+
return dateFns.format(endDate, resultsDateFormat);
|
|
7470
|
+
};
|
|
7067
7471
|
|
|
7068
7472
|
var validateDateFormat = function validateDateFormat(resultsDateFormat) {
|
|
7069
7473
|
var isFormatValid = false;
|
|
@@ -7094,13 +7498,13 @@ var renderLabel = function renderLabel(item, resultsDateFormat, icon, filterName
|
|
|
7094
7498
|
} else if (filterName && item instanceof Date) {
|
|
7095
7499
|
textLabel = isDateFormatValid ? filterName + ": " + dateFns.format(item, resultsDateFormat) : filterName + ": " + item.toDateString();
|
|
7096
7500
|
} else if (filterName && isDateInterval(item)) {
|
|
7097
|
-
textLabel = isDateFormatValid ? filterName + ": " + dateFns.format(item.start, resultsDateFormat) + " - " +
|
|
7501
|
+
textLabel = isDateFormatValid ? filterName + ": " + dateFns.format(item.start, resultsDateFormat) + " - " + validWithMidnight(item.end, resultsDateFormat) : filterName + ": " + item.start.toDateString() + " - " + item.end.toDateString();
|
|
7098
7502
|
} else if (!filterName && isFilterItem(item)) {
|
|
7099
7503
|
textLabel = item.text;
|
|
7100
7504
|
} else if (!filterName && item instanceof Date) {
|
|
7101
7505
|
textLabel = isDateFormatValid ? dateFns.format(item, resultsDateFormat) : item.toDateString();
|
|
7102
7506
|
} else if (!filterName && isDateInterval(item)) {
|
|
7103
|
-
textLabel = isDateFormatValid ? dateFns.format(item.start, resultsDateFormat) + " - " +
|
|
7507
|
+
textLabel = isDateFormatValid ? dateFns.format(item.start, resultsDateFormat) + " - " + validWithMidnight(item.end, resultsDateFormat) : item.start.toDateString() + " - " + item.end.toDateString();
|
|
7104
7508
|
}
|
|
7105
7509
|
|
|
7106
7510
|
return React__default.createElement(FilterLabelText, {
|
|
@@ -7123,7 +7527,7 @@ var FiltersResults = function FiltersResults(_ref5) {
|
|
|
7123
7527
|
onClearAll = _ref5$onClearAll === void 0 ? function () {} : _ref5$onClearAll,
|
|
7124
7528
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded$s);
|
|
7125
7529
|
|
|
7126
|
-
return React__default.createElement(Container$
|
|
7530
|
+
return React__default.createElement(Container$t, Object.assign({}, props), React__default.createElement(ResultsTextWrapper, null, renderResults(resultTextTemplate, totalResults)), React__default.createElement(FilterLabelsGroup, null, labelLists.map(function (_ref6, index) {
|
|
7127
7531
|
var icon = _ref6.icon,
|
|
7128
7532
|
item = _ref6.item,
|
|
7129
7533
|
filterName = _ref6.filterName,
|
|
@@ -7153,13 +7557,13 @@ var FiltersResults = function FiltersResults(_ref5) {
|
|
|
7153
7557
|
|
|
7154
7558
|
var _excluded$t = ["filtersTitle", "hasShowMore", "searchersConfig", "dropdownsConfig", "datePickersConfig", "showMoreText", "showLessText", "resultTextTemplate", "clearText", "totalResults", "singleFilter", "resultsDateFormat", "onChangeCallback"];
|
|
7155
7559
|
|
|
7156
|
-
var _templateObject$
|
|
7157
|
-
var Title$2 = styled__default.div(_templateObject$
|
|
7560
|
+
var _templateObject$H, _templateObject2$F, _templateObject3$A;
|
|
7561
|
+
var Title$2 = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n color: hsl(207, 5%, 57%);\n font-size: 12px;\n font-weight: 700;\n margin-bottom: 17px;\n"])), function (_ref) {
|
|
7158
7562
|
var theme = _ref.theme;
|
|
7159
7563
|
return theme.fontFamily.ui;
|
|
7160
7564
|
});
|
|
7161
|
-
var StyledFilterResults = styled__default(FiltersResults)(_templateObject2$
|
|
7162
|
-
var Container$
|
|
7565
|
+
var StyledFilterResults = styled__default(FiltersResults)(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose([""])));
|
|
7566
|
+
var Container$u = styled__default.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n ", " {\n margin-top: 29px;\n min-height: 19px;\n }\n"])), StyledFilterResults);
|
|
7163
7567
|
|
|
7164
7568
|
var getDisableValue = function getDisableValue(filtersValues, singleFilter, filter) {
|
|
7165
7569
|
var disabled = false;
|
|
@@ -7333,7 +7737,7 @@ var createLabelResults = function createLabelResults(searchersConfig, dropdownsC
|
|
|
7333
7737
|
var newLabel = {
|
|
7334
7738
|
filterId: foundPicker.id,
|
|
7335
7739
|
item: foundPicker.selected,
|
|
7336
|
-
icon:
|
|
7740
|
+
icon: datePicker.buttonIcon,
|
|
7337
7741
|
filterName: datePicker.name,
|
|
7338
7742
|
type: foundPicker.type
|
|
7339
7743
|
};
|
|
@@ -7567,7 +7971,7 @@ var FilterBar = function FilterBar(_ref5) {
|
|
|
7567
7971
|
mountConfig = false;
|
|
7568
7972
|
};
|
|
7569
7973
|
}, [dropdownsConfigRef.current]);
|
|
7570
|
-
return React__default.createElement(Container$
|
|
7974
|
+
return React__default.createElement(Container$u, Object.assign({}, props), React__default.createElement(Title$2, null, filtersTitle), React__default.createElement(FilterInputs, Object.assign({}, {
|
|
7571
7975
|
hasShowMore: hasShowMore,
|
|
7572
7976
|
showMoreText: showMoreText,
|
|
7573
7977
|
showLessText: showLessText
|
|
@@ -7587,19 +7991,19 @@ var FilterBar = function FilterBar(_ref5) {
|
|
|
7587
7991
|
})));
|
|
7588
7992
|
};
|
|
7589
7993
|
|
|
7590
|
-
var _templateObject$
|
|
7591
|
-
var Container$
|
|
7592
|
-
var StatusCounter = styled__default.div(_templateObject2$
|
|
7994
|
+
var _templateObject$I, _templateObject2$G, _templateObject3$B, _templateObject4$v, _templateObject5$s;
|
|
7995
|
+
var Container$v = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-block;\n"])));
|
|
7996
|
+
var StatusCounter = styled__default.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 14px;;\n top: -12px;\n border-radius: 4px;\n height: 14px;\n min-width: 14px;\n padding: 2px;\n font-size: 10px;\n color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n background-color: ", ";\n"])), function (_ref) {
|
|
7593
7997
|
var animation = _ref.theme.animation;
|
|
7594
|
-
return styled.css(_templateObject3$
|
|
7998
|
+
return styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n transition: background-color ", " ", ";\n "])), animation.speed.slow, animation.easing.primary.easeInOut);
|
|
7595
7999
|
}, function (_ref2) {
|
|
7596
8000
|
var theme = _ref2.theme,
|
|
7597
8001
|
color = _ref2.color;
|
|
7598
8002
|
return color ? theme.colors.status[color] : 'hsla(0, 0%, 91.8%, 0)';
|
|
7599
8003
|
});
|
|
7600
|
-
var StatusDot = styled__default.div(_templateObject4$
|
|
8004
|
+
var StatusDot = styled__default.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n width: 10px;\n height: 10px;\n border: solid 2px hsl(0, 0%, 100%);\n border-radius: 50%;\n position: absolute;\n top: -6px;\n right: -9px;\n ", "\n background-color: ", ";\n"])), function (_ref3) {
|
|
7601
8005
|
var animation = _ref3.theme.animation;
|
|
7602
|
-
return styled.css(_templateObject5$
|
|
8006
|
+
return styled.css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n transition: background-color ", " ", ";\n "])), animation.speed.slow, animation.easing.primary.easeInOut);
|
|
7603
8007
|
}, function (_ref4) {
|
|
7604
8008
|
var theme = _ref4.theme,
|
|
7605
8009
|
color = _ref4.color;
|
|
@@ -7609,49 +8013,51 @@ var StatusDot = styled__default.div(_templateObject4$u || (_templateObject4$u =
|
|
|
7609
8013
|
var StatusIcon = function StatusIcon(_ref5) {
|
|
7610
8014
|
var icon = _ref5.icon,
|
|
7611
8015
|
status = _ref5.status,
|
|
7612
|
-
counter = _ref5.counter
|
|
7613
|
-
|
|
8016
|
+
counter = _ref5.counter,
|
|
8017
|
+
_ref5$maxCounter = _ref5.maxCounter,
|
|
8018
|
+
maxCounter = _ref5$maxCounter === void 0 ? 999 : _ref5$maxCounter;
|
|
8019
|
+
return React__default.createElement(Container$v, null, status && counter === undefined ? React__default.createElement(StatusDot, {
|
|
7614
8020
|
color: status
|
|
7615
8021
|
}) : counter === undefined ? null : React__default.createElement(StatusCounter, {
|
|
7616
8022
|
color: status
|
|
7617
|
-
}, counter), React__default.createElement(Icon, {
|
|
8023
|
+
}, counter > maxCounter ? maxCounter + "+" : counter), React__default.createElement(Icon, {
|
|
7618
8024
|
icon: icon,
|
|
7619
8025
|
size: 18,
|
|
7620
8026
|
color: 'dimmed'
|
|
7621
8027
|
}));
|
|
7622
8028
|
};
|
|
7623
8029
|
|
|
7624
|
-
var _templateObject$
|
|
7625
|
-
var HandleTouchReactionKeyframes = styled.keyframes(_templateObject$
|
|
7626
|
-
var HandleMouseReactionKeyframes = styled.keyframes(_templateObject2$
|
|
7627
|
-
var HandleBase = styled__default.svg(_templateObject3$
|
|
8030
|
+
var _templateObject$J, _templateObject2$H, _templateObject3$C, _templateObject4$w, _templateObject5$t, _templateObject6$p, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$g, _templateObject11$9, _templateObject12$7, _templateObject13$6, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$3;
|
|
8031
|
+
var HandleTouchReactionKeyframes = styled.keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(1);\n }\n\n 75% {\n transform: scale(3);\n }\n\n 100% {\n transform: scale(1.75);\n }\n"])));
|
|
8032
|
+
var HandleMouseReactionKeyframes = styled.keyframes(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(1);\n }\n\n 75% {\n transform: scale(0);\n }\n\n 100% {\n transform: scale(0.5);\n }\n"])));
|
|
8033
|
+
var HandleBase = styled__default.svg(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n touch-action: none;\n user-select: none;\n overflow: visible;\n cursor: pointer;\n fill: ", ";\n appearance: none;\n"])), function (_ref) {
|
|
7628
8034
|
var theme = _ref.theme,
|
|
7629
8035
|
styling = _ref.styling;
|
|
7630
8036
|
return theme.custom.lines[styling].handleBase.fill;
|
|
7631
8037
|
});
|
|
7632
|
-
var HandleRingLayer = styled__default.circle(_templateObject4$
|
|
8038
|
+
var HandleRingLayer = styled__default.circle(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n fill: none;\n stroke: ", ";\n mask: url(#", ");\n"])), function (_ref2) {
|
|
7633
8039
|
var theme = _ref2.theme,
|
|
7634
8040
|
styling = _ref2.styling;
|
|
7635
8041
|
return theme.custom.lines[styling].handleRingLayer.stroke;
|
|
7636
8042
|
}, function (props) {
|
|
7637
8043
|
return props.maskID;
|
|
7638
8044
|
});
|
|
7639
|
-
var HandleReactiveGroup = styled__default.g(_templateObject5$
|
|
7640
|
-
return props.touchDragging && styled.css(_templateObject6$
|
|
8045
|
+
var HandleReactiveGroup = styled__default.g(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n opacity: 0.65;\n cursor: pointer;\n transform: scale(1);\n\n ", "\n\n ", "\n\n"])), function (props) {
|
|
8046
|
+
return props.touchDragging && styled.css(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n animation: ", " 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 1;\n "])), HandleTouchReactionKeyframes);
|
|
7641
8047
|
}, function (props) {
|
|
7642
|
-
return props.mouseDragging && styled.css(_templateObject7$
|
|
8048
|
+
return props.mouseDragging && styled.css(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n animation: ", " 0.25s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 1;\n "])), HandleMouseReactionKeyframes);
|
|
7643
8049
|
});
|
|
7644
|
-
var HandleReactiveFill = styled__default.circle(_templateObject8$
|
|
8050
|
+
var HandleReactiveFill = styled__default.circle(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n mix-blend-mode: multiply;\n fill: ", ";\n stroke: none;\n"])), function (_ref3) {
|
|
7645
8051
|
var theme = _ref3.theme,
|
|
7646
8052
|
styling = _ref3.styling;
|
|
7647
8053
|
return theme.custom.lines[styling].handleReactiveFill.fill;
|
|
7648
8054
|
});
|
|
7649
|
-
var HandleReactiveRing = styled__default.circle(_templateObject9$
|
|
8055
|
+
var HandleReactiveRing = styled__default.circle(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n fill: none;\n stroke: ", ";\n"])), function (_ref4) {
|
|
7650
8056
|
var theme = _ref4.theme,
|
|
7651
8057
|
styling = _ref4.styling;
|
|
7652
8058
|
return theme.custom.lines[styling].handleReactiveRing.stroke;
|
|
7653
8059
|
});
|
|
7654
|
-
var HandleContrastLayer = styled__default.circle(_templateObject10$
|
|
8060
|
+
var HandleContrastLayer = styled__default.circle(_templateObject10$g || (_templateObject10$g = _taggedTemplateLiteralLoose(["\n overflow: visible;\n mix-blend-mode: multiply;\n fill: none;\n stroke: ", ";\n"])), function (_ref5) {
|
|
7655
8061
|
var theme = _ref5.theme,
|
|
7656
8062
|
styling = _ref5.styling;
|
|
7657
8063
|
return theme.custom.lines[styling].handleContrastLayer.stroke;
|
|
@@ -7659,25 +8065,25 @@ var HandleContrastLayer = styled__default.circle(_templateObject10$e || (_templa
|
|
|
7659
8065
|
var HandleShadowLayer = styled__default.circle(_templateObject11$9 || (_templateObject11$9 = _taggedTemplateLiteralLoose(["\n mix-blend-mode: multiply;\n fill: url(#", ");\n"])), function (props) {
|
|
7660
8066
|
return props.fillID;
|
|
7661
8067
|
});
|
|
7662
|
-
var GrabHandleIndexGroup = styled__default.g(_templateObject12$
|
|
7663
|
-
return props.showIndex && styled.css(_templateObject13$
|
|
8068
|
+
var GrabHandleIndexGroup = styled__default.g(_templateObject12$7 || (_templateObject12$7 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n pointer-events: none;\n ", ";\n\n"])), function (props) {
|
|
8069
|
+
return props.showIndex && styled.css(_templateObject13$6 || (_templateObject13$6 = _taggedTemplateLiteralLoose(["\n opacity: 1;\n "])));
|
|
7664
8070
|
});
|
|
7665
|
-
var StopStart = styled__default.stop(_templateObject14$
|
|
8071
|
+
var StopStart = styled__default.stop(_templateObject14$4 || (_templateObject14$4 = _taggedTemplateLiteralLoose(["\n stop-color: ", ";\n"])), function (_ref6) {
|
|
7666
8072
|
var theme = _ref6.theme,
|
|
7667
8073
|
styling = _ref6.styling;
|
|
7668
8074
|
return theme.custom.lines[styling].stopStart.stopColor;
|
|
7669
8075
|
});
|
|
7670
|
-
var StopEnd = styled__default.stop(_templateObject15$
|
|
8076
|
+
var StopEnd = styled__default.stop(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteralLoose(["\n stop-color: ", ";\n"])), function (_ref7) {
|
|
7671
8077
|
var theme = _ref7.theme,
|
|
7672
8078
|
styling = _ref7.styling;
|
|
7673
8079
|
return theme.custom.lines[styling].stopEnd.stopColor;
|
|
7674
8080
|
});
|
|
7675
|
-
var GrabHandleIndexText = styled__default.text(_templateObject16$
|
|
8081
|
+
var GrabHandleIndexText = styled__default.text(_templateObject16$3 || (_templateObject16$3 = _taggedTemplateLiteralLoose(["\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n stroke: ", ";\n text-align: center;\n\n font-weight: bold;\n transition: opacity 250ms ease;\n pointer-events: none;\n\n\n"])), function (_ref8) {
|
|
7676
8082
|
var theme = _ref8.theme,
|
|
7677
8083
|
styling = _ref8.styling;
|
|
7678
8084
|
return theme.custom.lines[styling].grabHandleText.stroke;
|
|
7679
8085
|
});
|
|
7680
|
-
var IconGroup = styled__default.g(_templateObject17$
|
|
8086
|
+
var IconGroup = styled__default.g(_templateObject17$3 || (_templateObject17$3 = _taggedTemplateLiteralLoose(["\n\n"])));
|
|
7681
8087
|
|
|
7682
8088
|
var HandleUnit = function HandleUnit(props) {
|
|
7683
8089
|
var index = props.index,
|
|
@@ -7870,50 +8276,60 @@ var HandleUnit = function HandleUnit(props) {
|
|
|
7870
8276
|
}, index + pointIndexOffset))));
|
|
7871
8277
|
};
|
|
7872
8278
|
|
|
7873
|
-
var _templateObject$
|
|
7874
|
-
var ContrastLine = styled__default.line(_templateObject$
|
|
8279
|
+
var _templateObject$K, _templateObject2$I, _templateObject3$D, _templateObject4$x, _templateObject5$u, _templateObject6$q, _templateObject7$p, _templateObject8$n, _templateObject9$k, _templateObject10$h, _templateObject11$a, _templateObject12$8, _templateObject13$7, _templateObject14$5;
|
|
8280
|
+
var ContrastLine = styled__default.line(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n stroke: ", ";\n mix-blend-mode: multiply;\n stroke-width: ", "px;\n stroke-opacity: ", ";\n cursor: pointer;\n"])), function (_ref) {
|
|
7875
8281
|
var theme = _ref.theme,
|
|
7876
8282
|
styling = _ref.styling;
|
|
7877
8283
|
return theme.custom.lines[styling].contrastLine.stroke;
|
|
8284
|
+
}, function (_ref2) {
|
|
8285
|
+
var lineClickSensing = _ref2.lineClickSensing;
|
|
8286
|
+
return lineClickSensing;
|
|
8287
|
+
}, function (_ref3) {
|
|
8288
|
+
var showLineBorder = _ref3.showLineBorder;
|
|
8289
|
+
return showLineBorder ? '0.35' : '0';
|
|
7878
8290
|
});
|
|
7879
|
-
var HighlightLine = styled__default.line(_templateObject2$
|
|
7880
|
-
var theme = _ref2.theme,
|
|
7881
|
-
styling = _ref2.styling;
|
|
7882
|
-
return theme.custom.lines[styling].highlightLine.stroke;
|
|
7883
|
-
});
|
|
7884
|
-
var GrabHandle = styled__default.circle(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n fill: ", ";\n stroke: ", ";\n opacity: 1;\n transition: opacity 250ms ease;\n cursor: grab;\n\n ", ";\n"])), function (_ref3) {
|
|
7885
|
-
var theme = _ref3.theme,
|
|
7886
|
-
styling = _ref3.styling;
|
|
7887
|
-
return theme.custom.lines[styling].grabHandle.fill;
|
|
7888
|
-
}, function (_ref4) {
|
|
8291
|
+
var HighlightLine = styled__default.line(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n stroke: ", ";\n"])), function (_ref4) {
|
|
7889
8292
|
var theme = _ref4.theme,
|
|
7890
8293
|
styling = _ref4.styling;
|
|
7891
|
-
return theme.custom.lines[styling].
|
|
7892
|
-
}, function (props) {
|
|
7893
|
-
return props.hide && styled.css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0;\n "])));
|
|
8294
|
+
return theme.custom.lines[styling].highlightLineBorder.stroke;
|
|
7894
8295
|
});
|
|
7895
|
-
var
|
|
7896
|
-
return props.showIndex && styled.css(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n opacity: 1;\n "])));
|
|
7897
|
-
});
|
|
7898
|
-
var GrabHandleIndexText$1 = styled__default.text(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n text-align: center;\n fill: ", ";\n font-weight: bold;\n transition: opacity 250ms ease;\n pointer-events: none;\n"])), function (_ref5) {
|
|
8296
|
+
var GrabHandle = styled__default.circle(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n fill: ", ";\n stroke: ", ";\n opacity: 1;\n transition: opacity 250ms ease;\n cursor: grab;\n\n ", ";\n"])), function (_ref5) {
|
|
7899
8297
|
var theme = _ref5.theme,
|
|
7900
8298
|
styling = _ref5.styling;
|
|
7901
|
-
return theme.custom.lines[styling].
|
|
7902
|
-
})
|
|
7903
|
-
var LabelText$2 = styled__default.text(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n text-align: center;\n fill: ", ";\n font-weight: bold;\n transition: opacity 250ms ease;\n pointer-events: none;\n"])), function (_ref6) {
|
|
8299
|
+
return theme.custom.lines[styling].grabHandle.fill;
|
|
8300
|
+
}, function (_ref6) {
|
|
7904
8301
|
var theme = _ref6.theme,
|
|
7905
8302
|
styling = _ref6.styling;
|
|
7906
|
-
return theme.custom.lines[styling].
|
|
8303
|
+
return theme.custom.lines[styling].grabHandle.stroke;
|
|
8304
|
+
}, function (props) {
|
|
8305
|
+
return props.hide && styled.css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0;\n "])));
|
|
8306
|
+
});
|
|
8307
|
+
var GrabHandleIndexGroup$1 = styled__default.g(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n opacity: 0;\n pointer-events: none;\n ", ";\n\n"])), function (props) {
|
|
8308
|
+
return props.showIndex && styled.css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n opacity: 1;\n "])));
|
|
7907
8309
|
});
|
|
7908
|
-
var
|
|
8310
|
+
var GrabHandleIndexText$1 = styled__default.text(_templateObject7$p || (_templateObject7$p = _taggedTemplateLiteralLoose(["\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n text-align: center;\n fill: ", ";\n font-weight: bold;\n transition: opacity 250ms ease;\n pointer-events: none;\n"])), function (_ref7) {
|
|
7909
8311
|
var theme = _ref7.theme,
|
|
7910
8312
|
styling = _ref7.styling;
|
|
8313
|
+
return theme.custom.lines[styling].grabHandleText.stroke;
|
|
8314
|
+
});
|
|
8315
|
+
var LabelText$2 = styled__default.text(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n text-align: center;\n fill: ", ";\n font-weight: bold;\n transition: opacity 250ms ease;\n cursor: pointer;\n ", "\n"])), function (_ref8) {
|
|
8316
|
+
var theme = _ref8.theme,
|
|
8317
|
+
styling = _ref8.styling;
|
|
8318
|
+
return theme.custom.lines[styling].label.fill;
|
|
8319
|
+
}, function (_ref9) {
|
|
8320
|
+
var showLabelShadow = _ref9.showLabelShadow;
|
|
8321
|
+
return showLabelShadow && styled.css(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n text-shadow:\n -1px -1px 0 #000,\n 1px -1px 0 #000,\n -1px 1px 0 #000,\n 1px 1px 0 #000;\n "])));
|
|
8322
|
+
});
|
|
8323
|
+
var GrabHandleContrast = styled__default(GrabHandle)(_templateObject10$h || (_templateObject10$h = _taggedTemplateLiteralLoose(["\n fill: none;\n stroke: ", ";\n"])), function (_ref10) {
|
|
8324
|
+
var theme = _ref10.theme,
|
|
8325
|
+
styling = _ref10.styling;
|
|
7911
8326
|
return theme.custom.lines[styling].grabHandleContrast.stroke;
|
|
7912
8327
|
});
|
|
7913
|
-
var GrabHandleGroup = styled__default.g(
|
|
7914
|
-
return props.showIndex && styled.css(
|
|
8328
|
+
var GrabHandleGroup = styled__default.g(_templateObject11$a || (_templateObject11$a = _taggedTemplateLiteralLoose(["\n\n ", ", ", " {\n transition: r 250ms ease;\n }\n\n ", ";\n"])), GrabHandle, GrabHandleContrast, function (props) {
|
|
8329
|
+
return props.showIndex && styled.css(_templateObject12$8 || (_templateObject12$8 = _taggedTemplateLiteralLoose(["\n ", ", ", " {\n pointer-events: none;\n r: ", ";\n }\n "])), GrabHandle, GrabHandleContrast, props.originalRadius * 1.75);
|
|
7915
8330
|
});
|
|
7916
|
-
var DMCircle = styled__default.circle(
|
|
8331
|
+
var DMCircle = styled__default.circle(_templateObject13$7 || (_templateObject13$7 = _taggedTemplateLiteralLoose(["\n fill: hsla(203, 100%, 35%, 0.49);\n cursor: pointer;\n"])));
|
|
8332
|
+
var IconFormat = styled__default(Icon)(_templateObject14$5 || (_templateObject14$5 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
|
|
7917
8333
|
|
|
7918
8334
|
var LineUnit = function LineUnit(props) {
|
|
7919
8335
|
var x1 = props.x1,
|
|
@@ -7930,6 +8346,8 @@ var LineUnit = function LineUnit(props) {
|
|
|
7930
8346
|
styling = _props$styling === void 0 ? 'primary' : _props$styling,
|
|
7931
8347
|
_props$moveEndCB = props.moveEndCB,
|
|
7932
8348
|
moveEndCB = _props$moveEndCB === void 0 ? function () {} : _props$moveEndCB,
|
|
8349
|
+
_props$lineClickCallb = props.lineClickCallback,
|
|
8350
|
+
lineClickCallback = _props$lineClickCallb === void 0 ? function () {} : _props$lineClickCallb,
|
|
7933
8351
|
_props$showSmallDirec = props.showSmallDirectionMark,
|
|
7934
8352
|
showSmallDirectionMark = _props$showSmallDirec === void 0 ? false : _props$showSmallDirec,
|
|
7935
8353
|
_props$overrideShowMo = props.overrideShowMoveHandle,
|
|
@@ -7938,8 +8356,16 @@ var LineUnit = function LineUnit(props) {
|
|
|
7938
8356
|
revealSetIndex = options.revealSetIndex,
|
|
7939
8357
|
showMoveHandle = options.showMoveHandle,
|
|
7940
8358
|
setIndexOffset = options.setIndexOffset,
|
|
7941
|
-
showDirectionMark = options.showDirectionMark
|
|
8359
|
+
showDirectionMark = options.showDirectionMark,
|
|
8360
|
+
_options$showLabelSha = options.showLabelShadow,
|
|
8361
|
+
showLabelShadow = _options$showLabelSha === void 0 ? false : _options$showLabelSha;
|
|
8362
|
+
|
|
8363
|
+
var _useState = React.useState(),
|
|
8364
|
+
showLineBorder = _useState[0],
|
|
8365
|
+
setShowLineBorder = _useState[1];
|
|
8366
|
+
|
|
7942
8367
|
var hideGrabHandle = !showMoveHandle || !overrideShowMoveHandle;
|
|
8368
|
+
var lineClickSensing = parseInt(props.lineClickSensingBorder);
|
|
7943
8369
|
|
|
7944
8370
|
var grabTouchMove = function grabTouchMove(e) {
|
|
7945
8371
|
for (var i = 0; i < e.touches.length; i++) {
|
|
@@ -8013,26 +8439,35 @@ var LineUnit = function LineUnit(props) {
|
|
|
8013
8439
|
var getDirectionMarkLine = function getDirectionMarkLine() {
|
|
8014
8440
|
var dmCoordinate = directionMarkCoordinate();
|
|
8015
8441
|
return React__default.createElement("g", {
|
|
8016
|
-
transform: "translate(" + dmCoordinate.x + "," + dmCoordinate.y + ") rotate(" + dmCoordinate.rotate + ") scale(" + unit * 1 + ")"
|
|
8442
|
+
transform: "translate(" + dmCoordinate.x + "," + dmCoordinate.y + ") rotate(" + dmCoordinate.rotate + ") scale(" + unit * 1 + ")",
|
|
8443
|
+
style: {
|
|
8444
|
+
cursor: 'pointer'
|
|
8445
|
+
}
|
|
8017
8446
|
}, React__default.createElement("g", {
|
|
8447
|
+
onClick: function onClick() {
|
|
8448
|
+
return lineClickCallback(lineSetId);
|
|
8449
|
+
},
|
|
8018
8450
|
transform: 'translate(-3,-30) scale(0.8)'
|
|
8019
8451
|
}, React__default.createElement(DMCircle, {
|
|
8020
8452
|
r: 12,
|
|
8021
8453
|
cx: 6,
|
|
8022
8454
|
cy: 7
|
|
8023
|
-
}), React__default.createElement(
|
|
8455
|
+
}), React__default.createElement(IconFormat, {
|
|
8024
8456
|
color: 'inverse',
|
|
8025
8457
|
icon: 'Up',
|
|
8026
8458
|
size: 12,
|
|
8027
8459
|
weight: 'heavy',
|
|
8028
8460
|
forSvgUsage: true
|
|
8029
8461
|
})), showSmallDirectionMark && React__default.createElement("g", {
|
|
8462
|
+
onClick: function onClick() {
|
|
8463
|
+
return lineClickCallback(lineSetId);
|
|
8464
|
+
},
|
|
8030
8465
|
transform: 'translate(5,25) rotate(-180) scale(0.8)'
|
|
8031
8466
|
}, React__default.createElement(DMCircle, {
|
|
8032
8467
|
r: 8,
|
|
8033
8468
|
cx: 3.5,
|
|
8034
8469
|
cy: 4.5
|
|
8035
|
-
}), React__default.createElement(
|
|
8470
|
+
}), React__default.createElement(IconFormat, {
|
|
8036
8471
|
color: 'inverse',
|
|
8037
8472
|
icon: 'Up',
|
|
8038
8473
|
size: 7,
|
|
@@ -8041,17 +8476,40 @@ var LineUnit = function LineUnit(props) {
|
|
|
8041
8476
|
})), label && React__default.createElement("g", {
|
|
8042
8477
|
transform: "translate(0," + (showSmallDirectionMark ? 45 : 30) + ") rotate(" + dmCoordinate.labelRotate + ")"
|
|
8043
8478
|
}, React__default.createElement(LabelText$2, {
|
|
8044
|
-
|
|
8479
|
+
onClick: function onClick() {
|
|
8480
|
+
return lineClickCallback(lineSetId);
|
|
8481
|
+
},
|
|
8482
|
+
textAnchor: showSmallDirectionMark ? dmCoordinate.labelRotate < 0 ? 'end' : 'start' : 'middle',
|
|
8045
8483
|
dominantBaseline: 'middle',
|
|
8046
8484
|
styling: styling,
|
|
8047
8485
|
fontSize: 14 + "px",
|
|
8048
8486
|
x: 0,
|
|
8049
8487
|
y: 0,
|
|
8050
|
-
showIndex: revealSetIndex || handleFinderActive
|
|
8488
|
+
showIndex: revealSetIndex || handleFinderActive,
|
|
8489
|
+
showLabelShadow: showLabelShadow
|
|
8051
8490
|
}, label)));
|
|
8052
8491
|
};
|
|
8053
8492
|
|
|
8054
|
-
|
|
8493
|
+
var getMouseOver = React.useCallback(function () {
|
|
8494
|
+
if (props.hasClickSensingBorder) {
|
|
8495
|
+
setShowLineBorder(true);
|
|
8496
|
+
}
|
|
8497
|
+
}, [props.hasClickSensingBorder]);
|
|
8498
|
+
var getMouseOut = React.useCallback(function () {
|
|
8499
|
+
if (props.hasClickSensingBorder) {
|
|
8500
|
+
setShowLineBorder(false);
|
|
8501
|
+
}
|
|
8502
|
+
}, [props.hasClickSensingBorder]);
|
|
8503
|
+
return React__default.createElement("g", null, React__default.createElement(ContrastLine, Object.assign({
|
|
8504
|
+
onMouseOver: getMouseOver,
|
|
8505
|
+
onMouseOut: getMouseOut
|
|
8506
|
+
}, {
|
|
8507
|
+
lineClickSensing: lineClickSensing,
|
|
8508
|
+
showLineBorder: showLineBorder
|
|
8509
|
+
}, {
|
|
8510
|
+
onClick: function onClick() {
|
|
8511
|
+
return lineClickCallback(lineSetId);
|
|
8512
|
+
},
|
|
8055
8513
|
styling: styling,
|
|
8056
8514
|
strokeLinecap: 'round',
|
|
8057
8515
|
x1: x1,
|
|
@@ -8059,7 +8517,7 @@ var LineUnit = function LineUnit(props) {
|
|
|
8059
8517
|
x2: x2,
|
|
8060
8518
|
y2: y2,
|
|
8061
8519
|
strokeWidth: 4 * unit
|
|
8062
|
-
}), React__default.createElement(HighlightLine, {
|
|
8520
|
+
})), React__default.createElement(HighlightLine, {
|
|
8063
8521
|
styling: styling,
|
|
8064
8522
|
x1: x1,
|
|
8065
8523
|
y1: y1,
|
|
@@ -8101,38 +8559,50 @@ var LineUnit = function LineUnit(props) {
|
|
|
8101
8559
|
fontSize: unit * 14 + "px",
|
|
8102
8560
|
x: midpoint.x - 16 * unit,
|
|
8103
8561
|
y: midpoint.y - 15 * unit,
|
|
8104
|
-
showIndex: revealSetIndex || handleFinderActive
|
|
8562
|
+
showIndex: revealSetIndex || handleFinderActive,
|
|
8563
|
+
showLabelShadow: showLabelShadow
|
|
8105
8564
|
}, label));
|
|
8106
8565
|
};
|
|
8107
8566
|
|
|
8108
8567
|
var LineSetContext = React.createContext({});
|
|
8109
8568
|
|
|
8110
|
-
var _templateObject$
|
|
8111
|
-
var
|
|
8112
|
-
var
|
|
8113
|
-
|
|
8569
|
+
var _templateObject$L, _templateObject2$J, _templateObject3$E, _templateObject4$y;
|
|
8570
|
+
var FilledPolygon = styled__default.polygon(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n fill: ", ";\n opacity: ", ";\n"])), function (_ref) {
|
|
8571
|
+
var color = _ref.color;
|
|
8572
|
+
return color;
|
|
8573
|
+
}, function (_ref2) {
|
|
8574
|
+
var opacity = _ref2.opacity;
|
|
8575
|
+
return opacity;
|
|
8576
|
+
});
|
|
8577
|
+
var Point = styled__default.circle(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n fill: ", ";\n"])), function (_ref3) {
|
|
8578
|
+
var theme = _ref3.theme,
|
|
8579
|
+
styling = _ref3.styling;
|
|
8114
8580
|
return theme.custom.lines[styling].point.fill;
|
|
8115
8581
|
});
|
|
8116
|
-
var AreaLabelText = styled__default.text(
|
|
8117
|
-
var theme =
|
|
8118
|
-
styling =
|
|
8582
|
+
var AreaLabelText = styled__default.text(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n text-align: center;\n fill: ", ";\n font-weight: bold;\n transition: opacity 250ms ease;\n pointer-events: none;\n ", "\n"])), function (_ref4) {
|
|
8583
|
+
var theme = _ref4.theme,
|
|
8584
|
+
styling = _ref4.styling;
|
|
8119
8585
|
return theme.custom.lines[styling].label.fill;
|
|
8586
|
+
}, function (_ref5) {
|
|
8587
|
+
var showAreaLabelShadow = _ref5.showAreaLabelShadow;
|
|
8588
|
+
return showAreaLabelShadow && styled.css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n text-shadow:\n -1px -1px 0 #000,\n 1px -1px 0 #000,\n -1px 1px 0 #000,\n 1px 1px 0 #000;\n "])));
|
|
8120
8589
|
});
|
|
8121
8590
|
|
|
8122
|
-
var AreaLabel = function AreaLabel(
|
|
8591
|
+
var AreaLabel = function AreaLabel(_ref6) {
|
|
8123
8592
|
var _lineSetData$areaName;
|
|
8124
8593
|
|
|
8125
|
-
var lineSetData =
|
|
8126
|
-
unit =
|
|
8594
|
+
var lineSetData = _ref6.lineSetData,
|
|
8595
|
+
unit = _ref6.unit,
|
|
8596
|
+
showAreaLabelShadow = _ref6.showAreaLabelShadow;
|
|
8127
8597
|
var pointsLength = lineSetData.points.length;
|
|
8128
8598
|
if (pointsLength < 3) return null;
|
|
8129
8599
|
var midpoint = {
|
|
8130
8600
|
x: 0,
|
|
8131
8601
|
y: 0
|
|
8132
8602
|
};
|
|
8133
|
-
lineSetData.points.map(function (
|
|
8134
|
-
var x =
|
|
8135
|
-
y =
|
|
8603
|
+
lineSetData.points.map(function (_ref7) {
|
|
8604
|
+
var x = _ref7.x,
|
|
8605
|
+
y = _ref7.y;
|
|
8136
8606
|
midpoint.x += x;
|
|
8137
8607
|
midpoint.y += y;
|
|
8138
8608
|
return null;
|
|
@@ -8146,24 +8616,30 @@ var AreaLabel = function AreaLabel(_ref3) {
|
|
|
8146
8616
|
fontSize: unit * 14 + "px",
|
|
8147
8617
|
styling: lineSetData.styling || 'primary',
|
|
8148
8618
|
x: midpoint.x - 4 * Textlen * unit,
|
|
8149
|
-
y: midpoint.y + 6 * unit
|
|
8619
|
+
y: midpoint.y + 6 * unit,
|
|
8620
|
+
showAreaLabelShadow: showAreaLabelShadow
|
|
8150
8621
|
}, lineSetData.areaName);
|
|
8151
8622
|
};
|
|
8152
8623
|
|
|
8153
|
-
var LineSet = function LineSet(
|
|
8154
|
-
var getCTM =
|
|
8155
|
-
boundaries =
|
|
8156
|
-
unit =
|
|
8157
|
-
size =
|
|
8158
|
-
lineSetId =
|
|
8159
|
-
options =
|
|
8160
|
-
onLineMoveEnd =
|
|
8624
|
+
var LineSet = function LineSet(_ref8) {
|
|
8625
|
+
var getCTM = _ref8.getCTM,
|
|
8626
|
+
boundaries = _ref8.boundaries,
|
|
8627
|
+
unit = _ref8.unit,
|
|
8628
|
+
size = _ref8.size,
|
|
8629
|
+
lineSetId = _ref8.lineSetId,
|
|
8630
|
+
options = _ref8.options,
|
|
8631
|
+
onLineMoveEnd = _ref8.onLineMoveEnd,
|
|
8632
|
+
onLineClick = _ref8.onLineClick,
|
|
8633
|
+
lineClickSensingBorder = _ref8.lineClickSensingBorder,
|
|
8634
|
+
hasClickSensingBorder = _ref8.hasClickSensingBorder;
|
|
8161
8635
|
|
|
8162
8636
|
var _useContext = React.useContext(LineSetContext),
|
|
8163
8637
|
state = _useContext.state,
|
|
8164
8638
|
dispatch = _useContext.dispatch;
|
|
8165
8639
|
|
|
8166
8640
|
var lineSetData = state[lineSetId];
|
|
8641
|
+
var _options$showLabelSha = options.showLabelShadow,
|
|
8642
|
+
showLabelShadow = _options$showLabelSha === void 0 ? false : _options$showLabelSha;
|
|
8167
8643
|
|
|
8168
8644
|
var _useState = React.useState([]),
|
|
8169
8645
|
handleAngles = _useState[0],
|
|
@@ -8248,11 +8724,11 @@ var LineSet = function LineSet(_ref5) {
|
|
|
8248
8724
|
y: (pointerPosition.y - screenCTM.f) / screenCTM.d - handleRadius
|
|
8249
8725
|
};
|
|
8250
8726
|
var newPoints = points.map(function (_handle, index) {
|
|
8251
|
-
var
|
|
8252
|
-
|
|
8253
|
-
offsetX =
|
|
8254
|
-
|
|
8255
|
-
offsetY =
|
|
8727
|
+
var _ref9 = handleRelation.current[index] || {},
|
|
8728
|
+
_ref9$offsetX = _ref9.offsetX,
|
|
8729
|
+
offsetX = _ref9$offsetX === void 0 ? 0 : _ref9$offsetX,
|
|
8730
|
+
_ref9$offsetY = _ref9.offsetY,
|
|
8731
|
+
offsetY = _ref9$offsetY === void 0 ? 0 : _ref9$offsetY;
|
|
8256
8732
|
|
|
8257
8733
|
return enforceBoundaries({
|
|
8258
8734
|
x: Math.round(pointer.x - offsetX),
|
|
@@ -8290,9 +8766,9 @@ var LineSet = function LineSet(_ref5) {
|
|
|
8290
8766
|
updateHandleAngles(lineSetData);
|
|
8291
8767
|
}
|
|
8292
8768
|
}, [lineSetData, updateHandleAngles, handleUsesAngles]);
|
|
8293
|
-
var handles = ((lineSetData === null || lineSetData === void 0 ? void 0 : lineSetData.showPointHandle) === undefined || (lineSetData === null || lineSetData === void 0 ? void 0 : lineSetData.showPointHandle)) && lineSetData.points.map(function (
|
|
8294
|
-
var x =
|
|
8295
|
-
y =
|
|
8769
|
+
var handles = ((lineSetData === null || lineSetData === void 0 ? void 0 : lineSetData.showPointHandle) === undefined || (lineSetData === null || lineSetData === void 0 ? void 0 : lineSetData.showPointHandle)) && lineSetData.points.map(function (_ref10, index) {
|
|
8770
|
+
var x = _ref10.x,
|
|
8771
|
+
y = _ref10.y;
|
|
8296
8772
|
return React__default.createElement(HandleUnit, {
|
|
8297
8773
|
key: index + lineSetId,
|
|
8298
8774
|
lineSetId: lineSetId,
|
|
@@ -8312,9 +8788,9 @@ var LineSet = function LineSet(_ref5) {
|
|
|
8312
8788
|
readOnlyHandle: lineSetData.readOnly
|
|
8313
8789
|
});
|
|
8314
8790
|
});
|
|
8315
|
-
var points = options.showPoint && lineSetData.points.map(function (
|
|
8316
|
-
var x =
|
|
8317
|
-
y =
|
|
8791
|
+
var points = options.showPoint && lineSetData.points.map(function (_ref11, index) {
|
|
8792
|
+
var x = _ref11.x,
|
|
8793
|
+
y = _ref11.y;
|
|
8318
8794
|
return React__default.createElement(Point, {
|
|
8319
8795
|
styling: lineSetData.styling || 'primary',
|
|
8320
8796
|
key: index,
|
|
@@ -8323,9 +8799,9 @@ var LineSet = function LineSet(_ref5) {
|
|
|
8323
8799
|
cy: y
|
|
8324
8800
|
});
|
|
8325
8801
|
});
|
|
8326
|
-
var lines = lineSetData.points.map(function (
|
|
8327
|
-
var x1 =
|
|
8328
|
-
y1 =
|
|
8802
|
+
var lines = lineSetData.points.map(function (_ref12, index) {
|
|
8803
|
+
var x1 = _ref12.x,
|
|
8804
|
+
y1 = _ref12.y;
|
|
8329
8805
|
var points = lineSetData.points,
|
|
8330
8806
|
name = lineSetData.name,
|
|
8331
8807
|
_lineSetData$styling = lineSetData.styling,
|
|
@@ -8351,25 +8827,36 @@ var LineSet = function LineSet(_ref5) {
|
|
|
8351
8827
|
unit: unit,
|
|
8352
8828
|
label: name,
|
|
8353
8829
|
styling: styling,
|
|
8830
|
+
lineClickCallback: onLineClick,
|
|
8354
8831
|
lineMoveCallback: lineDragUpdate,
|
|
8355
8832
|
lineMoveStartCallback: lineDragStart,
|
|
8356
8833
|
showSmallDirectionMark: lineSetData.showSmallDirectionMark,
|
|
8357
|
-
overrideShowMoveHandle: lineSetData.showMoveHandle
|
|
8834
|
+
overrideShowMoveHandle: lineSetData.showMoveHandle,
|
|
8835
|
+
lineClickSensingBorder: lineClickSensingBorder,
|
|
8836
|
+
hasClickSensingBorder: hasClickSensingBorder
|
|
8358
8837
|
});
|
|
8359
8838
|
});
|
|
8360
|
-
|
|
8839
|
+
var polygonPoints = lineSetData.points.map(function (point) {
|
|
8840
|
+
return point.x + "," + point.y;
|
|
8841
|
+
}).join(" ");
|
|
8842
|
+
return React__default.createElement("g", null, React__default.createElement(FilledPolygon, {
|
|
8843
|
+
points: polygonPoints,
|
|
8844
|
+
color: lineSetData.areaFillColor ? lineSetData.areaFillColor : 'transparent',
|
|
8845
|
+
opacity: lineSetData.areaTransparencyLevel ? lineSetData.areaTransparencyLevel / 100 : 0
|
|
8846
|
+
}), lines, handles, points, React__default.createElement(AreaLabel, {
|
|
8361
8847
|
lineSetData: lineSetData,
|
|
8362
|
-
unit: unit
|
|
8848
|
+
unit: unit,
|
|
8849
|
+
showAreaLabelShadow: showLabelShadow
|
|
8363
8850
|
}));
|
|
8364
8851
|
};
|
|
8365
8852
|
|
|
8366
|
-
var _templateObject$
|
|
8367
|
-
var Container$
|
|
8368
|
-
var LoadingOverlay = styled__default.div(_templateObject2$
|
|
8369
|
-
var Frame = styled__default.svg(_templateObject3$
|
|
8370
|
-
return props.transculent && styled.css(_templateObject4$
|
|
8853
|
+
var _templateObject$M, _templateObject2$K, _templateObject3$F, _templateObject4$z, _templateObject5$v;
|
|
8854
|
+
var Container$w = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n position: relative;\n line-height: 0;\n user-select: none;\n touch-action: none;\n /* box-shadow: 0 10px 20px hsla(195deg, 65%, 5%, 35%); */\n /* border: 10px solid hsla(195deg, 45%, 35%, 45%); */\n /* border-radius:3px; */\n\n width: auto;\n /* transform: translateY(-70%); */\n\n"])));
|
|
8855
|
+
var LoadingOverlay = styled__default.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n position: absolute;\n top:0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
8856
|
+
var Frame = styled__default.svg(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n touch-action: none;\n user-select: none;\n margin: 0;\n\n overflow: visible;\n\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n transition: background 250ms ease;\n background: hsla(0deg, 0%, 0%, 0%);\n\n ", "\n\n"])), function (props) {
|
|
8857
|
+
return props.transculent && styled.css(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background: hsla(0deg, 0%, 0%, 35%);\n "])));
|
|
8371
8858
|
});
|
|
8372
|
-
var Image$1 = styled__default.img(_templateObject5$
|
|
8859
|
+
var Image$1 = styled__default.img(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n object-fit: contain;\n width: 100%;\n height: 100%;\n"])));
|
|
8373
8860
|
|
|
8374
8861
|
var LineUI = function LineUI(_ref) {
|
|
8375
8862
|
var src = _ref.src,
|
|
@@ -8377,12 +8864,20 @@ var LineUI = function LineUI(_ref) {
|
|
|
8377
8864
|
onSizeChange = _ref$onSizeChange === void 0 ? function () {} : _ref$onSizeChange,
|
|
8378
8865
|
_ref$onLineMoveEnd = _ref.onLineMoveEnd,
|
|
8379
8866
|
onLineMoveEnd = _ref$onLineMoveEnd === void 0 ? function () {} : _ref$onLineMoveEnd,
|
|
8867
|
+
_ref$onLineClick = _ref.onLineClick,
|
|
8868
|
+
onLineClick = _ref$onLineClick === void 0 ? function () {} : _ref$onLineClick,
|
|
8869
|
+
_ref$lineClickSensing = _ref.lineClickSensingBorder,
|
|
8870
|
+
lineClickSensingBorder = _ref$lineClickSensing === void 0 ? '65' : _ref$lineClickSensing,
|
|
8871
|
+
_ref$hasClickSensingB = _ref.hasClickSensingBorder,
|
|
8872
|
+
hasClickSensingBorder = _ref$hasClickSensingB === void 0 ? true : _ref$hasClickSensingB,
|
|
8380
8873
|
_ref$options = _ref.options;
|
|
8381
8874
|
_ref$options = _ref$options === void 0 ? {} : _ref$options;
|
|
8382
8875
|
var showHandleFinder = _ref$options.showHandleFinder,
|
|
8383
8876
|
showSetIndex = _ref$options.showSetIndex,
|
|
8384
8877
|
_ref$options$showPoin = _ref$options.showPointLabel,
|
|
8385
8878
|
showPointLabel = _ref$options$showPoin === void 0 ? false : _ref$options$showPoin,
|
|
8879
|
+
_ref$options$showLabe = _ref$options.showLabelShadow,
|
|
8880
|
+
showLabelShadow = _ref$options$showLabe === void 0 ? false : _ref$options$showLabe,
|
|
8386
8881
|
showPointHandle = _ref$options.showPointHandle,
|
|
8387
8882
|
showMoveHandle = _ref$options.showMoveHandle,
|
|
8388
8883
|
showGrabHandle = _ref$options.showGrabHandle,
|
|
@@ -8519,6 +9014,7 @@ var LineUI = function LineUI(_ref) {
|
|
|
8519
9014
|
handleFinderActive: handleFinder,
|
|
8520
9015
|
revealSetIndex: showSetIndex !== false && (showSetIndex || state.length > 1),
|
|
8521
9016
|
showPointLabel: showPointLabel,
|
|
9017
|
+
showLabelShadow: showLabelShadow,
|
|
8522
9018
|
showPointHandle: showPointHandle || showPointHandle !== false && showGrabHandle !== false,
|
|
8523
9019
|
showMoveHandle: showMoveHandle || showMoveHandle !== false && showGrabHandle !== false,
|
|
8524
9020
|
setIndexOffset: setIndexOffset,
|
|
@@ -8526,7 +9022,7 @@ var LineUI = function LineUI(_ref) {
|
|
|
8526
9022
|
showPoint: showPoint,
|
|
8527
9023
|
showDirectionMark: showDirectionMark
|
|
8528
9024
|
};
|
|
8529
|
-
return React__default.createElement(Container$
|
|
9025
|
+
return React__default.createElement(Container$w, null, React__default.createElement(Image$1, {
|
|
8530
9026
|
ref: imgRef,
|
|
8531
9027
|
onLoad: initScaleAndBounds,
|
|
8532
9028
|
src: src,
|
|
@@ -8542,8 +9038,11 @@ var LineUI = function LineUI(_ref) {
|
|
|
8542
9038
|
transculent: handleFinder
|
|
8543
9039
|
}, state.map(function (lineSet, index) {
|
|
8544
9040
|
return React__default.createElement(LineSet, {
|
|
9041
|
+
hasClickSensingBorder: hasClickSensingBorder,
|
|
9042
|
+
lineClickSensingBorder: lineClickSensingBorder,
|
|
8545
9043
|
key: index,
|
|
8546
9044
|
onLineMoveEnd: onLineMoveEnd,
|
|
9045
|
+
onLineClick: onLineClick,
|
|
8547
9046
|
lineSetId: index,
|
|
8548
9047
|
lineData: lineSet,
|
|
8549
9048
|
getCTM: calculateCTM,
|
|
@@ -8560,12 +9059,12 @@ var LineUI = function LineUI(_ref) {
|
|
|
8560
9059
|
|
|
8561
9060
|
var _excluded$u = ["loop", "autoPlay", "controls", "muted"];
|
|
8562
9061
|
|
|
8563
|
-
var _templateObject$
|
|
8564
|
-
var Container$
|
|
8565
|
-
var Video = styled__default.video(_templateObject2$
|
|
8566
|
-
var LoadingOverlay$1 = styled__default.div(_templateObject3$
|
|
8567
|
-
var Frame$1 = styled__default.svg(_templateObject4$
|
|
8568
|
-
return props.transcalent && styled.css(_templateObject5$
|
|
9062
|
+
var _templateObject$N, _templateObject2$L, _templateObject3$G, _templateObject4$A, _templateObject5$w;
|
|
9063
|
+
var Container$x = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n position: relative;\n line-height: 0;\n user-select: none;\n touch-action: none;\n /* box-shadow: 0 10px 20px hsla(195deg, 65%, 5%, 35%); */\n /* border: 10px solid hsla(195deg, 45%, 35%, 45%); */\n /* border-radius:3px; */\n\n width: auto;\n /* transform: translateY(-70%); */\n"])));
|
|
9064
|
+
var Video = styled__default.video(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n border-radius: 3px;\n background-color: hsla(0deg, 0%, 0%, 35%);\n"])));
|
|
9065
|
+
var LoadingOverlay$1 = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top:0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
9066
|
+
var Frame$1 = styled__default.svg(_templateObject4$A || (_templateObject4$A = _taggedTemplateLiteralLoose(["\n touch-action: none;\n user-select: none;\n margin: 0;\n\n overflow: visible;\n\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n transition: background 250ms ease;\n background: hsla(0deg, 0%, 0%, 0%);\n\n ", "\n\n"])), function (props) {
|
|
9067
|
+
return props.transcalent && styled.css(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose(["\n background: hsla(0deg, 0%, 0%, 35%);\n "])));
|
|
8569
9068
|
});
|
|
8570
9069
|
|
|
8571
9070
|
var LineUIVideo = function LineUIVideo(_ref) {
|
|
@@ -8574,8 +9073,14 @@ var LineUIVideo = function LineUIVideo(_ref) {
|
|
|
8574
9073
|
onSizeChange = _ref$onSizeChange === void 0 ? function () {} : _ref$onSizeChange,
|
|
8575
9074
|
_ref$onLineMoveEnd = _ref.onLineMoveEnd,
|
|
8576
9075
|
onLineMoveEnd = _ref$onLineMoveEnd === void 0 ? function () {} : _ref$onLineMoveEnd,
|
|
9076
|
+
_ref$onLineClick = _ref.onLineClick,
|
|
9077
|
+
onLineClick = _ref$onLineClick === void 0 ? function () {} : _ref$onLineClick,
|
|
8577
9078
|
_ref$onLoaded = _ref.onLoaded,
|
|
8578
9079
|
onLoaded = _ref$onLoaded === void 0 ? function () {} : _ref$onLoaded,
|
|
9080
|
+
_ref$lineClickSensing = _ref.lineClickSensingBorder,
|
|
9081
|
+
lineClickSensingBorder = _ref$lineClickSensing === void 0 ? '65' : _ref$lineClickSensing,
|
|
9082
|
+
_ref$hasClickSensingB = _ref.hasClickSensingBorder,
|
|
9083
|
+
hasClickSensingBorder = _ref$hasClickSensingB === void 0 ? true : _ref$hasClickSensingB,
|
|
8579
9084
|
_ref$videoOptions = _ref.videoOptions,
|
|
8580
9085
|
_ref$videoOptions$loo = _ref$videoOptions.loop,
|
|
8581
9086
|
loop = _ref$videoOptions$loo === void 0 ? false : _ref$videoOptions$loo,
|
|
@@ -8594,6 +9099,7 @@ var LineUIVideo = function LineUIVideo(_ref) {
|
|
|
8594
9099
|
_ref$options$showPoin = _ref$options.showPointLabel,
|
|
8595
9100
|
showPointLabel = _ref$options$showPoin === void 0 ? false : _ref$options$showPoin,
|
|
8596
9101
|
showPointHandle = _ref$options.showPointHandle,
|
|
9102
|
+
showLabelShadow = _ref$options.showLabelShadow,
|
|
8597
9103
|
showMoveHandle = _ref$options.showMoveHandle,
|
|
8598
9104
|
showGrabHandle = _ref$options.showGrabHandle,
|
|
8599
9105
|
_ref$options$setIndex = _ref$options.setIndexOffset,
|
|
@@ -8731,6 +9237,7 @@ var LineUIVideo = function LineUIVideo(_ref) {
|
|
|
8731
9237
|
handleFinderActive: handleFinder,
|
|
8732
9238
|
revealSetIndex: showSetIndex !== false && (showSetIndex || state.length > 1),
|
|
8733
9239
|
showPointLabel: showPointLabel,
|
|
9240
|
+
showLabelShadow: showLabelShadow,
|
|
8734
9241
|
showPointHandle: showPointHandle || showPointHandle !== false && showGrabHandle !== false,
|
|
8735
9242
|
showMoveHandle: showMoveHandle || showMoveHandle !== false && showGrabHandle !== false,
|
|
8736
9243
|
setIndexOffset: setIndexOffset,
|
|
@@ -8738,7 +9245,7 @@ var LineUIVideo = function LineUIVideo(_ref) {
|
|
|
8738
9245
|
showPoint: showPoint,
|
|
8739
9246
|
showDirectionMark: showDirectionMark
|
|
8740
9247
|
};
|
|
8741
|
-
return React__default.createElement(Container$
|
|
9248
|
+
return React__default.createElement(Container$x, null, React__default.createElement(Video, Object.assign({
|
|
8742
9249
|
ref: videoRef,
|
|
8743
9250
|
controls: controls,
|
|
8744
9251
|
muted: muted,
|
|
@@ -8763,7 +9270,10 @@ var LineUIVideo = function LineUIVideo(_ref) {
|
|
|
8763
9270
|
}, state.map(function (lineSet, index) {
|
|
8764
9271
|
return React__default.createElement(LineSet, {
|
|
8765
9272
|
key: index,
|
|
9273
|
+
hasClickSensingBorder: hasClickSensingBorder,
|
|
9274
|
+
lineClickSensingBorder: lineClickSensingBorder,
|
|
8766
9275
|
onLineMoveEnd: onLineMoveEnd,
|
|
9276
|
+
onLineClick: onLineClick,
|
|
8767
9277
|
lineSetId: index,
|
|
8768
9278
|
lineData: lineSet,
|
|
8769
9279
|
getCTM: calculateCTM,
|
|
@@ -8793,8 +9303,8 @@ function _catch(body, recover) {
|
|
|
8793
9303
|
|
|
8794
9304
|
var _excluded$v = ["id", "enabled", "peerAddress", "maxConnectionAttempts", "rtcConfiguration", "setStatus", "setError", "autoPlay", "muted"];
|
|
8795
9305
|
|
|
8796
|
-
var _templateObject$
|
|
8797
|
-
var Video$1 = styled__default.video(_templateObject$
|
|
9306
|
+
var _templateObject$O;
|
|
9307
|
+
var Video$1 = styled__default.video(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n /* width: 800px; */\n"])));
|
|
8798
9308
|
|
|
8799
9309
|
var WebRTCPlayer = function WebRTCPlayer(_ref) {
|
|
8800
9310
|
var _ref$id = _ref.id,
|
|
@@ -9118,12 +9628,12 @@ function getPeerId(id) {
|
|
|
9118
9628
|
return 'WRP_' + id + '_' + Math.floor(Math.random() * (9000 - 10) + 10).toString();
|
|
9119
9629
|
}
|
|
9120
9630
|
|
|
9121
|
-
var _templateObject$
|
|
9122
|
-
var Container$
|
|
9123
|
-
var Video$2 = styled__default(WebRTCPlayer)(_templateObject2$
|
|
9124
|
-
var LoadingOverlay$2 = styled__default.div(_templateObject3$
|
|
9125
|
-
var Frame$2 = styled__default.svg(_templateObject4$
|
|
9126
|
-
return props.transcalent && styled.css(_templateObject5$
|
|
9631
|
+
var _templateObject$P, _templateObject2$M, _templateObject3$H, _templateObject4$B, _templateObject5$x;
|
|
9632
|
+
var Container$y = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n position: relative;\n line-height: 0;\n user-select: none;\n touch-action: none;\n /* box-shadow: 0 10px 20px hsla(195deg, 65%, 5%, 35%); */\n /* border: 10px solid hsla(195deg, 45%, 35%, 45%); */\n /* border-radius:3px; */\n\n width: auto;\n /* transform: translateY(-70%); */\n"])));
|
|
9633
|
+
var Video$2 = styled__default(WebRTCPlayer)(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n border-radius: 3px;\n background-color: hsla(0deg, 0%, 0%, 35%);\n"])));
|
|
9634
|
+
var LoadingOverlay$2 = styled__default.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n position: absolute;\n top:0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
9635
|
+
var Frame$2 = styled__default.svg(_templateObject4$B || (_templateObject4$B = _taggedTemplateLiteralLoose(["\n touch-action: none;\n user-select: none;\n margin: 0;\n\n overflow: visible;\n\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n transition: background 250ms ease;\n background: hsla(0deg, 0%, 0%, 0%);\n\n ", "\n\n"])), function (props) {
|
|
9636
|
+
return props.transcalent && styled.css(_templateObject5$x || (_templateObject5$x = _taggedTemplateLiteralLoose(["\n background: hsla(0deg, 0%, 0%, 35%);\n "])));
|
|
9127
9637
|
});
|
|
9128
9638
|
|
|
9129
9639
|
var LineUI$1 = function LineUI(_ref) {
|
|
@@ -9132,8 +9642,14 @@ var LineUI$1 = function LineUI(_ref) {
|
|
|
9132
9642
|
onSizeChange = _ref$onSizeChange === void 0 ? function () {} : _ref$onSizeChange,
|
|
9133
9643
|
_ref$onLineMoveEnd = _ref.onLineMoveEnd,
|
|
9134
9644
|
onLineMoveEnd = _ref$onLineMoveEnd === void 0 ? function () {} : _ref$onLineMoveEnd,
|
|
9645
|
+
_ref$onLineClick = _ref.onLineClick,
|
|
9646
|
+
onLineClick = _ref$onLineClick === void 0 ? function () {} : _ref$onLineClick,
|
|
9135
9647
|
_ref$onLoaded = _ref.onLoaded,
|
|
9136
9648
|
onLoaded = _ref$onLoaded === void 0 ? function () {} : _ref$onLoaded,
|
|
9649
|
+
_ref$lineClickSensing = _ref.lineClickSensingBorder,
|
|
9650
|
+
lineClickSensingBorder = _ref$lineClickSensing === void 0 ? '65' : _ref$lineClickSensing,
|
|
9651
|
+
_ref$hasClickSensingB = _ref.hasClickSensingBorder,
|
|
9652
|
+
hasClickSensingBorder = _ref$hasClickSensingB === void 0 ? true : _ref$hasClickSensingB,
|
|
9137
9653
|
videoOptions = _ref.videoOptions,
|
|
9138
9654
|
_ref$options = _ref.options;
|
|
9139
9655
|
_ref$options = _ref$options === void 0 ? {} : _ref$options;
|
|
@@ -9141,6 +9657,8 @@ var LineUI$1 = function LineUI(_ref) {
|
|
|
9141
9657
|
showSetIndex = _ref$options.showSetIndex,
|
|
9142
9658
|
_ref$options$showPoin = _ref$options.showPointLabel,
|
|
9143
9659
|
showPointLabel = _ref$options$showPoin === void 0 ? false : _ref$options$showPoin,
|
|
9660
|
+
_ref$options$showLabe = _ref$options.showLabelShadow,
|
|
9661
|
+
showLabelShadow = _ref$options$showLabe === void 0 ? false : _ref$options$showLabe,
|
|
9144
9662
|
showPointHandle = _ref$options.showPointHandle,
|
|
9145
9663
|
showMoveHandle = _ref$options.showMoveHandle,
|
|
9146
9664
|
showGrabHandle = _ref$options.showGrabHandle,
|
|
@@ -9280,6 +9798,7 @@ var LineUI$1 = function LineUI(_ref) {
|
|
|
9280
9798
|
handleFinderActive: handleFinder,
|
|
9281
9799
|
revealSetIndex: showSetIndex !== false && (showSetIndex || state.length > 1),
|
|
9282
9800
|
showPointLabel: showPointLabel,
|
|
9801
|
+
showLabelShadow: showLabelShadow,
|
|
9283
9802
|
showPointHandle: showPointHandle || showPointHandle !== false && showGrabHandle !== false,
|
|
9284
9803
|
showMoveHandle: showMoveHandle || showMoveHandle !== false && showGrabHandle !== false,
|
|
9285
9804
|
setIndexOffset: setIndexOffset,
|
|
@@ -9287,7 +9806,7 @@ var LineUI$1 = function LineUI(_ref) {
|
|
|
9287
9806
|
showPoint: showPoint,
|
|
9288
9807
|
showDirectionMark: showDirectionMark
|
|
9289
9808
|
};
|
|
9290
|
-
return React__default.createElement(Container$
|
|
9809
|
+
return React__default.createElement(Container$y, null, React__default.createElement(Video$2, Object.assign({
|
|
9291
9810
|
onLoadedMetadata: onLoadedMetadata,
|
|
9292
9811
|
peerAddress: ws,
|
|
9293
9812
|
id: '1'
|
|
@@ -9308,7 +9827,10 @@ var LineUI$1 = function LineUI(_ref) {
|
|
|
9308
9827
|
}, state.map(function (lineSet, index) {
|
|
9309
9828
|
return React__default.createElement(LineSet, {
|
|
9310
9829
|
key: index,
|
|
9830
|
+
hasClickSensingBorder: hasClickSensingBorder,
|
|
9831
|
+
lineClickSensingBorder: lineClickSensingBorder,
|
|
9311
9832
|
onLineMoveEnd: onLineMoveEnd,
|
|
9833
|
+
onLineClick: onLineClick,
|
|
9312
9834
|
lineSetId: index,
|
|
9313
9835
|
lineData: lineSet,
|
|
9314
9836
|
getCTM: calculateCTM,
|
|
@@ -9425,6 +9947,32 @@ var LineReducer = (function (state, action) {
|
|
|
9425
9947
|
return newState;
|
|
9426
9948
|
}
|
|
9427
9949
|
|
|
9950
|
+
case "UPDATE_FILL_COLOR":
|
|
9951
|
+
{
|
|
9952
|
+
var _update6;
|
|
9953
|
+
|
|
9954
|
+
var _set2 = _extends({}, state[action.index], {
|
|
9955
|
+
areaFillColor: action.data.areaFillColor
|
|
9956
|
+
});
|
|
9957
|
+
|
|
9958
|
+
return update(state, (_update6 = {}, _update6[action.index] = {
|
|
9959
|
+
$set: _set2
|
|
9960
|
+
}, _update6));
|
|
9961
|
+
}
|
|
9962
|
+
|
|
9963
|
+
case "UPDATE_TRANSPARENCY_LEVEL":
|
|
9964
|
+
{
|
|
9965
|
+
var _update7;
|
|
9966
|
+
|
|
9967
|
+
var _set3 = _extends({}, state[action.index], {
|
|
9968
|
+
areaTransparencyLevel: action.data.areaTransparencyLevel
|
|
9969
|
+
});
|
|
9970
|
+
|
|
9971
|
+
return update(state, (_update7 = {}, _update7[action.index] = {
|
|
9972
|
+
$set: _set3
|
|
9973
|
+
}, _update7));
|
|
9974
|
+
}
|
|
9975
|
+
|
|
9428
9976
|
default:
|
|
9429
9977
|
console.error("Action " + action['type'] + " not registered.");
|
|
9430
9978
|
return state;
|
|
@@ -9465,19 +10013,19 @@ var makeTitle = function makeTitle(parts, delimiter) {
|
|
|
9465
10013
|
return title;
|
|
9466
10014
|
};
|
|
9467
10015
|
|
|
9468
|
-
var _templateObject$
|
|
9469
|
-
var Container$
|
|
9470
|
-
var IconContainer$1 = styled__default.div(_templateObject2$
|
|
9471
|
-
var Title$3 = styled__default.h1(_templateObject3$
|
|
10016
|
+
var _templateObject$Q, _templateObject2$N, _templateObject3$I, _templateObject4$C, _templateObject5$y, _templateObject6$r, _templateObject7$q, _templateObject8$o;
|
|
10017
|
+
var Container$z = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
10018
|
+
var IconContainer$1 = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: -45px;\n bottom: 0;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n display: block;\n }\n"])));
|
|
10019
|
+
var Title$3 = styled__default.h1(_templateObject3$I || (_templateObject3$I = _taggedTemplateLiteralLoose(["\n ", "\n margin: 0 0 20px;\n"])), function (_ref) {
|
|
9472
10020
|
var theme = _ref.theme;
|
|
9473
|
-
return styled.css(_templateObject4$
|
|
10021
|
+
return styled.css(_templateObject4$C || (_templateObject4$C = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.pageHeader.mainTitle);
|
|
9474
10022
|
});
|
|
9475
|
-
var AreaTitleCss = styled.css(_templateObject5$
|
|
10023
|
+
var AreaTitleCss = styled.css(_templateObject5$y || (_templateObject5$y = _taggedTemplateLiteralLoose(["\n ", "\n margin: 0;\n position: absolute;\n top: -18px;\n"])), function (_ref2) {
|
|
9476
10024
|
var theme = _ref2.theme;
|
|
9477
|
-
return styled.css(_templateObject6$
|
|
10025
|
+
return styled.css(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.pageHeader.areaTitle);
|
|
9478
10026
|
});
|
|
9479
|
-
var AreaTitle = styled__default.div(_templateObject7$
|
|
9480
|
-
var AreaLinkTitle = styled__default(reactRouterDom.Link)(_templateObject8$
|
|
10027
|
+
var AreaTitle = styled__default.div(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n ", "\n"])), AreaTitleCss);
|
|
10028
|
+
var AreaLinkTitle = styled__default(reactRouterDom.Link)(_templateObject8$o || (_templateObject8$o = _taggedTemplateLiteralLoose(["\n ", "\n &:hover {\n text-decoration: underline;\n }\n"])), AreaTitleCss);
|
|
9481
10029
|
|
|
9482
10030
|
var PageTitle = function PageTitle(_ref3) {
|
|
9483
10031
|
var title = _ref3.title,
|
|
@@ -9489,7 +10037,7 @@ var PageTitle = function PageTitle(_ref3) {
|
|
|
9489
10037
|
_ref3$hideAreaInDocTi = _ref3.hideAreaInDocTitle,
|
|
9490
10038
|
hideAreaInDocTitle = _ref3$hideAreaInDocTi === void 0 ? false : _ref3$hideAreaInDocTi;
|
|
9491
10039
|
useTitle(title, hideAreaInDocTitle ? undefined : areaTitle || '', undefined, updateDocTitle);
|
|
9492
|
-
return React__default.createElement(Container$
|
|
10040
|
+
return React__default.createElement(Container$z, null, areaTitle && areaHref ? React__default.createElement(AreaLinkTitle, {
|
|
9493
10041
|
to: areaHref
|
|
9494
10042
|
}, areaTitle) : areaTitle && React__default.createElement(AreaTitle, null, areaTitle), React__default.createElement(Title$3, null, title), icon ? React__default.createElement(IconContainer$1, null, React__default.createElement(Icon, Object.assign({
|
|
9495
10043
|
size: 24,
|
|
@@ -9499,19 +10047,19 @@ var PageTitle = function PageTitle(_ref3) {
|
|
|
9499
10047
|
}))) : null);
|
|
9500
10048
|
};
|
|
9501
10049
|
|
|
9502
|
-
var _templateObject$
|
|
9503
|
-
var Container$
|
|
10050
|
+
var _templateObject$R, _templateObject2$O;
|
|
10051
|
+
var Container$A = styled__default.p(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
9504
10052
|
var theme = _ref.theme;
|
|
9505
|
-
return styled.css(_templateObject2$
|
|
10053
|
+
return styled.css(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.pageHeader.introduction);
|
|
9506
10054
|
});
|
|
9507
10055
|
|
|
9508
10056
|
var IntroductionText = function IntroductionText(_ref2) {
|
|
9509
10057
|
var children = _ref2.children;
|
|
9510
|
-
return React__default.createElement(Container$
|
|
10058
|
+
return React__default.createElement(Container$A, null, children);
|
|
9511
10059
|
};
|
|
9512
10060
|
|
|
9513
|
-
var _templateObject$
|
|
9514
|
-
var Container$
|
|
10061
|
+
var _templateObject$S;
|
|
10062
|
+
var Container$B = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose([""])));
|
|
9515
10063
|
|
|
9516
10064
|
var PageHeader = function PageHeader(_ref) {
|
|
9517
10065
|
var title = _ref.title,
|
|
@@ -9522,7 +10070,7 @@ var PageHeader = function PageHeader(_ref) {
|
|
|
9522
10070
|
_ref$updateDocTitle = _ref.updateDocTitle,
|
|
9523
10071
|
updateDocTitle = _ref$updateDocTitle === void 0 ? true : _ref$updateDocTitle,
|
|
9524
10072
|
hideAreaInDocTitle = _ref.hideAreaInDocTitle;
|
|
9525
|
-
return React__default.createElement(Container$
|
|
10073
|
+
return React__default.createElement(Container$B, null, React__default.createElement(PageTitle, Object.assign({}, {
|
|
9526
10074
|
title: title,
|
|
9527
10075
|
icon: icon,
|
|
9528
10076
|
areaHref: areaHref,
|
|
@@ -9532,22 +10080,56 @@ var PageHeader = function PageHeader(_ref) {
|
|
|
9532
10080
|
})), introductionText ? React__default.createElement(IntroductionText, null, introductionText) : null);
|
|
9533
10081
|
};
|
|
9534
10082
|
|
|
9535
|
-
var _templateObject$
|
|
9536
|
-
var Container$
|
|
10083
|
+
var _templateObject$T;
|
|
10084
|
+
var Container$C = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
9537
10085
|
|
|
9538
10086
|
var MultilineContent = function MultilineContent(_ref) {
|
|
9539
10087
|
var contentArray = _ref.contentArray;
|
|
9540
|
-
return React__default.createElement(Container$
|
|
10088
|
+
return React__default.createElement(Container$C, null, contentArray.map(function (element, index) {
|
|
9541
10089
|
return React__default.createElement("div", {
|
|
9542
10090
|
key: "element-" + index
|
|
9543
10091
|
}, element);
|
|
9544
10092
|
}));
|
|
9545
10093
|
};
|
|
9546
10094
|
|
|
10095
|
+
var _path, _path2;
|
|
10096
|
+
|
|
10097
|
+
function _extends$1() {
|
|
10098
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
10099
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10100
|
+
var source = arguments[i];
|
|
10101
|
+
|
|
10102
|
+
for (var key in source) {
|
|
10103
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10104
|
+
target[key] = source[key];
|
|
10105
|
+
}
|
|
10106
|
+
}
|
|
10107
|
+
}
|
|
10108
|
+
|
|
10109
|
+
return target;
|
|
10110
|
+
};
|
|
10111
|
+
return _extends$1.apply(this, arguments);
|
|
10112
|
+
}
|
|
10113
|
+
|
|
10114
|
+
function SvgNoImageBig(props) {
|
|
10115
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
10116
|
+
width: 610,
|
|
10117
|
+
height: 446,
|
|
10118
|
+
fill: "none",
|
|
10119
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10120
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
10121
|
+
fill: "#DDD",
|
|
10122
|
+
d: "M0 0h609.91v446H0z"
|
|
10123
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
10124
|
+
d: "M242.675 210.273V235h-3.429l-12.569-18.135h-.23V235h-3.73v-24.727h3.453l12.581 18.159h.229v-18.159h3.695zm26.921 12.363c0 2.641-.483 4.91-1.448 6.81-.966 1.892-2.29 3.349-3.973 4.371-1.674 1.014-3.578 1.521-5.711 1.521-2.141 0-4.052-.507-5.735-1.521-1.674-1.022-2.994-2.483-3.96-4.383-.966-1.9-1.449-4.166-1.449-6.798 0-2.64.483-4.906 1.449-6.797.966-1.9 2.286-3.357 3.96-4.371 1.683-1.022 3.594-1.533 5.735-1.533 2.133 0 4.037.511 5.711 1.533 1.683 1.014 3.007 2.471 3.973 4.371.965 1.891 1.448 4.157 1.448 6.797zm-3.694 0c0-2.012-.326-3.706-.978-5.083-.644-1.384-1.53-2.431-2.656-3.139-1.119-.716-2.387-1.075-3.804-1.075-1.424 0-2.696.359-3.815 1.075-1.119.708-2.004 1.755-2.656 3.139-.644 1.377-.966 3.071-.966 5.083 0 2.013.322 3.711.966 5.096.652 1.376 1.537 2.422 2.656 3.139 1.119.708 2.391 1.062 3.815 1.062 1.417 0 2.685-.354 3.804-1.062 1.126-.717 2.012-1.763 2.656-3.139.652-1.385.978-3.083.978-5.096zm21.075-12.363V235h-3.731v-24.727h3.731zm5.433 0h4.528l7.872 19.221h.29l7.872-19.221h4.527V235h-3.549v-17.893h-.23l-7.292 17.857h-2.946l-7.293-17.87h-.229V235h-3.55v-24.727zM325.012 235h-3.96l8.899-24.727h4.31L343.159 235h-3.96l-6.991-20.236h-.193L325.012 235zm.664-9.683h12.847v3.139h-12.847v-3.139zm36.627-7.232a7.585 7.585 0 00-.942-1.969 6.038 6.038 0 00-1.389-1.497 5.856 5.856 0 00-1.847-.954 7.439 7.439 0 00-2.258-.326c-1.392 0-2.648.359-3.767 1.075-1.119.716-2.004 1.767-2.656 3.151-.644 1.377-.966 3.063-.966 5.059 0 2.005.326 3.699.978 5.083.652 1.385 1.545 2.435 2.68 3.152 1.135.716 2.427 1.074 3.876 1.074 1.344 0 2.515-.273 3.514-.821a5.723 5.723 0 002.33-2.318c.555-1.006.833-2.189.833-3.55l.966.181h-7.075v-3.078h9.719v2.813c0 2.077-.443 3.88-1.328 5.409a9.043 9.043 0 01-3.646 3.525c-1.546.83-3.317 1.244-5.313 1.244-2.238 0-4.202-.515-5.892-1.545-1.682-1.031-2.994-2.492-3.936-4.383-.942-1.9-1.413-4.154-1.413-6.762 0-1.972.274-3.742.821-5.312.548-1.57 1.316-2.902 2.306-3.997a10.094 10.094 0 013.514-2.523c1.352-.588 2.829-.881 4.431-.881 1.336 0 2.58.197 3.731.591a10.07 10.07 0 013.091 1.679 9.51 9.51 0 012.258 2.583c.595.99.998 2.089 1.207 3.297h-3.827zM371.035 235v-24.727h15.503v3.211h-11.772v7.534h10.963v3.2h-10.963v7.57h11.917V235h-15.648z",
|
|
10125
|
+
fill: "#656565"
|
|
10126
|
+
})));
|
|
10127
|
+
}
|
|
10128
|
+
|
|
9547
10129
|
var _excluded$x = ["loop", "autoPlay", "controls", "muted"];
|
|
9548
10130
|
|
|
9549
|
-
var _templateObject$
|
|
9550
|
-
var MediaBoxWrapper = styled__default.div(_templateObject$
|
|
10131
|
+
var _templateObject$U, _templateObject2$P, _templateObject3$J, _templateObject4$D, _templateObject5$z, _templateObject6$s, _templateObject7$r, _templateObject8$p;
|
|
10132
|
+
var MediaBoxWrapper = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n position: relative;\n line-height: 0;\n ", ";\n ", ";\n"])), function (_ref) {
|
|
9551
10133
|
var minHeight = _ref.minHeight;
|
|
9552
10134
|
return minHeight && "min-height: " + minHeight;
|
|
9553
10135
|
}, function (_ref2) {
|
|
@@ -9555,18 +10137,18 @@ var MediaBoxWrapper = styled__default.div(_templateObject$T || (_templateObject$
|
|
|
9555
10137
|
return minWidth && "min-width: " + minWidth;
|
|
9556
10138
|
});
|
|
9557
10139
|
var mediaStyle = "\n max-width: 100%;\n max-height: 100%;\n border-radius: 3px;\n background-color: hsla(0deg, 0%, 0%, 35%);\n";
|
|
9558
|
-
var LoadingOverlay$3 = styled__default.div(_templateObject2$
|
|
9559
|
-
var Video$3 = styled__default.video(_templateObject3$
|
|
10140
|
+
var LoadingOverlay$3 = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n top:0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
10141
|
+
var Video$3 = styled__default.video(_templateObject3$J || (_templateObject3$J = _taggedTemplateLiteralLoose(["\n ", ";\n outline: none;\n\n ", ";\n"])), mediaStyle, function (_ref3) {
|
|
9560
10142
|
var theme = _ref3.theme,
|
|
9561
10143
|
isLoaded = _ref3.isLoaded,
|
|
9562
10144
|
hasModalLimits = _ref3.hasModalLimits;
|
|
9563
|
-
return styled.css(_templateObject4$
|
|
10145
|
+
return styled.css(_templateObject4$D || (_templateObject4$D = _taggedTemplateLiteralLoose(["\n transition: opacity ", " ", ";\n opacity: ", ";\n\n ", ";\n "])), theme.animation.speed.slow, theme.animation.easing.primary.easeOut, isLoaded ? "1" : "0", hasModalLimits && styled.css(_templateObject5$z || (_templateObject5$z = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 100px);\n max-width: calc(100vw - 100px);\n "]))));
|
|
9564
10146
|
});
|
|
9565
|
-
var StyledImage = styled__default.img(_templateObject6$
|
|
10147
|
+
var StyledImage = styled__default.img(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose(["\n ", ";\n\n ", ";\n"])), mediaStyle, function (_ref4) {
|
|
9566
10148
|
var theme = _ref4.theme,
|
|
9567
10149
|
isLoaded = _ref4.isLoaded,
|
|
9568
10150
|
hasModalLimits = _ref4.hasModalLimits;
|
|
9569
|
-
return styled.css(_templateObject7$
|
|
10151
|
+
return styled.css(_templateObject7$r || (_templateObject7$r = _taggedTemplateLiteralLoose(["\n transition: opacity ", " ", ";\n opacity: ", ";\n\n ", ";\n "])), theme.animation.speed.slow, theme.animation.easing.primary.easeOut, isLoaded ? "1" : "0", hasModalLimits && styled.css(_templateObject8$p || (_templateObject8$p = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 100px);\n max-width: calc(100vw - 100px);\n "]))));
|
|
9570
10152
|
});
|
|
9571
10153
|
|
|
9572
10154
|
var MediaBox = function MediaBox(_ref5) {
|
|
@@ -9636,7 +10218,6 @@ var MediaBox = function MediaBox(_ref5) {
|
|
|
9636
10218
|
minWidth: minWidth,
|
|
9637
10219
|
minHeight: minHeight
|
|
9638
10220
|
}), mediaType === 'video' ? React__default.createElement(Video$3, Object.assign({}, {
|
|
9639
|
-
src: src,
|
|
9640
10221
|
loop: loop,
|
|
9641
10222
|
autoPlay: autoPlay,
|
|
9642
10223
|
controls: controls,
|
|
@@ -9644,30 +10225,28 @@ var MediaBox = function MediaBox(_ref5) {
|
|
|
9644
10225
|
onError: onError,
|
|
9645
10226
|
hasModalLimits: hasModalLimits
|
|
9646
10227
|
}, videoValues, {
|
|
10228
|
+
src: loadFailed ? '' : src,
|
|
9647
10229
|
isLoaded: loaded && !loadFailed,
|
|
9648
10230
|
preload: 'metadata',
|
|
9649
10231
|
onCanPlayThrough: handleLoad
|
|
9650
10232
|
})) : React__default.createElement(StyledImage, Object.assign({}, {
|
|
9651
|
-
src: src,
|
|
9652
10233
|
alt: alt,
|
|
9653
10234
|
onError: onError,
|
|
9654
10235
|
hasModalLimits: hasModalLimits
|
|
9655
10236
|
}, {
|
|
10237
|
+
src: loadFailed ? '' : src,
|
|
9656
10238
|
onLoad: handleLoad,
|
|
9657
10239
|
isLoaded: loaded && !loadFailed
|
|
9658
10240
|
})), !loaded && React__default.createElement(LoadingOverlay$3, null, React__default.createElement(Spinner, {
|
|
9659
10241
|
size: 'large',
|
|
9660
10242
|
styling: 'primary'
|
|
9661
|
-
})), loadFailed && React__default.createElement(
|
|
9662
|
-
icon: 'MissingImage',
|
|
9663
|
-
size: 48
|
|
9664
|
-
})));
|
|
10243
|
+
})), loadFailed && React__default.createElement(SvgNoImageBig, null));
|
|
9665
10244
|
};
|
|
9666
10245
|
|
|
9667
|
-
var _templateObject$
|
|
9668
|
-
var Container$
|
|
10246
|
+
var _templateObject$V, _templateObject2$Q, _templateObject3$K, _templateObject4$E, _templateObject5$A, _templateObject6$t, _templateObject7$s;
|
|
10247
|
+
var Container$D = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(202, 33%, 95%, 0.51);\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n z-index: 999;\n ", "\n\n font-family: ", ";\n ", ";\n"])), function (_ref) {
|
|
9669
10248
|
var theme = _ref.theme;
|
|
9670
|
-
return theme && styled.css(_templateObject2$
|
|
10249
|
+
return theme && styled.css(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose([""])));
|
|
9671
10250
|
}, function (_ref2) {
|
|
9672
10251
|
var theme = _ref2.theme;
|
|
9673
10252
|
return theme.fontFamily.ui;
|
|
@@ -9675,19 +10254,19 @@ var Container$C = styled__default.div(_templateObject$U || (_templateObject$U =
|
|
|
9675
10254
|
var theme = _ref3.theme;
|
|
9676
10255
|
return theme.styles.modal.overlay;
|
|
9677
10256
|
});
|
|
9678
|
-
var CloseIcon = styled__default(Icon)(_templateObject3$
|
|
9679
|
-
var CloseButton = styled__default.button(_templateObject4$
|
|
10257
|
+
var CloseIcon = styled__default(Icon)(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose([""])));
|
|
10258
|
+
var CloseButton = styled__default.button(_templateObject4$E || (_templateObject4$E = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n right: 0;\n top: -30px;\n color: ", ";\n font-size: 14px;\n font-weight: 500;\n\n ", " {\n display: flex;\n margin-left: 12px;\n }\n ", "\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n opacity: .9;\n }\n &:disabled {\n opacity: 0.1;\n }\n"])), resetButtonStyles, function (_ref4) {
|
|
9680
10259
|
var theme = _ref4.theme;
|
|
9681
10260
|
return theme.colors.icons.mono;
|
|
9682
10261
|
}, IconWrapper, function (_ref5) {
|
|
9683
10262
|
var _ref5$selected = _ref5.selected,
|
|
9684
10263
|
selected = _ref5$selected === void 0 ? false : _ref5$selected;
|
|
9685
|
-
return selected && styled.css(_templateObject5$
|
|
10264
|
+
return selected && styled.css(_templateObject5$A || (_templateObject5$A = _taggedTemplateLiteralLoose(["\n border-bottom: 5px solid hsl(207, 80%, 64%);\n "])));
|
|
9686
10265
|
}, function (_ref6) {
|
|
9687
10266
|
var theme = _ref6.theme;
|
|
9688
|
-
return theme && styled.css(_templateObject6$
|
|
10267
|
+
return theme && styled.css(_templateObject6$t || (_templateObject6$t = _taggedTemplateLiteralLoose(["\n opacity: .8;\n transition: transform ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.inOut);
|
|
9689
10268
|
});
|
|
9690
|
-
var LightBox = styled__default.div(_templateObject7$
|
|
10269
|
+
var LightBox = styled__default.div(_templateObject7$s || (_templateObject7$s = _taggedTemplateLiteralLoose(["\n position: relative;\n margin: 27px 0 0;\n z-index: 9999;\n width: ", ";\n padding: ", ";\n border-radius: 5px;\n ", ";\n"])), function (_ref7) {
|
|
9691
10270
|
var width = _ref7.width;
|
|
9692
10271
|
return width ? width : "580px";
|
|
9693
10272
|
}, function (_ref8) {
|
|
@@ -9732,7 +10311,7 @@ var Modal = function Modal(_ref10) {
|
|
|
9732
10311
|
|
|
9733
10312
|
onDismiss();
|
|
9734
10313
|
}, [onDismiss, dismissCallback]);
|
|
9735
|
-
return isOpen ? ReactDom.createPortal(React__default.createElement(Container$
|
|
10314
|
+
return isOpen ? ReactDom.createPortal(React__default.createElement(Container$D, null, React__default.createElement(LightBox, {
|
|
9736
10315
|
ref: lightBoxRef,
|
|
9737
10316
|
width: width,
|
|
9738
10317
|
padding: padding
|
|
@@ -9847,9 +10426,8 @@ var useMediaModal = function useMediaModal() {
|
|
|
9847
10426
|
|
|
9848
10427
|
videoElement.onerror = reject;
|
|
9849
10428
|
})).then(function () {});
|
|
9850
|
-
}, function (
|
|
10429
|
+
}, function () {
|
|
9851
10430
|
isValid = false;
|
|
9852
|
-
console.log("[useMediaModal - isMediaUrlValid] Invalid preview url " + src + " - video load failed, modal will not be open", error);
|
|
9853
10431
|
});
|
|
9854
10432
|
|
|
9855
10433
|
if (_temp6 && _temp6.then) return _temp6.then(function () {});
|
|
@@ -9876,9 +10454,8 @@ var useMediaModal = function useMediaModal() {
|
|
|
9876
10454
|
|
|
9877
10455
|
img.onerror = reject;
|
|
9878
10456
|
})).then(function () {});
|
|
9879
|
-
}, function (
|
|
10457
|
+
}, function () {
|
|
9880
10458
|
isValid = false;
|
|
9881
|
-
console.log("[useMediaModal - isMediaUrlValid] Invalid preview url " + src + " - image load failed, modal will not be open", error);
|
|
9882
10459
|
});
|
|
9883
10460
|
|
|
9884
10461
|
if (_temp9 && _temp9.then) return _temp9.then(function () {});
|
|
@@ -9948,38 +10525,34 @@ var useMediaModal = function useMediaModal() {
|
|
|
9948
10525
|
};
|
|
9949
10526
|
};
|
|
9950
10527
|
|
|
9951
|
-
var _templateObject$
|
|
9952
|
-
var Container$
|
|
10528
|
+
var _templateObject$W, _templateObject2$R, _templateObject3$L, _templateObject4$F, _templateObject5$B, _templateObject6$u, _templateObject7$t;
|
|
10529
|
+
var Container$E = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n position: relative;\n height: inherit;\n background: grey;\n border-radius: 3px;\n overflow: hidden;\n width: 55px;\n height: auto;\n opacity: 0.65;\n margin-right: 10px;\n\n &::after {\n content: '';\n display: block;\n padding-bottom: 75%;\n ", "\n }\n\n ", "\n\n &:hover {\n cursor: pointer;\n\n ", "\n }\n\n"])), function (_ref) {
|
|
9953
10530
|
var aspect = _ref.aspect;
|
|
9954
|
-
return aspect === '16:9' && styled.css(_templateObject2$
|
|
10531
|
+
return aspect === '16:9' && styled.css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n padding-left: 56.25%;\n "])));
|
|
9955
10532
|
}, function (_ref2) {
|
|
9956
10533
|
var theme = _ref2.theme;
|
|
9957
|
-
return theme && styled.css(_templateObject3$
|
|
10534
|
+
return theme && styled.css(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteralLoose(["\n transition:\n opacity ", " ", ",\n transform ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeOut, theme.animation.speed.fast, theme.animation.easing.primary.easeOut);
|
|
9958
10535
|
}, function (_ref3) {
|
|
9959
|
-
var
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
});
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
_ref6$retryImageLoad = _ref6.retryImageLoad,
|
|
9980
|
-
retryImageLoad = _ref6$retryImageLoad === void 0 ? false : _ref6$retryImageLoad,
|
|
9981
|
-
_ref6$retryLimit = _ref6.retryLimit,
|
|
9982
|
-
retryLimit = _ref6$retryLimit === void 0 ? 5 : _ref6$retryLimit;
|
|
10536
|
+
var theme = _ref3.theme,
|
|
10537
|
+
hoverZoom = _ref3.hoverZoom;
|
|
10538
|
+
return theme && hoverZoom && styled.css(_templateObject4$F || (_templateObject4$F = _taggedTemplateLiteralLoose(["\n transform: scale(1.5);\n opacity: 1;\n transition: transform ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeOut);
|
|
10539
|
+
});
|
|
10540
|
+
var ImageWrapper = styled__default.img(_templateObject5$B || (_templateObject5$B = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n object-fit: cover;\n display: block;\n"])));
|
|
10541
|
+
var NoImageWrapper = styled__default.div(_templateObject6$u || (_templateObject6$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n height: 41px;\n width: 55px;\n object-fit: cover;\n display: block;\n"])));
|
|
10542
|
+
var PlayableDrop = styled__default.div(_templateObject7$t || (_templateObject7$t = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: hsla(0, 0%, 0%, .5);\n height: 24px;\n width: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ", " {\n display: flex;\n svg {\n padding-left: 2px;\n path {\n stroke: hsla(0, 0%, 100%, 1.000);\n }\n }\n };\n"])), IconWrapper);
|
|
10543
|
+
|
|
10544
|
+
var TableRowThumbnail = function TableRowThumbnail(_ref4) {
|
|
10545
|
+
var _ref4$hoverZoom = _ref4.hoverZoom,
|
|
10546
|
+
hoverZoom = _ref4$hoverZoom === void 0 ? true : _ref4$hoverZoom,
|
|
10547
|
+
_ref4$image = _ref4.image,
|
|
10548
|
+
image = _ref4$image === void 0 ? '' : _ref4$image,
|
|
10549
|
+
mediaUrl = _ref4.mediaUrl,
|
|
10550
|
+
mediaType = _ref4.mediaType,
|
|
10551
|
+
_ref4$retryImageLoad = _ref4.retryImageLoad,
|
|
10552
|
+
retryImageLoad = _ref4$retryImageLoad === void 0 ? false : _ref4$retryImageLoad,
|
|
10553
|
+
_ref4$retryLimit = _ref4.retryLimit,
|
|
10554
|
+
retryLimit = _ref4$retryLimit === void 0 ? 5 : _ref4$retryLimit,
|
|
10555
|
+
closeText = _ref4.closeText;
|
|
9983
10556
|
|
|
9984
10557
|
var _useState = React.useState(true),
|
|
9985
10558
|
showImage = _useState[0],
|
|
@@ -10000,18 +10573,17 @@ var TableRowThumbnail = function TableRowThumbnail(_ref6) {
|
|
|
10000
10573
|
var timeoutRef = React.useRef(null);
|
|
10001
10574
|
var handleModal = React.useCallback(function () {
|
|
10002
10575
|
try {
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
}
|
|
10009
|
-
|
|
10576
|
+
createMediaModal({
|
|
10577
|
+
src: showImage && mediaUrl ? mediaUrl : '',
|
|
10578
|
+
mediaType: mediaType ? mediaType : 'img',
|
|
10579
|
+
minHeight: '240px',
|
|
10580
|
+
closeText: closeText
|
|
10581
|
+
});
|
|
10010
10582
|
return Promise.resolve();
|
|
10011
10583
|
} catch (e) {
|
|
10012
10584
|
return Promise.reject(e);
|
|
10013
10585
|
}
|
|
10014
|
-
}, [createMediaModal, mediaType, mediaUrl]);
|
|
10586
|
+
}, [closeText, createMediaModal, mediaType, mediaUrl, showImage]);
|
|
10015
10587
|
React.useEffect(function () {
|
|
10016
10588
|
setShowImage(false);
|
|
10017
10589
|
setRetryCount(0);
|
|
@@ -10042,36 +10614,62 @@ var TableRowThumbnail = function TableRowThumbnail(_ref6) {
|
|
|
10042
10614
|
timeoutRef.current = null;
|
|
10043
10615
|
setShowImage(true);
|
|
10044
10616
|
}, []);
|
|
10045
|
-
|
|
10617
|
+
|
|
10618
|
+
var checkIfImageExists = function checkIfImageExists(url, imageExistsCallback) {
|
|
10619
|
+
var img = new Image();
|
|
10620
|
+
img.src = url;
|
|
10621
|
+
|
|
10622
|
+
if (img.complete) {
|
|
10623
|
+
imageExistsCallback(true);
|
|
10624
|
+
} else {
|
|
10625
|
+
img.onload = function () {
|
|
10626
|
+
imageExistsCallback(true);
|
|
10627
|
+
};
|
|
10628
|
+
|
|
10629
|
+
img.onerror = function () {
|
|
10630
|
+
imageExistsCallback(false);
|
|
10631
|
+
};
|
|
10632
|
+
}
|
|
10633
|
+
};
|
|
10634
|
+
|
|
10635
|
+
React.useEffect(function () {
|
|
10636
|
+
checkIfImageExists(image, function (exists) {
|
|
10637
|
+
if (exists) {
|
|
10638
|
+
setShowImage(true);
|
|
10639
|
+
} else {
|
|
10640
|
+
setShowImage(false);
|
|
10641
|
+
}
|
|
10642
|
+
});
|
|
10643
|
+
}, [image]);
|
|
10644
|
+
return React__default.createElement(Container$E, Object.assign({}, {
|
|
10046
10645
|
hoverZoom: hoverZoom,
|
|
10047
10646
|
mediaUrl: mediaUrl
|
|
10048
10647
|
}, {
|
|
10049
10648
|
aspect: '16:9',
|
|
10050
10649
|
onClick: handleModal
|
|
10051
|
-
}), React__default.createElement(
|
|
10650
|
+
}), showImage ? React__default.createElement(ImageWrapper, {
|
|
10052
10651
|
ref: imgRef,
|
|
10053
10652
|
src: imgSrc,
|
|
10054
10653
|
onError: retryImage,
|
|
10055
|
-
onLoad: onLoad
|
|
10056
|
-
|
|
10057
|
-
}), mediaUrl && mediaType === 'video' && React__default.createElement(PlayableDrop, null, React__default.createElement(Icon, {
|
|
10654
|
+
onLoad: onLoad
|
|
10655
|
+
}) : React__default.createElement(NoImageWrapper, null, React__default.createElement(SvgNoImage, null)), mediaUrl && mediaType === 'video' && React__default.createElement(PlayableDrop, null, React__default.createElement(Icon, {
|
|
10058
10656
|
size: 12,
|
|
10059
10657
|
icon: 'Play',
|
|
10060
10658
|
color: 'inverse'
|
|
10061
10659
|
})));
|
|
10062
10660
|
};
|
|
10063
10661
|
|
|
10064
|
-
var _templateObject$
|
|
10065
|
-
var Container$
|
|
10662
|
+
var _templateObject$X, _templateObject2$S;
|
|
10663
|
+
var Container$F = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n height: 42px;\n width: 4px;\n border-radius: 3px;\n display: block;\n\n ", "\n\n"])), function (_ref) {
|
|
10066
10664
|
var status = _ref.status,
|
|
10067
10665
|
colors = _ref.theme.colors;
|
|
10068
|
-
return styled.css(_templateObject2$
|
|
10666
|
+
return styled.css(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n background: ", ";\n content:'", "';\n "])), colors.status[status], status);
|
|
10069
10667
|
});
|
|
10070
10668
|
|
|
10071
10669
|
var TypeTableDeviceStatus = function TypeTableDeviceStatus(_ref2) {
|
|
10072
10670
|
var _ref2$status = _ref2.status,
|
|
10073
10671
|
status = _ref2$status === void 0 ? 'neutral' : _ref2$status;
|
|
10074
|
-
return React__default.createElement(Container$
|
|
10672
|
+
return React__default.createElement(Container$F, {
|
|
10075
10673
|
status: status
|
|
10076
10674
|
});
|
|
10077
10675
|
};
|
|
@@ -10107,31 +10705,31 @@ var useCopyToClipboard = function useCopyToClipboard() {
|
|
|
10107
10705
|
};
|
|
10108
10706
|
};
|
|
10109
10707
|
|
|
10110
|
-
var _templateObject$
|
|
10111
|
-
var CopyToClipboard = styled__default.button(_templateObject$
|
|
10708
|
+
var _templateObject$Y, _templateObject2$T, _templateObject3$M, _templateObject4$G, _templateObject5$C, _templateObject6$v, _templateObject7$u, _templateObject8$q, _templateObject9$l, _templateObject10$i, _templateObject11$b;
|
|
10709
|
+
var CopyToClipboard = styled__default.button(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n\n cursor: pointer;\n opacity: 0;\n\n position: absolute;\n right: 0;\n top: 14px;\n width: 20px;\n height: 20px;\n background: transparent;\n border: none;\n outline: none;\n\n ", "\n\n svg {\n display: block;\n }\n\n &:hover {\n opacity: 1 !important;\n }\n\n"])), function (_ref) {
|
|
10112
10710
|
var theme = _ref.theme;
|
|
10113
|
-
return theme && styled.css(_templateObject2$
|
|
10711
|
+
return theme && styled.css(_templateObject2$T || (_templateObject2$T = _taggedTemplateLiteralLoose(["\n transition: ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.easeOut);
|
|
10114
10712
|
});
|
|
10115
|
-
var CellContainer = styled__default.div(_templateObject3$
|
|
10713
|
+
var CellContainer = styled__default.div(_templateObject3$M || (_templateObject3$M = _taggedTemplateLiteralLoose(["\n display: table-cell;\n height: 50px;\n vertical-align: middle;\n position: relative;\n line-height: 30px;\n font-family: ", ";\n\n &:hover ", "{\n opacity: 0.5;\n }\n\n &, a {\n ", "\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n ", ";\n\n ", "\n"])), function (p) {
|
|
10116
10714
|
return p.theme.fontFamily.data;
|
|
10117
10715
|
}, CopyToClipboard, function (_ref2) {
|
|
10118
10716
|
var theme = _ref2.theme,
|
|
10119
10717
|
cellStyle = _ref2.cellStyle,
|
|
10120
10718
|
alignment = _ref2.alignment;
|
|
10121
|
-
return cellStyle === 'firstColumn' ? styled.css(_templateObject4$
|
|
10719
|
+
return cellStyle === 'firstColumn' ? styled.css(_templateObject4$G || (_templateObject4$G = _taggedTemplateLiteralLoose(["\n ", ";\n "])), theme.typography.table.columnData[cellStyle]) : styled.css(_templateObject5$C || (_templateObject5$C = _taggedTemplateLiteralLoose(["\n ", ";\n "])), theme.typography.table.columnData[cellStyle][alignment]);
|
|
10122
10720
|
}, function (_ref3) {
|
|
10123
10721
|
var hasCopyButton = _ref3.hasCopyButton;
|
|
10124
|
-
return hasCopyButton && styled.css(_templateObject6$
|
|
10722
|
+
return hasCopyButton && styled.css(_templateObject6$v || (_templateObject6$v = _taggedTemplateLiteralLoose(["\n padding-right: 20px;\n "])));
|
|
10125
10723
|
}, function (_ref4) {
|
|
10126
10724
|
var styles = _ref4.theme.styles,
|
|
10127
10725
|
hideDivider = _ref4.hideDivider;
|
|
10128
|
-
return !hideDivider && styled.css(_templateObject7$
|
|
10726
|
+
return !hideDivider && styled.css(_templateObject7$u || (_templateObject7$u = _taggedTemplateLiteralLoose(["\n &::after {\n ", ";\n content: '';\n display: block;\n height: 1px;\n left: 0;\n right: 0;\n width: 100%;\n bottom: 0px;\n position: absolute;\n }\n "])), styles.tables.rows.divider);
|
|
10129
10727
|
});
|
|
10130
|
-
var UnitText = styled__default.span(_templateObject8$
|
|
10728
|
+
var UnitText = styled__default.span(_templateObject8$q || (_templateObject8$q = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref5) {
|
|
10131
10729
|
var theme = _ref5.theme;
|
|
10132
|
-
return styled.css(_templateObject9$
|
|
10730
|
+
return styled.css(_templateObject9$l || (_templateObject9$l = _taggedTemplateLiteralLoose(["\n ", ";\n "])), theme.typography.table.columnData['unit']);
|
|
10133
10731
|
});
|
|
10134
|
-
var StatusBlip = styled__default.div(_templateObject10$
|
|
10732
|
+
var StatusBlip = styled__default.div(_templateObject10$i || (_templateObject10$i = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin-right: 8px;\n ", "\n"])), function (_ref6) {
|
|
10135
10733
|
var _ref6$status = _ref6.status,
|
|
10136
10734
|
status = _ref6$status === void 0 ? 'neutral' : _ref6$status,
|
|
10137
10735
|
colors = _ref6.theme.colors;
|
|
@@ -10179,14 +10777,14 @@ var TypeTableCell = function TypeTableCell(_ref7) {
|
|
|
10179
10777
|
})) : null);
|
|
10180
10778
|
};
|
|
10181
10779
|
|
|
10182
|
-
var _templateObject$
|
|
10183
|
-
var RowContainer = styled__default.div(_templateObject$
|
|
10780
|
+
var _templateObject$Z, _templateObject2$U;
|
|
10781
|
+
var RowContainer = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n display: table-row;\n ", ";\n"])), function (_ref) {
|
|
10184
10782
|
var isEmpty = _ref.isEmpty;
|
|
10185
|
-
return isEmpty && styled.css(_templateObject2$
|
|
10783
|
+
return isEmpty && styled.css(_templateObject2$U || (_templateObject2$U = _taggedTemplateLiteralLoose(["\n visibility: hidden;\n "])));
|
|
10186
10784
|
});
|
|
10187
10785
|
|
|
10188
10786
|
var TypeTableRow = function TypeTableRow(_ref2) {
|
|
10189
|
-
var _rowData$header, _rowData$header2, _rowData$header3, _rowData$header4, _rowData$header5
|
|
10787
|
+
var _rowData$header, _rowData$header2, _rowData$header3, _rowData$header4, _rowData$header5;
|
|
10190
10788
|
|
|
10191
10789
|
var _ref2$selectable = _ref2.selectable,
|
|
10192
10790
|
selectable = _ref2$selectable === void 0 ? false : _ref2$selectable,
|
|
@@ -10196,7 +10794,8 @@ var TypeTableRow = function TypeTableRow(_ref2) {
|
|
|
10196
10794
|
hasTypeIcon = _ref2.hasTypeIcon,
|
|
10197
10795
|
rowData = _ref2.rowData,
|
|
10198
10796
|
isLastRow = _ref2.isLastRow,
|
|
10199
|
-
columnConfig = _ref2.columnConfig
|
|
10797
|
+
columnConfig = _ref2.columnConfig,
|
|
10798
|
+
closeText = _ref2.closeText;
|
|
10200
10799
|
var wrappedSelectCallback = React.useCallback(function (checked) {
|
|
10201
10800
|
if (selectCallback) {
|
|
10202
10801
|
selectCallback(checked, rowData.id);
|
|
@@ -10220,11 +10819,11 @@ var TypeTableRow = function TypeTableRow(_ref2) {
|
|
|
10220
10819
|
image: (_rowData$header2 = rowData.header) === null || _rowData$header2 === void 0 ? void 0 : _rowData$header2.image,
|
|
10221
10820
|
mediaUrl: (_rowData$header3 = rowData.header) === null || _rowData$header3 === void 0 ? void 0 : _rowData$header3.mediaUrl,
|
|
10222
10821
|
mediaType: (_rowData$header4 = rowData.header) === null || _rowData$header4 === void 0 ? void 0 : _rowData$header4.mediaType,
|
|
10223
|
-
|
|
10822
|
+
closeText: closeText
|
|
10224
10823
|
})) : null, hasTypeIcon ? React__default.createElement(TypeTableCell, {
|
|
10225
10824
|
hideDivider: true
|
|
10226
10825
|
}, React__default.createElement(Icon, {
|
|
10227
|
-
icon: ((_rowData$
|
|
10826
|
+
icon: ((_rowData$header5 = rowData.header) === null || _rowData$header5 === void 0 ? void 0 : _rowData$header5.icon) || '',
|
|
10228
10827
|
color: 'dimmed',
|
|
10229
10828
|
weight: 'regular',
|
|
10230
10829
|
size: 16
|
|
@@ -10255,17 +10854,17 @@ var TypeTableRow = function TypeTableRow(_ref2) {
|
|
|
10255
10854
|
}));
|
|
10256
10855
|
};
|
|
10257
10856
|
|
|
10258
|
-
var _templateObject$
|
|
10259
|
-
var HeaderTitle = styled__default.div(_templateObject$
|
|
10857
|
+
var _templateObject$_, _templateObject2$V, _templateObject3$N, _templateObject4$H;
|
|
10858
|
+
var HeaderTitle = styled__default.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n display: inline-flex;\n justify-content: center;\n align-content: center;\n position: relative;\n padding: 0 2px;\n user-select: none;\n z-index: 99;\n\n ", " {\n position: absolute;\n top: 0px;\n left: -15px;\n display: none;\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n padding: 3px 1px;\n\n ", "\n }\n\n ", "\n\n ", "\n"])), IconWrapper, function (_ref) {
|
|
10260
10859
|
var ascending = _ref.ascending;
|
|
10261
|
-
return ascending && styled.css(_templateObject2$
|
|
10860
|
+
return ascending && styled.css(_templateObject2$V || (_templateObject2$V = _taggedTemplateLiteralLoose(["\n transform: rotate(180deg);\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n top: 0;\n "])));
|
|
10262
10861
|
}, function (_ref2) {
|
|
10263
10862
|
var isSortActive = _ref2.isSortActive;
|
|
10264
|
-
return isSortActive && styled.css(_templateObject3$
|
|
10863
|
+
return isSortActive && styled.css(_templateObject3$N || (_templateObject3$N = _taggedTemplateLiteralLoose(["\n &:not(hover) {\n ", " {\n display: inline-flex;\n }\n }\n "])), IconWrapper);
|
|
10265
10864
|
}, function (_ref3) {
|
|
10266
10865
|
var styles = _ref3.theme.styles,
|
|
10267
10866
|
sortable = _ref3.sortable;
|
|
10268
|
-
return sortable && styled.css(_templateObject4$
|
|
10867
|
+
return sortable && styled.css(_templateObject4$H || (_templateObject4$H = _taggedTemplateLiteralLoose(["\n\n ", ";\n\n &:hover {\n cursor: pointer;\n ", ";\n\n ", " {\n ", ";\n display: inline-flex;\n }\n }\n "])), styles.tables.header.sortable["default"], styles.tables.header.sortable.hover, IconWrapper, styles.tables.header.sortable.hover);
|
|
10269
10868
|
});
|
|
10270
10869
|
|
|
10271
10870
|
var TableHeaderTitle = function TableHeaderTitle(_ref4) {
|
|
@@ -10295,45 +10894,45 @@ var TableHeaderTitle = function TableHeaderTitle(_ref4) {
|
|
|
10295
10894
|
}), header);
|
|
10296
10895
|
};
|
|
10297
10896
|
|
|
10298
|
-
var _templateObject
|
|
10299
|
-
var HeaderRow = styled__default.div(_templateObject
|
|
10300
|
-
var HeaderItem = styled__default.div(_templateObject2$
|
|
10897
|
+
var _templateObject$$, _templateObject2$W, _templateObject3$O, _templateObject4$I, _templateObject5$D, _templateObject6$w, _templateObject7$v, _templateObject8$r, _templateObject9$m, _templateObject10$j, _templateObject11$c, _templateObject12$9, _templateObject13$8, _templateObject14$6, _templateObject15$4, _templateObject16$4, _templateObject17$4;
|
|
10898
|
+
var HeaderRow = styled__default.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n display: table-row;\n height: 50px;\n"])));
|
|
10899
|
+
var HeaderItem = styled__default.div(_templateObject2$W || (_templateObject2$W = _taggedTemplateLiteralLoose(["\n display: table-cell;\n height: inherit;\n vertical-align:top;\n line-height: 20px;\n position: relative;\n font-family: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (p) {
|
|
10301
10900
|
return p.theme.fontFamily.ui;
|
|
10302
10901
|
}, function (_ref) {
|
|
10303
10902
|
var hasCopyButton = _ref.hasCopyButton;
|
|
10304
|
-
return hasCopyButton && styled.css(_templateObject3$
|
|
10903
|
+
return hasCopyButton && styled.css(_templateObject3$O || (_templateObject3$O = _taggedTemplateLiteralLoose(["\n padding-right: 20px;\n "])));
|
|
10305
10904
|
}, function (_ref2) {
|
|
10306
10905
|
var theme = _ref2.theme,
|
|
10307
10906
|
alignment = _ref2.alignment,
|
|
10308
10907
|
headerStyle = _ref2.headerStyle;
|
|
10309
|
-
return alignment ? styled.css(_templateObject4$
|
|
10908
|
+
return alignment ? styled.css(_templateObject4$I || (_templateObject4$I = _taggedTemplateLiteralLoose(["\n ", ";\n "])), theme.typography.table[headerStyle][alignment]) : styled.css(_templateObject5$D || (_templateObject5$D = _taggedTemplateLiteralLoose(["\n ", ";\n "])), theme.typography.table[headerStyle]['left']);
|
|
10310
10909
|
}, function (p) {
|
|
10311
|
-
return p.fixedWidth && styled.css(_templateObject6$
|
|
10910
|
+
return p.fixedWidth && styled.css(_templateObject6$w || (_templateObject6$w = _taggedTemplateLiteralLoose(["\n width: ", "px;\n "])), p.fixedWidth);
|
|
10312
10911
|
}, function (_ref3) {
|
|
10313
10912
|
var minWidth = _ref3.minWidth;
|
|
10314
|
-
return minWidth && styled.css(_templateObject7$
|
|
10913
|
+
return minWidth && styled.css(_templateObject7$v || (_templateObject7$v = _taggedTemplateLiteralLoose(["\n min-width:", "px;\n "])), minWidth);
|
|
10315
10914
|
}, function (_ref4) {
|
|
10316
10915
|
var styles = _ref4.theme.styles,
|
|
10317
10916
|
headerStyle = _ref4.headerStyle,
|
|
10318
10917
|
isSortActive = _ref4.isSortActive;
|
|
10319
|
-
return headerStyle === 'subHeader' && styled.css(_templateObject8$
|
|
10918
|
+
return headerStyle === 'subHeader' && styled.css(_templateObject8$r || (_templateObject8$r = _taggedTemplateLiteralLoose(["\n padding-bottom: 15px;\n\n &::after {\n ", ";\n content: '';\n display: block;\n height: 1px;\n left: ", ";\n right: 0;\n width: ", ";\n bottom: 0px;\n position: absolute;\n }\n"])), styles.tables.header.divider, isSortActive ? '-15px' : '0', isSortActive ? 'calc(100% + 15px)' : '100%');
|
|
10320
10919
|
});
|
|
10321
|
-
var TitleItems = styled__default.div(_templateObject9$
|
|
10920
|
+
var TitleItems = styled__default.div(_templateObject9$m || (_templateObject9$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n ", ";\n"])), function (_ref5) {
|
|
10322
10921
|
var alignment = _ref5.alignment;
|
|
10323
|
-
return alignment && styled.css(_templateObject10$
|
|
10922
|
+
return alignment && styled.css(_templateObject10$j || (_templateObject10$j = _taggedTemplateLiteralLoose(["\n ", ";\n ", ";\n "])), alignment === 'right' ? 'align-items: flex-end' : null, alignment === 'center' ? 'align-items: center' : null);
|
|
10324
10923
|
});
|
|
10325
10924
|
var GroupTitle = styled__default.div(_templateObject11$c || (_templateObject11$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n margin-bottom: 4px;\n"])));
|
|
10326
|
-
var Title$4 = styled__default.div(_templateObject12$
|
|
10925
|
+
var Title$4 = styled__default.div(_templateObject12$9 || (_templateObject12$9 = _taggedTemplateLiteralLoose(["\n ", ";\n padding-left: 2px;\n padding-right: 8px;\n white-space: nowrap;\n"])), function (_ref6) {
|
|
10327
10926
|
var typography = _ref6.theme.typography;
|
|
10328
|
-
return styled.css(_templateObject13$
|
|
10927
|
+
return styled.css(_templateObject13$8 || (_templateObject13$8 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), typography.tables.groupName);
|
|
10329
10928
|
});
|
|
10330
|
-
var EmptyTitle = styled__default.div(_templateObject14$
|
|
10331
|
-
var MiddleLine = styled__default.div(_templateObject15$
|
|
10929
|
+
var EmptyTitle = styled__default.div(_templateObject14$6 || (_templateObject14$6 = _taggedTemplateLiteralLoose(["\n height: 20px;\n"])));
|
|
10930
|
+
var MiddleLine = styled__default.div(_templateObject15$4 || (_templateObject15$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n height: 1px;\n flex: 1;\n ", ";\n"])), function (_ref7) {
|
|
10332
10931
|
var styles = _ref7.theme.styles;
|
|
10333
|
-
return styled.css(_templateObject16$
|
|
10932
|
+
return styled.css(_templateObject16$4 || (_templateObject16$4 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), styles.tables.header.groupLine);
|
|
10334
10933
|
}, function (_ref8) {
|
|
10335
10934
|
var isLastOfGroup = _ref8.isLastOfGroup;
|
|
10336
|
-
return isLastOfGroup && styled.css(_templateObject17$
|
|
10935
|
+
return isLastOfGroup && styled.css(_templateObject17$4 || (_templateObject17$4 = _taggedTemplateLiteralLoose(["\n margin-right: 15px;\n "])));
|
|
10337
10936
|
});
|
|
10338
10937
|
|
|
10339
10938
|
var renderGroupHeader = function renderGroupHeader(columnConfig, index) {
|
|
@@ -10464,15 +11063,15 @@ var TypeTableHeader = function TypeTableHeader(_ref9) {
|
|
|
10464
11063
|
}));
|
|
10465
11064
|
};
|
|
10466
11065
|
|
|
10467
|
-
var _templateObject
|
|
10468
|
-
var Container$
|
|
10469
|
-
var TableContainer = styled__default.div(_templateObject2$
|
|
10470
|
-
var LoadingText$1 = styled__default.div(_templateObject3$
|
|
10471
|
-
var LoadingBox$1 = styled__default.div(_templateObject4$
|
|
11066
|
+
var _templateObject$10, _templateObject2$X, _templateObject3$P, _templateObject4$J, _templateObject5$E;
|
|
11067
|
+
var Container$G = styled__default.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose([""])));
|
|
11068
|
+
var TableContainer = styled__default.div(_templateObject2$X || (_templateObject2$X = _taggedTemplateLiteralLoose(["\n display: table;\n width: 100%;\n position: relative;\n"])));
|
|
11069
|
+
var LoadingText$1 = styled__default.div(_templateObject3$P || (_templateObject3$P = _taggedTemplateLiteralLoose(["\n color: hsla(195, 10%, 52%, 0.72);\n"])));
|
|
11070
|
+
var LoadingBox$1 = styled__default.div(_templateObject4$J || (_templateObject4$J = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n z-index: 99;\n background-color: ", ";\n height: calc(100% - 50px);\n opacity: 85%;\n width: 100%;\n min-height: 100px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 20px;\n\n ", " {\n margin-top: 10px;\n }\n"])), function (_ref) {
|
|
10472
11071
|
var theme = _ref.theme;
|
|
10473
|
-
return theme.
|
|
11072
|
+
return theme.colors["pureBase"];
|
|
10474
11073
|
}, LoadingText$1);
|
|
10475
|
-
var EmptyTableBox = styled__default.div(_templateObject5$
|
|
11074
|
+
var EmptyTableBox = styled__default.div(_templateObject5$E || (_templateObject5$E = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n z-index: 99;\n padding: 20px;\n width: 100%;\n min-height: 100px;\n text-align: center;\n h3 {\n font-weight: 500;\n color: hsl(208, 8%, 38%);\n }\n color: hsl(207, 5%, 57%);\n"])));
|
|
10476
11075
|
|
|
10477
11076
|
var isChecked = function isChecked(_ref2) {
|
|
10478
11077
|
var _ref2$_checked = _ref2._checked,
|
|
@@ -10486,6 +11085,7 @@ var TypeTable = function TypeTable(_ref3) {
|
|
|
10486
11085
|
selectable = _ref3.selectable,
|
|
10487
11086
|
_ref3$rows = _ref3.rows,
|
|
10488
11087
|
rows = _ref3$rows === void 0 ? [] : _ref3$rows,
|
|
11088
|
+
closeText = _ref3.closeText,
|
|
10489
11089
|
_ref3$hasStatus = _ref3.hasStatus,
|
|
10490
11090
|
hasStatus = _ref3$hasStatus === void 0 ? false : _ref3$hasStatus,
|
|
10491
11091
|
_ref3$hasThumbnail = _ref3.hasThumbnail,
|
|
@@ -10525,7 +11125,7 @@ var TypeTable = function TypeTable(_ref3) {
|
|
|
10525
11125
|
|
|
10526
11126
|
setAllChecked(areAllChecked);
|
|
10527
11127
|
}, [isEmptyTable, rows]);
|
|
10528
|
-
return React__default.createElement(Container$
|
|
11128
|
+
return React__default.createElement(Container$G, null, React__default.createElement(TableContainer, null, React__default.createElement(TypeTableHeader, Object.assign({}, {
|
|
10529
11129
|
selectable: selectable,
|
|
10530
11130
|
hasStatus: hasStatus,
|
|
10531
11131
|
hasThumbnail: hasThumbnail,
|
|
@@ -10553,29 +11153,30 @@ var TypeTable = function TypeTable(_ref3) {
|
|
|
10553
11153
|
columnConfig: columnConfig,
|
|
10554
11154
|
hasStatus: hasStatus,
|
|
10555
11155
|
hasThumbnail: hasThumbnail,
|
|
10556
|
-
hasTypeIcon: hasTypeIcon
|
|
11156
|
+
hasTypeIcon: hasTypeIcon,
|
|
11157
|
+
closeText: closeText
|
|
10557
11158
|
}));
|
|
10558
11159
|
})));
|
|
10559
11160
|
};
|
|
10560
11161
|
|
|
10561
11162
|
var _excluded$y = ["type", "placeholder", "defaultValue", "rowKey", "alignment", "toLink", "saveCallback"];
|
|
10562
11163
|
|
|
10563
|
-
var _templateObject$
|
|
10564
|
-
var Container$
|
|
11164
|
+
var _templateObject$11, _templateObject2$Y, _templateObject3$Q, _templateObject4$K, _templateObject5$F, _templateObject6$x, _templateObject7$w, _templateObject8$s, _templateObject9$n, _templateObject10$k;
|
|
11165
|
+
var Container$H = styled__default.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n"])), function (_ref) {
|
|
10565
11166
|
var theme = _ref.theme;
|
|
10566
|
-
return styled.css(_templateObject2$
|
|
10567
|
-
});
|
|
10568
|
-
var StyledButton$4 = styled__default(Button)(_templateObject3$
|
|
10569
|
-
var StyledLoadingButton = styled__default(ButtonWithLoading)(_templateObject4$
|
|
10570
|
-
var StyledLink = styled__default(reactRouterDom.Link)(_templateObject5$
|
|
10571
|
-
var EditContainer = styled__default.div(_templateObject6$
|
|
10572
|
-
var StyledIconButton$1 = styled__default(IconButton$2)(_templateObject7$
|
|
10573
|
-
var TextContainer$2 = styled__default.div(_templateObject8$
|
|
11167
|
+
return styled.css(_templateObject2$Y || (_templateObject2$Y = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n "])), theme.fontFamily.ui);
|
|
11168
|
+
});
|
|
11169
|
+
var StyledButton$4 = styled__default(Button)(_templateObject3$Q || (_templateObject3$Q = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n"])));
|
|
11170
|
+
var StyledLoadingButton = styled__default(ButtonWithLoading)(_templateObject4$K || (_templateObject4$K = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n"])));
|
|
11171
|
+
var StyledLink = styled__default(reactRouterDom.Link)(_templateObject5$F || (_templateObject5$F = _taggedTemplateLiteralLoose(["\n color: inherit;\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n"])));
|
|
11172
|
+
var EditContainer = styled__default.div(_templateObject6$x || (_templateObject6$x = _taggedTemplateLiteralLoose(["\n min-width: 320px;\n background-color: hsl(0, 0%, 100%);\n z-index: 99;\n position: absolute;\n bottom: -15px;\n left: -11px;\n display: flex;\n align-items: center;\n justify-content: center;\n ", " {\n margin:0;\n span {\n margin: 0;\n }\n }\n ", " {\n margin-left: 5px;\n }\n ", " {\n margin-left: 5px;\n }\n"])), StyledLabel, StyledButton$4, StyledLoadingButton);
|
|
11173
|
+
var StyledIconButton$1 = styled__default(IconButton$2)(_templateObject7$w || (_templateObject7$w = _taggedTemplateLiteralLoose([""])));
|
|
11174
|
+
var TextContainer$2 = styled__default.div(_templateObject8$s || (_templateObject8$s = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-right: 18px;\n\n ", "\n\n ", "\n\n ", " {\n opacity: 0;\n position: absolute;\n top: 7px;\n right: 0;\n };\n\n &:hover {\n ", " {\n opacity: 1;\n };\n }\n"])), function (_ref2) {
|
|
10574
11175
|
var alignment = _ref2.alignment;
|
|
10575
|
-
return alignment === 'center' && styled.css(_templateObject9$
|
|
11176
|
+
return alignment === 'center' && styled.css(_templateObject9$n || (_templateObject9$n = _taggedTemplateLiteralLoose(["\n justify-content: center;\n "])));
|
|
10576
11177
|
}, function (_ref3) {
|
|
10577
11178
|
var alignment = _ref3.alignment;
|
|
10578
|
-
return alignment === 'right' && styled.css(_templateObject10$
|
|
11179
|
+
return alignment === 'right' && styled.css(_templateObject10$k || (_templateObject10$k = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n"])));
|
|
10579
11180
|
}, StyledIconButton$1, StyledIconButton$1);
|
|
10580
11181
|
|
|
10581
11182
|
var EditCell = function EditCell(_ref4) {
|
|
@@ -10656,7 +11257,7 @@ var EditCell = function EditCell(_ref4) {
|
|
|
10656
11257
|
};
|
|
10657
11258
|
|
|
10658
11259
|
useClickOutside(editContainerRef, onClickOutsideEdit);
|
|
10659
|
-
return React__default.createElement(Container$
|
|
11260
|
+
return React__default.createElement(Container$H, null, isEditMode ? React__default.createElement(EditContainer, {
|
|
10660
11261
|
ref: editContainerRef
|
|
10661
11262
|
}, React__default.createElement(SmallInput, Object.assign({}, props, {
|
|
10662
11263
|
autoFocus: true,
|
|
@@ -11028,16 +11629,16 @@ var PTZProvider = function PTZProvider(_ref) {
|
|
|
11028
11629
|
}, children);
|
|
11029
11630
|
};
|
|
11030
11631
|
|
|
11031
|
-
var _templateObject$
|
|
11032
|
-
var Active = styled__default.g(_templateObject$
|
|
11632
|
+
var _templateObject$12, _templateObject2$Z, _templateObject3$R, _templateObject4$L, _templateObject5$G;
|
|
11633
|
+
var Active = styled__default.g(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
11033
11634
|
var active = _ref.active;
|
|
11034
|
-
return active && styled.css(_templateObject2$
|
|
11635
|
+
return active && styled.css(_templateObject2$Z || (_templateObject2$Z = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11035
11636
|
});
|
|
11036
|
-
var Hover = styled__default.g(_templateObject3$
|
|
11637
|
+
var Hover = styled__default.g(_templateObject3$R || (_templateObject3$R = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
11037
11638
|
var hover = _ref2.hover;
|
|
11038
|
-
return hover && styled.css(_templateObject4$
|
|
11639
|
+
return hover && styled.css(_templateObject4$L || (_templateObject4$L = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11039
11640
|
});
|
|
11040
|
-
var Container$
|
|
11641
|
+
var Container$I = styled__default.g(_templateObject5$G || (_templateObject5$G = _taggedTemplateLiteralLoose(["\n"])));
|
|
11041
11642
|
|
|
11042
11643
|
var Up = function Up() {
|
|
11043
11644
|
var _useState = React.useState(false),
|
|
@@ -11066,7 +11667,7 @@ var Up = function Up() {
|
|
|
11066
11667
|
var hoverEnd = React.useCallback(function () {
|
|
11067
11668
|
setHover(false);
|
|
11068
11669
|
}, []);
|
|
11069
|
-
return React__default.createElement(Container$
|
|
11670
|
+
return React__default.createElement(Container$I, {
|
|
11070
11671
|
onMouseEnter: hoverStart,
|
|
11071
11672
|
onMouseLeave: hoverEnd,
|
|
11072
11673
|
onMouseDown: activeStart,
|
|
@@ -11110,17 +11711,17 @@ var Up = function Up() {
|
|
|
11110
11711
|
})));
|
|
11111
11712
|
};
|
|
11112
11713
|
|
|
11113
|
-
var _templateObject$
|
|
11114
|
-
var Active$1 = styled__default.g(_templateObject$
|
|
11714
|
+
var _templateObject$13, _templateObject2$_, _templateObject3$S, _templateObject4$M, _templateObject5$H, _templateObject6$y;
|
|
11715
|
+
var Active$1 = styled__default.g(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
11115
11716
|
var active = _ref.active;
|
|
11116
|
-
return active && styled.css(_templateObject2$
|
|
11717
|
+
return active && styled.css(_templateObject2$_ || (_templateObject2$_ = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11117
11718
|
});
|
|
11118
|
-
var Hover$1 = styled__default.g(_templateObject3$
|
|
11719
|
+
var Hover$1 = styled__default.g(_templateObject3$S || (_templateObject3$S = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
11119
11720
|
var hover = _ref2.hover;
|
|
11120
|
-
return hover && styled.css(_templateObject4$
|
|
11721
|
+
return hover && styled.css(_templateObject4$M || (_templateObject4$M = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11121
11722
|
});
|
|
11122
|
-
var Container$
|
|
11123
|
-
var Arrow = styled__default.g(_templateObject6$
|
|
11723
|
+
var Container$J = styled__default.g(_templateObject5$H || (_templateObject5$H = _taggedTemplateLiteralLoose(["\n"])));
|
|
11724
|
+
var Arrow = styled__default.g(_templateObject6$y || (_templateObject6$y = _taggedTemplateLiteralLoose(["\n\n"])));
|
|
11124
11725
|
|
|
11125
11726
|
var Down = function Down() {
|
|
11126
11727
|
var _useState = React.useState(false),
|
|
@@ -11149,7 +11750,7 @@ var Down = function Down() {
|
|
|
11149
11750
|
var hoverEnd = React.useCallback(function () {
|
|
11150
11751
|
setHover(false);
|
|
11151
11752
|
}, []);
|
|
11152
|
-
return React__default.createElement(Container$
|
|
11753
|
+
return React__default.createElement(Container$J, {
|
|
11153
11754
|
onMouseEnter: hoverStart,
|
|
11154
11755
|
onMouseLeave: hoverEnd,
|
|
11155
11756
|
onMouseDown: activeStart,
|
|
@@ -11194,16 +11795,16 @@ var Down = function Down() {
|
|
|
11194
11795
|
})));
|
|
11195
11796
|
};
|
|
11196
11797
|
|
|
11197
|
-
var _templateObject$
|
|
11198
|
-
var Active$2 = styled__default.g(_templateObject$
|
|
11798
|
+
var _templateObject$14, _templateObject2$$, _templateObject3$T, _templateObject4$N, _templateObject5$I;
|
|
11799
|
+
var Active$2 = styled__default.g(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
11199
11800
|
var active = _ref.active;
|
|
11200
|
-
return active && styled.css(_templateObject2
|
|
11801
|
+
return active && styled.css(_templateObject2$$ || (_templateObject2$$ = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11201
11802
|
});
|
|
11202
|
-
var Hover$2 = styled__default.g(_templateObject3$
|
|
11803
|
+
var Hover$2 = styled__default.g(_templateObject3$T || (_templateObject3$T = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
11203
11804
|
var hover = _ref2.hover;
|
|
11204
|
-
return hover && styled.css(_templateObject4$
|
|
11805
|
+
return hover && styled.css(_templateObject4$N || (_templateObject4$N = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11205
11806
|
});
|
|
11206
|
-
var Container$
|
|
11807
|
+
var Container$K = styled__default.g(_templateObject5$I || (_templateObject5$I = _taggedTemplateLiteralLoose(["\n"])));
|
|
11207
11808
|
|
|
11208
11809
|
var Left = function Left() {
|
|
11209
11810
|
var _useState = React.useState(false),
|
|
@@ -11232,7 +11833,7 @@ var Left = function Left() {
|
|
|
11232
11833
|
var hoverEnd = React.useCallback(function () {
|
|
11233
11834
|
setHover(false);
|
|
11234
11835
|
}, []);
|
|
11235
|
-
return React__default.createElement(Container$
|
|
11836
|
+
return React__default.createElement(Container$K, {
|
|
11236
11837
|
onMouseEnter: hoverStart,
|
|
11237
11838
|
onMouseLeave: hoverEnd,
|
|
11238
11839
|
onMouseDown: activeStart,
|
|
@@ -11278,16 +11879,16 @@ var Left = function Left() {
|
|
|
11278
11879
|
})));
|
|
11279
11880
|
};
|
|
11280
11881
|
|
|
11281
|
-
var _templateObject$
|
|
11282
|
-
var Active$3 = styled__default.g(_templateObject$
|
|
11882
|
+
var _templateObject$15, _templateObject2$10, _templateObject3$U, _templateObject4$O, _templateObject5$J;
|
|
11883
|
+
var Active$3 = styled__default.g(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
11283
11884
|
var active = _ref.active;
|
|
11284
|
-
return active && styled.css(_templateObject2
|
|
11885
|
+
return active && styled.css(_templateObject2$10 || (_templateObject2$10 = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11285
11886
|
});
|
|
11286
|
-
var Hover$3 = styled__default.g(_templateObject3$
|
|
11887
|
+
var Hover$3 = styled__default.g(_templateObject3$U || (_templateObject3$U = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
11287
11888
|
var hover = _ref2.hover;
|
|
11288
|
-
return hover && styled.css(_templateObject4$
|
|
11889
|
+
return hover && styled.css(_templateObject4$O || (_templateObject4$O = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
11289
11890
|
});
|
|
11290
|
-
var Container$
|
|
11891
|
+
var Container$L = styled__default.g(_templateObject5$J || (_templateObject5$J = _taggedTemplateLiteralLoose(["\n"])));
|
|
11291
11892
|
|
|
11292
11893
|
var Right = function Right() {
|
|
11293
11894
|
var _useState = React.useState(false),
|
|
@@ -11316,7 +11917,7 @@ var Right = function Right() {
|
|
|
11316
11917
|
var hoverEnd = React.useCallback(function () {
|
|
11317
11918
|
setHover(false);
|
|
11318
11919
|
}, []);
|
|
11319
|
-
return React__default.createElement(Container$
|
|
11920
|
+
return React__default.createElement(Container$L, {
|
|
11320
11921
|
onMouseEnter: hoverStart,
|
|
11321
11922
|
onMouseLeave: hoverEnd,
|
|
11322
11923
|
onMouseDown: activeStart,
|
|
@@ -12175,16 +12776,16 @@ var ZoomBase = function ZoomBase(_ref) {
|
|
|
12175
12776
|
})), children));
|
|
12176
12777
|
};
|
|
12177
12778
|
|
|
12178
|
-
var _templateObject$
|
|
12179
|
-
var Active$4 = styled__default.g(_templateObject$
|
|
12779
|
+
var _templateObject$16, _templateObject2$11, _templateObject3$V, _templateObject4$P, _templateObject5$K;
|
|
12780
|
+
var Active$4 = styled__default.g(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
12180
12781
|
var active = _ref.active;
|
|
12181
|
-
return active && styled.css(_templateObject2$
|
|
12782
|
+
return active && styled.css(_templateObject2$11 || (_templateObject2$11 = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
12182
12783
|
});
|
|
12183
|
-
var Hover$4 = styled__default.g(_templateObject3$
|
|
12784
|
+
var Hover$4 = styled__default.g(_templateObject3$V || (_templateObject3$V = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
12184
12785
|
var hover = _ref2.hover;
|
|
12185
|
-
return hover && styled.css(_templateObject4$
|
|
12786
|
+
return hover && styled.css(_templateObject4$P || (_templateObject4$P = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
12186
12787
|
});
|
|
12187
|
-
var Container$
|
|
12788
|
+
var Container$M = styled__default.g(_templateObject5$K || (_templateObject5$K = _taggedTemplateLiteralLoose(["\n"])));
|
|
12188
12789
|
|
|
12189
12790
|
var Up$1 = function Up() {
|
|
12190
12791
|
var _useState = React.useState(false),
|
|
@@ -12213,7 +12814,7 @@ var Up$1 = function Up() {
|
|
|
12213
12814
|
var hoverEnd = React.useCallback(function () {
|
|
12214
12815
|
setHover(false);
|
|
12215
12816
|
}, []);
|
|
12216
|
-
return React__default.createElement(Container$
|
|
12817
|
+
return React__default.createElement(Container$M, {
|
|
12217
12818
|
onMouseEnter: hoverStart,
|
|
12218
12819
|
onMouseLeave: hoverEnd,
|
|
12219
12820
|
onMouseDown: activeStart,
|
|
@@ -12252,16 +12853,16 @@ var Up$1 = function Up() {
|
|
|
12252
12853
|
})));
|
|
12253
12854
|
};
|
|
12254
12855
|
|
|
12255
|
-
var _templateObject$
|
|
12256
|
-
var Active$5 = styled__default.g(_templateObject$
|
|
12856
|
+
var _templateObject$17, _templateObject2$12, _templateObject3$W, _templateObject4$Q, _templateObject5$L;
|
|
12857
|
+
var Active$5 = styled__default.g(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n\n"])), function (_ref) {
|
|
12257
12858
|
var active = _ref.active;
|
|
12258
|
-
return active && styled.css(_templateObject2$
|
|
12859
|
+
return active && styled.css(_templateObject2$12 || (_templateObject2$12 = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
12259
12860
|
});
|
|
12260
|
-
var Hover$5 = styled__default.g(_templateObject3$
|
|
12861
|
+
var Hover$5 = styled__default.g(_templateObject3$W || (_templateObject3$W = _taggedTemplateLiteralLoose(["\n opacity: 0;\n ", "\n"])), function (_ref2) {
|
|
12261
12862
|
var hover = _ref2.hover;
|
|
12262
|
-
return hover && styled.css(_templateObject4$
|
|
12863
|
+
return hover && styled.css(_templateObject4$Q || (_templateObject4$Q = _taggedTemplateLiteralLoose(["opacity: 1;"])));
|
|
12263
12864
|
});
|
|
12264
|
-
var Container$
|
|
12865
|
+
var Container$N = styled__default.g(_templateObject5$L || (_templateObject5$L = _taggedTemplateLiteralLoose(["\n"])));
|
|
12265
12866
|
|
|
12266
12867
|
var Up$2 = function Up() {
|
|
12267
12868
|
var _useState = React.useState(false),
|
|
@@ -12290,7 +12891,7 @@ var Up$2 = function Up() {
|
|
|
12290
12891
|
var hoverEnd = React.useCallback(function () {
|
|
12291
12892
|
setHover(false);
|
|
12292
12893
|
}, []);
|
|
12293
|
-
return React__default.createElement(Container$
|
|
12894
|
+
return React__default.createElement(Container$N, {
|
|
12294
12895
|
onMouseEnter: hoverStart,
|
|
12295
12896
|
onMouseLeave: hoverEnd,
|
|
12296
12897
|
onMouseDown: activeStart,
|
|
@@ -12325,8 +12926,8 @@ var Up$2 = function Up() {
|
|
|
12325
12926
|
})));
|
|
12326
12927
|
};
|
|
12327
12928
|
|
|
12328
|
-
var _templateObject$
|
|
12329
|
-
var Container$
|
|
12929
|
+
var _templateObject$18;
|
|
12930
|
+
var Container$O = styled__default.div(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteralLoose(["\n user-select: none;\n display: flex;\n flex-direction: column;\n"])));
|
|
12330
12931
|
|
|
12331
12932
|
var Controls = function Controls(_ref) {
|
|
12332
12933
|
var _ref$debug = _ref.debug,
|
|
@@ -12335,27 +12936,27 @@ var Controls = function Controls(_ref) {
|
|
|
12335
12936
|
var _useContext = React.useContext(PTZContext),
|
|
12336
12937
|
state = _useContext.state;
|
|
12337
12938
|
|
|
12338
|
-
return React__default.createElement(Container$
|
|
12939
|
+
return React__default.createElement(Container$O, null, React__default.createElement(PTZControl, null, React__default.createElement(Up, null), React__default.createElement(Down, null), React__default.createElement(Left, null), React__default.createElement(Right, null)), React__default.createElement(ZoomBase, null, React__default.createElement(Up$2, null), React__default.createElement(Up$1, null)), debug && React__default.createElement("pre", null, JSON.stringify(state, null, 2)));
|
|
12339
12940
|
};
|
|
12340
12941
|
|
|
12341
12942
|
var _excluded$z = ["isEmptyWithIcon", "status", "noticeIcon", "hasNotice", "noticeMessage", "noticeTitle", "emptyIcon"];
|
|
12342
12943
|
|
|
12343
|
-
var _templateObject$
|
|
12344
|
-
var Container$
|
|
12345
|
-
var EmptyWithIcon = styled__default.div(_templateObject2$
|
|
12944
|
+
var _templateObject$19, _templateObject2$13, _templateObject3$X, _templateObject4$R, _templateObject5$M, _templateObject6$z, _templateObject7$x, _templateObject8$t, _templateObject9$o;
|
|
12945
|
+
var Container$P = styled__default.div(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 170px;\n border-radius: 3px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n position: relative;\n\n ", " {\n height: 100%;\n width: 100%;\n text-align: center;\n img, video {\n border-radius: 3px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n height: 100%;\n width: 100%;\n object-fit: cover;\n }\n"])), MediaBoxWrapper);
|
|
12946
|
+
var EmptyWithIcon = styled__default.div(_templateObject2$13 || (_templateObject2$13 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n ", "\n;\n\n ", " {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])), function (_ref) {
|
|
12346
12947
|
var hasPadding = _ref.hasPadding;
|
|
12347
12948
|
return hasPadding && "\n padding-bottom: 43px\n ";
|
|
12348
12949
|
}, IconWrapper);
|
|
12349
|
-
var Notice = styled__default.div(_templateObject3$
|
|
12950
|
+
var Notice = styled__default.div(_templateObject3$X || (_templateObject3$X = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 0.85;\n height: 46px;\n width: 300px;\n position: absolute;\n bottom: 0px;\n left: 0px;\n display: flex;\n align-items: center;\n padding: 10px;\n"])), function (_ref2) {
|
|
12350
12951
|
var theme = _ref2.theme,
|
|
12351
12952
|
color = _ref2.color;
|
|
12352
|
-
return color && styled.css(_templateObject4$
|
|
12953
|
+
return color && styled.css(_templateObject4$R || (_templateObject4$R = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n color: ", ";\n "])), theme.colors.feedback[color], theme.colors.icons.inverse);
|
|
12353
12954
|
});
|
|
12354
|
-
var NoticeMessage = styled__default.div(_templateObject5$
|
|
12355
|
-
var NoticeTitle = styled__default.div(_templateObject6$
|
|
12356
|
-
var NoticeIcon = styled__default.div(_templateObject7$
|
|
12357
|
-
var NoticeTextGroup = styled__default.div(_templateObject8$
|
|
12358
|
-
var StatusLine = styled__default.div(_templateObject9$
|
|
12955
|
+
var NoticeMessage = styled__default.div(_templateObject5$M || (_templateObject5$M = _taggedTemplateLiteralLoose(["\n ", ";\n max-width: 245px;\n font-size: 10px;\n"])), EllipsisStyles);
|
|
12956
|
+
var NoticeTitle = styled__default.div(_templateObject6$z || (_templateObject6$z = _taggedTemplateLiteralLoose(["\n ", ";\n max-width: 245px;\n font-size: 12px;\n"])), EllipsisStyles);
|
|
12957
|
+
var NoticeIcon = styled__default.div(_templateObject7$x || (_templateObject7$x = _taggedTemplateLiteralLoose(["\n height: 20px;\n width: 20px;\n margin-left: 2px;\n\n ", " {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n }\n"])), IconWrapper);
|
|
12958
|
+
var NoticeTextGroup = styled__default.div(_templateObject8$t || (_templateObject8$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin-left: 14px;\n"])));
|
|
12959
|
+
var StatusLine = styled__default.div(_templateObject9$o || (_templateObject9$o = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n height: 3px;\n width: 100%;\n"])), function (_ref3) {
|
|
12359
12960
|
var theme = _ref3.theme,
|
|
12360
12961
|
color = _ref3.color;
|
|
12361
12962
|
return color && theme.colors.feedback[color];
|
|
@@ -12374,7 +12975,7 @@ var MediaStream = function MediaStream(_ref4) {
|
|
|
12374
12975
|
emptyIcon = _ref4.emptyIcon,
|
|
12375
12976
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded$z);
|
|
12376
12977
|
|
|
12377
|
-
return React__default.createElement(Container$
|
|
12978
|
+
return React__default.createElement(Container$P, null, isEmptyWithIcon ? React__default.createElement(EmptyWithIcon, {
|
|
12378
12979
|
hasPadding: hasNotice
|
|
12379
12980
|
}, React__default.createElement(Icon, {
|
|
12380
12981
|
icon: emptyIcon ? emptyIcon : 'PasswordHide',
|
|
@@ -12391,34 +12992,34 @@ var MediaStream = function MediaStream(_ref4) {
|
|
|
12391
12992
|
}));
|
|
12392
12993
|
};
|
|
12393
12994
|
|
|
12394
|
-
var _templateObject$
|
|
12395
|
-
var Container$
|
|
12396
|
-
var LeftData = styled__default.div(_templateObject2$
|
|
12995
|
+
var _templateObject$1a, _templateObject2$14, _templateObject3$Y, _templateObject4$S, _templateObject5$N, _templateObject6$A, _templateObject7$y, _templateObject8$u, _templateObject9$p;
|
|
12996
|
+
var Container$Q = styled__default.div(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n display: flex;\n height: 60px;\n"])));
|
|
12997
|
+
var LeftData = styled__default.div(_templateObject2$14 || (_templateObject2$14 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding: 0 12px 0 12px;\n display: flex;\n\n ", " {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n }\n"])), function (_ref) {
|
|
12397
12998
|
var theme = _ref.theme,
|
|
12398
12999
|
hasRightData = _ref.hasRightData;
|
|
12399
|
-
return hasRightData && styled.css(_templateObject3$
|
|
13000
|
+
return hasRightData && styled.css(_templateObject3$Y || (_templateObject3$Y = _taggedTemplateLiteralLoose(["\n border-right: ", " 1px solid;\n width: 195px;\n "])), theme.colors.divider);
|
|
12400
13001
|
}, IconWrapper);
|
|
12401
|
-
var RightData = styled__default.div(_templateObject4$
|
|
12402
|
-
var DeviceDataGroup = styled__default.div(_templateObject5$
|
|
12403
|
-
var LeftTitle = styled__default.div(_templateObject6$
|
|
13002
|
+
var RightData = styled__default.div(_templateObject4$S || (_templateObject4$S = _taggedTemplateLiteralLoose(["\n padding: 0 12px 0 16px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
13003
|
+
var DeviceDataGroup = styled__default.div(_templateObject5$N || (_templateObject5$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin-left: 14px;\n justify-content: center;\n"])));
|
|
13004
|
+
var LeftTitle = styled__default.div(_templateObject6$A || (_templateObject6$A = _taggedTemplateLiteralLoose(["\n ", ";\n ", "};\n ", ";\n\n color: hsla(195, 10%, 52%, 0.72);\n font-size: 10px;\n"])), EllipsisStyles, function (_ref2) {
|
|
12404
13005
|
var hasRightData = _ref2.hasRightData;
|
|
12405
13006
|
return hasRightData ? "max-margin: 140px;" : "max-margin: 250px;";
|
|
12406
13007
|
}, function (_ref3) {
|
|
12407
13008
|
var hasMarginBottom = _ref3.hasMarginBottom;
|
|
12408
13009
|
return hasMarginBottom && "margin-bottom: 1px;";
|
|
12409
13010
|
});
|
|
12410
|
-
var LeftSubTitle = styled__default.div(_templateObject7$
|
|
13011
|
+
var LeftSubTitle = styled__default.div(_templateObject7$y || (_templateObject7$y = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n ", "\n\n color: hsl(208, 8%, 38%);\n font-size: 16px;\n"])), function (_ref4) {
|
|
12411
13012
|
var theme = _ref4.theme;
|
|
12412
13013
|
return theme.fontFamily.data;
|
|
12413
13014
|
}, EllipsisStyles, function (_ref5) {
|
|
12414
13015
|
var hasRightData = _ref5.hasRightData;
|
|
12415
13016
|
return hasRightData ? "max-width: 140px;" : "max-width: 250px;";
|
|
12416
13017
|
});
|
|
12417
|
-
var Title$5 = styled__default.div(_templateObject8$
|
|
13018
|
+
var Title$5 = styled__default.div(_templateObject8$u || (_templateObject8$u = _taggedTemplateLiteralLoose(["\n ", ";\n max-width: 80px;\n color: hsla(195, 10%, 52%, 0.72);\n font-size: 10px;\n ", ";\n"])), EllipsisStyles, function (_ref6) {
|
|
12418
13019
|
var hasMarginBottom = _ref6.hasMarginBottom;
|
|
12419
13020
|
return hasMarginBottom && "margin-bottom: 6px;";
|
|
12420
13021
|
});
|
|
12421
|
-
var SubTitle = styled__default.div(_templateObject9$
|
|
13022
|
+
var SubTitle = styled__default.div(_templateObject9$p || (_templateObject9$p = _taggedTemplateLiteralLoose(["\n ", ";\n max-width: 80px;\n color: hsl(195, 10%, 52%);\n font-size: 12px;\n"])), EllipsisStyles);
|
|
12422
13023
|
|
|
12423
13024
|
var PanelMetaData = function PanelMetaData(_ref7) {
|
|
12424
13025
|
var _ref7$deviceIcon = _ref7.deviceIcon,
|
|
@@ -12432,7 +13033,7 @@ var PanelMetaData = function PanelMetaData(_ref7) {
|
|
|
12432
13033
|
var hasRightData = React.useMemo(function () {
|
|
12433
13034
|
return !!rightTitle || !!rightSubTitle;
|
|
12434
13035
|
}, [rightSubTitle, rightTitle]);
|
|
12435
|
-
return React__default.createElement(Container$
|
|
13036
|
+
return React__default.createElement(Container$Q, null, React__default.createElement(LeftData, Object.assign({}, {
|
|
12436
13037
|
hasRightData: hasRightData
|
|
12437
13038
|
}), !hideIcon && React__default.createElement(Icon, {
|
|
12438
13039
|
icon: deviceIcon,
|
|
@@ -12451,8 +13052,8 @@ var PanelMetaData = function PanelMetaData(_ref7) {
|
|
|
12451
13052
|
|
|
12452
13053
|
var _excluded$A = ["streamProps", "panelMetaData", "customBottom", "panelOnClick"];
|
|
12453
13054
|
|
|
12454
|
-
var _templateObject$
|
|
12455
|
-
var CameraPanelWrapper = styled__default.div(_templateObject$
|
|
13055
|
+
var _templateObject$1b;
|
|
13056
|
+
var CameraPanelWrapper = styled__default.div(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteralLoose(["\n width: 300px;\n height: 230px;\n border-radius: 3px;\n box-shadow: 0 2px 10px 0 hsla(211, 42%, 86%, 0.41);\n background-color: ", ";\n }\n\n ", ";\n"])), function (_ref) {
|
|
12456
13057
|
var theme = _ref.theme;
|
|
12457
13058
|
return theme.styles.global.background.backgroundImage;
|
|
12458
13059
|
}, function (_ref2) {
|
|
@@ -12473,8 +13074,8 @@ var NewComponent = function NewComponent(_ref3) {
|
|
|
12473
13074
|
}, props), React__default.createElement(MediaStream, Object.assign({}, streamProps)), customBottom ? customBottom : panelMetaData && React__default.createElement(PanelMetaData, Object.assign({}, panelMetaData)));
|
|
12474
13075
|
};
|
|
12475
13076
|
|
|
12476
|
-
var _templateObject$
|
|
12477
|
-
var CameraGrid = styled__default.div(_templateObject$
|
|
13077
|
+
var _templateObject$1c;
|
|
13078
|
+
var CameraGrid = styled__default.div(_templateObject$1c || (_templateObject$1c = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fill, 300px);\n gap: 20px 20px;\n"])));
|
|
12478
13079
|
|
|
12479
13080
|
var CameraPanels = function CameraPanels(_ref) {
|
|
12480
13081
|
var panels = _ref.panels;
|
|
@@ -12487,10 +13088,10 @@ var CameraPanels = function CameraPanels(_ref) {
|
|
|
12487
13088
|
|
|
12488
13089
|
var _excluded$B = ["icon", "size", "weight", "label", "linkTo"];
|
|
12489
13090
|
|
|
12490
|
-
var _templateObject$
|
|
12491
|
-
var TextContainer$3 = styled__default.div(_templateObject$
|
|
12492
|
-
var StyledLink$1 = styled__default(reactRouterDom.Link)(_templateObject2$
|
|
12493
|
-
var TagWrapper = styled__default.div(_templateObject3$
|
|
13091
|
+
var _templateObject$1d, _templateObject2$15, _templateObject3$Z, _templateObject4$T;
|
|
13092
|
+
var TextContainer$3 = styled__default.div(_templateObject$1d || (_templateObject$1d = _taggedTemplateLiteralLoose(["\n user-select: none;\n"])));
|
|
13093
|
+
var StyledLink$1 = styled__default(reactRouterDom.Link)(_templateObject2$15 || (_templateObject2$15 = _taggedTemplateLiteralLoose(["\n text-decoration: none;\n"])));
|
|
13094
|
+
var TagWrapper = styled__default.div(_templateObject3$Z || (_templateObject3$Z = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: ", "px;\n font-weight: 500;\n color: hsl(200, 3%, 39%);\n padding: 4px 10px;\n border: solid 1px hsl(120, 1%, 85%);\n display: inline-flex;\n align-items: center;\n border-radius: 3px;\n height: 26px;\n\n ", " {\n [stroke]{\n ", ";\n }\n margin-right: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n ", ";\n"])), function (_ref) {
|
|
12494
13095
|
var theme = _ref.theme;
|
|
12495
13096
|
return theme.fontFamily.ui;
|
|
12496
13097
|
}, function (_ref2) {
|
|
@@ -12503,7 +13104,7 @@ var TagWrapper = styled__default.div(_templateObject3$X || (_templateObject3$X =
|
|
|
12503
13104
|
var theme = _ref4.theme,
|
|
12504
13105
|
hoverColor = _ref4.hoverColor,
|
|
12505
13106
|
enableHover = _ref4.enableHover;
|
|
12506
|
-
return enableHover && styled.css(_templateObject4$
|
|
13107
|
+
return enableHover && styled.css(_templateObject4$T || (_templateObject4$T = _taggedTemplateLiteralLoose(["\n &:hover {\n cursor: pointer;\n border-color: ", ";\n color: ", ";\n ", " {\n [stroke]{\n stroke: ", ";\n }\n }\n }\n "])), theme.colors.icons[hoverColor], theme.colors.icons[hoverColor], IconWrapper, theme.colors.icons[hoverColor]);
|
|
12507
13108
|
});
|
|
12508
13109
|
|
|
12509
13110
|
var Tag = function Tag(_ref5) {
|
|
@@ -12535,8 +13136,8 @@ var Tag = function Tag(_ref5) {
|
|
|
12535
13136
|
}, renderTag()) : renderTag();
|
|
12536
13137
|
};
|
|
12537
13138
|
|
|
12538
|
-
var _templateObject$
|
|
12539
|
-
var TagListWrapper = styled__default.div(_templateObject$
|
|
13139
|
+
var _templateObject$1e;
|
|
13140
|
+
var TagListWrapper = styled__default.div(_templateObject$1e || (_templateObject$1e = _taggedTemplateLiteralLoose(["\n display: flex;\n ", " {\n margin-right: 10px;\n margin-bottom: 6px;\n flex-shrink: 0;\n }\n flex-wrap: wrap;\n"])), TagWrapper);
|
|
12540
13141
|
|
|
12541
13142
|
var TagList = function TagList(_ref) {
|
|
12542
13143
|
var tagsConfig = _ref.tagsConfig;
|
|
@@ -12583,16 +13184,16 @@ var DebouncedSearcher = function DebouncedSearcher(_ref) {
|
|
|
12583
13184
|
|
|
12584
13185
|
var _excluded$D = ["design", "size", "position", "text"];
|
|
12585
13186
|
|
|
12586
|
-
var _templateObject$
|
|
12587
|
-
var Container$
|
|
12588
|
-
var Title$6 = styled__default.div(_templateObject2$
|
|
13187
|
+
var _templateObject$1f, _templateObject2$16, _templateObject3$_, _templateObject4$U, _templateObject5$O, _templateObject6$B;
|
|
13188
|
+
var Container$R = styled__default.div(_templateObject$1f || (_templateObject$1f = _taggedTemplateLiteralLoose([""])));
|
|
13189
|
+
var Title$6 = styled__default.div(_templateObject2$16 || (_templateObject2$16 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n color: hsl(207, 5%, 57%);\n font-size: 12px;\n font-weight: 700;\n margin-bottom: 17px;\n"])), function (_ref) {
|
|
12589
13190
|
var theme = _ref.theme;
|
|
12590
13191
|
return theme.fontFamily.ui;
|
|
12591
13192
|
});
|
|
12592
|
-
var ButtonsWrapper$1 = styled__default.div(_templateObject3$
|
|
12593
|
-
var LeftButtons = styled__default.div(_templateObject4$
|
|
12594
|
-
var RightButtons = styled__default.div(_templateObject5$
|
|
12595
|
-
var SelectedResults = styled__default.div(_templateObject6$
|
|
13193
|
+
var ButtonsWrapper$1 = styled__default.div(_templateObject3$_ || (_templateObject3$_ = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
13194
|
+
var LeftButtons = styled__default.div(_templateObject4$U || (_templateObject4$U = _taggedTemplateLiteralLoose(["\n button {\n margin: 0 10px 10px 0;\n }\n"])));
|
|
13195
|
+
var RightButtons = styled__default.div(_templateObject5$O || (_templateObject5$O = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n"])));
|
|
13196
|
+
var SelectedResults = styled__default.div(_templateObject6$B || (_templateObject6$B = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n margin-top: 29px;\n min-height: 19px;\n color: hsl(207, 5%, 57%);\n font-size: 12px;\n"])), function (_ref2) {
|
|
12596
13197
|
var theme = _ref2.theme;
|
|
12597
13198
|
return theme.fontFamily.ui;
|
|
12598
13199
|
});
|
|
@@ -12617,7 +13218,7 @@ var ActionsBar = function ActionsBar(_ref3) {
|
|
|
12617
13218
|
totalAvailable = _ref3$totalAvailable === void 0 ? 0 : _ref3$totalAvailable,
|
|
12618
13219
|
_ref3$finishCallback = _ref3.finishCallback,
|
|
12619
13220
|
finishCallback = _ref3$finishCallback === void 0 ? function () {} : _ref3$finishCallback;
|
|
12620
|
-
return React__default.createElement(Container$
|
|
13221
|
+
return React__default.createElement(Container$R, null, React__default.createElement(Title$6, null, title), React__default.createElement(ButtonsWrapper$1, null, React__default.createElement(LeftButtons, null, actionButtons.map(function (_ref4, index) {
|
|
12621
13222
|
var design = _ref4.design,
|
|
12622
13223
|
size = _ref4.size,
|
|
12623
13224
|
position = _ref4.position,
|
|
@@ -12857,18 +13458,18 @@ function useBreakpoints() {
|
|
|
12857
13458
|
return breakpoints;
|
|
12858
13459
|
}
|
|
12859
13460
|
|
|
12860
|
-
var _templateObject$
|
|
12861
|
-
var Container$
|
|
12862
|
-
var Title$7 = styled__default.div(_templateObject2$
|
|
13461
|
+
var _templateObject$1g, _templateObject2$17, _templateObject3$$, _templateObject4$V, _templateObject5$P;
|
|
13462
|
+
var Container$S = styled__default.div(_templateObject$1g || (_templateObject$1g = _taggedTemplateLiteralLoose([""])));
|
|
13463
|
+
var Title$7 = styled__default.div(_templateObject2$17 || (_templateObject2$17 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), function (_ref) {
|
|
12863
13464
|
var typography = _ref.theme.typography;
|
|
12864
13465
|
return typography.modal.title;
|
|
12865
13466
|
});
|
|
12866
|
-
var MessageBox$1 = styled__default.div(_templateObject3
|
|
13467
|
+
var MessageBox$1 = styled__default.div(_templateObject3$$ || (_templateObject3$$ = _taggedTemplateLiteralLoose(["\n ", ";\n margin: 28px 0;\n"])), function (_ref2) {
|
|
12867
13468
|
var typography = _ref2.theme.typography;
|
|
12868
13469
|
return typography.modal.basicContent;
|
|
12869
13470
|
});
|
|
12870
|
-
var StyledButton$5 = styled__default(Button)(_templateObject4$
|
|
12871
|
-
var ButtonsGroup$1 = styled__default.div(_templateObject5$
|
|
13471
|
+
var StyledButton$5 = styled__default(Button)(_templateObject4$V || (_templateObject4$V = _taggedTemplateLiteralLoose(["\n margin-left: 10px;\n"])));
|
|
13472
|
+
var ButtonsGroup$1 = styled__default.div(_templateObject5$P || (_templateObject5$P = _taggedTemplateLiteralLoose(["\n text-align: right;\n"])));
|
|
12872
13473
|
|
|
12873
13474
|
var ConfirmationModal = function ConfirmationModal(_ref3) {
|
|
12874
13475
|
var _ref3$title = _ref3.title,
|
|
@@ -12901,7 +13502,7 @@ var ConfirmationModal = function ConfirmationModal(_ref3) {
|
|
|
12901
13502
|
setModalOpen(false);
|
|
12902
13503
|
};
|
|
12903
13504
|
|
|
12904
|
-
return React__default.createElement(Container$
|
|
13505
|
+
return React__default.createElement(Container$S, null, React__default.createElement(Title$7, null, title), React__default.createElement(MessageBox$1, null, message), React__default.createElement(ButtonsGroup$1, null, React__default.createElement(StyledButton$5, {
|
|
12905
13506
|
design: leftButtonDesign,
|
|
12906
13507
|
onClick: handlePrimaryBtn
|
|
12907
13508
|
}, leftButtonText), React__default.createElement(StyledButton$5, {
|
|
@@ -12910,21 +13511,21 @@ var ConfirmationModal = function ConfirmationModal(_ref3) {
|
|
|
12910
13511
|
}, rightButtonText)));
|
|
12911
13512
|
};
|
|
12912
13513
|
|
|
12913
|
-
var _templateObject$
|
|
13514
|
+
var _templateObject$1h, _templateObject2$18, _templateObject3$10, _templateObject4$W, _templateObject5$Q, _templateObject6$C;
|
|
12914
13515
|
var MOBILE_CLOSE_HEIGHT = 50;
|
|
12915
13516
|
var MOBILE_NAVBAR_HEIGHT = 68;
|
|
12916
|
-
var Layout = styled__default.div(_templateObject$
|
|
12917
|
-
var MobileLayout = styled__default.div(_templateObject2$
|
|
12918
|
-
var Content = styled__default.div(_templateObject3$
|
|
13517
|
+
var Layout = styled__default.div(_templateObject$1h || (_templateObject$1h = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n height: 100%;\n"])));
|
|
13518
|
+
var MobileLayout = styled__default.div(_templateObject2$18 || (_templateObject2$18 = _taggedTemplateLiteralLoose([""])));
|
|
13519
|
+
var Content = styled__default.div(_templateObject3$10 || (_templateObject3$10 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n flex: 1;\n overflow: auto;\n\n & > div {\n max-width: 1400px;\n }\n\n ", "\n"])), function (_ref) {
|
|
12919
13520
|
var _ref$padBottom = _ref.padBottom,
|
|
12920
13521
|
padBottom = _ref$padBottom === void 0 ? true : _ref$padBottom;
|
|
12921
13522
|
return padBottom ? '70px 90px' : '70px 90px 0';
|
|
12922
13523
|
}, function (_ref2) {
|
|
12923
13524
|
var maxWidth = _ref2.maxWidth;
|
|
12924
|
-
return maxWidth && styled.css(_templateObject4$
|
|
13525
|
+
return maxWidth && styled.css(_templateObject4$W || (_templateObject4$W = _taggedTemplateLiteralLoose(["\n & > div {\n max-width: ", ";\n }\n "])), maxWidth);
|
|
12925
13526
|
});
|
|
12926
|
-
var MainContainer = styled__default.div(_templateObject5$
|
|
12927
|
-
var ContentArea = styled__default.div(_templateObject6$
|
|
13527
|
+
var MainContainer = styled__default.div(_templateObject5$Q || (_templateObject5$Q = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"])));
|
|
13528
|
+
var ContentArea = styled__default.div(_templateObject6$C || (_templateObject6$C = _taggedTemplateLiteralLoose(["\n flex: 1;\n width: 100%;\n padding: ", ";\n margin-left: auto;\n margin-right: auto;\n\n @media ", " {\n padding: ", ";\n }\n\n @media ", " {\n max-width: ", ";\n padding: ", ";\n }\n"])), function (_ref3) {
|
|
12928
13529
|
var paddingOverride = _ref3.paddingOverride;
|
|
12929
13530
|
return paddingOverride ? paddingOverride : '40px 20px';
|
|
12930
13531
|
}, deviceMediaQuery.medium, function (_ref4) {
|
|
@@ -12938,45 +13539,45 @@ var ContentArea = styled__default.div(_templateObject6$B || (_templateObject6$B
|
|
|
12938
13539
|
return paddingOverride ? paddingOverride : '70px 90px';
|
|
12939
13540
|
});
|
|
12940
13541
|
|
|
12941
|
-
var _templateObject$
|
|
12942
|
-
var ContextTitle = styled__default.div(_templateObject$
|
|
13542
|
+
var _templateObject$1i, _templateObject2$19, _templateObject3$11, _templateObject4$X, _templateObject5$R, _templateObject6$D, _templateObject7$z, _templateObject8$v, _templateObject9$q, _templateObject10$l, _templateObject11$d, _templateObject12$a, _templateObject13$9, _templateObject14$7, _templateObject15$5, _templateObject16$5, _templateObject17$5, _templateObject18$3, _templateObject19$3, _templateObject20$3, _templateObject21$3;
|
|
13543
|
+
var ContextTitle = styled__default.div(_templateObject$1i || (_templateObject$1i = _taggedTemplateLiteralLoose(["\n opacity: 0;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
12943
13544
|
var theme = _ref.theme;
|
|
12944
|
-
return styled.css(_templateObject2$
|
|
13545
|
+
return styled.css(_templateObject2$19 || (_templateObject2$19 = _taggedTemplateLiteralLoose(["\n transition: opacity ", " ", ";\n "])), theme.animation.speed.fast, theme.animation.easing.primary.easeInOut);
|
|
12945
13546
|
}, function (_ref2) {
|
|
12946
13547
|
var compact = _ref2.compact;
|
|
12947
|
-
return compact && styled.css(_templateObject3
|
|
13548
|
+
return compact && styled.css(_templateObject3$11 || (_templateObject3$11 = _taggedTemplateLiteralLoose(["\n font-size:14px;\n "])));
|
|
12948
13549
|
});
|
|
12949
|
-
var ContextIcon = styled__default.div(_templateObject4$
|
|
13550
|
+
var ContextIcon$1 = styled__default.div(_templateObject4$X || (_templateObject4$X = _taggedTemplateLiteralLoose(["\n ", ";\n\n flex: 0 0 40px;\n width: 40px;\n height: 40px;\n margin: 0 20px;\n\n border-radius: 7px;\n display:flex;\n justify-content:center;\n align-items:center;\n\n svg {\n display: block;\n }\n"])), function (_ref3) {
|
|
12950
13551
|
var theme = _ref3.theme;
|
|
12951
|
-
return styled.css(_templateObject5$
|
|
13552
|
+
return styled.css(_templateObject5$R || (_templateObject5$R = _taggedTemplateLiteralLoose(["\n ", ";\n transition: background ", " ", ";\n "])), theme.styles.global.mainMenu.iconBackground["default"], theme.animation.speed.fast, theme.animation.easing.primary.easeInOut);
|
|
12952
13553
|
});
|
|
12953
|
-
var ContextIndicator = styled__default.div(_templateObject6$
|
|
13554
|
+
var ContextIndicator = styled__default.div(_templateObject6$D || (_templateObject6$D = _taggedTemplateLiteralLoose(["\n width: 12px;\n height: 12px;\n flex: 0 0 14px;\n margin: 0 20px 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n display: block;\n height: 12px;\n width: 12px;\n }\n\n opacity: 0;\n\n ", "\n\n"])), function (_ref4) {
|
|
12954
13555
|
var theme = _ref4.theme;
|
|
12955
|
-
return styled.css(_templateObject7$
|
|
13556
|
+
return styled.css(_templateObject7$z || (_templateObject7$z = _taggedTemplateLiteralLoose(["\n transition: opacity 0 ", ";\n "])), theme.animation.easing.primary.easeInOut);
|
|
12956
13557
|
});
|
|
12957
|
-
var ContextActionBaseCSS = styled.css(_templateObject8$
|
|
12958
|
-
var StyledAnchor = styled__default.a(_templateObject9$
|
|
12959
|
-
var ExternalIconWrapper = styled__default.div(_templateObject10$
|
|
12960
|
-
var ContextWrapper = styled__default.div(_templateObject11$d || (_templateObject11$d = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n\n &:hover ", "{\n opacity: 1;\n ", ";\n ", "{\n [stroke]{\n stroke: ", ";\n }\n }\n }\n"])), ContextActionBaseCSS, function (_ref5) {
|
|
13558
|
+
var ContextActionBaseCSS$1 = styled.css(_templateObject8$v || (_templateObject8$v = _taggedTemplateLiteralLoose(["\n -webkit-tap-highlight-color: transparent;\n border: none;\n background: none;\n display: flex;\n justify-content:left;\n align-items:center;\n flex-wrap: wrap;\n cursor: pointer;\n width: 100%;\n outline: none;\n padding: 0;\n text-decoration: none;\n"])));
|
|
13559
|
+
var StyledAnchor = styled__default.a(_templateObject9$q || (_templateObject9$q = _taggedTemplateLiteralLoose(["\n display: flex;\n text-decoration: none;\n"])));
|
|
13560
|
+
var ExternalIconWrapper = styled__default.div(_templateObject10$l || (_templateObject10$l = _taggedTemplateLiteralLoose(["\n margin-left: 15px;\n"])));
|
|
13561
|
+
var ContextWrapper = styled__default.div(_templateObject11$d || (_templateObject11$d = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n\n &:hover ", "{\n opacity: 1;\n ", ";\n ", "{\n [stroke]{\n stroke: ", ";\n }\n }\n }\n"])), ContextActionBaseCSS$1, function (_ref5) {
|
|
12961
13562
|
var theme = _ref5.theme;
|
|
12962
|
-
return theme && styled.css(_templateObject12$
|
|
13563
|
+
return theme && styled.css(_templateObject12$a || (_templateObject12$a = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.menuItem["default"]);
|
|
12963
13564
|
}, function (_ref6) {
|
|
12964
13565
|
var $menuOpen = _ref6.$menuOpen;
|
|
12965
|
-
return $menuOpen && styled.css(_templateObject13$
|
|
12966
|
-
}, ContextIcon, function (_ref7) {
|
|
13566
|
+
return $menuOpen && styled.css(_templateObject13$9 || (_templateObject13$9 = _taggedTemplateLiteralLoose(["\n ", "{\n opacity: 1;\n }\n"])), ContextTitle);
|
|
13567
|
+
}, ContextIcon$1, function (_ref7) {
|
|
12967
13568
|
var theme = _ref7.theme;
|
|
12968
13569
|
return theme.styles.global.mainMenu.iconBackground.hover;
|
|
12969
13570
|
}, IconWrapper, function (_ref8) {
|
|
12970
13571
|
var theme = _ref8.theme;
|
|
12971
13572
|
return theme.colors.icons['inverse'];
|
|
12972
13573
|
});
|
|
12973
|
-
var ContextActionA = styled__default(reactRouterDom.Link)(_templateObject14$
|
|
13574
|
+
var ContextActionA = styled__default(reactRouterDom.Link)(_templateObject14$7 || (_templateObject14$7 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n\n &:hover ", "{\n opacity: 1;\n ", ";\n ", "{\n [stroke]{\n stroke: ", ";\n }\n }\n }\n\n ", "\n"])), ContextActionBaseCSS$1, function (_ref9) {
|
|
12974
13575
|
var theme = _ref9.theme;
|
|
12975
|
-
return theme && styled.css(_templateObject15$
|
|
13576
|
+
return theme && styled.css(_templateObject15$5 || (_templateObject15$5 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.menuItem["default"]);
|
|
12976
13577
|
}, function (_ref10) {
|
|
12977
13578
|
var $menuOpen = _ref10.$menuOpen;
|
|
12978
|
-
return $menuOpen && styled.css(_templateObject16$
|
|
12979
|
-
}, ContextIcon, function (_ref11) {
|
|
13579
|
+
return $menuOpen && styled.css(_templateObject16$5 || (_templateObject16$5 = _taggedTemplateLiteralLoose(["\n ", "{\n opacity: 1;\n }\n "])), ContextTitle);
|
|
13580
|
+
}, ContextIcon$1, function (_ref11) {
|
|
12980
13581
|
var theme = _ref11.theme;
|
|
12981
13582
|
return theme.styles.global.mainMenu.iconBackground.hover;
|
|
12982
13583
|
}, IconWrapper, function (_ref12) {
|
|
@@ -12984,19 +13585,19 @@ var ContextActionA = styled__default(reactRouterDom.Link)(_templateObject14$5 ||
|
|
|
12984
13585
|
return theme.colors.icons['inverse'];
|
|
12985
13586
|
}, function (_ref13) {
|
|
12986
13587
|
var $isActive = _ref13.$isActive;
|
|
12987
|
-
return $isActive && styled.css(_templateObject17$
|
|
13588
|
+
return $isActive && styled.css(_templateObject17$5 || (_templateObject17$5 = _taggedTemplateLiteralLoose(["\n ", ",\n &:hover ", "{\n ", ";\n }\n "])), ContextIcon$1, ContextIcon$1, function (_ref14) {
|
|
12988
13589
|
var theme = _ref14.theme;
|
|
12989
13590
|
return theme.styles.global.mainMenu.iconBackground.active;
|
|
12990
13591
|
});
|
|
12991
13592
|
});
|
|
12992
|
-
var ContextActionButton = styled__default.button(_templateObject18$
|
|
13593
|
+
var ContextActionButton$1 = styled__default.button(_templateObject18$3 || (_templateObject18$3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n\n ", "\n\n &:hover ", "{\n opacity: 1;\n ", ";\n ", "{\n [stroke]{\n stroke: ", ";\n }\n }\n }\n\n ", "\n"])), ContextActionBaseCSS$1, function (_ref15) {
|
|
12993
13594
|
var theme = _ref15.theme;
|
|
12994
|
-
return theme && styled.css(_templateObject19$
|
|
13595
|
+
return theme && styled.css(_templateObject19$3 || (_templateObject19$3 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.menuItem["default"]);
|
|
12995
13596
|
}, function (_ref16) {
|
|
12996
13597
|
var menuOpen = _ref16.menuOpen,
|
|
12997
13598
|
theme = _ref16.theme;
|
|
12998
|
-
return menuOpen && styled.css(_templateObject20$
|
|
12999
|
-
}, ContextIcon, function (_ref17) {
|
|
13599
|
+
return menuOpen && styled.css(_templateObject20$3 || (_templateObject20$3 = _taggedTemplateLiteralLoose(["\n ", "{\n opacity: 1;\n }\n\n ", "{\n opacity: 1;\n transition: opacity ", " ", " ", ";\n }\n "])), ContextTitle, ContextIndicator, theme.animation.speed.normal, theme.animation.easing.primary.easeInOut, theme.animation.speed.fast);
|
|
13600
|
+
}, ContextIcon$1, function (_ref17) {
|
|
13000
13601
|
var theme = _ref17.theme;
|
|
13001
13602
|
return theme.styles.global.mainMenu.iconBackground.hover;
|
|
13002
13603
|
}, IconWrapper, function (_ref18) {
|
|
@@ -13004,7 +13605,7 @@ var ContextActionButton = styled__default.button(_templateObject18$2 || (_templa
|
|
|
13004
13605
|
return theme.colors.icons['inverse'];
|
|
13005
13606
|
}, function (_ref19) {
|
|
13006
13607
|
var isActive = _ref19.isActive;
|
|
13007
|
-
return isActive && styled.css(_templateObject21$
|
|
13608
|
+
return isActive && styled.css(_templateObject21$3 || (_templateObject21$3 = _taggedTemplateLiteralLoose(["\n ", ",\n &:hover ", "{\n ", ";\n }\n "])), ContextIcon$1, ContextIcon$1, function (_ref20) {
|
|
13008
13609
|
var theme = _ref20.theme;
|
|
13009
13610
|
return theme.styles.global.mainMenu.iconBackground.active;
|
|
13010
13611
|
});
|
|
@@ -13024,7 +13625,7 @@ var ContextItem = function ContextItem(_ref21) {
|
|
|
13024
13625
|
isActive = _ref21.isActive,
|
|
13025
13626
|
isExternalLink = _ref21.isExternalLink,
|
|
13026
13627
|
onClickCallback = _ref21.onClickCallback;
|
|
13027
|
-
var internal = React__default.createElement(React__default.Fragment, null, React__default.createElement(ContextIcon, Object.assign({}, {
|
|
13628
|
+
var internal = React__default.createElement(React__default.Fragment, null, React__default.createElement(ContextIcon$1, Object.assign({}, {
|
|
13028
13629
|
compact: compact
|
|
13029
13630
|
}), React__default.createElement(Icon, {
|
|
13030
13631
|
icon: icon,
|
|
@@ -13038,7 +13639,7 @@ var ContextItem = function ContextItem(_ref21) {
|
|
|
13038
13639
|
})) : null);
|
|
13039
13640
|
|
|
13040
13641
|
if (hasSubmenu) {
|
|
13041
|
-
return React__default.createElement(ContextActionButton, {
|
|
13642
|
+
return React__default.createElement(ContextActionButton$1, {
|
|
13042
13643
|
menuOpen: menuOpen,
|
|
13043
13644
|
isActive: isActive,
|
|
13044
13645
|
onClick: function onClick() {
|
|
@@ -13200,42 +13801,42 @@ var useMenu = function useMenu(defaultMenuOpen, canAlwaysPin) {
|
|
|
13200
13801
|
};
|
|
13201
13802
|
};
|
|
13202
13803
|
|
|
13203
|
-
var _templateObject$
|
|
13204
|
-
var Submenu = styled__default.ul(_templateObject$
|
|
13205
|
-
var SubmenuHeader = styled__default.div(_templateObject2$
|
|
13206
|
-
var SubmenuItemTitle = styled__default.span(_templateObject3$
|
|
13804
|
+
var _templateObject$1j, _templateObject2$1a, _templateObject3$12, _templateObject4$Y, _templateObject5$S, _templateObject6$E, _templateObject7$A, _templateObject8$w, _templateObject9$r, _templateObject10$m, _templateObject11$e, _templateObject12$b, _templateObject13$a, _templateObject14$8, _templateObject15$6;
|
|
13805
|
+
var Submenu = styled__default.ul(_templateObject$1j || (_templateObject$1j = _taggedTemplateLiteralLoose(["\n display: block;\n position: relative;\n margin-left: 40px;\n padding: 0;\n\n"])));
|
|
13806
|
+
var SubmenuHeader = styled__default.div(_templateObject2$1a || (_templateObject2$1a = _taggedTemplateLiteralLoose(["\n display: block;\n height: 40px;\n margin-left: 40px;\n"])));
|
|
13807
|
+
var SubmenuItemTitle = styled__default.span(_templateObject3$12 || (_templateObject3$12 = _taggedTemplateLiteralLoose(["\n display: block;\n ", ";\n\n"])), function (_ref) {
|
|
13207
13808
|
var theme = _ref.theme;
|
|
13208
|
-
return theme && styled.css(_templateObject4$
|
|
13809
|
+
return theme && styled.css(_templateObject4$Y || (_templateObject4$Y = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", "\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.subheader);
|
|
13209
13810
|
});
|
|
13210
|
-
var SubmenuItemLink = styled__default(reactRouterDom.Link)(_templateObject5$
|
|
13211
|
-
var ExternalIconWrapper$1 = styled__default.div(_templateObject6$
|
|
13212
|
-
var SubmenuItemAnchor = styled__default.a(_templateObject7$
|
|
13213
|
-
var SubmenuItem = styled__default.li(_templateObject8$
|
|
13811
|
+
var SubmenuItemLink = styled__default(reactRouterDom.Link)(_templateObject5$S || (_templateObject5$S = _taggedTemplateLiteralLoose(["\n ", ";\n display: block;\n"])), resetButtonStyles);
|
|
13812
|
+
var ExternalIconWrapper$1 = styled__default.div(_templateObject6$E || (_templateObject6$E = _taggedTemplateLiteralLoose(["\n margin-left: 15px;\n"])));
|
|
13813
|
+
var SubmenuItemAnchor = styled__default.a(_templateObject7$A || (_templateObject7$A = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n align-items: center;\n"])), resetButtonStyles);
|
|
13814
|
+
var SubmenuItem = styled__default.li(_templateObject8$w || (_templateObject8$w = _taggedTemplateLiteralLoose(["\n display: block;\n height: 30px;\n padding-left: 40px;\n position: relative;\n\n &::after {\n display: block;\n content: '';\n height: 1px;\n width: 14px;\n position: absolute;\n left: 0;\n top: 10px;\n background: ", ";\n }\n\n ", ", ", "{\n\n ", ";\n\n\n\n }\n"])), function (_ref2) {
|
|
13214
13815
|
var colors = _ref2.theme.colors;
|
|
13215
13816
|
return colors.divider;
|
|
13216
13817
|
}, SubmenuItemLink, SubmenuItemAnchor, function (_ref3) {
|
|
13217
13818
|
var theme = _ref3.theme,
|
|
13218
13819
|
isActive = _ref3.isActive;
|
|
13219
|
-
return theme && styled.css(_templateObject9$
|
|
13820
|
+
return theme && styled.css(_templateObject9$r || (_templateObject9$r = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n\n &:hover {\n ", ";\n }\n\n ", "\n\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.subItem["default"], theme.typography.global.mainMenu.subItem.hover, isActive && styled.css(_templateObject10$m || (_templateObject10$m = _taggedTemplateLiteralLoose(["\n &, &:hover {\n ", ";\n }\n "])), theme.typography.global.mainMenu.subItem.active));
|
|
13220
13821
|
});
|
|
13221
13822
|
var SubmenuContainer = styled__default.div(_templateObject11$e || (_templateObject11$e = _taggedTemplateLiteralLoose(["\n ", ";\n\n position: relative;\n overflow: hidden;\n\n &::after {\n display: block;\n content: '';\n width: 1px;\n position: absolute;\n left: 40px;\n top: 0;\n bottom: 35px;\n background: ", ";\n }\n\n"])), function (_ref4) {
|
|
13222
13823
|
var theme = _ref4.theme;
|
|
13223
|
-
return theme && styled.css(_templateObject12$
|
|
13824
|
+
return theme && styled.css(_templateObject12$b || (_templateObject12$b = _taggedTemplateLiteralLoose(["\n transition:\n max-height ", " ", ",\n opacity ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeOut, theme.animation.speed.fast, theme.animation.easing.primary.easeOut);
|
|
13224
13825
|
}, function (_ref5) {
|
|
13225
13826
|
var colors = _ref5.theme.colors;
|
|
13226
13827
|
return colors.divider;
|
|
13227
13828
|
});
|
|
13228
|
-
var ContextContainer = styled__default.div(_templateObject13$
|
|
13829
|
+
var ContextContainer = styled__default.div(_templateObject13$a || (_templateObject13$a = _taggedTemplateLiteralLoose(["\n min-height: ", ";\n width: inherit;\n\n ", "{\n max-height: 0;\n opacity: 0;\n }\n ", ";\n\n ", ";\n\n"])), function (_ref6) {
|
|
13229
13830
|
var minHeight = _ref6.minHeight;
|
|
13230
13831
|
return minHeight ? minHeight + "px" : "70px";
|
|
13231
13832
|
}, SubmenuContainer, function (_ref7) {
|
|
13232
13833
|
var open = _ref7.open,
|
|
13233
13834
|
maxHeight = _ref7.maxHeight,
|
|
13234
13835
|
theme = _ref7.theme;
|
|
13235
|
-
return open && styled.css(_templateObject14$
|
|
13836
|
+
return open && styled.css(_templateObject14$8 || (_templateObject14$8 = _taggedTemplateLiteralLoose(["\n ", "{\n transition:\n max-height ", " ", ",\n opacity ", " ", ";\n max-height: ", "px !important;\n opacity: 1;\n }\n "])), SubmenuContainer, theme.animation.speed.normal, theme.animation.easing.primary.easeOut, theme.animation.speed.fast, theme.animation.easing.primary.easeOut, maxHeight);
|
|
13236
13837
|
}, function (_ref8) {
|
|
13237
13838
|
var loading = _ref8.loading;
|
|
13238
|
-
return loading === 'true' && styled.css(_templateObject15$
|
|
13839
|
+
return loading === 'true' && styled.css(_templateObject15$6 || (_templateObject15$6 = _taggedTemplateLiteralLoose(["\n ", "{\n max-height: none !important;\n opacity: 1;\n }\n "])), SubmenuContainer);
|
|
13239
13840
|
});
|
|
13240
13841
|
|
|
13241
13842
|
var NavigationItem = function NavigationItem(_ref9) {
|
|
@@ -13347,30 +13948,30 @@ var generateSubmenus = function generateSubmenus(submenu, onClickCallback) {
|
|
|
13347
13948
|
return output;
|
|
13348
13949
|
};
|
|
13349
13950
|
|
|
13350
|
-
var _templateObject$
|
|
13351
|
-
var Logo = styled__default(reactRouterDom.Link)(_templateObject$
|
|
13352
|
-
var LogoMark = styled__default.div(_templateObject2$
|
|
13353
|
-
var LogoType = styled__default.div(_templateObject3$
|
|
13354
|
-
var SVGObject = styled__default.object(_templateObject4$
|
|
13355
|
-
var SVGObjectText = styled__default.object(_templateObject5$
|
|
13356
|
-
var NavigationContainer = styled__default.div(_templateObject6$
|
|
13357
|
-
var MenuFooter = styled__default.div(_templateObject7$
|
|
13951
|
+
var _templateObject$1k, _templateObject2$1b, _templateObject3$13, _templateObject4$Z, _templateObject5$T, _templateObject6$F, _templateObject7$B, _templateObject8$x, _templateObject9$s, _templateObject10$n, _templateObject11$f, _templateObject12$c, _templateObject13$b, _templateObject14$9, _templateObject15$7;
|
|
13952
|
+
var Logo = styled__default(reactRouterDom.Link)(_templateObject$1k || (_templateObject$1k = _taggedTemplateLiteralLoose(["\n height: 50px;\n margin: 0 20px 55px 15px;\n display: flex;\n\n object {\n pointer-events: none;\n }\n"])));
|
|
13953
|
+
var LogoMark = styled__default.div(_templateObject2$1b || (_templateObject2$1b = _taggedTemplateLiteralLoose(["\n height: 50px;\n flex: 0 0 50px;\n margin-right: 15px;\n display: flex;\n justify-content: center;\n align-items: center;\n\n"])));
|
|
13954
|
+
var LogoType = styled__default.div(_templateObject3$13 || (_templateObject3$13 = _taggedTemplateLiteralLoose(["\n opacity: 0;\n flex: 1;\n height: 50px;\n display: flex;\n justify-content: left;\n align-items: center;\n"])));
|
|
13955
|
+
var SVGObject = styled__default.object(_templateObject4$Z || (_templateObject4$Z = _taggedTemplateLiteralLoose([""])));
|
|
13956
|
+
var SVGObjectText = styled__default.object(_templateObject5$T || (_templateObject5$T = _taggedTemplateLiteralLoose(["\n max-width: 180px;\n"])));
|
|
13957
|
+
var NavigationContainer = styled__default.div(_templateObject6$F || (_templateObject6$F = _taggedTemplateLiteralLoose([""])));
|
|
13958
|
+
var MenuFooter = styled__default.div(_templateObject7$B || (_templateObject7$B = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n flex-direction: column;\n flex: 1;\n justify-content: flex-end;\n"])), function (_ref) {
|
|
13358
13959
|
var theme = _ref.theme;
|
|
13359
|
-
return theme && styled.css(_templateObject8$
|
|
13960
|
+
return theme && styled.css(_templateObject8$x || (_templateObject8$x = _taggedTemplateLiteralLoose(["\n ", "\n "])), theme.styles.global.mainMenu.footerBackground);
|
|
13360
13961
|
});
|
|
13361
|
-
var FooterItemContainer = styled__default.div(_templateObject9$
|
|
13362
|
-
var PushContainer = styled__default.div(_templateObject10$
|
|
13962
|
+
var FooterItemContainer = styled__default.div(_templateObject9$s || (_templateObject9$s = _taggedTemplateLiteralLoose(["\n min-height: 70px;\n"])));
|
|
13963
|
+
var PushContainer = styled__default.div(_templateObject10$n || (_templateObject10$n = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 100%;\n ", ";\n"])), function (_ref2) {
|
|
13363
13964
|
var theme = _ref2.theme,
|
|
13364
13965
|
isPinned = _ref2.isPinned;
|
|
13365
13966
|
return theme && styled.css(_templateObject11$f || (_templateObject11$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), isPinned ? theme.dimensions.global.mainMenu.width.open : theme.dimensions.global.mainMenu.width.closed);
|
|
13366
13967
|
});
|
|
13367
|
-
var Container$
|
|
13968
|
+
var Container$T = styled__default.div(_templateObject12$c || (_templateObject12$c = _taggedTemplateLiteralLoose(["\n z-index: 99;\n position: fixed;\n top: 0;\n left: 0;\n ", "\n\n box-sizing: border-box;\n height: 100%;\n padding: 20px 0 0 0;\n overflow: hidden;\n"])), function (_ref3) {
|
|
13368
13969
|
var theme = _ref3.theme,
|
|
13369
13970
|
open = _ref3.open,
|
|
13370
13971
|
desktopSize = _ref3.desktopSize;
|
|
13371
|
-
return theme && styled.css(_templateObject13$
|
|
13972
|
+
return theme && styled.css(_templateObject13$b || (_templateObject13$b = _taggedTemplateLiteralLoose(["\n ", "\n ", ";\n width: ", ";\n border-right: 1px solid ", ";\n\n ", "{\n transition: opacity ", " ", ";\n opacity: ", ";\n }\n "])), theme.styles.global.mainMenu.background, desktopSize === 'xxlarge' ? "" : styled.css(_templateObject14$9 || (_templateObject14$9 = _taggedTemplateLiteralLoose(["\n transition: width ", " ", "\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeOut), open ? theme.dimensions.global.mainMenu.width.open : theme.dimensions.global.mainMenu.width.closed, theme.styles.global.mainMenu.lines.backgroundColor, LogoType, theme.animation.speed.normal, theme.animation.easing.primary.easeInOut, open ? 1 : 0);
|
|
13372
13973
|
});
|
|
13373
|
-
var ContainerInner = styled__default.div(_templateObject15$
|
|
13974
|
+
var ContainerInner = styled__default.div(_templateObject15$7 || (_templateObject15$7 = _taggedTemplateLiteralLoose(["\n width: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"])), function (_ref4) {
|
|
13374
13975
|
var theme = _ref4.theme;
|
|
13375
13976
|
return theme.dimensions.global.mainMenu.width.open;
|
|
13376
13977
|
});
|
|
@@ -13390,7 +13991,8 @@ var MainMenu = function MainMenu(_ref5) {
|
|
|
13390
13991
|
defaultMenuOpen = _ref5$defaultMenuOpen === void 0 ? true : _ref5$defaultMenuOpen,
|
|
13391
13992
|
_ref5$canAlwaysPin = _ref5.canAlwaysPin,
|
|
13392
13993
|
canAlwaysPin = _ref5$canAlwaysPin === void 0 ? false : _ref5$canAlwaysPin,
|
|
13393
|
-
onMenuToggle = _ref5.onMenuToggle
|
|
13994
|
+
_ref5$onMenuToggle = _ref5.onMenuToggle,
|
|
13995
|
+
onMenuToggle = _ref5$onMenuToggle === void 0 ? function () {} : _ref5$onMenuToggle;
|
|
13394
13996
|
|
|
13395
13997
|
var _useMenu = useMenu(defaultMenuOpen, canAlwaysPin),
|
|
13396
13998
|
menuState = _useMenu.menuState,
|
|
@@ -13414,29 +14016,20 @@ var MainMenu = function MainMenu(_ref5) {
|
|
|
13414
14016
|
}
|
|
13415
14017
|
|
|
13416
14018
|
setMenuOpen();
|
|
13417
|
-
|
|
13418
|
-
if (onMenuToggle) {
|
|
13419
|
-
onMenuToggle(true);
|
|
13420
|
-
}
|
|
13421
|
-
}, [onMenuToggle, setMenuOpen]);
|
|
14019
|
+
}, [setMenuOpen]);
|
|
13422
14020
|
var autoMenuClose = React.useCallback(function () {
|
|
13423
14021
|
setMenuClose();
|
|
13424
|
-
|
|
13425
|
-
if (onMenuToggle) {
|
|
13426
|
-
onMenuToggle(false);
|
|
13427
|
-
}
|
|
13428
|
-
}, [onMenuToggle, setMenuClose]);
|
|
14022
|
+
}, [setMenuClose]);
|
|
13429
14023
|
var toggleMenuPin = React.useCallback(function (e) {
|
|
13430
14024
|
if (e.pointerType === 'touch') {
|
|
13431
14025
|
return;
|
|
13432
14026
|
}
|
|
13433
14027
|
|
|
13434
14028
|
togglePinned();
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
}, [onMenuToggle, togglePinned]);
|
|
14029
|
+
}, [togglePinned]);
|
|
14030
|
+
React.useEffect(function () {
|
|
14031
|
+
onMenuToggle(menuState.isMenuOpen);
|
|
14032
|
+
}, [menuState.isMenuOpen, onMenuToggle]);
|
|
13440
14033
|
var setFocusedContextCb = React.useCallback(function (contextKey) {
|
|
13441
14034
|
if (contextKey === -1) {
|
|
13442
14035
|
return;
|
|
@@ -13453,7 +14046,7 @@ var MainMenu = function MainMenu(_ref5) {
|
|
|
13453
14046
|
}, [checkedInItems, content]);
|
|
13454
14047
|
return React__default.createElement(PushContainer, {
|
|
13455
14048
|
isPinned: menuState.isMenuPinned
|
|
13456
|
-
}, ReactDom.createPortal(React__default.createElement(Container$
|
|
14049
|
+
}, ReactDom.createPortal(React__default.createElement(Container$T, {
|
|
13457
14050
|
open: menuState.isMenuOpen,
|
|
13458
14051
|
desktopSize: menuState.desktopSize,
|
|
13459
14052
|
onPointerEnter: menuState.isMenuPinned ? function () {} : autoMenuOpen,
|
|
@@ -13500,20 +14093,109 @@ var MainMenu = function MainMenu(_ref5) {
|
|
|
13500
14093
|
})) : null))), document.body));
|
|
13501
14094
|
};
|
|
13502
14095
|
|
|
13503
|
-
var _templateObject$
|
|
13504
|
-
var
|
|
14096
|
+
var _templateObject$1l, _templateObject2$1c, _templateObject3$14, _templateObject4$_, _templateObject5$U, _templateObject6$G, _templateObject7$C, _templateObject8$y, _templateObject9$t, _templateObject10$o, _templateObject11$g;
|
|
14097
|
+
var MetaConatiner = styled__default.div(_templateObject$1l || (_templateObject$1l = _taggedTemplateLiteralLoose(["\n margin: 10px 10px;\n border: 1px solid #e2e2e380;\n background-color: #eeeded80;\n border-radius: 5px;\n &:active {\n box-shadow: 4px 4px #eeeded80;\n }\n"])));
|
|
14098
|
+
var LabelTitle = styled__default.div(_templateObject2$1c || (_templateObject2$1c = _taggedTemplateLiteralLoose(["\n max-width: 130px;\n overflow-wrap: initial;\n white-space: break-spaces;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n opacity: 0.76;\n font-size: 10px;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: #575757;\n font-family: ", ";\n margin-top: 2px;\n"])), function (_ref) {
|
|
14099
|
+
var theme = _ref.theme;
|
|
14100
|
+
return theme.fontFamily.ui;
|
|
14101
|
+
});
|
|
14102
|
+
var LabelContent = styled__default.div(_templateObject3$14 || (_templateObject3$14 = _taggedTemplateLiteralLoose(["\n font-size: 10px;\n padding-left: 10px;\n max-width: 200px;\n overflow-wrap: initial;\n white-space: break-spaces;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 4px 0 5px 0;\n white-space: nowrap;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: rgba(87, 87, 87, 0.5);\n"])));
|
|
14103
|
+
var LabelNotes = styled__default.div(_templateObject4$_ || (_templateObject4$_ = _taggedTemplateLiteralLoose(["\n padding-left: 10px;\n max-width: 200px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 5px 0 8px 0;\n max-height: 23px;\n font-size: 10px;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: rgba(87, 87, 87, 0.5);\n ", "\n"])), function (_ref2) {
|
|
14104
|
+
var theme = _ref2.theme;
|
|
14105
|
+
return theme && styled.css(_templateObject5$U || (_templateObject5$U = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n "])), theme.fontFamily.data);
|
|
14106
|
+
});
|
|
14107
|
+
var TitleContainer = styled__default.div(_templateObject6$G || (_templateObject6$G = _taggedTemplateLiteralLoose(["\n display: flex;\n gap:6px;\n flex-direction: row;\n align-items: center;\n margin-left: 10px;\n margin: 3px 0 5px 10px;\n"])));
|
|
14108
|
+
var Container$U = styled__default.div(_templateObject7$C || (_templateObject7$C = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
|
|
14109
|
+
var TitleBox = styled__default.div(_templateObject8$y || (_templateObject8$y = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
14110
|
+
var IconBox = styled__default.div(_templateObject9$t || (_templateObject9$t = _taggedTemplateLiteralLoose(["\n padding: 1px 5px 0 0;\n opacity: 0;\n ", ":hover & {\n opacity: 1;\n cursor: pointer;\n }\n"])), Container$U);
|
|
14111
|
+
var CopyTextBox = styled__default.pre(_templateObject10$o || (_templateObject10$o = _taggedTemplateLiteralLoose(["\n padding: 5px;\n font-size: 10px;\n line-height: 1.2;\n box-shadow: 2px 2px 4px (195deg 16% 72% / 72%);\n border: 1px solid hsl(195deg 5% 60% / 72%);\n background-color: #f8f9fa;\n border-radius: 5px;\n opacity: 0.76;\n font-weight: 500;\n color: #575757;\n position: absolute;\n max-width: 170px;\n white-space: pre-wrap;\n font-family: ", ";\n right:10px;\n margin-top: -23px;\n"])), function (_ref3) {
|
|
14112
|
+
var theme = _ref3.theme;
|
|
14113
|
+
return theme.fontFamily.data;
|
|
14114
|
+
});
|
|
14115
|
+
var CopyBox = styled__default.div(_templateObject11$g || (_templateObject11$g = _taggedTemplateLiteralLoose(["\n"])));
|
|
14116
|
+
|
|
14117
|
+
var UserDrawerMeta = function UserDrawerMeta(_ref4) {
|
|
14118
|
+
var item = _ref4.item,
|
|
14119
|
+
onUserDrawerMetaClick = _ref4.onUserDrawerMetaClick,
|
|
14120
|
+
copySuccessMessage = _ref4.copySuccessMessage,
|
|
14121
|
+
includeCopyTitle = _ref4.includeCopyTitle;
|
|
14122
|
+
var icon = item.icon,
|
|
14123
|
+
title = item.title,
|
|
14124
|
+
subTitle = item.subTitle,
|
|
14125
|
+
notes = item.notes,
|
|
14126
|
+
hasCopyIcon = item.hasCopyIcon;
|
|
14127
|
+
|
|
14128
|
+
var _useCopyToClipboard = useCopyToClipboard(),
|
|
14129
|
+
copyToClipboard = _useCopyToClipboard.copyToClipboard;
|
|
14130
|
+
|
|
14131
|
+
var _useState = React.useState(false),
|
|
14132
|
+
showCopyText = _useState[0],
|
|
14133
|
+
setShowCopyText = _useState[1];
|
|
14134
|
+
|
|
14135
|
+
var _useState2 = React.useState('dimmed'),
|
|
14136
|
+
onHoverColorValue = _useState2[0],
|
|
14137
|
+
setOnHoverColorValue = _useState2[1];
|
|
14138
|
+
|
|
14139
|
+
var onClickCopyText = React.useCallback(function (title, subTitle, notes) {
|
|
14140
|
+
var copyText;
|
|
14141
|
+
|
|
14142
|
+
if (includeCopyTitle) {
|
|
14143
|
+
copyText = (title ? title : '') + '\n' + (subTitle ? subTitle : '') + '\n' + (notes ? notes : '');
|
|
14144
|
+
} else {
|
|
14145
|
+
copyText = (subTitle ? subTitle : '') + '\n' + (notes ? notes : '');
|
|
14146
|
+
}
|
|
14147
|
+
|
|
14148
|
+
copyToClipboard(copyText);
|
|
14149
|
+
setShowCopyText(true);
|
|
14150
|
+
setTimeout(function () {
|
|
14151
|
+
setShowCopyText(false);
|
|
14152
|
+
}, 1500);
|
|
14153
|
+
}, [includeCopyTitle, copyToClipboard]);
|
|
14154
|
+
var onHoverMetaInfo = React.useCallback(function () {
|
|
14155
|
+
setOnHoverColorValue('mono');
|
|
14156
|
+
}, []);
|
|
14157
|
+
var onLeaveMeatInfo = React.useCallback(function () {
|
|
14158
|
+
setOnHoverColorValue('dimmed');
|
|
14159
|
+
}, []);
|
|
14160
|
+
return React__default.createElement(React.Fragment, null, title !== '' && React__default.createElement(Container$U, {
|
|
14161
|
+
onClick: onUserDrawerMetaClick
|
|
14162
|
+
}, React__default.createElement(MetaConatiner, null, React__default.createElement(TitleBox, null, React__default.createElement(TitleContainer, null, React__default.createElement(Icon, {
|
|
14163
|
+
icon: icon,
|
|
14164
|
+
size: 10,
|
|
14165
|
+
color: 'dimmed'
|
|
14166
|
+
}), React__default.createElement(LabelTitle, {
|
|
14167
|
+
title: title
|
|
14168
|
+
}, title)), React__default.createElement(CopyBox, null, showCopyText && React__default.createElement(CopyTextBox, null, copySuccessMessage !== '' ? copySuccessMessage : 'Copied!'), hasCopyIcon ? React__default.createElement(IconBox, {
|
|
14169
|
+
onClick: function onClick() {
|
|
14170
|
+
return onClickCopyText(title, subTitle, notes);
|
|
14171
|
+
},
|
|
14172
|
+
onMouseEnter: onHoverMetaInfo,
|
|
14173
|
+
onMouseLeave: onLeaveMeatInfo
|
|
14174
|
+
}, React__default.createElement(Icon, {
|
|
14175
|
+
icon: 'Copy',
|
|
14176
|
+
size: 12,
|
|
14177
|
+
color: onHoverColorValue
|
|
14178
|
+
})) : null)), subTitle !== '' ? React__default.createElement(LabelContent, {
|
|
14179
|
+
title: subTitle
|
|
14180
|
+
}, subTitle) : null, notes !== '' ? React__default.createElement(LabelNotes, {
|
|
14181
|
+
title: notes
|
|
14182
|
+
}, notes) : null)));
|
|
14183
|
+
};
|
|
14184
|
+
|
|
14185
|
+
var _templateObject$1m, _templateObject2$1d, _templateObject3$15, _templateObject4$$;
|
|
14186
|
+
var Container$V = styled__default.div(_templateObject$1m || (_templateObject$1m = _taggedTemplateLiteralLoose(["\n padding: 16px 10px 14px 23px;\n display: flex;\n flex-direction: row;\n border-top: 1px solid ", ";\n align-items: center;\n cursor: pointer;\n svg {\n margin-top: 7px;\n }\n"])), function (_ref) {
|
|
13505
14187
|
var theme = _ref.theme;
|
|
13506
14188
|
return theme.colors.divider;
|
|
13507
14189
|
});
|
|
13508
|
-
var ColumnContainer = styled__default.div(_templateObject2$
|
|
13509
|
-
var Title$8 = styled__default.div(_templateObject3$
|
|
14190
|
+
var ColumnContainer = styled__default.div(_templateObject2$1d || (_templateObject2$1d = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n padding-left: 14px;\n align-items: flex-start;\n"])));
|
|
14191
|
+
var Title$8 = styled__default.div(_templateObject3$15 || (_templateObject3$15 = _taggedTemplateLiteralLoose(["\n opacity: 0.76;\n font-family: ", ";\n font-size: 12px;\n font-weight: 500;\n letter-spacing: 0.34px;\n color: ", ";\n"])), function (_ref2) {
|
|
13510
14192
|
var theme = _ref2.theme;
|
|
13511
14193
|
return theme.fontFamily.ui;
|
|
13512
14194
|
}, function (_ref3) {
|
|
13513
14195
|
var theme = _ref3.theme;
|
|
13514
14196
|
return theme.typography.global.mainMenu.subheader.color;
|
|
13515
14197
|
});
|
|
13516
|
-
var SubTitle$1 = styled__default.div(_templateObject4
|
|
14198
|
+
var SubTitle$1 = styled__default.div(_templateObject4$$ || (_templateObject4$$ = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: 10px;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: ", ";\n padding-top: 2px;\n opacity: 0.5;\n"])), function (_ref4) {
|
|
13517
14199
|
var theme = _ref4.theme;
|
|
13518
14200
|
return theme.fontFamily.ui;
|
|
13519
14201
|
}, function (_ref5) {
|
|
@@ -13528,7 +14210,7 @@ var DrawerBottomMenu = function DrawerBottomMenu(_ref6) {
|
|
|
13528
14210
|
subTitle = _ref6.subTitle,
|
|
13529
14211
|
_ref6$onClickCallback = _ref6.onClickCallback,
|
|
13530
14212
|
onClickCallback = _ref6$onClickCallback === void 0 ? function () {} : _ref6$onClickCallback;
|
|
13531
|
-
return React__default.createElement(Container$
|
|
14213
|
+
return React__default.createElement(Container$V, {
|
|
13532
14214
|
onClick: onClickCallback
|
|
13533
14215
|
}, React__default.createElement(Icon, {
|
|
13534
14216
|
icon: icon,
|
|
@@ -13537,72 +14219,101 @@ var DrawerBottomMenu = function DrawerBottomMenu(_ref6) {
|
|
|
13537
14219
|
}), React__default.createElement(ColumnContainer, null, React__default.createElement(Title$8, null, title), React__default.createElement(SubTitle$1, null, subTitle)));
|
|
13538
14220
|
};
|
|
13539
14221
|
|
|
13540
|
-
var _templateObject$
|
|
13541
|
-
var DrawerTop = styled__default.div(_templateObject$
|
|
13542
|
-
var DrawerBottom = styled__default.div(_templateObject2$
|
|
14222
|
+
var _templateObject$1n, _templateObject2$1e, _templateObject3$16, _templateObject4$10, _templateObject5$V, _templateObject6$H, _templateObject7$D, _templateObject8$z, _templateObject9$u, _templateObject10$p, _templateObject11$h, _templateObject12$d, _templateObject13$c, _templateObject14$a, _templateObject15$8, _templateObject16$6, _templateObject17$6, _templateObject18$4, _templateObject19$4;
|
|
14223
|
+
var DrawerTop = styled__default.div(_templateObject$1n || (_templateObject$1n = _taggedTemplateLiteralLoose([""])));
|
|
14224
|
+
var DrawerBottom = styled__default.div(_templateObject2$1e || (_templateObject2$1e = _taggedTemplateLiteralLoose(["\n ", ";\n"])), function (_ref) {
|
|
13543
14225
|
var theme = _ref.theme;
|
|
13544
|
-
return styled.css(_templateObject3$
|
|
14226
|
+
return styled.css(_templateObject3$16 || (_templateObject3$16 = _taggedTemplateLiteralLoose(["\n width: 100%;\n position: fixed;\n bottom: 50px;\n\n @media ", " {\n position: static;\n bottom: 0;\n }\n "])), theme.deviceMediaQuery.medium);
|
|
13545
14227
|
});
|
|
13546
|
-
var DrawerHeader = styled__default.h2(_templateObject4$
|
|
14228
|
+
var DrawerHeader = styled__default.h2(_templateObject4$10 || (_templateObject4$10 = _taggedTemplateLiteralLoose(["\n ", ";\n padding: 0;\n margin: 0 0 5px;\n"])), function (_ref2) {
|
|
13547
14229
|
var theme = _ref2.theme;
|
|
13548
14230
|
return theme.typography.global.mainMenu.subheader;
|
|
13549
14231
|
});
|
|
13550
|
-
var CurrentUser = styled__default.div(_templateObject5$
|
|
14232
|
+
var CurrentUser = styled__default.div(_templateObject5$V || (_templateObject5$V = _taggedTemplateLiteralLoose(["\n padding: 20px 20px 15px;\n\n ", ";\n"])), function (_ref3) {
|
|
13551
14233
|
var theme = _ref3.theme;
|
|
13552
|
-
return styled.css(_templateObject6$
|
|
14234
|
+
return styled.css(_templateObject6$H || (_templateObject6$H = _taggedTemplateLiteralLoose(["\n border-bottom: ", " 1px solid;\n ", ";\n "])), theme.styles.global.mainMenu.lines.backgroundColor, theme.typography.global.mainMenu.identity);
|
|
13553
14235
|
});
|
|
13554
|
-
var UserOptions = styled__default.div(_templateObject7$
|
|
14236
|
+
var UserOptions = styled__default.div(_templateObject7$D || (_templateObject7$D = _taggedTemplateLiteralLoose(["\n padding: 20px 20px 10px 20px;\n ", ";\n\n"])), function (_ref4) {
|
|
13555
14237
|
var theme = _ref4.theme;
|
|
13556
|
-
return styled.css(_templateObject8$
|
|
14238
|
+
return styled.css(_templateObject8$z || (_templateObject8$z = _taggedTemplateLiteralLoose(["\n border-bottom: ", " 1px solid;\n "])), theme.styles.global.mainMenu.lines.backgroundColor);
|
|
13557
14239
|
});
|
|
13558
|
-
var Logout = styled__default.div(_templateObject9$
|
|
13559
|
-
var LinkMenu = styled__default.ul(_templateObject10$
|
|
13560
|
-
var LinkMenuItem = styled__default.li(_templateObject11$
|
|
13561
|
-
var
|
|
14240
|
+
var Logout = styled__default.div(_templateObject9$u || (_templateObject9$u = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n"])));
|
|
14241
|
+
var LinkMenu = styled__default.ul(_templateObject10$p || (_templateObject10$p = _taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 12px 0 0 0;\n list-style: none;\n"])));
|
|
14242
|
+
var LinkMenuItem = styled__default.li(_templateObject11$h || (_templateObject11$h = _taggedTemplateLiteralLoose(["\n padding: 10px 0;\n"])));
|
|
14243
|
+
var IconWrapperFooter = styled__default.div(_templateObject12$d || (_templateObject12$d = _taggedTemplateLiteralLoose(["\n width: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n > div {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n padding-right: 20px;\n"])));
|
|
14244
|
+
var LinkMenuItemA = styled__default(reactRouterDom.Link)(_templateObject13$c || (_templateObject13$c = _taggedTemplateLiteralLoose(["\n ", ";\n display: block;\n width: 100%;\n\n ", ";\n\n ", ";\n"])), resetButtonStyles, function (_ref5) {
|
|
13562
14245
|
var theme = _ref5.theme;
|
|
13563
|
-
return styled.css(
|
|
14246
|
+
return styled.css(_templateObject14$a || (_templateObject14$a = _taggedTemplateLiteralLoose(["\n ", ";\n\n &:hover {\n ", ";\n }\n "])), theme.typography.global.mainMenu.subItem["default"], theme.typography.global.mainMenu.subItem.hover);
|
|
13564
14247
|
}, function (_ref6) {
|
|
13565
14248
|
var theme = _ref6.theme,
|
|
13566
14249
|
isActive = _ref6.isActive;
|
|
13567
|
-
return isActive && styled.css(
|
|
13568
|
-
});
|
|
13569
|
-
|
|
13570
|
-
var
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
14250
|
+
return isActive && styled.css(_templateObject15$8 || (_templateObject15$8 = _taggedTemplateLiteralLoose(["\n &, &:hover {\n ", ";\n }\n "])), theme.typography.global.mainMenu.subItem.active);
|
|
14251
|
+
});
|
|
14252
|
+
var FooterMeta = styled__default.div(_templateObject16$6 || (_templateObject16$6 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n border-top: ", " 1px solid;\n margin-top: auto;\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n font-size: 10px;\n font-weight: 400;\n color: rgba(87, 87, 87, 0.5);\n padding: 10px;\n padding-left: ", ";\n"])), function (_ref7) {
|
|
14253
|
+
var theme = _ref7.theme;
|
|
14254
|
+
return theme.fontFamily.ui;
|
|
14255
|
+
}, function (_ref8) {
|
|
14256
|
+
var theme = _ref8.theme;
|
|
14257
|
+
return theme.styles.global.mainMenu.lines.backgroundColor;
|
|
14258
|
+
}, function (_ref9) {
|
|
14259
|
+
var icon = _ref9.icon;
|
|
14260
|
+
return icon !== '' ? '31px;' : '21px;';
|
|
14261
|
+
});
|
|
14262
|
+
var NavigationContainer$1 = styled__default.div(_templateObject17$6 || (_templateObject17$6 = _taggedTemplateLiteralLoose(["\n max-height: 300px;\n overflow: scroll;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_ref10) {
|
|
14263
|
+
var theme = _ref10.theme;
|
|
14264
|
+
return styled.css(_templateObject18$4 || (_templateObject18$4 = _taggedTemplateLiteralLoose(["\n border-bottom: ", " 1px solid;\n "])), theme.colors.divider);
|
|
14265
|
+
});
|
|
14266
|
+
var FooterText = styled__default.div(_templateObject19$4 || (_templateObject19$4 = _taggedTemplateLiteralLoose(["\n white-space: break-spaces;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 136px;\n max-width: ", ";\n color: #585858a5;\n"])), function (_ref11) {
|
|
14267
|
+
var icon = _ref11.icon;
|
|
14268
|
+
return icon !== '' ? '136px;' : '164px;';
|
|
14269
|
+
});
|
|
14270
|
+
|
|
14271
|
+
var UserMenu = function UserMenu(_ref12) {
|
|
14272
|
+
var _ref12$hasLanguage = _ref12.hasLanguage,
|
|
14273
|
+
hasLanguage = _ref12$hasLanguage === void 0 ? false : _ref12$hasLanguage,
|
|
14274
|
+
_ref12$selectedLangua = _ref12.selectedLanguageText,
|
|
14275
|
+
selectedLanguageText = _ref12$selectedLangua === void 0 ? '' : _ref12$selectedLangua,
|
|
14276
|
+
_ref12$hasLogout = _ref12.hasLogout,
|
|
14277
|
+
hasLogout = _ref12$hasLogout === void 0 ? true : _ref12$hasLogout,
|
|
14278
|
+
_ref12$logoutLink = _ref12.logoutLink,
|
|
14279
|
+
logoutLink = _ref12$logoutLink === void 0 ? '/logout' : _ref12$logoutLink,
|
|
14280
|
+
_ref12$logoutText = _ref12.logoutText,
|
|
14281
|
+
logoutText = _ref12$logoutText === void 0 ? 'Logout' : _ref12$logoutText,
|
|
14282
|
+
_ref12$hasCurrentUser = _ref12.hasCurrentUser,
|
|
14283
|
+
hasCurrentUser = _ref12$hasCurrentUser === void 0 ? true : _ref12$hasCurrentUser,
|
|
14284
|
+
_ref12$currentUserTex = _ref12.currentUserText,
|
|
14285
|
+
currentUserText = _ref12$currentUserTex === void 0 ? 'Current User' : _ref12$currentUserTex,
|
|
14286
|
+
_ref12$accountOptionT = _ref12.accountOptionText,
|
|
14287
|
+
accountOptionText = _ref12$accountOptionT === void 0 ? "Account Options" : _ref12$accountOptionT,
|
|
14288
|
+
_ref12$userSubmenu = _ref12.userSubmenu,
|
|
14289
|
+
userSubmenu = _ref12$userSubmenu === void 0 ? [] : _ref12$userSubmenu,
|
|
14290
|
+
userDrawerBespoke = _ref12.userDrawerBespoke,
|
|
14291
|
+
loggedInUser = _ref12.loggedInUser,
|
|
14292
|
+
_ref12$hasSwitchTheme = _ref12.hasSwitchTheme,
|
|
14293
|
+
hasSwitchTheme = _ref12$hasSwitchTheme === void 0 ? false : _ref12$hasSwitchTheme,
|
|
14294
|
+
_ref12$isLightMode = _ref12.isLightMode,
|
|
14295
|
+
isLightMode = _ref12$isLightMode === void 0 ? true : _ref12$isLightMode,
|
|
14296
|
+
_ref12$switchThemeTex = _ref12.switchThemeText,
|
|
14297
|
+
switchThemeText = _ref12$switchThemeTex === void 0 ? 'SWITCH THEME' : _ref12$switchThemeTex,
|
|
14298
|
+
_ref12$selectedThemeT = _ref12.selectedThemeText,
|
|
14299
|
+
selectedThemeText = _ref12$selectedThemeT === void 0 ? '' : _ref12$selectedThemeT,
|
|
14300
|
+
_ref12$onLogout = _ref12.onLogout,
|
|
14301
|
+
onLogout = _ref12$onLogout === void 0 ? function () {} : _ref12$onLogout,
|
|
14302
|
+
_ref12$onLanguageTogg = _ref12.onLanguageToggle,
|
|
14303
|
+
onLanguageToggle = _ref12$onLanguageTogg === void 0 ? function () {} : _ref12$onLanguageTogg,
|
|
14304
|
+
closeOnClick = _ref12.closeOnClick,
|
|
14305
|
+
_ref12$onThemeToggle = _ref12.onThemeToggle,
|
|
14306
|
+
onThemeToggle = _ref12$onThemeToggle === void 0 ? function () {} : _ref12$onThemeToggle,
|
|
14307
|
+
userDrawerFooter = _ref12.userDrawerFooter,
|
|
14308
|
+
copySuccessMessage = _ref12.copySuccessMessage,
|
|
14309
|
+
includeCopyTitle = _ref12.includeCopyTitle,
|
|
14310
|
+
_ref12$onUserDrawerMe = _ref12.onUserDrawerMetaClick,
|
|
14311
|
+
onUserDrawerMetaClick = _ref12$onUserDrawerMe === void 0 ? function () {} : _ref12$onUserDrawerMe,
|
|
14312
|
+
userDrawerMeta = _ref12.userDrawerMeta,
|
|
14313
|
+
hasUserDrawerMeta = _ref12.hasUserDrawerMeta,
|
|
14314
|
+
hasUserDrawerFooter = _ref12.hasUserDrawerFooter;
|
|
14315
|
+
var icon = userDrawerFooter.icon,
|
|
14316
|
+
title = userDrawerFooter.title;
|
|
13606
14317
|
var logoutHandler = React.useCallback(function (e) {
|
|
13607
14318
|
try {
|
|
13608
14319
|
e.preventDefault();
|
|
@@ -13622,9 +14333,18 @@ var UserMenu = function UserMenu(_ref7) {
|
|
|
13622
14333
|
closeOnClick();
|
|
13623
14334
|
}
|
|
13624
14335
|
}, [closeOnClick]);
|
|
13625
|
-
return React__default.createElement(React.Fragment, null, React__default.createElement(DrawerTop, null, hasCurrentUser ? React__default.createElement(CurrentUser, null, React__default.createElement(DrawerHeader, null, currentUserText), loggedInUser) : null,
|
|
13626
|
-
|
|
13627
|
-
|
|
14336
|
+
return React__default.createElement(React.Fragment, null, React__default.createElement(DrawerTop, null, hasCurrentUser ? React__default.createElement(CurrentUser, null, React__default.createElement(DrawerHeader, null, currentUserText), loggedInUser) : null, hasUserDrawerMeta ? React__default.createElement(NavigationContainer$1, null, userDrawerMeta === null || userDrawerMeta === void 0 ? void 0 : userDrawerMeta.map(function (item, key) {
|
|
14337
|
+
return React__default.createElement(UserDrawerMeta, Object.assign({
|
|
14338
|
+
onUserDrawerMetaClick: onUserDrawerMetaClick,
|
|
14339
|
+
key: key
|
|
14340
|
+
}, {
|
|
14341
|
+
item: item,
|
|
14342
|
+
includeCopyTitle: includeCopyTitle,
|
|
14343
|
+
copySuccessMessage: copySuccessMessage
|
|
14344
|
+
}));
|
|
14345
|
+
})) : null, userSubmenu.length > 0 ? React__default.createElement(UserOptions, null, React__default.createElement(DrawerHeader, null, accountOptionText), React__default.createElement(LinkMenu, null, userSubmenu.map(function (_ref13, index) {
|
|
14346
|
+
var text = _ref13.text,
|
|
14347
|
+
href = _ref13.href;
|
|
13628
14348
|
return React__default.createElement(LinkMenuItem, {
|
|
13629
14349
|
key: index
|
|
13630
14350
|
}, React__default.createElement(LinkMenuItemA, {
|
|
@@ -13644,40 +14364,49 @@ var UserMenu = function UserMenu(_ref7) {
|
|
|
13644
14364
|
title: "LANGUAGE / \u8A00\u8A9E",
|
|
13645
14365
|
subTitle: selectedLanguageText,
|
|
13646
14366
|
onClickCallback: onLanguageToggle
|
|
13647
|
-
})
|
|
14367
|
+
}), hasUserDrawerFooter ? React__default.createElement(FooterMeta, {
|
|
14368
|
+
title: title,
|
|
14369
|
+
icon: icon
|
|
14370
|
+
}, icon ? React__default.createElement(IconWrapperFooter, null, React__default.createElement(Icon, {
|
|
14371
|
+
icon: icon,
|
|
14372
|
+
size: 14,
|
|
14373
|
+
color: 'dimmed'
|
|
14374
|
+
})) : null, React__default.createElement(FooterText, {
|
|
14375
|
+
icon: icon
|
|
14376
|
+
}, title)) : null));
|
|
13648
14377
|
};
|
|
13649
14378
|
|
|
13650
|
-
var _templateObject$
|
|
13651
|
-
var Container$
|
|
13652
|
-
var ImgWrapper = styled__default.div(_templateObject2$
|
|
13653
|
-
var EmptyImg = styled__default.div(_templateObject3$
|
|
13654
|
-
var Image$
|
|
14379
|
+
var _templateObject$1o, _templateObject2$1f, _templateObject3$17, _templateObject4$11, _templateObject5$W, _templateObject6$I, _templateObject7$E, _templateObject8$A;
|
|
14380
|
+
var Container$W = styled__default.div(_templateObject$1o || (_templateObject$1o = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 18px 20px 12px 20px;\n height: 122px;\n"])));
|
|
14381
|
+
var ImgWrapper = styled__default.div(_templateObject2$1f || (_templateObject2$1f = _taggedTemplateLiteralLoose(["\n border-radius: 5px;\n overflow: hidden;\n height: 40px;\n width: 40px;\n flex-shrink: 0;\n"])));
|
|
14382
|
+
var EmptyImg = styled__default.div(_templateObject3$17 || (_templateObject3$17 = _taggedTemplateLiteralLoose(["\n background-color: hsl(210, 22%, 91%);\n width: 100%;\n height: 100%;\n"])));
|
|
14383
|
+
var Image$2 = styled__default.div(_templateObject4$11 || (_templateObject4$11 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-image: url(", ");\n background-position: center center;\n background-size: cover;\n background-repeat: no-repeat; \n display: ", ";\n"])), function (p) {
|
|
13655
14384
|
return p.image;
|
|
13656
14385
|
}, function (p) {
|
|
13657
14386
|
return p.image ? 'block' : 'none';
|
|
13658
14387
|
});
|
|
13659
|
-
var InfoContainer = styled__default.div(_templateObject5$
|
|
13660
|
-
var Title$9 = styled__default.div(_templateObject6$
|
|
13661
|
-
var Message = styled__default.div(_templateObject7$
|
|
13662
|
-
var TimeMsg = styled__default.div(_templateObject8$
|
|
14388
|
+
var InfoContainer = styled__default.div(_templateObject5$W || (_templateObject5$W = _taggedTemplateLiteralLoose(["\n margin-left: 20px;\n"])));
|
|
14389
|
+
var Title$9 = styled__default.div(_templateObject6$I || (_templateObject6$I = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-weight: 500;\n color: hsl(0, 0%, 34%);\n"])));
|
|
14390
|
+
var Message = styled__default.div(_templateObject7$E || (_templateObject7$E = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: 500;\n overflow: hidden;\n color: hsl(0, 0%, 34%);\n margin: 4px 0;\n height: 30px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: inline-block;\n vertical-align: middle;\n"])));
|
|
14391
|
+
var TimeMsg = styled__default.div(_templateObject8$A || (_templateObject8$A = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: 500;\n color: hsl(0, 0%, 67%);\n margin-top: 15px;\n"])));
|
|
13663
14392
|
|
|
13664
14393
|
var NotificationItem = function NotificationItem(_ref) {
|
|
13665
14394
|
var imgUrl = _ref.imgUrl,
|
|
13666
14395
|
title = _ref.title,
|
|
13667
14396
|
message = _ref.message,
|
|
13668
14397
|
time = _ref.time;
|
|
13669
|
-
return React__default.createElement(Container$
|
|
14398
|
+
return React__default.createElement(Container$W, null, React__default.createElement(ImgWrapper, null, imgUrl ? React__default.createElement(Image$2, {
|
|
13670
14399
|
image: imgUrl
|
|
13671
14400
|
}) : React__default.createElement(EmptyImg, null)), React__default.createElement(InfoContainer, null, React__default.createElement(Title$9, null, title), React__default.createElement(Message, null, message), React__default.createElement(TimeMsg, null, time)));
|
|
13672
14401
|
};
|
|
13673
14402
|
|
|
13674
|
-
var _templateObject$
|
|
13675
|
-
var Container$
|
|
13676
|
-
var StatusContainer = styled__default.h2(_templateObject2$
|
|
14403
|
+
var _templateObject$1p, _templateObject2$1g, _templateObject3$18;
|
|
14404
|
+
var Container$X = styled__default.div(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
14405
|
+
var StatusContainer = styled__default.h2(_templateObject2$1g || (_templateObject2$1g = _taggedTemplateLiteralLoose(["\n text-transform: uppercase;\n padding: 10px 0 10px 20px;\n font-size: 14px;\n font-weight: 500;\n color: hsl(0, 0%, 34%);\n border-bottom: ", " 1px solid;\n margin: 0;\n"])), function (_ref) {
|
|
13677
14406
|
var theme = _ref.theme;
|
|
13678
14407
|
return theme.colors.divider;
|
|
13679
14408
|
});
|
|
13680
|
-
var NotificationWrapper = styled__default.div(_templateObject3$
|
|
14409
|
+
var NotificationWrapper = styled__default.div(_templateObject3$18 || (_templateObject3$18 = _taggedTemplateLiteralLoose(["\n border-bottom: ", " 1px solid;\n"])), function (_ref2) {
|
|
13681
14410
|
var colors = _ref2.theme.colors;
|
|
13682
14411
|
return colors.divider;
|
|
13683
14412
|
});
|
|
@@ -13701,21 +14430,21 @@ var NotificationsHistory = function NotificationsHistory(_ref3) {
|
|
|
13701
14430
|
unreadNotificationsText = _ref3$unreadNotificat === void 0 ? 'Read' : _ref3$unreadNotificat;
|
|
13702
14431
|
|
|
13703
14432
|
if (read.length === 0 && unread.length === 0) {
|
|
13704
|
-
return React__default.createElement(Container$
|
|
14433
|
+
return React__default.createElement(Container$X, null, React__default.createElement(StatusContainer, null, noNotificationsText));
|
|
13705
14434
|
}
|
|
13706
14435
|
|
|
13707
|
-
return React__default.createElement(Container$
|
|
14436
|
+
return React__default.createElement(Container$X, null, unread && React__default.createElement(React.Fragment, null, React__default.createElement(StatusContainer, null, readNotificationsText), renderNotifications(unread, 'unread')), read && React__default.createElement(React.Fragment, null, React__default.createElement(StatusContainer, null, unreadNotificationsText), renderNotifications(read, 'read')));
|
|
13708
14437
|
};
|
|
13709
14438
|
|
|
13710
|
-
var _templateObject$
|
|
13711
|
-
var Container$
|
|
14439
|
+
var _templateObject$1q, _templateObject2$1h, _templateObject3$19, _templateObject4$12, _templateObject5$X, _templateObject6$J, _templateObject7$F, _templateObject8$B, _templateObject9$v, _templateObject10$q, _templateObject11$i, _templateObject12$e, _templateObject13$d, _templateObject14$b;
|
|
14440
|
+
var Container$Y = styled__default.div(_templateObject$1q || (_templateObject$1q = _taggedTemplateLiteralLoose(["\n z-index: 9;\n position: sticky;\n top: 0;\n align-self: flex-start;\n height: 65px;\n width: 100%;\n display: flex;\n justify-content: space-between;\n\n ", "\n"])), function (_ref) {
|
|
13712
14441
|
var theme = _ref.theme,
|
|
13713
14442
|
colors = _ref.theme.colors;
|
|
13714
|
-
return colors && styled.css(_templateObject2$
|
|
14443
|
+
return colors && styled.css(_templateObject2$1h || (_templateObject2$1h = _taggedTemplateLiteralLoose(["\n border-bottom: ", " 1px solid;\n // box-shadow: 5px 7px 10px 0 hsla(205, 16%, 77%, 0.1);\n background-color:", ";\n "])), theme.styles.global.mainMenu.lines.backgroundColor, theme.styles.global.mainMenu.background.backgroundColor);
|
|
13715
14444
|
});
|
|
13716
|
-
var SearchBar = styled__default.div(_templateObject3$
|
|
13717
|
-
var IconWrapper$
|
|
13718
|
-
var SearchInput = styled__default.input(_templateObject5$
|
|
14445
|
+
var SearchBar = styled__default.div(_templateObject3$19 || (_templateObject3$19 = _taggedTemplateLiteralLoose(["\n margin-left: 25px;\n flex: 0 1 500px;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
14446
|
+
var IconWrapper$4 = styled__default.div(_templateObject4$12 || (_templateObject4$12 = _taggedTemplateLiteralLoose(["\n flex: 0 40px;\n width: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n > div {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])));
|
|
14447
|
+
var SearchInput = styled__default.input(_templateObject5$X || (_templateObject5$X = _taggedTemplateLiteralLoose(["\n ", ";\n font-family: ", ";\n flex: 1;\n height: 35px;\n line-height: 35px;\n border: none;\n outline: none;\n background: transparent;\n\n ", ";\n\n &::placeholder {\n font-style: italic;\n ", ";\n }\n"])), removeAutoFillStyle, function (_ref2) {
|
|
13719
14448
|
var theme = _ref2.theme;
|
|
13720
14449
|
return theme.fontFamily.data;
|
|
13721
14450
|
}, function (_ref3) {
|
|
@@ -13725,19 +14454,19 @@ var SearchInput = styled__default.input(_templateObject5$V || (_templateObject5$
|
|
|
13725
14454
|
var typography = _ref4.theme.typography;
|
|
13726
14455
|
return typography.global.topBar.search.placeholder;
|
|
13727
14456
|
});
|
|
13728
|
-
var ButtonArea = styled__default.div(_templateObject6$
|
|
14457
|
+
var ButtonArea = styled__default.div(_templateObject6$J || (_templateObject6$J = _taggedTemplateLiteralLoose(["\n height: inherit;\n padding-right: 10px;\n display: flex;\n"])));
|
|
13729
14458
|
var DrawerToggle = styled__default.button.attrs({
|
|
13730
14459
|
type: 'button'
|
|
13731
|
-
})(_templateObject7$
|
|
14460
|
+
})(_templateObject7$F || (_templateObject7$F = _taggedTemplateLiteralLoose(["\n width: 60px;\n margin: 0 5px;\n height: inherit;\n background: none;\n border: none;\n outline: none;\n cursor: pointer;\n\n ", ";\n\n ", "\n"])), function (_ref5) {
|
|
13732
14461
|
var theme = _ref5.theme;
|
|
13733
|
-
return styled.css(_templateObject8$
|
|
14462
|
+
return styled.css(_templateObject8$B || (_templateObject8$B = _taggedTemplateLiteralLoose(["\n border-bottom: 5px solid transparent;\n /*", ";*/\n\n &:hover {\n border-bottom-color: ", ";\n }\n\n transition: border ", " ", ";\n "])), theme.colors.menu.indicator, theme.colors.menu.hover, theme.animation.speed.normal, theme.animation.easing.primary.easeInOut);
|
|
13734
14463
|
}, function (_ref6) {
|
|
13735
14464
|
var isActive = _ref6.isActive,
|
|
13736
14465
|
theme = _ref6.theme;
|
|
13737
|
-
return isActive && styled.css(_templateObject9$
|
|
14466
|
+
return isActive && styled.css(_templateObject9$v || (_templateObject9$v = _taggedTemplateLiteralLoose(["\n &, &:hover {\n border-bottom-color: ", ";\n }\n "])), theme.colors.menu.active);
|
|
13738
14467
|
});
|
|
13739
|
-
var DrawerPortalWrapper = styled__default.div(_templateObject10$
|
|
13740
|
-
var Drawer = styled__default.div(_templateObject11$
|
|
14468
|
+
var DrawerPortalWrapper = styled__default.div(_templateObject10$q || (_templateObject10$q = _taggedTemplateLiteralLoose([""])));
|
|
14469
|
+
var Drawer = styled__default.div(_templateObject11$i || (_templateObject11$i = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n\n position: fixed;\n right: -10px;\n top: 65px;\n bottom: 0;\n background: ", ";\n border-left: ", " 1px solid;\n width: ", ";\n opacity: 0;\n visibility: hidden;\n z-index: 100;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n ", ";\n\n ", "\n"])), function (_ref7) {
|
|
13741
14470
|
var theme = _ref7.theme;
|
|
13742
14471
|
return theme.fontFamily.ui;
|
|
13743
14472
|
}, function (_ref8) {
|
|
@@ -13751,12 +14480,12 @@ var Drawer = styled__default.div(_templateObject11$h || (_templateObject11$h = _
|
|
|
13751
14480
|
return baseWidth ? baseWidth : "200px";
|
|
13752
14481
|
}, function (_ref11) {
|
|
13753
14482
|
var theme = _ref11.theme;
|
|
13754
|
-
return styled.css(_templateObject12$
|
|
14483
|
+
return styled.css(_templateObject12$e || (_templateObject12$e = _taggedTemplateLiteralLoose(["\n transition:\n opacity ", " ", ",\n right ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeInOut, theme.animation.speed.normal, theme.animation.easing.primary.easeInOut);
|
|
13755
14484
|
}, function (_ref12) {
|
|
13756
14485
|
var isOpen = _ref12.isOpen;
|
|
13757
|
-
return isOpen && styled.css(_templateObject13$
|
|
14486
|
+
return isOpen && styled.css(_templateObject13$d || (_templateObject13$d = _taggedTemplateLiteralLoose(["\n right: 0;\n opacity: 1;\n visibility: visible;\n "])));
|
|
13758
14487
|
});
|
|
13759
|
-
var NotificationsContainer = styled__default.div(_templateObject14$
|
|
14488
|
+
var NotificationsContainer = styled__default.div(_templateObject14$b || (_templateObject14$b = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n margin-right: -17px;\n"])));
|
|
13760
14489
|
|
|
13761
14490
|
var TopBar = function TopBar(_ref13) {
|
|
13762
14491
|
var _ref13$hasNotificatio = _ref13.hasNotifications,
|
|
@@ -13800,7 +14529,15 @@ var TopBar = function TopBar(_ref13) {
|
|
|
13800
14529
|
_ref13$onLanguageTogg = _ref13.onLanguageToggle,
|
|
13801
14530
|
onLanguageToggle = _ref13$onLanguageTogg === void 0 ? function () {} : _ref13$onLanguageTogg,
|
|
13802
14531
|
_ref13$onThemeToggle = _ref13.onThemeToggle,
|
|
13803
|
-
onThemeToggle = _ref13$onThemeToggle === void 0 ? function () {} : _ref13$onThemeToggle
|
|
14532
|
+
onThemeToggle = _ref13$onThemeToggle === void 0 ? function () {} : _ref13$onThemeToggle,
|
|
14533
|
+
userDrawerFooter = _ref13.userDrawerFooter,
|
|
14534
|
+
userDrawerMeta = _ref13.userDrawerMeta,
|
|
14535
|
+
_ref13$onUserDrawerMe = _ref13.onUserDrawerMetaClick,
|
|
14536
|
+
onUserDrawerMetaClick = _ref13$onUserDrawerMe === void 0 ? function () {} : _ref13$onUserDrawerMe,
|
|
14537
|
+
hasUserDrawerMeta = _ref13.hasUserDrawerMeta,
|
|
14538
|
+
copySuccessMessage = _ref13.copySuccessMessage,
|
|
14539
|
+
includeCopyTitle = _ref13.includeCopyTitle,
|
|
14540
|
+
hasUserDrawerFooter = _ref13.hasUserDrawerFooter;
|
|
13804
14541
|
|
|
13805
14542
|
var _useState = React.useState(null),
|
|
13806
14543
|
openDrawer = _useState[0],
|
|
@@ -13816,7 +14553,7 @@ var TopBar = function TopBar(_ref13) {
|
|
|
13816
14553
|
});
|
|
13817
14554
|
};
|
|
13818
14555
|
|
|
13819
|
-
return React__default.createElement(Container$
|
|
14556
|
+
return React__default.createElement(Container$Y, null, hasSearch ? React__default.createElement(SearchBar, null, React__default.createElement(IconWrapper$4, null, React__default.createElement(Icon, {
|
|
13820
14557
|
icon: 'Search',
|
|
13821
14558
|
size: 18,
|
|
13822
14559
|
color: 'dimmed'
|
|
@@ -13865,7 +14602,14 @@ var TopBar = function TopBar(_ref13) {
|
|
|
13865
14602
|
isLightMode: isLightMode,
|
|
13866
14603
|
switchThemeText: switchThemeText,
|
|
13867
14604
|
selectedThemeText: selectedThemeText,
|
|
13868
|
-
onThemeToggle: onThemeToggle
|
|
14605
|
+
onThemeToggle: onThemeToggle,
|
|
14606
|
+
onUserDrawerMetaClick: onUserDrawerMetaClick,
|
|
14607
|
+
userDrawerFooter: userDrawerFooter,
|
|
14608
|
+
userDrawerMeta: userDrawerMeta,
|
|
14609
|
+
hasUserDrawerMeta: hasUserDrawerMeta,
|
|
14610
|
+
copySuccessMessage: copySuccessMessage,
|
|
14611
|
+
includeCopyTitle: includeCopyTitle,
|
|
14612
|
+
hasUserDrawerFooter: hasUserDrawerFooter
|
|
13869
14613
|
}))), hasNotifications ? React__default.createElement(Drawer, {
|
|
13870
14614
|
isOpen: openDrawer === 'notifications',
|
|
13871
14615
|
baseWidth: '300px'
|
|
@@ -13895,8 +14639,8 @@ var Tabs = function Tabs(_ref) {
|
|
|
13895
14639
|
}, children);
|
|
13896
14640
|
};
|
|
13897
14641
|
|
|
13898
|
-
var _templateObject$
|
|
13899
|
-
var TabListWrapper = styled__default.div(_templateObject$
|
|
14642
|
+
var _templateObject$1r;
|
|
14643
|
+
var TabListWrapper = styled__default.div(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n"])));
|
|
13900
14644
|
|
|
13901
14645
|
var TabList = function TabList(_ref) {
|
|
13902
14646
|
var children = _ref.children,
|
|
@@ -13913,11 +14657,11 @@ var TabList = function TabList(_ref) {
|
|
|
13913
14657
|
|
|
13914
14658
|
var _excluded$E = ["children", "tabFor", "onClick"];
|
|
13915
14659
|
|
|
13916
|
-
var _templateObject$
|
|
13917
|
-
var TabComponent = styled__default.div(_templateObject$
|
|
13918
|
-
var TabLabel = styled__default.label(_templateObject2$
|
|
14660
|
+
var _templateObject$1s, _templateObject2$1i, _templateObject3$1a;
|
|
14661
|
+
var TabComponent = styled__default.div(_templateObject$1s || (_templateObject$1s = _taggedTemplateLiteralLoose(["\n margin-right: 39px;\n display: flex;\n align-items: center;\n line-height: 20px;\n"])));
|
|
14662
|
+
var TabLabel = styled__default.label(_templateObject2$1i || (_templateObject2$1i = _taggedTemplateLiteralLoose(["\n height: 40px;\n ", "\n font-size: 15px;\n font-weight: ", ";\n letter-spacing: 0.09px;\n color: ", ";\n cursor: pointer;\n border-bottom: ", ";\n padding-top: 6px;\n padding-bottom: 14px;\n flex-shrink: 0;\n"])), function (_ref) {
|
|
13919
14663
|
var theme = _ref.theme;
|
|
13920
|
-
return styled.css(_templateObject3$
|
|
14664
|
+
return styled.css(_templateObject3$1a || (_templateObject3$1a = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n "])), theme.fontFamily.ui);
|
|
13921
14665
|
}, function (_ref2) {
|
|
13922
14666
|
var active = _ref2.active;
|
|
13923
14667
|
return active ? '600' : '500';
|
|
@@ -13952,8 +14696,8 @@ var Tab = function Tab(_ref5) {
|
|
|
13952
14696
|
|
|
13953
14697
|
var _excluded$F = ["children", "tabId"];
|
|
13954
14698
|
|
|
13955
|
-
var _templateObject$
|
|
13956
|
-
var Container$
|
|
14699
|
+
var _templateObject$1t;
|
|
14700
|
+
var Container$Z = styled__default.div(_templateObject$1t || (_templateObject$1t = _taggedTemplateLiteralLoose(["\n"])));
|
|
13957
14701
|
|
|
13958
14702
|
var TabContent = function TabContent(_ref) {
|
|
13959
14703
|
var children = _ref.children,
|
|
@@ -13963,20 +14707,20 @@ var TabContent = function TabContent(_ref) {
|
|
|
13963
14707
|
var _useContext = React.useContext(TabContext),
|
|
13964
14708
|
selected = _useContext.selected;
|
|
13965
14709
|
|
|
13966
|
-
return selected === tabId ? React__default.createElement(Container$
|
|
14710
|
+
return selected === tabId ? React__default.createElement(Container$Z, Object.assign({}, props), children) : null;
|
|
13967
14711
|
};
|
|
13968
14712
|
|
|
13969
14713
|
var _excluded$G = ["tabFor", "icon", "closeId", "counter", "status"];
|
|
13970
14714
|
|
|
13971
|
-
var _templateObject$
|
|
13972
|
-
var Container$
|
|
13973
|
-
var LinkTab = styled__default.div(_templateObject2$
|
|
14715
|
+
var _templateObject$1u, _templateObject2$1j, _templateObject3$1b, _templateObject4$13;
|
|
14716
|
+
var Container$_ = styled__default.button(_templateObject$1u || (_templateObject$1u = _taggedTemplateLiteralLoose(["\n ", "\n flex-basis: auto;\n flex-grow: 1;\n"])), resetButtonStyles);
|
|
14717
|
+
var LinkTab = styled__default.div(_templateObject2$1j || (_templateObject2$1j = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n\n ", ";\n\n ", "\n"])), function (_ref) {
|
|
13974
14718
|
var theme = _ref.theme;
|
|
13975
|
-
return styled.css(_templateObject3$
|
|
14719
|
+
return styled.css(_templateObject3$1b || (_templateObject3$1b = _taggedTemplateLiteralLoose(["\n transition: border ", " ", ";\n border-bottom: 5px solid ", ";\n\n ", " {\n [stroke]{\n stroke: ", ";\n }\n }\n\n &:hover {\n border-bottom-color: ", ";\n ", " {\n [stroke]{\n stroke: ", ";\n }\n }\n }\n "])), theme.animation.speed.normal, theme.animation.easing.primary.easeInOut, theme.colors.menu.indicator, IconWrapper, theme.colors.icons['dimmed'], theme.colors.menu.hover, IconWrapper, theme.colors.menu.hover);
|
|
13976
14720
|
}, function (_ref2) {
|
|
13977
14721
|
var isActive = _ref2.isActive,
|
|
13978
14722
|
theme = _ref2.theme;
|
|
13979
|
-
return isActive && styled.css(_templateObject4$
|
|
14723
|
+
return isActive && styled.css(_templateObject4$13 || (_templateObject4$13 = _taggedTemplateLiteralLoose(["\n &, &:hover {\n border-bottom-color: ", ";\n ", " {\n [stroke]{\n stroke: ", ";\n }\n }\n }\n "])), theme.colors.menu.active, IconWrapper, theme.colors.menu.active);
|
|
13980
14724
|
});
|
|
13981
14725
|
|
|
13982
14726
|
var MobileTab = function MobileTab(_ref3) {
|
|
@@ -13995,7 +14739,7 @@ var MobileTab = function MobileTab(_ref3) {
|
|
|
13995
14739
|
var newValue = selected === tabId ? closeId : tabId;
|
|
13996
14740
|
setSelected(newValue);
|
|
13997
14741
|
}, [closeId, selected, setSelected]);
|
|
13998
|
-
return React__default.createElement(Container$
|
|
14742
|
+
return React__default.createElement(Container$_, Object.assign({}, props, {
|
|
13999
14743
|
onClick: function onClick() {
|
|
14000
14744
|
return onChangeTab(tabFor);
|
|
14001
14745
|
}
|
|
@@ -14010,23 +14754,23 @@ var MobileTab = function MobileTab(_ref3) {
|
|
|
14010
14754
|
|
|
14011
14755
|
var _excluded$H = ["icon", "title", "subtitle", "tabFor"];
|
|
14012
14756
|
|
|
14013
|
-
var _templateObject$
|
|
14014
|
-
var Container
|
|
14757
|
+
var _templateObject$1v, _templateObject2$1k, _templateObject3$1c, _templateObject4$14, _templateObject5$Y, _templateObject6$K;
|
|
14758
|
+
var Container$$ = styled__default.div(_templateObject$1v || (_templateObject$1v = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: 22px;\n padding-bottom: 7px;\n height: 60px;\n cursor: pointer;\n\n ", ";\n ", " {\n margin-left: 2px;\n flex-shrink: 0;\n }\n"])), function (_ref) {
|
|
14015
14759
|
var active = _ref.active;
|
|
14016
|
-
return active ? styled.css(_templateObject2$
|
|
14760
|
+
return active ? styled.css(_templateObject2$1k || (_templateObject2$1k = _taggedTemplateLiteralLoose(["\n border-bottom: 3px solid hsl(196, 100%, 40%);\n "]))) : styled.css(_templateObject3$1c || (_templateObject3$1c = _taggedTemplateLiteralLoose(["\n border-bottom: 3px solid transparent;\n "])));
|
|
14017
14761
|
}, IconWrapper);
|
|
14018
|
-
var Title$a = styled__default.div(_templateObject4$
|
|
14762
|
+
var Title$a = styled__default.div(_templateObject4$14 || (_templateObject4$14 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-family: ", ";\n letter-spacing: 0.09px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 5px;\n flex-shrink: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])), function (_ref2) {
|
|
14019
14763
|
var theme = _ref2.theme;
|
|
14020
14764
|
return theme.fontFamily.ui;
|
|
14021
14765
|
}, function (_ref3) {
|
|
14022
14766
|
var active = _ref3.active;
|
|
14023
14767
|
return active ? 'hsl(196, 100%, 40%)' : 'hsl(0, 0%, 46%)';
|
|
14024
14768
|
});
|
|
14025
|
-
var SubTitle$2 = styled__default.div(_templateObject5$
|
|
14769
|
+
var SubTitle$2 = styled__default.div(_templateObject5$Y || (_templateObject5$Y = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-family: ", ";\n font-style: italic;\n color: hsla(195, 10%, 52%, 0.72);\n flex-shrink: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])), function (_ref4) {
|
|
14026
14770
|
var theme = _ref4.theme;
|
|
14027
14771
|
return theme.fontFamily.data;
|
|
14028
14772
|
});
|
|
14029
|
-
var TextGroup$1 = styled__default.div(_templateObject6$
|
|
14773
|
+
var TextGroup$1 = styled__default.div(_templateObject6$K || (_templateObject6$K = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n margin-right: 20px;\n"])));
|
|
14030
14774
|
|
|
14031
14775
|
var TabWithIcon = function TabWithIcon(_ref5) {
|
|
14032
14776
|
var icon = _ref5.icon,
|
|
@@ -14043,7 +14787,7 @@ var TabWithIcon = function TabWithIcon(_ref5) {
|
|
|
14043
14787
|
setSelected(tabId);
|
|
14044
14788
|
}, [setSelected]);
|
|
14045
14789
|
var active = selected === tabFor;
|
|
14046
|
-
return React__default.createElement(Container
|
|
14790
|
+
return React__default.createElement(Container$$, Object.assign({}, {
|
|
14047
14791
|
active: active
|
|
14048
14792
|
}, props, {
|
|
14049
14793
|
onClick: function onClick() {
|
|
@@ -14060,9 +14804,9 @@ var TabWithIcon = function TabWithIcon(_ref5) {
|
|
|
14060
14804
|
}), title), subtitle && React__default.createElement(SubTitle$2, null, subtitle)));
|
|
14061
14805
|
};
|
|
14062
14806
|
|
|
14063
|
-
var _templateObject$
|
|
14064
|
-
var Container$
|
|
14065
|
-
var TabListWrapper$1 = styled__default.div(_templateObject2$
|
|
14807
|
+
var _templateObject$1w, _templateObject2$1l;
|
|
14808
|
+
var Container$10 = styled__default.div(_templateObject$1w || (_templateObject$1w = _taggedTemplateLiteralLoose([""])));
|
|
14809
|
+
var TabListWrapper$1 = styled__default.div(_templateObject2$1l || (_templateObject2$1l = _taggedTemplateLiteralLoose(["\n padding-top: 10px;\n padding-left: ", ";\n box-shadow: 0 -5px 5px 0 hsla(0, 0%, 0%, 0.01);\n border-bottom: 1px solid hsl(0, 0%, 89%);\n overflow-y: auto;\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n &::-webkit-scrollbar { /* WebKit */\n width: 0;\n height: 0;\n }\n"])), function (_ref) {
|
|
14066
14810
|
var paddingLeft = _ref.paddingLeft;
|
|
14067
14811
|
return paddingLeft ? paddingLeft : '87px';
|
|
14068
14812
|
});
|
|
@@ -14071,7 +14815,7 @@ var TabsWithIconBar = function TabsWithIconBar(_ref2) {
|
|
|
14071
14815
|
var defaultTabId = _ref2.defaultTabId,
|
|
14072
14816
|
tabList = _ref2.tabList,
|
|
14073
14817
|
paddingLeft = _ref2.paddingLeft;
|
|
14074
|
-
return React__default.createElement(Container$
|
|
14818
|
+
return React__default.createElement(Container$10, null, React__default.createElement(Tabs, null, React__default.createElement(TabListWrapper$1, Object.assign({}, {
|
|
14075
14819
|
paddingLeft: paddingLeft
|
|
14076
14820
|
}), React__default.createElement(TabList, Object.assign({}, {
|
|
14077
14821
|
defaultTabId: defaultTabId
|
|
@@ -14100,13 +14844,13 @@ var TabsWithIconBar = function TabsWithIconBar(_ref2) {
|
|
|
14100
14844
|
|
|
14101
14845
|
var _excluded$I = ["closeId", "closeText"];
|
|
14102
14846
|
|
|
14103
|
-
var _templateObject$
|
|
14104
|
-
var StyledButton$6 = styled__default.button(_templateObject$
|
|
14847
|
+
var _templateObject$1x, _templateObject2$1m, _templateObject3$1d, _templateObject4$15;
|
|
14848
|
+
var StyledButton$6 = styled__default.button(_templateObject$1x || (_templateObject$1x = _taggedTemplateLiteralLoose(["\n ", "\n\n ", ";\n \n height: ", "px;\n position: fixed;\n bottom: 0;\n font-size: 14px;\n outline: none;\n\n width: 100%;\n text-align: center;\n white-space: nowrap;\n padding: 0 40px;\n\n"])), resetButtonStyles, function (_ref) {
|
|
14105
14849
|
var theme = _ref.theme;
|
|
14106
|
-
return styled.css(_templateObject2$
|
|
14850
|
+
return styled.css(_templateObject2$1m || (_templateObject2$1m = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n ", ";\n ", ";\n border-top: 1px solid ", ";\n "])), theme.fontFamily.ui, theme.typography.global.mainMenu.menuItem["default"], theme.styles.global.mainMenu.background, theme.colors.divider);
|
|
14107
14851
|
}, MOBILE_CLOSE_HEIGHT);
|
|
14108
|
-
var IconContainer$2 = styled__default.div(_templateObject3$
|
|
14109
|
-
var TextWrapper = styled__default.div(_templateObject4$
|
|
14852
|
+
var IconContainer$2 = styled__default.div(_templateObject3$1d || (_templateObject3$1d = _taggedTemplateLiteralLoose(["\n height: inherit;\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n margin: 0 20px;\n\n svg {\n display:block;\n }\n"])));
|
|
14853
|
+
var TextWrapper = styled__default.div(_templateObject4$15 || (_templateObject4$15 = _taggedTemplateLiteralLoose(["\n text-transform: uppercase;\n"])));
|
|
14110
14854
|
|
|
14111
14855
|
var CloseButton$1 = function CloseButton(_ref2) {
|
|
14112
14856
|
var closeId = _ref2.closeId,
|
|
@@ -14128,9 +14872,9 @@ var CloseButton$1 = function CloseButton(_ref2) {
|
|
|
14128
14872
|
})), React__default.createElement(TextWrapper, null, closeText));
|
|
14129
14873
|
};
|
|
14130
14874
|
|
|
14131
|
-
var _templateObject$
|
|
14132
|
-
var Container
|
|
14133
|
-
var ContentWrapper = styled__default.div(_templateObject2$
|
|
14875
|
+
var _templateObject$1y, _templateObject2$1n;
|
|
14876
|
+
var Container$11 = styled__default.div(_templateObject$1y || (_templateObject$1y = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: calc(100vh - ", "px);\n width: 100%;\n overflow-y: scroll;\n"])), MOBILE_NAVBAR_HEIGHT + MOBILE_CLOSE_HEIGHT);
|
|
14877
|
+
var ContentWrapper = styled__default.div(_templateObject2$1n || (_templateObject2$1n = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n"])));
|
|
14134
14878
|
|
|
14135
14879
|
var MobileNavbarContent = function MobileNavbarContent(_ref) {
|
|
14136
14880
|
var closeId = _ref.closeId,
|
|
@@ -14139,14 +14883,14 @@ var MobileNavbarContent = function MobileNavbarContent(_ref) {
|
|
|
14139
14883
|
var _useContext = React.useContext(TabContext),
|
|
14140
14884
|
selected = _useContext.selected;
|
|
14141
14885
|
|
|
14142
|
-
return selected === closeId ? null : React__default.createElement(Container
|
|
14886
|
+
return selected === closeId ? null : React__default.createElement(Container$11, null, React__default.createElement(ContentWrapper, null, children));
|
|
14143
14887
|
};
|
|
14144
14888
|
|
|
14145
|
-
var _templateObject$
|
|
14146
|
-
var Container$
|
|
14147
|
-
var ItemWrapper = styled__default.div(_templateObject2$
|
|
14889
|
+
var _templateObject$1z, _templateObject2$1o, _templateObject3$1e;
|
|
14890
|
+
var Container$12 = styled__default.div(_templateObject$1z || (_templateObject$1z = _taggedTemplateLiteralLoose([""])));
|
|
14891
|
+
var ItemWrapper = styled__default.div(_templateObject2$1o || (_templateObject2$1o = _taggedTemplateLiteralLoose(["\n padding: 14px 0;\n ", ";\n"])), function (_ref) {
|
|
14148
14892
|
var theme = _ref.theme;
|
|
14149
|
-
return styled.css(_templateObject3$
|
|
14893
|
+
return styled.css(_templateObject3$1e || (_templateObject3$1e = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", "\n "])), theme.colors.divider);
|
|
14150
14894
|
});
|
|
14151
14895
|
|
|
14152
14896
|
var MobileMenu = function MobileMenu(_ref2) {
|
|
@@ -14189,7 +14933,7 @@ var MobileMenu = function MobileMenu(_ref2) {
|
|
|
14189
14933
|
var handleCloseMenu = React.useCallback(function () {
|
|
14190
14934
|
setSelected(closeId);
|
|
14191
14935
|
}, [closeId, setSelected]);
|
|
14192
|
-
return React__default.createElement(Container$
|
|
14936
|
+
return React__default.createElement(Container$12, null, content.items.map(function (item, key) {
|
|
14193
14937
|
return React__default.createElement(ItemWrapper, {
|
|
14194
14938
|
key: key,
|
|
14195
14939
|
"data-key": key
|
|
@@ -14217,10 +14961,10 @@ var MobileMenu = function MobileMenu(_ref2) {
|
|
|
14217
14961
|
})));
|
|
14218
14962
|
};
|
|
14219
14963
|
|
|
14220
|
-
var _templateObject$
|
|
14221
|
-
var Logo$1 = styled__default(reactRouterDom.Link)(_templateObject$
|
|
14222
|
-
var LogoMark$1 = styled__default.div(_templateObject2$
|
|
14223
|
-
var SVGObject$1 = styled__default.object(_templateObject3$
|
|
14964
|
+
var _templateObject$1A, _templateObject2$1p, _templateObject3$1f;
|
|
14965
|
+
var Logo$1 = styled__default(reactRouterDom.Link)(_templateObject$1A || (_templateObject$1A = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n flex-basis: 0;\n flex-grow: 1;\n justify-content: center;\n align-items: center;\n object {\n pointer-events: none;\n height: 25px;\n }\n"])), resetButtonStyles);
|
|
14966
|
+
var LogoMark$1 = styled__default.div(_templateObject2$1p || (_templateObject2$1p = _taggedTemplateLiteralLoose(["\n margin-right: 15px;\n"])));
|
|
14967
|
+
var SVGObject$1 = styled__default.object(_templateObject3$1f || (_templateObject3$1f = _taggedTemplateLiteralLoose([""])));
|
|
14224
14968
|
|
|
14225
14969
|
var MobileLogoLink = function MobileLogoLink(_ref) {
|
|
14226
14970
|
var _ref$home = _ref.home,
|
|
@@ -14242,8 +14986,10 @@ var MobileLogoLink = function MobileLogoLink(_ref) {
|
|
|
14242
14986
|
}) : React__default.createElement(SvgLogoMark, null)));
|
|
14243
14987
|
};
|
|
14244
14988
|
|
|
14245
|
-
var
|
|
14246
|
-
|
|
14989
|
+
var _excluded$J = ["closeId", "hasLanguage", "hasLogout", "logoutLink", "hasCurrentUser", "userSubmenu", "userDrawerBespoke", "loggedInUser", "onLogout", "onLanguageToggle"];
|
|
14990
|
+
|
|
14991
|
+
var _templateObject$1B;
|
|
14992
|
+
var Container$13 = styled__default.div(_templateObject$1B || (_templateObject$1B = _taggedTemplateLiteralLoose(["\n background: ", ";\n z-index: 100;\n display: flex;\n flex-direction: column;\n"])), function (_ref) {
|
|
14247
14993
|
var theme = _ref.theme;
|
|
14248
14994
|
return theme.styles.global.mainMenu.background;
|
|
14249
14995
|
});
|
|
@@ -14258,7 +15004,8 @@ var MobileUserMenu = function MobileUserMenu(_ref2) {
|
|
|
14258
15004
|
userDrawerBespoke = _ref2.userDrawerBespoke,
|
|
14259
15005
|
loggedInUser = _ref2.loggedInUser,
|
|
14260
15006
|
onLogout = _ref2.onLogout,
|
|
14261
|
-
onLanguageToggle = _ref2.onLanguageToggle
|
|
15007
|
+
onLanguageToggle = _ref2.onLanguageToggle,
|
|
15008
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$J);
|
|
14262
15009
|
|
|
14263
15010
|
var _useContext = React.useContext(TabContext),
|
|
14264
15011
|
setSelected = _useContext.setSelected;
|
|
@@ -14266,7 +15013,7 @@ var MobileUserMenu = function MobileUserMenu(_ref2) {
|
|
|
14266
15013
|
var handleCloseMenu = React.useCallback(function () {
|
|
14267
15014
|
setSelected(closeId);
|
|
14268
15015
|
}, [closeId, setSelected]);
|
|
14269
|
-
return React__default.createElement(Container$
|
|
15016
|
+
return React__default.createElement(Container$13, null, React__default.createElement(UserMenu, Object.assign({}, _extends({
|
|
14270
15017
|
hasLanguage: hasLanguage,
|
|
14271
15018
|
hasLogout: hasLogout,
|
|
14272
15019
|
logoutLink: logoutLink,
|
|
@@ -14276,22 +15023,24 @@ var MobileUserMenu = function MobileUserMenu(_ref2) {
|
|
|
14276
15023
|
loggedInUser: loggedInUser,
|
|
14277
15024
|
onLogout: onLogout,
|
|
14278
15025
|
onLanguageToggle: onLanguageToggle
|
|
14279
|
-
}, {
|
|
15026
|
+
}, props), {
|
|
14280
15027
|
closeOnClick: handleCloseMenu
|
|
14281
15028
|
})));
|
|
14282
15029
|
};
|
|
14283
15030
|
|
|
14284
|
-
var
|
|
15031
|
+
var _excluded$K = ["content", "home", "logoMark", "supportUrl", "defaultMenuOpen", "closeText", "hasLanguage", "hasLogout", "logoutLink", "hasCurrentUser", "hasNotifications", "userSubmenu", "userDrawerBespoke", "loggedInUser", "notificationsHistory", "customDrawer", "onLogout", "onLanguageToggle"];
|
|
15032
|
+
|
|
15033
|
+
var _templateObject$1C, _templateObject2$1q;
|
|
14285
15034
|
var CLOSE_ID = 'closeMenu';
|
|
14286
15035
|
var NOTI_TAB = 'notifications';
|
|
14287
15036
|
var USER_TAB = 'user';
|
|
14288
15037
|
var MENU_TAB = 'menu';
|
|
14289
15038
|
var CUSTOM_TAB = 'custom';
|
|
14290
|
-
var Container$
|
|
15039
|
+
var Container$14 = styled__default.nav(_templateObject$1C || (_templateObject$1C = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 99;\n"])), function (_ref) {
|
|
14291
15040
|
var theme = _ref.theme;
|
|
14292
15041
|
return theme.styles.global.mainMenu.background.backgroundColor;
|
|
14293
15042
|
});
|
|
14294
|
-
var HeaderContainer = styled__default.div(_templateObject2$
|
|
15043
|
+
var HeaderContainer = styled__default.div(_templateObject2$1q || (_templateObject2$1q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n height: ", "px;\n border-bottom: ", " 1px solid;\n\n ", " {\n flex-basis: 0;\n flex-grow: 3;\n }\n"])), MOBILE_NAVBAR_HEIGHT, function (_ref2) {
|
|
14295
15044
|
var theme = _ref2.theme;
|
|
14296
15045
|
return theme.colors.divider;
|
|
14297
15046
|
}, TabListWrapper);
|
|
@@ -14315,8 +15064,10 @@ var MobileNavbar = function MobileNavbar(_ref3) {
|
|
|
14315
15064
|
notificationsHistory = _ref3.notificationsHistory,
|
|
14316
15065
|
customDrawer = _ref3.customDrawer,
|
|
14317
15066
|
onLogout = _ref3.onLogout,
|
|
14318
|
-
onLanguageToggle = _ref3.onLanguageToggle
|
|
14319
|
-
|
|
15067
|
+
onLanguageToggle = _ref3.onLanguageToggle,
|
|
15068
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$K);
|
|
15069
|
+
|
|
15070
|
+
return React__default.createElement(Container$14, null, React__default.createElement(Tabs, null, React__default.createElement(HeaderContainer, null, React__default.createElement(MobileLogoLink, Object.assign({}, {
|
|
14320
15071
|
home: home,
|
|
14321
15072
|
logoMark: logoMark
|
|
14322
15073
|
}, {
|
|
@@ -14346,7 +15097,7 @@ var MobileNavbar = function MobileNavbar(_ref3) {
|
|
|
14346
15097
|
tabId: NOTI_TAB
|
|
14347
15098
|
}, notificationsHistory && hasNotifications ? React__default.createElement(NotificationsHistory, Object.assign({}, notificationsHistory)) : null), React__default.createElement(TabContent, {
|
|
14348
15099
|
tabId: USER_TAB
|
|
14349
|
-
}, React__default.createElement(MobileUserMenu, Object.assign({}, {
|
|
15100
|
+
}, React__default.createElement(MobileUserMenu, Object.assign({}, _extends({
|
|
14350
15101
|
hasLanguage: hasLanguage,
|
|
14351
15102
|
hasLogout: hasLogout,
|
|
14352
15103
|
logoutLink: logoutLink,
|
|
@@ -14356,7 +15107,7 @@ var MobileNavbar = function MobileNavbar(_ref3) {
|
|
|
14356
15107
|
loggedInUser: loggedInUser,
|
|
14357
15108
|
onLogout: onLogout,
|
|
14358
15109
|
onLanguageToggle: onLanguageToggle
|
|
14359
|
-
}, {
|
|
15110
|
+
}, props), {
|
|
14360
15111
|
closeId: CLOSE_ID
|
|
14361
15112
|
}))), React__default.createElement(TabContent, {
|
|
14362
15113
|
tabId: MENU_TAB
|
|
@@ -14373,7 +15124,7 @@ var MobileNavbar = function MobileNavbar(_ref3) {
|
|
|
14373
15124
|
})))));
|
|
14374
15125
|
};
|
|
14375
15126
|
|
|
14376
|
-
var _excluded$
|
|
15127
|
+
var _excluded$L = ["content", "home", "openWidth", "logoMark", "logoText", "supportUrl", "defaultMenuOpen", "canAlwaysPin", "paddingOverride", "maxWidth", "children", "onMenuToggle"];
|
|
14377
15128
|
|
|
14378
15129
|
var GlobalUI = function GlobalUI(_ref) {
|
|
14379
15130
|
var content = _ref.content,
|
|
@@ -14388,7 +15139,7 @@ var GlobalUI = function GlobalUI(_ref) {
|
|
|
14388
15139
|
maxWidth = _ref.maxWidth,
|
|
14389
15140
|
children = _ref.children,
|
|
14390
15141
|
onMenuToggle = _ref.onMenuToggle,
|
|
14391
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
15142
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
14392
15143
|
|
|
14393
15144
|
var _useBreakpoints = useBreakpoints(),
|
|
14394
15145
|
isLarge = _useBreakpoints.isLarge;
|
|
@@ -14401,33 +15152,32 @@ var GlobalUI = function GlobalUI(_ref) {
|
|
|
14401
15152
|
logoText: logoText,
|
|
14402
15153
|
supportUrl: supportUrl,
|
|
14403
15154
|
defaultMenuOpen: defaultMenuOpen,
|
|
14404
|
-
canAlwaysPin: canAlwaysPin
|
|
15155
|
+
canAlwaysPin: canAlwaysPin,
|
|
15156
|
+
onMenuToggle: onMenuToggle
|
|
14405
15157
|
})), React__default.createElement(MainContainer, null, React__default.createElement(TopBar, Object.assign({}, _extends({}, props))), React__default.createElement(ContentArea, Object.assign({}, {
|
|
14406
15158
|
maxWidth: maxWidth,
|
|
14407
|
-
paddingOverride: paddingOverride
|
|
14408
|
-
onMenuToggle: onMenuToggle
|
|
15159
|
+
paddingOverride: paddingOverride
|
|
14409
15160
|
}), children))) : React__default.createElement(MobileLayout, null, React__default.createElement(MobileNavbar, Object.assign({}, _extends({
|
|
14410
15161
|
content: content,
|
|
14411
15162
|
home: home,
|
|
14412
15163
|
logoMark: logoMark,
|
|
14413
15164
|
supportUrl: supportUrl,
|
|
14414
|
-
defaultMenuOpen: defaultMenuOpen
|
|
14415
|
-
onMenuToggle: onMenuToggle
|
|
15165
|
+
defaultMenuOpen: defaultMenuOpen
|
|
14416
15166
|
}, props))), React__default.createElement(ContentArea, null, children));
|
|
14417
15167
|
};
|
|
14418
15168
|
|
|
14419
|
-
var _excluded$
|
|
15169
|
+
var _excluded$M = ["children"];
|
|
14420
15170
|
|
|
14421
|
-
var _templateObject$
|
|
14422
|
-
var Container$
|
|
14423
|
-
var LogoContainer = styled__default.div(_templateObject2$
|
|
14424
|
-
var LogoTopText = styled__default.div(_templateObject3$
|
|
14425
|
-
var LogoBottomText = styled__default.div(_templateObject4$
|
|
14426
|
-
var SidebarBox = styled__default.div(_templateObject5$
|
|
14427
|
-
var SidebarHeading = styled__default.div(_templateObject6$
|
|
14428
|
-
var SidebarLinkHeading = styled__default.div(_templateObject7$
|
|
14429
|
-
var BackLink = styled__default(reactRouterDom.Link)(_templateObject8$
|
|
14430
|
-
var SLink = styled__default(reactRouterDom.Link)(_templateObject9$
|
|
15171
|
+
var _templateObject$1D, _templateObject2$1r, _templateObject3$1g, _templateObject4$16, _templateObject5$Z, _templateObject6$L, _templateObject7$G, _templateObject8$C, _templateObject9$w;
|
|
15172
|
+
var Container$15 = styled__default.div(_templateObject$1D || (_templateObject$1D = _taggedTemplateLiteralLoose(["\n width: 286px;\n border-right: 1px solid hsla(0, 0%, 84%, 50%);\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n"])));
|
|
15173
|
+
var LogoContainer = styled__default.div(_templateObject2$1r || (_templateObject2$1r = _taggedTemplateLiteralLoose(["\n height: 84px;\n color: hsl(205, 7%, 35%);\n border-bottom: 1px solid hsla(0, 0%, 84%, 50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-top: 18px;\n padding-bottom: 15px;\n"])));
|
|
15174
|
+
var LogoTopText = styled__default.div(_templateObject3$1g || (_templateObject3$1g = _taggedTemplateLiteralLoose(["\n height: 31px;\n font-family: Monorale;\n font-size: 18px;\n font-weight: 500;\n line-height: 1.72;\n letter-spacing: 4.5px;\n text-align: center;\n"])));
|
|
15175
|
+
var LogoBottomText = styled__default.div(_templateObject4$16 || (_templateObject4$16 = _taggedTemplateLiteralLoose(["\n height: 19px;\n font-family: Monorale;\n font-size: 16px;\n font-weight: 300;\n line-height: normal;\n letter-spacing: 14.11px;\n text-align: center;\n"])));
|
|
15176
|
+
var SidebarBox = styled__default.div(_templateObject5$Z || (_templateObject5$Z = _taggedTemplateLiteralLoose(["\n position: relative;\n border-bottom: 1px solid hsla(0, 0%, 84%, 50%);\n padding: 22px 20px 21px 20px;\n"])));
|
|
15177
|
+
var SidebarHeading = styled__default.div(_templateObject6$L || (_templateObject6$L = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.35px;\n color: hsl(0, 0%, 50%);\n margin-bottom: 18px;\n"])));
|
|
15178
|
+
var SidebarLinkHeading = styled__default.div(_templateObject7$G || (_templateObject7$G = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.35px;\n color: hsl(0, 0%, 50%);\n"])));
|
|
15179
|
+
var BackLink = styled__default(reactRouterDom.Link)(_templateObject8$C || (_templateObject8$C = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.35px;\n color: hsl(0, 0%, 50%);\n"])));
|
|
15180
|
+
var SLink = styled__default(reactRouterDom.Link)(_templateObject9$w || (_templateObject9$w = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 30px;\n top: 15px;\n /* width: 80px; */\n /* height: 30px; */\n font-size: 14px;\n font-weight: 600;\n text-align: center;\n color: hsl(0, 0%, 55%);\n border-radius: 3px;\n background-color: hsl(206, 70%, 96%);\n text-decoration: none;\n padding: 7px 20px;\n"])));
|
|
14431
15181
|
var SidebarLink = function SidebarLink(_ref) {
|
|
14432
15182
|
var title = _ref.title,
|
|
14433
15183
|
to = _ref.to;
|
|
@@ -14443,9 +15193,9 @@ var Logo$2 = function Logo(_ref2) {
|
|
|
14443
15193
|
|
|
14444
15194
|
var Sidebar = function Sidebar(_ref3) {
|
|
14445
15195
|
var children = _ref3.children,
|
|
14446
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
15196
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$M);
|
|
14447
15197
|
|
|
14448
|
-
return React__default.createElement(Container$
|
|
15198
|
+
return React__default.createElement(Container$15, Object.assign({}, props), children);
|
|
14449
15199
|
};
|
|
14450
15200
|
|
|
14451
15201
|
Object.defineProperty(exports, 'IconSVGs', {
|
|
@@ -14482,6 +15232,7 @@ exports.FilterButton = FilterButton;
|
|
|
14482
15232
|
exports.FilterDropdown = FilterDropdown;
|
|
14483
15233
|
exports.FilterDropdownContainer = FilterDropdownContainer;
|
|
14484
15234
|
exports.FilterInputs = FilterInputs;
|
|
15235
|
+
exports.FilterLayout = FilterLayout;
|
|
14485
15236
|
exports.FiltersResults = FiltersResults;
|
|
14486
15237
|
exports.Form = Form;
|
|
14487
15238
|
exports.GlobalUI = GlobalUI;
|