@capillarytech/blaze-ui 5.0.7 → 5.0.9
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/.DS_Store +0 -0
- package/CapConditionPreview/index.js +183 -131
- package/CapConditionPreview/index.js.map +1 -1
- package/CapNavigation/index.js +47449 -25621
- package/CapNavigation/index.js.map +1 -1
- package/CapTopBar/CapOrgSelect.d.ts +12 -0
- package/CapTopBar/CapOrgSelect.d.ts.map +1 -0
- package/CapTopBar/CapOrgSelectUtils.d.ts +38 -0
- package/CapTopBar/CapOrgSelectUtils.d.ts.map +1 -0
- package/CapTopBar/README.md +146 -0
- package/CapTopBar/constants.d.ts +2 -0
- package/CapTopBar/constants.d.ts.map +1 -0
- package/CapTopBar/index.d.ts +11 -0
- package/CapTopBar/index.d.ts.map +1 -0
- package/CapTopBar/index.js +44490 -28171
- package/CapTopBar/index.js.map +1 -1
- package/CapTopBar/themeConfig.d.ts +6 -0
- package/CapTopBar/themeConfig.d.ts.map +1 -0
- package/CapTopBar/types.d.ts +106 -0
- package/CapTopBar/types.d.ts.map +1 -0
- package/CapTopBar/utils.d.ts +8 -0
- package/CapTopBar/utils.d.ts.map +1 -0
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +1042 -721
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/.npmrc +0 -2
- package/CapCondition/messages.d.ts +0 -85
- package/CapCondition/messages.d.ts.map +0 -1
- package/CapConditionPreview/MIGRATION_ANALYSIS.md +0 -70
- package/CapConditionPreview/README.md +0 -40
- package/CapConditionPreview/constants.d.ts +0 -24
- package/CapConditionPreview/constants.d.ts.map +0 -1
- package/CapConditionPreview/index.d.ts +0 -7
- package/CapConditionPreview/index.d.ts.map +0 -1
- package/CapConditionPreview/tests/USE_CASES_CapConditionPreview.md +0 -65
- package/CapConditionPreview/types.d.ts +0 -82
- package/CapConditionPreview/types.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -1449,6 +1449,95 @@ const CapNotificationDropdown = _ref => {
|
|
|
1449
1449
|
};
|
|
1450
1450
|
var _default = exports["default"] = CapNotificationDropdown;
|
|
1451
1451
|
|
|
1452
|
+
/***/ }),
|
|
1453
|
+
|
|
1454
|
+
/***/ 1344:
|
|
1455
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1456
|
+
|
|
1457
|
+
// Imports
|
|
1458
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
1459
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
1460
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
1461
|
+
// Module
|
|
1462
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-navbar a,.cap-navbar a:hover,.cap-navbar a:visited,.cap-navbar a:focus{text-decoration:none;color:#091e42}.cap-navbar-header{background-color:#fff;padding:0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8e8e8;width:100%;position:fixed;z-index:100;height:4.571rem;box-shadow:none}.cap-navbar-new-header{background-color:rgba(0,0,0,0);padding:0;display:flex;justify-content:space-between;align-items:center;width:calc(100vw - 21.42rem);position:fixed;z-index:100;height:4rem;box-shadow:none;margin-left:20.57rem;background-color:#fff !important}.cap-navbar-drawer global .ant-drawer-header{border-bottom:1px solid #dfe2e7;height:4.571rem;padding:0}.cap-navbar-drawer global .ant-drawer-body{padding:0}.cap-navbar-drawer global .ant-list.cap-list-v2.ant-list-split .ant-list-item{border-bottom:0;padding-top:1.714rem;padding-bottom:0}.cap-navbar-drawer .cap-icon-v2-tick{padding-top:.285rem;margin-right:.857rem}.cap-navbar-menu .ant-dropdown-menu-item{line-height:1.428rem}.cap-navbar-divider{height:1.428rem;align-self:center}.top-bar-select-selection{width:240px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:0 0 0 .571rem;margin:.571rem 0;height:3.428rem;border:1px solid rgba(0,0,0,0)}.top-bar-select-selection.open{border-radius:.285rem;border:1px solid #b3bac5}.top-bar-select-selection.secondary-select{margin-left:0}.top-bar-select-selected-value{font-size:1.143rem;font-weight:500;display:flex;align-items:center;min-width:188px}.top-bar-select-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.top-bar-select-selected-value-label{max-width:150px}.top-bar-select-selected-ou-value-label{display:inline-flex;align-items:baseline;justify-content:space-between;width:150px}.cap-navbar-menu{flex-grow:.3}@media screen and (min-width: 1260px){.cap-navbar-menu{margin-right:60px}}.cap-navbar-menu-item.ant-menu-item{color:#5e6c84}.cap-navbar-menu-item.ant-menu-item-selected{font-weight:500}.cap-navbar-menu-item.ant-menu-item-selected,.cap-navbar-menu-item.ant-menu-item:hover{color:#091e42;border-bottom:2px solid #091e42}.cap-navbar-vertical{height:1.428rem;margin-right:15px}.user-profile{width:17.714rem;display:flex;flex-direction:column;align-items:center;margin-top:.6rem}.user-profile-name-wrapper{display:flex;justify-content:center;align-items:center;background-color:#9e1d71;width:2.857rem;height:2.857rem;border-radius:1.142rem}.user-profile-avatar{font-weight:500;font-size:1.143rem;color:#fff}.user-profile-name{margin:.8rem 0 .2rem;font-weight:500}.user-profile-loginName{font-size:.857rem;opacity:.8}.user-profile .ant-divider-horizontal{width:20.2rem;margin:1rem 0 .857rem}.lang-wrapper{display:flex;align-items:center}.lang-icon{margin-right:.4rem;opacity:.6}.logout-wrapper{display:flex;align-items:center;margin-bottom:.286rem}.logout-text{font-weight:500;margin-left:.4rem;cursor:pointer}.cap-navbar-topbarIcon{padding:.857rem;margin:0 2px}.cap-navbar-new-topbarIcon{padding:.571rem}.cap-navbar-topbarIcon:hover{background-color:#ebecf0;border-radius:1.714rem;cursor:pointer}.cap-navbar-user{cursor:pointer}@media screen and (min-width: 1260px){.cap-navbar-user{margin:0 1.714rem 0 3.142rem}}@media screen and (max-width: 1260px){.cap-navbar-user{margin:0 1.714rem 0 2.857rem}}.cap-navbar-new-user{cursor:pointer}@media screen and (min-width: 1260px){.cap-navbar-new-user.expanded{margin:0 0 0 3%}.cap-navbar-new-user.collapsed{margin:0 6% 0 3%}}@media screen and (max-width: 1260px){.cap-navbar-new-user{margin:0 4.571rem 0 2.857rem}}.top-bar-select-selected-icon{margin-right:.571rem}.cap-navbar-user,.cap-navbar-new-user,.top-bar-select-selected-icon{display:flex;align-items:center;justify-content:center;position:relative;height:2.285rem;width:2.285rem}.cap-navbar-user .text-label,.cap-navbar-new-user .text-label,.top-bar-select-selected-icon .text-label{position:absolute;right:47%;top:50%;transform:translate(50%, -50%);line-height:14px}.oval{width:2.285rem;height:2.285rem;background:#dfe2e7;border-radius:36%;display:flex}.oval .text-label{position:relative;right:47%;top:22%}.top-bar-select-header{padding:.571rem 1.142rem 1.428rem 1.142rem;font-size:1rem;font-weight:500}.top-bar-select-select-item,.top-bar-select-select-ou-org-item,.top-bar-select-select-ou-item{cursor:pointer}.top-bar-select-select-item:hover,.top-bar-select-select-ou-org-item:hover,.top-bar-select-select-ou-item:hover{background-color:#faf9f4}.top-bar-select-select-item.selected,.top-bar-select-select-ou-org-item.selected,.top-bar-select-select-ou-item.selected{color:#2466ea;font-weight:500;position:relative;background-color:rgba(36,102,234,.1)}.top-bar-select-select-item.selected:before,.top-bar-select-select-ou-org-item.selected:before,.top-bar-select-select-ou-item.selected:before{content:" ";width:2px;height:100%;left:0;top:0;position:absolute;background-color:#2466ea}.top-bar-select-select-item{padding:.571rem .571rem .571rem 1.714rem}.top-bar-select-select-ou-org-item{padding:.571rem .571rem .571rem .571rem}.top-bar-select-select-ou-item{padding:.571rem 1.142rem .571rem 2.857rem;display:flex;justify-content:space-between;align-items:baseline}.top-bar-select-no-results{display:flex;justify-content:center;flex-direction:column}.top-bar-select-no-results .top-bar-select-no-results-text{margin-top:8px;text-align:center;color:#97a0af;font-size:.857rem}.ant-popover.top-bar-select-popover,.ant-popover.cap-navbar-user-popover{padding-top:0;width:260px}.ant-popover.top-bar-select-popover .ant-popover-inner-content,.ant-popover.cap-navbar-user-popover .ant-popover-inner-content{padding-left:0;padding-right:0}.ant-popover.top-bar-select-popover .ant-popover-arrow,.ant-popover.cap-navbar-user-popover .ant-popover-arrow{display:none}.top-bar-select-search{padding:0 1.142rem 1.142rem 1.142rem}.top-bar-select-items-wrapper{max-height:200px}.top-bar-select-arrow{margin-right:.857rem}.cap-navbar-user-popover{width:260px}.cap-navbar-user-popover-item{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.cap-navbar-person{z-index:0}.cap-navbar-flexDisplay{display:flex;flex-grow:1;align-items:center}.cap-navbar-more-app{height:1.714rem;width:1.614rem;margin:17px 10px 17px 21px}.cap-navbar-product-title{margin:1.428rem .857rem 1.428rem 1.714rem}.cap-navbar-new-dimensions{height:2.857rem;width:220px}.cap-navbar-new-dimensions .top-bar-select-selection{justify-content:unset;border:1px solid #b3bac5;border-radius:4px;margin:0;height:2.857rem}.cap-navbar-new-dimensions .top-bar-select-arrow{margin-left:.857rem;margin-right:unset}.cap-navbar-dimensions{width:17.143rem}.cap-navbar-heading{font-weight:500}.cap-navbar-capitalize{text-transform:capitalize}.cap-navbar-cursor-pointer{cursor:pointer}.breadcrumbs-topbar-expanded{font-weight:500 !important;color:#5e6c84 !important}.breadcrumbs-topbar-collapsed{font-weight:500 !important;color:#5e6c84 !important}.user-profile-icon{width:2.5rem;height:2.5rem;border-radius:.9375rem;background-color:#ebecf0;margin-right:.75rem}`, ""]);
|
|
1463
|
+
// Exports
|
|
1464
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
1465
|
+
"cap-navbar": `cap-navbar`,
|
|
1466
|
+
"cap-navbar-header": `cap-navbar-header`,
|
|
1467
|
+
"cap-navbar-new-header": `cap-navbar-new-header`,
|
|
1468
|
+
"cap-navbar-drawer": `cap-navbar-drawer`,
|
|
1469
|
+
"ant-drawer-header": `ant-drawer-header`,
|
|
1470
|
+
"ant-drawer-body": `ant-drawer-body`,
|
|
1471
|
+
"ant-list": `ant-list`,
|
|
1472
|
+
"cap-list-v2": `cap-list-v2`,
|
|
1473
|
+
"ant-list-split": `ant-list-split`,
|
|
1474
|
+
"ant-list-item": `ant-list-item`,
|
|
1475
|
+
"cap-icon-v2-tick": `cap-icon-v2-tick`,
|
|
1476
|
+
"cap-navbar-menu": `cap-navbar-menu`,
|
|
1477
|
+
"ant-dropdown-menu-item": `ant-dropdown-menu-item`,
|
|
1478
|
+
"cap-navbar-divider": `cap-navbar-divider`,
|
|
1479
|
+
"top-bar-select-selection": `top-bar-select-selection`,
|
|
1480
|
+
"open": `open`,
|
|
1481
|
+
"secondary-select": `secondary-select`,
|
|
1482
|
+
"top-bar-select-selected-value": `top-bar-select-selected-value`,
|
|
1483
|
+
"top-bar-select-overflow-ellipsis": `top-bar-select-overflow-ellipsis`,
|
|
1484
|
+
"top-bar-select-selected-value-label": `top-bar-select-selected-value-label`,
|
|
1485
|
+
"top-bar-select-selected-ou-value-label": `top-bar-select-selected-ou-value-label`,
|
|
1486
|
+
"cap-navbar-menu-item": `cap-navbar-menu-item`,
|
|
1487
|
+
"ant-menu-item": `ant-menu-item`,
|
|
1488
|
+
"ant-menu-item-selected": `ant-menu-item-selected`,
|
|
1489
|
+
"cap-navbar-vertical": `cap-navbar-vertical`,
|
|
1490
|
+
"user-profile": `user-profile`,
|
|
1491
|
+
"user-profile-name-wrapper": `user-profile-name-wrapper`,
|
|
1492
|
+
"user-profile-avatar": `user-profile-avatar`,
|
|
1493
|
+
"user-profile-name": `user-profile-name`,
|
|
1494
|
+
"user-profile-loginName": `user-profile-loginName`,
|
|
1495
|
+
"ant-divider-horizontal": `ant-divider-horizontal`,
|
|
1496
|
+
"lang-wrapper": `lang-wrapper`,
|
|
1497
|
+
"lang-icon": `lang-icon`,
|
|
1498
|
+
"logout-wrapper": `logout-wrapper`,
|
|
1499
|
+
"logout-text": `logout-text`,
|
|
1500
|
+
"cap-navbar-topbarIcon": `cap-navbar-topbarIcon`,
|
|
1501
|
+
"cap-navbar-new-topbarIcon": `cap-navbar-new-topbarIcon`,
|
|
1502
|
+
"cap-navbar-user": `cap-navbar-user`,
|
|
1503
|
+
"cap-navbar-new-user": `cap-navbar-new-user`,
|
|
1504
|
+
"expanded": `expanded`,
|
|
1505
|
+
"collapsed": `collapsed`,
|
|
1506
|
+
"top-bar-select-selected-icon": `top-bar-select-selected-icon`,
|
|
1507
|
+
"text-label": `text-label`,
|
|
1508
|
+
"oval": `oval`,
|
|
1509
|
+
"top-bar-select-header": `top-bar-select-header`,
|
|
1510
|
+
"top-bar-select-select-item": `top-bar-select-select-item`,
|
|
1511
|
+
"top-bar-select-select-ou-org-item": `top-bar-select-select-ou-org-item`,
|
|
1512
|
+
"top-bar-select-select-ou-item": `top-bar-select-select-ou-item`,
|
|
1513
|
+
"selected": `selected`,
|
|
1514
|
+
"top-bar-select-no-results": `top-bar-select-no-results`,
|
|
1515
|
+
"top-bar-select-no-results-text": `top-bar-select-no-results-text`,
|
|
1516
|
+
"ant-popover": `ant-popover`,
|
|
1517
|
+
"top-bar-select-popover": `top-bar-select-popover`,
|
|
1518
|
+
"cap-navbar-user-popover": `cap-navbar-user-popover`,
|
|
1519
|
+
"ant-popover-inner-content": `ant-popover-inner-content`,
|
|
1520
|
+
"ant-popover-arrow": `ant-popover-arrow`,
|
|
1521
|
+
"top-bar-select-search": `top-bar-select-search`,
|
|
1522
|
+
"top-bar-select-items-wrapper": `top-bar-select-items-wrapper`,
|
|
1523
|
+
"top-bar-select-arrow": `top-bar-select-arrow`,
|
|
1524
|
+
"cap-navbar-user-popover-item": `cap-navbar-user-popover-item`,
|
|
1525
|
+
"cap-navbar-person": `cap-navbar-person`,
|
|
1526
|
+
"cap-navbar-flexDisplay": `cap-navbar-flexDisplay`,
|
|
1527
|
+
"cap-navbar-more-app": `cap-navbar-more-app`,
|
|
1528
|
+
"cap-navbar-product-title": `cap-navbar-product-title`,
|
|
1529
|
+
"cap-navbar-new-dimensions": `cap-navbar-new-dimensions`,
|
|
1530
|
+
"cap-navbar-dimensions": `cap-navbar-dimensions`,
|
|
1531
|
+
"cap-navbar-heading": `cap-navbar-heading`,
|
|
1532
|
+
"cap-navbar-capitalize": `cap-navbar-capitalize`,
|
|
1533
|
+
"cap-navbar-cursor-pointer": `cap-navbar-cursor-pointer`,
|
|
1534
|
+
"breadcrumbs-topbar-expanded": `breadcrumbs-topbar-expanded`,
|
|
1535
|
+
"breadcrumbs-topbar-collapsed": `breadcrumbs-topbar-collapsed`,
|
|
1536
|
+
"user-profile-icon": `user-profile-icon`
|
|
1537
|
+
};
|
|
1538
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
1539
|
+
|
|
1540
|
+
|
|
1452
1541
|
/***/ }),
|
|
1453
1542
|
|
|
1454
1543
|
/***/ 1379:
|
|
@@ -2422,6 +2511,241 @@ module.exports = require("dayjs/plugin/customParseFormat");
|
|
|
2422
2511
|
|
|
2423
2512
|
/***/ }),
|
|
2424
2513
|
|
|
2514
|
+
/***/ 2834:
|
|
2515
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2516
|
+
|
|
2517
|
+
"use strict";
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
exports.__esModule = true;
|
|
2521
|
+
exports.transformOrgOuToTreeOptions = exports.isSelectDisabled = exports.handleSelectChange = exports.getSelectedValue = exports.getSelectType = exports.findParentOrgValue = exports.extractLabelText = exports.createPrefix = void 0;
|
|
2522
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
2523
|
+
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
2524
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
2525
|
+
var _icons = __webpack_require__(30775);
|
|
2526
|
+
var _capillary_logo = _interopRequireDefault(__webpack_require__(69038));
|
|
2527
|
+
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
2528
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
2529
|
+
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); }
|
|
2530
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2531
|
+
/**
|
|
2532
|
+
* Transforms org/OU data structure (accessibleOus) to tree structure (children)
|
|
2533
|
+
* and adds sitemap icons for organizations with OUs
|
|
2534
|
+
*/
|
|
2535
|
+
const transformOrgOuToTreeOptions = function (items) {
|
|
2536
|
+
if (items === void 0) {
|
|
2537
|
+
items = [];
|
|
2538
|
+
}
|
|
2539
|
+
return items.map(org => {
|
|
2540
|
+
var _org$accessibleOus;
|
|
2541
|
+
const hasOus = org.accessibleOus && org.accessibleOus.length > 0;
|
|
2542
|
+
|
|
2543
|
+
// For organizations with OUs, add sitemap icon to label
|
|
2544
|
+
const orgLabel = hasOus ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
2545
|
+
align: "middle",
|
|
2546
|
+
style: {
|
|
2547
|
+
display: 'flex',
|
|
2548
|
+
alignItems: 'center'
|
|
2549
|
+
},
|
|
2550
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
2551
|
+
type: "sitemap",
|
|
2552
|
+
size: "s",
|
|
2553
|
+
style: {
|
|
2554
|
+
marginRight: styledVars.CAP_SPACE_04
|
|
2555
|
+
}
|
|
2556
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2557
|
+
children: org.label
|
|
2558
|
+
})]
|
|
2559
|
+
}) : org.label;
|
|
2560
|
+
return {
|
|
2561
|
+
value: org.value,
|
|
2562
|
+
label: orgLabel,
|
|
2563
|
+
// Store original label as string for prefix extraction
|
|
2564
|
+
originalLabel: org.label,
|
|
2565
|
+
key: org.key,
|
|
2566
|
+
children: (_org$accessibleOus = org.accessibleOus) == null ? void 0 : _org$accessibleOus.map(ou => ({
|
|
2567
|
+
value: ou.value,
|
|
2568
|
+
label: ou.label,
|
|
2569
|
+
key: ou.key,
|
|
2570
|
+
// Store parent org label for OU display
|
|
2571
|
+
parentOrgLabel: org.label
|
|
2572
|
+
}))
|
|
2573
|
+
};
|
|
2574
|
+
});
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Determines the selected value (prefer OU value if selected, otherwise org value)
|
|
2579
|
+
*/
|
|
2580
|
+
exports.transformOrgOuToTreeOptions = transformOrgOuToTreeOptions;
|
|
2581
|
+
const getSelectedValue = (selectedItem, selectedOuItem) => {
|
|
2582
|
+
if (selectedOuItem !== undefined && selectedOuItem !== null && selectedOuItem !== -1) {
|
|
2583
|
+
return selectedOuItem;
|
|
2584
|
+
}
|
|
2585
|
+
return selectedItem;
|
|
2586
|
+
};
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Extracts label text from a node, handling both string and React element labels
|
|
2590
|
+
*/
|
|
2591
|
+
exports.getSelectedValue = getSelectedValue;
|
|
2592
|
+
const extractLabelText = node => {
|
|
2593
|
+
if (!node) return '';
|
|
2594
|
+
if (typeof node.label === 'string') {
|
|
2595
|
+
return node.label;
|
|
2596
|
+
}
|
|
2597
|
+
if (node.originalLabel) {
|
|
2598
|
+
return String(node.originalLabel);
|
|
2599
|
+
}
|
|
2600
|
+
if (node.label && typeof node.label === 'object' && 'props' in node.label) {
|
|
2601
|
+
var _props;
|
|
2602
|
+
// Try to extract text from React element (for org labels with icons)
|
|
2603
|
+
const children = (_props = node.label.props) == null ? void 0 : _props.children;
|
|
2604
|
+
if (Array.isArray(children)) {
|
|
2605
|
+
var _textChild$props;
|
|
2606
|
+
const textChild = children.find(child => {
|
|
2607
|
+
var _child$props;
|
|
2608
|
+
return typeof child === 'string' || typeof child === 'object' && (child == null || (_child$props = child.props) == null ? void 0 : _child$props.children);
|
|
2609
|
+
});
|
|
2610
|
+
return typeof textChild === 'string' ? textChild : String((textChild == null || (_textChild$props = textChild.props) == null ? void 0 : _textChild$props.children) || '');
|
|
2611
|
+
}
|
|
2612
|
+
if (typeof children === 'string') {
|
|
2613
|
+
return children;
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
return '';
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Creates the prefix component for selected value display (logo + first letter)
|
|
2621
|
+
*/
|
|
2622
|
+
exports.extractLabelText = extractLabelText;
|
|
2623
|
+
const createPrefix = (value, treeMaps, showCapillaryIcon) => {
|
|
2624
|
+
if (!value) return null;
|
|
2625
|
+
const node = treeMaps.nodeMap[value];
|
|
2626
|
+
const labelText = extractLabelText(node);
|
|
2627
|
+
if (showCapillaryIcon) {
|
|
2628
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
2629
|
+
src: _capillary_logo.default,
|
|
2630
|
+
alt: "",
|
|
2631
|
+
style: {
|
|
2632
|
+
marginRight: 8,
|
|
2633
|
+
width: 24,
|
|
2634
|
+
height: 24
|
|
2635
|
+
}
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2638
|
+
if (labelText) {
|
|
2639
|
+
var _labelText$;
|
|
2640
|
+
const firstLetter = ((_labelText$ = labelText[0]) == null ? void 0 : _labelText$.toUpperCase()) || '';
|
|
2641
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
2642
|
+
style: {
|
|
2643
|
+
display: 'flex',
|
|
2644
|
+
alignItems: 'center',
|
|
2645
|
+
marginRight: 8,
|
|
2646
|
+
position: 'relative'
|
|
2647
|
+
},
|
|
2648
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LogoBackground, {
|
|
2649
|
+
width: 24,
|
|
2650
|
+
height: 24
|
|
2651
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
2652
|
+
style: {
|
|
2653
|
+
position: 'absolute',
|
|
2654
|
+
left: '50%',
|
|
2655
|
+
top: '50%',
|
|
2656
|
+
transform: 'translate(-50%, -50%)',
|
|
2657
|
+
lineHeight: '14px',
|
|
2658
|
+
fontSize: '14px'
|
|
2659
|
+
},
|
|
2660
|
+
children: firstLetter
|
|
2661
|
+
})]
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
return null;
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* Finds the parent org value for a given OU value
|
|
2669
|
+
*/
|
|
2670
|
+
exports.createPrefix = createPrefix;
|
|
2671
|
+
const findParentOrgValue = (selectedValue, treeMaps) => {
|
|
2672
|
+
const parentKey = Object.keys(treeMaps.parentChildMap).find(key => {
|
|
2673
|
+
const children = treeMaps.parentChildMap[key];
|
|
2674
|
+
return children == null ? void 0 : children.includes(selectedValue);
|
|
2675
|
+
});
|
|
2676
|
+
if (!parentKey) return undefined;
|
|
2677
|
+
|
|
2678
|
+
// Convert parentKey to same type as selectedValue
|
|
2679
|
+
if (typeof selectedValue === 'number') {
|
|
2680
|
+
const parentValueTyped = Number(parentKey);
|
|
2681
|
+
if (!isNaN(parentValueTyped)) {
|
|
2682
|
+
return parentValueTyped;
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
return parentKey;
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Transforms CapUnifiedSelect's onChange to handleItemChange signature
|
|
2690
|
+
*/
|
|
2691
|
+
exports.findParentOrgValue = findParentOrgValue;
|
|
2692
|
+
const handleSelectChange = (newValue, treeMaps, handleItemChange) => {
|
|
2693
|
+
if (!handleItemChange) return;
|
|
2694
|
+
|
|
2695
|
+
// Handle clear/undefined
|
|
2696
|
+
if (newValue === undefined || newValue === null) {
|
|
2697
|
+
handleItemChange(undefined, undefined, undefined);
|
|
2698
|
+
return;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
// For single select, newValue is a single value
|
|
2702
|
+
const selectedValue = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
2703
|
+
const node = treeMaps.nodeMap[selectedValue];
|
|
2704
|
+
if (!node) {
|
|
2705
|
+
handleItemChange(selectedValue, undefined, undefined);
|
|
2706
|
+
return;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
// Check if selected value is a leaf (OU) or parent (org)
|
|
2710
|
+
const isLeaf = treeMaps.leafValues.includes(selectedValue);
|
|
2711
|
+
if (isLeaf) {
|
|
2712
|
+
// Selected an OU - find parent org
|
|
2713
|
+
const parentValue = findParentOrgValue(selectedValue, treeMaps);
|
|
2714
|
+
const parentNode = parentValue !== undefined ? treeMaps.nodeMap[parentValue] : undefined;
|
|
2715
|
+
handleItemChange(parentValue !== undefined ? parentValue : selectedValue, parentNode || node, selectedValue);
|
|
2716
|
+
} else {
|
|
2717
|
+
// Selected an org (no OU)
|
|
2718
|
+
handleItemChange(selectedValue, node, undefined);
|
|
2719
|
+
}
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
/**
|
|
2723
|
+
* Checks if select should be disabled (fixed org or only one org exists)
|
|
2724
|
+
*/
|
|
2725
|
+
exports.handleSelectChange = handleSelectChange;
|
|
2726
|
+
const isSelectDisabled = function (fixedOrg, items) {
|
|
2727
|
+
var _items$0$accessibleOu;
|
|
2728
|
+
if (items === void 0) {
|
|
2729
|
+
items = [];
|
|
2730
|
+
}
|
|
2731
|
+
return fixedOrg || items.length === 1 && !((_items$0$accessibleOu = items[0].accessibleOus) != null && _items$0$accessibleOu.length);
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Determines if treeSelect or select should be used based on whether items have OUs
|
|
2736
|
+
*/
|
|
2737
|
+
exports.isSelectDisabled = isSelectDisabled;
|
|
2738
|
+
const getSelectType = function (items) {
|
|
2739
|
+
if (items === void 0) {
|
|
2740
|
+
items = [];
|
|
2741
|
+
}
|
|
2742
|
+
const hasOus = items.some(item => item.accessibleOus && item.accessibleOus.length > 0);
|
|
2743
|
+
return hasOus ? 'treeSelect' : 'select';
|
|
2744
|
+
};
|
|
2745
|
+
exports.getSelectType = getSelectType;
|
|
2746
|
+
|
|
2747
|
+
/***/ }),
|
|
2748
|
+
|
|
2425
2749
|
/***/ 2841:
|
|
2426
2750
|
/***/ ((module) => {
|
|
2427
2751
|
|
|
@@ -14048,515 +14372,6 @@ exports.useInfiniteScroll = useInfiniteScroll;
|
|
|
14048
14372
|
|
|
14049
14373
|
/***/ }),
|
|
14050
14374
|
|
|
14051
|
-
/***/ 9174:
|
|
14052
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14053
|
-
|
|
14054
|
-
"use strict";
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
exports.__esModule = true;
|
|
14058
|
-
exports["default"] = void 0;
|
|
14059
|
-
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
14060
|
-
var _isEmpty = _interopRequireDefault(__webpack_require__(62193));
|
|
14061
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
14062
|
-
var _reactIntl = __webpack_require__(46407);
|
|
14063
|
-
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
14064
|
-
var _messages = _interopRequireDefault(__webpack_require__(81112));
|
|
14065
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
14066
|
-
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
14067
|
-
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
14068
|
-
var _CapTruncateList = _interopRequireDefault(__webpack_require__(14545));
|
|
14069
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
14070
|
-
var _variables = __webpack_require__(56587);
|
|
14071
|
-
var _constants = __webpack_require__(41859);
|
|
14072
|
-
var _styles = _interopRequireDefault(__webpack_require__(29236));
|
|
14073
|
-
var _jsxRuntime = __webpack_require__(74848);
|
|
14074
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14075
|
-
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); }
|
|
14076
|
-
/**
|
|
14077
|
-
* Timezone-safe date formatting helper that detects YYYY-MM-DD format
|
|
14078
|
-
* and constructs a local Date to avoid timezone shifts
|
|
14079
|
-
*/
|
|
14080
|
-
function formatDateForPreview(input) {
|
|
14081
|
-
if (!input) return '';
|
|
14082
|
-
try {
|
|
14083
|
-
const str = String(input);
|
|
14084
|
-
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str);
|
|
14085
|
-
const d = m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : new Date(str);
|
|
14086
|
-
return Number.isNaN(d.getTime()) ? '' : d.toLocaleDateString('en-US');
|
|
14087
|
-
} catch (_unused) {
|
|
14088
|
-
return '';
|
|
14089
|
-
}
|
|
14090
|
-
}
|
|
14091
|
-
const {
|
|
14092
|
-
CapLabelInline
|
|
14093
|
-
} = _CapLabel.default;
|
|
14094
|
-
const CapConditionPreview = _ref => {
|
|
14095
|
-
let {
|
|
14096
|
-
className,
|
|
14097
|
-
type,
|
|
14098
|
-
operand,
|
|
14099
|
-
operator,
|
|
14100
|
-
dstData,
|
|
14101
|
-
listData = null,
|
|
14102
|
-
additionalFields,
|
|
14103
|
-
isExcluded,
|
|
14104
|
-
conditionName,
|
|
14105
|
-
excludeMsg,
|
|
14106
|
-
includeMsg,
|
|
14107
|
-
whoseMsg,
|
|
14108
|
-
isMsg,
|
|
14109
|
-
andMsg,
|
|
14110
|
-
equalMsg,
|
|
14111
|
-
greaterThanMsg,
|
|
14112
|
-
lessThanMsg,
|
|
14113
|
-
greaterThanOrEqualMsg,
|
|
14114
|
-
lessThanorEqualMsg,
|
|
14115
|
-
inRangeMsg,
|
|
14116
|
-
notEqualMsg,
|
|
14117
|
-
lineItemMsg,
|
|
14118
|
-
addedSKUsMsg,
|
|
14119
|
-
skuFileName,
|
|
14120
|
-
uploadedMsg,
|
|
14121
|
-
inMsg,
|
|
14122
|
-
notInMsg,
|
|
14123
|
-
hideNumberAndProductFields = false,
|
|
14124
|
-
viewMoreMsg,
|
|
14125
|
-
storesMsg,
|
|
14126
|
-
uploadInProgressMsg,
|
|
14127
|
-
ViewMoreLink,
|
|
14128
|
-
onClickConfigure,
|
|
14129
|
-
blockId,
|
|
14130
|
-
setPopoverVisible,
|
|
14131
|
-
uploadFailedErrorMsg,
|
|
14132
|
-
uploadInvalidErrorMsg,
|
|
14133
|
-
entryTriggerEventAttribute,
|
|
14134
|
-
dateTypeData
|
|
14135
|
-
} = _ref;
|
|
14136
|
-
const isStoreFilter = !(0, _isEmpty.default)(additionalFields == null ? void 0 : additionalFields.STORE_FILTER);
|
|
14137
|
-
const operandsMapping = {
|
|
14138
|
-
EQ: {
|
|
14139
|
-
text: equalMsg,
|
|
14140
|
-
isList: false
|
|
14141
|
-
},
|
|
14142
|
-
GT: {
|
|
14143
|
-
text: greaterThanMsg,
|
|
14144
|
-
isList: false
|
|
14145
|
-
},
|
|
14146
|
-
LT: {
|
|
14147
|
-
text: lessThanMsg,
|
|
14148
|
-
isList: false
|
|
14149
|
-
},
|
|
14150
|
-
GTE: {
|
|
14151
|
-
text: greaterThanOrEqualMsg,
|
|
14152
|
-
isList: false
|
|
14153
|
-
},
|
|
14154
|
-
LTE: {
|
|
14155
|
-
text: lessThanorEqualMsg,
|
|
14156
|
-
isList: false
|
|
14157
|
-
},
|
|
14158
|
-
IN_RANGE: {
|
|
14159
|
-
text: inRangeMsg,
|
|
14160
|
-
isList: true
|
|
14161
|
-
},
|
|
14162
|
-
NEQ: {
|
|
14163
|
-
text: notEqualMsg,
|
|
14164
|
-
isList: false
|
|
14165
|
-
},
|
|
14166
|
-
IN: {
|
|
14167
|
-
text: inMsg,
|
|
14168
|
-
isList: false
|
|
14169
|
-
},
|
|
14170
|
-
NOT_IN: {
|
|
14171
|
-
text: notInMsg,
|
|
14172
|
-
isList: false
|
|
14173
|
-
},
|
|
14174
|
-
IS_EXACT_DATE: {
|
|
14175
|
-
text: _constants.TEXT_ON_MSG,
|
|
14176
|
-
isList: false
|
|
14177
|
-
},
|
|
14178
|
-
IS_BEFORE_DATE: {
|
|
14179
|
-
text: _constants.TEXT_BEFORE_MSG,
|
|
14180
|
-
isList: false
|
|
14181
|
-
},
|
|
14182
|
-
IS_AFTER_DATE: {
|
|
14183
|
-
text: _constants.TEXT_AFTER_MSG,
|
|
14184
|
-
isList: false
|
|
14185
|
-
},
|
|
14186
|
-
IS_INBETWEEN_DATES: {
|
|
14187
|
-
text: _constants.TEXT_BETWEEN_MSG,
|
|
14188
|
-
isList: true
|
|
14189
|
-
},
|
|
14190
|
-
IS_BEFORE_DAYS: {
|
|
14191
|
-
text: _constants.TEXT_DAYS_BEFORE_MSG,
|
|
14192
|
-
isList: false
|
|
14193
|
-
},
|
|
14194
|
-
IS_AFTER_DAYS: {
|
|
14195
|
-
text: _constants.TEXT_DAYS_AFTER_MSG,
|
|
14196
|
-
isList: false
|
|
14197
|
-
}
|
|
14198
|
-
};
|
|
14199
|
-
const ValuesPrefix = () => {
|
|
14200
|
-
var _operandsMapping$oper;
|
|
14201
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
14202
|
-
children: !hideNumberAndProductFields && operator ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14203
|
-
type: "label18",
|
|
14204
|
-
children: (_operandsMapping$oper = operandsMapping[operator]) == null ? void 0 : _operandsMapping$oper.text
|
|
14205
|
-
}) : null
|
|
14206
|
-
});
|
|
14207
|
-
};
|
|
14208
|
-
const downloadHandler = (event, data, downloadedFileName) => {
|
|
14209
|
-
const target = event.currentTarget;
|
|
14210
|
-
target.setAttribute('href', "data:text/csv;charset=utf-8," + encodeURIComponent(data));
|
|
14211
|
-
target.setAttribute('download', downloadedFileName);
|
|
14212
|
-
};
|
|
14213
|
-
const downloadSKUs = function (event, list) {
|
|
14214
|
-
if (list === void 0) {
|
|
14215
|
-
list = [];
|
|
14216
|
-
}
|
|
14217
|
-
const csvArray = [[addedSKUsMsg != null ? addedSKUsMsg : '']];
|
|
14218
|
-
list.forEach(sku => csvArray.push([sku]));
|
|
14219
|
-
const csvContent = csvArray.map(e => e.join(',')).join('\n');
|
|
14220
|
-
downloadHandler(event, csvContent, skuFileName != null ? skuFileName : '');
|
|
14221
|
-
};
|
|
14222
|
-
const OperandValues = _ref2 => {
|
|
14223
|
-
var _operandsMapping$text, _operandsMapping;
|
|
14224
|
-
let {
|
|
14225
|
-
linkedFact,
|
|
14226
|
-
linkedDataType,
|
|
14227
|
-
linkedConditionExpression
|
|
14228
|
-
} = _ref2;
|
|
14229
|
-
let dataTypeLocal = type;
|
|
14230
|
-
let listDataLocal = listData;
|
|
14231
|
-
if (linkedFact) {
|
|
14232
|
-
var _linkedConditionExpre;
|
|
14233
|
-
dataTypeLocal = linkedDataType;
|
|
14234
|
-
listDataLocal = (_linkedConditionExpre = linkedConditionExpression == null ? void 0 : linkedConditionExpression.operand) != null ? _linkedConditionExpre : [];
|
|
14235
|
-
}
|
|
14236
|
-
let hasUploadedStores = false;
|
|
14237
|
-
let StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14238
|
-
type: "flex",
|
|
14239
|
-
align: "middle",
|
|
14240
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14241
|
-
type: "in-progress",
|
|
14242
|
-
size: "s",
|
|
14243
|
-
svgProps: {
|
|
14244
|
-
fill: _variables.FONT_COLOR_05
|
|
14245
|
-
},
|
|
14246
|
-
className: "progress-icon"
|
|
14247
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14248
|
-
type: "label11",
|
|
14249
|
-
className: "margin-l-4 margin-r-4",
|
|
14250
|
-
children: uploadInProgressMsg
|
|
14251
|
-
})]
|
|
14252
|
-
});
|
|
14253
|
-
if (isStoreFilter && (linkedConditionExpression == null ? void 0 : linkedConditionExpression.storeSource) === _constants.UPLOAD) {
|
|
14254
|
-
const {
|
|
14255
|
-
isStoreUploadFailed = false,
|
|
14256
|
-
isStoreUploadInvalid = false,
|
|
14257
|
-
operand: storeOperand = [],
|
|
14258
|
-
storeUploadIsInProgress = false
|
|
14259
|
-
} = linkedConditionExpression != null ? linkedConditionExpression : {};
|
|
14260
|
-
hasUploadedStores = true;
|
|
14261
|
-
if (isStoreUploadFailed || isStoreUploadInvalid) {
|
|
14262
|
-
StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14263
|
-
type: "flex",
|
|
14264
|
-
align: "middle",
|
|
14265
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14266
|
-
type: "error",
|
|
14267
|
-
size: "s",
|
|
14268
|
-
style: {
|
|
14269
|
-
color: _variables.CAP_RED
|
|
14270
|
-
},
|
|
14271
|
-
className: "margin-r-4"
|
|
14272
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default.CapLabelInline, {
|
|
14273
|
-
style: {
|
|
14274
|
-
color: _variables.CAP_RED
|
|
14275
|
-
},
|
|
14276
|
-
type: "label4",
|
|
14277
|
-
children: isStoreUploadFailed ? uploadFailedErrorMsg : uploadInvalidErrorMsg
|
|
14278
|
-
})]
|
|
14279
|
-
});
|
|
14280
|
-
} else {
|
|
14281
|
-
var _storeOperand$length;
|
|
14282
|
-
StoreUploadMsg = !storeUploadIsInProgress ? ((_storeOperand$length = storeOperand == null ? void 0 : storeOperand.length) != null ? _storeOperand$length : 0) + " " + storesMsg : StoreUploadMsg;
|
|
14283
|
-
}
|
|
14284
|
-
}
|
|
14285
|
-
switch (dataTypeLocal) {
|
|
14286
|
-
case _constants.MULTI_SELECT:
|
|
14287
|
-
{
|
|
14288
|
-
var _operandsMapping$list, _listArr$, _ref3;
|
|
14289
|
-
const listArr = Array.isArray(listDataLocal) ? listDataLocal : [];
|
|
14290
|
-
const operandForPreview = operandsMapping != null && operandsMapping[listArr == null ? void 0 : listArr[1]] ? (_operandsMapping$list = operandsMapping[listArr[1]]) == null ? void 0 : _operandsMapping$list.text : listArr == null || (_listArr$ = listArr[1]) == null || (_listArr$ = _listArr$.toLowerCase()) == null ? void 0 : _listArr$.replace('_', ' ');
|
|
14291
|
-
return [_constants.CUSTOM_FIELD, _constants.EXTENDED_FIELD].includes(linkedFact != null ? linkedFact : '') ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14292
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14293
|
-
className: _styles.default.capConditionPreview__label,
|
|
14294
|
-
type: "label2",
|
|
14295
|
-
children: listArr[0]
|
|
14296
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14297
|
-
type: "label18",
|
|
14298
|
-
children: operandForPreview
|
|
14299
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14300
|
-
type: "label16",
|
|
14301
|
-
children: listArr[2]
|
|
14302
|
-
})]
|
|
14303
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14304
|
-
children: [!linkedFact && /*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14305
|
-
type: "flex",
|
|
14306
|
-
align: "middle",
|
|
14307
|
-
children: [!listDataLocal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14308
|
-
className: "offer-icon",
|
|
14309
|
-
size: "s",
|
|
14310
|
-
type: "attachment"
|
|
14311
|
-
}), linkedFact === _constants.SKU ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14312
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
14313
|
-
list: listArr,
|
|
14314
|
-
showNumber: 1,
|
|
14315
|
-
capLabelType: "label4",
|
|
14316
|
-
showTooltip: false
|
|
14317
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
14318
|
-
className: _styles.default.capConditionPreview__skuDownloadLink,
|
|
14319
|
-
href: "#",
|
|
14320
|
-
onClick: e => {
|
|
14321
|
-
e.preventDefault();
|
|
14322
|
-
downloadSKUs(e, listArr);
|
|
14323
|
-
},
|
|
14324
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14325
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14326
|
-
type: "download",
|
|
14327
|
-
size: "s"
|
|
14328
|
-
}), uploadedMsg]
|
|
14329
|
-
})
|
|
14330
|
-
})]
|
|
14331
|
-
}) : hasUploadedStores ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14332
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14333
|
-
type: "label4",
|
|
14334
|
-
className: "margin-r-20",
|
|
14335
|
-
children: StoreUploadMsg
|
|
14336
|
-
}), ViewMoreLink && /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewMoreLink, {
|
|
14337
|
-
onClick: () => {
|
|
14338
|
-
setPopoverVisible == null || setPopoverVisible(false);
|
|
14339
|
-
blockId && (onClickConfigure == null ? void 0 : onClickConfigure(blockId));
|
|
14340
|
-
},
|
|
14341
|
-
children: viewMoreMsg
|
|
14342
|
-
})]
|
|
14343
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
14344
|
-
list: (_ref3 = listDataLocal != null ? listDataLocal : dstData == null ? void 0 : dstData.couponSeriesNames) != null ? _ref3 : [],
|
|
14345
|
-
showNumber: 1,
|
|
14346
|
-
capLabelType: "label4"
|
|
14347
|
-
})]
|
|
14348
|
-
})]
|
|
14349
|
-
});
|
|
14350
|
-
}
|
|
14351
|
-
case _constants.NUMBER:
|
|
14352
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14353
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14354
|
-
type: "label16",
|
|
14355
|
-
children: operand
|
|
14356
|
-
})]
|
|
14357
|
-
});
|
|
14358
|
-
case _constants.STRING:
|
|
14359
|
-
if (!hideNumberAndProductFields) {
|
|
14360
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14361
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14362
|
-
type: "label18",
|
|
14363
|
-
children: (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
14364
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14365
|
-
type: "label16",
|
|
14366
|
-
className: _styles.default.capConditionPreview__string,
|
|
14367
|
-
children: operand
|
|
14368
|
-
})]
|
|
14369
|
-
});
|
|
14370
|
-
}
|
|
14371
|
-
return null;
|
|
14372
|
-
case _constants.LIST:
|
|
14373
|
-
{
|
|
14374
|
-
const opArr = Array.isArray(operand) ? operand : [];
|
|
14375
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14376
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14377
|
-
type: "label16",
|
|
14378
|
-
children: opArr[0]
|
|
14379
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14380
|
-
type: "label18",
|
|
14381
|
-
children: andMsg
|
|
14382
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14383
|
-
type: "label16",
|
|
14384
|
-
children: opArr[1]
|
|
14385
|
-
})]
|
|
14386
|
-
});
|
|
14387
|
-
}
|
|
14388
|
-
case _constants.ENTRY_TRIGGER_EVENT_ATTRIBUTE:
|
|
14389
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14390
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14391
|
-
type: "label18",
|
|
14392
|
-
children: (_operandsMapping$text = (_operandsMapping = operandsMapping[operator != null ? operator : '']) == null ? void 0 : _operandsMapping.text) != null ? _operandsMapping$text : (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
14393
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14394
|
-
type: "label16",
|
|
14395
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.entryTriggerEventAttribute))
|
|
14396
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14397
|
-
className: _styles.default.capConditionPreview__label,
|
|
14398
|
-
type: "label2",
|
|
14399
|
-
children: entryTriggerEventAttribute
|
|
14400
|
-
})]
|
|
14401
|
-
});
|
|
14402
|
-
case _constants.STRING_LIST:
|
|
14403
|
-
{
|
|
14404
|
-
const opList = Array.isArray(operand) ? operand : [];
|
|
14405
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14406
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(CapLabelInline, {
|
|
14407
|
-
type: "label16",
|
|
14408
|
-
children: [opList == null ? void 0 : opList[0], (opList == null ? void 0 : opList.length) > 1 && " +" + (opList.length - 1), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.more))]
|
|
14409
|
-
})]
|
|
14410
|
-
});
|
|
14411
|
-
}
|
|
14412
|
-
case _constants.DATE_TYPE:
|
|
14413
|
-
return renderDateConditionPreview(operator, dateTypeData);
|
|
14414
|
-
default:
|
|
14415
|
-
return null;
|
|
14416
|
-
}
|
|
14417
|
-
};
|
|
14418
|
-
const renderDateConditionPreview = (op, dtData) => {
|
|
14419
|
-
const renderContent = () => {
|
|
14420
|
-
var _operandsMapping2, _operandsMapping3, _dtData$contextData, _operandsMapping4, _dtData$contextData2;
|
|
14421
|
-
switch (dtData == null ? void 0 : dtData.dateType) {
|
|
14422
|
-
case _constants.DATE_TYPE_RANGE:
|
|
14423
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14424
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14425
|
-
className: _styles.default.capConditionPreview__label,
|
|
14426
|
-
type: "label2",
|
|
14427
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping2 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping2.text]))
|
|
14428
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14429
|
-
type: "label18",
|
|
14430
|
-
children: formatDateForPreview(dtData == null ? void 0 : dtData.startDate)
|
|
14431
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14432
|
-
type: "label18",
|
|
14433
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.andMsg))
|
|
14434
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14435
|
-
type: "label18",
|
|
14436
|
-
children: formatDateForPreview(dtData == null ? void 0 : dtData.endDate)
|
|
14437
|
-
})]
|
|
14438
|
-
});
|
|
14439
|
-
case _constants.DATE_TYPE_SINGLE:
|
|
14440
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14441
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14442
|
-
className: _styles.default.capConditionPreview__label,
|
|
14443
|
-
type: "label2",
|
|
14444
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping3 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping3.text]))
|
|
14445
|
-
}), dtData != null && dtData.contextData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14446
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14447
|
-
type: "label4",
|
|
14448
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.endDate))
|
|
14449
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14450
|
-
type: "label18",
|
|
14451
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.of))
|
|
14452
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14453
|
-
type: "label4",
|
|
14454
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.profileNameMessage, {
|
|
14455
|
-
values: {
|
|
14456
|
-
profileName: dtData == null || (_dtData$contextData = dtData.contextData) == null ? void 0 : _dtData$contextData.profileName
|
|
14457
|
-
}
|
|
14458
|
-
}))
|
|
14459
|
-
})]
|
|
14460
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14461
|
-
type: "label18",
|
|
14462
|
-
children: formatDateForPreview(dtData == null ? void 0 : dtData.date)
|
|
14463
|
-
})]
|
|
14464
|
-
});
|
|
14465
|
-
case _constants.DATE_TYPE_DAYS_AFTER:
|
|
14466
|
-
case _constants.DATE_TYPE_DAYS_BEFORE:
|
|
14467
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14468
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14469
|
-
className: _styles.default.capConditionPreview__label,
|
|
14470
|
-
type: "label2",
|
|
14471
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping4 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping4.text], {
|
|
14472
|
-
values: {
|
|
14473
|
-
days: dtData == null ? void 0 : dtData.days
|
|
14474
|
-
}
|
|
14475
|
-
}))
|
|
14476
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14477
|
-
type: "label4",
|
|
14478
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.endDate))
|
|
14479
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14480
|
-
type: "label18",
|
|
14481
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.of))
|
|
14482
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14483
|
-
type: "label4",
|
|
14484
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.profileNameMessage, {
|
|
14485
|
-
values: {
|
|
14486
|
-
profileName: dtData == null || (_dtData$contextData2 = dtData.contextData) == null ? void 0 : _dtData$contextData2.profileName
|
|
14487
|
-
}
|
|
14488
|
-
}))
|
|
14489
|
-
})]
|
|
14490
|
-
});
|
|
14491
|
-
default:
|
|
14492
|
-
return null;
|
|
14493
|
-
}
|
|
14494
|
-
};
|
|
14495
|
-
return renderContent();
|
|
14496
|
-
};
|
|
14497
|
-
const LabelType = _ref4 => {
|
|
14498
|
-
let {
|
|
14499
|
-
children
|
|
14500
|
-
} = _ref4;
|
|
14501
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14502
|
-
type: "label18",
|
|
14503
|
-
children: children
|
|
14504
|
-
});
|
|
14505
|
-
};
|
|
14506
|
-
const getAdditionalConditions = () => Object.values(additionalFields != null ? additionalFields : {}).length > 0 ? Object.values(additionalFields != null ? additionalFields : {}).map((_ref5, index) => {
|
|
14507
|
-
var _operandsMapping5, _linkedConditionExpre2;
|
|
14508
|
-
let {
|
|
14509
|
-
description: linkedDescription,
|
|
14510
|
-
factId: linkedFact,
|
|
14511
|
-
expression: linkedConditionExpression
|
|
14512
|
-
} = _ref5;
|
|
14513
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
14514
|
-
children: [!hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(LabelType, {
|
|
14515
|
-
children: !index ? lineItemMsg : andMsg
|
|
14516
|
-
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14517
|
-
className: _styles.default.capConditionPreview__label,
|
|
14518
|
-
type: "label2",
|
|
14519
|
-
children: linkedDescription
|
|
14520
|
-
}), !hideNumberAndProductFields && linkedConditionExpression && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14521
|
-
type: "label18",
|
|
14522
|
-
children: (_operandsMapping5 = operandsMapping[(_linkedConditionExpre2 = linkedConditionExpression.operator) != null ? _linkedConditionExpre2 : '']) == null ? void 0 : _operandsMapping5.text
|
|
14523
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {
|
|
14524
|
-
linkedFact: linkedFact,
|
|
14525
|
-
linkedDataType: _constants.MULTI_SELECT,
|
|
14526
|
-
linkedConditionExpression: linkedConditionExpression
|
|
14527
|
-
})]
|
|
14528
|
-
}, index);
|
|
14529
|
-
}) : null;
|
|
14530
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
14531
|
-
className: (0, _classnames.default)(className, 'cap-condition-wrapper'),
|
|
14532
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColumn.default, {
|
|
14533
|
-
xs: 25,
|
|
14534
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
14535
|
-
className: _styles.default.capConditionPreview__flexWrapDiv,
|
|
14536
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14537
|
-
type: "label18",
|
|
14538
|
-
children: isExcluded ? excludeMsg : includeMsg
|
|
14539
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14540
|
-
type: "label18",
|
|
14541
|
-
children: whoseMsg
|
|
14542
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14543
|
-
className: _styles.default.capConditionPreview__label,
|
|
14544
|
-
type: "label2",
|
|
14545
|
-
children: conditionName
|
|
14546
|
-
}), (type !== _constants.STRING || hideNumberAndProductFields) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14547
|
-
type: "label18",
|
|
14548
|
-
children: isMsg
|
|
14549
|
-
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {}), getAdditionalConditions()]
|
|
14550
|
-
})
|
|
14551
|
-
})
|
|
14552
|
-
});
|
|
14553
|
-
};
|
|
14554
|
-
var _default = exports["default"] = (0, _LocaleHoc.default)(CapConditionPreview, {
|
|
14555
|
-
key: 'CapConditionPreview'
|
|
14556
|
-
});
|
|
14557
|
-
|
|
14558
|
-
/***/ }),
|
|
14559
|
-
|
|
14560
14375
|
/***/ 9180:
|
|
14561
14376
|
/***/ ((__unused_webpack_module, exports) => {
|
|
14562
14377
|
|
|
@@ -19429,6 +19244,102 @@ var _default = exports["default"] = Empty;
|
|
|
19429
19244
|
|
|
19430
19245
|
/***/ }),
|
|
19431
19246
|
|
|
19247
|
+
/***/ 21505:
|
|
19248
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
19249
|
+
|
|
19250
|
+
"use strict";
|
|
19251
|
+
|
|
19252
|
+
|
|
19253
|
+
exports.__esModule = true;
|
|
19254
|
+
exports["default"] = exports.CapOrgSelect = void 0;
|
|
19255
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
19256
|
+
var _CapUnifiedSelect = _interopRequireDefault(__webpack_require__(3535));
|
|
19257
|
+
var _constants = __webpack_require__(99788);
|
|
19258
|
+
var _utils = __webpack_require__(8052);
|
|
19259
|
+
var _CapOrgSelectUtils = __webpack_require__(2834);
|
|
19260
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
19261
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19262
|
+
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); }
|
|
19263
|
+
/**
|
|
19264
|
+
* Wrapper component that maintains backward compatibility with the old Select API
|
|
19265
|
+
* while using CapUnifiedSelect internally.
|
|
19266
|
+
*
|
|
19267
|
+
* This component transforms the org/OU data structure (accessibleOus) to tree structure (children)
|
|
19268
|
+
* and handles the callback signature difference.
|
|
19269
|
+
*/
|
|
19270
|
+
const CapOrgSelect = _ref => {
|
|
19271
|
+
let {
|
|
19272
|
+
items = [],
|
|
19273
|
+
selectedItem,
|
|
19274
|
+
selectedOuItem,
|
|
19275
|
+
handleItemChange,
|
|
19276
|
+
showSearch = false,
|
|
19277
|
+
showHeader = false,
|
|
19278
|
+
title,
|
|
19279
|
+
placeholder: _placeholder,
|
|
19280
|
+
// Deprecated: Not supported by CapUnifiedSelect (uses hardcoded 'Search')
|
|
19281
|
+
noResultText = 'No results found',
|
|
19282
|
+
selectPlaceholder = 'Select',
|
|
19283
|
+
showCapillaryIcon = false,
|
|
19284
|
+
fixedOrg = false,
|
|
19285
|
+
className
|
|
19286
|
+
} = _ref;
|
|
19287
|
+
// Transform data: accessibleOus → children, and add sitemap icons for organizations
|
|
19288
|
+
const options = (0, _react.useMemo)(() => (0, _CapOrgSelectUtils.transformOrgOuToTreeOptions)(items), [items]);
|
|
19289
|
+
|
|
19290
|
+
// Determine selected value (prefer OU value if selected, otherwise org value)
|
|
19291
|
+
const value = (0, _react.useMemo)(() => (0, _CapOrgSelectUtils.getSelectedValue)(selectedItem, selectedOuItem), [selectedItem, selectedOuItem]);
|
|
19292
|
+
|
|
19293
|
+
// Build tree maps for onChange handler
|
|
19294
|
+
const treeMaps = (0, _react.useMemo)(() => (0, _utils.buildTreeMaps)(options), [options]);
|
|
19295
|
+
|
|
19296
|
+
// Handle change - transform CapUnifiedSelect's onChange to handleItemChange signature
|
|
19297
|
+
const onChange = newValue => {
|
|
19298
|
+
(0, _CapOrgSelectUtils.handleSelectChange)(newValue, treeMaps, handleItemChange);
|
|
19299
|
+
};
|
|
19300
|
+
|
|
19301
|
+
// Custom prefix for selected value display (logo + first letter)
|
|
19302
|
+
const prefix = (0, _react.useMemo)(() => (0, _CapOrgSelectUtils.createPrefix)(value, treeMaps, showCapillaryIcon), [value, treeMaps, showCapillaryIcon]);
|
|
19303
|
+
|
|
19304
|
+
// Check if select should be disabled
|
|
19305
|
+
const disabled = (0, _react.useMemo)(() => (0, _CapOrgSelectUtils.isSelectDisabled)(fixedOrg, items), [fixedOrg, items]);
|
|
19306
|
+
|
|
19307
|
+
// Determine if we should use treeSelect (has OUs) or regular select (no OUs)
|
|
19308
|
+
const selectType = (0, _react.useMemo)(() => {
|
|
19309
|
+
const type = (0, _CapOrgSelectUtils.getSelectType)(items);
|
|
19310
|
+
return type === 'treeSelect' ? _constants.SELECT_TYPES.TREE_SELECT : _constants.SELECT_TYPES.SELECT;
|
|
19311
|
+
}, [items]);
|
|
19312
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapUnifiedSelect.default, {
|
|
19313
|
+
size: 'middle',
|
|
19314
|
+
type: selectType,
|
|
19315
|
+
options: options,
|
|
19316
|
+
value: value,
|
|
19317
|
+
onChange: onChange,
|
|
19318
|
+
placeholder: selectPlaceholder,
|
|
19319
|
+
showSearch: showSearch,
|
|
19320
|
+
headerLabel: showHeader ? title : undefined,
|
|
19321
|
+
noResultCustomText: noResultText,
|
|
19322
|
+
disabled: disabled,
|
|
19323
|
+
className: className,
|
|
19324
|
+
style: {
|
|
19325
|
+
width: '17.143rem'
|
|
19326
|
+
},
|
|
19327
|
+
listHeight: 200,
|
|
19328
|
+
virtualRowHeight: 40,
|
|
19329
|
+
enableVirtualization: false // Virtualization is ENABLED (false → virtual={true} due to prop inversion in CapUnifiedSelect)
|
|
19330
|
+
,
|
|
19331
|
+
staticValue: true // Client-side search
|
|
19332
|
+
,
|
|
19333
|
+
searchBasedOn: "label",
|
|
19334
|
+
resetSearch: true,
|
|
19335
|
+
prefix: prefix
|
|
19336
|
+
});
|
|
19337
|
+
};
|
|
19338
|
+
exports.CapOrgSelect = CapOrgSelect;
|
|
19339
|
+
var _default = exports["default"] = CapOrgSelect;
|
|
19340
|
+
|
|
19341
|
+
/***/ }),
|
|
19342
|
+
|
|
19432
19343
|
/***/ 21549:
|
|
19433
19344
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
19434
19345
|
|
|
@@ -24037,58 +23948,6 @@ const SvgLightningSvg = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _exten
|
|
|
24037
23948
|
}));
|
|
24038
23949
|
var _default = exports["default"] = SvgLightningSvg;
|
|
24039
23950
|
|
|
24040
|
-
/***/ }),
|
|
24041
|
-
|
|
24042
|
-
/***/ 29236:
|
|
24043
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24044
|
-
|
|
24045
|
-
"use strict";
|
|
24046
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24047
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24048
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24049
|
-
/* harmony export */ });
|
|
24050
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
24051
|
-
/* 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__);
|
|
24052
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
24053
|
-
/* 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__);
|
|
24054
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
24055
|
-
/* 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__);
|
|
24056
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
24057
|
-
/* 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__);
|
|
24058
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
24059
|
-
/* 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__);
|
|
24060
|
-
/* 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__(98289);
|
|
24061
|
-
/* 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__);
|
|
24062
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
24063
|
-
/* 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__]
|
|
24064
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
24065
|
-
|
|
24066
|
-
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
var options = {};
|
|
24077
|
-
|
|
24078
|
-
;
|
|
24079
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
24080
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
24081
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
24082
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
24083
|
-
|
|
24084
|
-
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);
|
|
24085
|
-
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
|
|
24089
|
-
/* 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);
|
|
24090
|
-
|
|
24091
|
-
|
|
24092
23951
|
/***/ }),
|
|
24093
23952
|
|
|
24094
23953
|
/***/ 29303:
|
|
@@ -29926,44 +29785,6 @@ var _default = exports["default"] = SvgInApp;
|
|
|
29926
29785
|
|
|
29927
29786
|
/***/ }),
|
|
29928
29787
|
|
|
29929
|
-
/***/ 41859:
|
|
29930
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
29931
|
-
|
|
29932
|
-
"use strict";
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
exports.__esModule = true;
|
|
29936
|
-
exports.UPLOAD = exports.TEXT_ON_MSG = exports.TEXT_DAYS_BEFORE_MSG = exports.TEXT_DAYS_AFTER_MSG = exports.TEXT_BETWEEN_MSG = exports.TEXT_BEFORE_MSG = exports.TEXT_AFTER_MSG = exports.STRING_LIST = exports.STRING = exports.SKU = exports.PRODUCT_ATTRIBUTE = exports.NUMBER = exports.MULTI_SELECT = exports.LIST = exports.EXTENDED_FIELD = exports.ENTRY_TRIGGER_EVENT_ATTRIBUTE = exports.DATE_TYPE_SINGLE = exports.DATE_TYPE_RANGE = exports.DATE_TYPE_DAYS_BEFORE = exports.DATE_TYPE_DAYS_AFTER = exports.DATE_TYPE = exports.CUSTOM_FIELD = exports.CATEGORY = void 0;
|
|
29937
|
-
const LIST = exports.LIST = 'LIST';
|
|
29938
|
-
const MULTI_SELECT = exports.MULTI_SELECT = 'MULTI_SELECT';
|
|
29939
|
-
const NUMBER = exports.NUMBER = 'NUMBER';
|
|
29940
|
-
const STRING = exports.STRING = 'STRING';
|
|
29941
|
-
const DATE_TYPE = exports.DATE_TYPE = 'DATE';
|
|
29942
|
-
const PRODUCT_ATTRIBUTE = exports.PRODUCT_ATTRIBUTE = 'PRODUCT_ATTRIBUTE';
|
|
29943
|
-
const CUSTOM_FIELD = exports.CUSTOM_FIELD = 'CUSTOM_FIELD';
|
|
29944
|
-
const EXTENDED_FIELD = exports.EXTENDED_FIELD = 'EXTENDED_FIELD';
|
|
29945
|
-
const SKU = exports.SKU = 'SKU';
|
|
29946
|
-
const CATEGORY = exports.CATEGORY = 'CATEGORY';
|
|
29947
|
-
const UPLOAD = exports.UPLOAD = 'UPLOAD';
|
|
29948
|
-
const ENTRY_TRIGGER_EVENT_ATTRIBUTE = exports.ENTRY_TRIGGER_EVENT_ATTRIBUTE = 'entryTriggerEventAttribute';
|
|
29949
|
-
const STRING_LIST = exports.STRING_LIST = 'STRING_LIST';
|
|
29950
|
-
|
|
29951
|
-
// Text constants for operand mapping
|
|
29952
|
-
const TEXT_ON_MSG = exports.TEXT_ON_MSG = 'onMsg';
|
|
29953
|
-
const TEXT_BEFORE_MSG = exports.TEXT_BEFORE_MSG = 'beforeMsg';
|
|
29954
|
-
const TEXT_AFTER_MSG = exports.TEXT_AFTER_MSG = 'afterMsg';
|
|
29955
|
-
const TEXT_BETWEEN_MSG = exports.TEXT_BETWEEN_MSG = 'betweenMsg';
|
|
29956
|
-
const TEXT_DAYS_BEFORE_MSG = exports.TEXT_DAYS_BEFORE_MSG = 'daysBeforeMsg';
|
|
29957
|
-
const TEXT_DAYS_AFTER_MSG = exports.TEXT_DAYS_AFTER_MSG = 'daysAfterMsg';
|
|
29958
|
-
|
|
29959
|
-
// Date type constants
|
|
29960
|
-
const DATE_TYPE_RANGE = exports.DATE_TYPE_RANGE = 'RANGE';
|
|
29961
|
-
const DATE_TYPE_SINGLE = exports.DATE_TYPE_SINGLE = 'SINGLE';
|
|
29962
|
-
const DATE_TYPE_DAYS_AFTER = exports.DATE_TYPE_DAYS_AFTER = 'DAYS_AFTER';
|
|
29963
|
-
const DATE_TYPE_DAYS_BEFORE = exports.DATE_TYPE_DAYS_BEFORE = 'DAYS_BEFORE';
|
|
29964
|
-
|
|
29965
|
-
/***/ }),
|
|
29966
|
-
|
|
29967
29788
|
/***/ 41946:
|
|
29968
29789
|
/***/ ((__unused_webpack_module, exports) => {
|
|
29969
29790
|
|
|
@@ -32755,6 +32576,419 @@ var _default = exports["default"] = searchIcon;
|
|
|
32755
32576
|
|
|
32756
32577
|
/***/ }),
|
|
32757
32578
|
|
|
32579
|
+
/***/ 46035:
|
|
32580
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
32581
|
+
|
|
32582
|
+
"use strict";
|
|
32583
|
+
|
|
32584
|
+
|
|
32585
|
+
exports.__esModule = true;
|
|
32586
|
+
exports["default"] = void 0;
|
|
32587
|
+
var _antdV = __webpack_require__(64273);
|
|
32588
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
32589
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
32590
|
+
var _icons = __webpack_require__(30775);
|
|
32591
|
+
var _CapDivider = _interopRequireDefault(__webpack_require__(23406));
|
|
32592
|
+
var _CapDrawer = _interopRequireDefault(__webpack_require__(78716));
|
|
32593
|
+
var _CapDropdown = _interopRequireDefault(__webpack_require__(59732));
|
|
32594
|
+
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
32595
|
+
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
32596
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
32597
|
+
var _CapLink = _interopRequireDefault(__webpack_require__(43223));
|
|
32598
|
+
var _CapList = _interopRequireDefault(__webpack_require__(34979));
|
|
32599
|
+
var _CapMenu = _interopRequireDefault(__webpack_require__(88578));
|
|
32600
|
+
var _CapPopover = _interopRequireDefault(__webpack_require__(33018));
|
|
32601
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
32602
|
+
var _CapTooltip = _interopRequireDefault(__webpack_require__(85684));
|
|
32603
|
+
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
32604
|
+
var _constants = __webpack_require__(77608);
|
|
32605
|
+
var _CapOrgSelect = _interopRequireDefault(__webpack_require__(21505));
|
|
32606
|
+
var _styles = _interopRequireDefault(__webpack_require__(49789));
|
|
32607
|
+
var _utils = __webpack_require__(74032);
|
|
32608
|
+
var _themeConfig = __webpack_require__(69490);
|
|
32609
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
32610
|
+
const _excluded = ["onMenuItemClick", "items"],
|
|
32611
|
+
_excluded2 = ["iconType", "onClickHandler", "className", "toolTip", "placement", "content"],
|
|
32612
|
+
_excluded3 = ["fixedProduct", "productsList", "selectedProduct", "handleProductChange", "title"];
|
|
32613
|
+
/**
|
|
32614
|
+
*
|
|
32615
|
+
* CapTopBar
|
|
32616
|
+
*
|
|
32617
|
+
*/
|
|
32618
|
+
// TODO: Uncomment when CapAskAira is migrated
|
|
32619
|
+
// import CapAskAira from '../CapAskAira';
|
|
32620
|
+
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); }
|
|
32621
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32622
|
+
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); }
|
|
32623
|
+
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; }
|
|
32624
|
+
const {
|
|
32625
|
+
Header
|
|
32626
|
+
} = _antdV.Layout;
|
|
32627
|
+
const clsPrefix = 'cap-navbar';
|
|
32628
|
+
const CONNECT_PLUS = 'connectPlus';
|
|
32629
|
+
const ASK_AIRA = 'ask aiRA';
|
|
32630
|
+
const ASK_AIRA_SMALL = 'ask aira';
|
|
32631
|
+
const getLanguageName = function (languageCode, locale) {
|
|
32632
|
+
if (locale === void 0) {
|
|
32633
|
+
locale = 'en';
|
|
32634
|
+
}
|
|
32635
|
+
const updatedLanguageCode = languageCode == null ? void 0 : languageCode.split('_')[0];
|
|
32636
|
+
const formatter = new Intl.DisplayNames([locale], {
|
|
32637
|
+
type: 'language'
|
|
32638
|
+
});
|
|
32639
|
+
return formatter.of(updatedLanguageCode) || '';
|
|
32640
|
+
};
|
|
32641
|
+
const CapTopBar = _ref => {
|
|
32642
|
+
let {
|
|
32643
|
+
drawerListProps,
|
|
32644
|
+
selectProps,
|
|
32645
|
+
menuProps,
|
|
32646
|
+
dropdownMenuProps,
|
|
32647
|
+
topbarIcons,
|
|
32648
|
+
breadcrumbs,
|
|
32649
|
+
showDocumentationBot,
|
|
32650
|
+
isLatestLeftNavigationEnabled = false,
|
|
32651
|
+
leftNavbarExpanded = false,
|
|
32652
|
+
headerOverideCss = {},
|
|
32653
|
+
request,
|
|
32654
|
+
getAPICallObject,
|
|
32655
|
+
userData,
|
|
32656
|
+
children
|
|
32657
|
+
} = _ref;
|
|
32658
|
+
const [showDrawer, setShowDrawer] = (0, _react.useState)(false);
|
|
32659
|
+
const [visible, setVisible] = (0, _react.useState)(false);
|
|
32660
|
+
const dimensionsClassName = isLatestLeftNavigationEnabled ? _styles.default[clsPrefix + "-new-dimensions"] : _styles.default[clsPrefix + "-dimensions"];
|
|
32661
|
+
const expandUserBackground = (0, _react.useCallback)(flag => {
|
|
32662
|
+
setVisible(flag);
|
|
32663
|
+
}, []);
|
|
32664
|
+
const openDrawer = (0, _react.useCallback)(() => {
|
|
32665
|
+
setShowDrawer(true);
|
|
32666
|
+
}, []);
|
|
32667
|
+
const closeDrawer = (0, _react.useCallback)(() => {
|
|
32668
|
+
setShowDrawer(false);
|
|
32669
|
+
}, []);
|
|
32670
|
+
const renderTopMenu = (0, _react.useCallback)(() => {
|
|
32671
|
+
if (!menuProps) return null;
|
|
32672
|
+
const {
|
|
32673
|
+
onMenuItemClick,
|
|
32674
|
+
items
|
|
32675
|
+
} = menuProps,
|
|
32676
|
+
restMenuProps = _objectWithoutPropertiesLoose(menuProps, _excluded);
|
|
32677
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.ConfigProvider, {
|
|
32678
|
+
theme: _themeConfig.menuTheme,
|
|
32679
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default, _extends({
|
|
32680
|
+
className: _styles.default[clsPrefix + "-menu"],
|
|
32681
|
+
mode: "horizontal",
|
|
32682
|
+
style: {
|
|
32683
|
+
lineHeight: styledVars.CAP_SPACE_64
|
|
32684
|
+
}
|
|
32685
|
+
}, restMenuProps, {
|
|
32686
|
+
children: items && items.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default.Item, {
|
|
32687
|
+
className: _styles.default[clsPrefix + "-menu-item"],
|
|
32688
|
+
onClick: onMenuItemClick ? () => onMenuItemClick(item) : undefined,
|
|
32689
|
+
children: item.label
|
|
32690
|
+
}, item.key))
|
|
32691
|
+
}))
|
|
32692
|
+
});
|
|
32693
|
+
}, [menuProps]);
|
|
32694
|
+
const renderTopbarIcons = (0, _react.useCallback)(() => {
|
|
32695
|
+
if (!topbarIcons) return null;
|
|
32696
|
+
return _react.default.Children.toArray(topbarIcons.map((_ref2, index) => {
|
|
32697
|
+
let {
|
|
32698
|
+
iconType,
|
|
32699
|
+
onClickHandler,
|
|
32700
|
+
className,
|
|
32701
|
+
toolTip,
|
|
32702
|
+
placement,
|
|
32703
|
+
content
|
|
32704
|
+
} = _ref2,
|
|
32705
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
32706
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltip.default, {
|
|
32707
|
+
title: toolTip,
|
|
32708
|
+
placement: placement || 'bottom',
|
|
32709
|
+
children: iconType === 'custom' ? content : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, _extends({
|
|
32710
|
+
onClick: onClickHandler ? () => onClickHandler() : undefined,
|
|
32711
|
+
className: (0, _classnames.default)(_styles.default["" + clsPrefix + (isLatestLeftNavigationEnabled ? '-new' : '') + "-topbarIcon"] || '', className),
|
|
32712
|
+
type: iconType
|
|
32713
|
+
}, rest))
|
|
32714
|
+
}, index);
|
|
32715
|
+
}));
|
|
32716
|
+
}, [topbarIcons, isLatestLeftNavigationEnabled]);
|
|
32717
|
+
const userInfoContent = (0, _react.useCallback)(dropdownMenuPropsList => {
|
|
32718
|
+
const logOutProps = dropdownMenuPropsList && dropdownMenuPropsList.length > 0 ? dropdownMenuPropsList[dropdownMenuPropsList.length - 1] : {};
|
|
32719
|
+
const {
|
|
32720
|
+
user = {}
|
|
32721
|
+
} = userData || {};
|
|
32722
|
+
const {
|
|
32723
|
+
firstName = '',
|
|
32724
|
+
loginName,
|
|
32725
|
+
iso_lang
|
|
32726
|
+
} = user;
|
|
32727
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32728
|
+
className: _styles.default['user-profile'],
|
|
32729
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32730
|
+
className: _styles.default['user-profile-name-wrapper'],
|
|
32731
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
32732
|
+
className: _styles.default['user-profile-avatar'],
|
|
32733
|
+
children: [" ", (firstName == null ? void 0 : firstName[0]) || '', " "]
|
|
32734
|
+
})
|
|
32735
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32736
|
+
className: _styles.default['user-profile-name'],
|
|
32737
|
+
children: firstName
|
|
32738
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
32739
|
+
className: _styles.default['user-profile-loginName'],
|
|
32740
|
+
children: loginName
|
|
32741
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32742
|
+
className: _styles.default['lang-wrapper'],
|
|
32743
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32744
|
+
className: _styles.default['lang-icon'],
|
|
32745
|
+
type: "global",
|
|
32746
|
+
size: "s"
|
|
32747
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32748
|
+
children: getLanguageName(iso_lang)
|
|
32749
|
+
})]
|
|
32750
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32751
|
+
className: _styles.default['logout-wrapper'],
|
|
32752
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32753
|
+
type: "exit",
|
|
32754
|
+
size: "s"
|
|
32755
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32756
|
+
className: _styles.default['logout-text'],
|
|
32757
|
+
onClick: 'onClickHandler' in logOutProps && logOutProps.onClickHandler ? () => logOutProps.onClickHandler == null ? void 0 : logOutProps.onClickHandler() : undefined,
|
|
32758
|
+
children: logOutProps.label || ''
|
|
32759
|
+
})]
|
|
32760
|
+
})]
|
|
32761
|
+
});
|
|
32762
|
+
}, [userData]);
|
|
32763
|
+
const userProfileContent = (0, _react.useCallback)(() => {
|
|
32764
|
+
var _user, _user2, _user3;
|
|
32765
|
+
let user = userData == null ? void 0 : userData.user;
|
|
32766
|
+
try {
|
|
32767
|
+
const userDataFromStorage = localStorage.getItem('user');
|
|
32768
|
+
if (userDataFromStorage) {
|
|
32769
|
+
user = JSON.parse(userDataFromStorage);
|
|
32770
|
+
}
|
|
32771
|
+
} catch (error) {
|
|
32772
|
+
console.error('error', error);
|
|
32773
|
+
}
|
|
32774
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
32775
|
+
type: "flex",
|
|
32776
|
+
align: "middle",
|
|
32777
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
32778
|
+
type: "flex",
|
|
32779
|
+
justify: "center",
|
|
32780
|
+
align: "middle",
|
|
32781
|
+
className: _styles.default['user-profile-icon'],
|
|
32782
|
+
children: (_user = user) == null || (_user = _user.firstName) == null || (_user = _user.charAt(0)) == null ? void 0 : _user.toUpperCase()
|
|
32783
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
32784
|
+
type: "block",
|
|
32785
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
32786
|
+
type: "label15",
|
|
32787
|
+
lineHeight: "1.25rem",
|
|
32788
|
+
children: ((_user2 = user) == null ? void 0 : _user2.firstName) || ''
|
|
32789
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
32790
|
+
type: "label1",
|
|
32791
|
+
lineHeight: "1rem",
|
|
32792
|
+
children: ((_user3 = user) == null ? void 0 : _user3.loginName) || ''
|
|
32793
|
+
})]
|
|
32794
|
+
})]
|
|
32795
|
+
});
|
|
32796
|
+
}, [userData]);
|
|
32797
|
+
const renderDropdownMenu = (0, _react.useCallback)(() => {
|
|
32798
|
+
if (!dropdownMenuProps) return null;
|
|
32799
|
+
return !isLatestLeftNavigationEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDropdown.default, {
|
|
32800
|
+
trigger: ['click'],
|
|
32801
|
+
onOpenChange: expandUserBackground,
|
|
32802
|
+
overlay: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default, {
|
|
32803
|
+
className: _styles.default[clsPrefix + "-menu"],
|
|
32804
|
+
children: dropdownMenuProps.map(dropdownMenuProp => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapMenu.default.Item, {
|
|
32805
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32806
|
+
onClick: dropdownMenuProp.onClickHandler ? () => dropdownMenuProp.onClickHandler == null ? void 0 : dropdownMenuProp.onClickHandler() : undefined,
|
|
32807
|
+
className: _styles.default[clsPrefix + "-user-popover-item"],
|
|
32808
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32809
|
+
children: dropdownMenuProp.key === _constants.USER_PROFILE_KEY ? userProfileContent() : (dropdownMenuProp == null ? void 0 : dropdownMenuProp.label) || ''
|
|
32810
|
+
})
|
|
32811
|
+
})
|
|
32812
|
+
}, dropdownMenuProp.key))
|
|
32813
|
+
}),
|
|
32814
|
+
placement: "bottomLeft",
|
|
32815
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32816
|
+
className: (0, _classnames.default)(_styles.default["" + clsPrefix + (isLatestLeftNavigationEnabled ? '-new' : '') + "-user"], visible && _styles.default['oval'], leftNavbarExpanded ? 'expanded' : 'collapsed'),
|
|
32817
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LogoBackground, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32818
|
+
className: _styles.default['text-label'],
|
|
32819
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32820
|
+
type: "person",
|
|
32821
|
+
size: "s",
|
|
32822
|
+
className: _styles.default[clsPrefix + "-person"]
|
|
32823
|
+
})
|
|
32824
|
+
})]
|
|
32825
|
+
})
|
|
32826
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapPopover.default, {
|
|
32827
|
+
content: userInfoContent(dropdownMenuProps),
|
|
32828
|
+
placement: "bottomRight",
|
|
32829
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32830
|
+
className: (0, _classnames.default)(_styles.default["" + clsPrefix + (isLatestLeftNavigationEnabled ? '-new' : '') + "-user"], leftNavbarExpanded ? 'expanded' : 'collapsed'),
|
|
32831
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LogoBackground, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32832
|
+
className: _styles.default['text-label'],
|
|
32833
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32834
|
+
type: "person",
|
|
32835
|
+
size: "s",
|
|
32836
|
+
className: _styles.default[clsPrefix + "-person"]
|
|
32837
|
+
})
|
|
32838
|
+
})]
|
|
32839
|
+
})
|
|
32840
|
+
});
|
|
32841
|
+
}, [dropdownMenuProps, isLatestLeftNavigationEnabled, leftNavbarExpanded, visible, expandUserBackground, userProfileContent, userInfoContent]);
|
|
32842
|
+
const getDrawerTitle = (0, _react.useCallback)(title => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32843
|
+
className: _styles.default[clsPrefix + "-flexDisplay"],
|
|
32844
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32845
|
+
type: "more-applications",
|
|
32846
|
+
className: _styles.default[clsPrefix + "-more-app"]
|
|
32847
|
+
}), title || '']
|
|
32848
|
+
}), []);
|
|
32849
|
+
const getDrawerContent = (0, _react.useCallback)((productsList, handleProductChange, selectedProduct) => {
|
|
32850
|
+
let productsComps = [];
|
|
32851
|
+
if (productsList && handleProductChange && selectedProduct) {
|
|
32852
|
+
productsComps = productsList.map(product => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLink.default, {
|
|
32853
|
+
href: "#",
|
|
32854
|
+
onClick: () => (product.key || '') !== CONNECT_PLUS ? handleProductChange(product) : (0, _utils.handleConnectPlusRedirection)({
|
|
32855
|
+
product: product,
|
|
32856
|
+
cluster: window.location.host
|
|
32857
|
+
}),
|
|
32858
|
+
title: product && selectedProduct.toLowerCase() === (product.value || '').toLowerCase() ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32859
|
+
style: {
|
|
32860
|
+
display: 'flex',
|
|
32861
|
+
paddingLeft: styledVars.CAP_SPACE_32
|
|
32862
|
+
},
|
|
32863
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32864
|
+
type: "tick",
|
|
32865
|
+
size: "s",
|
|
32866
|
+
"data-testid": "tick-icon",
|
|
32867
|
+
svgProps: {
|
|
32868
|
+
fill: styledVars.CAP_BLUE01
|
|
32869
|
+
}
|
|
32870
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
32871
|
+
type: "h3",
|
|
32872
|
+
className: (0, _classnames.default)({
|
|
32873
|
+
[_styles.default[clsPrefix + "-capitalize"]]: product.value !== ASK_AIRA_SMALL
|
|
32874
|
+
}),
|
|
32875
|
+
children: (product.value === ASK_AIRA_SMALL ? ASK_AIRA : product.value) || ''
|
|
32876
|
+
})]
|
|
32877
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32878
|
+
style: {
|
|
32879
|
+
paddingLeft: styledVars.CAP_SPACE_60
|
|
32880
|
+
},
|
|
32881
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
32882
|
+
type: "h3",
|
|
32883
|
+
className: (0, _classnames.default)({
|
|
32884
|
+
[_styles.default[clsPrefix + "-capitalize"]]: product.value !== ASK_AIRA_SMALL
|
|
32885
|
+
}),
|
|
32886
|
+
children: (product.value === ASK_AIRA_SMALL ? ASK_AIRA : product.value) || ''
|
|
32887
|
+
})
|
|
32888
|
+
})
|
|
32889
|
+
}, product.key || product.name));
|
|
32890
|
+
}
|
|
32891
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapList.default, {
|
|
32892
|
+
dataSource: productsComps,
|
|
32893
|
+
renderItem: item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapList.default.Item, {
|
|
32894
|
+
children: item
|
|
32895
|
+
})
|
|
32896
|
+
});
|
|
32897
|
+
}, []);
|
|
32898
|
+
const renderDrawerList = (0, _react.useCallback)(() => {
|
|
32899
|
+
if (!drawerListProps) return null;
|
|
32900
|
+
const {
|
|
32901
|
+
fixedProduct = false,
|
|
32902
|
+
productsList,
|
|
32903
|
+
selectedProduct,
|
|
32904
|
+
handleProductChange,
|
|
32905
|
+
title
|
|
32906
|
+
} = drawerListProps,
|
|
32907
|
+
rest = _objectWithoutPropertiesLoose(drawerListProps, _excluded3);
|
|
32908
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
32909
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32910
|
+
className: dimensionsClassName,
|
|
32911
|
+
children: [fixedProduct ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32912
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
32913
|
+
type: "h3",
|
|
32914
|
+
"data-testid": "selected-product-heading",
|
|
32915
|
+
className: _styles.default[clsPrefix + "-product-title"],
|
|
32916
|
+
children: selectedProduct || ''
|
|
32917
|
+
})
|
|
32918
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32919
|
+
onClick: openDrawer,
|
|
32920
|
+
className: (0, _classnames.default)(_styles.default[clsPrefix + "-flexDisplay"], _styles.default[clsPrefix + "-cursor-pointer"]),
|
|
32921
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
32922
|
+
type: "more-applications",
|
|
32923
|
+
className: _styles.default[clsPrefix + "-more-app"]
|
|
32924
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapHeading.default, {
|
|
32925
|
+
type: "h3",
|
|
32926
|
+
"data-testid": "selected-product-heading",
|
|
32927
|
+
className: (0, _classnames.default)({
|
|
32928
|
+
[_styles.default[clsPrefix + "-capitalize"]]: selectedProduct !== ASK_AIRA_SMALL
|
|
32929
|
+
}),
|
|
32930
|
+
children: (selectedProduct === ASK_AIRA_SMALL ? ASK_AIRA : selectedProduct) || ''
|
|
32931
|
+
})]
|
|
32932
|
+
}), showDrawer && drawerListProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDrawer.default, _extends({
|
|
32933
|
+
open: showDrawer,
|
|
32934
|
+
onClose: closeDrawer,
|
|
32935
|
+
className: _styles.default[clsPrefix + "-drawer"],
|
|
32936
|
+
title: getDrawerTitle(title),
|
|
32937
|
+
content: getDrawerContent(productsList, handleProductChange, selectedProduct),
|
|
32938
|
+
closable: false
|
|
32939
|
+
}, rest))]
|
|
32940
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
|
|
32941
|
+
type: "vertical",
|
|
32942
|
+
className: _styles.default[clsPrefix + "-vertical"]
|
|
32943
|
+
})]
|
|
32944
|
+
});
|
|
32945
|
+
}, [drawerListProps, isLatestLeftNavigationEnabled, showDrawer, openDrawer, closeDrawer, getDrawerTitle, getDrawerContent]);
|
|
32946
|
+
const renderOrgsSelect = (0, _react.useCallback)(() => {
|
|
32947
|
+
if (!selectProps) return null;
|
|
32948
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32949
|
+
className: dimensionsClassName,
|
|
32950
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapOrgSelect.default, _extends({}, selectProps))
|
|
32951
|
+
});
|
|
32952
|
+
}, [selectProps, dimensionsClassName]);
|
|
32953
|
+
const renderBreadcrumbs = (0, _react.useCallback)(() => {
|
|
32954
|
+
return breadcrumbs ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
32955
|
+
type: "label2",
|
|
32956
|
+
className: _styles.default["breadcrumbs-topbar-" + (leftNavbarExpanded ? 'expanded' : 'collapsed')],
|
|
32957
|
+
children: breadcrumbs
|
|
32958
|
+
}) : null;
|
|
32959
|
+
}, [breadcrumbs, leftNavbarExpanded]);
|
|
32960
|
+
const renderDividerBeforeOrgSelect = (0, _react.useCallback)(function (topbarIconsList, showDocumentationBotFlag) {
|
|
32961
|
+
var _topbarIconsList;
|
|
32962
|
+
if (topbarIconsList === void 0) {
|
|
32963
|
+
topbarIconsList = [];
|
|
32964
|
+
}
|
|
32965
|
+
return (((_topbarIconsList = topbarIconsList) == null ? void 0 : _topbarIconsList.length) > 0 || showDocumentationBotFlag) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
|
|
32966
|
+
type: "vertical",
|
|
32967
|
+
className: _styles.default[clsPrefix + "-vertical"],
|
|
32968
|
+
style: {
|
|
32969
|
+
marginLeft: '1.714rem',
|
|
32970
|
+
marginRight: '1.714rem'
|
|
32971
|
+
}
|
|
32972
|
+
});
|
|
32973
|
+
}, []);
|
|
32974
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.ConfigProvider, {
|
|
32975
|
+
theme: _themeConfig.topBarTheme,
|
|
32976
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
32977
|
+
style: _extends({}, headerOverideCss),
|
|
32978
|
+
className: (0, _classnames.default)(isLatestLeftNavigationEnabled ? _styles.default[clsPrefix + "-new-header"] : _styles.default[clsPrefix + "-header"]),
|
|
32979
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32980
|
+
className: _styles.default[clsPrefix + "-flexDisplay"],
|
|
32981
|
+
children: [isLatestLeftNavigationEnabled && breadcrumbs && renderBreadcrumbs(), !isLatestLeftNavigationEnabled && drawerListProps && renderDrawerList(), !isLatestLeftNavigationEnabled && selectProps && renderOrgsSelect()]
|
|
32982
|
+
}), menuProps && renderTopMenu(), topbarIcons && renderTopbarIcons(), isLatestLeftNavigationEnabled && selectProps && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
32983
|
+
children: [renderDividerBeforeOrgSelect(topbarIcons, showDocumentationBot), renderOrgsSelect()]
|
|
32984
|
+
}), dropdownMenuProps && renderDropdownMenu(), children]
|
|
32985
|
+
})
|
|
32986
|
+
});
|
|
32987
|
+
};
|
|
32988
|
+
var _default = exports["default"] = CapTopBar;
|
|
32989
|
+
|
|
32990
|
+
/***/ }),
|
|
32991
|
+
|
|
32758
32992
|
/***/ 46190:
|
|
32759
32993
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
32760
32994
|
|
|
@@ -34528,6 +34762,58 @@ const SvgGroupChat = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _extends(
|
|
|
34528
34762
|
}));
|
|
34529
34763
|
var _default = exports["default"] = SvgGroupChat;
|
|
34530
34764
|
|
|
34765
|
+
/***/ }),
|
|
34766
|
+
|
|
34767
|
+
/***/ 49789:
|
|
34768
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
34769
|
+
|
|
34770
|
+
"use strict";
|
|
34771
|
+
__webpack_require__.r(__webpack_exports__);
|
|
34772
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34773
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
34774
|
+
/* harmony export */ });
|
|
34775
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
34776
|
+
/* 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__);
|
|
34777
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
34778
|
+
/* 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__);
|
|
34779
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
34780
|
+
/* 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__);
|
|
34781
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
34782
|
+
/* 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__);
|
|
34783
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
34784
|
+
/* 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__);
|
|
34785
|
+
/* 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__(1344);
|
|
34786
|
+
/* 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__);
|
|
34787
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
34788
|
+
/* 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__]
|
|
34789
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
34790
|
+
|
|
34791
|
+
|
|
34792
|
+
|
|
34793
|
+
|
|
34794
|
+
|
|
34795
|
+
|
|
34796
|
+
|
|
34797
|
+
|
|
34798
|
+
|
|
34799
|
+
|
|
34800
|
+
|
|
34801
|
+
var options = {};
|
|
34802
|
+
|
|
34803
|
+
;
|
|
34804
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
34805
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
34806
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
34807
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
34808
|
+
|
|
34809
|
+
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);
|
|
34810
|
+
|
|
34811
|
+
|
|
34812
|
+
|
|
34813
|
+
|
|
34814
|
+
/* 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);
|
|
34815
|
+
|
|
34816
|
+
|
|
34531
34817
|
/***/ }),
|
|
34532
34818
|
|
|
34533
34819
|
/***/ 49838:
|
|
@@ -53509,7 +53795,6 @@ var _exportNames = {
|
|
|
53509
53795
|
CapDatePicker: true,
|
|
53510
53796
|
CapColoredTag: true,
|
|
53511
53797
|
CapColumn: true,
|
|
53512
|
-
CapConditionPreview: true,
|
|
53513
53798
|
CapCustomCheckboxList: true,
|
|
53514
53799
|
CapCustomList: true,
|
|
53515
53800
|
CapCustomSelect: true,
|
|
@@ -53564,6 +53849,7 @@ var _exportNames = {
|
|
|
53564
53849
|
CapTable: true,
|
|
53565
53850
|
CapTabV3: true,
|
|
53566
53851
|
CapTree: true,
|
|
53852
|
+
CapTopBar: true,
|
|
53567
53853
|
CapTooltip: true,
|
|
53568
53854
|
CapTooltipWithInfo: true,
|
|
53569
53855
|
CapTruncateList: true,
|
|
@@ -53582,7 +53868,7 @@ var _exportNames = {
|
|
|
53582
53868
|
CapIcons: true,
|
|
53583
53869
|
styledVars: true
|
|
53584
53870
|
};
|
|
53585
|
-
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTree = 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.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.
|
|
53871
|
+
exports.styledVars = 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.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.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;
|
|
53586
53872
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
53587
53873
|
exports.CapAlert = _CapAlert.default;
|
|
53588
53874
|
var _CapActionBar = _interopRequireDefault(__webpack_require__(9464));
|
|
@@ -53611,8 +53897,6 @@ var _CapColoredTag = _interopRequireDefault(__webpack_require__(22029));
|
|
|
53611
53897
|
exports.CapColoredTag = _CapColoredTag.default;
|
|
53612
53898
|
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
53613
53899
|
exports.CapColumn = _CapColumn.default;
|
|
53614
|
-
var _CapConditionPreview = _interopRequireDefault(__webpack_require__(9174));
|
|
53615
|
-
exports.CapConditionPreview = _CapConditionPreview.default;
|
|
53616
53900
|
var _CapCustomCheckboxList = _interopRequireDefault(__webpack_require__(1537));
|
|
53617
53901
|
exports.CapCustomCheckboxList = _CapCustomCheckboxList.default;
|
|
53618
53902
|
var _CapCustomList = _interopRequireDefault(__webpack_require__(66334));
|
|
@@ -53724,6 +54008,8 @@ var _CapTabV = _interopRequireDefault(__webpack_require__(60697));
|
|
|
53724
54008
|
exports.CapTabV3 = _CapTabV.default;
|
|
53725
54009
|
var _CapTree = _interopRequireDefault(__webpack_require__(70399));
|
|
53726
54010
|
exports.CapTree = _CapTree.default;
|
|
54011
|
+
var _CapTopBar = _interopRequireDefault(__webpack_require__(46035));
|
|
54012
|
+
exports.CapTopBar = _CapTopBar.default;
|
|
53727
54013
|
var _CapTooltip = _interopRequireDefault(__webpack_require__(85684));
|
|
53728
54014
|
exports.CapTooltip = _CapTooltip.default;
|
|
53729
54015
|
var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(74584));
|
|
@@ -56300,6 +56586,14 @@ var _default = exports["default"] = SvgInfoWithError;
|
|
|
56300
56586
|
|
|
56301
56587
|
/***/ }),
|
|
56302
56588
|
|
|
56589
|
+
/***/ 69038:
|
|
56590
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
56591
|
+
|
|
56592
|
+
"use strict";
|
|
56593
|
+
module.exports = __webpack_require__.p + "assets/icons/capillary_logo.svg";
|
|
56594
|
+
|
|
56595
|
+
/***/ }),
|
|
56596
|
+
|
|
56303
56597
|
/***/ 69271:
|
|
56304
56598
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
56305
56599
|
|
|
@@ -56448,6 +56742,47 @@ Object.keys(_useZIndex).forEach(function (key) {
|
|
|
56448
56742
|
|
|
56449
56743
|
/***/ }),
|
|
56450
56744
|
|
|
56745
|
+
/***/ 69490:
|
|
56746
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
56747
|
+
|
|
56748
|
+
"use strict";
|
|
56749
|
+
|
|
56750
|
+
|
|
56751
|
+
exports.__esModule = true;
|
|
56752
|
+
exports.topBarTheme = exports.menuTheme = void 0;
|
|
56753
|
+
var styledVars = _interopRequireWildcard(__webpack_require__(56587));
|
|
56754
|
+
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); }
|
|
56755
|
+
/** ConfigProvider theme for CapTopBar-scoped Drawer overrides */
|
|
56756
|
+
const topBarTheme = exports.topBarTheme = {
|
|
56757
|
+
components: {
|
|
56758
|
+
Drawer: {
|
|
56759
|
+
padding: 0,
|
|
56760
|
+
paddingLG: 0,
|
|
56761
|
+
colorSplit: styledVars.CAP_G07
|
|
56762
|
+
}
|
|
56763
|
+
}
|
|
56764
|
+
};
|
|
56765
|
+
|
|
56766
|
+
/** ConfigProvider theme for horizontal menu overrides */
|
|
56767
|
+
const menuTheme = exports.menuTheme = {
|
|
56768
|
+
components: {
|
|
56769
|
+
Menu: {
|
|
56770
|
+
colorPrimary: styledVars.CAP_G01,
|
|
56771
|
+
itemColor: styledVars.CAP_G04,
|
|
56772
|
+
itemSelectedColor: styledVars.CAP_G01,
|
|
56773
|
+
itemHoverColor: styledVars.CAP_G01,
|
|
56774
|
+
horizontalItemSelectedColor: styledVars.CAP_G01,
|
|
56775
|
+
horizontalItemSelectedBg: 'transparent',
|
|
56776
|
+
horizontalItemHoverColor: styledVars.CAP_G01,
|
|
56777
|
+
horizontalItemHoverBg: 'transparent',
|
|
56778
|
+
activeBarHeight: 2,
|
|
56779
|
+
activeBarBorderWidth: 2
|
|
56780
|
+
}
|
|
56781
|
+
}
|
|
56782
|
+
};
|
|
56783
|
+
|
|
56784
|
+
/***/ }),
|
|
56785
|
+
|
|
56451
56786
|
/***/ 69655:
|
|
56452
56787
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
56453
56788
|
|
|
@@ -59049,6 +59384,98 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
59049
59384
|
/* 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);
|
|
59050
59385
|
|
|
59051
59386
|
|
|
59387
|
+
/***/ }),
|
|
59388
|
+
|
|
59389
|
+
/***/ 74032:
|
|
59390
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
59391
|
+
|
|
59392
|
+
"use strict";
|
|
59393
|
+
|
|
59394
|
+
|
|
59395
|
+
exports.__esModule = true;
|
|
59396
|
+
exports.handleConnectPlusRedirection = void 0;
|
|
59397
|
+
// this is a hacky way to handle redirection for Connect+ via UI logic as handling it via module details table is not
|
|
59398
|
+
// straight forward and will require changes, it will be picked up as a tech debt
|
|
59399
|
+
// We are dettaching old connect plus from glue and adding it to cc-stack, with that this will be handled dynamically and
|
|
59400
|
+
// hard coding won't be required.
|
|
59401
|
+
const NIGHTLY = 'crm-nightly-new.cc.capillarytech.com';
|
|
59402
|
+
const NIGHTLY_INTOUCH = 'nightly.intouch.capillarytech.com';
|
|
59403
|
+
const EUCRM = 'eucrm.cc.capillarytech.com';
|
|
59404
|
+
const EUCRM_INTOUCH = 'eu.intouch.capillarytech.com';
|
|
59405
|
+
const USCRM = 'uscrm.cc.capillarytech.com';
|
|
59406
|
+
const INCRM = 'incrm.cc.capillarytech.com';
|
|
59407
|
+
const APAC = 'apac.intouch.capillarytech.com';
|
|
59408
|
+
const NORTH_AMERICA = 'north-america.intouch.capillarytech.com';
|
|
59409
|
+
const SGCRM = 'sgcrm.cc.capillarytech.com';
|
|
59410
|
+
const APAC2 = 'apac2.intouch.capillarytech.com';
|
|
59411
|
+
const TATACRM = 'tatacrm.cc.capillarytech.com';
|
|
59412
|
+
const TATACRM_INTOUCH = 'tata.intouch.capillarytech.com';
|
|
59413
|
+
const USHCCRM = 'ushccrm.cc.capillarytech.com';
|
|
59414
|
+
const USHCCRM_INTOUCH = 'ushc.intouch.capillarytech.com';
|
|
59415
|
+
const SEACRM = 'seacrm.cc.capillarytech.com';
|
|
59416
|
+
const SEACRM_INTOUCH = 'sea.intouch.capillarytech.com';
|
|
59417
|
+
const DEV_ENV = 'devenv-crm.cc.capillarytech.com';
|
|
59418
|
+
const DEV_ENV_INTOUCH = 'dev.intouch.capillarytech.com';
|
|
59419
|
+
const NIGHTLY_CONNECT_PLUS_URL = 'https://crm-nightly-new.connectplus.capillarytech.com';
|
|
59420
|
+
const PROD_CONNECT_PLUS_URL = 'https://eucrm.connectplus.capillarytech.com';
|
|
59421
|
+
const US_PROD_CONNECT_PLUS_URL = 'https://uscrm.connectplus.capillarytech.com';
|
|
59422
|
+
const EU_PROD_CONNECT_PLUS_URL = 'https://eucrm.connectplus.capillarytech.com';
|
|
59423
|
+
const IN_PROD_CONNECT_PLUS_URL = 'https://incrm.connectplus.capillarytech.com';
|
|
59424
|
+
const SG_PROD_CONNECT_PLUS_URL = 'https://sgcrm.connectplus.capillarytech.com';
|
|
59425
|
+
const TATA_PROD_CONNECT_PLUS_URL = 'https://tatacrm.connectplus.capillarytech.com';
|
|
59426
|
+
const USHC_PROD_CONNECT_PLUS_URL = 'https://ushccrm.connectplus.capillarytech.com';
|
|
59427
|
+
const SEA_PROD_CONNECT_PLUS_URL = 'https://glue-a-crm-seacrm.cc.capillarytech.com';
|
|
59428
|
+
const DEV_CONNECT_PLUS_URL = 'https://devenv-crm.connectplus.capillarytech.com';
|
|
59429
|
+
const handleConnectPlusRedirection = _ref => {
|
|
59430
|
+
let {
|
|
59431
|
+
product,
|
|
59432
|
+
cluster: _cluster
|
|
59433
|
+
} = _ref;
|
|
59434
|
+
const currentHost = window.location.host;
|
|
59435
|
+
switch (currentHost) {
|
|
59436
|
+
case NIGHTLY:
|
|
59437
|
+
case NIGHTLY_INTOUCH:
|
|
59438
|
+
window.open(NIGHTLY_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59439
|
+
break;
|
|
59440
|
+
case EUCRM:
|
|
59441
|
+
case EUCRM_INTOUCH:
|
|
59442
|
+
window.open(EU_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59443
|
+
break;
|
|
59444
|
+
case USCRM:
|
|
59445
|
+
case NORTH_AMERICA:
|
|
59446
|
+
window.open(US_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59447
|
+
break;
|
|
59448
|
+
case INCRM:
|
|
59449
|
+
case APAC:
|
|
59450
|
+
window.open(IN_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59451
|
+
break;
|
|
59452
|
+
case SGCRM:
|
|
59453
|
+
case APAC2:
|
|
59454
|
+
window.open(SG_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59455
|
+
break;
|
|
59456
|
+
case TATACRM:
|
|
59457
|
+
case TATACRM_INTOUCH:
|
|
59458
|
+
window.open(TATA_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59459
|
+
break;
|
|
59460
|
+
case USHCCRM:
|
|
59461
|
+
case USHCCRM_INTOUCH:
|
|
59462
|
+
window.open(USHC_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59463
|
+
break;
|
|
59464
|
+
case SEACRM:
|
|
59465
|
+
case SEACRM_INTOUCH:
|
|
59466
|
+
window.open(SEA_PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59467
|
+
break;
|
|
59468
|
+
case DEV_ENV:
|
|
59469
|
+
case DEV_ENV_INTOUCH:
|
|
59470
|
+
window.open(DEV_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59471
|
+
break;
|
|
59472
|
+
default:
|
|
59473
|
+
window.open(PROD_CONNECT_PLUS_URL + "/" + product.url, '_blank');
|
|
59474
|
+
break;
|
|
59475
|
+
}
|
|
59476
|
+
};
|
|
59477
|
+
exports.handleConnectPlusRedirection = handleConnectPlusRedirection;
|
|
59478
|
+
|
|
59052
59479
|
/***/ }),
|
|
59053
59480
|
|
|
59054
59481
|
/***/ 74114:
|
|
@@ -61315,6 +61742,18 @@ function baseToString(value) {
|
|
|
61315
61742
|
module.exports = baseToString;
|
|
61316
61743
|
|
|
61317
61744
|
|
|
61745
|
+
/***/ }),
|
|
61746
|
+
|
|
61747
|
+
/***/ 77608:
|
|
61748
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
61749
|
+
|
|
61750
|
+
"use strict";
|
|
61751
|
+
|
|
61752
|
+
|
|
61753
|
+
exports.__esModule = true;
|
|
61754
|
+
exports.USER_PROFILE_KEY = void 0;
|
|
61755
|
+
const USER_PROFILE_KEY = exports.USER_PROFILE_KEY = 'User Profile';
|
|
61756
|
+
|
|
61318
61757
|
/***/ }),
|
|
61319
61758
|
|
|
61320
61759
|
/***/ 77619:
|
|
@@ -63531,103 +63970,6 @@ var nativeCreate = getNative(Object, 'create');
|
|
|
63531
63970
|
module.exports = nativeCreate;
|
|
63532
63971
|
|
|
63533
63972
|
|
|
63534
|
-
/***/ }),
|
|
63535
|
-
|
|
63536
|
-
/***/ 81112:
|
|
63537
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
63538
|
-
|
|
63539
|
-
"use strict";
|
|
63540
|
-
|
|
63541
|
-
|
|
63542
|
-
exports.__esModule = true;
|
|
63543
|
-
exports.scope = exports["default"] = void 0;
|
|
63544
|
-
var _reactIntl = __webpack_require__(46407);
|
|
63545
|
-
// CapCondition Messages
|
|
63546
|
-
|
|
63547
|
-
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapCondition';
|
|
63548
|
-
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
63549
|
-
selectPossibleValue: {
|
|
63550
|
-
id: scope + ".selectPossibleValue",
|
|
63551
|
-
defaultMessage: 'Select possible values'
|
|
63552
|
-
},
|
|
63553
|
-
searchPossibleValue: {
|
|
63554
|
-
id: scope + ".searchPossibleValue",
|
|
63555
|
-
defaultMessage: 'Search possible values'
|
|
63556
|
-
},
|
|
63557
|
-
maxPossibleValues: {
|
|
63558
|
-
id: scope + ".maxPossibleValues",
|
|
63559
|
-
defaultMessage: 'Only 15 values can be selected'
|
|
63560
|
-
},
|
|
63561
|
-
title: {
|
|
63562
|
-
id: scope + ".title",
|
|
63563
|
-
defaultMessage: 'title'
|
|
63564
|
-
},
|
|
63565
|
-
selectTriggerEventAttribute: {
|
|
63566
|
-
id: scope + ".selectTriggerEventAttribute",
|
|
63567
|
-
defaultMessage: 'Select trigger event attribute'
|
|
63568
|
-
},
|
|
63569
|
-
entryTriggerEventAttribute: {
|
|
63570
|
-
id: scope + ".entryTriggerEventAttribute",
|
|
63571
|
-
defaultMessage: 'Entry trigger event attribute'
|
|
63572
|
-
},
|
|
63573
|
-
selectDateAttribute: {
|
|
63574
|
-
id: scope + ".selectDateAttribute",
|
|
63575
|
-
defaultMessage: 'Select date attribute'
|
|
63576
|
-
},
|
|
63577
|
-
search: {
|
|
63578
|
-
id: scope + ".search",
|
|
63579
|
-
defaultMessage: 'Search'
|
|
63580
|
-
},
|
|
63581
|
-
noResultsFound: {
|
|
63582
|
-
id: scope + ".noResultsFound",
|
|
63583
|
-
defaultMessage: 'No results found'
|
|
63584
|
-
},
|
|
63585
|
-
more: {
|
|
63586
|
-
id: scope + ".more",
|
|
63587
|
-
defaultMessage: 'more'
|
|
63588
|
-
},
|
|
63589
|
-
onMsg: {
|
|
63590
|
-
id: scope + ".onMsg",
|
|
63591
|
-
defaultMessage: 'on'
|
|
63592
|
-
},
|
|
63593
|
-
beforeMsg: {
|
|
63594
|
-
id: scope + ".beforeMsg",
|
|
63595
|
-
defaultMessage: 'before'
|
|
63596
|
-
},
|
|
63597
|
-
afterMsg: {
|
|
63598
|
-
id: scope + ".afterMsg",
|
|
63599
|
-
defaultMessage: 'after'
|
|
63600
|
-
},
|
|
63601
|
-
betweenMsg: {
|
|
63602
|
-
id: scope + ".betweenMsg",
|
|
63603
|
-
defaultMessage: 'between'
|
|
63604
|
-
},
|
|
63605
|
-
daysAfterMsg: {
|
|
63606
|
-
id: scope + ".daysAfterMsg",
|
|
63607
|
-
defaultMessage: '{days} days after'
|
|
63608
|
-
},
|
|
63609
|
-
daysBeforeMsg: {
|
|
63610
|
-
id: scope + ".daysBeforeMsg",
|
|
63611
|
-
defaultMessage: '{days} days before'
|
|
63612
|
-
},
|
|
63613
|
-
andMsg: {
|
|
63614
|
-
id: scope + ".andMsg",
|
|
63615
|
-
defaultMessage: 'and'
|
|
63616
|
-
},
|
|
63617
|
-
endDate: {
|
|
63618
|
-
id: scope + ".endDate",
|
|
63619
|
-
defaultMessage: 'End date'
|
|
63620
|
-
},
|
|
63621
|
-
of: {
|
|
63622
|
-
id: scope + ".of",
|
|
63623
|
-
defaultMessage: ' of '
|
|
63624
|
-
},
|
|
63625
|
-
profileNameMessage: {
|
|
63626
|
-
id: scope + ".profileNameMessage",
|
|
63627
|
-
defaultMessage: '{profileName} event date attribute'
|
|
63628
|
-
}
|
|
63629
|
-
});
|
|
63630
|
-
|
|
63631
63973
|
/***/ }),
|
|
63632
63974
|
|
|
63633
63975
|
/***/ 81164:
|
|
@@ -71605,27 +71947,6 @@ const CapNotification = {
|
|
|
71605
71947
|
};
|
|
71606
71948
|
var _default = exports["default"] = CapNotification;
|
|
71607
71949
|
|
|
71608
|
-
/***/ }),
|
|
71609
|
-
|
|
71610
|
-
/***/ 98289:
|
|
71611
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
71612
|
-
|
|
71613
|
-
// Imports
|
|
71614
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
71615
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
71616
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
71617
|
-
// Module
|
|
71618
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.capConditionPreview__string{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.capConditionPreview__flexWrapDiv{display:flex;align-items:center;flex-wrap:wrap}.capConditionPreview__flexWrapDiv>*{margin:.428rem .285rem}.capConditionPreview__skuDownloadLink{display:flex;align-items:center;margin-left:.571rem}.capConditionPreview__skuDownloadLink>.cap-icon-v2-download{margin-right:.285rem}.capConditionPreview__label{background-color:#ecece7;border-radius:1.143rem;height:2.285rem;padding:.642rem .928rem}`, ""]);
|
|
71619
|
-
// Exports
|
|
71620
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
71621
|
-
"capConditionPreview__string": `capConditionPreview__string`,
|
|
71622
|
-
"capConditionPreview__flexWrapDiv": `capConditionPreview__flexWrapDiv`,
|
|
71623
|
-
"capConditionPreview__skuDownloadLink": `capConditionPreview__skuDownloadLink`,
|
|
71624
|
-
"capConditionPreview__label": `capConditionPreview__label`
|
|
71625
|
-
};
|
|
71626
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
71627
|
-
|
|
71628
|
-
|
|
71629
71950
|
/***/ }),
|
|
71630
71951
|
|
|
71631
71952
|
/***/ 98421:
|