@appquality/unguess-design-system 2.12.60 → 2.12.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +747 -138
- package/build/stories/buttons/button/_types.d.ts +2 -0
- package/build/stories/buttons/icon-button/_types.d.ts +3 -1
- package/build/stories/loaders/dots/_types.d.ts +11 -0
- package/build/stories/loaders/dots/index.d.ts +14 -0
- package/build/stories/loaders/dots/index.stories.d.ts +5 -0
- package/build/stories/loaders/progress/index.d.ts +3 -2
- package/build/stories/loaders/progress/index.stories.d.ts +2 -1
- package/build/stories/player/_types.d.ts +7 -0
- package/build/stories/player/index.d.ts +9 -0
- package/build/stories/player/index.stories.d.ts +8 -0
- package/build/stories/player/parts/audioButton.d.ts +9 -0
- package/build/stories/player/parts/container.d.ts +2 -0
- package/build/stories/player/parts/controls.d.ts +9 -0
- package/build/stories/player/parts/controlsCenterGroup.d.ts +5 -0
- package/build/stories/player/parts/floatingControls.d.ts +5 -0
- package/build/stories/player/parts/fullScreenButton.d.ts +10 -0
- package/build/stories/player/parts/spinner.d.ts +1 -0
- package/build/stories/player/parts/timeLabel.d.ts +4 -0
- package/build/stories/player/parts/tooltip.d.ts +5 -0
- package/build/stories/player/parts/utils.d.ts +2 -0
- package/build/stories/player/parts/video.d.ts +1 -0
- package/build/stories/theme/components.d.ts +39 -4
- package/build/stories/theme/index.d.ts +39 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -275,8 +275,8 @@ const fontWeights = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.f
|
|
|
275
275
|
|
|
276
276
|
const colors = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[600], accentHue: palette.water[600] });
|
|
277
277
|
|
|
278
|
-
var _a, _b, _c, _d, _e, _f, _g$
|
|
279
|
-
const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$
|
|
278
|
+
var _a, _b, _c, _d, _e, _f, _g$8, _h;
|
|
279
|
+
const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$8 = reactTheming.DEFAULT_THEME.components) === null || _g$8 === void 0 ? void 0 : _g$8.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }), pageHeader: {
|
|
280
280
|
imgMaxHeight: "214px",
|
|
281
281
|
}, autocomplete: {
|
|
282
282
|
thumbSize: "60px",
|
|
@@ -302,15 +302,43 @@ const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.co
|
|
|
302
302
|
: {})), { "&:hover": {
|
|
303
303
|
backgroundColor: palette.kale[100],
|
|
304
304
|
} });
|
|
305
|
-
}, "buttons.icon_button": ({ isDanger, isPrimary, isHovered, isNeutral, }) => {
|
|
306
|
-
if (
|
|
305
|
+
}, "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }) => {
|
|
306
|
+
if (isNeutral || isPrimary || isDanger)
|
|
307
307
|
return {};
|
|
308
|
-
return {
|
|
308
|
+
return Object.assign(Object.assign(Object.assign({}, (isBasic && {
|
|
309
309
|
backgroundColor: palette.white,
|
|
310
310
|
"&:hover": {
|
|
311
|
-
backgroundColor: palette.kale[
|
|
311
|
+
backgroundColor: palette.kale[200],
|
|
312
312
|
},
|
|
313
|
-
}
|
|
313
|
+
})), (isBright && {
|
|
314
|
+
backgroundColor: "transparent",
|
|
315
|
+
color: "white",
|
|
316
|
+
"&:hover": {
|
|
317
|
+
backgroundColor: palette.grey[500],
|
|
318
|
+
color: palette.kale[100],
|
|
319
|
+
},
|
|
320
|
+
"&:active": {
|
|
321
|
+
backgroundColor: palette.grey[600],
|
|
322
|
+
color: palette.kale[200],
|
|
323
|
+
},
|
|
324
|
+
})), (disabled && { pointerEvents: "none" }));
|
|
325
|
+
}, "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }) => {
|
|
326
|
+
if (isBright) {
|
|
327
|
+
return {
|
|
328
|
+
backgroundColor: "transparent",
|
|
329
|
+
color: "white",
|
|
330
|
+
border: "none",
|
|
331
|
+
"&:hover": {
|
|
332
|
+
backgroundColor: palette.grey[500],
|
|
333
|
+
color: palette.kale[100],
|
|
334
|
+
},
|
|
335
|
+
"&:active": {
|
|
336
|
+
backgroundColor: palette.grey[600],
|
|
337
|
+
color: palette.kale[200],
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
return {};
|
|
314
342
|
} });
|
|
315
343
|
|
|
316
344
|
const theme = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME), { breakpoints: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors, palette: palette, fonts: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: fontWeights, gradients: gradients, borderRadii: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), lineHeights: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.lineHeights), { xs: "16px" }), components: components, shadows: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }), levels: {
|
|
@@ -576,51 +604,51 @@ const Tag = (props) => jsxRuntime.jsx(reactTags.Tag, Object.assign({}, props));
|
|
|
576
604
|
Tag.Avatar = reactTags.Tag.Avatar;
|
|
577
605
|
Tag.Close = reactTags.Tag.Close;
|
|
578
606
|
|
|
579
|
-
var _g$
|
|
580
|
-
function _extends$
|
|
607
|
+
var _g$7, _path$y;
|
|
608
|
+
function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
|
|
581
609
|
var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
|
|
582
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
610
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
583
611
|
width: 24,
|
|
584
612
|
height: 24,
|
|
585
613
|
viewBox: "0 0 24 24",
|
|
586
614
|
fill: "none",
|
|
587
615
|
xmlns: "http://www.w3.org/2000/svg"
|
|
588
|
-
}, props), _g$
|
|
616
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
589
617
|
opacity: 0.3
|
|
590
618
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
591
619
|
opacity: 0.3,
|
|
592
620
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
593
621
|
fill: "#003A57"
|
|
594
|
-
}))), _path$
|
|
622
|
+
}))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
595
623
|
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
596
624
|
fill: "#003A57"
|
|
597
625
|
})));
|
|
598
626
|
};
|
|
599
627
|
|
|
600
|
-
var _g$
|
|
601
|
-
function _extends$
|
|
628
|
+
var _g$6, _path$x, _path2$9, _path3$5, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1;
|
|
629
|
+
function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
|
|
602
630
|
var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
603
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
631
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
604
632
|
width: 25,
|
|
605
633
|
height: 24,
|
|
606
634
|
viewBox: "0 0 25 24",
|
|
607
635
|
fill: "none",
|
|
608
636
|
xmlns: "http://www.w3.org/2000/svg"
|
|
609
|
-
}, props), _g$
|
|
637
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
610
638
|
opacity: 0.3
|
|
611
639
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
612
640
|
d: "M12.1641 24C18.7915 24 24.1641 18.6274 24.1641 12C24.1641 5.37258 18.7915 0 12.1641 0C5.53665 0 0.164062 5.37258 0.164062 12C0.164062 18.6274 5.53665 24 12.1641 24Z",
|
|
613
641
|
fill: "#D3ECDB"
|
|
614
|
-
}))), _path$
|
|
642
|
+
}))), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
615
643
|
opacity: 0.8,
|
|
616
644
|
d: "M12.653 3.1964C8.84605 3.1964 5.76496 6.27748 5.76496 10.0844C5.76496 10.2596 5.76496 10.4347 5.7904 10.5854C5.46458 11.1861 4.98908 12.0129 4.41279 12.5138C3.98719 12.8896 4.08697 13.2907 4.13687 13.4404C4.26211 13.7662 4.61237 14.0411 5.18866 14.2417C5.38924 14.3171 5.61427 14.367 5.81485 14.4169L5.84028 16.8463C5.84028 17.7983 6.6416 18.625 7.61905 18.625L9.09645 18.1495L9.24713 19.0262C9.34693 19.6025 9.84787 20.0281 10.4496 20.0281C10.5249 20.0281 10.6003 20.0281 10.6746 20.0026L15.3084 19.1769C15.9845 19.0516 16.4101 18.4254 16.3103 17.7494L15.9845 16.1213C18.1634 14.9188 19.541 12.5891 19.541 10.0843C19.541 6.30267 16.4356 3.19629 12.6529 3.19629L12.653 3.1964Z",
|
|
617
645
|
fill: "#70C38A"
|
|
618
|
-
})), _path2$
|
|
646
|
+
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
619
647
|
fillRule: "evenodd",
|
|
620
648
|
clipRule: "evenodd",
|
|
621
649
|
d: "M6.55859 10.7679V10.1211H8.23278V10.7679H6.55859Z",
|
|
622
650
|
fill: "#D3ECDB"
|
|
623
|
-
})), _path3$
|
|
651
|
+
})), _path3$5 || (_path3$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
624
652
|
fillRule: "evenodd",
|
|
625
653
|
clipRule: "evenodd",
|
|
626
654
|
d: "M7.46563 13.6061L7.15234 13.0469L8.60113 12.1841L8.91441 12.7432L7.46563 13.6061Z",
|
|
@@ -668,22 +696,22 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
|
668
696
|
})));
|
|
669
697
|
};
|
|
670
698
|
|
|
671
|
-
var _path$
|
|
672
|
-
function _extends$
|
|
699
|
+
var _path$w, _path2$8, _path3$4, _path4$1;
|
|
700
|
+
function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
|
|
673
701
|
var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
674
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
702
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
675
703
|
width: 24,
|
|
676
704
|
height: 24,
|
|
677
705
|
viewBox: "0 0 24 24",
|
|
678
706
|
fill: "none",
|
|
679
707
|
xmlns: "http://www.w3.org/2000/svg"
|
|
680
|
-
}, props), _path$
|
|
708
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
681
709
|
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
682
710
|
fill: "#F8F9F9"
|
|
683
|
-
})), _path2$
|
|
711
|
+
})), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
684
712
|
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
685
713
|
fill: "#27DD70"
|
|
686
|
-
})), _path3$
|
|
714
|
+
})), _path3$4 || (_path3$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
687
715
|
d: "M3 12C3 7.02944 7.02944 3 12 3C13.3602 3 14.6521 3.3023 15.8102 3.84415C16.2195 4.03565 16.396 4.52268 16.2045 4.93196C16.013 5.34125 15.526 5.5178 15.1167 5.3263C14.1712 4.88391 13.1156 4.63636 12 4.63636C7.93318 4.63636 4.63636 7.93318 4.63636 12C4.63636 16.0668 7.93318 19.3636 12 19.3636C16.0668 19.3636 19.3636 16.0668 19.3636 12C19.3636 11.3631 19.283 10.7462 19.1317 10.1585C19.0191 9.72084 19.2826 9.27479 19.7202 9.16218C20.1578 9.04957 20.6038 9.31303 20.7165 9.75064C20.9017 10.4705 21 11.2243 21 12C21 16.9705 16.9705 21 12 21C7.02944 21 3 16.9705 3 12Z",
|
|
688
716
|
fill: "#27DD70"
|
|
689
717
|
})), _path4$1 || (_path4$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -692,22 +720,22 @@ var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
|
692
720
|
})));
|
|
693
721
|
};
|
|
694
722
|
|
|
695
|
-
var _path$
|
|
696
|
-
function _extends$
|
|
723
|
+
var _path$v, _path2$7, _path3$3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
724
|
+
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
697
725
|
var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
698
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
726
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
699
727
|
width: 24,
|
|
700
728
|
height: 24,
|
|
701
729
|
viewBox: "0 0 24 24",
|
|
702
730
|
fill: "none",
|
|
703
731
|
xmlns: "http://www.w3.org/2000/svg"
|
|
704
|
-
}, props), _path$
|
|
732
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
705
733
|
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
706
734
|
fill: "#F8F9F9"
|
|
707
|
-
})), _path2$
|
|
735
|
+
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
708
736
|
d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
|
|
709
737
|
fill: "#D1820A"
|
|
710
|
-
})), _path3$
|
|
738
|
+
})), _path3$3 || (_path3$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
711
739
|
d: "M16.1149 14.6183C15.7014 14.2048 15.031 14.2048 14.6175 14.6183C14.204 15.0318 14.204 15.7022 14.6175 16.1157L16.8649 18.3631C17.2783 18.7766 17.9488 18.7766 18.3623 18.3631C18.7757 17.9496 18.7757 17.2792 18.3623 16.8657L16.1149 14.6183Z",
|
|
712
740
|
fill: "#D1820A"
|
|
713
741
|
})), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -737,25 +765,25 @@ var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
|
737
765
|
})));
|
|
738
766
|
};
|
|
739
767
|
|
|
740
|
-
var _path$
|
|
741
|
-
function _extends$
|
|
768
|
+
var _path$u, _path2$6, _path3$2;
|
|
769
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
742
770
|
var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
743
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
771
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
744
772
|
width: 24,
|
|
745
773
|
height: 24,
|
|
746
774
|
viewBox: "0 0 24 24",
|
|
747
775
|
fill: "none",
|
|
748
776
|
xmlns: "http://www.w3.org/2000/svg"
|
|
749
|
-
}, props), _path$
|
|
777
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
750
778
|
d: "M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",
|
|
751
779
|
fill: "#F8F9F9"
|
|
752
|
-
})), _path2$
|
|
780
|
+
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
753
781
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
754
782
|
stroke: "#1371D6",
|
|
755
783
|
strokeWidth: 1.5,
|
|
756
784
|
strokeLinecap: "round",
|
|
757
785
|
strokeLinejoin: "round"
|
|
758
|
-
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
786
|
+
})), _path3$2 || (_path3$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
759
787
|
d: "M15.4918 4.52344C14.4312 4.02722 13.2477 3.75 11.9995 3.75C7.4431 3.75 3.74945 7.44365 3.74945 12C3.74945 16.5563 7.4431 20.25 11.9995 20.25C16.5558 20.25 20.2495 16.5563 20.2495 12C20.2495 11.2878 20.1592 10.5968 19.9896 9.9375",
|
|
760
788
|
stroke: "#3091EC",
|
|
761
789
|
strokeWidth: 1.5,
|
|
@@ -846,7 +874,7 @@ const Description$2 = styled__default["default"](MD) `
|
|
|
846
874
|
color: ${({ theme }) => theme.palette.grey[700]};
|
|
847
875
|
margin-top: ${({ theme }) => theme.space.xxs};
|
|
848
876
|
`;
|
|
849
|
-
const Container$
|
|
877
|
+
const Container$3 = styled__default["default"].div `
|
|
850
878
|
${({ theme, align }) => `
|
|
851
879
|
display: flex;
|
|
852
880
|
align-items: ${align || "start"};
|
|
@@ -857,7 +885,7 @@ const Container$2 = styled__default["default"].div `
|
|
|
857
885
|
margin-top: ${theme.space.xs};
|
|
858
886
|
`}
|
|
859
887
|
`;
|
|
860
|
-
const CardHeader = (props) => jsxRuntime.jsx(Container$
|
|
888
|
+
const CardHeader = (props) => jsxRuntime.jsx(Container$3, Object.assign({}, props));
|
|
861
889
|
CardHeader.Label = Label$2;
|
|
862
890
|
CardHeader.Title = Title$2;
|
|
863
891
|
CardHeader.Text = Description$2;
|
|
@@ -875,7 +903,7 @@ const Footer$3 = styled__default["default"].div `
|
|
|
875
903
|
margin-top: auto;
|
|
876
904
|
width: 100%;
|
|
877
905
|
`;
|
|
878
|
-
const Container$
|
|
906
|
+
const Container$2 = styled__default["default"].div `
|
|
879
907
|
${({ theme, direction, justifyContent, wrap }) => `
|
|
880
908
|
display: flex;
|
|
881
909
|
align-items: center;
|
|
@@ -886,7 +914,7 @@ const Container$1 = styled__default["default"].div `
|
|
|
886
914
|
${wrap ? "flex-wrap: wrap;" : ""}
|
|
887
915
|
`}
|
|
888
916
|
`;
|
|
889
|
-
const CardFooter = (props) => (jsxRuntime.jsxs(Footer$3, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container$
|
|
917
|
+
const CardFooter = (props) => (jsxRuntime.jsxs(Footer$3, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container$2, Object.assign({}, props, { children: props.children }))] }));
|
|
890
918
|
|
|
891
919
|
const UgContentCard = styled__default["default"](reactNotifications.Well) `
|
|
892
920
|
border-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
@@ -1762,7 +1790,7 @@ const UgItem = styled__default["default"](reactDropdowns.Item) `
|
|
|
1762
1790
|
`;
|
|
1763
1791
|
const Item$1 = (props) => jsxRuntime.jsx(UgItem, Object.assign({}, props));
|
|
1764
1792
|
|
|
1765
|
-
const Container = styled__default["default"].div `
|
|
1793
|
+
const Container$1 = styled__default["default"].div `
|
|
1766
1794
|
display: flex;
|
|
1767
1795
|
flex-direction: row;
|
|
1768
1796
|
align-items: center;
|
|
@@ -1800,7 +1828,7 @@ const Image$1 = React.memo(({ src }) => {
|
|
|
1800
1828
|
});
|
|
1801
1829
|
const ItemContent = (props) => {
|
|
1802
1830
|
const { thumbSrc, description, label } = props;
|
|
1803
|
-
return (jsxRuntime.jsxs(Container, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label$1, Object.assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$1, { children: description })] })] }));
|
|
1831
|
+
return (jsxRuntime.jsxs(Container$1, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label$1, Object.assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$1, { children: description })] })] }));
|
|
1804
1832
|
};
|
|
1805
1833
|
|
|
1806
1834
|
/**
|
|
@@ -2148,31 +2176,31 @@ const editorStyle = styled.css `
|
|
|
2148
2176
|
}
|
|
2149
2177
|
`;
|
|
2150
2178
|
|
|
2151
|
-
var _path$
|
|
2152
|
-
function _extends$
|
|
2179
|
+
var _path$t;
|
|
2180
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
2153
2181
|
var SvgBoldFill = function SvgBoldFill(props) {
|
|
2154
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2182
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2155
2183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2156
2184
|
width: 16,
|
|
2157
2185
|
height: 16,
|
|
2158
2186
|
focusable: "false",
|
|
2159
2187
|
viewBox: "0 0 16 16"
|
|
2160
|
-
}, props), _path$
|
|
2188
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2161
2189
|
fill: "currentColor",
|
|
2162
2190
|
d: "M7.5 0C9.952 0 12 2.048 12 4.5a4.483 4.483 0 01-1.27 3.108C12.078 8.39 13 9.855 13 11.5c0 2.452-2.048 4.5-4.5 4.5H4a1 1 0 01-1-1V1a1 1 0 011-1h3.5zM5 14h3.5c1.348 0 2.5-1.152 2.5-2.5S9.848 9 8.5 9H5v5zM7.5 2H5v5h2.5C8.848 7 10 5.848 10 4.5S8.848 2 7.5 2z"
|
|
2163
2191
|
})));
|
|
2164
2192
|
};
|
|
2165
2193
|
|
|
2166
|
-
var _path$
|
|
2167
|
-
function _extends$
|
|
2194
|
+
var _path$s;
|
|
2195
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
2168
2196
|
var SvgItalicFill = function SvgItalicFill(props) {
|
|
2169
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2197
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2170
2198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2171
2199
|
width: 16,
|
|
2172
2200
|
height: 16,
|
|
2173
2201
|
focusable: "false",
|
|
2174
2202
|
viewBox: "0 0 16 16"
|
|
2175
|
-
}, props), _path$
|
|
2203
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2176
2204
|
fill: "none",
|
|
2177
2205
|
stroke: "currentColor",
|
|
2178
2206
|
strokeLinecap: "round",
|
|
@@ -2181,19 +2209,19 @@ var SvgItalicFill = function SvgItalicFill(props) {
|
|
|
2181
2209
|
})));
|
|
2182
2210
|
};
|
|
2183
2211
|
|
|
2184
|
-
var _path$
|
|
2185
|
-
function _extends$
|
|
2212
|
+
var _path$r, _path2$5;
|
|
2213
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
2186
2214
|
var SvgQuoteFill = function SvgQuoteFill(props) {
|
|
2187
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2215
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2188
2216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2189
2217
|
width: 16,
|
|
2190
2218
|
height: 16,
|
|
2191
2219
|
focusable: "false",
|
|
2192
2220
|
viewBox: "0 0 16 16"
|
|
2193
|
-
}, props), _path$
|
|
2221
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2194
2222
|
fill: "currentColor",
|
|
2195
2223
|
d: "M7 8H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1zm6 0h-3c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1z"
|
|
2196
|
-
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2224
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2197
2225
|
fill: "none",
|
|
2198
2226
|
stroke: "currentColor",
|
|
2199
2227
|
strokeLinecap: "round",
|
|
@@ -2202,16 +2230,16 @@ var SvgQuoteFill = function SvgQuoteFill(props) {
|
|
|
2202
2230
|
})));
|
|
2203
2231
|
};
|
|
2204
2232
|
|
|
2205
|
-
var _g$
|
|
2206
|
-
function _extends$
|
|
2233
|
+
var _g$5;
|
|
2234
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
2207
2235
|
var SvgH1Fill = function SvgH1Fill(props) {
|
|
2208
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2236
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2209
2237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2210
2238
|
width: 16,
|
|
2211
2239
|
height: 16,
|
|
2212
2240
|
focusable: "false",
|
|
2213
2241
|
viewBox: "0 0 16 16"
|
|
2214
|
-
}, props), _g$
|
|
2242
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2215
2243
|
transform: "translate(-464 -332)"
|
|
2216
2244
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2217
2245
|
width: 16,
|
|
@@ -2232,16 +2260,16 @@ var SvgH1Fill = function SvgH1Fill(props) {
|
|
|
2232
2260
|
}))));
|
|
2233
2261
|
};
|
|
2234
2262
|
|
|
2235
|
-
var _g$
|
|
2236
|
-
function _extends$
|
|
2263
|
+
var _g$4;
|
|
2264
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
2237
2265
|
var SvgH2Fill = function SvgH2Fill(props) {
|
|
2238
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2266
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2239
2267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2240
2268
|
width: 16,
|
|
2241
2269
|
height: 16,
|
|
2242
2270
|
focusable: "false",
|
|
2243
2271
|
viewBox: "0 0 16 16"
|
|
2244
|
-
}, props), _g$
|
|
2272
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2245
2273
|
transform: "translate(-464 -332)"
|
|
2246
2274
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2247
2275
|
width: 16,
|
|
@@ -2262,16 +2290,16 @@ var SvgH2Fill = function SvgH2Fill(props) {
|
|
|
2262
2290
|
}))));
|
|
2263
2291
|
};
|
|
2264
2292
|
|
|
2265
|
-
var _g$
|
|
2266
|
-
function _extends$
|
|
2293
|
+
var _g$3;
|
|
2294
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
2267
2295
|
var SvgH3Fill = function SvgH3Fill(props) {
|
|
2268
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2296
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
2269
2297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2270
2298
|
width: 16,
|
|
2271
2299
|
height: 16,
|
|
2272
2300
|
focusable: "false",
|
|
2273
2301
|
viewBox: "0 0 16 16"
|
|
2274
|
-
}, props), _g$
|
|
2302
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2275
2303
|
transform: "translate(-464 -332)"
|
|
2276
2304
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2277
2305
|
width: 16,
|
|
@@ -2513,16 +2541,16 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
|
|
|
2513
2541
|
**/
|
|
2514
2542
|
const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
|
|
2515
2543
|
|
|
2516
|
-
var _g$
|
|
2517
|
-
function _extends$
|
|
2544
|
+
var _g$2;
|
|
2545
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
2518
2546
|
var SvgNotesStroke = function SvgNotesStroke(props) {
|
|
2519
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2547
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2520
2548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2521
2549
|
width: 16,
|
|
2522
2550
|
height: 16,
|
|
2523
2551
|
focusable: "false",
|
|
2524
2552
|
viewBox: "0 0 16 16"
|
|
2525
|
-
}, props), _g$
|
|
2553
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2526
2554
|
fill: "none",
|
|
2527
2555
|
stroke: "currentColor"
|
|
2528
2556
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2554,7 +2582,7 @@ const StyledLabel = styled__default["default"](Label) `
|
|
|
2554
2582
|
transition: opacity 0.2s ease-in-out;
|
|
2555
2583
|
`;
|
|
2556
2584
|
const StyledText$1 = styled__default["default"](XL) ``;
|
|
2557
|
-
const Wrapper = styled__default["default"].div `
|
|
2585
|
+
const Wrapper$1 = styled__default["default"].div `
|
|
2558
2586
|
display: flex;
|
|
2559
2587
|
flex-direction: column;
|
|
2560
2588
|
|
|
@@ -2591,7 +2619,7 @@ const InputToggle = (_a) => {
|
|
|
2591
2619
|
handleClick();
|
|
2592
2620
|
}
|
|
2593
2621
|
}, []);
|
|
2594
|
-
return (jsxRuntime.jsx(ToggleContext.Provider, Object.assign({ value: context }, { children: jsxRuntime.jsx(Wrapper, Object.assign({ ref: container, onClick: handleClick, onBlur: () => setIsEditing(false) }, props)) })));
|
|
2622
|
+
return (jsxRuntime.jsx(ToggleContext.Provider, Object.assign({ value: context }, { children: jsxRuntime.jsx(Wrapper$1, Object.assign({ ref: container, onClick: handleClick, onBlur: () => setIsEditing(false) }, props)) })));
|
|
2595
2623
|
};
|
|
2596
2624
|
const getInputSize = (textSize) => ({
|
|
2597
2625
|
fontSize: textSize in theme.fontSizes ? theme.fontSizes[textSize] : "22px",
|
|
@@ -2635,16 +2663,16 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
|
|
|
2635
2663
|
**/
|
|
2636
2664
|
const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
|
|
2637
2665
|
|
|
2638
|
-
var _path$
|
|
2639
|
-
function _extends$
|
|
2666
|
+
var _path$q;
|
|
2667
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
2640
2668
|
var SvgCheckLg = function SvgCheckLg(props) {
|
|
2641
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2669
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2642
2670
|
width: 16,
|
|
2643
2671
|
height: 16,
|
|
2644
2672
|
viewBox: "0 0 16 16",
|
|
2645
2673
|
fill: "#68737D",
|
|
2646
2674
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2647
|
-
}, props), _path$
|
|
2675
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2648
2676
|
fillRule: "evenodd",
|
|
2649
2677
|
clipRule: "evenodd",
|
|
2650
2678
|
d: "M14.6464 2.64645C14.8417 2.45118 15.1583 2.45118 15.3536 2.64645C15.5488 2.84171 15.5488 3.15829 15.3536 3.35355L5.35355 13.3536C5.15829 13.5488 4.84171 13.5488 4.64645 13.3536L0.646447 9.35355C0.451184 9.15829 0.451184 8.84171 0.646447 8.64645C0.841709 8.45118 1.15829 8.45118 1.35355 8.64645L5 12.2929L14.6464 2.64645Z"
|
|
@@ -2726,46 +2754,46 @@ const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props))
|
|
|
2726
2754
|
*/
|
|
2727
2755
|
const Grid = (props) => jsxRuntime.jsx(reactGrid.Grid, Object.assign({}, props));
|
|
2728
2756
|
|
|
2729
|
-
var _path$
|
|
2730
|
-
function _extends$
|
|
2757
|
+
var _path$p;
|
|
2758
|
+
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
2731
2759
|
var SvgUgSquare = function SvgUgSquare(props) {
|
|
2732
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2760
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2733
2761
|
width: 24,
|
|
2734
2762
|
height: 24,
|
|
2735
2763
|
viewBox: "0 0 24 24",
|
|
2736
2764
|
fill: "none",
|
|
2737
2765
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2738
|
-
}, props), _path$
|
|
2766
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2739
2767
|
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
|
|
2740
2768
|
fill: "#E80C7A"
|
|
2741
2769
|
})));
|
|
2742
2770
|
};
|
|
2743
2771
|
|
|
2744
|
-
var _path$
|
|
2745
|
-
function _extends$
|
|
2772
|
+
var _path$o;
|
|
2773
|
+
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
2746
2774
|
var SvgUgCircle = function SvgUgCircle(props) {
|
|
2747
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2775
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
2748
2776
|
width: 24,
|
|
2749
2777
|
height: 24,
|
|
2750
2778
|
viewBox: "0 0 24 24",
|
|
2751
2779
|
fill: "none",
|
|
2752
2780
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2753
|
-
}, props), _path$
|
|
2781
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2754
2782
|
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
|
|
2755
2783
|
fill: "#FFCD1A"
|
|
2756
2784
|
})));
|
|
2757
2785
|
};
|
|
2758
2786
|
|
|
2759
|
-
var _path$
|
|
2760
|
-
function _extends$
|
|
2787
|
+
var _path$n;
|
|
2788
|
+
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
2761
2789
|
var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
2762
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2790
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
2763
2791
|
width: 24,
|
|
2764
2792
|
height: 24,
|
|
2765
2793
|
viewBox: "0 0 24 24",
|
|
2766
2794
|
fill: "none",
|
|
2767
2795
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2768
|
-
}, props), _path$
|
|
2796
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2769
2797
|
d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
|
|
2770
2798
|
fill: "#7B0DFF"
|
|
2771
2799
|
})));
|
|
@@ -2847,7 +2875,7 @@ const UgProgress = styled__default["default"](reactLoaders.Progress) ``;
|
|
|
2847
2875
|
- When the loading time is unknown, use a Spinner instead
|
|
2848
2876
|
- When loading page content, use a Skeleton loader instead
|
|
2849
2877
|
*/
|
|
2850
|
-
const Progress = (props) => jsxRuntime.jsx(UgProgress, Object.assign({}, props));
|
|
2878
|
+
const Progress = React.forwardRef((props, ref) => (jsxRuntime.jsx(UgProgress, Object.assign({ ref: ref }, props))));
|
|
2851
2879
|
|
|
2852
2880
|
const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
2853
2881
|
/**
|
|
@@ -2859,6 +2887,19 @@ const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
|
2859
2887
|
*/
|
|
2860
2888
|
const Spinner = (props) => jsxRuntime.jsx(UgSpinner, Object.assign({}, props));
|
|
2861
2889
|
|
|
2890
|
+
/**
|
|
2891
|
+
* The Dots loader communicates ongoing activity after a user takes an action.
|
|
2892
|
+
* It tells them that something is taking place.
|
|
2893
|
+
* <hr>
|
|
2894
|
+
* Used for this:
|
|
2895
|
+
- To indicate that a single component, like a Button or Search input, is doing something
|
|
2896
|
+
Not for this:
|
|
2897
|
+
- To communicate a page is loading, use a Skeleton loader or Spinner instead
|
|
2898
|
+
- To communicate typing status, use an Inline loader instead
|
|
2899
|
+
- To communicate progress, use a Progress loader instead
|
|
2900
|
+
*/
|
|
2901
|
+
const Dots = (props) => jsxRuntime.jsx(reactLoaders.Dots, Object.assign({}, props));
|
|
2902
|
+
|
|
2862
2903
|
const UgBody = styled__default["default"](reactChrome.Body) `
|
|
2863
2904
|
background-color: ${({ theme }) => theme.palette.white};
|
|
2864
2905
|
`;
|
|
@@ -2870,18 +2911,18 @@ const Body$1 = (props) => jsxRuntime.jsx(UgBody, Object.assign({}, props));
|
|
|
2870
2911
|
/**
|
|
2871
2912
|
* A Content defines the main content of an HTML document which displays on the browser
|
|
2872
2913
|
*/
|
|
2873
|
-
const Content = (props) => jsxRuntime.jsx(reactChrome.Content, Object.assign({}, props));
|
|
2914
|
+
const Content$1 = (props) => jsxRuntime.jsx(reactChrome.Content, Object.assign({}, props));
|
|
2874
2915
|
|
|
2875
|
-
var _path$
|
|
2876
|
-
function _extends$
|
|
2916
|
+
var _path$m;
|
|
2917
|
+
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
2877
2918
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
2878
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2919
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
2879
2920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2880
2921
|
width: 16,
|
|
2881
2922
|
height: 16,
|
|
2882
2923
|
focusable: "false",
|
|
2883
2924
|
viewBox: "0 0 16 16"
|
|
2884
|
-
}, props), _path$
|
|
2925
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2885
2926
|
fill: "currentColor",
|
|
2886
2927
|
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
2887
2928
|
})));
|
|
@@ -2929,16 +2970,16 @@ const Logo = (props) => {
|
|
|
2929
2970
|
}[props.type] })));
|
|
2930
2971
|
};
|
|
2931
2972
|
|
|
2932
|
-
var _path$
|
|
2933
|
-
function _extends$
|
|
2973
|
+
var _path$l;
|
|
2974
|
+
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
2934
2975
|
var SvgMenuStroke = function SvgMenuStroke(props) {
|
|
2935
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2976
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
2936
2977
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2937
2978
|
width: 16,
|
|
2938
2979
|
height: 16,
|
|
2939
2980
|
focusable: "false",
|
|
2940
2981
|
viewBox: "0 0 16 16"
|
|
2941
|
-
}, props), _path$
|
|
2982
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2942
2983
|
fill: "none",
|
|
2943
2984
|
stroke: "currentColor",
|
|
2944
2985
|
strokeLinecap: "round",
|
|
@@ -3102,31 +3143,31 @@ const NavItemIcon = (props) => jsxRuntime.jsx(UgNavIcon, Object.assign({}, props
|
|
|
3102
3143
|
|
|
3103
3144
|
const NavItemText = (props) => (jsxRuntime.jsx(reactChrome.NavItemText, Object.assign({}, props, { children: jsxRuntime.jsx(Ellipsis, Object.assign({ style: { width: "158px" } }, { children: props.children })) })));
|
|
3104
3145
|
|
|
3105
|
-
var _path$
|
|
3106
|
-
function _extends$
|
|
3146
|
+
var _path$k;
|
|
3147
|
+
function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
|
|
3107
3148
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
3108
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3149
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
3109
3150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3110
3151
|
width: 16,
|
|
3111
3152
|
height: 16,
|
|
3112
3153
|
focusable: "false",
|
|
3113
3154
|
viewBox: "0 0 16 16"
|
|
3114
|
-
}, props), _path$
|
|
3155
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3115
3156
|
fill: "currentColor",
|
|
3116
3157
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
3117
3158
|
})));
|
|
3118
3159
|
};
|
|
3119
3160
|
|
|
3120
|
-
var _path$
|
|
3121
|
-
function _extends$
|
|
3161
|
+
var _path$j;
|
|
3162
|
+
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
3122
3163
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
3123
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3164
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
3124
3165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3125
3166
|
width: 16,
|
|
3126
3167
|
height: 16,
|
|
3127
3168
|
focusable: "false",
|
|
3128
3169
|
viewBox: "0 0 16 16"
|
|
3129
|
-
}, props), _path$
|
|
3170
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3130
3171
|
fill: "currentColor",
|
|
3131
3172
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
3132
3173
|
})));
|
|
@@ -3194,25 +3235,25 @@ const NavItemProject = NavItemComponent;
|
|
|
3194
3235
|
NavItemProject.Title = NavItemText;
|
|
3195
3236
|
NavItemProject.SubTitle = UgProjectSubtitle;
|
|
3196
3237
|
|
|
3197
|
-
var _path$
|
|
3198
|
-
function _extends$
|
|
3238
|
+
var _path$i;
|
|
3239
|
+
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
3199
3240
|
var SvgHomeFill = function SvgHomeFill(props) {
|
|
3200
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3241
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
3201
3242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3202
3243
|
width: 26,
|
|
3203
3244
|
height: 26,
|
|
3204
3245
|
focusable: "false",
|
|
3205
3246
|
viewBox: "0 0 26 26"
|
|
3206
|
-
}, props), _path$
|
|
3247
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3207
3248
|
fill: "currentColor",
|
|
3208
3249
|
d: "M23.885 13.2l-1.328 1.639a.522.522 0 01-.737.084l-1.444-1.155v7.182c0 .577-.474 1.05-1.054 1.05H16.51c-.58 0-1.054-.473-1.054-1.05v-3.182a2.43 2.43 0 00-.716-1.732 2.448 2.448 0 00-1.74-.714 2.45 2.45 0 00-1.739.714 2.43 2.43 0 00-.716 1.732v3.182c0 .577-.474 1.05-1.054 1.05H6.678c-.582 0-1.054-.47-1.054-1.05v-7.182L4.18 14.923a.522.522 0 01-.737-.084L2.115 13.2a.52.52 0 01.084-.735l10.474-8.348a.51.51 0 01.654 0L23.8 12.466a.52.52 0 01.084.735"
|
|
3209
3250
|
})));
|
|
3210
3251
|
};
|
|
3211
3252
|
|
|
3212
|
-
var _linearGradient, _path$
|
|
3213
|
-
function _extends$
|
|
3253
|
+
var _linearGradient, _path$h;
|
|
3254
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
3214
3255
|
var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
3215
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3256
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
3216
3257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3217
3258
|
width: 26,
|
|
3218
3259
|
height: 26,
|
|
@@ -3228,20 +3269,20 @@ var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
|
3228
3269
|
className: "stop3",
|
|
3229
3270
|
offset: "100%",
|
|
3230
3271
|
stopColor: "#001825"
|
|
3231
|
-
}))), _path$
|
|
3272
|
+
}))), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3232
3273
|
fill: "url(#unguessIconGradient)",
|
|
3233
3274
|
d: "M23.885 13.2l-1.328 1.639a.522.522 0 01-.737.084l-1.444-1.155v7.182c0 .577-.474 1.05-1.054 1.05H16.51c-.58 0-1.054-.473-1.054-1.05v-3.182a2.43 2.43 0 00-.716-1.732 2.448 2.448 0 00-1.74-.714 2.45 2.45 0 00-1.739.714 2.43 2.43 0 00-.716 1.732v3.182c0 .577-.474 1.05-1.054 1.05H6.678c-.582 0-1.054-.47-1.054-1.05v-7.182L4.18 14.923a.522.522 0 01-.737-.084L2.115 13.2a.52.52 0 01.084-.735l10.474-8.348a.51.51 0 01.654 0L23.8 12.466a.52.52 0 01.084.735"
|
|
3234
3275
|
})));
|
|
3235
3276
|
};
|
|
3236
3277
|
|
|
3237
|
-
var _g, _defs$2;
|
|
3238
|
-
function _extends$
|
|
3278
|
+
var _g$1, _defs$2;
|
|
3279
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
3239
3280
|
var SvgToken = function SvgToken(props) {
|
|
3240
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3281
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3241
3282
|
fill: "none",
|
|
3242
3283
|
viewBox: "0 0 32 32",
|
|
3243
3284
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3244
|
-
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3285
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3245
3286
|
clipPath: "url(#a)"
|
|
3246
3287
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
3247
3288
|
d: "m32 16c0 8.8363-7.1635 16-16 16-8.8369 0-16-7.1635-16-16 0-8.8367 7.1632-16 16-16 8.8364 0 16 7.1632 16 16z",
|
|
@@ -3273,15 +3314,15 @@ var SvgToken = function SvgToken(props) {
|
|
|
3273
3314
|
})))));
|
|
3274
3315
|
};
|
|
3275
3316
|
|
|
3276
|
-
var _path$
|
|
3277
|
-
function _extends$
|
|
3317
|
+
var _path$g;
|
|
3318
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
3278
3319
|
var SvgFolderIcon = function SvgFolderIcon(props) {
|
|
3279
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3320
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
3280
3321
|
width: 12,
|
|
3281
3322
|
height: 12,
|
|
3282
3323
|
viewBox: "0 0 12 12",
|
|
3283
3324
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3284
|
-
}, props), _path$
|
|
3325
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3285
3326
|
fillRule: "evenodd",
|
|
3286
3327
|
clipRule: "evenodd",
|
|
3287
3328
|
d: "M9.99976 4H6.99976V3.5C6.99976 2.62386 6.3759 2 5.49976 2H2.49976C1.62362 2 0.999758 2.62386 0.999758 3.5V6H0.499758C0.174472 6 -0.0642066 6.30569 0.0146868 6.62127L1.01469 10.6213C1.07033 10.8439 1.27032 11 1.49976 11H10.4998C10.7292 11 10.9292 10.8439 10.9848 10.6213L11.9848 6.62127C12.0637 6.30569 11.825 6 11.4998 6H10.9998V5C10.9998 4.42386 10.5759 4 9.99976 4ZM10.8594 7H1.14015L1.89015 10H10.1094L10.8594 7ZM1.99976 6H9.99976V5H5.99976V3.5C5.99976 3.17614 5.82362 3 5.49976 3H2.49976C2.1759 3 1.99976 3.17614 1.99976 3.5V6Z",
|
|
@@ -3289,16 +3330,16 @@ var SvgFolderIcon = function SvgFolderIcon(props) {
|
|
|
3289
3330
|
})));
|
|
3290
3331
|
};
|
|
3291
3332
|
|
|
3292
|
-
var _path$
|
|
3293
|
-
function _extends$
|
|
3333
|
+
var _path$f, _defs$1;
|
|
3334
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
3294
3335
|
var SvgTemplates = function SvgTemplates(props) {
|
|
3295
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3336
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3296
3337
|
width: 26,
|
|
3297
3338
|
height: 26,
|
|
3298
3339
|
viewBox: "0 0 26 26",
|
|
3299
3340
|
fill: "none",
|
|
3300
3341
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3301
|
-
}, props), _path$
|
|
3342
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3302
3343
|
fillRule: "evenodd",
|
|
3303
3344
|
clipRule: "evenodd",
|
|
3304
3345
|
d: "M8 5H3.5C3.2 5 3 5.2 3 5.5V18.5C3 18.8 3.2 19 3.5 19H7C10 19 11 21 11 21H12V7C12 6.9 11 5 8 5ZM9 15H6C5.5 15 5 14.5 5 14C5 13.5 5.5 13 6 13H9C9.5 13 10 13.5 10 14C10 14.5 9.5 15 9 15ZM9 11H6C5.5 11 5 10.5 5 10C5 9.5 5.5 9 6 9H9C9.5 9 10 9.5 10 10C10 10.5 9.5 11 9 11ZM14 7V21H15C15 21 16 19 19 19H22.5C22.8 19 23 18.8 23 18.5V5.5C23 5.2 22.8 5 22.5 5H18C15 5 14 6.9 14 7ZM16 14C16 13.5 16.5 13 17 13H20C20.5 13 21 13.5 21 14C21 14.5 20.5 15 20 15H17C16.5 15 16 14.5 16 14ZM16 10C16 9.5 16.5 9 17 9H20C20.5 9 21 9.5 21 10C21 10.5 20.5 11 20 11H17C16.5 11 16 10.5 16 10Z",
|
|
@@ -3318,16 +3359,16 @@ var SvgTemplates = function SvgTemplates(props) {
|
|
|
3318
3359
|
})))));
|
|
3319
3360
|
};
|
|
3320
3361
|
|
|
3321
|
-
var _path$
|
|
3322
|
-
function _extends$
|
|
3362
|
+
var _path$e, _defs;
|
|
3363
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
3323
3364
|
var SvgTemplatesActive = function SvgTemplatesActive(props) {
|
|
3324
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3365
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3325
3366
|
width: 26,
|
|
3326
3367
|
height: 26,
|
|
3327
3368
|
viewBox: "0 0 26 26",
|
|
3328
3369
|
fill: "none",
|
|
3329
3370
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3330
|
-
}, props), _path$
|
|
3371
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3331
3372
|
fillRule: "evenodd",
|
|
3332
3373
|
clipRule: "evenodd",
|
|
3333
3374
|
d: "M8 5H3.5C3.2 5 3 5.2 3 5.5V18.5C3 18.8 3.2 19 3.5 19H7C10 19 11 21 11 21H12V7C12 6.9 11 5 8 5ZM9 15H6C5.5 15 5 14.5 5 14C5 13.5 5.5 13 6 13H9C9.5 13 10 13.5 10 14C10 14.5 9.5 15 9 15ZM9 11H6C5.5 11 5 10.5 5 10C5 9.5 5.5 9 6 9H9C9.5 9 10 9.5 10 10C10 10.5 9.5 11 9 11ZM14 7V21H15C15 21 16 19 19 19H22.5C22.8 19 23 18.8 23 18.5V5.5C23 5.2 22.8 5 22.5 5H18C15 5 14 6.9 14 7ZM16 14C16 13.5 16.5 13 17 13H20C20.5 13 21 13.5 21 14C21 14.5 20.5 15 20 15H17C16.5 15 16 14.5 16 14ZM16 10C16 9.5 16.5 9 17 9H20C20.5 9 21 9.5 21 10C21 10.5 20.5 11 20 11H17C16.5 11 16 10.5 16 10Z",
|
|
@@ -3501,7 +3542,7 @@ const StyledHr = styled__default["default"].hr `
|
|
|
3501
3542
|
`;
|
|
3502
3543
|
const PageLoader = () => {
|
|
3503
3544
|
const isSidebarOpen = window.matchMedia(`only screen and (min-width: 576px)`).matches;
|
|
3504
|
-
return (jsxRuntime.jsx(reactChrome.Chrome, Object.assign({ isFluid: true, hue: theme.palette.white }, { children: jsxRuntime.jsxs(Body$1, { children: [jsxRuntime.jsx(AppHeader, { isLoading: true }), jsxRuntime.jsxs(Content, { children: [jsxRuntime.jsx(Sidebar, { isExpanded: isSidebarOpen, isLoading: true }), jsxRuntime.jsxs(Main$1, { children: [jsxRuntime.jsx(Skeleton, { width: "30%", height: "32px", style: { marginTop: theme.space.sm, marginLeft: theme.space.sm } }), jsxRuntime.jsx(StyledHr, { style: { margin: "24px 0" } }), jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) }))] })] })] })] }) })));
|
|
3545
|
+
return (jsxRuntime.jsx(reactChrome.Chrome, Object.assign({ isFluid: true, hue: theme.palette.white }, { children: jsxRuntime.jsxs(Body$1, { children: [jsxRuntime.jsx(AppHeader, { isLoading: true }), jsxRuntime.jsxs(Content$1, { children: [jsxRuntime.jsx(Sidebar, { isExpanded: isSidebarOpen, isLoading: true }), jsxRuntime.jsxs(Main$1, { children: [jsxRuntime.jsx(Skeleton, { width: "30%", height: "32px", style: { marginTop: theme.space.sm, marginLeft: theme.space.sm } }), jsxRuntime.jsx(StyledHr, { style: { margin: "24px 0" } }), jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) })), jsxRuntime.jsx(Col, Object.assign({ xs: 12, md: 6, lg: 3 }, { children: jsxRuntime.jsx(CampaignCard, { isLoading: true, projectTitle: "", campaignTitle: "", date: "" }) }))] })] })] })] }) })));
|
|
3505
3546
|
};
|
|
3506
3547
|
|
|
3507
3548
|
/**
|
|
@@ -3544,16 +3585,16 @@ const LoginForm = (props) => {
|
|
|
3544
3585
|
} }))] })), props.onBackClick && (jsxRuntime.jsxs(Button, Object.assign({ onClick: props.onBackClick, isBasic: true, style: { marginTop: theme.space.md } }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.backToLabel || "Back to UNGUESS"] })))] }));
|
|
3545
3586
|
};
|
|
3546
3587
|
|
|
3547
|
-
var _path$
|
|
3548
|
-
function _extends$
|
|
3588
|
+
var _path$d;
|
|
3589
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
3549
3590
|
var SvgPlus = function SvgPlus(props) {
|
|
3550
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3591
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3551
3592
|
width: 16,
|
|
3552
3593
|
height: 16,
|
|
3553
3594
|
viewBox: "0 0 16 16",
|
|
3554
3595
|
fill: "none",
|
|
3555
3596
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3556
|
-
}, props), _path$
|
|
3597
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3557
3598
|
fillRule: "evenodd",
|
|
3558
3599
|
clipRule: "evenodd",
|
|
3559
3600
|
d: "M7.5 2C7.22386 2 7 2.22386 7 2.5V8H1.5C1.22386 8 1 8.22386 1 8.5C1 8.77614 1.22386 9 1.5 9H7V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V9H13.5C13.7761 9 14 8.77614 14 8.5C14 8.22386 13.7761 8 13.5 8H8V2.5C8 2.22386 7.77614 2 7.5 2Z",
|
|
@@ -3819,6 +3860,572 @@ PageHeader.Title = MainTitle;
|
|
|
3819
3860
|
PageHeader.Description = MainDescription;
|
|
3820
3861
|
PageHeader.Counters = MainCounters;
|
|
3821
3862
|
|
|
3863
|
+
const Wrapper = styled__default["default"].div `
|
|
3864
|
+
position: absolute;
|
|
3865
|
+
bottom: ${({ theme }) => theme.space.sm};
|
|
3866
|
+
z-index: 1;
|
|
3867
|
+
`;
|
|
3868
|
+
const Content = styled__default["default"].div `
|
|
3869
|
+
display: flex;
|
|
3870
|
+
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
3871
|
+
border-radius: 2px;
|
|
3872
|
+
width: auto;
|
|
3873
|
+
padding: 2px 4px;
|
|
3874
|
+
display: inline-flex;
|
|
3875
|
+
color: white;
|
|
3876
|
+
align-items: center;
|
|
3877
|
+
justify-content: center;
|
|
3878
|
+
min-height: 16px;
|
|
3879
|
+
`;
|
|
3880
|
+
const PlayerTooltip = (_a) => {
|
|
3881
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
3882
|
+
return (jsxRuntime.jsx(Wrapper, Object.assign({}, props, { children: jsxRuntime.jsx(Content, { children: children }) })));
|
|
3883
|
+
};
|
|
3884
|
+
|
|
3885
|
+
var _path$c;
|
|
3886
|
+
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
3887
|
+
var SvgPlayFill = function SvgPlayFill(props) {
|
|
3888
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
3889
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3890
|
+
width: 16,
|
|
3891
|
+
height: 16,
|
|
3892
|
+
focusable: "false",
|
|
3893
|
+
viewBox: "0 0 16 16"
|
|
3894
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3895
|
+
fill: "currentColor",
|
|
3896
|
+
d: "M6 15.79c-.13 0-.26-.03-.38-.08a.977.977 0 01-.62-.92V1.21a1 1 0 01.62-.93C6 .12 6.42.21 6.71.5l6.44 6.44c.58.58.58 1.54 0 2.12L6.71 15.5c-.19.19-.45.29-.71.29z"
|
|
3897
|
+
})));
|
|
3898
|
+
};
|
|
3899
|
+
|
|
3900
|
+
var _g;
|
|
3901
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
3902
|
+
var SvgPauseFill = function SvgPauseFill(props) {
|
|
3903
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
3904
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3905
|
+
width: 16,
|
|
3906
|
+
height: 16,
|
|
3907
|
+
focusable: "false",
|
|
3908
|
+
viewBox: "0 0 16 16"
|
|
3909
|
+
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3910
|
+
fill: "currentColor"
|
|
3911
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3912
|
+
width: 4,
|
|
3913
|
+
height: 14,
|
|
3914
|
+
x: 3,
|
|
3915
|
+
y: 1,
|
|
3916
|
+
rx: 1,
|
|
3917
|
+
ry: 1
|
|
3918
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3919
|
+
width: 4,
|
|
3920
|
+
height: 14,
|
|
3921
|
+
x: 9,
|
|
3922
|
+
y: 1,
|
|
3923
|
+
rx: 1,
|
|
3924
|
+
ry: 1
|
|
3925
|
+
}))));
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3928
|
+
var _path$b, _path2$4, _path3$1;
|
|
3929
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
3930
|
+
var SvgForwardSecondsFill = function SvgForwardSecondsFill(props) {
|
|
3931
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
3932
|
+
width: 16,
|
|
3933
|
+
height: 16,
|
|
3934
|
+
viewBox: "0 0 16 16",
|
|
3935
|
+
fill: "none",
|
|
3936
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3937
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3938
|
+
fillRule: "evenodd",
|
|
3939
|
+
clipRule: "evenodd",
|
|
3940
|
+
d: "M11.659 3.5C10.7411 2.85974 9.65081 2.5 8.5 2.5C5.45228 2.5 3 4.95228 3 8C3 11.0477 5.45228 13.5 8.5 13.5C10.2023 13.5 11.7457 12.7171 12.8191 11.3753C13.1641 10.944 13.7934 10.8741 14.2247 11.2191C14.656 11.5641 14.7259 12.1934 14.3809 12.6247C12.9372 14.4292 10.8263 15.5 8.5 15.5C4.34772 15.5 1 12.1523 1 8C1 3.84772 4.34772 0.5 8.5 0.5C10.1564 0.5 11.7168 1.04496 13 2.00147V1C13 0.447715 13.4477 0 14 0C14.5523 0 15 0.447715 15 1V4C15 4.85228 14.3523 5.5 13.5 5.5H10.5C9.94771 5.5 9.5 5.05228 9.5 4.5C9.5 3.94772 9.94771 3.5 10.5 3.5H11.659Z",
|
|
3941
|
+
fill: "currentColor"
|
|
3942
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3943
|
+
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
3944
|
+
fill: "currentColor"
|
|
3945
|
+
})), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3946
|
+
d: "M7.56085 8.98383C7.56085 8.36208 7.67013 7.87691 7.88868 7.5283C8.111 7.1761 8.49158 7 9.03042 7C9.56927 7 9.94797 7.1761 10.1665 7.5283C10.3888 7.87691 10.5 8.36208 10.5 8.98383C10.5 9.61276 10.3888 10.1051 10.1665 10.4609C9.94797 10.8131 9.56927 10.9892 9.03042 10.9892C8.49158 10.9892 8.111 10.8131 7.88868 10.4609C7.67013 10.1051 7.56085 9.61276 7.56085 8.98383ZM9.86695 8.98383C9.86695 8.69272 9.84623 8.44654 9.80478 8.24528C9.7671 8.04403 9.68797 7.8805 9.56738 7.75472C9.4468 7.62534 9.26782 7.56065 9.03042 7.56065C8.79303 7.56065 8.61405 7.62534 8.49346 7.75472C8.37288 7.8805 8.29187 8.04403 8.25042 8.24528C8.21274 8.44654 8.1939 8.69272 8.1939 8.98383C8.1939 9.28571 8.21274 9.53908 8.25042 9.74394C8.2881 9.94879 8.36723 10.1141 8.48781 10.2399C8.61216 10.3657 8.79303 10.4286 9.03042 10.4286C9.26782 10.4286 9.4468 10.3657 9.56738 10.2399C9.69173 10.1141 9.77275 9.94879 9.81043 9.74394C9.84811 9.53908 9.86695 9.28571 9.86695 8.98383Z",
|
|
3947
|
+
fill: "currentColor"
|
|
3948
|
+
})));
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
var _path$a, _path2$3, _path3;
|
|
3952
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
3953
|
+
var SvgBackSecondsFill = function SvgBackSecondsFill(props) {
|
|
3954
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
3955
|
+
width: 16,
|
|
3956
|
+
height: 16,
|
|
3957
|
+
viewBox: "0 0 16 16",
|
|
3958
|
+
fill: "none",
|
|
3959
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3960
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3961
|
+
fillRule: "evenodd",
|
|
3962
|
+
clipRule: "evenodd",
|
|
3963
|
+
d: "M4.34099 3.5C5.25886 2.85974 6.34919 2.5 7.5 2.5C10.5477 2.5 13 4.95228 13 8C13 11.0477 10.5477 13.5 7.5 13.5C5.79771 13.5 4.25432 12.7171 3.18087 11.3753C2.83586 10.944 2.20657 10.8741 1.7753 11.2191C1.34404 11.5641 1.27412 12.1934 1.61913 12.6247C3.06275 14.4292 5.17372 15.5 7.5 15.5C11.6523 15.5 15 12.1523 15 8C15 3.84772 11.6523 0.5 7.5 0.5C5.84359 0.5 4.28318 1.04496 3 2.00147V1C3 0.447715 2.55229 0 2 0C1.44771 0 1 0.447715 1 1V4C1 4.85228 1.64772 5.5 2.5 5.5H5.5C6.05229 5.5 6.5 5.05228 6.5 4.5C6.5 3.94772 6.05229 3.5 5.5 3.5H4.34099Z",
|
|
3964
|
+
fill: "currentColor"
|
|
3965
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3966
|
+
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
3967
|
+
fill: "currentColor"
|
|
3968
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3969
|
+
d: "M7.56085 8.98383C7.56085 8.36208 7.67013 7.87691 7.88868 7.5283C8.111 7.1761 8.49158 7 9.03042 7C9.56927 7 9.94797 7.1761 10.1665 7.5283C10.3888 7.87691 10.5 8.36208 10.5 8.98383C10.5 9.61276 10.3888 10.1051 10.1665 10.4609C9.94797 10.8131 9.56927 10.9892 9.03042 10.9892C8.49158 10.9892 8.111 10.8131 7.88868 10.4609C7.67013 10.1051 7.56085 9.61276 7.56085 8.98383ZM9.86695 8.98383C9.86695 8.69272 9.84623 8.44654 9.80478 8.24528C9.7671 8.04403 9.68797 7.8805 9.56738 7.75472C9.4468 7.62534 9.26782 7.56065 9.03042 7.56065C8.79303 7.56065 8.61405 7.62534 8.49346 7.75472C8.37288 7.8805 8.29187 8.04403 8.25042 8.24528C8.21274 8.44654 8.1939 8.69272 8.1939 8.98383C8.1939 9.28571 8.21274 9.53908 8.25042 9.74394C8.2881 9.94879 8.36723 10.1141 8.48781 10.2399C8.61216 10.3657 8.79303 10.4286 9.03042 10.4286C9.26782 10.4286 9.4468 10.3657 9.56738 10.2399C9.69173 10.1141 9.77275 9.94879 9.81043 9.74394C9.84811 9.53908 9.86695 9.28571 9.86695 8.98383Z",
|
|
3970
|
+
fill: "currentColor"
|
|
3971
|
+
})));
|
|
3972
|
+
};
|
|
3973
|
+
|
|
3974
|
+
var _path$9, _path2$2;
|
|
3975
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
3976
|
+
var SvgPreviousFill = function SvgPreviousFill(props) {
|
|
3977
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
3978
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3979
|
+
width: 16,
|
|
3980
|
+
height: 16,
|
|
3981
|
+
focusable: "false",
|
|
3982
|
+
viewBox: "0 0 24 24"
|
|
3983
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3984
|
+
d: "M2.75 20C2.75 20.5523 3.19772 21 3.75 21C4.30228 21 4.75 20.5523 4.75 20L4.75 4C4.75 3.44772 4.30229 3 3.75 3C3.19772 3 2.75 3.44772 2.75 4V20Z",
|
|
3985
|
+
fill: "currentColor"
|
|
3986
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3987
|
+
d: "M20.75 19.0526C20.75 20.4774 19.1383 21.305 17.9803 20.4748L7.51062 12.9682C6.50574 12.2477 6.54467 10.7407 7.5854 10.073L18.0551 3.35665C19.2198 2.60946 20.75 3.44583 20.75 4.82961L20.75 19.0526Z",
|
|
3988
|
+
fill: "currentColor"
|
|
3989
|
+
})));
|
|
3990
|
+
};
|
|
3991
|
+
|
|
3992
|
+
const formatDuration = (durationInSeconds) => {
|
|
3993
|
+
const min = Math.floor(durationInSeconds / 60);
|
|
3994
|
+
const sec = Math.floor(durationInSeconds - min * 60);
|
|
3995
|
+
const minutes = `${min}`.padStart(2, "0");
|
|
3996
|
+
const seconds = `${sec}`.padStart(2, "0");
|
|
3997
|
+
return `${minutes}:${seconds}`;
|
|
3998
|
+
};
|
|
3999
|
+
const getNextPlaybackRate = (rate = 1) => {
|
|
4000
|
+
switch (rate) {
|
|
4001
|
+
case .5:
|
|
4002
|
+
return 1;
|
|
4003
|
+
case 1:
|
|
4004
|
+
return 1.5;
|
|
4005
|
+
case 1.5:
|
|
4006
|
+
return 2;
|
|
4007
|
+
case 2:
|
|
4008
|
+
return .5;
|
|
4009
|
+
default:
|
|
4010
|
+
return 1;
|
|
4011
|
+
}
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
const StyledDiv$3 = styled__default["default"].div `
|
|
4015
|
+
display: flex;
|
|
4016
|
+
align-items: center;
|
|
4017
|
+
`;
|
|
4018
|
+
const ControlsGroupCenter = ({ videoRef, isPlaying, onPlayChange, }) => {
|
|
4019
|
+
const [playBackRate, setPlayBackRate] = React.useState(1);
|
|
4020
|
+
React.useEffect(() => {
|
|
4021
|
+
if (videoRef) {
|
|
4022
|
+
setPlayBackRate(videoRef.playbackRate);
|
|
4023
|
+
}
|
|
4024
|
+
}, [videoRef]);
|
|
4025
|
+
const onRewind = () => {
|
|
4026
|
+
if (!videoRef)
|
|
4027
|
+
return;
|
|
4028
|
+
const nextTime = Math.max(0.01, videoRef.currentTime - 10);
|
|
4029
|
+
videoRef.currentTime = nextTime;
|
|
4030
|
+
};
|
|
4031
|
+
const onForward = () => {
|
|
4032
|
+
if (!videoRef)
|
|
4033
|
+
return;
|
|
4034
|
+
const nextTime = videoRef.currentTime + 10;
|
|
4035
|
+
videoRef.currentTime = nextTime;
|
|
4036
|
+
};
|
|
4037
|
+
const handlePlay = React.useCallback((e) => {
|
|
4038
|
+
if (!videoRef)
|
|
4039
|
+
return;
|
|
4040
|
+
if (videoRef.paused) {
|
|
4041
|
+
videoRef.play();
|
|
4042
|
+
onPlayChange === null || onPlayChange === void 0 ? void 0 : onPlayChange(true);
|
|
4043
|
+
}
|
|
4044
|
+
else {
|
|
4045
|
+
videoRef.pause();
|
|
4046
|
+
onPlayChange === null || onPlayChange === void 0 ? void 0 : onPlayChange(false);
|
|
4047
|
+
}
|
|
4048
|
+
e.stopPropagation();
|
|
4049
|
+
}, [videoRef, isPlaying]);
|
|
4050
|
+
return (jsxRuntime.jsxs(StyledDiv$3, { children: [jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4051
|
+
if (videoRef) {
|
|
4052
|
+
videoRef.currentTime = 0;
|
|
4053
|
+
}
|
|
4054
|
+
e.stopPropagation();
|
|
4055
|
+
} }, { children: jsxRuntime.jsx(SvgPreviousFill, {}) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4056
|
+
onRewind();
|
|
4057
|
+
e.stopPropagation();
|
|
4058
|
+
} }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, size: "large", onClick: handlePlay }, { children: isPlaying ? (jsxRuntime.jsx(SvgPauseFill, { style: { width: "24px", height: "24px" } })) : (jsxRuntime.jsx(SvgPlayFill, { style: { width: "24px", height: "24px" } })) })), jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4059
|
+
onForward();
|
|
4060
|
+
e.stopPropagation();
|
|
4061
|
+
} }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(Button, Object.assign({ isBright: true, isPill: true, onClick: (e) => {
|
|
4062
|
+
const newSpeed = getNextPlaybackRate(playBackRate);
|
|
4063
|
+
if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.playbackRate) {
|
|
4064
|
+
setPlayBackRate(newSpeed);
|
|
4065
|
+
videoRef.playbackRate = newSpeed;
|
|
4066
|
+
}
|
|
4067
|
+
e.stopPropagation();
|
|
4068
|
+
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] }));
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4071
|
+
const StyledDiv$2 = styled__default["default"].div `
|
|
4072
|
+
position: absolute;
|
|
4073
|
+
bottom: ${({ theme }) => theme.space.sm};
|
|
4074
|
+
right: 0;
|
|
4075
|
+
|
|
4076
|
+
padding: 0 ${({ theme }) => theme.space.xs};
|
|
4077
|
+
|
|
4078
|
+
span {
|
|
4079
|
+
color: ${({ theme }) => theme.palette.grey[300]};
|
|
4080
|
+
}
|
|
4081
|
+
`;
|
|
4082
|
+
const TimeLabel = ({ current, duration, }) => {
|
|
4083
|
+
return (jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
|
|
4084
|
+
};
|
|
4085
|
+
|
|
4086
|
+
var _path$8, _path2$1;
|
|
4087
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
4088
|
+
var SvgVolumeMutedFill = function SvgVolumeMutedFill(props) {
|
|
4089
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
4090
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4091
|
+
width: 16,
|
|
4092
|
+
height: 16,
|
|
4093
|
+
focusable: "false",
|
|
4094
|
+
viewBox: "0 0 16 16"
|
|
4095
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4096
|
+
stroke: "currentColor",
|
|
4097
|
+
strokeLinecap: "round",
|
|
4098
|
+
d: "M11.5 10l4-4m-4 0l4 4"
|
|
4099
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4100
|
+
fill: "currentColor",
|
|
4101
|
+
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4102
|
+
})));
|
|
4103
|
+
};
|
|
4104
|
+
|
|
4105
|
+
var _path$7, _path2;
|
|
4106
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
4107
|
+
var SvgVolumeUnmutedFill = function SvgVolumeUnmutedFill(props) {
|
|
4108
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
4109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4110
|
+
width: 16,
|
|
4111
|
+
height: 16,
|
|
4112
|
+
focusable: "false",
|
|
4113
|
+
viewBox: "0 0 16 16"
|
|
4114
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4115
|
+
fill: "currentColor",
|
|
4116
|
+
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4117
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4118
|
+
fill: "none",
|
|
4119
|
+
stroke: "currentColor",
|
|
4120
|
+
strokeLinecap: "round",
|
|
4121
|
+
d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
|
|
4122
|
+
})));
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
const AudioButton = (props) => {
|
|
4126
|
+
const [isMuted, setIsMuted] = React.useState(false);
|
|
4127
|
+
const hasAudio = (video) => {
|
|
4128
|
+
if (!video) {
|
|
4129
|
+
return false;
|
|
4130
|
+
}
|
|
4131
|
+
const _hasAudio = video.mozHasAudio ||
|
|
4132
|
+
Boolean(video.webkitAudioDecodedByteCount) ||
|
|
4133
|
+
Boolean(video.audioTracks && video.audioTracks.length);
|
|
4134
|
+
return _hasAudio;
|
|
4135
|
+
};
|
|
4136
|
+
React.useEffect(() => {
|
|
4137
|
+
if (props.videoRef) {
|
|
4138
|
+
setIsMuted(!hasAudio(props.videoRef) || props.videoRef.muted);
|
|
4139
|
+
}
|
|
4140
|
+
}, [props.videoRef]);
|
|
4141
|
+
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !props.videoRef || !hasAudio(props.videoRef), onClick: (e) => {
|
|
4142
|
+
if (props.videoRef) {
|
|
4143
|
+
props.videoRef.muted = !props.videoRef.muted;
|
|
4144
|
+
setIsMuted(props.videoRef.muted);
|
|
4145
|
+
}
|
|
4146
|
+
e.stopPropagation();
|
|
4147
|
+
} }, { children: isMuted ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
|
|
4148
|
+
};
|
|
4149
|
+
|
|
4150
|
+
var _path$6;
|
|
4151
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
4152
|
+
var SvgMaximizeFill = function SvgMaximizeFill(props) {
|
|
4153
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
4154
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4155
|
+
width: 16,
|
|
4156
|
+
height: 16,
|
|
4157
|
+
focusable: "false",
|
|
4158
|
+
viewBox: "0 0 16 16"
|
|
4159
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4160
|
+
fill: "currentColor",
|
|
4161
|
+
d: "M16 4.29V1c0-.55-.45-1-1-1h-3.29c-.45 0-.67.54-.35.85l3.79 3.79c.31.32.85.1.85-.35zM0 11.71V15c0 .55.45 1 1 1h3.29c.45 0 .67-.54.35-.85L.85 11.36a.495.495 0 00-.85.35zm0-7.42V1c0-.55.45-1 1-1h3.29c.45 0 .67.54.35.85L.85 4.65A.5.5 0 010 4.29zm16 7.42V15c0 .55-.45 1-1 1h-3.29c-.45 0-.67-.54-.35-.85l3.79-3.79c.31-.32.85-.1.85.35z"
|
|
4162
|
+
})));
|
|
4163
|
+
};
|
|
4164
|
+
|
|
4165
|
+
const FullScreenButton = (props) => {
|
|
4166
|
+
const { videoRef } = props;
|
|
4167
|
+
const { requestFullscreen, webkitRequestFullscreen, mozRequestFullScreen, webkitEnterFullscreen, msRequestFullscreen, } = videoRef || {};
|
|
4168
|
+
const handleFullScreen = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
4169
|
+
if (props.videoRef) {
|
|
4170
|
+
if (props.videoRef.requestFullscreen) {
|
|
4171
|
+
yield props.videoRef.requestFullscreen();
|
|
4172
|
+
}
|
|
4173
|
+
else if (props.videoRef.webkitRequestFullscreen) {
|
|
4174
|
+
yield props.videoRef.webkitRequestFullscreen();
|
|
4175
|
+
}
|
|
4176
|
+
else if (props.videoRef.mozRequestFullScreen) {
|
|
4177
|
+
yield props.videoRef.mozRequestFullScreen();
|
|
4178
|
+
}
|
|
4179
|
+
else if (props.videoRef.webkitEnterFullscreen) {
|
|
4180
|
+
// iOS
|
|
4181
|
+
yield props.videoRef.webkitEnterFullscreen();
|
|
4182
|
+
}
|
|
4183
|
+
else if (props.videoRef.msRequestFullscreen) {
|
|
4184
|
+
yield props.videoRef.msRequestFullscreen();
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
}), [props.videoRef]);
|
|
4188
|
+
const canGoFullScreen = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
4189
|
+
if (props.videoRef) {
|
|
4190
|
+
return (requestFullscreen ||
|
|
4191
|
+
webkitRequestFullscreen ||
|
|
4192
|
+
mozRequestFullScreen ||
|
|
4193
|
+
webkitEnterFullscreen ||
|
|
4194
|
+
msRequestFullscreen);
|
|
4195
|
+
}
|
|
4196
|
+
}), [props.videoRef]);
|
|
4197
|
+
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4198
|
+
handleFullScreen();
|
|
4199
|
+
e.stopPropagation();
|
|
4200
|
+
}, disabled: !canGoFullScreen() }, { children: jsxRuntime.jsx(SvgMaximizeFill, {}) })));
|
|
4201
|
+
};
|
|
4202
|
+
|
|
4203
|
+
const ControlsWrapper = styled__default["default"].div `
|
|
4204
|
+
position: absolute;
|
|
4205
|
+
bottom: 0;
|
|
4206
|
+
left: 0;
|
|
4207
|
+
right: 0;
|
|
4208
|
+
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
4209
|
+
background-color: ${({ theme }) => theme.palette.grey[700]};
|
|
4210
|
+
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4211
|
+
z-index: 2;
|
|
4212
|
+
`;
|
|
4213
|
+
const StyledProgress = styled__default["default"](Progress) `
|
|
4214
|
+
width: 100%;
|
|
4215
|
+
border-radius: 0;
|
|
4216
|
+
color: ${({ theme }) => theme.palette.kale[400]};
|
|
4217
|
+
cursor: pointer;
|
|
4218
|
+
> div {
|
|
4219
|
+
border-radius: 0;
|
|
4220
|
+
}
|
|
4221
|
+
`;
|
|
4222
|
+
const StyledTooltip = styled__default["default"](PlayerTooltip) `
|
|
4223
|
+
display: none;
|
|
4224
|
+
`;
|
|
4225
|
+
const ProgressContainer = styled__default["default"].div `
|
|
4226
|
+
position: relative;
|
|
4227
|
+
&:hover ${StyledTooltip} {
|
|
4228
|
+
display: flex;
|
|
4229
|
+
}
|
|
4230
|
+
`;
|
|
4231
|
+
const ControlsBar = styled__default["default"].div `
|
|
4232
|
+
display: flex;
|
|
4233
|
+
justify-content: space-between;
|
|
4234
|
+
align-items: center;
|
|
4235
|
+
`;
|
|
4236
|
+
const Controls = (props) => {
|
|
4237
|
+
const { videoRef, onPlayChange, isPlaying, duration } = props;
|
|
4238
|
+
const [progress, setProgress] = React.useState(0);
|
|
4239
|
+
const [tooltipMargin, setTooltipMargin] = React.useState(0);
|
|
4240
|
+
const [tooltipLabel, setTooltipLabel] = React.useState("00:00");
|
|
4241
|
+
const progressRef = React.useRef(null);
|
|
4242
|
+
const getVideoPositionFromEvent = (clientX) => {
|
|
4243
|
+
if (progressRef && progressRef.current && duration) {
|
|
4244
|
+
const bounds = progressRef.current.getBoundingClientRect();
|
|
4245
|
+
const x = clientX - bounds.left;
|
|
4246
|
+
const videoPositionSecs = (x / progressRef.current.clientWidth) * duration;
|
|
4247
|
+
return videoPositionSecs;
|
|
4248
|
+
}
|
|
4249
|
+
return 0;
|
|
4250
|
+
};
|
|
4251
|
+
const handleProgressUpdate = () => {
|
|
4252
|
+
const currentTime = (videoRef === null || videoRef === void 0 ? void 0 : videoRef.currentTime) || 0;
|
|
4253
|
+
setProgress((currentTime / duration) * 100);
|
|
4254
|
+
};
|
|
4255
|
+
const handleSkipAhead = (pageX) => {
|
|
4256
|
+
if (videoRef) {
|
|
4257
|
+
videoRef.currentTime = getVideoPositionFromEvent(pageX);
|
|
4258
|
+
}
|
|
4259
|
+
};
|
|
4260
|
+
const StyledDiv = styled__default["default"].div `
|
|
4261
|
+
display: flex;
|
|
4262
|
+
align-items: center;
|
|
4263
|
+
`;
|
|
4264
|
+
const onMouseEvent = (e) => {
|
|
4265
|
+
if (progressRef && progressRef.current) {
|
|
4266
|
+
const tooltipWidth = 40;
|
|
4267
|
+
const maxMargin = progressRef.current.clientWidth - tooltipWidth;
|
|
4268
|
+
const bounds = progressRef.current.getBoundingClientRect();
|
|
4269
|
+
const marginX = e.clientX - bounds.left;
|
|
4270
|
+
const tooltipMargin = marginX >= maxMargin ? maxMargin : marginX;
|
|
4271
|
+
const videoTargetDuration = getVideoPositionFromEvent(e.clientX);
|
|
4272
|
+
setTooltipMargin(tooltipMargin);
|
|
4273
|
+
setTooltipLabel(formatDuration(videoTargetDuration));
|
|
4274
|
+
}
|
|
4275
|
+
};
|
|
4276
|
+
React.useEffect(() => {
|
|
4277
|
+
if (videoRef) {
|
|
4278
|
+
videoRef.addEventListener("timeupdate", handleProgressUpdate);
|
|
4279
|
+
}
|
|
4280
|
+
return () => {
|
|
4281
|
+
if (videoRef) {
|
|
4282
|
+
videoRef.removeEventListener("timeupdate", handleProgressUpdate);
|
|
4283
|
+
}
|
|
4284
|
+
};
|
|
4285
|
+
}, [videoRef]);
|
|
4286
|
+
return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: tooltipMargin + "px" } }, { children: tooltipLabel })), jsxRuntime.jsx(TimeLabel, { current: formatDuration((videoRef === null || videoRef === void 0 ? void 0 : videoRef.currentTime) || 0), duration: formatDuration(duration) }), jsxRuntime.jsx(StyledProgress, { ref: progressRef, value: progress, onClick: (e) => handleSkipAhead(e.clientX) })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsx(StyledDiv, { children: jsxRuntime.jsx(AudioButton, { videoRef: videoRef }) }), jsxRuntime.jsx(ControlsGroupCenter, { videoRef: videoRef, onPlayChange: onPlayChange, isPlaying: isPlaying }), jsxRuntime.jsx(StyledDiv, { children: jsxRuntime.jsx(FullScreenButton, { videoRef: videoRef }) })] })] })));
|
|
4287
|
+
};
|
|
4288
|
+
|
|
4289
|
+
const FloatingContainer = styled__default["default"].div `
|
|
4290
|
+
position: absolute;
|
|
4291
|
+
bottom: 0;
|
|
4292
|
+
top: 0;
|
|
4293
|
+
left: 0;
|
|
4294
|
+
right: 0;
|
|
4295
|
+
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4296
|
+
z-index: 1;
|
|
4297
|
+
`;
|
|
4298
|
+
const PlayIcon = styled__default["default"](SvgPlayFill) ``;
|
|
4299
|
+
const BigButton = styled__default["default"](IconButton) `
|
|
4300
|
+
pointer-events: none;
|
|
4301
|
+
min-width: ${({ theme }) => theme.space.base * 15}px;
|
|
4302
|
+
width: 80px;
|
|
4303
|
+
height: 80px;
|
|
4304
|
+
${PlayIcon} {
|
|
4305
|
+
width: 90%;
|
|
4306
|
+
height: 90%;
|
|
4307
|
+
}
|
|
4308
|
+
`;
|
|
4309
|
+
const ButtonsContainer = styled__default["default"].div `
|
|
4310
|
+
display: flex;
|
|
4311
|
+
justify-content: center;
|
|
4312
|
+
align-items: center;
|
|
4313
|
+
height: 100%;
|
|
4314
|
+
`;
|
|
4315
|
+
const FloatingControls = (props) => {
|
|
4316
|
+
const { isPlaying } = props;
|
|
4317
|
+
return (jsxRuntime.jsx(FloatingContainer, Object.assign({ isPlaying: isPlaying }, { children: jsxRuntime.jsx(ButtonsContainer, { children: !isPlaying && (jsxRuntime.jsx(BigButton, Object.assign({ isBright: true }, { children: jsxRuntime.jsx(PlayIcon, {}) }))) }) })));
|
|
4318
|
+
};
|
|
4319
|
+
|
|
4320
|
+
const Container = styled__default["default"].div `
|
|
4321
|
+
position: relative;
|
|
4322
|
+
display: flex;
|
|
4323
|
+
flex-direction: column;
|
|
4324
|
+
justify-content: center;
|
|
4325
|
+
height: 100%;
|
|
4326
|
+
width: 100%;
|
|
4327
|
+
video {
|
|
4328
|
+
${({ isLoaded, isPlaying }) => (!isLoaded || !isPlaying) && "opacity: .7;"}
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
${({ isLoaded }) => !isLoaded && `pointer-events: none;`}
|
|
4332
|
+
|
|
4333
|
+
&:hover {
|
|
4334
|
+
${ControlsWrapper},
|
|
4335
|
+
${FloatingContainer} {
|
|
4336
|
+
display: block;
|
|
4337
|
+
cursor: pointer;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
${FloatingContainer} {
|
|
4341
|
+
cursor: pointer;
|
|
4342
|
+
|
|
4343
|
+
&:hover & video {
|
|
4344
|
+
opacity: 0.7;
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
background-color: ${({ theme }) => theme.palette.grey[700]};
|
|
4350
|
+
`;
|
|
4351
|
+
|
|
4352
|
+
const StyledDiv$1 = styled__default["default"].div `
|
|
4353
|
+
display: flex;
|
|
4354
|
+
align-items: center;
|
|
4355
|
+
justify-content: flex-end;
|
|
4356
|
+
flex-direction: column;
|
|
4357
|
+
height: 100%;
|
|
4358
|
+
`;
|
|
4359
|
+
const VideoSpinner = () => (jsxRuntime.jsx(StyledDiv$1, { children: jsxRuntime.jsx(Spinner, { size: "50", color: "white" }) }));
|
|
4360
|
+
|
|
4361
|
+
const Video = styled__default["default"].video `
|
|
4362
|
+
display: block;
|
|
4363
|
+
height: 100%;
|
|
4364
|
+
width: auto;
|
|
4365
|
+
margin: 0 auto;
|
|
4366
|
+
max-width: 100%;
|
|
4367
|
+
background-color: transparent !important;
|
|
4368
|
+
padding-bottom: 1px;
|
|
4369
|
+
padding-top: 1px;
|
|
4370
|
+
`;
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* The Player is a styled media tag with custom controls
|
|
4374
|
+
* <hr>
|
|
4375
|
+
* Used for this:
|
|
4376
|
+
- To display a video
|
|
4377
|
+
*/
|
|
4378
|
+
const Player = (props) => {
|
|
4379
|
+
const videoRef = React.useRef(null);
|
|
4380
|
+
const [isLoaded, setIsLoaded] = React.useState(false);
|
|
4381
|
+
const [isPlaying, setIsPlaying] = React.useState(false);
|
|
4382
|
+
const [duration, setDuration] = React.useState(0);
|
|
4383
|
+
const handleLoad = () => {
|
|
4384
|
+
var _a;
|
|
4385
|
+
setIsLoaded(true);
|
|
4386
|
+
setDuration(((_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) || 0);
|
|
4387
|
+
};
|
|
4388
|
+
const handlePlayPause = React.useCallback(() => {
|
|
4389
|
+
if (!videoRef || !videoRef.current)
|
|
4390
|
+
return;
|
|
4391
|
+
if (videoRef.current.paused) {
|
|
4392
|
+
videoRef.current.play();
|
|
4393
|
+
setIsPlaying(true);
|
|
4394
|
+
}
|
|
4395
|
+
else {
|
|
4396
|
+
videoRef.current.pause();
|
|
4397
|
+
setIsPlaying(false);
|
|
4398
|
+
}
|
|
4399
|
+
}, [videoRef]);
|
|
4400
|
+
const handleExternalPlayPause = React.useCallback(() => {
|
|
4401
|
+
if (!videoRef || !videoRef.current)
|
|
4402
|
+
return;
|
|
4403
|
+
if (videoRef.current.paused) {
|
|
4404
|
+
setIsPlaying(false);
|
|
4405
|
+
}
|
|
4406
|
+
else {
|
|
4407
|
+
setIsPlaying(true);
|
|
4408
|
+
}
|
|
4409
|
+
}, [videoRef]);
|
|
4410
|
+
React.useEffect(() => {
|
|
4411
|
+
if (videoRef.current) {
|
|
4412
|
+
videoRef.current.addEventListener("play", handleExternalPlayPause);
|
|
4413
|
+
videoRef.current.addEventListener("pause", handleExternalPlayPause);
|
|
4414
|
+
}
|
|
4415
|
+
return () => {
|
|
4416
|
+
if (videoRef.current) {
|
|
4417
|
+
videoRef.current.removeEventListener("play", handleExternalPlayPause);
|
|
4418
|
+
videoRef.current.removeEventListener("pause", handleExternalPlayPause);
|
|
4419
|
+
videoRef.current.removeEventListener("onplaying", handleExternalPlayPause);
|
|
4420
|
+
}
|
|
4421
|
+
};
|
|
4422
|
+
}, [videoRef.current]);
|
|
4423
|
+
return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: isPlaying, onClick: (e) => {
|
|
4424
|
+
e.stopPropagation();
|
|
4425
|
+
handlePlayPause();
|
|
4426
|
+
} }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: isPlaying })), jsxRuntime.jsx(Video, Object.assign({ ref: videoRef, onLoadedMetadata: handleLoad, preload: "auto", playsInline: true }, { children: props.children })), jsxRuntime.jsx(Controls, { videoRef: videoRef.current, duration: duration, isPlaying: isPlaying, onPlayChange: (isPlaying) => setIsPlaying(isPlaying) })] })));
|
|
4427
|
+
};
|
|
4428
|
+
|
|
3822
4429
|
var _path$5;
|
|
3823
4430
|
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
3824
4431
|
var SvgExit = function SvgExit(props) {
|
|
@@ -4798,10 +5405,11 @@ exports.Close = Close;
|
|
|
4798
5405
|
exports.Code = Code;
|
|
4799
5406
|
exports.Col = Col;
|
|
4800
5407
|
exports.ContainerCard = ContainerCard;
|
|
4801
|
-
exports.Content = Content;
|
|
5408
|
+
exports.Content = Content$1;
|
|
4802
5409
|
exports.Counter = Counter;
|
|
4803
5410
|
exports.CounterMultiselect = CounterMultiselect;
|
|
4804
5411
|
exports.CursorPagination = CursorPagination;
|
|
5412
|
+
exports.Dots = Dots;
|
|
4805
5413
|
exports.Drawer = Drawer;
|
|
4806
5414
|
exports.Dropdown = Dropdown;
|
|
4807
5415
|
exports.DropdownField = index$1;
|
|
@@ -4861,6 +5469,7 @@ exports.PageLoader = PageLoader;
|
|
|
4861
5469
|
exports.Pagination = Pagination;
|
|
4862
5470
|
exports.Paragraph = Paragraph;
|
|
4863
5471
|
exports.PieChart = PieChart;
|
|
5472
|
+
exports.Player = Player;
|
|
4864
5473
|
exports.PreviousItem = PreviousItem;
|
|
4865
5474
|
exports.ProductCard = ProductCard;
|
|
4866
5475
|
exports.ProfileModal = ProfileModal;
|