@appquality/unguess-design-system 2.12.59 → 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 +33 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +751 -133
- package/build/stories/buttons/button/_types.d.ts +2 -0
- package/build/stories/buttons/icon-button/_types.d.ts +3 -1
- package/build/stories/dropdowns/countermultiselect/_types.d.ts +1 -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 +49 -0
- package/build/stories/theme/index.d.ts +49 -0
- 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,6 +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, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }) => {
|
|
306
|
+
if (isNeutral || isPrimary || isDanger)
|
|
307
|
+
return {};
|
|
308
|
+
return Object.assign(Object.assign(Object.assign({}, (isBasic && {
|
|
309
|
+
backgroundColor: palette.white,
|
|
310
|
+
"&:hover": {
|
|
311
|
+
backgroundColor: palette.kale[200],
|
|
312
|
+
},
|
|
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 {};
|
|
305
342
|
} });
|
|
306
343
|
|
|
307
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: {
|
|
@@ -567,51 +604,51 @@ const Tag = (props) => jsxRuntime.jsx(reactTags.Tag, Object.assign({}, props));
|
|
|
567
604
|
Tag.Avatar = reactTags.Tag.Avatar;
|
|
568
605
|
Tag.Close = reactTags.Tag.Close;
|
|
569
606
|
|
|
570
|
-
var _g$
|
|
571
|
-
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); }
|
|
572
609
|
var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
|
|
573
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
610
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
574
611
|
width: 24,
|
|
575
612
|
height: 24,
|
|
576
613
|
viewBox: "0 0 24 24",
|
|
577
614
|
fill: "none",
|
|
578
615
|
xmlns: "http://www.w3.org/2000/svg"
|
|
579
|
-
}, props), _g$
|
|
616
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
580
617
|
opacity: 0.3
|
|
581
618
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
582
619
|
opacity: 0.3,
|
|
583
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",
|
|
584
621
|
fill: "#003A57"
|
|
585
|
-
}))), _path$
|
|
622
|
+
}))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
586
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",
|
|
587
624
|
fill: "#003A57"
|
|
588
625
|
})));
|
|
589
626
|
};
|
|
590
627
|
|
|
591
|
-
var _g$
|
|
592
|
-
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); }
|
|
593
630
|
var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
594
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
631
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
595
632
|
width: 25,
|
|
596
633
|
height: 24,
|
|
597
634
|
viewBox: "0 0 25 24",
|
|
598
635
|
fill: "none",
|
|
599
636
|
xmlns: "http://www.w3.org/2000/svg"
|
|
600
|
-
}, props), _g$
|
|
637
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
601
638
|
opacity: 0.3
|
|
602
639
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
603
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",
|
|
604
641
|
fill: "#D3ECDB"
|
|
605
|
-
}))), _path$
|
|
642
|
+
}))), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
606
643
|
opacity: 0.8,
|
|
607
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",
|
|
608
645
|
fill: "#70C38A"
|
|
609
|
-
})), _path2$
|
|
646
|
+
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
610
647
|
fillRule: "evenodd",
|
|
611
648
|
clipRule: "evenodd",
|
|
612
649
|
d: "M6.55859 10.7679V10.1211H8.23278V10.7679H6.55859Z",
|
|
613
650
|
fill: "#D3ECDB"
|
|
614
|
-
})), _path3$
|
|
651
|
+
})), _path3$5 || (_path3$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
615
652
|
fillRule: "evenodd",
|
|
616
653
|
clipRule: "evenodd",
|
|
617
654
|
d: "M7.46563 13.6061L7.15234 13.0469L8.60113 12.1841L8.91441 12.7432L7.46563 13.6061Z",
|
|
@@ -659,22 +696,22 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
|
659
696
|
})));
|
|
660
697
|
};
|
|
661
698
|
|
|
662
|
-
var _path$
|
|
663
|
-
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); }
|
|
664
701
|
var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
665
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
702
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
666
703
|
width: 24,
|
|
667
704
|
height: 24,
|
|
668
705
|
viewBox: "0 0 24 24",
|
|
669
706
|
fill: "none",
|
|
670
707
|
xmlns: "http://www.w3.org/2000/svg"
|
|
671
|
-
}, props), _path$
|
|
708
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
672
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",
|
|
673
710
|
fill: "#F8F9F9"
|
|
674
|
-
})), _path2$
|
|
711
|
+
})), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
675
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",
|
|
676
713
|
fill: "#27DD70"
|
|
677
|
-
})), _path3$
|
|
714
|
+
})), _path3$4 || (_path3$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
678
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",
|
|
679
716
|
fill: "#27DD70"
|
|
680
717
|
})), _path4$1 || (_path4$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -683,22 +720,22 @@ var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
|
683
720
|
})));
|
|
684
721
|
};
|
|
685
722
|
|
|
686
|
-
var _path$
|
|
687
|
-
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); }
|
|
688
725
|
var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
689
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
726
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
690
727
|
width: 24,
|
|
691
728
|
height: 24,
|
|
692
729
|
viewBox: "0 0 24 24",
|
|
693
730
|
fill: "none",
|
|
694
731
|
xmlns: "http://www.w3.org/2000/svg"
|
|
695
|
-
}, props), _path$
|
|
732
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
696
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",
|
|
697
734
|
fill: "#F8F9F9"
|
|
698
|
-
})), _path2$
|
|
735
|
+
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
699
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",
|
|
700
737
|
fill: "#D1820A"
|
|
701
|
-
})), _path3$
|
|
738
|
+
})), _path3$3 || (_path3$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
702
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",
|
|
703
740
|
fill: "#D1820A"
|
|
704
741
|
})), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -728,25 +765,25 @@ var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
|
728
765
|
})));
|
|
729
766
|
};
|
|
730
767
|
|
|
731
|
-
var _path$
|
|
732
|
-
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); }
|
|
733
770
|
var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
734
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
771
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
735
772
|
width: 24,
|
|
736
773
|
height: 24,
|
|
737
774
|
viewBox: "0 0 24 24",
|
|
738
775
|
fill: "none",
|
|
739
776
|
xmlns: "http://www.w3.org/2000/svg"
|
|
740
|
-
}, props), _path$
|
|
777
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
741
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",
|
|
742
779
|
fill: "#F8F9F9"
|
|
743
|
-
})), _path2$
|
|
780
|
+
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
744
781
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
745
782
|
stroke: "#1371D6",
|
|
746
783
|
strokeWidth: 1.5,
|
|
747
784
|
strokeLinecap: "round",
|
|
748
785
|
strokeLinejoin: "round"
|
|
749
|
-
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
786
|
+
})), _path3$2 || (_path3$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
750
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",
|
|
751
788
|
stroke: "#3091EC",
|
|
752
789
|
strokeWidth: 1.5,
|
|
@@ -837,7 +874,7 @@ const Description$2 = styled__default["default"](MD) `
|
|
|
837
874
|
color: ${({ theme }) => theme.palette.grey[700]};
|
|
838
875
|
margin-top: ${({ theme }) => theme.space.xxs};
|
|
839
876
|
`;
|
|
840
|
-
const Container$
|
|
877
|
+
const Container$3 = styled__default["default"].div `
|
|
841
878
|
${({ theme, align }) => `
|
|
842
879
|
display: flex;
|
|
843
880
|
align-items: ${align || "start"};
|
|
@@ -848,7 +885,7 @@ const Container$2 = styled__default["default"].div `
|
|
|
848
885
|
margin-top: ${theme.space.xs};
|
|
849
886
|
`}
|
|
850
887
|
`;
|
|
851
|
-
const CardHeader = (props) => jsxRuntime.jsx(Container$
|
|
888
|
+
const CardHeader = (props) => jsxRuntime.jsx(Container$3, Object.assign({}, props));
|
|
852
889
|
CardHeader.Label = Label$2;
|
|
853
890
|
CardHeader.Title = Title$2;
|
|
854
891
|
CardHeader.Text = Description$2;
|
|
@@ -866,7 +903,7 @@ const Footer$3 = styled__default["default"].div `
|
|
|
866
903
|
margin-top: auto;
|
|
867
904
|
width: 100%;
|
|
868
905
|
`;
|
|
869
|
-
const Container$
|
|
906
|
+
const Container$2 = styled__default["default"].div `
|
|
870
907
|
${({ theme, direction, justifyContent, wrap }) => `
|
|
871
908
|
display: flex;
|
|
872
909
|
align-items: center;
|
|
@@ -877,7 +914,7 @@ const Container$1 = styled__default["default"].div `
|
|
|
877
914
|
${wrap ? "flex-wrap: wrap;" : ""}
|
|
878
915
|
`}
|
|
879
916
|
`;
|
|
880
|
-
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 }))] }));
|
|
881
918
|
|
|
882
919
|
const UgContentCard = styled__default["default"](reactNotifications.Well) `
|
|
883
920
|
border-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
@@ -1753,7 +1790,7 @@ const UgItem = styled__default["default"](reactDropdowns.Item) `
|
|
|
1753
1790
|
`;
|
|
1754
1791
|
const Item$1 = (props) => jsxRuntime.jsx(UgItem, Object.assign({}, props));
|
|
1755
1792
|
|
|
1756
|
-
const Container = styled__default["default"].div `
|
|
1793
|
+
const Container$1 = styled__default["default"].div `
|
|
1757
1794
|
display: flex;
|
|
1758
1795
|
flex-direction: row;
|
|
1759
1796
|
align-items: center;
|
|
@@ -1791,7 +1828,7 @@ const Image$1 = React.memo(({ src }) => {
|
|
|
1791
1828
|
});
|
|
1792
1829
|
const ItemContent = (props) => {
|
|
1793
1830
|
const { thumbSrc, description, label } = props;
|
|
1794
|
-
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 })] })] }));
|
|
1795
1832
|
};
|
|
1796
1833
|
|
|
1797
1834
|
/**
|
|
@@ -2139,31 +2176,31 @@ const editorStyle = styled.css `
|
|
|
2139
2176
|
}
|
|
2140
2177
|
`;
|
|
2141
2178
|
|
|
2142
|
-
var _path$
|
|
2143
|
-
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); }
|
|
2144
2181
|
var SvgBoldFill = function SvgBoldFill(props) {
|
|
2145
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2182
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2146
2183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2147
2184
|
width: 16,
|
|
2148
2185
|
height: 16,
|
|
2149
2186
|
focusable: "false",
|
|
2150
2187
|
viewBox: "0 0 16 16"
|
|
2151
|
-
}, props), _path$
|
|
2188
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2152
2189
|
fill: "currentColor",
|
|
2153
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"
|
|
2154
2191
|
})));
|
|
2155
2192
|
};
|
|
2156
2193
|
|
|
2157
|
-
var _path$
|
|
2158
|
-
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); }
|
|
2159
2196
|
var SvgItalicFill = function SvgItalicFill(props) {
|
|
2160
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2197
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2161
2198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2162
2199
|
width: 16,
|
|
2163
2200
|
height: 16,
|
|
2164
2201
|
focusable: "false",
|
|
2165
2202
|
viewBox: "0 0 16 16"
|
|
2166
|
-
}, props), _path$
|
|
2203
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2167
2204
|
fill: "none",
|
|
2168
2205
|
stroke: "currentColor",
|
|
2169
2206
|
strokeLinecap: "round",
|
|
@@ -2172,19 +2209,19 @@ var SvgItalicFill = function SvgItalicFill(props) {
|
|
|
2172
2209
|
})));
|
|
2173
2210
|
};
|
|
2174
2211
|
|
|
2175
|
-
var _path$
|
|
2176
|
-
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); }
|
|
2177
2214
|
var SvgQuoteFill = function SvgQuoteFill(props) {
|
|
2178
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2215
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2179
2216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2180
2217
|
width: 16,
|
|
2181
2218
|
height: 16,
|
|
2182
2219
|
focusable: "false",
|
|
2183
2220
|
viewBox: "0 0 16 16"
|
|
2184
|
-
}, props), _path$
|
|
2221
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2185
2222
|
fill: "currentColor",
|
|
2186
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"
|
|
2187
|
-
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2224
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2188
2225
|
fill: "none",
|
|
2189
2226
|
stroke: "currentColor",
|
|
2190
2227
|
strokeLinecap: "round",
|
|
@@ -2193,16 +2230,16 @@ var SvgQuoteFill = function SvgQuoteFill(props) {
|
|
|
2193
2230
|
})));
|
|
2194
2231
|
};
|
|
2195
2232
|
|
|
2196
|
-
var _g$
|
|
2197
|
-
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); }
|
|
2198
2235
|
var SvgH1Fill = function SvgH1Fill(props) {
|
|
2199
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2236
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2200
2237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2201
2238
|
width: 16,
|
|
2202
2239
|
height: 16,
|
|
2203
2240
|
focusable: "false",
|
|
2204
2241
|
viewBox: "0 0 16 16"
|
|
2205
|
-
}, props), _g$
|
|
2242
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2206
2243
|
transform: "translate(-464 -332)"
|
|
2207
2244
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2208
2245
|
width: 16,
|
|
@@ -2223,16 +2260,16 @@ var SvgH1Fill = function SvgH1Fill(props) {
|
|
|
2223
2260
|
}))));
|
|
2224
2261
|
};
|
|
2225
2262
|
|
|
2226
|
-
var _g$
|
|
2227
|
-
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); }
|
|
2228
2265
|
var SvgH2Fill = function SvgH2Fill(props) {
|
|
2229
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2266
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2230
2267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2231
2268
|
width: 16,
|
|
2232
2269
|
height: 16,
|
|
2233
2270
|
focusable: "false",
|
|
2234
2271
|
viewBox: "0 0 16 16"
|
|
2235
|
-
}, props), _g$
|
|
2272
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2236
2273
|
transform: "translate(-464 -332)"
|
|
2237
2274
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2238
2275
|
width: 16,
|
|
@@ -2253,16 +2290,16 @@ var SvgH2Fill = function SvgH2Fill(props) {
|
|
|
2253
2290
|
}))));
|
|
2254
2291
|
};
|
|
2255
2292
|
|
|
2256
|
-
var _g$
|
|
2257
|
-
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); }
|
|
2258
2295
|
var SvgH3Fill = function SvgH3Fill(props) {
|
|
2259
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2296
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
2260
2297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2261
2298
|
width: 16,
|
|
2262
2299
|
height: 16,
|
|
2263
2300
|
focusable: "false",
|
|
2264
2301
|
viewBox: "0 0 16 16"
|
|
2265
|
-
}, props), _g$
|
|
2302
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2266
2303
|
transform: "translate(-464 -332)"
|
|
2267
2304
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2268
2305
|
width: 16,
|
|
@@ -2504,16 +2541,16 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
|
|
|
2504
2541
|
**/
|
|
2505
2542
|
const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
|
|
2506
2543
|
|
|
2507
|
-
var _g$
|
|
2508
|
-
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); }
|
|
2509
2546
|
var SvgNotesStroke = function SvgNotesStroke(props) {
|
|
2510
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2547
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2511
2548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2512
2549
|
width: 16,
|
|
2513
2550
|
height: 16,
|
|
2514
2551
|
focusable: "false",
|
|
2515
2552
|
viewBox: "0 0 16 16"
|
|
2516
|
-
}, props), _g$
|
|
2553
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2517
2554
|
fill: "none",
|
|
2518
2555
|
stroke: "currentColor"
|
|
2519
2556
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2545,7 +2582,7 @@ const StyledLabel = styled__default["default"](Label) `
|
|
|
2545
2582
|
transition: opacity 0.2s ease-in-out;
|
|
2546
2583
|
`;
|
|
2547
2584
|
const StyledText$1 = styled__default["default"](XL) ``;
|
|
2548
|
-
const Wrapper = styled__default["default"].div `
|
|
2585
|
+
const Wrapper$1 = styled__default["default"].div `
|
|
2549
2586
|
display: flex;
|
|
2550
2587
|
flex-direction: column;
|
|
2551
2588
|
|
|
@@ -2582,7 +2619,7 @@ const InputToggle = (_a) => {
|
|
|
2582
2619
|
handleClick();
|
|
2583
2620
|
}
|
|
2584
2621
|
}, []);
|
|
2585
|
-
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)) })));
|
|
2586
2623
|
};
|
|
2587
2624
|
const getInputSize = (textSize) => ({
|
|
2588
2625
|
fontSize: textSize in theme.fontSizes ? theme.fontSizes[textSize] : "22px",
|
|
@@ -2626,16 +2663,16 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
|
|
|
2626
2663
|
**/
|
|
2627
2664
|
const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
|
|
2628
2665
|
|
|
2629
|
-
var _path$
|
|
2630
|
-
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); }
|
|
2631
2668
|
var SvgCheckLg = function SvgCheckLg(props) {
|
|
2632
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2669
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2633
2670
|
width: 16,
|
|
2634
2671
|
height: 16,
|
|
2635
2672
|
viewBox: "0 0 16 16",
|
|
2636
2673
|
fill: "#68737D",
|
|
2637
2674
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2638
|
-
}, props), _path$
|
|
2675
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2639
2676
|
fillRule: "evenodd",
|
|
2640
2677
|
clipRule: "evenodd",
|
|
2641
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"
|
|
@@ -2717,46 +2754,46 @@ const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props))
|
|
|
2717
2754
|
*/
|
|
2718
2755
|
const Grid = (props) => jsxRuntime.jsx(reactGrid.Grid, Object.assign({}, props));
|
|
2719
2756
|
|
|
2720
|
-
var _path$
|
|
2721
|
-
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); }
|
|
2722
2759
|
var SvgUgSquare = function SvgUgSquare(props) {
|
|
2723
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2760
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2724
2761
|
width: 24,
|
|
2725
2762
|
height: 24,
|
|
2726
2763
|
viewBox: "0 0 24 24",
|
|
2727
2764
|
fill: "none",
|
|
2728
2765
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2729
|
-
}, props), _path$
|
|
2766
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2730
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",
|
|
2731
2768
|
fill: "#E80C7A"
|
|
2732
2769
|
})));
|
|
2733
2770
|
};
|
|
2734
2771
|
|
|
2735
|
-
var _path$
|
|
2736
|
-
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); }
|
|
2737
2774
|
var SvgUgCircle = function SvgUgCircle(props) {
|
|
2738
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2775
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
2739
2776
|
width: 24,
|
|
2740
2777
|
height: 24,
|
|
2741
2778
|
viewBox: "0 0 24 24",
|
|
2742
2779
|
fill: "none",
|
|
2743
2780
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2744
|
-
}, props), _path$
|
|
2781
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2745
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",
|
|
2746
2783
|
fill: "#FFCD1A"
|
|
2747
2784
|
})));
|
|
2748
2785
|
};
|
|
2749
2786
|
|
|
2750
|
-
var _path$
|
|
2751
|
-
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); }
|
|
2752
2789
|
var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
2753
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2790
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
2754
2791
|
width: 24,
|
|
2755
2792
|
height: 24,
|
|
2756
2793
|
viewBox: "0 0 24 24",
|
|
2757
2794
|
fill: "none",
|
|
2758
2795
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2759
|
-
}, props), _path$
|
|
2796
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2760
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",
|
|
2761
2798
|
fill: "#7B0DFF"
|
|
2762
2799
|
})));
|
|
@@ -2838,7 +2875,7 @@ const UgProgress = styled__default["default"](reactLoaders.Progress) ``;
|
|
|
2838
2875
|
- When the loading time is unknown, use a Spinner instead
|
|
2839
2876
|
- When loading page content, use a Skeleton loader instead
|
|
2840
2877
|
*/
|
|
2841
|
-
const Progress = (props) => jsxRuntime.jsx(UgProgress, Object.assign({}, props));
|
|
2878
|
+
const Progress = React.forwardRef((props, ref) => (jsxRuntime.jsx(UgProgress, Object.assign({ ref: ref }, props))));
|
|
2842
2879
|
|
|
2843
2880
|
const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
2844
2881
|
/**
|
|
@@ -2850,6 +2887,19 @@ const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
|
2850
2887
|
*/
|
|
2851
2888
|
const Spinner = (props) => jsxRuntime.jsx(UgSpinner, Object.assign({}, props));
|
|
2852
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
|
+
|
|
2853
2903
|
const UgBody = styled__default["default"](reactChrome.Body) `
|
|
2854
2904
|
background-color: ${({ theme }) => theme.palette.white};
|
|
2855
2905
|
`;
|
|
@@ -2861,18 +2911,18 @@ const Body$1 = (props) => jsxRuntime.jsx(UgBody, Object.assign({}, props));
|
|
|
2861
2911
|
/**
|
|
2862
2912
|
* A Content defines the main content of an HTML document which displays on the browser
|
|
2863
2913
|
*/
|
|
2864
|
-
const Content = (props) => jsxRuntime.jsx(reactChrome.Content, Object.assign({}, props));
|
|
2914
|
+
const Content$1 = (props) => jsxRuntime.jsx(reactChrome.Content, Object.assign({}, props));
|
|
2865
2915
|
|
|
2866
|
-
var _path$
|
|
2867
|
-
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); }
|
|
2868
2918
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
2869
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2919
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
2870
2920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2871
2921
|
width: 16,
|
|
2872
2922
|
height: 16,
|
|
2873
2923
|
focusable: "false",
|
|
2874
2924
|
viewBox: "0 0 16 16"
|
|
2875
|
-
}, props), _path$
|
|
2925
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2876
2926
|
fill: "currentColor",
|
|
2877
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"
|
|
2878
2928
|
})));
|
|
@@ -2920,16 +2970,16 @@ const Logo = (props) => {
|
|
|
2920
2970
|
}[props.type] })));
|
|
2921
2971
|
};
|
|
2922
2972
|
|
|
2923
|
-
var _path$
|
|
2924
|
-
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); }
|
|
2925
2975
|
var SvgMenuStroke = function SvgMenuStroke(props) {
|
|
2926
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2976
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
2927
2977
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2928
2978
|
width: 16,
|
|
2929
2979
|
height: 16,
|
|
2930
2980
|
focusable: "false",
|
|
2931
2981
|
viewBox: "0 0 16 16"
|
|
2932
|
-
}, props), _path$
|
|
2982
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2933
2983
|
fill: "none",
|
|
2934
2984
|
stroke: "currentColor",
|
|
2935
2985
|
strokeLinecap: "round",
|
|
@@ -3093,31 +3143,31 @@ const NavItemIcon = (props) => jsxRuntime.jsx(UgNavIcon, Object.assign({}, props
|
|
|
3093
3143
|
|
|
3094
3144
|
const NavItemText = (props) => (jsxRuntime.jsx(reactChrome.NavItemText, Object.assign({}, props, { children: jsxRuntime.jsx(Ellipsis, Object.assign({ style: { width: "158px" } }, { children: props.children })) })));
|
|
3095
3145
|
|
|
3096
|
-
var _path$
|
|
3097
|
-
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); }
|
|
3098
3148
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
3099
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3149
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
3100
3150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3101
3151
|
width: 16,
|
|
3102
3152
|
height: 16,
|
|
3103
3153
|
focusable: "false",
|
|
3104
3154
|
viewBox: "0 0 16 16"
|
|
3105
|
-
}, props), _path$
|
|
3155
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3106
3156
|
fill: "currentColor",
|
|
3107
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"
|
|
3108
3158
|
})));
|
|
3109
3159
|
};
|
|
3110
3160
|
|
|
3111
|
-
var _path$
|
|
3112
|
-
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); }
|
|
3113
3163
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
3114
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3164
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
3115
3165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3116
3166
|
width: 16,
|
|
3117
3167
|
height: 16,
|
|
3118
3168
|
focusable: "false",
|
|
3119
3169
|
viewBox: "0 0 16 16"
|
|
3120
|
-
}, props), _path$
|
|
3170
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3121
3171
|
fill: "currentColor",
|
|
3122
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"
|
|
3123
3173
|
})));
|
|
@@ -3185,25 +3235,25 @@ const NavItemProject = NavItemComponent;
|
|
|
3185
3235
|
NavItemProject.Title = NavItemText;
|
|
3186
3236
|
NavItemProject.SubTitle = UgProjectSubtitle;
|
|
3187
3237
|
|
|
3188
|
-
var _path$
|
|
3189
|
-
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); }
|
|
3190
3240
|
var SvgHomeFill = function SvgHomeFill(props) {
|
|
3191
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3241
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
3192
3242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3193
3243
|
width: 26,
|
|
3194
3244
|
height: 26,
|
|
3195
3245
|
focusable: "false",
|
|
3196
3246
|
viewBox: "0 0 26 26"
|
|
3197
|
-
}, props), _path$
|
|
3247
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3198
3248
|
fill: "currentColor",
|
|
3199
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"
|
|
3200
3250
|
})));
|
|
3201
3251
|
};
|
|
3202
3252
|
|
|
3203
|
-
var _linearGradient, _path$
|
|
3204
|
-
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); }
|
|
3205
3255
|
var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
3206
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3256
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
3207
3257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3208
3258
|
width: 26,
|
|
3209
3259
|
height: 26,
|
|
@@ -3219,20 +3269,20 @@ var SvgHomeFillStyled = function SvgHomeFillStyled(props) {
|
|
|
3219
3269
|
className: "stop3",
|
|
3220
3270
|
offset: "100%",
|
|
3221
3271
|
stopColor: "#001825"
|
|
3222
|
-
}))), _path$
|
|
3272
|
+
}))), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3223
3273
|
fill: "url(#unguessIconGradient)",
|
|
3224
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"
|
|
3225
3275
|
})));
|
|
3226
3276
|
};
|
|
3227
3277
|
|
|
3228
|
-
var _g, _defs$2;
|
|
3229
|
-
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); }
|
|
3230
3280
|
var SvgToken = function SvgToken(props) {
|
|
3231
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3281
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3232
3282
|
fill: "none",
|
|
3233
3283
|
viewBox: "0 0 32 32",
|
|
3234
3284
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3235
|
-
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3285
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3236
3286
|
clipPath: "url(#a)"
|
|
3237
3287
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
3238
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",
|
|
@@ -3264,15 +3314,15 @@ var SvgToken = function SvgToken(props) {
|
|
|
3264
3314
|
})))));
|
|
3265
3315
|
};
|
|
3266
3316
|
|
|
3267
|
-
var _path$
|
|
3268
|
-
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); }
|
|
3269
3319
|
var SvgFolderIcon = function SvgFolderIcon(props) {
|
|
3270
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3320
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
3271
3321
|
width: 12,
|
|
3272
3322
|
height: 12,
|
|
3273
3323
|
viewBox: "0 0 12 12",
|
|
3274
3324
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3275
|
-
}, props), _path$
|
|
3325
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3276
3326
|
fillRule: "evenodd",
|
|
3277
3327
|
clipRule: "evenodd",
|
|
3278
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",
|
|
@@ -3280,16 +3330,16 @@ var SvgFolderIcon = function SvgFolderIcon(props) {
|
|
|
3280
3330
|
})));
|
|
3281
3331
|
};
|
|
3282
3332
|
|
|
3283
|
-
var _path$
|
|
3284
|
-
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); }
|
|
3285
3335
|
var SvgTemplates = function SvgTemplates(props) {
|
|
3286
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3336
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3287
3337
|
width: 26,
|
|
3288
3338
|
height: 26,
|
|
3289
3339
|
viewBox: "0 0 26 26",
|
|
3290
3340
|
fill: "none",
|
|
3291
3341
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3292
|
-
}, props), _path$
|
|
3342
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3293
3343
|
fillRule: "evenodd",
|
|
3294
3344
|
clipRule: "evenodd",
|
|
3295
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",
|
|
@@ -3309,16 +3359,16 @@ var SvgTemplates = function SvgTemplates(props) {
|
|
|
3309
3359
|
})))));
|
|
3310
3360
|
};
|
|
3311
3361
|
|
|
3312
|
-
var _path$
|
|
3313
|
-
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); }
|
|
3314
3364
|
var SvgTemplatesActive = function SvgTemplatesActive(props) {
|
|
3315
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3365
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3316
3366
|
width: 26,
|
|
3317
3367
|
height: 26,
|
|
3318
3368
|
viewBox: "0 0 26 26",
|
|
3319
3369
|
fill: "none",
|
|
3320
3370
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3321
|
-
}, props), _path$
|
|
3371
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3322
3372
|
fillRule: "evenodd",
|
|
3323
3373
|
clipRule: "evenodd",
|
|
3324
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",
|
|
@@ -3492,7 +3542,7 @@ const StyledHr = styled__default["default"].hr `
|
|
|
3492
3542
|
`;
|
|
3493
3543
|
const PageLoader = () => {
|
|
3494
3544
|
const isSidebarOpen = window.matchMedia(`only screen and (min-width: 576px)`).matches;
|
|
3495
|
-
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: "" }) }))] })] })] })] }) })));
|
|
3496
3546
|
};
|
|
3497
3547
|
|
|
3498
3548
|
/**
|
|
@@ -3535,16 +3585,16 @@ const LoginForm = (props) => {
|
|
|
3535
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"] })))] }));
|
|
3536
3586
|
};
|
|
3537
3587
|
|
|
3538
|
-
var _path$
|
|
3539
|
-
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); }
|
|
3540
3590
|
var SvgPlus = function SvgPlus(props) {
|
|
3541
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3591
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3542
3592
|
width: 16,
|
|
3543
3593
|
height: 16,
|
|
3544
3594
|
viewBox: "0 0 16 16",
|
|
3545
3595
|
fill: "none",
|
|
3546
3596
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3547
|
-
}, props), _path$
|
|
3597
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3548
3598
|
fillRule: "evenodd",
|
|
3549
3599
|
clipRule: "evenodd",
|
|
3550
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",
|
|
@@ -3810,6 +3860,572 @@ PageHeader.Title = MainTitle;
|
|
|
3810
3860
|
PageHeader.Description = MainDescription;
|
|
3811
3861
|
PageHeader.Counters = MainCounters;
|
|
3812
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
|
+
|
|
3813
4429
|
var _path$5;
|
|
3814
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); }
|
|
3815
4431
|
var SvgExit = function SvgExit(props) {
|
|
@@ -4789,10 +5405,11 @@ exports.Close = Close;
|
|
|
4789
5405
|
exports.Code = Code;
|
|
4790
5406
|
exports.Col = Col;
|
|
4791
5407
|
exports.ContainerCard = ContainerCard;
|
|
4792
|
-
exports.Content = Content;
|
|
5408
|
+
exports.Content = Content$1;
|
|
4793
5409
|
exports.Counter = Counter;
|
|
4794
5410
|
exports.CounterMultiselect = CounterMultiselect;
|
|
4795
5411
|
exports.CursorPagination = CursorPagination;
|
|
5412
|
+
exports.Dots = Dots;
|
|
4796
5413
|
exports.Drawer = Drawer;
|
|
4797
5414
|
exports.Dropdown = Dropdown;
|
|
4798
5415
|
exports.DropdownField = index$1;
|
|
@@ -4852,6 +5469,7 @@ exports.PageLoader = PageLoader;
|
|
|
4852
5469
|
exports.Pagination = Pagination;
|
|
4853
5470
|
exports.Paragraph = Paragraph;
|
|
4854
5471
|
exports.PieChart = PieChart;
|
|
5472
|
+
exports.Player = Player;
|
|
4855
5473
|
exports.PreviousItem = PreviousItem;
|
|
4856
5474
|
exports.ProductCard = ProductCard;
|
|
4857
5475
|
exports.ProfileModal = ProfileModal;
|