@desynova-digital/components 9.1.52 → 9.2.52

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.
@@ -38,7 +38,16 @@ var CommonStyles = exports.CommonStyles = (0, _styledComponents.css)(_templateOb
38
38
  var DivStyles = exports.DivStyles = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n"])), CommonStyles);
39
39
  var BaseParaStyles = exports.BaseParaStyles = _styledComponents["default"].p(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: SFUIText-Regular;\n ", ";\n"])), CommonStyles);
40
40
  var BaseButtonStyles = exports.BaseButtonStyles = _styledComponents["default"].button(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: SFUIText-Regular;\n ", ";\n"])), CommonStyles);
41
- var CardStyles = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n border-radius: 2px;\n"])));
41
+ var CardStyles = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n border-radius: 8px;\n overflow: hidden;\n width: ", ";\n\n border: 1px solid transparent;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.18);\n\n /* \u2705 Center pop baseline */\n transform: scale(1);\n transform-origin: 50% 50%;\n\n /* \u2705 Make it pop above siblings */\n z-index: 0;\n isolation: isolate;\n\n transition:\n transform 240ms cubic-bezier(0.16, 1, 0.3, 1),\n box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),\n border-color 240ms cubic-bezier(0.16, 1, 0.3, 1);\n\n will-change: transform;\n\n /* \uD83D\uDD25 Glow Layer */\n &::after {\n content: '';\n position: absolute;\n inset: -2px;\n border-radius: 10px;\n pointer-events: none;\n opacity: 0;\n transition: all 0.4s ease-out;\n\n box-shadow: ", ";\n }\n\n /* \u2705 Hover = pop from center (NO translate) */\n &:hover {\n transform: scale(1.035);\n z-index: 5;\nborder-color: ", ";\n }\n box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);\n }\n\n &:hover::after {\n opacity: 1;\n }\n"])), function (_ref2) {
42
+ var width = _ref2.width;
43
+ return width === 'sm' ? 'auto' : width === 'md' ? '125px' : '222px';
44
+ }, function (_ref3) {
45
+ var upload_type = _ref3.upload_type;
46
+ return upload_type === 'RC' ? "\n 0 0 0 1px rgba(255,140,0,0.45),\n 0 12px 35px rgba(0,0,0,0.55),\n 0 0 28px rgba(255,140,0,0.18)\n " : "\n 0 0 0 1px rgba(13,247,169,0.45),\n 0 12px 35px rgba(0,0,0,0.55),\n 0 0 28px rgba(13,247,169,0.18)\n ";
47
+ }, function (_ref4) {
48
+ var upload_type = _ref4.upload_type;
49
+ return upload_type === 'RC' ? 'rgba(255, 141, 41, 0.2)' : 'rgba(24, 185, 110, 0.2)';
50
+ });
42
51
  var CardV2 = function CardV2(props) {
43
52
  var width = props.width,
44
53
  type = props.type;
@@ -74,6 +83,7 @@ CardV2.propTypes = {
74
83
  ingestDbId: _propTypes["default"].string,
75
84
  actionClick: _propTypes["default"].func,
76
85
  actions: _propTypes["default"].arrayOf(_propTypes["default"].object),
86
+ onUploadTypeClick: _propTypes["default"].func,
77
87
  theme: _propTypes["default"].oneOf(['light', 'dark', 'nexc']),
78
88
  type: _propTypes["default"].oneOf(['asset', 'search']),
79
89
  bgColor: _propTypes["default"].oneOf(['primary', 'secondary'])
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
12
13
  var _react = _interopRequireWildcard(require("react"));
13
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -15,135 +16,199 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
15
16
  var _cardV = require("./cardV2");
16
17
  var _icon = _interopRequireDefault(require("../../atoms/icon"));
17
18
  var _tokens = require("@desynova-digital/tokens");
18
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
19
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
19
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
22
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
24
  var TextEllipsisStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
22
- var ToolTipStyles = (0, _styledComponents["default"])(function (props) {
23
- return /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, props);
24
- })(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: SFUIText-Regular;\n top: ", ";\n word-break: break-all;\n\n &:after {\n content: '';\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: transparent transparent #000;\n }\n"])), function (props) {
25
- return props.top ? props.top : '25px';
26
- });
27
25
  var ParaStyles = (0, _styledComponents["default"])(function (props) {
28
26
  return /*#__PURE__*/_react["default"].createElement(_cardV.BaseParaStyles, props);
29
- })(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n padding: 0;\n margin-right: 10px;\n font-size: 10px;\n color: #afb2ba;\n -webkit-line-clamp: 1;\n height: 10px;\n"])), TextEllipsisStyles);
27
+ })(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n padding: 0;\n margin-right: 10px;\n font-size: 10px;\n color: #afb2ba;\n -webkit-line-clamp: 1;\n height: 10px;\n"])), TextEllipsisStyles);
30
28
  var TitleStyles = (0, _styledComponents["default"])(function (props) {
31
29
  return /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, props);
32
- })(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n font-family: SFUIText-Medium;\n -webkit-line-clamp: 2;\n height: 27px;\n cursor: ", ";\n"])), TextEllipsisStyles, function (_ref) {
30
+ })(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n font-family: SFUIText-Medium;\n -webkit-line-clamp: 2;\n height: 20px;\n cursor: ", ";\n display: flex;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n\n .title-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex-shrink: 1;\n }\n\n .files-associated-icon {\n margin-left: 7px;\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n color: #afb2ba;\n }\n\n .files-associated-icon:hover {\n color: #00cec6;\n }\n"])), TextEllipsisStyles, function (_ref) {
33
31
  var isTitleClick = _ref.isTitleClick;
34
32
  return isTitleClick ? 'pointer' : 'default';
35
33
  });
36
- var ContentStyles = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n height: 74px;\n width: ", ";\n padding: ", ";\n background-color: ", ";\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: ' ';\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: ", ";\n border-radius: 50%;\n }\n }\n .overlapping-container {\n justify-content: center;\n align-items: center;\n height: 11px;\n position: relative;\n .overlappig-popup-container {\n position: absolute;\n bottom: 100%;\n margin-right: 110px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease-out;\n padding-bottom: 10px;\n\n .overlappig-popup {\n font-family: SFUIText-Regular;\n background: #182738;\n box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n padding: 12px;\n width: 300px;\n z-index: 10;\n\n .popup-pointer {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 5px solid ", ";\n\n bottom: 5px;\n left: 66%;\n -webkit-transform: rotate(180deg);\n -ms-transform: translate(180deg);\n transform: translate(180deg);\n }\n\n .overlapping-episod-list-container {\n max-height: 165px;\n overflow: scroll;\n ::-webkit-scrollbar {\n display: none;\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none;\n }\n\n .divider {\n height: 1px;\n width: 100%;\n margin: 10px 0;\n background: #303f51;\n }\n .header-container {\n display: flex;\n position: relative;\n .thumbnail {\n width: 100px;\n height: 55px;\n background-size: cover !important;\n background-repeat: no-repeat !important;\n margin-right: 10px;\n border-radius: 2px;\n }\n .episod-title {\n font-size: 12px;\n margin-bottom: 8px;\n max-width: 180px;\n line-height: 14px;\n color: #fff;\n }\n .episod-details {\n font-size: 10px;\n color: #afb2ba;\n }\n }\n\n .overlappig-popup-title {\n font-size: 12px;\n line-height: 12px;\n color: #afb2ba;\n margin-bottom: 15px;\n }\n }\n }\n\n :hover {\n .overlappig-popup-container {\n opacity: 1;\n pointer-events: all;\n }\n }\n p {\n font-size: 12px;\n margin-left: 5px;\n height: 12px;\n }\n }\n"])), function (_ref2) {
37
- var width = _ref2.width;
38
- return width === 'sm' ? 'auto' : width === 'md' ? '125px' : '222px';
34
+ var ContentStyles = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n padding: ", ";\n background-color: ", ";\n border-radius: 0 0 8px 8px;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n\n .title-parent {\n position: relative;\n }\n\n .segment-indicator {\n position: relative;\n color: #fff;\n padding-left: 10px;\n &:before {\n display: inline-block;\n content: ' ';\n width: 6px;\n height: 6px;\n position: absolute;\n top: 2px;\n left: 0px;\n background: ", ";\n border-radius: 50%;\n }\n }\n .overlapping-container {\n justify-content: center;\n align-items: center;\n height: 11px;\n position: relative;\n .overlappig-popup-container {\n position: absolute;\n bottom: 100%;\n margin-right: 110px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease-out;\n padding-bottom: 10px;\n\n .overlappig-popup {\n font-family: SFUIText-Regular;\n background: #182738;\n box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n padding: 12px;\n width: 300px;\n z-index: 10;\n\n .popup-pointer {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 5px solid ", ";\n\n bottom: 5px;\n left: 66%;\n -webkit-transform: rotate(180deg);\n -ms-transform: translate(180deg);\n transform: translate(180deg);\n }\n\n .overlapping-episod-list-container {\n max-height: 165px;\n overflow: scroll;\n ::-webkit-scrollbar {\n display: none;\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none;\n }\n\n .divider {\n height: 1px;\n width: 100%;\n margin: 10px 0;\n background: #303f51;\n }\n .header-container {\n display: flex;\n position: relative;\n .thumbnail {\n width: 100px;\n height: 55px;\n background-size: cover !important;\n background-repeat: no-repeat !important;\n margin-right: 10px;\n border-radius: 2px;\n }\n .episod-title {\n font-size: 12px;\n margin-bottom: 8px;\n max-width: 180px;\n line-height: 14px;\n color: #fff;\n }\n .episod-details {\n font-size: 10px;\n color: #afb2ba;\n }\n }\n\n .overlappig-popup-title {\n font-size: 12px;\n line-height: 12px;\n color: #afb2ba;\n margin-bottom: 15px;\n }\n }\n }\n\n :hover {\n .overlappig-popup-container {\n opacity: 1;\n pointer-events: all;\n }\n }\n p {\n font-size: 12px;\n margin-left: 5px;\n height: 12px;\n }\n }\n .meta-row {\n display: flex;\n align-items: center;\n margin-top: 6px;\n column-gap: 10px;\n }\n .category-count {\n margin-top: 6px;\n color: #afb2ba;\n font-family: SFUIText-Regular;\n font-size: 10px;\n line-height: 12px;\n }\n .meta-badge {\n ", "\n font-size: 8px;\n line-height: 12px;\n padding: 1px 3px;\n border-radius: 4px;\n font-family: SFUIText-Regular;\n min-height: 12px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .meta-text {\n color: ", ";\n font-family: SFUIText-Regular;\n font-size: 10px;\n font-style: normal;\n font-weight: 300;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .footer-row {\n display: flex;\n align-items: center;\n margin-top: 10px;\n column-gap: 12px;\n position: relative;\n }\n .footer-text {\n color: #afb2ba;\n font-family: SFUIText-Regular;\n font-size: 8px;\n line-height: 10px;\n margin-right: 0;\n }\n .footer-icons {\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n }\n .footer-icon {\n color: #afb2ba;\n font-family: SFUIText-Regular;\n font-size: 8px;\n line-height: 12px;\n display: inline-flex;\n align-items: center;\n }\n"])), function (_ref2) {
35
+ var type = _ref2.type,
36
+ width = _ref2.width;
37
+ return type === 'search' || width === 'sm' ? 'auto' : width === 'md' ? '74px' : '90px';
39
38
  }, function (_ref3) {
40
- var type = _ref3.type,
41
- width = _ref3.width;
39
+ var width = _ref3.width;
40
+ return width === 'sm' ? 'auto' : width === 'md' ? '125px' : '222px';
41
+ }, function (_ref4) {
42
+ var type = _ref4.type,
43
+ width = _ref4.width;
42
44
  if (width === 'sm' && type === 'search') {
43
45
  return '0px 13px';
44
46
  } else if (type === 'search' && width !== 'sm') {
45
47
  return '13px 0px';
46
48
  } else return '13px 15px';
47
- }, function (_ref4) {
48
- var bgColor = _ref4.bgColor,
49
- type = _ref4.type;
49
+ }, function (_ref5) {
50
+ var bgColor = _ref5.bgColor,
51
+ type = _ref5.type;
50
52
  return type === 'search' ? 'transparent' : bgColor === 'secondary' && type !== 'search' ? '#0C141D' : '#15212F';
51
53
  }, function (props) {
52
54
  return _tokens.colors[props.theme].filter.rgbthemeColor;
53
55
  }, function (props) {
54
56
  return _tokens.colors[props.theme].card.themeColor;
57
+ }, function (_ref6) {
58
+ var upload_type = _ref6.upload_type;
59
+ var isRC = (upload_type === null || upload_type === void 0 ? void 0 : upload_type.toLowerCase()) === 'rc';
60
+ var color = isRC ? '#ff6327' : '#00CEC6';
61
+ var bg = isRC ? 'rgba(255, 99, 39, 0.1)' : 'rgba(0, 206, 198, 0.1)';
62
+ return (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n border: 1px solid ", ";\n color: ", ";\n background-color: ", ";\n "])), color, color, bg);
63
+ }, function (_ref7) {
64
+ var upload_type = _ref7.upload_type;
65
+ return upload_type && upload_type.toLowerCase() === 'rc' ? '#ff6327' : '#00CEC6';
55
66
  });
67
+ var SeasonEpisodeContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n flex-shrink: 0;\n padding: 2px 6px;\n justify-content: center;\n align-items: center;\n gap: 4px;\n border-radius: 3px;\n background: rgba(255, 255, 255, 0.1);\n color: var(--Color-Text-color-Text-500, #999);\n text-align: center;\n font-family: 'SFUITEXT-LIGHT';\n font-size: 8px;\n font-style: normal;\n font-weight: 400;\n height: auto;\n width: auto;\n margin-left: 6px;\n span {\n padding: 0px 2px;\n }\n"])));
56
68
  var Content = function Content(props) {
57
69
  var h1 = props.h1,
58
70
  h2 = props.h2,
59
71
  h3 = props.h3,
60
72
  h4 = props.h4,
61
73
  h5 = props.h5,
74
+ h6 = props.h6,
75
+ h7 = props.h7,
62
76
  isSegment = props.isSegment,
63
77
  type = props.type,
64
78
  width = props.width,
65
79
  titleClick = props.titleClick,
66
80
  show_page_id = props.show_page_id,
67
81
  overlapping = props.overlapping,
68
- theme = props.theme;
69
- var _useState = (0, _react.useState)(''),
70
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
71
- tooltipVisibleSection = _useState2[0],
72
- setTooltipVisibleSection = _useState2[1];
73
-
74
- /**
75
- * toogle tooltip -> true / false
76
- * @function
77
- */
78
- var handleTooltip = (0, _react.useCallback)(function (tooltipSection, tooltipText) {
79
- return function () {
80
- if (tooltipText.replace(/ /g, '').length >= (width === 'sm' ? 15 : 33)) {
81
- setTooltipVisibleSection(tooltipSection);
82
- }
83
- };
84
- }, []);
85
-
86
- /**
87
- * returns filtered list removing undefined from input array
88
- * @function
89
- */
90
- var getTooltipData = function getTooltipData() {
91
- for (var _len = arguments.length, list = new Array(_len), _key = 0; _key < _len; _key++) {
92
- list[_key] = arguments[_key];
82
+ theme = props.theme,
83
+ upload_type = props.upload_type,
84
+ icon_status = props.icon_status,
85
+ asset_type = props.asset_type;
86
+ var ICON_DIMENSION_MAP = {
87
+ snp_edit: {
88
+ width: 10,
89
+ height: 10
90
+ },
91
+ pgm_edit_V2: {
92
+ width: 13,
93
+ height: 10
94
+ },
95
+ subtitle_assign: {
96
+ width: 12,
97
+ height: 10
98
+ },
99
+ archive: {
100
+ width: 10,
101
+ height: 10
102
+ },
103
+ delivery: {
104
+ width: 13,
105
+ height: 10
106
+ },
107
+ dubbing_review: {
108
+ width: 7,
109
+ height: 10
93
110
  }
94
- return list.map(function (ele) {
95
- return ele && "".concat(ele, " ");
96
- });
97
111
  };
112
+ var ICON_LABEL_MAP = {
113
+ snp_edit: 'SNP edit',
114
+ pgm_edit_V2: 'PGM edit',
115
+ archive: 'Archive',
116
+ delivery: 'Delivery',
117
+ dubbing_review: 'Dubbing Review',
118
+ subtitle_assign: 'Subtitle',
119
+ file_ingest: 'Ingest'
120
+ };
121
+ var getIconLabel = function getIconLabel(iconName) {
122
+ return ICON_LABEL_MAP[iconName] || (iconName === null || iconName === void 0 ? void 0 : iconName.replace(/_/g, ' ')) || '';
123
+ };
124
+ var STATUS_COLOR_MAP = {
125
+ Success: '#18B96E',
126
+ Pending: '#666666',
127
+ Failed: '#FF6C56',
128
+ 'In Progress': '#FF8D29',
129
+ 'In Queue': '#F9E900'
130
+ };
131
+ var footerIcons = (icon_status || []).map(function (item) {
132
+ var _STATUS_COLOR_MAP$ite, _ICON_DIMENSION_MAP$i;
133
+ return _objectSpread({
134
+ name: item.icon,
135
+ status: item.status,
136
+ tooltipLabel: "".concat(getIconLabel(item.icon)).concat(item.status ? " : ".concat(item.status) : ''),
137
+ color: (_STATUS_COLOR_MAP$ite = STATUS_COLOR_MAP[item.status]) !== null && _STATUS_COLOR_MAP$ite !== void 0 ? _STATUS_COLOR_MAP$ite : '#AFB2BA'
138
+ }, (_ICON_DIMENSION_MAP$i = ICON_DIMENSION_MAP[item.icon]) !== null && _ICON_DIMENSION_MAP$i !== void 0 ? _ICON_DIMENSION_MAP$i : {
139
+ width: 10,
140
+ height: 10
141
+ });
142
+ });
143
+ var _useState = (0, _react.useState)(false),
144
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
145
+ isFilesIconHovered = _useState2[0],
146
+ setIsFilesIconHovered = _useState2[1];
98
147
  return /*#__PURE__*/_react["default"].createElement(ContentStyles, (0, _extends2["default"])({}, props, {
99
148
  className: "asset-card-content"
100
149
  }), /*#__PURE__*/_react["default"].createElement("div", {
101
- className: "title-parent",
102
- onMouseOver: handleTooltip('top', h1),
103
- onMouseOut: handleTooltip('', h1)
150
+ className: "title-parent"
104
151
  }, /*#__PURE__*/_react["default"].createElement(TitleStyles, {
105
152
  theme: props.theme,
106
153
  isTitleClick: show_page_id,
107
154
  onClick: function onClick(e) {
108
155
  return titleClick(e, show_page_id);
109
156
  },
110
- fontSize: "14px",
111
- color: "#FFF"
112
- }, h1), tooltipVisibleSection == 'top' && /*#__PURE__*/_react["default"].createElement(ToolTipStyles, {
113
- theme: props.theme,
114
- width: "100%",
115
- padding: "0.5rem",
116
- borderRadius: "0.25rem",
117
- position: "absolute",
118
- zIndex: "1",
119
- bgColor: "#000",
120
157
  fontSize: "12px",
121
- color: "#FFF",
122
- top: "30px"
123
- }, h1)), (h2 || h3 || h4 || h5 || isSegment) && /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
124
- theme: props.theme,
125
- display: "flex",
126
- justify: "space-between",
127
- margin: "10px 0 0 0",
128
- position: "relative",
129
- onMouseOver: handleTooltip('bottom', getTooltipData(h2, h3, h4, h5).toString().replaceAll(',', '')),
130
- onMouseOut: handleTooltip('', getTooltipData(h2, h3, h4, h5).toString().replaceAll(',', ''))
131
- }, (h2 || h3 || isSegment) && /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
132
- theme: props.theme,
133
- display: "flex"
134
- }, h2 && /*#__PURE__*/_react["default"].createElement(ParaStyles, null, h2), h3 && /*#__PURE__*/_react["default"].createElement(ParaStyles, null, h3), isSegment && /*#__PURE__*/_react["default"].createElement(ParaStyles, {
135
- className: "segment-indicator"
136
- }, "S")), (h4 || h5) && /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
137
- theme: props.theme,
138
- display: "flex"
139
- }, h4 && /*#__PURE__*/_react["default"].createElement(ParaStyles, {
140
- theme: props.theme,
141
- style: {
142
- marginRight: !h5 && 0
158
+ color: "#FFF"
159
+ }, /*#__PURE__*/_react["default"].createElement("span", {
160
+ className: "title-text",
161
+ title: h1
162
+ }, h1), h2 ? /*#__PURE__*/_react["default"].createElement(SeasonEpisodeContainer, {
163
+ title: h2
164
+ }, h2) : null, show_page_id && asset_type !== 'sports' ? /*#__PURE__*/_react["default"].createElement("span", {
165
+ className: "files-associated-icon",
166
+ onMouseEnter: function onMouseEnter() {
167
+ return setIsFilesIconHovered(true);
168
+ },
169
+ onMouseLeave: function onMouseLeave() {
170
+ return setIsFilesIconHovered(false);
143
171
  }
144
- }, h4), h5 && /*#__PURE__*/_react["default"].createElement(ParaStyles, {
145
- margin: "0"
146
- }, h5)), overlapping && overlapping.length && /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
172
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
173
+ name: "files-associated",
174
+ width: 8,
175
+ height: 8,
176
+ color: isFilesIconHovered ? '#00CEC6' : '#AFB2BA'
177
+ })) : null)), (h2 || h3 || h4 || h5 || h6 || isSegment) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (h3 || h4) && /*#__PURE__*/_react["default"].createElement("div", {
178
+ className: "meta-row"
179
+ }, h3 && /*#__PURE__*/_react["default"].createElement("span", {
180
+ className: "meta-badge",
181
+ title: h3
182
+ }, h3), h4 && /*#__PURE__*/_react["default"].createElement("span", {
183
+ className: "meta-text",
184
+ title: h4
185
+ }, h4), isSegment && /*#__PURE__*/_react["default"].createElement(ParaStyles, {
186
+ className: "segment-indicator"
187
+ }, "S")), (h5 || h6 || h7) && /*#__PURE__*/_react["default"].createElement("div", {
188
+ className: "footer-row"
189
+ }, h5 && /*#__PURE__*/_react["default"].createElement("span", {
190
+ className: "footer-text",
191
+ title: h5
192
+ }, h5), h6 && /*#__PURE__*/_react["default"].createElement("span", {
193
+ className: "footer-text",
194
+ title: h6
195
+ }, h6), h7 && /*#__PURE__*/_react["default"].createElement("span", {
196
+ className: "footer-text",
197
+ title: h7
198
+ }, h7), /*#__PURE__*/_react["default"].createElement("span", {
199
+ className: "footer-icons"
200
+ }, footerIcons.map(function (icon) {
201
+ return /*#__PURE__*/_react["default"].createElement("span", {
202
+ key: icon.name,
203
+ className: "footer-icon",
204
+ title: icon.tooltipLabel
205
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
206
+ name: icon.name,
207
+ color: icon.color,
208
+ width: icon.width,
209
+ height: icon.height
210
+ }));
211
+ }))), overlapping && overlapping.length && /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
147
212
  theme: props.theme,
148
213
  display: "flex",
149
214
  className: "overlapping-container"
@@ -182,18 +247,7 @@ var Content = function Content(props) {
182
247
  })))), overlapping.length > 1 && /*#__PURE__*/_react["default"].createElement(ParaStyles, {
183
248
  theme: props.theme,
184
249
  margin: "0"
185
- }, overlapping.length)) || null, tooltipVisibleSection == 'bottom' && /*#__PURE__*/_react["default"].createElement(ToolTipStyles, {
186
- theme: props.theme,
187
- width: "100%",
188
- padding: "0.5rem",
189
- borderRadius: "0.25rem",
190
- position: "absolute",
191
- zIndex: "1",
192
- bgColor: "#000",
193
- fontSize: "12px",
194
- color: "#FFF",
195
- top: "15px"
196
- }, getTooltipData(h2, h3, h4, h5))));
250
+ }, overlapping.length)) || null));
197
251
  };
198
252
  Content.propTypes = {
199
253
  h1: _propTypes["default"].string,
@@ -201,6 +255,8 @@ Content.propTypes = {
201
255
  h3: _propTypes["default"].string,
202
256
  h4: _propTypes["default"].string,
203
257
  h5: _propTypes["default"].string,
258
+ h6: _propTypes["default"].string,
259
+ h7: _propTypes["default"].string,
204
260
  width: _propTypes["default"].string,
205
261
  type: _propTypes["default"].string,
206
262
  titleClick: _propTypes["default"].func,
@@ -15,7 +15,7 @@ var _tokens = require("@desynova-digital/tokens");
15
15
  var _icon = _interopRequireDefault(require("../../atoms/icon"));
16
16
  var _tokens2 = require("../../../tokens");
17
17
  var _cardV = require("./cardV2");
18
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6; // atoms
18
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9; // atoms
19
19
  // tokens
20
20
  // styles
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -23,48 +23,51 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
23
23
  var OverlayBackgroundStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background: rgba(0, 0, 0, 0.5);\n"])));
24
24
  var assetStyles = {
25
25
  folder: {
26
- backgroundColor: "#121D29",
27
- backgroundSize: "inherit"
26
+ backgroundColor: '#121D29',
27
+ backgroundSize: 'inherit'
28
28
  },
29
29
  asset: {
30
- backgroundColor: "inherit",
31
- backgroundSize: "cover"
30
+ backgroundColor: 'inherit',
31
+ backgroundSize: 'cover'
32
32
  }
33
33
  };
34
- var ThumbnailStyles = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n background: ", ";\n background-color: ", ";\n background-size: ", ";\n width: ", ";\n height: ", ";\n\n .iframe-image-block {\n cursor: ", ";\n background: #000;\n opacity: 0;\n &:hover {\n opacity: 1;\n }\n .hover-pointer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0;\n background: #fff;\n pointer-events: none;\n z-index: 1;\n }\n }\n .background-block {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n .circle {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: #15212f;\n }\n i {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n img {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: auto;\n }\n }\n .thumbnail-image-block {\n cursor: pointer;\n background: #182738;\n }\n"])), function (_ref) {
34
+ var HoverActionButton = _styledComponents["default"].button(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n border: none;\n cursor: pointer;\n width: 26px;\n height: 26px;\n border-radius: 15px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 200ms ease;\n"])), OverlayBackgroundStyles);
35
+ var ThumbnailStyles = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n background: ", ";\n background-color: ", ";\n background-size: ", ";\n width: ", ";\n height: ", ";\n border-radius: 8px 8px 0 0;\n overflow: hidden;\n\n .iframe-image-block {\n cursor: ", ";\n background: #000;\n opacity: 0;\n &:hover {\n opacity: 1;\n }\n .hover-pointer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0;\n background: #fff;\n pointer-events: none;\n z-index: 1;\n }\n }\n .background-block {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n .circle {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: #15212f;\n }\n i {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n img {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: auto;\n }\n }\n .thumbnail-image-block {\n cursor: pointer;\n background: linear-gradient(359deg, #182738 19.98%, #182738 48.97%, rgba(24, 39, 56, 0.42) 99.47%);\n }\n\n &:hover ", " {\n opacity: 1;\n }\n"])), function (_ref) {
35
36
  var thumbnail = _ref.thumbnail;
36
37
  return "url(".concat(thumbnail, ") no-repeat 50%");
37
38
  }, function (_ref2) {
38
39
  var data_type = _ref2.data_type;
39
- return assetStyles[data_type] && assetStyles[data_type].backgroundColor ? assetStyles[data_type].backgroundColor : "inherit";
40
+ return assetStyles[data_type] && assetStyles[data_type].backgroundColor ? assetStyles[data_type].backgroundColor : 'inherit';
40
41
  }, function (_ref3) {
41
42
  var data_type = _ref3.data_type;
42
- return assetStyles[data_type] && assetStyles[data_type].backgroundSize ? assetStyles[data_type].backgroundSize : "cover";
43
+ return assetStyles[data_type] && assetStyles[data_type].backgroundSize ? assetStyles[data_type].backgroundSize : 'cover';
43
44
  }, function (_ref4) {
44
45
  var width = _ref4.width;
45
- return width === "sm" ? "90px" : width === "md" ? "125px" : "222px";
46
+ return width === 'sm' ? '90px' : width === 'md' ? '125px' : '222px';
46
47
  }, function (_ref5) {
47
48
  var width = _ref5.width;
48
- return width === "sm" ? "50px" : width === "md" ? "70px" : "126px";
49
+ return width === 'sm' ? '50px' : width === 'md' ? '70px' : '110px';
49
50
  }, function (_ref6) {
50
51
  var isClickPrevented = _ref6.isClickPrevented;
51
- return !isClickPrevented ? "pointer" : "default";
52
- });
53
- var UploadTypeContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n z-index: 2;\n .uploadWrapper {\n border-radius: 50%;\n background: ", ";\n\n color: ", ";\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n .wrapper {\n font-size: 10px;\n font-family: \"SFUIText-Regular\";\n line-height: 1.1;\n text-transform: uppercase;\n }\n }\n"])), function (props) {
54
- return props.upload_type === "rc" ? "#FF6327" : _tokens.colors[props.theme].card.themeColor;
52
+ return !isClickPrevented ? 'pointer' : 'default';
53
+ }, HoverActionButton);
54
+ var UploadTypeContainer = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n z-index: 2;\n cursor: pointer;\n .uploadWrapper {\n border-radius: 50%;\n background: ", ";\n\n color: ", ";\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n .wrapper {\n font-size: 10px;\n font-family: 'SFUIText-Regular';\n line-height: 1.1;\n text-transform: uppercase;\n }\n }\n"])), function (props) {
55
+ return props.upload_type === 'rc' ? '#FF6327' : _tokens.colors[props.theme].card.themeColor;
55
56
  }, function (props) {
56
- return props.upload_type === "rc" ? "#FFFFFF" : "#0C141D";
57
+ return props.upload_type === 'rc' ? '#FFFFFF' : '#15212F';
57
58
  });
58
- var StatusBoxStyles = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n padding: 5px 8px;\n width: fit-content;\n border-radius: 15px;\n margin-right: 5px;\n display: flex;\n align-items: center;\n ", ";\n\n .status-color {\n height: 6px;\n width: 6px;\n border-radius: 100%;\n background-color: ", ";\n margin-right: 5px;\n }\n\n .status-text {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n height: 10px;\n }\n"])), OverlayBackgroundStyles, function (_ref7) {
59
+ var HoverActionContainer = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n margin-left: 6px;\n"])));
60
+ var StatusBoxStyles = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n padding: 5px 8px;\n width: fit-content;\n border-radius: 15px;\n margin-right: 5px;\n display: flex;\n align-items: center;\n ", ";\n\n .status-color {\n height: 6px;\n width: 6px;\n border-radius: 100%;\n background-color: ", ";\n margin-right: 5px;\n }\n\n .status-text {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n height: 10px;\n }\n"])), OverlayBackgroundStyles, function (_ref7) {
59
61
  var hex = _ref7.hex;
60
62
  return hex.background;
61
63
  });
62
64
  var IconButtonStyles = (0, _styledComponents["default"])(function (props) {
63
65
  return /*#__PURE__*/_react["default"].createElement(_cardV.BaseButtonStyles, props);
64
- })(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n\n .tooltip {\n position: absolute;\n bottom: 130%;\n left: 30%;\n transform: translateX(-50%);\n padding: 5px 9px;\n box-sizing: border-box;\n background: #000000;\n color: #fff;\n border-radius: 10px;\n visibility: hidden;\n opacity: 0;\n z-index: 10;\n transition: all 350ms ease-in-out 0s;\n &:after {\n content: \"\";\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid #000;\n bottom: -5px;\n left: 50%;\n }\n .details-header {\n color: #666666;\n font-family: \"SFUIText-Regular\";\n text-transform: none;\n margin-bottom: 8px;\n }\n .details-value {\n color: #999999;\n font-family: \"SFUIText-Light\";\n text-transform: none;\n font-size: 10px;\n }\n }\n\n &:hover {\n background-color: ", ";\n .tooltip {\n opacity: 1;\n visibility: visible;\n }\n }\n &:active,\n &:focus {\n outline: none;\n }\n"])), OverlayBackgroundStyles, function (props) {
66
+ })(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n\n .tooltip {\n position: absolute;\n bottom: 130%;\n left: 30%;\n transform: translateX(-50%);\n padding: 5px 9px;\n box-sizing: border-box;\n background: #000000;\n color: #fff;\n border-radius: 10px;\n visibility: hidden;\n opacity: 0;\n z-index: 10;\n transition: all 350ms ease-in-out 0s;\n &:after {\n content: '';\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid #000;\n bottom: -5px;\n left: 50%;\n }\n .details-header {\n color: #666666;\n font-family: 'SFUIText-Regular';\n text-transform: none;\n margin-bottom: 8px;\n }\n .details-value {\n color: #999999;\n font-family: 'SFUIText-Light';\n text-transform: none;\n font-size: 10px;\n }\n }\n\n &:hover {\n background-color: ", ";\n .tooltip {\n opacity: 1;\n visibility: visible;\n }\n }\n &:active,\n &:focus {\n outline: none;\n }\n"])), OverlayBackgroundStyles, function (props) {
65
67
  return _tokens.colors[props.theme].card.themeColor;
66
68
  });
67
- var CardHeader = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n padding: 10px;\n"])));
69
+ var CardHeader = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n padding: 10px;\n"])));
70
+ var BottomActionContainer = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n bottom: 8px;\n right: 8px;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n gap: 6px;\n z-index: 3;\n opacity: 1;\n"])));
68
71
  var Thumbnail = function Thumbnail(props) {
69
72
  var theme = props.theme,
70
73
  width = props.width,
@@ -77,7 +80,9 @@ var Thumbnail = function Thumbnail(props) {
77
80
  upload_status = props.upload_status,
78
81
  upload_type = props.upload_type,
79
82
  file_type = props.file_type,
80
- data_type = props.data_type;
83
+ data_type = props.data_type,
84
+ onUploadTypeClick = props.onUploadTypeClick,
85
+ showPointer = props.showPointer;
81
86
  var _useState = (0, _react.useState)(null),
82
87
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
83
88
  statusIndex = _useState2[0],
@@ -91,7 +96,7 @@ var Thumbnail = function Thumbnail(props) {
91
96
  var hoverPointerRef = (0, _react.useRef)(null);
92
97
  (0, _react.useEffect)(function () {
93
98
  if (actions && actions.length > 0 && actions.some(function (item) {
94
- return item.field === "upload" || item.field === "phupload_ingest";
99
+ return item.field === 'upload' || item.field === 'phupload_ingest';
95
100
  }) // can add multiple condition in future to prevent click
96
101
  ) {
97
102
  setClickPreventation(true);
@@ -106,7 +111,7 @@ var Thumbnail = function Thumbnail(props) {
106
111
  * @const
107
112
  */
108
113
  var index = _tokens2.CARD_ASSET_STATUS.findIndex(function (label) {
109
- return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(" ").join("_") : []);
114
+ return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(' ').join('_') : []);
110
115
  });
111
116
  setStatusIndex(index);
112
117
  }, [upload_status, card_status]);
@@ -121,13 +126,13 @@ var Thumbnail = function Thumbnail(props) {
121
126
  var iframeOffsetHeight = offsetHeight / iframeCount;
122
127
  var imageChangePoint = offsetWidth / iframeCount;
123
128
  var offsetTop = Math.abs(iframeBlockHeight - iframeOffsetHeight) / 2;
124
- hoverPointerRef.current.style.left = event.offsetX + "px";
129
+ hoverPointerRef.current.style.left = event.offsetX + 'px';
125
130
  var imageNum = parseInt(event.offsetX / imageChangePoint) || 1;
126
131
  var imageTop = iframeOffsetHeight * imageNum + offsetTop;
127
132
  if (imageTop > offsetHeight) {
128
133
  imageTop = offsetHeight + offsetTop - iframeOffsetHeight;
129
134
  }
130
- iframeImageRef.current.style.top = "-" + imageTop + "px";
135
+ iframeImageRef.current.style.top = '-' + imageTop + 'px';
131
136
  }
132
137
  }, [iframeImageBlockRef, hoverPointerRef, iframeImageRef]);
133
138
 
@@ -138,11 +143,21 @@ var Thumbnail = function Thumbnail(props) {
138
143
  */
139
144
  var handleThumbnailClick = (0, _react.useCallback)(function (e) {
140
145
  if (!isClickPrevented) {
141
- actionClick(e, "play", ingest_db_id);
146
+ actionClick(e, 'play', ingest_db_id);
142
147
  } else {
143
148
  e.preventDefault();
144
149
  }
145
150
  }, [isClickPrevented]);
151
+ var handleActionIconClick = (0, _react.useCallback)(function (e, item) {
152
+ e.stopPropagation();
153
+ actionClick(e, item.field);
154
+ }, [actionClick]);
155
+ var handleUploadTypeClick = (0, _react.useCallback)(function (e) {
156
+ e.stopPropagation();
157
+ if (onUploadTypeClick) {
158
+ onUploadTypeClick();
159
+ }
160
+ }, [onUploadTypeClick]);
146
161
  return /*#__PURE__*/_react["default"].createElement(ThumbnailStyles, {
147
162
  width: width,
148
163
  thumbnail: thumbnail,
@@ -150,14 +165,7 @@ var Thumbnail = function Thumbnail(props) {
150
165
  onClick: handleThumbnailClick,
151
166
  theme: props.theme,
152
167
  data_type: data_type
153
- }, /*#__PURE__*/_react["default"].createElement(CardHeader, null, upload_type && /*#__PURE__*/_react["default"].createElement(UploadTypeContainer, {
154
- theme: props.theme,
155
- upload_type: upload_type && upload_type.toLowerCase()
156
- }, /*#__PURE__*/_react["default"].createElement("div", {
157
- className: "uploadWrapper"
158
- }, /*#__PURE__*/_react["default"].createElement("p", {
159
- className: "wrapper"
160
- }, upload_type))), /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
168
+ }, /*#__PURE__*/_react["default"].createElement(CardHeader, null, /*#__PURE__*/_react["default"].createElement(_cardV.DivStyles, {
161
169
  theme: props.theme,
162
170
  className: "asset-card-thumbnail-head",
163
171
  display: "flex",
@@ -166,20 +174,15 @@ var Thumbnail = function Thumbnail(props) {
166
174
  position: "relative",
167
175
  zIndex: "2",
168
176
  marginLeft: "auto"
169
- }, (card_status || upload_status) && /*#__PURE__*/_react["default"].createElement(StatusBoxStyles, {
170
- theme: props.theme,
171
- hex: _tokens2.CARD_ASSET_STATUS[statusIndex] ? _tokens2.CARD_ASSET_STATUS[statusIndex].hex : {
172
- background: "#AFB2BA"
173
- }
174
- }, /*#__PURE__*/_react["default"].createElement("div", {
175
- className: "status-color"
176
- }), /*#__PURE__*/_react["default"].createElement(_cardV.BaseParaStyles, {
177
- theme: props.theme,
178
- className: "status-text",
179
- display: "inline-block",
180
- fontSize: "10px",
181
- color: "#FFF"
182
- }, card_status || upload_status)) || null, actions && actions.length && actions.map(function (item, i) {
177
+ }, !showPointer && /*#__PURE__*/_react["default"].createElement(HoverActionContainer, null, /*#__PURE__*/_react["default"].createElement(HoverActionButton, {
178
+ type: "button",
179
+ onClick: handleUploadTypeClick
180
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
181
+ name: "info",
182
+ width: 14,
183
+ height: 14,
184
+ theme: props.theme
185
+ }))))), actions && actions.length && /*#__PURE__*/_react["default"].createElement(BottomActionContainer, null, actions.map(function (item, i) {
183
186
  return item.icon && /*#__PURE__*/_react["default"].createElement(IconButtonStyles, {
184
187
  theme: props.theme,
185
188
  className: "asset-card-thumbnail-icon-button",
@@ -192,20 +195,19 @@ var Thumbnail = function Thumbnail(props) {
192
195
  height: "26px",
193
196
  padding: "0px",
194
197
  width: "26px",
195
- margin: actions.length === i + 1 ? "0" : "0 5px 0px 0px",
198
+ margin: "0",
196
199
  onClick: function onClick(e) {
197
- e.stopPropagation();
198
- actionClick(e, item.field);
200
+ return handleActionIconClick(e, item);
199
201
  }
200
202
  }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
201
203
  name: item.icon,
202
- width: 14,
203
- height: 14,
204
+ width: 22,
205
+ height: 24,
204
206
  theme: props.theme
205
207
  }), /*#__PURE__*/_react["default"].createElement("div", {
206
208
  className: "tooltip"
207
209
  }, item.title));
208
- }) || null)), file_type && !thumbnail ? /*#__PURE__*/_react["default"].createElement("div", {
210
+ })) || null, file_type && !thumbnail ? /*#__PURE__*/_react["default"].createElement("div", {
209
211
  className: "thumbnail-image-block background-block"
210
212
  }, /*#__PURE__*/_react["default"].createElement("div", {
211
213
  className: "circle"
@@ -227,7 +229,7 @@ var Thumbnail = function Thumbnail(props) {
227
229
  })) || null);
228
230
  };
229
231
  Thumbnail.propTypes = {
230
- theme: _propTypes["default"].oneOf(["light", "dark", "nexc"]),
232
+ theme: _propTypes["default"].oneOf(['light', 'dark', 'nexc']),
231
233
  width: _propTypes["default"].string,
232
234
  thumbnail: _propTypes["default"].string,
233
235
  file_type: _propTypes["default"].string,
@@ -236,12 +238,13 @@ Thumbnail.propTypes = {
236
238
  card_status: _propTypes["default"].string,
237
239
  ingest_db_id: _propTypes["default"].string,
238
240
  actions: _propTypes["default"].instanceOf(Array),
239
- actionClick: _propTypes["default"].func
241
+ actionClick: _propTypes["default"].func,
242
+ onUploadTypeClick: _propTypes["default"].func
240
243
  };
241
244
  Thumbnail.defaultProps = {
242
- theme: "dark",
243
- width: "lg",
244
- thumbnail: "https://thumbnail.desynova.com/default_placeholder/Contido_Placeholder_Image.png",
245
- iframeurl: ""
245
+ theme: 'dark',
246
+ width: 'lg',
247
+ thumbnail: 'https://thumbnail.desynova.com/default_placeholder/Contido_Placeholder_Image.png',
248
+ iframeurl: ''
246
249
  };
247
250
  var _default = exports["default"] = Thumbnail;
@@ -1874,6 +1874,51 @@
1874
1874
  ],
1875
1875
  "width": 10,
1876
1876
  "height": 10
1877
+ },
1878
+ "files-associated": {
1879
+ "paths": [
1880
+ "M7.11111 7.11111H0.888889V0.888889H4V0H0.888889C0.395556 0 0 0.4 0 0.888889V7.11111C0 7.6 0.395556 8 0.888889 8H7.11111C7.6 8 8 7.6 8 7.11111V4H7.11111V7.11111ZM4.88889 0V0.888889H6.48444L2.11556 5.25778L2.74222 5.88444L7.11111 1.51556V3.11111H8V0H4.88889Z"
1881
+ ],
1882
+ "width": 8,
1883
+ "height": 8,
1884
+ "fill": "#AFB2BA"
1885
+ },
1886
+ "upload_dubbing": {
1887
+ "paths": [
1888
+ "M6 11.6387L6.88125 12.5712L10.375 8.88072V16.9297H11.625V8.88072L15.1125 12.5778L16 11.6387L11 6.34766L6 11.6387Z"
1889
+ ],
1890
+ "width": 22,
1891
+ "height": 24,
1892
+ "fill": "#AFB2BA"
1893
+ },
1894
+ "download_dubbing": {
1895
+ "paths": [
1896
+ "M16 11.6387L15.1188 10.7061L11.625 14.3966V6.34768H10.375V14.3966L6.8875 10.6995L6 11.6387L11 16.9297L16 11.6387Z"
1897
+ ],
1898
+ "width": 22,
1899
+ "height": 24,
1900
+ "fill": "#AFB2BA"
1901
+ },
1902
+ "dubbing_review": {
1903
+ "paths": [
1904
+ "M2.4375 5.85526C2.14583 5.54825 2 5.17544 2 4.73684V1.57895C2 1.14035 2.14583 0.767544 2.4375 0.460526C2.72917 0.153509 3.08333 0 3.5 0C3.91667 0 4.27083 0.153509 4.5625 0.460526C4.85417 0.767544 5 1.14035 5 1.57895V4.73684C5 5.17544 4.85417 5.54825 4.5625 5.85526C4.27083 6.16228 3.91667 6.31579 3.5 6.31579C3.08333 6.31579 2.72917 6.16228 2.4375 5.85526ZM3 10V8.38158C2.13333 8.25877 1.41667 7.85088 0.85 7.1579C0.283333 6.46491 0 5.6579 0 4.73684H1C1 5.46491 1.24375 6.08553 1.73125 6.59868C2.21875 7.11184 2.80833 7.36842 3.5 7.36842C4.19167 7.36842 4.78125 7.11184 5.26875 6.59868C5.75625 6.08553 6 5.46491 6 4.73684H7C7 5.6579 6.71667 6.46491 6.15 7.1579C5.58333 7.85088 4.86667 8.25877 4 8.38158V10H3Z"
1905
+ ],
1906
+ "width": 7,
1907
+ "height": 10
1908
+ },
1909
+ "pgm_edit_V2": {
1910
+ "paths": [
1911
+ "M12.3916 0C12.5115 0.000132674 12.6084 0.0976382 12.6084 0.217773V9.78223C12.6084 9.90236 12.5115 9.99987 12.3916 10H0.217773C0.0977729 10 0 9.90244 0 9.78223V0.217773C0 0.0975561 0.0977729 0 0.217773 0H12.3916ZM0.43457 9.56348H2.17383V7.60742H0.43457V9.56348ZM10.4346 9.56348H12.1738V7.60742H10.4346V9.56348ZM0.43457 4.78809H2.17383V5.22363H0.43457V7.17969H2.17383V5.22363H10.4346V4.78809H12.1738V2.83203H10.4346V4.78809H2.17383V2.83203H0.43457V4.78809ZM10.4346 7.17969H12.1738V5.22363H10.4346V7.17969ZM0.43457 2.39551H2.17383V0.439453H0.43457V2.39551ZM10.4346 0.439453V2.39551H12.1738V0.439453H10.4346Z"
1912
+ ],
1913
+ "width": 13,
1914
+ "height": 10
1915
+ },
1916
+ "file_ingest": {
1917
+ "paths": [
1918
+ "M3.17653 10.3237H7.94132V5.55892H11.1178L5.55892 0L0 5.55892H3.17653V10.3237ZM0 11.912H11.1178V13.5002H0V11.912Z"
1919
+ ],
1920
+ "width": 12,
1921
+ "height": 14
1877
1922
  }
1878
1923
  }
1879
1924
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.1.52",
3
+ "version": "9.2.52",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.1.52",
10
+ "@desynova-digital/tokens": "9.2.52",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },