@capillarytech/blaze-ui 5.18.10 → 5.18.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.
@@ -3153,6 +3153,69 @@ const SvgNotepad = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _extends({
3153
3153
  }));
3154
3154
  var _default = exports["default"] = SvgNotepad;
3155
3155
 
3156
+ /***/ }),
3157
+
3158
+ /***/ 16205:
3159
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3160
+
3161
+ // Imports
3162
+ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
3163
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
3164
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
3165
+ // Module
3166
+ ___CSS_LOADER_EXPORT___.push([module.id, `.cap-static-templates-v2{display:flex;flex-flow:nowrap;min-width:85vw}.sidebar{width:18.429rem;margin-right:1.214rem;border:.071rem solid #dfe2e7}.templates-and-search-container{width:var(--templates-container-width, 70.714rem)}.templates-container{max-height:var(--templates-container-max-height, 28.571rem);overflow-y:scroll;scroll-behavior:smooth}.category-container{display:flex;align-items:center;justify-content:space-between;height:2.857rem;padding:.857rem 1.142rem .857rem 1.428rem;border-left:.285rem solid var(--category-color, #97a0af);cursor:pointer}.category-container.selected{background-color:#f4f5f7}.search-box{width:19.857rem;margin-bottom:.857rem;margin-left:.428rem}.search-box .ant-input.ant-input-lg{height:2.285rem}.template-icon.cap-icon-v2{font-size:.929rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button{border-left:.285rem solid var(--category-color, #97a0af)}.strategy-template .strategy-template-radio-root .strategy-template-radio-button.template-disabled{opacity:.5}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .ant-card.ant-card-bordered{border-left:.285rem solid var(--border-color, #97a0af)}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .card-header-title{max-width:14.286rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .coming-soon-tag{display:none;margin-bottom:.857rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover{opacity:1}.strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .coming-soon-tag{display:inline-flex;height:auto}.strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .card-header-title{margin-right:.143rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button:hover .card-available{max-width:14.286rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container{height:2.857rem;width:2.857rem;border-radius:1.142rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container .strategy-template-radio-div-icon{left:43%;top:21%}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-container .strategy-template-radio-div-icon .cap-icon-v2-add{display:block;margin-left:.071rem;margin-top:.428rem}.strategy-template .strategy-template-radio-root .strategy-template-radio-button .strategy-template-radio-icon-wrapper{width:2.857rem;height:2.857rem;margin-right:.571rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body{display:flex;align-items:center;flex-wrap:wrap;height:auto;padding:.571rem .571rem .285rem .857rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body div.strategy-template-radio-content-container{width:14.5rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .card-content{max-height:3.214rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .card-header-row{width:14.857rem;flex-flow:nowrap;align-items:center}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .custom-template{margin-left:.571rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .custom-template .title-desc-container{width:14rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon{display:flex;align-items:center;justify-content:center;height:2.857rem;width:2.857rem;margin-top:-0.571rem;margin-left:-0.857rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon svg{width:2.857rem;height:2.857rem}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon .text-label{font-weight:500;text-transform:uppercase}.strategy-template .strategy-template-radio-root .ant-card div.ant-card-body .strategy-icon .selected{color:#fff}.strategy-template-icon-placeholder .strategy-template-radio-div-icon{left:35% !important;top:30% !important}.templates-modal .ant-modal-container{width:52.643rem;height:19.571rem;right:50%;padding:0}.templates-modal .ant-modal-container div.ant-modal-body{padding:1.714rem 1.714rem 1.571rem 1.714rem}.templates-modal .ant-modal-container .modal-image{width:17.357rem;height:15.714rem}.templates-modal .ant-modal-container .modal-info-content{width:28.429rem;margin-right:1.714rem}.templates-modal .ant-modal-container .ant-modal-close-x{margin-top:.571rem}.templates-modal .ant-modal-container .ant-modal-footer{display:none}.styled-cap-card{width:6.571rem;height:6.143rem}.styled-cap-card div.ant-card-head{max-height:2.786rem;min-height:2.786rem;text-align:center;background-color:#e9f0fe}.styled-cap-card div.ant-card-head .ant-card-head-title{padding:.571rem 0}.styled-cap-card div.ant-card-body{height:3.357rem;margin-top:.571rem;padding:.643rem .714rem .428rem .714rem !important;text-align:center}.styled-cap-card .cap-icon svg{height:1.714rem;width:1.714rem;color:#c7d8fb}.premium-icon{margin-left:.285rem;color:#e8bc25}.cap-static-templates-v2-margin-t-4{margin-top:.285rem}.cap-static-templates-v2-margin-t-13{margin-top:.928rem}.cap-static-templates-v2-margin-l-8{margin-left:.571rem}.cap-static-templates-v2-margin-b-8{margin-bottom:.571rem}.cap-static-templates-v2-margin-t-16{margin-top:1.142rem}.cap-static-templates-v2-margin-b-16{margin-bottom:1.142rem}`, ""]);
3167
+ // Exports
3168
+ ___CSS_LOADER_EXPORT___.locals = {
3169
+ "cap-static-templates-v2": `cap-static-templates-v2`,
3170
+ "sidebar": `sidebar`,
3171
+ "templates-and-search-container": `templates-and-search-container`,
3172
+ "templates-container": `templates-container`,
3173
+ "category-container": `category-container`,
3174
+ "selected": `selected`,
3175
+ "search-box": `search-box`,
3176
+ "template-icon": `template-icon`,
3177
+ "cap-icon-v2": `cap-icon-v2`,
3178
+ "strategy-template": `strategy-template`,
3179
+ "strategy-template-radio-root": `strategy-template-radio-root`,
3180
+ "strategy-template-radio-button": `strategy-template-radio-button`,
3181
+ "template-disabled": `template-disabled`,
3182
+ "card-header-title": `card-header-title`,
3183
+ "coming-soon-tag": `coming-soon-tag`,
3184
+ "card-available": `card-available`,
3185
+ "strategy-template-radio-icon-container": `strategy-template-radio-icon-container`,
3186
+ "strategy-template-radio-div-icon": `strategy-template-radio-div-icon`,
3187
+ "cap-icon-v2-add": `cap-icon-v2-add`,
3188
+ "strategy-template-radio-icon-wrapper": `strategy-template-radio-icon-wrapper`,
3189
+ "strategy-template-radio-content-container": `strategy-template-radio-content-container`,
3190
+ "card-content": `card-content`,
3191
+ "card-header-row": `card-header-row`,
3192
+ "custom-template": `custom-template`,
3193
+ "title-desc-container": `title-desc-container`,
3194
+ "strategy-icon": `strategy-icon`,
3195
+ "text-label": `text-label`,
3196
+ "strategy-template-icon-placeholder": `strategy-template-icon-placeholder`,
3197
+ "templates-modal": `templates-modal`,
3198
+ "ant-modal-body": `ant-modal-body`,
3199
+ "modal-image": `modal-image`,
3200
+ "modal-info-content": `modal-info-content`,
3201
+ "ant-modal-close-x": `ant-modal-close-x`,
3202
+ "ant-modal-footer": `ant-modal-footer`,
3203
+ "styled-cap-card": `styled-cap-card`,
3204
+ "ant-card-head": `ant-card-head`,
3205
+ "ant-card-head-title": `ant-card-head-title`,
3206
+ "ant-card-body": `ant-card-body`,
3207
+ "cap-icon": `cap-icon`,
3208
+ "premium-icon": `premium-icon`,
3209
+ "cap-static-templates-v2-margin-t-4": `cap-static-templates-v2-margin-t-4`,
3210
+ "cap-static-templates-v2-margin-t-13": `cap-static-templates-v2-margin-t-13`,
3211
+ "cap-static-templates-v2-margin-l-8": `cap-static-templates-v2-margin-l-8`,
3212
+ "cap-static-templates-v2-margin-b-8": `cap-static-templates-v2-margin-b-8`,
3213
+ "cap-static-templates-v2-margin-t-16": `cap-static-templates-v2-margin-t-16`,
3214
+ "cap-static-templates-v2-margin-b-16": `cap-static-templates-v2-margin-b-16`
3215
+ };
3216
+ module.exports = ___CSS_LOADER_EXPORT___;
3217
+
3218
+
3156
3219
  /***/ }),
3157
3220
 
3158
3221
  /***/ 16805:
@@ -3996,6 +4059,49 @@ var f=__webpack_require__(9206),k=Symbol.for("react.element"),l=Symbol.for("reac
3996
4059
  function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
3997
4060
 
3998
4061
 
4062
+ /***/ }),
4063
+
4064
+ /***/ 21160:
4065
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4066
+
4067
+ "use strict";
4068
+
4069
+
4070
+ exports.__esModule = true;
4071
+ exports["default"] = void 0;
4072
+ var _reactIntl = __webpack_require__(46407);
4073
+ const scope = 'blaze.components.CapStaticTemplates';
4074
+ var _default = exports["default"] = (0, _reactIntl.defineMessages)({
4075
+ strategyTitleMsg: {
4076
+ id: scope + ".strategyTitleMsg",
4077
+ defaultMessage: 'Select the strategy'
4078
+ },
4079
+ strategyDescriptionMsg: {
4080
+ id: scope + ".strategyDescriptionMsg",
4081
+ defaultMessage: 'Use strategy driven pre-defined marketing use-cases or build your own strategy'
4082
+ },
4083
+ comingSoonMsg: {
4084
+ id: scope + ".comingSoonMsg",
4085
+ defaultMessage: 'Coming soon'
4086
+ },
4087
+ blankCategoryLabel: {
4088
+ id: scope + ".blankCategoryLabel",
4089
+ defaultMessage: 'Custom'
4090
+ },
4091
+ blankTemplateLabel: {
4092
+ id: scope + ".blankTemplateLabel",
4093
+ defaultMessage: 'Build from scratch'
4094
+ },
4095
+ blankTemplateDescription: {
4096
+ id: scope + ".blankTemplateDescription",
4097
+ defaultMessage: 'Create your own journey from scratch'
4098
+ },
4099
+ searchPlaceholderMsg: {
4100
+ id: scope + ".searchPlaceholderMsg",
4101
+ defaultMessage: 'Search strategy'
4102
+ }
4103
+ });
4104
+
3999
4105
  /***/ }),
4000
4106
 
4001
4107
  /***/ 21549:
@@ -4392,6 +4498,58 @@ ___CSS_LOADER_EXPORT___.locals = {
4392
4498
  module.exports = ___CSS_LOADER_EXPORT___;
4393
4499
 
4394
4500
 
4501
+ /***/ }),
4502
+
4503
+ /***/ 22882:
4504
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4505
+
4506
+ "use strict";
4507
+ __webpack_require__.r(__webpack_exports__);
4508
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4509
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4510
+ /* harmony export */ });
4511
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
4512
+ /* 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__);
4513
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
4514
+ /* 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__);
4515
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
4516
+ /* 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__);
4517
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
4518
+ /* 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__);
4519
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
4520
+ /* 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__);
4521
+ /* 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__(16205);
4522
+ /* 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__);
4523
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
4524
+ /* 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__]
4525
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
4526
+
4527
+
4528
+
4529
+
4530
+
4531
+
4532
+
4533
+
4534
+
4535
+
4536
+
4537
+ var options = {};
4538
+
4539
+ ;
4540
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
4541
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
4542
+ options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
4543
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
4544
+
4545
+ 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);
4546
+
4547
+
4548
+
4549
+
4550
+ /* 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);
4551
+
4552
+
4395
4553
  /***/ }),
4396
4554
 
4397
4555
  /***/ 23333:
@@ -5791,22 +5949,22 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
5791
5949
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
5792
5950
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
5793
5951
  // Module
5794
- ___CSS_LOADER_EXPORT___.push([module.id, `.capRadioCardV2 .radioCardContentContainer{width:100%}.capRadioCardV2 .radioCardContent,.capRadioCardV2 .radioCardHeader{font-size:.857rem;line-height:1.17;letter-spacing:normal;color:#5e6c84;padding-top:.285rem}.capRadioCardV2 .radioCardIcon{width:3.429rem;height:3.429rem;object-fit:contain;margin-right:1.714rem}.capRadioCardV2 .radioCardChecked{position:absolute;right:-0.429rem;top:-0.857rem;display:none}.capRadioCardV2 .ant-radio-button-wrapper-checked .radioCardChecked{display:block;z-index:1}.capRadioCardV2 .divIcon{position:absolute;top:25%;left:25%}.capRadioCardV2 .iconContainer{padding-right:1.714rem;height:3.429rem;width:3.429rem;background-color:#dfe2e7;background-size:cover;text-decoration:none;display:inline-block;border-radius:1.286rem;position:relative}.capRadioCardV2 .iconContainer.greenColor{background-color:#47af46;color:#fff}.capRadioCardV2 .radioButtonWrapper{position:relative;height:120px;width:372px;border-radius:.285rem;background-color:#fff;margin:.428rem;padding:0;border-top-width:1px;vertical-align:top}.capRadioCardV2 .disabledWrapper{opacity:.5}.capRadioCardV2 .disabledWrapper.customDisableRadioButton{border:unset;max-height:5.357rem}.capRadioCardV2 .disabledWrapper.customDisableRadioButton .radioCardChecked{display:none}.capRadioCardV2 .disabledWrapper.customDisableRadioButton .ant-card-body{padding:unset}.capRadioCardV2 .customDisableRadioButton{border:unset;max-height:5.357rem}.capRadioCardV2 .customDisableRadioButton .ant-card-body{padding:unset}.capRadioCardV2 .ant-card-body{display:flex;padding:1.142rem;height:100%;position:relative}.capRadioCardV2 .infoIconWrapper{position:absolute;top:1.142rem;right:1.142rem}.capRadioCardV2 .ant-card{height:100%;border:none}.capRadioCardV2.smallRadioCard .iconContainer{padding-right:unset;background-color:unset}.capRadioCardV2.smallRadioCard .radioCardIcon{height:1.428rem;width:1.714rem}.capRadioCardV2.smallRadioCard .divIcon{top:0%;left:0%}.capRadioCardV2.smallRadioCard .radioButtonWrapper{margin:.428rem .857rem .428rem 0}.capRadioCardV2.smallRadioCard .radioButtonWrapper:nth-child(3n){margin-right:0}.capRadioCardV2.smallRadioCard .ant-card-body{padding:.857rem;height:48px}`, ""]);
5952
+ ___CSS_LOADER_EXPORT___.push([module.id, `.cap-radioCard-v2 .radio-card-content-container{width:100%}.cap-radioCard-v2 .radio-card-content,.cap-radioCard-v2 .radio-card-header{font-size:.857rem;line-height:1.17;letter-spacing:normal;color:#5e6c84;padding-top:.285rem}.cap-radioCard-v2 .radio-card-icon{width:3.429rem;height:3.429rem;object-fit:contain;margin-right:1.714rem}.cap-radioCard-v2 .radio-card-checked{position:absolute;right:-0.429rem;top:-0.857rem;display:none}.cap-radioCard-v2 .ant-radio-button-wrapper-checked .radio-card-checked{display:block;z-index:1}.cap-radioCard-v2 .div-icon{position:absolute;top:25%;left:25%}.cap-radioCard-v2 .icon-container{padding-right:1.714rem;height:3.429rem;width:3.429rem;background-color:#dfe2e7;background-size:cover;text-decoration:none;display:inline-block;border-radius:1.286rem;position:relative}.cap-radioCard-v2 .icon-container.green-color{background-color:#47af46;color:#fff}.cap-radioCard-v2 .radio-button-wrapper{position:relative;height:120px;width:372px;border-radius:.285rem;background-color:#fff;margin:.428rem;padding:0;border-top-width:1px;vertical-align:top}.cap-radioCard-v2 .disabled-wrapper{opacity:.5}.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button{border:unset;max-height:5.357rem}.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .radio-card-checked{display:none}.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .ant-card-body{padding:unset}.cap-radioCard-v2 .custom-disable-radio-button{border:unset;max-height:5.357rem}.cap-radioCard-v2 .custom-disable-radio-button .ant-card-body{padding:unset}.cap-radioCard-v2 .ant-card-body{display:flex;padding:1.142rem;height:100%;position:relative}.cap-radioCard-v2 .info-icon-wrapper{position:absolute;top:1.142rem;right:1.142rem}.cap-radioCard-v2 .ant-card{height:100%;border:none}.cap-radioCard-v2.smallRadioCard .icon-container{padding-right:unset;background-color:unset}.cap-radioCard-v2.smallRadioCard .radio-card-icon{height:1.428rem;width:1.714rem}.cap-radioCard-v2.smallRadioCard .div-icon{top:0%;left:0%}.cap-radioCard-v2.smallRadioCard .radio-button-wrapper{margin:.428rem .857rem .428rem 0}.cap-radioCard-v2.smallRadioCard .radio-button-wrapper:nth-child(3n){margin-right:0}.cap-radioCard-v2.smallRadioCard .ant-card-body{padding:.857rem;height:48px}`, ""]);
5795
5953
  // Exports
5796
5954
  ___CSS_LOADER_EXPORT___.locals = {
5797
- "capRadioCardV2": `capRadioCardV2`,
5798
- "radioCardContentContainer": `radioCardContentContainer`,
5799
- "radioCardContent": `radioCardContent`,
5800
- "radioCardHeader": `radioCardHeader`,
5801
- "radioCardIcon": `radioCardIcon`,
5802
- "radioCardChecked": `radioCardChecked`,
5803
- "divIcon": `divIcon`,
5804
- "iconContainer": `iconContainer`,
5805
- "greenColor": `greenColor`,
5806
- "radioButtonWrapper": `radioButtonWrapper`,
5807
- "disabledWrapper": `disabledWrapper`,
5808
- "customDisableRadioButton": `customDisableRadioButton`,
5809
- "infoIconWrapper": `infoIconWrapper`,
5955
+ "cap-radioCard-v2": `cap-radioCard-v2`,
5956
+ "radio-card-content-container": `radio-card-content-container`,
5957
+ "radio-card-content": `radio-card-content`,
5958
+ "radio-card-header": `radio-card-header`,
5959
+ "radio-card-icon": `radio-card-icon`,
5960
+ "radio-card-checked": `radio-card-checked`,
5961
+ "div-icon": `div-icon`,
5962
+ "icon-container": `icon-container`,
5963
+ "green-color": `green-color`,
5964
+ "radio-button-wrapper": `radio-button-wrapper`,
5965
+ "disabled-wrapper": `disabled-wrapper`,
5966
+ "custom-disable-radio-button": `custom-disable-radio-button`,
5967
+ "info-icon-wrapper": `info-icon-wrapper`,
5810
5968
  "smallRadioCard": `smallRadioCard`
5811
5969
  };
5812
5970
  module.exports = ___CSS_LOADER_EXPORT___;
@@ -7959,86 +8117,6 @@ var _default = exports["default"] = SvgThreeStarDark;
7959
8117
 
7960
8118
  /***/ }),
7961
8119
 
7962
- /***/ 39867:
7963
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7964
-
7965
- "use strict";
7966
-
7967
-
7968
- exports.__esModule = true;
7969
- exports.TemplatesModal = exports.TemplatesContainer = exports.TemplatesAndSearchContainer = exports.TemplateIcon = exports.StyledDiv = exports.StyledCapCard = exports.StrategyTemplate = exports.SideBar = exports.SearchBox = exports.PremiumIcon = exports.CategoryContainer = void 0;
7970
- var _styledComponents = _interopRequireDefault(__webpack_require__(76480));
7971
- var _CapCard = _interopRequireDefault(__webpack_require__(10841));
7972
- var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
7973
- var _CapInput = _interopRequireDefault(__webpack_require__(15773));
7974
- var _CapModal = _interopRequireDefault(__webpack_require__(7442));
7975
- var _CapRadioCard = _interopRequireDefault(__webpack_require__(46866));
7976
- var _CapRow = _interopRequireDefault(__webpack_require__(69813));
7977
- var _variables = __webpack_require__(56587);
7978
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1;
7979
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7980
- function _taggedTemplateLiteralLoose(e, t) { return t || (t = e.slice(0)), e.raw = t, e; }
7981
- const StyledDiv = exports.StyledDiv = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: nowrap;\n min-width: 85vw;\n"])));
7982
- const SideBar = exports.SideBar = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n width: 258px;\n margin-right: 17px;\n border: 1px solid ", ";\n"])), _variables.CAP_G07);
7983
- const TemplatesAndSearchContainer = exports.TemplatesAndSearchContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n width: ", ";\n"])), props => props.width);
7984
- const TemplatesContainer = exports.TemplatesContainer = (0, _styledComponents.default)(_CapRow.default)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n max-height: ", ";\n overflow-y: scroll;\n scroll-behavior: smooth;\n"])), props => props == null ? void 0 : props.maxHeight);
7985
- const CategoryContainer = exports.CategoryContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: ", ";\n background-color: ", ";\n padding: ", " ", " ", " ", ";\n border-left: ", ";\n cursor: pointer;\n"])), _variables.CAP_SPACE_40, props => (props == null ? void 0 : props.selected) && _variables.CAP_G09, _variables.CAP_SPACE_12, _variables.CAP_SPACE_16, _variables.CAP_SPACE_12, _variables.CAP_SPACE_20, props => "4px solid " + ((props == null ? void 0 : props.color) || _variables.CAP_G05));
7986
- const SearchBox = exports.SearchBox = (0, _styledComponents.default)(_CapInput.default.Search)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n .ant-input.ant-input-lg {\n height: ", ";\n }\n width: 278px;\n margin-bottom: ", ";\n margin-left: 6px;\n"])), _variables.CAP_SPACE_32, _variables.CAP_SPACE_12);
7987
- const TemplateIcon = exports.TemplateIcon = (0, _styledComponents.default)(_CapIcon.default)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n &.cap-icon-v2 {\n font-size: 13px;\n }\n"])));
7988
- const StrategyTemplate = exports.StrategyTemplate = (0, _styledComponents.default)(_CapRadioCard.default)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n &.ant-radio-group {\n .ant-radio-button-wrapper {\n &.template-disabled {\n opacity: 0.5;\n }\n .ant-card.ant-card-bordered {\n border-left: ", ";\n }\n .card-header-title {\n max-width: 200px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n .coming-soon-tag {\n display: none;\n }\n :hover {\n opacity: 1;\n .coming-soon-tag {\n display: inline-flex;\n height: auto;\n }\n .card-header-title {\n margin-right: 2px;\n }\n .card-available {\n max-width: 200px;\n }\n }\n .icon-container {\n height: ", ";\n width: ", ";\n border-radius: ", ";\n .div-icon {\n left: 32%;\n top: 21%;\n .cap-icon-v2-add {\n display: block;\n margin-left: 1px;\n margin-top: 6px;\n }\n }\n }\n .radio-card-icon {\n width: ", ";\n height: ", ";\n margin-right: ", ";\n }\n }\n .ant-card {\n div.ant-card-body {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n height: auto;\n padding: ", " ", " ", " ", ";\n div.radio-card-content-container {\n width: 203px;\n }\n .card-content {\n max-height: 45px;\n }\n .card-header-row {\n width: 208px;\n flex-flow: nowrap;\n }\n .custom-template {\n margin-left: ", ";\n .title-desc-container {\n width: 196px;\n }\n }\n .strategy-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n width: ", ";\n margin-top: -8px;\n margin-left: -12px;\n svg {\n width: ", ";\n height: ", ";\n }\n .text-label {\n font-weight: 500;\n text-transform: uppercase;\n }\n .selected {\n color: ", ";\n }\n }\n }\n }\n }\n"])), props => "4px solid " + ((props == null ? void 0 : props.borderColor) || _variables.CAP_G05), _variables.CAP_SPACE_40, _variables.CAP_SPACE_40, _variables.CAP_SPACE_16, _variables.CAP_SPACE_40, _variables.CAP_SPACE_40, _variables.CAP_SPACE_08, _variables.CAP_SPACE_08, _variables.CAP_SPACE_08, _variables.CAP_SPACE_04, _variables.CAP_SPACE_12, _variables.CAP_SPACE_08, _variables.CAP_SPACE_40, _variables.CAP_SPACE_40, _variables.CAP_SPACE_40, _variables.CAP_SPACE_40, _variables.CAP_WHITE);
7989
- const TemplatesModal = exports.TemplatesModal = (0, _styledComponents.default)(_CapModal.default)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n .ant-modal-content {\n width: 737px;\n height: 274px;\n right: 50%;\n div.ant-modal-body {\n padding: 24px 24px 22px 24px;\n }\n .modal-image {\n width: 243px;\n height: 220px;\n }\n .modal-info-content {\n width: 398px;\n margin-right: ", ";\n }\n .ant-modal-close-x {\n margin-top: ", ";\n }\n .ant-modal-footer {\n display: none;\n }\n }\n"])), _variables.CAP_SPACE_24, _variables.CAP_SPACE_08);
7990
- const StyledCapCard = exports.StyledCapCard = (0, _styledComponents.default)(_CapCard.default)(_templateObject0 || (_templateObject0 = _taggedTemplateLiteralLoose(["\n &.ant-card.cap-card-v2 {\n width: 92px;\n height: 86px;\n div.ant-card-head {\n max-height: 39px;\n min-height: 39px;\n text-align: center;\n background-color: ", ";\n .ant-card-head-title {\n padding: ", " 0;\n }\n }\n div.ant-card-body {\n height: 47px;\n margin-top: ", ";\n padding: 9px 10px 6px 10px;\n text-align: center;\n }\n .cap-icon-v2 {\n svg {\n height: ", ";\n width: ", ";\n color: #c7d8fb;\n }\n }\n }\n"])), _variables.CAP_PALE_GREY, _variables.CAP_SPACE_08, _variables.CAP_SPACE_08, _variables.CAP_SPACE_24, _variables.CAP_SPACE_24);
7991
- const PremiumIcon = exports.PremiumIcon = (0, _styledComponents.default)(_CapIcon.default)(_templateObject1 || (_templateObject1 = _taggedTemplateLiteralLoose(["\n margin-left: ", ";\n color: ", ";\n"])), _variables.CAP_SPACE_04, _variables.CAP_YELLOW01);
7992
-
7993
- /***/ }),
7994
-
7995
- /***/ 39879:
7996
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7997
-
7998
- "use strict";
7999
-
8000
-
8001
- exports.__esModule = true;
8002
- exports["default"] = void 0;
8003
- var _react = _interopRequireWildcard(__webpack_require__(9206));
8004
- var _reactIntl = __webpack_require__(46407);
8005
- var _en = _interopRequireDefault(__webpack_require__(49540));
8006
- var _jsxRuntime = __webpack_require__(74848);
8007
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8008
- 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); }
8009
- 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); }
8010
- const prefix = "app.commonUtils.capUiLibrary";
8011
- const LocaleHoc = (WrapperComponent, customProps) => {
8012
- const Wrapper = props => {
8013
- const componentName = customProps.key;
8014
- const translatedDefaults = _en.default[componentName];
8015
- const {
8016
- intl
8017
- } = props;
8018
- const translatedProps = (0, _react.useMemo)(() => {
8019
- if (!translatedDefaults) return {};
8020
- return Object.keys(translatedDefaults).reduce((acc, key) => {
8021
- const id = prefix + "." + componentName + "." + key;
8022
- const defaultMessage = translatedDefaults[key];
8023
- try {
8024
- acc[key] = intl.formatMessage({
8025
- id,
8026
- defaultMessage
8027
- });
8028
- } catch (_err) {
8029
- acc[key] = defaultMessage;
8030
- }
8031
- return acc;
8032
- }, {});
8033
- }, [translatedDefaults, intl, prefix, componentName]);
8034
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperComponent, _extends({}, translatedProps, props));
8035
- };
8036
- return (0, _reactIntl.injectIntl)(Wrapper);
8037
- };
8038
- var _default = exports["default"] = LocaleHoc;
8039
-
8040
- /***/ }),
8041
-
8042
8120
  /***/ 39958:
8043
8121
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8044
8122
 
@@ -9465,7 +9543,16 @@ class CapRadioCard extends _react.default.Component {
9465
9543
  cardWidth,
9466
9544
  selected,
9467
9545
  defaultValue,
9468
- size
9546
+ size,
9547
+ radioButtonWrapperClassName,
9548
+ checkedIconClassName,
9549
+ iconWrapperClassName,
9550
+ iconContainerClassName,
9551
+ divIconClassName,
9552
+ contentContainerClassName,
9553
+ headerClassName,
9554
+ contentClassName,
9555
+ infoIconWrapperClassName
9469
9556
  } = this.props;
9470
9557
  const {
9471
9558
  content,
@@ -9490,42 +9577,42 @@ class CapRadioCard extends _react.default.Component {
9490
9577
  value: value,
9491
9578
  disabled: disabled,
9492
9579
  style: radioButtonStyle,
9493
- className: (0, _classnames.default)(_styles.default['radioButtonWrapper'], {
9494
- [_styles.default['customDisableRadioButton']]: customDisableClass,
9495
- [_styles.default['disabledWrapper']]: disabled
9496
- }, radioCardClassName)
9580
+ className: (0, _classnames.default)(_styles.default['radio-button-wrapper'], {
9581
+ [_styles.default['custom-disable-radio-button']]: customDisableClass,
9582
+ [_styles.default['disabled-wrapper']]: disabled
9583
+ }, radioCardClassName, radioButtonWrapperClassName)
9497
9584
  }, restParams, {
9498
9585
  children: [!customDisableClass && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
9499
9586
  type: "check-filled",
9500
- className: _styles.default['radioCardChecked']
9587
+ className: (0, _classnames.default)(_styles.default['radio-card-checked'], checkedIconClassName)
9501
9588
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antdV.Card, {
9502
9589
  variant: "borderless",
9503
9590
  children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9504
- className: _styles.default['radioCardIcon'],
9591
+ className: (0, _classnames.default)(_styles.default['radio-card-icon'], iconWrapperClassName),
9505
9592
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9506
- className: (0, _classnames.default)(_styles.default['iconContainer'], {
9507
- [_styles.default['greenColor']]: isChecked && !isSmall && !disabled
9508
- }),
9593
+ className: (0, _classnames.default)(_styles.default['icon-container'], {
9594
+ [_styles.default['green-color']]: isChecked && !isSmall && !disabled
9595
+ }, iconContainerClassName),
9509
9596
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9510
- className: _styles.default['divIcon'],
9597
+ className: (0, _classnames.default)(_styles.default['div-icon'], divIconClassName),
9511
9598
  children: icon
9512
9599
  })
9513
9600
  })
9514
9601
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
9515
- className: _styles.default['radioCardContentContainer'],
9602
+ className: (0, _classnames.default)(_styles.default['radio-card-content-container'], contentContainerClassName),
9516
9603
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9517
- className: _styles.default['radioCardHeader'],
9604
+ className: (0, _classnames.default)(_styles.default['radio-card-header'], headerClassName),
9518
9605
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
9519
9606
  type: "h4",
9520
9607
  className: (0, _classnames.default)(titleClassName),
9521
9608
  children: title
9522
9609
  })
9523
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
9524
- className: _styles.default['radioCardContent'],
9525
- children: [" ", content]
9610
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9611
+ className: (0, _classnames.default)(_styles.default['radio-card-content'], contentClassName),
9612
+ children: content
9526
9613
  })]
9527
9614
  }), infoIconDescription && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
9528
- className: _styles.default['infoIconWrapper'],
9615
+ className: (0, _classnames.default)(_styles.default['info-icon-wrapper'], infoIconWrapperClassName),
9529
9616
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
9530
9617
  title: infoIconDescription
9531
9618
  })
@@ -9544,7 +9631,7 @@ class CapRadioCard extends _react.default.Component {
9544
9631
  rest = _objectWithoutPropertiesLoose(_this$props2, _excluded2);
9545
9632
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadioGroup, _extends({}, rest, {
9546
9633
  onChange: this.handleChange,
9547
- className: (0, _classnames.default)(_styles.default['capRadioCardV2'], {
9634
+ className: (0, _classnames.default)(_styles.default['cap-radioCard-v2'], {
9548
9635
  [_styles.default['smallRadioCard']]: size === 'small'
9549
9636
  }, className),
9550
9637
  children: panes && panes.map(pane => /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
@@ -9972,381 +10059,6 @@ function listCacheHas(key) {
9972
10059
  module.exports = listCacheHas;
9973
10060
 
9974
10061
 
9975
- /***/ }),
9976
-
9977
- /***/ 49540:
9978
- /***/ ((__unused_webpack_module, exports) => {
9979
-
9980
- "use strict";
9981
-
9982
-
9983
- exports.__esModule = true;
9984
- exports["default"] = void 0;
9985
- var _default = exports["default"] = {
9986
- CapMultiSelect: {
9987
- noResultsFoundText: 'No results found',
9988
- selectText: 'Select',
9989
- closeText: 'Close',
9990
- searchPlaceholder: 'Search',
9991
- selectedText: 'selected',
9992
- selectAllText: 'Select all',
9993
- selectAllSearchResultsText: 'Select all searched results',
9994
- moreText: 'more'
9995
- },
9996
- CapModal: {
9997
- okText: 'Yes',
9998
- closeText: 'No'
9999
- },
10000
- CapMultiSelectWithTree: {
10001
- noResultsFoundText: 'No results found',
10002
- selectText: 'Select',
10003
- closeText: 'Close',
10004
- searchPlaceholder: 'Search',
10005
- selectedText: 'selected',
10006
- selectAllText: 'Select all',
10007
- selectAllSearchResultsText: 'Select all searched results',
10008
- moreText: 'more',
10009
- storeUploadsText: 'Store IDs are uploaded already'
10010
- },
10011
- CapCustomSelect: {
10012
- searchPlaceholder: 'Search',
10013
- selectPlaceholder: 'Select Option'
10014
- },
10015
- CapMultiSelectDatePicker: {
10016
- lastDayText: 'Last day of month'
10017
- },
10018
- CapTable: {
10019
- loadMoreData: 'Loading more data...'
10020
- },
10021
- CapIllustration: {
10022
- accessForbiddenMsg: 'Action cannot be performed due to insufficient permission'
10023
- },
10024
- CapNavigation: {
10025
- businessProcesses: 'Workbench',
10026
- wecrm: 'Wecrm',
10027
- loyaltyProgram: 'Loyalty+',
10028
- storePerformance: 'Store Performance',
10029
- memberCare: 'Member Care',
10030
- storeCare: 'Store Care',
10031
- insights: 'Insights+',
10032
- connectPlus: 'Connect+',
10033
- settingsLabel: 'Settings',
10034
- campaign: 'Engage+',
10035
- selectOrganization: 'Select Organization',
10036
- organization: 'Organization',
10037
- noResultText: 'No results found',
10038
- selectProduct: 'Select Product'
10039
- },
10040
- InfoNote: {
10041
- noteText: 'Note'
10042
- },
10043
- SomethingWentWrong: {
10044
- title: 'Sorry, something went wrong.',
10045
- description: 'Please try again. If this issue occurs again, please reach out to Capillary support team.',
10046
- reloadText: 'Try refreshing again'
10047
- },
10048
- CapBlock: {
10049
- deleteBlockMsg: 'Delete',
10050
- expandBlockMsg: 'Expand',
10051
- collapseBlockMsg: 'Collapse'
10052
- },
10053
- CapMultiplePath: {
10054
- notUniqueMsg: 'Not Unique',
10055
- deleteConfirmationTitleMsg: 'Confirm delete path',
10056
- deleteConfirmationTextMsg: 'Are you sure you wish to delete path',
10057
- deleteConfirmationWarningMsg: 'This action cannot be undone.',
10058
- deleteButtonTextMsg: 'Yes, Delete',
10059
- yesMsg: 'Yes',
10060
- noMsg: 'No',
10061
- pathMsg: 'Path',
10062
- addPathMessage: 'Add Path'
10063
- },
10064
- CapCondition: {
10065
- includeMsg: 'include',
10066
- excludeMsg: 'exclude',
10067
- equalMsg: 'equal to',
10068
- greaterThanMsg: 'greater than',
10069
- lessThanMsg: 'less than',
10070
- greaterThanOrEqualMsg: 'greater than or equal to',
10071
- lessThanorEqualMsg: 'less than or equal',
10072
- inRangeMsg: 'in range',
10073
- notEqualMsg: 'not equal to',
10074
- whoseMsg: 'Whose',
10075
- isMsg: 'is',
10076
- andMsg: 'and',
10077
- ANDMsg: 'AND',
10078
- containsMsg: 'contains',
10079
- startsWithMsg: 'starts with',
10080
- endsWithMsg: 'ends with',
10081
- exactMsg: 'exact',
10082
- conditionStringInputPlaceholderMsg: 'Enter min. 3 characters',
10083
- lineItemMsg: 'only for lineitems with',
10084
- withMsg: 'with',
10085
- additionalFieldsMsg: 'Additional condition',
10086
- plusMinus: '+/-',
10087
- inMsg: 'in',
10088
- notInMsg: 'not in',
10089
- uploadFailedError: 'Upload failed',
10090
- uploadLimitExceeded: 'Please do not upload more than 1000 store codes',
10091
- uploadReqLoader: 'Uploading stores',
10092
- or: 'OR',
10093
- search: 'Search',
10094
- searchWithExact: 'Search with exact keyword',
10095
- customFieldsTag: 'custom fields',
10096
- storeSearchMsg: 'Enter min. 3 characters to search',
10097
- uploadInProgressMsg: 'Upload in progress',
10098
- unsupportedCsvHeaderMsg: "The CSV header must be 'Store code' or 'Store id'",
10099
- csvFileNoEntryTxt: 'Please upload a file with atleast one entry',
10100
- downloadedMsg: 'downloaded',
10101
- reuploadFileMsg: 'Reupload file',
10102
- storeIdsMsg: 'Store IDs',
10103
- downloadStoreIdMsg: 'Download Store ID',
10104
- downloadStoreIdCodeNameMsg: 'Download Store ID, code & name',
10105
- downloadInProgressMsg: 'Download in progress, might take a while',
10106
- onMsg: 'on',
10107
- beforeMsg: 'before',
10108
- afterMsg: 'after',
10109
- xDaysBeforeMsg: 'x days before',
10110
- xDaysAfterMsg: 'x days after',
10111
- betweenMsg: 'between',
10112
- specificDateLabel: 'specific date',
10113
- eventDateAttributeLabel: 'Event date attribute',
10114
- entryTriggerLabel: 'Entry trigger',
10115
- waitTillEventLabel: 'Wait till event',
10116
- andLabel: 'and',
10117
- beforeLabel: 'before',
10118
- afterLabel: 'after',
10119
- daysSuffix: 'days',
10120
- loadingTip: 'Loading...',
10121
- specificDateToolTip: "Specific date cannot be selected for 'x days before/after'"
10122
- },
10123
- CapConditionPreview: {
10124
- includeMsg: 'Include',
10125
- excludeMsg: 'Exclude',
10126
- equalMsg: 'equal to',
10127
- greaterThanMsg: 'greater than',
10128
- lessThanMsg: 'less than',
10129
- greaterThanOrEqualMsg: 'greater than or equal to',
10130
- lessThanorEqualMsg: 'less than or equal',
10131
- inRangeMsg: 'in range',
10132
- notEqualMsg: 'not equal to',
10133
- whoseMsg: 'whose',
10134
- isMsg: 'is',
10135
- andMsg: 'and',
10136
- ANDMsg: 'AND',
10137
- lineItemMsg: 'only for lineitems with',
10138
- withMsg: 'with',
10139
- addedSKUsMsg: 'Added SKUs',
10140
- skuFileName: 'SKU.csv',
10141
- uploadedMsg: 'uploaded',
10142
- inMsg: 'in',
10143
- notInMsg: 'not in',
10144
- storesMsg: 'Stores',
10145
- viewMoreMsg: 'View more',
10146
- uploadInProgressMsg: 'Upload in progress',
10147
- uploadFailedErrorMsg: 'Upload failed',
10148
- uploadInvalidErrorMsg: 'Invalid file uploaded'
10149
- },
10150
- CapPopoverTree: {
10151
- emptyDataMessage: 'No data found',
10152
- searchPlaceholder: 'Search'
10153
- },
10154
- CapGraphBlockNode: {
10155
- configureText: 'Configure',
10156
- replaceEngagementBlockMsg: 'Replace engagement block'
10157
- },
10158
- CapStaticTemplates: {
10159
- strategyTitleMsg: 'Select the strategy',
10160
- strategyDescriptionMsg: 'Use strategy driven pre-defined marketing use-cases or build your own strategy',
10161
- comingSoonMsg: 'Coming soon',
10162
- blankCategoryLabel: 'Custom',
10163
- blankTemplateLabel: 'Build from scratch',
10164
- blankTemplateDescription: 'Create your own journey from scratch',
10165
- searchPlaceholderMsg: 'Search strategy'
10166
- },
10167
- CapProductSelection: {
10168
- lineItem: 'Line items',
10169
- selectAttribute: 'Select Attribute',
10170
- brand: 'Brand',
10171
- brandInfo: 'Brand',
10172
- category: 'Category',
10173
- categoryInfo: 'Category',
10174
- product: 'Product',
10175
- productInfo: 'Product',
10176
- SKU: 'SKU',
10177
- uploadSKU: 'Upload SKU',
10178
- uploadSKUInfo: 'Upload SKU',
10179
- changeSelection: 'Change the selection',
10180
- description: 'Changing the attribute of additional condition will result in lose of previously defined additional condition',
10181
- okText: 'Yes, change',
10182
- cancelText: 'Cancel',
10183
- comingSoon: 'Coming soon',
10184
- selectValues: 'Select value(s)',
10185
- atleast1Attribute: 'At least 1 attribute is required'
10186
- },
10187
- CapTruncateList: {
10188
- more: 'more'
10189
- },
10190
- CapSKUUploader: {
10191
- validatingSKUs: 'Validating SKUs',
10192
- invalid: 'invalid',
10193
- invalidSKUs: 'Invalid SKUs',
10194
- valid: 'valid',
10195
- addedSKUsMsg: 'Added SKUs',
10196
- skuFileName: 'SKU.csv',
10197
- invalidSKUFilename: 'invalidSKU.csv',
10198
- uploadedMsg: 'uploaded'
10199
- },
10200
- CapDndGraph: {
10201
- deleteBlockModalHeaderText: 'Delete block',
10202
- deleteBlockModalDescriptionText: 'Are you sure you want to delete this block?',
10203
- yesDeleteButtonText: 'Yes, delete',
10204
- noButtonText: 'No',
10205
- joinDropErrorText: 'Join block can only be added at the end of the path',
10206
- jumpDropErrorText: 'Jump block can only be added at the end of the path',
10207
- theText: 'The',
10208
- endText: 'End',
10209
- blockIsLinkedText: 'block is linked to the',
10210
- blockText: 'block.',
10211
- disconnectText: 'Deleting this block will disconnect the join.',
10212
- areYouSureText: 'Are you sure?'
10213
- },
10214
- CapDragAndDrop: {
10215
- dropboxtext: 'Drop here!',
10216
- selectFilesText: 'Select files from your computer',
10217
- invalidFileSelectionText: 'Invalid file selection!',
10218
- or: 'OR',
10219
- droptext: 'Drag and drop files'
10220
- },
10221
- CapRoadMap: {
10222
- defaultRoadMapDisabledMessage: 'Not configured yet'
10223
- },
10224
- CapTimelineCard: {
10225
- defaultConfiguringMessage: 'Configuring...',
10226
- defaultNotConfiguredMessage: 'Not configured yet...',
10227
- toConfigure: 'To configure ',
10228
- completePrevSteps: ' complete the previous steps.'
10229
- },
10230
- CapTimelineNestedCard: {
10231
- defaultConfiguringMessage: 'Configuring...',
10232
- defaultNotConfiguredMessage: 'Not configured yet...',
10233
- toConfigure: 'To configure ',
10234
- completePrevSteps: ' complete the previous steps.'
10235
- },
10236
- NestedCardParent: {
10237
- defaultNestedTitle: 'Triggers',
10238
- toConfigure: 'To configure ',
10239
- completePrevSteps: ' complete the previous steps.'
10240
- },
10241
- 'CapAskAira.DocumentationBot': {
10242
- textAskYourQuestion: 'Ask your question here',
10243
- textVisitDocs: 'Visit Capillary Documentation',
10244
- textNeedHelp: 'Need more help?',
10245
- textHowMayIHelp: 'How may AI help you?',
10246
- textAira: 'aiRA Documentation Bot',
10247
- textLinks: 'Links',
10248
- textWasHelpful: 'Was this response helpful?',
10249
- textConfidence: 'confidence',
10250
- textTooltip: 'Need help? Ask aiRA',
10251
- textCantConnect: "Can't connect to the server."
10252
- },
10253
- 'CapAskAira.RuleGenerationBot': {
10254
- textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
10255
- textError: 'An error occurred while generating rule. Try again.',
10256
- textAiraTitle: 'aiRA Rule Generation',
10257
- textAiraTooltip: 'aiRA, our proprietary AI tool, generates rule expressions based on text query.',
10258
- textCopy: 'Copy',
10259
- textCopied: 'Copied',
10260
- textRulePlaceholder: 'Enter query...',
10261
- textRuleLoading: 'Rule is loading... Hang tight!',
10262
- textThank: 'Thank you for your response!',
10263
- textWarn: 'aiRA responses may be inaccurate or misleading. Help us to improve!',
10264
- textAddCommentPlaceholder: 'Add comment'
10265
- },
10266
- 'CapAskAira.ContentGenerationBot': {
10267
- textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
10268
- textRecommendationsLoading: 'Recommendations loading... Hang tight!',
10269
- textError: 'An error occurred while loading recommendations. Try again.',
10270
- textAiraTitle: 'aiRA Content Recommendations',
10271
- textAiraTooltip: 'aiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.',
10272
- textLoading: 'loading...',
10273
- textCharacters: 'characters',
10274
- textReplaceWithThis: 'Replace with this',
10275
- textReplaced: 'Replaced',
10276
- textResetToDefault: 'Reset to default',
10277
- textMoreLikeThis: 'More like this',
10278
- textGenerateMore: 'Generate more'
10279
- },
10280
- 'CapAskAira.ConfigurationBot': {
10281
- textAiraTitle: 'aiRA Configuration Bot',
10282
- textAiraTooltip: 'aiRA, our proprietary AI tool, helps you configure promotions, campaigns, and more.',
10283
- textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
10284
- textUser: 'Hello!',
10285
- textPilot: "I'm your Copilot. I can create all type of promotions (milestones, streaks, etc.) on your behalf. Meanwhile, you can sit back, relax, and enjoy a cup of chai.",
10286
- textCouponTile: 'Milestone on GS',
10287
- textCouponDescription: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.',
10288
- textPromotionTitle: 'Milestone on count',
10289
- textPromotionDescription: 'Eligible customers get points on every 5 transactions.',
10290
- textStreakTitle: 'Reward on referral',
10291
- textStreakDescription: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.',
10292
- textPromptHere: 'Enter a prompt here...',
10293
- textCouponPrompt: 'If customer does 1000 gross sales in a month, award them 100 points that expire in 20 days. Promotion runs from 1 July to 1 December.',
10294
- textPromotionPrompt: 'After every 5 transactions I want to award customer with 200 points. Only customers with more than 2000 lifetime points are eligible. Promotion runs from 1 July to 1 December',
10295
- textStreakPrompt: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. ',
10296
- textCantConnect: "Can't connect to the server.",
10297
- textCreate: 'Create',
10298
- textCancel: 'Cancel',
10299
- textGeneratingResponse: 'Generating response'
10300
- },
10301
- 'CapAskAira.DocumentationChatBot': {
10302
- textBotPlaceholder: 'Ask aiRA about anything on our CRM platform',
10303
- textChatBotLoader: 'Hang tight, analyzing your query...',
10304
- textChatBotDesc: 'Ask any doubts about our CRM platform and aiRA will do its best to find answers',
10305
- textChatBot: 'Documentation Chat Bot'
10306
- },
10307
- 'CapAskAira.CapAiMediaGeneration': {
10308
- textImageBotPlaceholder: 'Ask aiRA to generate an image',
10309
- textChatBotLoader: 'Hang tight, analyzing your query...',
10310
- textImageBotDesc: 'Enter a prompt that describes your image.',
10311
- textImageBot: 'aiRA Media Generator',
10312
- textImageFooter: 'Dragging and dropping generated images is only supported in the basic email builder.',
10313
- textTipsGenerate: 'Tips to generate better images:',
10314
- textCopy: 'Copy image',
10315
- textCopied: 'Copied',
10316
- textDownload: 'Download',
10317
- textImageDownload: 'Image downloaded successfully!',
10318
- textComingSoon: 'Coming soon',
10319
- textGenerateMore: 'Generate more'
10320
- },
10321
- 'CapAskAira.RuleSummarizationBot': {
10322
- textRuleBotPlaceholder: 'Ask aiRA to write an expression',
10323
- textSummarizeBotPlaceholder: 'Ask aiRA to explain an expression',
10324
- textRuleChatBotLoader: 'Hang tight, analyzing your query...',
10325
- textRuleChatBotDesc: 'Write your detailed rule in simple english and aiRA will write the expression for you',
10326
- textSummarizeChatBotDesc: 'Enter the expression and aiRA will generate a summary in plain english',
10327
- textRuleChatBot: 'aiRA Expression Translator'
10328
- },
10329
- 'CapAskAira.AudienceFilterBot': {
10330
- textNeedHelp: 'Need help choosing the right filters?',
10331
- textAskAiraLink: 'Ask aiRA to apply filters',
10332
- textDescribeAudience: 'Describe your audience',
10333
- textPlaceholder: 'e.g.: Filter customers who have made a purchase in the last 7 days',
10334
- textError: 'Something went wrong, please try again',
10335
- textThoughtProcess: 'Thought Process',
10336
- textFiltersAdded: 'Filters added below',
10337
- textAnalyzing: 'Analyzing your query...',
10338
- textPartialFiltersAdded: 'Rest of the filters added below',
10339
- textFeedbackTitle: 'Give feedback',
10340
- textFeedbackOptional: '(Optional)',
10341
- textFeedbackMessage: 'Let us know what was wrong with the results',
10342
- textFeedbackPlaceholder: 'Share your feedback',
10343
- textFeedbackSubmit: 'Submit',
10344
- textFeedbackCancel: 'Cancel',
10345
- textThankYouFeedback: 'Thank you for your feedback!',
10346
- textThankYouDetailedFeedback: 'Thank you for your detailed feedback!'
10347
- }
10348
- };
10349
-
10350
10062
  /***/ }),
10351
10063
 
10352
10064
  /***/ 49580:
@@ -16748,14 +16460,6 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
16748
16460
  /* 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);
16749
16461
 
16750
16462
 
16751
- /***/ }),
16752
-
16753
- /***/ 76480:
16754
- /***/ ((module) => {
16755
-
16756
- "use strict";
16757
- module.exports = require("styled-components");
16758
-
16759
16463
  /***/ }),
16760
16464
 
16761
16465
  /***/ 76903:
@@ -20748,23 +20452,26 @@ exports.__esModule = true;
20748
20452
  exports["default"] = void 0;
20749
20453
  var _classnames = _interopRequireDefault(__webpack_require__(46942));
20750
20454
  var _debounce = _interopRequireDefault(__webpack_require__(38221));
20751
- var _propTypes = _interopRequireDefault(__webpack_require__(43363));
20752
20455
  var _react = _interopRequireWildcard(__webpack_require__(9206));
20456
+ var _reactIntl = __webpack_require__(46407);
20753
20457
  var _group = _interopRequireDefault(__webpack_require__(67636));
20458
+ var _CapCard = _interopRequireDefault(__webpack_require__(10841));
20754
20459
  var _CapColoredTag = _interopRequireDefault(__webpack_require__(22029));
20755
20460
  var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
20756
20461
  var _CapHeader = _interopRequireDefault(__webpack_require__(93140));
20757
20462
  var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
20758
20463
  var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
20759
20464
  var _CapImage = _interopRequireDefault(__webpack_require__(84446));
20465
+ var _CapInput = _interopRequireDefault(__webpack_require__(15773));
20760
20466
  var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
20467
+ var _CapModal = _interopRequireDefault(__webpack_require__(7442));
20468
+ var _CapRadioCard = _interopRequireDefault(__webpack_require__(46866));
20761
20469
  var _CapRow = _interopRequireDefault(__webpack_require__(69813));
20762
20470
  var _CapSpin = _interopRequireDefault(__webpack_require__(56543));
20763
20471
  var _CapTooltip = _interopRequireDefault(__webpack_require__(85684));
20764
- var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
20765
- var _variables = __webpack_require__(56587);
20766
20472
  var _constants = __webpack_require__(14423);
20767
- var _style = __webpack_require__(39867);
20473
+ var _messages = _interopRequireDefault(__webpack_require__(21160));
20474
+ var _styles = _interopRequireDefault(__webpack_require__(22882));
20768
20475
  var _jsxRuntime = __webpack_require__(74848);
20769
20476
  const _excluded = ["value", "key", "label", "description", "icon", "isAvailable", "isBlankTemplate"];
20770
20477
  /**
@@ -20772,59 +20479,65 @@ const _excluded = ["value", "key", "label", "description", "icon", "isAvailable"
20772
20479
  * CapStaticTemplates
20773
20480
  *
20774
20481
  */
20482
+ // @ts-ignore - SCSS module types are declared in types.d.ts and components/styles.d.ts
20775
20483
  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); }
20776
20484
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20777
20485
  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); }
20778
20486
  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; }
20779
20487
  const clsPrefix = 'cap-static-templates-v2';
20780
- function CapStaticTemplates(props) {
20781
- const {
20782
- categories,
20488
+ const CapStaticTemplates = _ref => {
20489
+ let {
20490
+ categories = [],
20783
20491
  className,
20784
- cardWidth,
20785
- cardHeight,
20786
- blankCardWidth,
20787
- blankCardHeight,
20492
+ cardWidth = '278px',
20493
+ cardHeight = '104px',
20494
+ blankCardWidth = '278px',
20495
+ blankCardHeight = '80px',
20788
20496
  selectedCategory,
20789
20497
  onSelectCategory,
20790
20498
  selectedStrategyTemplate,
20791
20499
  onSelectStrategyTemplate,
20792
- isBlankTemplateRequired,
20793
- templatesContainerWidth,
20794
- templatesContainerMaxHeight,
20500
+ isBlankTemplateRequired = false,
20501
+ templatesContainerWidth = '990px',
20502
+ templatesContainerMaxHeight = '400px',
20795
20503
  modalContent,
20796
20504
  searchPlaceholder,
20797
- // Below props are messages form LocaleHoc
20798
- strategyTitleMsg,
20799
- strategyDescriptionMsg,
20800
- comingSoonMsg,
20801
- blankCategoryLabel,
20802
- blankTemplateLabel,
20803
- blankTemplateDescription,
20804
- searchPlaceholderMsg,
20805
- showComingSoon = true
20806
- } = props;
20505
+ showComingSoon = true,
20506
+ intl: {
20507
+ formatMessage
20508
+ }
20509
+ } = _ref;
20807
20510
  const [showModal, setShowModal] = (0, _react.useState)(false);
20808
20511
  const [searchText, setSearchText] = (0, _react.useState)(null);
20809
20512
  const [isSearching, setIsSearching] = (0, _react.useState)(false);
20810
20513
  const [filteredCategories, setFilteredCategories] = (0, _react.useState)([]);
20514
+
20515
+ // Class names for CapRadioCard elements (one per element, same names as CapRadioCard props)
20516
+ const rootClassName = _styles.default['strategy-template-radio-root'];
20517
+ const radioButtonWrapperClassName = _styles.default['strategy-template-radio-button'];
20518
+ const iconWrapperClassName = _styles.default['strategy-template-radio-icon-wrapper'];
20519
+ const iconContainerClassName = _styles.default['strategy-template-radio-icon-container'];
20520
+ const divIconClassName = _styles.default['strategy-template-radio-div-icon'];
20521
+ const contentContainerClassName = _styles.default['strategy-template-radio-content-container'];
20811
20522
  const CUSTOM_STRATEGY_PANE = {
20812
20523
  value: _constants.BLANK_TEMPLATE,
20813
20524
  key: _constants.BLANK_TEMPLATE,
20814
- label: blankTemplateLabel,
20815
- description: blankTemplateDescription,
20525
+ label: formatMessage(_messages.default.blankTemplateLabel),
20526
+ description: formatMessage(_messages.default.blankTemplateDescription),
20816
20527
  icon: _constants.BLANK_TEMPLATE_ICON,
20817
20528
  isAvailable: true,
20818
20529
  isBlankTemplate: true
20819
20530
  };
20820
20531
  function handleClick(value) {
20821
20532
  scrollToSelectedCategory(value);
20822
- onSelectCategory(value);
20533
+ onSelectCategory == null || onSelectCategory(value);
20823
20534
  }
20824
20535
  function scrollToSelectedCategory(id) {
20825
20536
  const selectedElement = document.getElementById(id);
20826
20537
  const templateContainer = document.querySelector('.templates-container');
20827
- templateContainer.scrollTo(0, selectedElement == null ? void 0 : selectedElement.offsetTop);
20538
+ if (templateContainer && selectedElement) {
20539
+ templateContainer.scrollTo(0, selectedElement.offsetTop);
20540
+ }
20828
20541
  }
20829
20542
  const debounceSearch = (0, _debounce.default)(text => {
20830
20543
  getSearchResult(text);
@@ -20838,15 +20551,12 @@ function CapStaticTemplates(props) {
20838
20551
  setIsSearching(true);
20839
20552
  debounceSearch(value);
20840
20553
  }
20841
- function handleShowModal(event) {
20842
- var _event$target2;
20843
- const {
20844
- value
20845
- } = (_event$target2 = event == null ? void 0 : event.target) != null ? _event$target2 : {};
20846
- onSelectStrategyTemplate(value);
20847
-
20848
- //Show modal only if template is not Available.
20554
+ function handleShowModal(e) {
20555
+ var _e$target;
20556
+ const value = e == null || (_e$target = e.target) == null ? void 0 : _e$target.value;
20557
+ onSelectStrategyTemplate == null || onSelectStrategyTemplate(value);
20849
20558
 
20559
+ // Show modal only if template is not Available.
20850
20560
  categories == null || categories.forEach(category => {
20851
20561
  var _category$panes;
20852
20562
  category == null || (_category$panes = category.panes) == null || _category$panes.forEach(template => {
@@ -20871,7 +20581,7 @@ function CapStaticTemplates(props) {
20871
20581
  } = pane,
20872
20582
  rest = _objectWithoutPropertiesLoose(pane, _excluded);
20873
20583
  const iconLabelArray = value == null ? void 0 : value.split(' ');
20874
- const iconLabelText = (iconLabelArray == null ? void 0 : iconLabelArray.length) > 1 ? (iconLabelArray == null ? void 0 : iconLabelArray[0][0]) + (iconLabelArray == null ? void 0 : iconLabelArray[1][0]) : iconLabelArray == null ? void 0 : iconLabelArray[0][0];
20584
+ const iconLabelText = iconLabelArray && iconLabelArray.length > 1 ? iconLabelArray[0][0] + iconLabelArray[1][0] : (iconLabelArray == null ? void 0 : iconLabelArray[0][0]) || '';
20875
20585
  const templateCardTitle = /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
20876
20586
  type: "h4",
20877
20587
  className: "card-header-title " + (isAvailable ? 'card-available' : ''),
@@ -20898,17 +20608,15 @@ function CapStaticTemplates(props) {
20898
20608
  })
20899
20609
  }), showComingSoon && !isAvailable && !isBlankTemplate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColoredTag.default, {
20900
20610
  className: "coming-soon-tag",
20901
- style: {
20902
- marginBottom: _variables.CAP_SPACE_12
20903
- },
20904
20611
  tagColor: "#0065ff",
20905
- children: comingSoonMsg
20612
+ children: formatMessage(_messages.default.comingSoonMsg)
20906
20613
  })]
20907
20614
  }),
20908
20615
  value: key,
20909
- icon: isBlankTemplate ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.TemplateIcon, {
20910
- type: icon,
20911
- color: "blue"
20616
+ icon: isBlankTemplate ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
20617
+ type: icon || '',
20618
+ color: "blue",
20619
+ size: "xs"
20912
20620
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColumn.default, {
20913
20621
  className: "strategy-icon",
20914
20622
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -20918,7 +20626,7 @@ function CapStaticTemplates(props) {
20918
20626
  }),
20919
20627
  customComponent: !isBlankTemplate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
20920
20628
  type: "label1",
20921
- className: !isBlankTemplate && 'card-content margin-t-4',
20629
+ className: (0, _classnames.default)('card-content', _styles.default['cap-static-templates-v2-margin-t-4']),
20922
20630
  children: description
20923
20631
  }),
20924
20632
  radioCardClassName: isAvailable || !showComingSoon ? 'template-enabled' : 'template-disabled'
@@ -20932,7 +20640,7 @@ function CapStaticTemplates(props) {
20932
20640
  };
20933
20641
  const getTemplates = (0, _react.useMemo)(() => {
20934
20642
  const categoriesData = searchText ? filteredCategories : categories;
20935
- const strategyTemplates = categoriesData == null ? void 0 : categoriesData.map(category => {
20643
+ const strategyTemplates = (categoriesData || []).map(category => {
20936
20644
  const {
20937
20645
  value,
20938
20646
  label,
@@ -20943,25 +20651,35 @@ function CapStaticTemplates(props) {
20943
20651
  const structuredPanes = getAllPanes(panes);
20944
20652
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
20945
20653
  id: value,
20946
- className: "margin-t-13",
20654
+ className: _styles.default['cap-static-templates-v2-margin-t-13'],
20947
20655
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
20948
- className: "margin-l-8 margin-b-8",
20656
+ className: (0, _classnames.default)(_styles.default['cap-static-templates-v2-margin-l-8'], _styles.default['cap-static-templates-v2-margin-b-8']),
20949
20657
  type: "label4",
20950
20658
  children: label
20951
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.StrategyTemplate, {
20952
- panes: structuredPanes,
20953
- cardWidth: cardWidth,
20954
- cardHeight: cardHeight,
20955
- borderColor: color,
20956
- selected: selectedStrategyTemplate,
20957
- value: selectedStrategyTemplate,
20958
- onChange: handleShowModal,
20959
- className: (0, _classnames.default)(clsPrefix, className)
20659
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
20660
+ className: (0, _classnames.default)(clsPrefix, className, _styles.default['strategy-template']),
20661
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRadioCard.default, {
20662
+ panes: structuredPanes,
20663
+ cardWidth: cardWidth,
20664
+ cardHeight: cardHeight,
20665
+ selected: selectedStrategyTemplate,
20666
+ value: selectedStrategyTemplate,
20667
+ onChange: handleShowModal,
20668
+ rootClassName: rootClassName,
20669
+ radioButtonWrapperClassName: radioButtonWrapperClassName,
20670
+ iconWrapperClassName: iconWrapperClassName,
20671
+ iconContainerClassName: iconContainerClassName,
20672
+ divIconClassName: divIconClassName,
20673
+ contentContainerClassName: contentContainerClassName,
20674
+ style: {
20675
+ '--category-color': color
20676
+ }
20677
+ })
20960
20678
  })]
20961
20679
  }, key);
20962
20680
  });
20963
20681
  return strategyTemplates;
20964
- }, [searchText, filteredCategories, categories, selectedStrategyTemplate]);
20682
+ }, [searchText, filteredCategories, categories, selectedStrategyTemplate]); // eslint-disable-line react-hooks/exhaustive-deps -- Dependencies match cap-ui-library
20965
20683
 
20966
20684
  // This function is to handle the search;
20967
20685
  function getSearchResult(searchValue) {
@@ -20975,7 +20693,7 @@ function CapStaticTemplates(props) {
20975
20693
  var _currentData$value, _currentData$panes;
20976
20694
  const parentName = currentData == null || (_currentData$value = currentData.value) == null ? void 0 : _currentData$value.toLowerCase();
20977
20695
  const isParent = (parentName == null ? void 0 : parentName.indexOf(searchString)) > -1;
20978
- const childPanes = currentData == null || (_currentData$panes = currentData.panes) == null ? void 0 : _currentData$panes.filter(childPane => {
20696
+ const childPanes = (_currentData$panes = currentData.panes) == null ? void 0 : _currentData$panes.filter(childPane => {
20979
20697
  var _childPane$value;
20980
20698
  return (childPane == null || (_childPane$value = childPane.value) == null || (_childPane$value = _childPane$value.toLowerCase()) == null ? void 0 : _childPane$value.indexOf(searchString)) > -1;
20981
20699
  });
@@ -20993,6 +20711,7 @@ function CapStaticTemplates(props) {
20993
20711
  setFilteredCategories(filteredData);
20994
20712
  }
20995
20713
  function getModalContent() {
20714
+ if (!modalContent) return null;
20996
20715
  const {
20997
20716
  title,
20998
20717
  description,
@@ -21001,7 +20720,7 @@ function CapStaticTemplates(props) {
21001
20720
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
21002
20721
  type: "flex",
21003
20722
  justify: "space-between",
21004
- align: "center",
20723
+ align: "middle",
21005
20724
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColumn.default, {
21006
20725
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapImage.default, {
21007
20726
  src: _group.default,
@@ -21013,22 +20732,23 @@ function CapStaticTemplates(props) {
21013
20732
  title: title,
21014
20733
  description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColoredTag.default, {
21015
20734
  tagColor: "#0065ff",
21016
- children: comingSoonMsg
20735
+ children: formatMessage(_messages.default.comingSoonMsg)
21017
20736
  })
21018
20737
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
21019
20738
  type: "label2",
21020
- className: "margin-t-16",
20739
+ className: _styles.default['cap-static-templates-v2-margin-t-16'],
21021
20740
  children: description
21022
20741
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
21023
20742
  type: "flex",
21024
- align: "center",
20743
+ align: "middle",
21025
20744
  justify: "space-between",
21026
- className: "margin-t-16",
21027
- children: iconsAndMessages == null ? void 0 : iconsAndMessages.map((data, idx) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.StyledCapCard, {
20745
+ className: _styles.default['cap-static-templates-v2-margin-t-16'],
20746
+ children: iconsAndMessages == null ? void 0 : iconsAndMessages.map((data, idx) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapCard.default, {
21028
20747
  title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
21029
20748
  type: data == null ? void 0 : data.iconType,
21030
20749
  size: "m"
21031
20750
  }),
20751
+ className: _styles.default['styled-cap-card'],
21032
20752
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
21033
20753
  type: "label5",
21034
20754
  style: {
@@ -21043,37 +20763,46 @@ function CapStaticTemplates(props) {
21043
20763
  }
21044
20764
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
21045
20765
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeader.default, {
21046
- className: "margin-b-16",
20766
+ className: _styles.default['cap-static-templates-v2-margin-b-16'],
21047
20767
  title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
21048
20768
  type: "h3",
21049
- children: strategyTitleMsg
20769
+ children: formatMessage(_messages.default.strategyTitleMsg)
21050
20770
  }),
21051
20771
  description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
21052
20772
  type: "label3",
21053
- children: strategyDescriptionMsg
20773
+ children: formatMessage(_messages.default.strategyDescriptionMsg)
21054
20774
  })
21055
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.StyledDiv, {
21056
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.SideBar, {
21057
- children: [isBlankTemplateRequired && /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.CategoryContainer, {
21058
- selected: _constants.BLANK_TEMPLATE === selectedCategory,
21059
- className: "category-selector",
20775
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
20776
+ className: _styles.default[clsPrefix],
20777
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
20778
+ className: _styles.default['sidebar'],
20779
+ children: [isBlankTemplateRequired && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
20780
+ className: (0, _classnames.default)(_styles.default['category-container'], {
20781
+ [_styles.default['selected']]: _constants.BLANK_TEMPLATE === selectedCategory,
20782
+ 'category-selector': true
20783
+ }),
21060
20784
  onClick: () => handleClick(_constants.BLANK_TEMPLATE),
21061
20785
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
21062
20786
  type: _constants.BLANK_TEMPLATE === selectedCategory ? 'label4' : 'label9',
21063
- children: blankCategoryLabel
20787
+ children: formatMessage(_messages.default.blankCategoryLabel)
21064
20788
  })
21065
20789
  }), categories == null ? void 0 : categories.map(category => {
21066
20790
  var _category$panes2;
21067
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.CategoryContainer, {
21068
- className: "category-selector",
21069
- color: category == null ? void 0 : category.color,
21070
- selected: (category == null ? void 0 : category.value) === selectedCategory,
20791
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
20792
+ className: (0, _classnames.default)(_styles.default['category-container'], {
20793
+ [_styles.default['selected']]: (category == null ? void 0 : category.value) === selectedCategory,
20794
+ 'category-selector': true
20795
+ }),
20796
+ style: {
20797
+ '--category-color': category == null ? void 0 : category.color
20798
+ },
21071
20799
  onClick: () => handleClick(category == null ? void 0 : category.value),
21072
20800
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapLabel.default, {
21073
20801
  type: (category == null ? void 0 : category.value) === selectedCategory ? 'label4' : 'label9',
21074
- children: [category == null ? void 0 : category.label, (category == null ? void 0 : category.premium) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.PremiumIcon, {
20802
+ children: [category == null ? void 0 : category.label, (category == null ? void 0 : category.premium) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
21075
20803
  type: "premium",
21076
- size: "s"
20804
+ size: "s",
20805
+ className: _styles.default['premium-icon']
21077
20806
  })]
21078
20807
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
21079
20808
  type: "label1",
@@ -21081,69 +20810,54 @@ function CapStaticTemplates(props) {
21081
20810
  })]
21082
20811
  }, category == null ? void 0 : category.key);
21083
20812
  })]
21084
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.TemplatesAndSearchContainer, {
21085
- width: templatesContainerWidth,
21086
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_style.SearchBox, {
21087
- value: searchText,
20813
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
20814
+ className: _styles.default['templates-and-search-container'],
20815
+ style: {
20816
+ '--templates-container-width': templatesContainerWidth
20817
+ },
20818
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapInput.default.Search, {
20819
+ value: searchText || undefined,
21088
20820
  onChange: handleSearch,
21089
20821
  onClear: handleSearch,
21090
- placeholder: searchPlaceholder || searchPlaceholderMsg
21091
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.TemplatesContainer, {
21092
- className: "templates-container",
21093
- maxHeight: templatesContainerMaxHeight,
20822
+ placeholder: searchPlaceholder || formatMessage(_messages.default.searchPlaceholderMsg),
20823
+ className: _styles.default['search-box']
20824
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
20825
+ className: (0, _classnames.default)('templates-container', _styles.default['templates-container']),
20826
+ style: {
20827
+ '--templates-container-max-height': templatesContainerMaxHeight
20828
+ },
21094
20829
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapSpin.default, {
21095
20830
  spinning: isSearching,
21096
20831
  children: [isBlankTemplateRequired && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
21097
20832
  id: _constants.BLANK_TEMPLATE,
21098
- className: "margin-t-4",
21099
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.StrategyTemplate, {
20833
+ className: (0, _classnames.default)(_styles.default['cap-static-templates-v2-margin-t-4'], _styles.default['strategy-template'], _styles.default['strategy-template-icon-placeholder']),
20834
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRadioCard.default, {
21100
20835
  panes: [getPane(CUSTOM_STRATEGY_PANE)],
21101
20836
  cardWidth: blankCardWidth,
21102
20837
  cardHeight: blankCardHeight,
21103
20838
  selected: selectedStrategyTemplate,
21104
20839
  value: selectedStrategyTemplate,
21105
- onChange: handleShowModal
20840
+ onChange: handleShowModal,
20841
+ className: rootClassName,
20842
+ radioButtonWrapperClassName: radioButtonWrapperClassName,
20843
+ iconWrapperClassName: iconWrapperClassName,
20844
+ iconContainerClassName: iconContainerClassName,
20845
+ divIconClassName: divIconClassName,
20846
+ contentContainerClassName: contentContainerClassName
21106
20847
  })
21107
20848
  }, _constants.BLANK_TEMPLATE), getTemplates]
21108
20849
  })
21109
20850
  })]
21110
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.TemplatesModal, {
21111
- visible: showModal,
20851
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapModal.default, {
20852
+ open: showModal,
21112
20853
  onCancel: handleHideModal,
20854
+ className: _styles.default['templates-modal'],
21113
20855
  children: getModalContent()
21114
20856
  })]
21115
20857
  })]
21116
20858
  });
21117
- }
21118
- CapStaticTemplates.defaultProps = {
21119
- cardWidth: '278px',
21120
- cardHeight: '104px',
21121
- blankCardWidth: '278px',
21122
- blankCardHeight: '80px',
21123
- categories: [],
21124
- isBlankTemplateRequired: false,
21125
- templatesContainerWidth: '990px',
21126
- templatesContainerMaxHeight: '400px'
21127
- };
21128
- CapStaticTemplates.propTypes = {
21129
- categories: _propTypes.default.array,
21130
- className: _propTypes.default.string,
21131
- cardWidth: _propTypes.default.string,
21132
- cardHeight: _propTypes.default.string,
21133
- blankCardWidth: _propTypes.default.string,
21134
- blankCardHeight: _propTypes.default.string,
21135
- selectedCategory: _propTypes.default.string,
21136
- onSelectCategory: _propTypes.default.func,
21137
- selectedStrategyTemplate: _propTypes.default.string,
21138
- onSelectStrategyTemplate: _propTypes.default.func,
21139
- isBlankTemplateRequired: _propTypes.default.bool,
21140
- templatesContainerWidth: _propTypes.default.string,
21141
- templatesContainerMaxHeight: _propTypes.default.string,
21142
- searchPlaceholder: _propTypes.default.any
21143
20859
  };
21144
- var _default = exports["default"] = (0, _LocaleHoc.default)(CapStaticTemplates, {
21145
- key: 'CapStaticTemplates'
21146
- });
20860
+ var _default = exports["default"] = (0, _reactIntl.injectIntl)(CapStaticTemplates);
21147
20861
  })();
21148
20862
 
21149
20863
  module.exports = __webpack_exports__;