@capillarytech/blaze-ui 5.1.12 → 5.1.13
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/CapCalendarDatePicker/index.js +1066 -71
- package/CapCalendarDatePicker/index.js.map +1 -1
- package/CapCustomCard/CapCustomCard.d.ts +12 -0
- package/CapCustomCard/CapCustomCard.d.ts.map +1 -0
- package/CapCustomCard/CapCustomCardList.d.ts +5 -0
- package/CapCustomCard/CapCustomCardList.d.ts.map +1 -0
- package/CapCustomCard/README.md +182 -0
- package/CapCustomCard/Status.md +40 -0
- package/CapCustomCard/constants.d.ts +16 -0
- package/CapCustomCard/constants.d.ts.map +1 -0
- package/CapCustomCard/index.d.ts +12 -0
- package/CapCustomCard/index.d.ts.map +1 -0
- package/CapCustomCard/index.js +16419 -1593
- package/CapCustomCard/index.js.map +1 -1
- package/CapCustomCard/messages.d.ts +9 -0
- package/CapCustomCard/messages.d.ts.map +1 -0
- package/CapCustomCard/types.d.ts +37 -0
- package/CapCustomCard/types.d.ts.map +1 -0
- package/CapLink/index.d.ts.map +1 -1
- package/CapLink/index.js +6 -3
- package/CapLink/index.js.map +1 -1
- package/CapLink/types.d.ts +2 -1
- package/CapLink/types.d.ts.map +1 -1
- package/CapMobileDatePicker/index.js +1007 -88
- package/CapMobileDatePicker/index.js.map +1 -1
- package/CapMultiSelectDatePicker/index.js +508 -85
- package/CapMultiSelectDatePicker/index.js.map +1 -1
- package/CapNavigation/index.js +6 -3
- package/CapNavigation/index.js.map +1 -1
- package/CapNotificationDropdown/index.js +6 -3
- package/CapNotificationDropdown/index.js.map +1 -1
- package/CapTimePicker/README.md +170 -0
- package/CapTimePicker/index.d.ts +11 -0
- package/CapTimePicker/index.d.ts.map +1 -0
- package/CapTimePicker/index.js +98 -51
- package/CapTimePicker/index.js.map +1 -1
- package/CapTimePicker/types.d.ts +71 -0
- package/CapTimePicker/types.d.ts.map +1 -0
- package/CapTopBar/index.js +6 -3
- package/CapTopBar/index.js.map +1 -1
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/index.js +889 -185
- package/index.js.map +1 -1
- package/package.json +2 -1
- package/CapMultiSelectDatePicker/README.md +0 -11
- package/CapMultiSelectDatePicker/index.d.ts +0 -13
- package/CapMultiSelectDatePicker/index.d.ts.map +0 -1
- package/CapMultiSelectDatePicker/messages.d.ts +0 -9
- package/CapMultiSelectDatePicker/messages.d.ts.map +0 -1
- package/CapMultiSelectDatePicker/types.d.ts +0 -31
- package/CapMultiSelectDatePicker/types.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -103,6 +103,59 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
103
103
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
104
104
|
|
|
105
105
|
|
|
106
|
+
/***/ }),
|
|
107
|
+
|
|
108
|
+
/***/ 235:
|
|
109
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
110
|
+
|
|
111
|
+
"use strict";
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
exports.__esModule = true;
|
|
115
|
+
exports["default"] = void 0;
|
|
116
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
117
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
118
|
+
var _CapCustomCard = _interopRequireDefault(__webpack_require__(82739));
|
|
119
|
+
var _styles = _interopRequireDefault(__webpack_require__(97534));
|
|
120
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
121
|
+
const _excluded = ["dataBelowCard", "cardType", "cardTop"];
|
|
122
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
123
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
124
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
125
|
+
const clsPrefix = 'cap-custom-card-list';
|
|
126
|
+
const CapCustomCardList = _ref => {
|
|
127
|
+
let {
|
|
128
|
+
className,
|
|
129
|
+
cardList,
|
|
130
|
+
type,
|
|
131
|
+
fbType
|
|
132
|
+
} = _ref;
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
134
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix], type, className),
|
|
135
|
+
children: cardList && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix + "-row"]),
|
|
137
|
+
children: cardList.map((data, i) => {
|
|
138
|
+
const {
|
|
139
|
+
dataBelowCard,
|
|
140
|
+
cardType,
|
|
141
|
+
cardTop
|
|
142
|
+
} = data,
|
|
143
|
+
rest = _objectWithoutPropertiesLoose(data, _excluded);
|
|
144
|
+
const key = data.key || i;
|
|
145
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
146
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix + "-col"]),
|
|
147
|
+
children: [cardTop && cardTop, /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapCustomCard.default, _extends({
|
|
148
|
+
type: cardType || type,
|
|
149
|
+
cardTop: cardTop,
|
|
150
|
+
fbType: fbType
|
|
151
|
+
}, rest), key), dataBelowCard && dataBelowCard]
|
|
152
|
+
}, key);
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
var _default = exports["default"] = CapCustomCardList;
|
|
158
|
+
|
|
106
159
|
/***/ }),
|
|
107
160
|
|
|
108
161
|
/***/ 386:
|
|
@@ -2495,28 +2548,6 @@ var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
|
2495
2548
|
}
|
|
2496
2549
|
});
|
|
2497
2550
|
|
|
2498
|
-
/***/ }),
|
|
2499
|
-
|
|
2500
|
-
/***/ 2695:
|
|
2501
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2502
|
-
|
|
2503
|
-
// Imports
|
|
2504
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
2505
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
2506
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
2507
|
-
// Module
|
|
2508
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.multiSelectDateContainer{padding:1.714rem;width:19.571rem;height:14.857rem;border-radius:.285rem;border:solid 1px #dfe2e7;background-color:#fff}.dateContent{width:100%;height:100%;font-size:.857rem;font-weight:normal;line-height:normal;text-align:center;color:#091e42;border-collapse:collapse;cursor:pointer}.dateContent th{width:2.285rem;height:2.285rem;font-weight:inherit}.dateContent tr th:not(:first-child):not(:last-child){padding-left:.142rem}.selected{background-color:#2466ea;color:#fff;border-radius:50%}.customSelected{background-color:#2466ea;color:#fff !important;border-radius:15%/50%}.customTxt{color:#2466ea;font-weight:500;font-size:1rem;width:2.285rem}`, ""]);
|
|
2509
|
-
// Exports
|
|
2510
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2511
|
-
"multiSelectDateContainer": `multiSelectDateContainer`,
|
|
2512
|
-
"dateContent": `dateContent`,
|
|
2513
|
-
"selected": `selected`,
|
|
2514
|
-
"customSelected": `customSelected`,
|
|
2515
|
-
"customTxt": `customTxt`
|
|
2516
|
-
};
|
|
2517
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
2551
|
/***/ }),
|
|
2521
2552
|
|
|
2522
2553
|
/***/ 2825:
|
|
@@ -9921,6 +9952,32 @@ var _default = exports["default"] = CapHeadingWithStatic;
|
|
|
9921
9952
|
|
|
9922
9953
|
/***/ }),
|
|
9923
9954
|
|
|
9955
|
+
/***/ 7341:
|
|
9956
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9957
|
+
|
|
9958
|
+
"use strict";
|
|
9959
|
+
|
|
9960
|
+
|
|
9961
|
+
exports.__esModule = true;
|
|
9962
|
+
exports.channels = exports.BIG_PICTURE = void 0;
|
|
9963
|
+
const channels = exports.channels = {
|
|
9964
|
+
sms: 'SMS',
|
|
9965
|
+
email: 'EMAIL',
|
|
9966
|
+
mpush: 'MOBILEPUSH',
|
|
9967
|
+
call_task: 'CALL_TASK',
|
|
9968
|
+
wechat: 'WECHAT',
|
|
9969
|
+
facebook: 'FACEBOOK',
|
|
9970
|
+
line: 'LINE',
|
|
9971
|
+
viber: 'VIBER',
|
|
9972
|
+
whatsapp: 'WHATSAPP',
|
|
9973
|
+
rcs: 'RCS',
|
|
9974
|
+
zalo: 'ZALO',
|
|
9975
|
+
inapp: 'INAPP'
|
|
9976
|
+
};
|
|
9977
|
+
const BIG_PICTURE = exports.BIG_PICTURE = 'BIG_PICTURE';
|
|
9978
|
+
|
|
9979
|
+
/***/ }),
|
|
9980
|
+
|
|
9924
9981
|
/***/ 7393:
|
|
9925
9982
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9926
9983
|
|
|
@@ -17529,6 +17586,25 @@ module.exports = require("dayjs/plugin/weekYear");
|
|
|
17529
17586
|
|
|
17530
17587
|
/***/ }),
|
|
17531
17588
|
|
|
17589
|
+
/***/ 16498:
|
|
17590
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
17591
|
+
|
|
17592
|
+
"use strict";
|
|
17593
|
+
|
|
17594
|
+
|
|
17595
|
+
exports.__esModule = true;
|
|
17596
|
+
exports.scope = exports["default"] = void 0;
|
|
17597
|
+
var _reactIntl = __webpack_require__(46407);
|
|
17598
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapCustomCard';
|
|
17599
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
17600
|
+
appName: {
|
|
17601
|
+
id: scope + ".appName",
|
|
17602
|
+
defaultMessage: 'App name'
|
|
17603
|
+
}
|
|
17604
|
+
});
|
|
17605
|
+
|
|
17606
|
+
/***/ }),
|
|
17607
|
+
|
|
17532
17608
|
/***/ 16805:
|
|
17533
17609
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17534
17610
|
|
|
@@ -17756,6 +17832,51 @@ function basePropertyDeep(path) {
|
|
|
17756
17832
|
module.exports = basePropertyDeep;
|
|
17757
17833
|
|
|
17758
17834
|
|
|
17835
|
+
/***/ }),
|
|
17836
|
+
|
|
17837
|
+
/***/ 17355:
|
|
17838
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
17839
|
+
|
|
17840
|
+
// Imports
|
|
17841
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
17842
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
17843
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
17844
|
+
// Module
|
|
17845
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-custom-card{border-radius:4px;display:inline-block}.cap-custom-card.remove-border-radius{border-radius:unset}.cap-custom-card.ant-card .ant-card-head{border-bottom:none}.cap-custom-card.ant-card .ant-card-extra{padding:0;line-height:16px}.cap-custom-card.ant-card .ant-card-head-title{font-size:1rem;margin-right:.571rem}.cap-custom-card.ant-card .ant-card-actions{display:flex;align-items:center;background-color:#fff;padding:0 1.714rem;min-height:49px}.cap-custom-card.ant-card .ant-card-actions li{margin:.285rem 0;border-right:none;float:none}.cap-custom-card.ant-card .ant-card-actions>li>span{display:block}.cap-custom-card.ant-card .ant-card-actions>li>span>.anticon{font-size:1.714rem}.cap-custom-card.ant-card .ant-card-actions>li>span:hover{color:inherit}.cap-custom-card.ant-card .ant-card-meta-description{font-size:.857rem;color:#5e6c84}.cap-custom-card.ant-card .hover-content{display:none}.cap-custom-card.ant-card.has-hover-option:hover .ant-card-meta{opacity:.2}.cap-custom-card.ant-card.has-hover-option:hover .hover-content{display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -40%)}.cap-custom-card.ant-card.SMS .ant-card-body{padding-bottom:0;padding-top:.285rem;height:129px;display:block;display:-webkit-box;-webkit-line-clamp:7;overflow:hidden;text-overflow:ellipsis;/*! autoprefixer: off */-webkit-box-orient:vertical}.cap-custom-card.ant-card.CALL_TASK .ant-card-body{padding-bottom:0;padding-top:.285rem;height:129px}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-body{padding-bottom:0;padding-top:14px;padding-left:15px;padding-right:15px;background-color:#f4f5f7;height:274px;display:block;display:-webkit-box;-webkit-line-clamp:7;overflow:hidden;text-overflow:ellipsis}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-body .ant-card-meta{height:fit-content;width:100%;background-color:#fff;padding:.857rem;border-radius:4px}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-body .content{white-space:pre-wrap}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-head{padding:0 16px}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-head-wrapper{align-items:flex-start}.cap-custom-card.ant-card:is(.WHATSAPP, .RCS, .ZALO) .ant-card-head-wrapper .ant-card-extra{margin-top:.857rem;position:absolute;right:.5rem;top:-0.125rem}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body,.cap-custom-card.ant-card.WECHAT .ant-card-body,.cap-custom-card.ant-card.INAPP .ant-card-body{padding-bottom:0;padding-top:.285rem;padding-left:1.142rem;padding-right:1.142rem;background-color:#f4f5f7;height:279px;display:block;display:-webkit-box;-webkit-line-clamp:7;overflow:hidden;text-overflow:ellipsis;/*! autoprefixer: off */-webkit-box-orient:vertical}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .app-name,.cap-custom-card.ant-card.WECHAT .ant-card-body .app-name,.cap-custom-card.ant-card.INAPP .ant-card-body .app-name{font-size:.857rem;padding-left:.857rem;padding-top:.285rem;background-color:#fff;margin-top:1.142rem}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ant-card-meta,.cap-custom-card.ant-card.WECHAT .ant-card-body .ant-card-meta,.cap-custom-card.ant-card.INAPP .ant-card-body .ant-card-meta{background-color:#fff;padding:.857rem;border-radius:6px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ant-card-meta .ant-card-meta-detail,.cap-custom-card.ant-card.WECHAT .ant-card-body .ant-card-meta .ant-card-meta-detail,.cap-custom-card.ant-card.INAPP .ant-card-body .ant-card-meta .ant-card-meta-detail{overflow:hidden}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ios-action-buttons,.cap-custom-card.ant-card.WECHAT .ant-card-body .ios-action-buttons,.cap-custom-card.ant-card.INAPP .ant-card-body .ios-action-buttons{margin-top:1.714rem}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ios-action-buttons .ios-action-label,.cap-custom-card.ant-card.WECHAT .ant-card-body .ios-action-buttons .ios-action-label,.cap-custom-card.ant-card.INAPP .ant-card-body .ios-action-buttons .ios-action-label{width:100%;height:2.857rem;line-height:1.714rem;background-color:#fff;padding-top:.857rem;text-align:center}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ios-action-buttons .ios-action-label:first-child,.cap-custom-card.ant-card.WECHAT .ant-card-body .ios-action-buttons .ios-action-label:first-child,.cap-custom-card.ant-card.INAPP .ant-card-body .ios-action-buttons .ios-action-label:first-child{border-top-left-radius:6px;border-top-right-radius:6px;border-bottom:1px solid #dfe2e7}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .ios-action-buttons .ios-action-label:last-child,.cap-custom-card.ant-card.WECHAT .ant-card-body .ios-action-buttons .ios-action-label:last-child,.cap-custom-card.ant-card.INAPP .ant-card-body .ios-action-buttons .ios-action-label:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body{margin-top:.857rem;margin-bottom:1.142rem;background-color:#fff;height:247px;border-radius:.285rem}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .map-template,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .map-template,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .map-template{padding:.857rem 1.142rem}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container{width:100%;height:136px;position:relative}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container img,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container img,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .richmedia-image-container img{border-top-left-radius:4px;border-top-right-radius:4px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .name-container-with-abstract,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .name-container-with-abstract,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .name-container-with-abstract{padding:.857rem;height:68px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .name-container,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .name-container,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .name-container{position:absolute;bottom:0px;height:44px;padding-top:16px;padding-left:12px;color:#fff;opacity:.7;width:100%;background-image:linear-gradient(to top, black 0%, transparent 100%)}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container{display:flex;justify-content:space-between;margin:8px;padding-bottom:8px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container img,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container img,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container img{border-radius:4px}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container:not(:last-child),.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container:not(:last-child),.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template .additional-richmedia-container:not(:last-child){border-bottom:1px solid #dfe2e7}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .wechat-card-body .richmedia-template div,.cap-custom-card.ant-card.WECHAT .ant-card-body .wechat-card-body .richmedia-template div,.cap-custom-card.ant-card.INAPP .ant-card-body .wechat-card-body .richmedia-template div{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.cap-custom-card.ant-card.MOBILEPUSH .ant-card-body .preview-overflow-wrap-fields,.cap-custom-card.ant-card.WECHAT .ant-card-body .preview-overflow-wrap-fields,.cap-custom-card.ant-card.INAPP .ant-card-body .preview-overflow-wrap-fields{text-overflow:ellipsis;overflow:hidden;overflow-wrap:break-word;display:-webkit-box !important;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-align:left;width:200px}.cap-custom-card.ant-card.EMAIL .ant-card-meta{width:100%}.cap-custom-card.ant-card.EMAIL.no-image .ant-card-body{padding-bottom:0;padding-top:.285rem;height:129px}.facebook-card-body .ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{border-radius:4px;margin-top:.285rem}.facebook-card-body .ant-skeleton-paragraph{margin-left:-3.714rem}.facebook-card-body .ant-skeleton-paragraph li{border-radius:4px}.facebook-card-body .ant-skeleton-paragraph li:first-child{margin:-0.857rem 3.714rem 1.428rem}.facebook-card-body .dynamic-content-section{width:100%;padding:2rem 3.142rem;background-color:#f4f5f7;margin-top:.571rem;display:flex;justify-content:center;align-items:center;border-radius:4px}.facebook-card-body .dynamic-content-section .centered-item{max-width:130px;text-align:center}.content{white-space:pre-wrap}.zalo-campaign-card-style .ant-card-head-wrapper .ant-card-extra{top:0px !important}.zalo-campaign-card-style .cap-custom-card.ant-card.ZALO .ant-card-body{height:13.4rem}.slidebox-content-container .cap-custom-card.ant-card.ZALO .ant-card-body{height:14.86rem}.INAPP .title-desc-container .cap-header-v2-title{max-height:2rem}.INAPP .title-desc-container .cap-header-v2-description{max-height:4rem}.cap-custom-card-list .cap-custom-card{display:block}.cap-custom-card-list .cap-custom-card-list-row{display:flex;flex-flow:row wrap;justify-content:flex-start}.cap-custom-card-list .cap-custom-card-list-row .cap-custom-card-list-col{margin-top:.571rem;width:265px;margin-right:12px}`, ""]);
|
|
17846
|
+
// Exports
|
|
17847
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
17848
|
+
"cap-custom-card": `cap-custom-card`,
|
|
17849
|
+
"remove-border-radius": `remove-border-radius`,
|
|
17850
|
+
"hover-content": `hover-content`,
|
|
17851
|
+
"has-hover-option": `has-hover-option`,
|
|
17852
|
+
"content": `content`,
|
|
17853
|
+
"app-name": `app-name`,
|
|
17854
|
+
"ios-action-buttons": `ios-action-buttons`,
|
|
17855
|
+
"ios-action-label": `ios-action-label`,
|
|
17856
|
+
"wechat-card-body": `wechat-card-body`,
|
|
17857
|
+
"map-template": `map-template`,
|
|
17858
|
+
"richmedia-template": `richmedia-template`,
|
|
17859
|
+
"richmedia-image-container": `richmedia-image-container`,
|
|
17860
|
+
"name-container-with-abstract": `name-container-with-abstract`,
|
|
17861
|
+
"name-container": `name-container`,
|
|
17862
|
+
"additional-richmedia-container": `additional-richmedia-container`,
|
|
17863
|
+
"preview-overflow-wrap-fields": `preview-overflow-wrap-fields`,
|
|
17864
|
+
"facebook-card-body": `facebook-card-body`,
|
|
17865
|
+
"dynamic-content-section": `dynamic-content-section`,
|
|
17866
|
+
"centered-item": `centered-item`,
|
|
17867
|
+
"zalo-campaign-card-style": `zalo-campaign-card-style`,
|
|
17868
|
+
"slidebox-content-container": `slidebox-content-container`,
|
|
17869
|
+
"INAPP": `INAPP`,
|
|
17870
|
+
"title-desc-container": `title-desc-container`,
|
|
17871
|
+
"cap-header-v2-title": `cap-header-v2-title`,
|
|
17872
|
+
"cap-header-v2-description": `cap-header-v2-description`,
|
|
17873
|
+
"cap-custom-card-list": `cap-custom-card-list`,
|
|
17874
|
+
"cap-custom-card-list-row": `cap-custom-card-list-row`,
|
|
17875
|
+
"cap-custom-card-list-col": `cap-custom-card-list-col`
|
|
17876
|
+
};
|
|
17877
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
17878
|
+
|
|
17879
|
+
|
|
17759
17880
|
/***/ }),
|
|
17760
17881
|
|
|
17761
17882
|
/***/ 17400:
|
|
@@ -19249,25 +19370,6 @@ var _default = exports["default"] = CapCheckboxWithStatic;
|
|
|
19249
19370
|
|
|
19250
19371
|
/***/ }),
|
|
19251
19372
|
|
|
19252
|
-
/***/ 20606:
|
|
19253
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
19254
|
-
|
|
19255
|
-
"use strict";
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
exports.__esModule = true;
|
|
19259
|
-
exports.scope = exports["default"] = void 0;
|
|
19260
|
-
var _reactIntl = __webpack_require__(46407);
|
|
19261
|
-
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapMultiSelectDatePicker';
|
|
19262
|
-
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
19263
|
-
lastDayText: {
|
|
19264
|
-
id: scope + ".lastDayText",
|
|
19265
|
-
defaultMessage: 'Last day of month'
|
|
19266
|
-
}
|
|
19267
|
-
});
|
|
19268
|
-
|
|
19269
|
-
/***/ }),
|
|
19270
|
-
|
|
19271
19373
|
/***/ 20637:
|
|
19272
19374
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
19273
19375
|
|
|
@@ -27069,58 +27171,6 @@ var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024
|
|
|
27069
27171
|
exports["default"] = LoadingOutlined;
|
|
27070
27172
|
|
|
27071
27173
|
|
|
27072
|
-
/***/ }),
|
|
27073
|
-
|
|
27074
|
-
/***/ 35032:
|
|
27075
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
27076
|
-
|
|
27077
|
-
"use strict";
|
|
27078
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27079
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27080
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27081
|
-
/* harmony export */ });
|
|
27082
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
27083
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
27084
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
27085
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
27086
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
27087
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
27088
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
27089
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
27090
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
27091
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
27092
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2695);
|
|
27093
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
27094
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
27095
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
27096
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
|
|
27100
|
-
|
|
27101
|
-
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27108
|
-
var options = {};
|
|
27109
|
-
|
|
27110
|
-
;
|
|
27111
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
27112
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
27113
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
27114
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
27115
|
-
|
|
27116
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
27174
|
/***/ }),
|
|
27125
27175
|
|
|
27126
27176
|
/***/ 35158:
|
|
@@ -31093,7 +31143,7 @@ var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
|
31093
31143
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
31094
31144
|
var _styles = _interopRequireDefault(__webpack_require__(1689));
|
|
31095
31145
|
var _jsxRuntime = __webpack_require__(74848);
|
|
31096
|
-
const _excluded = ["className", "children", "suffix", "prefix", "style", "fontWeight", "onClick", "disabled"];
|
|
31146
|
+
const _excluded = ["className", "children", "suffix", "prefix", "style", "fontWeight", "onClick", "disabled", "href"];
|
|
31097
31147
|
/**
|
|
31098
31148
|
* CapLink
|
|
31099
31149
|
*
|
|
@@ -31116,7 +31166,8 @@ const CapLink = _ref => {
|
|
|
31116
31166
|
style,
|
|
31117
31167
|
fontWeight,
|
|
31118
31168
|
onClick,
|
|
31119
|
-
disabled = false
|
|
31169
|
+
disabled = false,
|
|
31170
|
+
href = '#'
|
|
31120
31171
|
} = _ref,
|
|
31121
31172
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
31122
31173
|
const handleClick = (e, link) => {
|
|
@@ -31138,7 +31189,9 @@ const CapLink = _ref => {
|
|
|
31138
31189
|
affix: false,
|
|
31139
31190
|
className: anchorClassName,
|
|
31140
31191
|
style: style,
|
|
31141
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Link, _extends({
|
|
31192
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Link, _extends({
|
|
31193
|
+
href: href
|
|
31194
|
+
}, rest, {
|
|
31142
31195
|
children: [prefix && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31143
31196
|
className: _styles.default[classPrefix + "-prefix"],
|
|
31144
31197
|
children: prefix
|
|
@@ -34740,6 +34793,101 @@ module.exports = __webpack_require__.p + "assets/images/featureUiNotEnabledIllus
|
|
|
34740
34793
|
|
|
34741
34794
|
/***/ }),
|
|
34742
34795
|
|
|
34796
|
+
/***/ 48334:
|
|
34797
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
34798
|
+
|
|
34799
|
+
"use strict";
|
|
34800
|
+
|
|
34801
|
+
|
|
34802
|
+
exports.__esModule = true;
|
|
34803
|
+
exports["default"] = void 0;
|
|
34804
|
+
var _antdV = __webpack_require__(64273);
|
|
34805
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
34806
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
34807
|
+
var _dayjs = __webpack_require__(25549);
|
|
34808
|
+
var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
|
|
34809
|
+
var _styles = _interopRequireDefault(__webpack_require__(83624));
|
|
34810
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
34811
|
+
const _excluded = ["className", "popupClassName", "value", "defaultValue", "defaultOpenValue", "onChange", "allowEmpty", "allowClear", "addon", "renderExtraFooter", "dropdownClassName", "dropdownStyle", "popupStyle", "classNames", "styles", "bordered", "variant"];
|
|
34812
|
+
/**
|
|
34813
|
+
*
|
|
34814
|
+
* CapTimePicker
|
|
34815
|
+
*
|
|
34816
|
+
*/
|
|
34817
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
34818
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
34819
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
34820
|
+
const clsPrefix = 'cap-timepicker-v2';
|
|
34821
|
+
const CapTimePicker = _ref => {
|
|
34822
|
+
let {
|
|
34823
|
+
className,
|
|
34824
|
+
popupClassName,
|
|
34825
|
+
value,
|
|
34826
|
+
defaultValue,
|
|
34827
|
+
defaultOpenValue,
|
|
34828
|
+
onChange,
|
|
34829
|
+
allowEmpty,
|
|
34830
|
+
allowClear,
|
|
34831
|
+
addon,
|
|
34832
|
+
renderExtraFooter,
|
|
34833
|
+
dropdownClassName,
|
|
34834
|
+
dropdownStyle,
|
|
34835
|
+
popupStyle,
|
|
34836
|
+
classNames: classNamesProp,
|
|
34837
|
+
styles: stylesProp,
|
|
34838
|
+
bordered,
|
|
34839
|
+
variant
|
|
34840
|
+
} = _ref,
|
|
34841
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
34842
|
+
// Deprecation warnings
|
|
34843
|
+
(0, _logDeprecationWarning.default)('CapTimePicker', 'allowEmpty', allowEmpty, 'allowClear');
|
|
34844
|
+
(0, _logDeprecationWarning.default)('CapTimePicker', 'addon', addon, 'renderExtraFooter');
|
|
34845
|
+
(0, _logDeprecationWarning.default)('CapTimePicker', 'dropdownClassName', dropdownClassName, 'classNames.popup.root or popupClassName');
|
|
34846
|
+
(0, _logDeprecationWarning.default)('CapTimePicker', 'dropdownStyle', dropdownStyle, 'styles.popup.root or popupStyle');
|
|
34847
|
+
(0, _logDeprecationWarning.default)('CapTimePicker', 'bordered', bordered, 'variant');
|
|
34848
|
+
|
|
34849
|
+
// Detect if consumer is using moment
|
|
34850
|
+
const isConsumerUsingMoment = (0, _dayjs.isMomentObject)(value) || (0, _dayjs.isMomentObject)(defaultValue) || (0, _dayjs.isMomentObject)(defaultOpenValue);
|
|
34851
|
+
|
|
34852
|
+
// Convert moment to dayjs
|
|
34853
|
+
const dayjsValue = (0, _dayjs.momentToDayjs)(value);
|
|
34854
|
+
const dayjsDefaultValue = (0, _dayjs.momentToDayjs)(defaultValue);
|
|
34855
|
+
const dayjsDefaultOpenValue = (0, _dayjs.momentToDayjs)(defaultOpenValue);
|
|
34856
|
+
const handleChange = (dayjsTime, timeString) => {
|
|
34857
|
+
if (!onChange) return;
|
|
34858
|
+
const result = (0, _dayjs.normalizeDateValue)(isConsumerUsingMoment, dayjsTime);
|
|
34859
|
+
onChange(result != null ? result : null, timeString != null ? timeString : null);
|
|
34860
|
+
};
|
|
34861
|
+
|
|
34862
|
+
// Backward compatibility: map deprecated props to new props
|
|
34863
|
+
const finalAllowClear = allowClear != null ? allowClear : allowEmpty;
|
|
34864
|
+
const finalRenderExtraFooter = renderExtraFooter != null ? renderExtraFooter : addon;
|
|
34865
|
+
|
|
34866
|
+
// Backward compatibility: merge deprecated props with new props
|
|
34867
|
+
const finalPopupClassName = (0, _classnames.default)(clsPrefix + "-popup", popupClassName, dropdownClassName);
|
|
34868
|
+
const finalPopupStyle = popupStyle != null ? popupStyle : dropdownStyle;
|
|
34869
|
+
|
|
34870
|
+
// Handle variant prop (v6 API)
|
|
34871
|
+
const finalVariant = variant != null ? variant : bordered === false ? 'borderless' : bordered === true ? 'outlined' : undefined;
|
|
34872
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.TimePicker, _extends({
|
|
34873
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix], className),
|
|
34874
|
+
popupClassName: finalPopupClassName,
|
|
34875
|
+
popupStyle: finalPopupStyle,
|
|
34876
|
+
classNames: classNamesProp,
|
|
34877
|
+
styles: stylesProp,
|
|
34878
|
+
variant: finalVariant,
|
|
34879
|
+
value: dayjsValue != null ? dayjsValue : undefined,
|
|
34880
|
+
defaultValue: dayjsDefaultValue != null ? dayjsDefaultValue : undefined,
|
|
34881
|
+
defaultOpenValue: dayjsDefaultOpenValue != null ? dayjsDefaultOpenValue : undefined,
|
|
34882
|
+
onChange: handleChange,
|
|
34883
|
+
allowClear: finalAllowClear,
|
|
34884
|
+
renderExtraFooter: finalRenderExtraFooter
|
|
34885
|
+
}, rest));
|
|
34886
|
+
};
|
|
34887
|
+
var _default = exports["default"] = CapTimePicker;
|
|
34888
|
+
|
|
34889
|
+
/***/ }),
|
|
34890
|
+
|
|
34743
34891
|
/***/ 48366:
|
|
34744
34892
|
/***/ ((__unused_webpack_module, exports) => {
|
|
34745
34893
|
|
|
@@ -54579,7 +54727,7 @@ var _exportNames = {
|
|
|
54579
54727
|
CapCarousel: true,
|
|
54580
54728
|
CapCheckbox: true,
|
|
54581
54729
|
CapDatePicker: true,
|
|
54582
|
-
|
|
54730
|
+
CapCustomCard: true,
|
|
54583
54731
|
CapColoredTag: true,
|
|
54584
54732
|
CapColumn: true,
|
|
54585
54733
|
CapCustomCheckboxList: true,
|
|
@@ -54636,6 +54784,7 @@ var _exportNames = {
|
|
|
54636
54784
|
CapTab: true,
|
|
54637
54785
|
CapTable: true,
|
|
54638
54786
|
CapTabV3: true,
|
|
54787
|
+
CapTimePicker: true,
|
|
54639
54788
|
CapTree: true,
|
|
54640
54789
|
CapTopBar: true,
|
|
54641
54790
|
CapTooltip: true,
|
|
@@ -54657,7 +54806,7 @@ var _exportNames = {
|
|
|
54657
54806
|
CapIcons: true,
|
|
54658
54807
|
styledVars: true
|
|
54659
54808
|
};
|
|
54660
|
-
exports.styledVars = exports.request = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTree = exports.CapTopBar = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTag = exports.CapTable = exports.CapTabV3 = exports.CapTab = exports.CapSwitch = exports.CapSupportVideosWrapper = exports.CapSteps = exports.CapStatus = exports.CapStatisticCard = exports.CapSplit = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSnackBar = exports.CapSlider = exports.CapSlideBox = exports.CapSkeleton = exports.CapSideBar = exports.CapShape = exports.CapSelectFilter = exports.CapSelect = exports.CapSecondaryTopBar = exports.CapRow = exports.CapRoadMap = exports.CapRadioGroup = exports.CapRadioButton = exports.CapRadio = exports.CapProgress = exports.CapPopover = exports.CapNotificationDropdown = exports.CapNotification = exports.
|
|
54809
|
+
exports.styledVars = exports.request = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTree = exports.CapTopBar = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTimePicker = exports.CapTag = exports.CapTable = exports.CapTabV3 = exports.CapTab = exports.CapSwitch = exports.CapSupportVideosWrapper = exports.CapSteps = exports.CapStatus = exports.CapStatisticCard = exports.CapSplit = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSnackBar = exports.CapSlider = exports.CapSlideBox = exports.CapSkeleton = exports.CapSideBar = exports.CapShape = exports.CapSelectFilter = exports.CapSelect = exports.CapSecondaryTopBar = exports.CapRow = exports.CapRoadMap = exports.CapRadioGroup = exports.CapRadioButton = exports.CapRadio = exports.CapProgress = exports.CapPopover = exports.CapNotificationDropdown = exports.CapNotification = exports.CapModal = exports.CapMenu = exports.CapLogin = exports.CapList = exports.CapLink = exports.CapLanguageProvider = exports.CapLabel = exports.CapInputTextArea = exports.CapInputSearch = exports.CapInputNumber = exports.CapInput = exports.CapInfoNote = exports.CapImportMFEComponent = exports.CapImage = exports.CapIllustration = exports.CapIcons = exports.CapIcon = exports.CapHeading = exports.CapHeader = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDrawer = exports.CapDivider = exports.CapDatePicker = exports.CapCustomSelect = exports.CapCustomList = exports.CapCustomCheckboxList = exports.CapCustomCard = exports.CapColumn = exports.CapColoredTag = exports.CapColorPicker = exports.CapCheckbox = exports.CapCarousel = exports.CapCardBox = exports.CapCard = exports.CapButton = exports.CapBorderedBox = exports.CapBlock = exports.CapBanner = exports.CapAppNotEnabled = exports.CapAlert = exports.CapActionBar = void 0;
|
|
54661
54810
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
54662
54811
|
exports.CapAlert = _CapAlert.default;
|
|
54663
54812
|
var _CapActionBar = _interopRequireDefault(__webpack_require__(9464));
|
|
@@ -54682,8 +54831,8 @@ var _CapCheckbox = _interopRequireDefault(__webpack_require__(20564));
|
|
|
54682
54831
|
exports.CapCheckbox = _CapCheckbox.default;
|
|
54683
54832
|
var _CapDatePicker = _interopRequireDefault(__webpack_require__(88785));
|
|
54684
54833
|
exports.CapDatePicker = _CapDatePicker.default;
|
|
54685
|
-
var
|
|
54686
|
-
exports.
|
|
54834
|
+
var _CapCustomCard = _interopRequireDefault(__webpack_require__(84328));
|
|
54835
|
+
exports.CapCustomCard = _CapCustomCard.default;
|
|
54687
54836
|
var _CapColoredTag = _interopRequireDefault(__webpack_require__(22029));
|
|
54688
54837
|
exports.CapColoredTag = _CapColoredTag.default;
|
|
54689
54838
|
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
@@ -54799,6 +54948,8 @@ var _CapTable = _interopRequireDefault(__webpack_require__(43337));
|
|
|
54799
54948
|
exports.CapTable = _CapTable.default;
|
|
54800
54949
|
var _CapTabV = _interopRequireDefault(__webpack_require__(60697));
|
|
54801
54950
|
exports.CapTabV3 = _CapTabV.default;
|
|
54951
|
+
var _CapTimePicker = _interopRequireDefault(__webpack_require__(48334));
|
|
54952
|
+
exports.CapTimePicker = _CapTimePicker.default;
|
|
54802
54953
|
var _CapTree = _interopRequireDefault(__webpack_require__(70399));
|
|
54803
54954
|
exports.CapTree = _CapTree.default;
|
|
54804
54955
|
var _CapTopBar = _interopRequireDefault(__webpack_require__(46035));
|
|
@@ -66053,6 +66204,500 @@ var _default = exports["default"] = SvgUserCopy;
|
|
|
66053
66204
|
|
|
66054
66205
|
/***/ }),
|
|
66055
66206
|
|
|
66207
|
+
/***/ 82739:
|
|
66208
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
66209
|
+
|
|
66210
|
+
"use strict";
|
|
66211
|
+
|
|
66212
|
+
|
|
66213
|
+
exports.__esModule = true;
|
|
66214
|
+
exports["default"] = void 0;
|
|
66215
|
+
var _antdV = __webpack_require__(64273);
|
|
66216
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
66217
|
+
var _get = _interopRequireDefault(__webpack_require__(58156));
|
|
66218
|
+
var _isEmpty = _interopRequireDefault(__webpack_require__(62193));
|
|
66219
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
66220
|
+
var _reactIntl = __webpack_require__(46407);
|
|
66221
|
+
var _CapHeader = _interopRequireDefault(__webpack_require__(93140));
|
|
66222
|
+
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
66223
|
+
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
66224
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
66225
|
+
var _CapLink = _interopRequireDefault(__webpack_require__(43223));
|
|
66226
|
+
var _CapSkeleton = _interopRequireDefault(__webpack_require__(67418));
|
|
66227
|
+
var _variables = __webpack_require__(56587);
|
|
66228
|
+
var _constants = __webpack_require__(7341);
|
|
66229
|
+
var _messages = _interopRequireDefault(__webpack_require__(16498));
|
|
66230
|
+
var _styles = _interopRequireDefault(__webpack_require__(97534));
|
|
66231
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
66232
|
+
const _excluded = ["className", "type", "content", "hoverOption", "url", "width", "height", "cardTop"];
|
|
66233
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
66234
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
66235
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
66236
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /**
|
|
66237
|
+
*
|
|
66238
|
+
* CapCard
|
|
66239
|
+
*
|
|
66240
|
+
*/
|
|
66241
|
+
const {
|
|
66242
|
+
Meta
|
|
66243
|
+
} = _antdV.Card;
|
|
66244
|
+
const clsPrefix = 'cap-custom-card';
|
|
66245
|
+
const getMpushContent = templateData => {
|
|
66246
|
+
// Handle empty or invalid templateData
|
|
66247
|
+
if (!templateData || typeof templateData !== 'object') {
|
|
66248
|
+
return {
|
|
66249
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66250
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
|
|
66251
|
+
size: "small",
|
|
66252
|
+
title: "",
|
|
66253
|
+
description: ""
|
|
66254
|
+
})
|
|
66255
|
+
})
|
|
66256
|
+
};
|
|
66257
|
+
}
|
|
66258
|
+
const mpushData = (0, _get.default)(templateData, 'versions.base', templateData);
|
|
66259
|
+
const androidData = (0, _get.default)(mpushData, 'ANDROID') || (0, _get.default)(mpushData, 'androidContent');
|
|
66260
|
+
const iosData = (0, _get.default)(mpushData, 'IOS') || (0, _get.default)(mpushData, 'iosContent');
|
|
66261
|
+
let title = (0, _get.default)(androidData, 'title') || '';
|
|
66262
|
+
let description = (0, _get.default)(androidData, 'message') || '';
|
|
66263
|
+
let actionText1 = (0, _get.default)(androidData, 'expandableDetails.ctas[0].actionText') || '';
|
|
66264
|
+
let actionText2 = (0, _get.default)(androidData, 'expandableDetails.ctas[1].actionText') || '';
|
|
66265
|
+
let hasImage = (0, _get.default)(androidData, 'expandableDetails.style') === 'BIG_PICTURE';
|
|
66266
|
+
let hasVideo = (0, _get.default)(androidData, 'expandableDetails.style') === 'VIDEO';
|
|
66267
|
+
let hasGIF = (0, _get.default)(androidData, 'expandableDetails.style') === 'GIF';
|
|
66268
|
+
let image;
|
|
66269
|
+
let video;
|
|
66270
|
+
let gif;
|
|
66271
|
+
if (hasImage) {
|
|
66272
|
+
image = (0, _get.default)(androidData, 'expandableDetails.image');
|
|
66273
|
+
}
|
|
66274
|
+
if (hasVideo) {
|
|
66275
|
+
video = (0, _get.default)(androidData, 'expandableDetails.media[0].url');
|
|
66276
|
+
}
|
|
66277
|
+
if (hasGIF) {
|
|
66278
|
+
gif = (0, _get.default)(androidData, 'expandableDetails.media[0].url');
|
|
66279
|
+
}
|
|
66280
|
+
if ((0, _isEmpty.default)(androidData)) {
|
|
66281
|
+
title = (0, _get.default)(iosData, 'title') || '';
|
|
66282
|
+
description = (0, _get.default)(iosData, 'message') || '';
|
|
66283
|
+
actionText1 = (0, _get.default)(iosData, 'expandableDetails.ctas[0].actionLabel') || '';
|
|
66284
|
+
actionText2 = (0, _get.default)(iosData, 'expandableDetails.ctas[0].actionLabel2') || '';
|
|
66285
|
+
hasImage = (0, _get.default)(iosData, 'expandableDetails.style') === 'BIG_PICTURE';
|
|
66286
|
+
hasVideo = (0, _get.default)(iosData, 'expandableDetails.style') === 'VIDEO';
|
|
66287
|
+
hasGIF = (0, _get.default)(iosData, 'expandableDetails.style') === 'GIF';
|
|
66288
|
+
if (hasImage) {
|
|
66289
|
+
image = (0, _get.default)(iosData, 'expandableDetails.image');
|
|
66290
|
+
}
|
|
66291
|
+
if (hasVideo) {
|
|
66292
|
+
video = (0, _get.default)(iosData, 'expandableDetails.media[0].url');
|
|
66293
|
+
}
|
|
66294
|
+
if (hasGIF) {
|
|
66295
|
+
gif = (0, _get.default)(iosData, 'expandableDetails.media[0].url');
|
|
66296
|
+
}
|
|
66297
|
+
}
|
|
66298
|
+
const preview = {
|
|
66299
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66300
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
|
|
66301
|
+
size: "small",
|
|
66302
|
+
title: title,
|
|
66303
|
+
description: description
|
|
66304
|
+
}), hasImage && image && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66305
|
+
src: image,
|
|
66306
|
+
alt: "mpush"
|
|
66307
|
+
}), hasVideo && video && /*#__PURE__*/(0, _jsxRuntime.jsx)("video", {
|
|
66308
|
+
src: video
|
|
66309
|
+
}), hasGIF && gif && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66310
|
+
src: gif,
|
|
66311
|
+
alt: "mpush"
|
|
66312
|
+
}), !(0, _isEmpty.default)(androidData) && (actionText1 || actionText2) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66313
|
+
style: {
|
|
66314
|
+
marginTop: '8px'
|
|
66315
|
+
},
|
|
66316
|
+
children: [actionText1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLink.default, {
|
|
66317
|
+
title: actionText1,
|
|
66318
|
+
style: {
|
|
66319
|
+
display: 'inline-block'
|
|
66320
|
+
}
|
|
66321
|
+
}), actionText2 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLink.default, {
|
|
66322
|
+
title: actionText2,
|
|
66323
|
+
style: {
|
|
66324
|
+
display: 'inline-block',
|
|
66325
|
+
marginLeft: '24px'
|
|
66326
|
+
}
|
|
66327
|
+
})]
|
|
66328
|
+
})]
|
|
66329
|
+
})
|
|
66330
|
+
};
|
|
66331
|
+
if ((0, _isEmpty.default)(androidData) && (actionText1 || actionText2)) {
|
|
66332
|
+
preview.iosButtons = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66333
|
+
className: _styles.default['ios-action-buttons'],
|
|
66334
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66335
|
+
className: _styles.default['ios-action-label'],
|
|
66336
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLink.default, {
|
|
66337
|
+
title: actionText1
|
|
66338
|
+
})
|
|
66339
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66340
|
+
className: _styles.default['ios-action-label'],
|
|
66341
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLink.default, {
|
|
66342
|
+
title: actionText2
|
|
66343
|
+
})
|
|
66344
|
+
})]
|
|
66345
|
+
});
|
|
66346
|
+
}
|
|
66347
|
+
return preview;
|
|
66348
|
+
};
|
|
66349
|
+
const getInAppContent = templateData => {
|
|
66350
|
+
const inAppData = (0, _get.default)(templateData, 'versions.base', templateData);
|
|
66351
|
+
const androidData = (0, _get.default)(inAppData, 'content.ANDROID') || (0, _get.default)(inAppData, 'androidContent');
|
|
66352
|
+
const iosData = (0, _get.default)(inAppData, 'content.IOS') || (0, _get.default)(inAppData, 'iosContent');
|
|
66353
|
+
const isBeeFreeTemplate = (0, _get.default)(androidData, 'isBEEeditor');
|
|
66354
|
+
if (isBeeFreeTemplate) {
|
|
66355
|
+
const beeHtml = (0, _get.default)(androidData, 'beeHtml') || (0, _get.default)(iosData, 'beeHtml');
|
|
66356
|
+
return {
|
|
66357
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66358
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("iframe", {
|
|
66359
|
+
srcDoc: beeHtml == null ? void 0 : beeHtml.value,
|
|
66360
|
+
title: "Inapp Preview",
|
|
66361
|
+
width: "100%",
|
|
66362
|
+
height: "100%",
|
|
66363
|
+
frameBorder: "0"
|
|
66364
|
+
})
|
|
66365
|
+
})
|
|
66366
|
+
};
|
|
66367
|
+
}
|
|
66368
|
+
let title = (0, _get.default)(androidData, 'title');
|
|
66369
|
+
let description = (0, _get.default)(androidData, 'message');
|
|
66370
|
+
let hasImage = (0, _get.default)(androidData, 'expandableDetails.style') === _constants.BIG_PICTURE;
|
|
66371
|
+
let image;
|
|
66372
|
+
if (hasImage) {
|
|
66373
|
+
image = (0, _get.default)(androidData, 'expandableDetails.image');
|
|
66374
|
+
}
|
|
66375
|
+
if ((0, _isEmpty.default)(androidData)) {
|
|
66376
|
+
title = (0, _get.default)(iosData, 'title');
|
|
66377
|
+
description = (0, _get.default)(iosData, 'message');
|
|
66378
|
+
hasImage = (0, _get.default)(iosData, 'expandableDetails.style') === _constants.BIG_PICTURE;
|
|
66379
|
+
if (hasImage) {
|
|
66380
|
+
image = (0, _get.default)(iosData, 'expandableDetails.image');
|
|
66381
|
+
}
|
|
66382
|
+
}
|
|
66383
|
+
const preview = {
|
|
66384
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66385
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
|
|
66386
|
+
size: "small",
|
|
66387
|
+
title: title,
|
|
66388
|
+
description: description
|
|
66389
|
+
}), hasImage && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66390
|
+
src: image,
|
|
66391
|
+
alt: "inapp"
|
|
66392
|
+
})]
|
|
66393
|
+
})
|
|
66394
|
+
};
|
|
66395
|
+
return preview;
|
|
66396
|
+
};
|
|
66397
|
+
const getWeChatContent = content => {
|
|
66398
|
+
if (typeof content === 'object' && content !== null) {
|
|
66399
|
+
return getRichMediaPreview(content);
|
|
66400
|
+
}
|
|
66401
|
+
if (typeof content === 'string') {
|
|
66402
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66403
|
+
className: _styles.default['map-template'],
|
|
66404
|
+
children: decodeURIComponent(content)
|
|
66405
|
+
});
|
|
66406
|
+
}
|
|
66407
|
+
return null;
|
|
66408
|
+
};
|
|
66409
|
+
const getRichMediaPreview = contentDetails => {
|
|
66410
|
+
const previewMsg = [];
|
|
66411
|
+
const content = JSON.parse(JSON.stringify(contentDetails));
|
|
66412
|
+
const mediaListLength = content.length;
|
|
66413
|
+
const contentData = content[0];
|
|
66414
|
+
previewMsg.push(/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66415
|
+
className: _styles.default['richmedia-image-container'],
|
|
66416
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66417
|
+
alt: "default",
|
|
66418
|
+
width: "100%",
|
|
66419
|
+
height: "136px",
|
|
66420
|
+
src: contentData.image_url
|
|
66421
|
+
}), mediaListLength !== 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66422
|
+
className: _styles.default['name-container'],
|
|
66423
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
66424
|
+
type: "h4",
|
|
66425
|
+
style: {
|
|
66426
|
+
color: _variables.CAP_WHITE
|
|
66427
|
+
},
|
|
66428
|
+
children: contentData.title
|
|
66429
|
+
})
|
|
66430
|
+
})]
|
|
66431
|
+
}, "richmedia-image"));
|
|
66432
|
+
if (mediaListLength === 1) {
|
|
66433
|
+
previewMsg.push(/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66434
|
+
className: _styles.default['name-container-with-abstract'],
|
|
66435
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
66436
|
+
type: "h4",
|
|
66437
|
+
children: contentData.title
|
|
66438
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
66439
|
+
type: "label9",
|
|
66440
|
+
children: contentData.digest
|
|
66441
|
+
})]
|
|
66442
|
+
}, "name-with-abstract"));
|
|
66443
|
+
}
|
|
66444
|
+
content.splice(1, 2).forEach((data, index) => {
|
|
66445
|
+
previewMsg.push(/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66446
|
+
className: _styles.default['additional-richmedia-container'],
|
|
66447
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66448
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
66449
|
+
type: "label9",
|
|
66450
|
+
style: {
|
|
66451
|
+
width: '170px',
|
|
66452
|
+
top: '12px',
|
|
66453
|
+
position: 'relative'
|
|
66454
|
+
},
|
|
66455
|
+
children: data.title
|
|
66456
|
+
})
|
|
66457
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66458
|
+
alt: "default",
|
|
66459
|
+
width: "40px",
|
|
66460
|
+
height: "40px",
|
|
66461
|
+
src: data.image_url
|
|
66462
|
+
})]
|
|
66463
|
+
}, "additional-" + index));
|
|
66464
|
+
});
|
|
66465
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66466
|
+
className: _styles.default['richmedia-template'],
|
|
66467
|
+
children: previewMsg
|
|
66468
|
+
});
|
|
66469
|
+
};
|
|
66470
|
+
const getFacebookPreview = function (FBDynamicComponent) {
|
|
66471
|
+
if (FBDynamicComponent === void 0) {
|
|
66472
|
+
FBDynamicComponent = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {});
|
|
66473
|
+
}
|
|
66474
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66475
|
+
className: _styles.default['facebook-card-body'],
|
|
66476
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66477
|
+
description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSkeleton.default, {
|
|
66478
|
+
loading: true,
|
|
66479
|
+
avatar: true,
|
|
66480
|
+
paragraph: {
|
|
66481
|
+
rows: 3,
|
|
66482
|
+
width: [36, 140, 80]
|
|
66483
|
+
}
|
|
66484
|
+
})
|
|
66485
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66486
|
+
className: _styles.default['dynamic-content-section'],
|
|
66487
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66488
|
+
className: _styles.default['centered-item'],
|
|
66489
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FBDynamicComponent, {})
|
|
66490
|
+
})
|
|
66491
|
+
})]
|
|
66492
|
+
});
|
|
66493
|
+
};
|
|
66494
|
+
const getCardContent = props => {
|
|
66495
|
+
const {
|
|
66496
|
+
content,
|
|
66497
|
+
url,
|
|
66498
|
+
width,
|
|
66499
|
+
height,
|
|
66500
|
+
FBDynamicComponent,
|
|
66501
|
+
buttonText,
|
|
66502
|
+
fbType,
|
|
66503
|
+
mediaContent,
|
|
66504
|
+
isNewMobilePush
|
|
66505
|
+
} = props;
|
|
66506
|
+
const type = (props.type || '').toUpperCase();
|
|
66507
|
+
switch (type) {
|
|
66508
|
+
case _constants.channels.sms:
|
|
66509
|
+
case _constants.channels.call_task:
|
|
66510
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66511
|
+
description: content
|
|
66512
|
+
});
|
|
66513
|
+
case _constants.channels.email:
|
|
66514
|
+
case _constants.channels.line:
|
|
66515
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66516
|
+
description: url ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66517
|
+
width: width || 244,
|
|
66518
|
+
height: height || 279,
|
|
66519
|
+
src: url,
|
|
66520
|
+
alt: url
|
|
66521
|
+
}) : content || /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSkeleton.default, {
|
|
66522
|
+
loading: true
|
|
66523
|
+
})
|
|
66524
|
+
});
|
|
66525
|
+
case _constants.channels.viber:
|
|
66526
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
66527
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66528
|
+
className: (0, _classnames.default)(_styles.default['truncate-text-viber'], {
|
|
66529
|
+
[_styles.default['truncate-text-with-image']]: url,
|
|
66530
|
+
[_styles.default['truncate-text-with-button']]: buttonText
|
|
66531
|
+
}),
|
|
66532
|
+
description: content || /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSkeleton.default, {
|
|
66533
|
+
loading: true
|
|
66534
|
+
})
|
|
66535
|
+
}), url && /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66536
|
+
style: {
|
|
66537
|
+
paddingTop: '14px'
|
|
66538
|
+
},
|
|
66539
|
+
description: mediaContent || /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66540
|
+
width: width || 215,
|
|
66541
|
+
height: height || 103,
|
|
66542
|
+
src: url,
|
|
66543
|
+
alt: url
|
|
66544
|
+
})
|
|
66545
|
+
}), buttonText && /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66546
|
+
style: {
|
|
66547
|
+
paddingTop: '14px'
|
|
66548
|
+
},
|
|
66549
|
+
className: (0, _classnames.default)({
|
|
66550
|
+
[_styles.default['button-content']]: buttonText
|
|
66551
|
+
}),
|
|
66552
|
+
description: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66553
|
+
children: buttonText
|
|
66554
|
+
})
|
|
66555
|
+
})]
|
|
66556
|
+
});
|
|
66557
|
+
case _constants.channels.mpush:
|
|
66558
|
+
{
|
|
66559
|
+
if (isNewMobilePush) {
|
|
66560
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66561
|
+
description: content,
|
|
66562
|
+
className: _styles.default.content
|
|
66563
|
+
});
|
|
66564
|
+
}
|
|
66565
|
+
const contentPreview = getMpushContent(content);
|
|
66566
|
+
const previewMpush = [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66567
|
+
className: _styles.default['app-name'],
|
|
66568
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
|
|
66569
|
+
size: "small",
|
|
66570
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
66571
|
+
children: "App name"
|
|
66572
|
+
}),
|
|
66573
|
+
prefix: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66574
|
+
src: "./favicon.ico",
|
|
66575
|
+
alt: ""
|
|
66576
|
+
})
|
|
66577
|
+
})
|
|
66578
|
+
}, "app-name"), /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66579
|
+
description: contentPreview.content,
|
|
66580
|
+
avatar: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Avatar, {
|
|
66581
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
66582
|
+
type: "user"
|
|
66583
|
+
})
|
|
66584
|
+
})
|
|
66585
|
+
}, "meta")];
|
|
66586
|
+
if (contentPreview.iosButtons) {
|
|
66587
|
+
previewMpush.push(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66588
|
+
children: contentPreview.iosButtons
|
|
66589
|
+
}, "ios-buttons"));
|
|
66590
|
+
}
|
|
66591
|
+
return previewMpush;
|
|
66592
|
+
}
|
|
66593
|
+
case _constants.channels.rcs:
|
|
66594
|
+
case _constants.channels.zalo:
|
|
66595
|
+
case _constants.channels.whatsapp:
|
|
66596
|
+
{
|
|
66597
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66598
|
+
description: content,
|
|
66599
|
+
className: _styles.default.content
|
|
66600
|
+
});
|
|
66601
|
+
}
|
|
66602
|
+
case _constants.channels.wechat:
|
|
66603
|
+
{
|
|
66604
|
+
const contentPreview = getWeChatContent(content);
|
|
66605
|
+
const previewWeChat = [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66606
|
+
className: _styles.default['wechat-card-body'],
|
|
66607
|
+
children: contentPreview
|
|
66608
|
+
}, "wechat-body")];
|
|
66609
|
+
return previewWeChat;
|
|
66610
|
+
}
|
|
66611
|
+
case _constants.channels.facebook:
|
|
66612
|
+
{
|
|
66613
|
+
if (fbType === 'list') {
|
|
66614
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66615
|
+
description: url ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66616
|
+
width: width || 244,
|
|
66617
|
+
height: height || 279,
|
|
66618
|
+
src: url,
|
|
66619
|
+
alt: url
|
|
66620
|
+
}) : content || /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSkeleton.default, {
|
|
66621
|
+
loading: true
|
|
66622
|
+
})
|
|
66623
|
+
});
|
|
66624
|
+
}
|
|
66625
|
+
return getFacebookPreview(FBDynamicComponent);
|
|
66626
|
+
}
|
|
66627
|
+
case _constants.channels.inapp:
|
|
66628
|
+
{
|
|
66629
|
+
const contentPreview = getInAppContent(content);
|
|
66630
|
+
const previewInApp = [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66631
|
+
className: _styles.default['app-name'],
|
|
66632
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
|
|
66633
|
+
size: "small",
|
|
66634
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
66635
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.appName))
|
|
66636
|
+
}),
|
|
66637
|
+
prefix: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
66638
|
+
src: "./favicon.ico",
|
|
66639
|
+
alt: ""
|
|
66640
|
+
})
|
|
66641
|
+
})
|
|
66642
|
+
}, "app-name"), /*#__PURE__*/(0, _jsxRuntime.jsx)(Meta, {
|
|
66643
|
+
description: contentPreview == null ? void 0 : contentPreview.content,
|
|
66644
|
+
avatar: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Avatar, {
|
|
66645
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
66646
|
+
type: "user"
|
|
66647
|
+
})
|
|
66648
|
+
})
|
|
66649
|
+
}, "meta")];
|
|
66650
|
+
if (contentPreview != null && contentPreview.iosButtons) {
|
|
66651
|
+
previewInApp.push(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66652
|
+
children: contentPreview == null ? void 0 : contentPreview.iosButtons
|
|
66653
|
+
}, "ios-buttons"));
|
|
66654
|
+
}
|
|
66655
|
+
return previewInApp;
|
|
66656
|
+
}
|
|
66657
|
+
default:
|
|
66658
|
+
return content;
|
|
66659
|
+
}
|
|
66660
|
+
};
|
|
66661
|
+
const CapCustomCard = _ref => {
|
|
66662
|
+
let {
|
|
66663
|
+
className,
|
|
66664
|
+
type,
|
|
66665
|
+
content,
|
|
66666
|
+
hoverOption,
|
|
66667
|
+
url,
|
|
66668
|
+
width: _width,
|
|
66669
|
+
height: _height,
|
|
66670
|
+
cardTop
|
|
66671
|
+
} = _ref,
|
|
66672
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
66673
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antdV.Card, _extends({
|
|
66674
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix], className, type, {
|
|
66675
|
+
[_styles.default['has-hover-option']]: hoverOption,
|
|
66676
|
+
[_styles.default['no-image']]: !url && content,
|
|
66677
|
+
[_styles.default['remove-border-radius']]: cardTop
|
|
66678
|
+
})
|
|
66679
|
+
}, rest, {
|
|
66680
|
+
children: [getCardContent(_extends({
|
|
66681
|
+
className,
|
|
66682
|
+
type,
|
|
66683
|
+
content,
|
|
66684
|
+
hoverOption,
|
|
66685
|
+
url,
|
|
66686
|
+
width: _width,
|
|
66687
|
+
height: _height,
|
|
66688
|
+
cardTop
|
|
66689
|
+
}, rest)), hoverOption && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66690
|
+
className: _styles.default['hover-content'],
|
|
66691
|
+
children: hoverOption
|
|
66692
|
+
})]
|
|
66693
|
+
}));
|
|
66694
|
+
};
|
|
66695
|
+
var _default = exports["default"] = Object.assign(CapCustomCard, {
|
|
66696
|
+
getRichMediaPreview
|
|
66697
|
+
});
|
|
66698
|
+
|
|
66699
|
+
/***/ }),
|
|
66700
|
+
|
|
66056
66701
|
/***/ 82748:
|
|
66057
66702
|
/***/ ((__unused_webpack_module, exports) => {
|
|
66058
66703
|
|
|
@@ -66409,6 +67054,58 @@ function identity(value) {
|
|
|
66409
67054
|
module.exports = identity;
|
|
66410
67055
|
|
|
66411
67056
|
|
|
67057
|
+
/***/ }),
|
|
67058
|
+
|
|
67059
|
+
/***/ 83624:
|
|
67060
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
67061
|
+
|
|
67062
|
+
"use strict";
|
|
67063
|
+
__webpack_require__.r(__webpack_exports__);
|
|
67064
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
67065
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
67066
|
+
/* harmony export */ });
|
|
67067
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
67068
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
67069
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
67070
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
67071
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
67072
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
67073
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
67074
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
67075
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
67076
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
67077
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92137);
|
|
67078
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
67079
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
67080
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
67081
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
67082
|
+
|
|
67083
|
+
|
|
67084
|
+
|
|
67085
|
+
|
|
67086
|
+
|
|
67087
|
+
|
|
67088
|
+
|
|
67089
|
+
|
|
67090
|
+
|
|
67091
|
+
|
|
67092
|
+
|
|
67093
|
+
var options = {};
|
|
67094
|
+
|
|
67095
|
+
;
|
|
67096
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
67097
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
67098
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
67099
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
67100
|
+
|
|
67101
|
+
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
67102
|
+
|
|
67103
|
+
|
|
67104
|
+
|
|
67105
|
+
|
|
67106
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
67107
|
+
|
|
67108
|
+
|
|
66412
67109
|
/***/ }),
|
|
66413
67110
|
|
|
66414
67111
|
/***/ 83652:
|
|
@@ -66593,6 +67290,28 @@ function setToArray(set) {
|
|
|
66593
67290
|
module.exports = setToArray;
|
|
66594
67291
|
|
|
66595
67292
|
|
|
67293
|
+
/***/ }),
|
|
67294
|
+
|
|
67295
|
+
/***/ 84328:
|
|
67296
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
67297
|
+
|
|
67298
|
+
"use strict";
|
|
67299
|
+
|
|
67300
|
+
|
|
67301
|
+
exports.__esModule = true;
|
|
67302
|
+
exports["default"] = void 0;
|
|
67303
|
+
var _CapCustomCard = _interopRequireDefault(__webpack_require__(82739));
|
|
67304
|
+
var _CapCustomCardList = _interopRequireDefault(__webpack_require__(235));
|
|
67305
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
67306
|
+
/**
|
|
67307
|
+
*
|
|
67308
|
+
* CapCard
|
|
67309
|
+
*
|
|
67310
|
+
*/
|
|
67311
|
+
var _default = exports["default"] = Object.assign(_CapCustomCard.default, {
|
|
67312
|
+
CapCustomCardList: _CapCustomCardList.default
|
|
67313
|
+
});
|
|
67314
|
+
|
|
66596
67315
|
/***/ }),
|
|
66597
67316
|
|
|
66598
67317
|
/***/ 84409:
|
|
@@ -70360,6 +71079,24 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
70360
71079
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
70361
71080
|
|
|
70362
71081
|
|
|
71082
|
+
/***/ }),
|
|
71083
|
+
|
|
71084
|
+
/***/ 92137:
|
|
71085
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
71086
|
+
|
|
71087
|
+
// Imports
|
|
71088
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
71089
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
71090
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
71091
|
+
// Module
|
|
71092
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-timepicker-v2 .ant-picker-suffix{color:#091e42}`, ""]);
|
|
71093
|
+
// Exports
|
|
71094
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
71095
|
+
"cap-timepicker-v2": `cap-timepicker-v2`
|
|
71096
|
+
};
|
|
71097
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
71098
|
+
|
|
71099
|
+
|
|
70363
71100
|
/***/ }),
|
|
70364
71101
|
|
|
70365
71102
|
/***/ 92160:
|
|
@@ -72168,91 +72905,6 @@ var _default = exports["default"] = useResetIconStyle;
|
|
|
72168
72905
|
|
|
72169
72906
|
/***/ }),
|
|
72170
72907
|
|
|
72171
|
-
/***/ 95452:
|
|
72172
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
72173
|
-
|
|
72174
|
-
"use strict";
|
|
72175
|
-
|
|
72176
|
-
|
|
72177
|
-
exports.__esModule = true;
|
|
72178
|
-
exports["default"] = void 0;
|
|
72179
|
-
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
72180
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
72181
|
-
var _reactIntl = __webpack_require__(46407);
|
|
72182
|
-
var _messages = _interopRequireDefault(__webpack_require__(20606));
|
|
72183
|
-
var _styles = _interopRequireDefault(__webpack_require__(35032));
|
|
72184
|
-
var _jsxRuntime = __webpack_require__(74848);
|
|
72185
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
72186
|
-
/**
|
|
72187
|
-
*
|
|
72188
|
-
* CapMultiSelectDatePicker
|
|
72189
|
-
*
|
|
72190
|
-
*/
|
|
72191
|
-
|
|
72192
|
-
const renderLastDayOption = (selectedDays, lastDayText, onClick) => {
|
|
72193
|
-
const lastDayValue = -1;
|
|
72194
|
-
const isSelected = selectedDays.indexOf(lastDayValue) !== -1;
|
|
72195
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("th", {
|
|
72196
|
-
colSpan: 4,
|
|
72197
|
-
className: (0, _classnames.default)(_styles.default.customTxt, {
|
|
72198
|
-
[_styles.default.customSelected]: isSelected
|
|
72199
|
-
}),
|
|
72200
|
-
onClick: () => onClick == null ? void 0 : onClick(lastDayValue),
|
|
72201
|
-
children: lastDayText
|
|
72202
|
-
}, lastDayValue);
|
|
72203
|
-
};
|
|
72204
|
-
const CapMultiSelectDatePicker = _ref => {
|
|
72205
|
-
let {
|
|
72206
|
-
selected = [],
|
|
72207
|
-
defaultValue,
|
|
72208
|
-
showLastDay = false,
|
|
72209
|
-
lastDayText,
|
|
72210
|
-
onClick,
|
|
72211
|
-
intl: {
|
|
72212
|
-
formatMessage
|
|
72213
|
-
}
|
|
72214
|
-
} = _ref;
|
|
72215
|
-
const getNumberOfDays = () => {
|
|
72216
|
-
const noOfDays = [];
|
|
72217
|
-
for (let i = 1; i <= 31; i++) {
|
|
72218
|
-
noOfDays.push(i);
|
|
72219
|
-
}
|
|
72220
|
-
return noOfDays;
|
|
72221
|
-
};
|
|
72222
|
-
const getNumberOfWeeks = () => {
|
|
72223
|
-
const noOfWeeks = [];
|
|
72224
|
-
for (let i = 1; i <= 5; i++) {
|
|
72225
|
-
noOfWeeks.push(i);
|
|
72226
|
-
}
|
|
72227
|
-
return noOfWeeks;
|
|
72228
|
-
};
|
|
72229
|
-
const noOfDays = getNumberOfDays();
|
|
72230
|
-
const noOfWeeks = getNumberOfWeeks();
|
|
72231
|
-
const selectedDays = selected || defaultValue || [];
|
|
72232
|
-
const finalLastDayText = lastDayText || formatMessage(_messages.default.lastDayText);
|
|
72233
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72234
|
-
className: _styles.default.multiSelectDateContainer,
|
|
72235
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("table", {
|
|
72236
|
-
className: _styles.default.dateContent,
|
|
72237
|
-
children: noOfWeeks.map((_w, index) => {
|
|
72238
|
-
const weekDays = noOfDays.slice(index * 7, (index + 1) * 7);
|
|
72239
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
72240
|
-
children: [weekDays.map(day => /*#__PURE__*/(0, _jsxRuntime.jsx)("th", {
|
|
72241
|
-
className: (0, _classnames.default)({
|
|
72242
|
-
[_styles.default.selected]: selectedDays.indexOf(day) !== -1
|
|
72243
|
-
}),
|
|
72244
|
-
onClick: () => onClick == null ? void 0 : onClick(day),
|
|
72245
|
-
children: day
|
|
72246
|
-
}, day)), index === noOfWeeks.length - 1 && showLastDay ? renderLastDayOption(selectedDays, finalLastDayText, onClick) : null]
|
|
72247
|
-
}, "week-" + index);
|
|
72248
|
-
})
|
|
72249
|
-
})
|
|
72250
|
-
});
|
|
72251
|
-
};
|
|
72252
|
-
var _default = exports["default"] = (0, _reactIntl.injectIntl)(CapMultiSelectDatePicker);
|
|
72253
|
-
|
|
72254
|
-
/***/ }),
|
|
72255
|
-
|
|
72256
72908
|
/***/ 95727:
|
|
72257
72909
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
72258
72910
|
|
|
@@ -72834,6 +73486,58 @@ const getSolidColor = (baseColor, brightness) => {
|
|
|
72834
73486
|
};
|
|
72835
73487
|
exports.getSolidColor = getSolidColor;
|
|
72836
73488
|
|
|
73489
|
+
/***/ }),
|
|
73490
|
+
|
|
73491
|
+
/***/ 97534:
|
|
73492
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
73493
|
+
|
|
73494
|
+
"use strict";
|
|
73495
|
+
__webpack_require__.r(__webpack_exports__);
|
|
73496
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
73497
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
73498
|
+
/* harmony export */ });
|
|
73499
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
73500
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
73501
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
73502
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
73503
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
73504
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
73505
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
73506
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
73507
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
73508
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
73509
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17355);
|
|
73510
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
73511
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
73512
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
73513
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
73514
|
+
|
|
73515
|
+
|
|
73516
|
+
|
|
73517
|
+
|
|
73518
|
+
|
|
73519
|
+
|
|
73520
|
+
|
|
73521
|
+
|
|
73522
|
+
|
|
73523
|
+
|
|
73524
|
+
|
|
73525
|
+
var options = {};
|
|
73526
|
+
|
|
73527
|
+
;
|
|
73528
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
73529
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
73530
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
73531
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
73532
|
+
|
|
73533
|
+
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
73534
|
+
|
|
73535
|
+
|
|
73536
|
+
|
|
73537
|
+
|
|
73538
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
73539
|
+
|
|
73540
|
+
|
|
72837
73541
|
/***/ }),
|
|
72838
73542
|
|
|
72839
73543
|
/***/ 97739:
|