@capillarytech/blaze-ui 5.1.13 → 5.1.17
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/.npmrc +2 -0
- package/CapCalendarDatePicker/index.d.ts +10 -0
- package/CapCalendarDatePicker/index.d.ts.map +1 -0
- package/CapCalendarDatePicker/index.js +9 -992
- package/CapCalendarDatePicker/index.js.map +1 -1
- package/CapCalendarDatePicker/types.d.ts +9 -0
- package/CapCalendarDatePicker/types.d.ts.map +1 -0
- package/CapCondition/messages.d.ts +85 -0
- package/CapCondition/messages.d.ts.map +1 -0
- package/CapConditionPreview/MIGRATION_ANALYSIS.md +70 -0
- package/CapConditionPreview/README.md +40 -0
- package/CapConditionPreview/constants.d.ts +24 -0
- package/CapConditionPreview/constants.d.ts.map +1 -0
- package/CapConditionPreview/index.d.ts +11 -0
- package/CapConditionPreview/index.d.ts.map +1 -0
- package/CapConditionPreview/index.js +396 -662
- package/CapConditionPreview/index.js.map +1 -1
- package/CapConditionPreview/messages.d.ts +220 -0
- package/CapConditionPreview/messages.d.ts.map +1 -0
- package/CapConditionPreview/tests/USE_CASES_CapConditionPreview.md +65 -0
- package/CapConditionPreview/types.d.ts +67 -0
- package/CapConditionPreview/types.d.ts.map +1 -0
- package/CapMobileDatePicker/index.js +9 -992
- package/CapMobileDatePicker/index.js.map +1 -1
- package/CapMultiSelectDatePicker/README.md +11 -0
- package/CapMultiSelectDatePicker/index.d.ts +13 -0
- package/CapMultiSelectDatePicker/index.d.ts.map +1 -0
- package/CapMultiSelectDatePicker/index.js +85 -508
- package/CapMultiSelectDatePicker/index.js.map +1 -1
- package/CapMultiSelectDatePicker/messages.d.ts +9 -0
- package/CapMultiSelectDatePicker/messages.d.ts.map +1 -0
- package/CapMultiSelectDatePicker/types.d.ts +31 -0
- package/CapMultiSelectDatePicker/types.d.ts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +1239 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/.DS_Store +0 -0
- package/CapCalendarDatePicker/assets/icons/chevron-left.svg +0 -20
- package/CapCalendarDatePicker/assets/icons/chevron-right.svg +0 -18
|
@@ -2731,25 +2731,6 @@ var _default = exports["default"] = SvgFacebookFilled;
|
|
|
2731
2731
|
|
|
2732
2732
|
/***/ }),
|
|
2733
2733
|
|
|
2734
|
-
/***/ 15799:
|
|
2735
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2736
|
-
|
|
2737
|
-
"use strict";
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
exports.__esModule = true;
|
|
2741
|
-
exports.StyledFlexWrapDiv = exports.StyledCapLabel = exports.SkuDownloadLink = void 0;
|
|
2742
|
-
var _styledComponents = _interopRequireDefault(__webpack_require__(76480));
|
|
2743
|
-
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
2744
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
2745
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2746
|
-
function _taggedTemplateLiteralLoose(e, t) { return t || (t = e.slice(0)), e.raw = t, e; }
|
|
2747
|
-
const StyledFlexWrapDiv = exports.StyledFlexWrapDiv = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n & > * {\n margin: 6px 4px;\n }\n"])));
|
|
2748
|
-
const SkuDownloadLink = exports.SkuDownloadLink = _styledComponents.default.a(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n & > .cap-icon-v2-download {\n margin-right: 4px;\n }\n"])));
|
|
2749
|
-
const StyledCapLabel = exports.StyledCapLabel = (0, _styledComponents.default)(_CapLabel.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n background-color: #ecece7;\n border-radius: 16px;\n height: 32px;\n padding: 9px 13px;\n"])));
|
|
2750
|
-
|
|
2751
|
-
/***/ }),
|
|
2752
|
-
|
|
2753
2734
|
/***/ 15969:
|
|
2754
2735
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2755
2736
|
|
|
@@ -6920,7 +6901,7 @@ var _default = exports["default"] = SvgThreeStarDark;
|
|
|
6920
6901
|
|
|
6921
6902
|
/***/ }),
|
|
6922
6903
|
|
|
6923
|
-
/***/
|
|
6904
|
+
/***/ 39860:
|
|
6924
6905
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6925
6906
|
|
|
6926
6907
|
"use strict";
|
|
@@ -6928,42 +6909,226 @@ var _default = exports["default"] = SvgThreeStarDark;
|
|
|
6928
6909
|
|
|
6929
6910
|
exports.__esModule = true;
|
|
6930
6911
|
exports["default"] = void 0;
|
|
6931
|
-
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
6932
6912
|
var _reactIntl = __webpack_require__(46407);
|
|
6933
|
-
|
|
6934
|
-
var
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6913
|
+
const scope = 'blaze.components.CapConditionPreview';
|
|
6914
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
6915
|
+
includeMsg: {
|
|
6916
|
+
id: scope + ".includeMsg",
|
|
6917
|
+
defaultMessage: 'include'
|
|
6918
|
+
},
|
|
6919
|
+
excludeMsg: {
|
|
6920
|
+
id: scope + ".excludeMsg",
|
|
6921
|
+
defaultMessage: 'exclude'
|
|
6922
|
+
},
|
|
6923
|
+
equalMsg: {
|
|
6924
|
+
id: scope + ".equalMsg",
|
|
6925
|
+
defaultMessage: 'equal to'
|
|
6926
|
+
},
|
|
6927
|
+
greaterThanMsg: {
|
|
6928
|
+
id: scope + ".greaterThanMsg",
|
|
6929
|
+
defaultMessage: 'greater than'
|
|
6930
|
+
},
|
|
6931
|
+
lessThanMsg: {
|
|
6932
|
+
id: scope + ".lessThanMsg",
|
|
6933
|
+
defaultMessage: 'less than'
|
|
6934
|
+
},
|
|
6935
|
+
greaterThanOrEqualMsg: {
|
|
6936
|
+
id: scope + ".greaterThanOrEqualMsg",
|
|
6937
|
+
defaultMessage: 'greater than or equal to'
|
|
6938
|
+
},
|
|
6939
|
+
lessThanorEqualMsg: {
|
|
6940
|
+
id: scope + ".lessThanorEqualMsg",
|
|
6941
|
+
defaultMessage: 'less than or equal'
|
|
6942
|
+
},
|
|
6943
|
+
inRangeMsg: {
|
|
6944
|
+
id: scope + ".inRangeMsg",
|
|
6945
|
+
defaultMessage: 'in range'
|
|
6946
|
+
},
|
|
6947
|
+
notEqualMsg: {
|
|
6948
|
+
id: scope + ".notEqualMsg",
|
|
6949
|
+
defaultMessage: 'not equal to'
|
|
6950
|
+
},
|
|
6951
|
+
whoseMsg: {
|
|
6952
|
+
id: scope + ".whoseMsg",
|
|
6953
|
+
defaultMessage: 'Whose'
|
|
6954
|
+
},
|
|
6955
|
+
isMsg: {
|
|
6956
|
+
id: scope + ".isMsg",
|
|
6957
|
+
defaultMessage: 'is'
|
|
6958
|
+
},
|
|
6959
|
+
ANDMsg: {
|
|
6960
|
+
id: scope + ".ANDMsg",
|
|
6961
|
+
defaultMessage: 'AND'
|
|
6962
|
+
},
|
|
6963
|
+
containsMsg: {
|
|
6964
|
+
id: scope + ".containsMsg",
|
|
6965
|
+
defaultMessage: 'contains'
|
|
6966
|
+
},
|
|
6967
|
+
startsWithMsg: {
|
|
6968
|
+
id: scope + ".startsWithMsg",
|
|
6969
|
+
defaultMessage: 'starts with'
|
|
6970
|
+
},
|
|
6971
|
+
endsWithMsg: {
|
|
6972
|
+
id: scope + ".endsWithMsg",
|
|
6973
|
+
defaultMessage: 'ends with'
|
|
6974
|
+
},
|
|
6975
|
+
exactMsg: {
|
|
6976
|
+
id: scope + ".exactMsg",
|
|
6977
|
+
defaultMessage: 'exact'
|
|
6978
|
+
},
|
|
6979
|
+
conditionStringInputPlaceholderMsg: {
|
|
6980
|
+
id: scope + ".conditionStringInputPlaceholderMsg",
|
|
6981
|
+
defaultMessage: 'Enter min. 3 characters'
|
|
6982
|
+
},
|
|
6983
|
+
lineItemMsg: {
|
|
6984
|
+
id: scope + ".lineItemMsg",
|
|
6985
|
+
defaultMessage: 'only for lineitems with'
|
|
6986
|
+
},
|
|
6987
|
+
withMsg: {
|
|
6988
|
+
id: scope + ".withMsg",
|
|
6989
|
+
defaultMessage: 'with'
|
|
6990
|
+
},
|
|
6991
|
+
additionalFieldsMsg: {
|
|
6992
|
+
id: scope + ".additionalFieldsMsg",
|
|
6993
|
+
defaultMessage: 'Additional condition'
|
|
6994
|
+
},
|
|
6995
|
+
plusMinus: {
|
|
6996
|
+
id: scope + ".plusMinus",
|
|
6997
|
+
defaultMessage: '+/-'
|
|
6998
|
+
},
|
|
6999
|
+
inMsg: {
|
|
7000
|
+
id: scope + ".inMsg",
|
|
7001
|
+
defaultMessage: 'in'
|
|
7002
|
+
},
|
|
7003
|
+
notInMsg: {
|
|
7004
|
+
id: scope + ".notInMsg",
|
|
7005
|
+
defaultMessage: 'not in'
|
|
7006
|
+
},
|
|
7007
|
+
uploadFailedError: {
|
|
7008
|
+
id: scope + ".uploadFailedError",
|
|
7009
|
+
defaultMessage: 'Upload failed'
|
|
7010
|
+
},
|
|
7011
|
+
uploadLimitExceeded: {
|
|
7012
|
+
id: scope + ".uploadLimitExceeded",
|
|
7013
|
+
defaultMessage: 'Please do not upload more than 1000 store codes'
|
|
7014
|
+
},
|
|
7015
|
+
uploadReqLoader: {
|
|
7016
|
+
id: scope + ".uploadReqLoader",
|
|
7017
|
+
defaultMessage: 'Uploading stores'
|
|
7018
|
+
},
|
|
7019
|
+
or: {
|
|
7020
|
+
id: scope + ".or",
|
|
7021
|
+
defaultMessage: 'OR'
|
|
7022
|
+
},
|
|
7023
|
+
searchWithExact: {
|
|
7024
|
+
id: scope + ".searchWithExact",
|
|
7025
|
+
defaultMessage: 'Search with exact keyword'
|
|
7026
|
+
},
|
|
7027
|
+
customFieldsTag: {
|
|
7028
|
+
id: scope + ".customFieldsTag",
|
|
7029
|
+
defaultMessage: 'custom fields'
|
|
7030
|
+
},
|
|
7031
|
+
storeSearchMsg: {
|
|
7032
|
+
id: scope + ".storeSearchMsg",
|
|
7033
|
+
defaultMessage: 'Enter min. 3 characters to search'
|
|
7034
|
+
},
|
|
7035
|
+
uploadInProgressMsg: {
|
|
7036
|
+
id: scope + ".uploadInProgressMsg",
|
|
7037
|
+
defaultMessage: 'Upload in progress'
|
|
7038
|
+
},
|
|
7039
|
+
unsupportedCsvHeaderMsg: {
|
|
7040
|
+
id: scope + ".unsupportedCsvHeaderMsg",
|
|
7041
|
+
defaultMessage: "The CSV header must be 'Store code' or 'Store id'"
|
|
7042
|
+
},
|
|
7043
|
+
csvFileNoEntryTxt: {
|
|
7044
|
+
id: scope + ".csvFileNoEntryTxt",
|
|
7045
|
+
defaultMessage: 'Please upload a file with atleast one entry'
|
|
7046
|
+
},
|
|
7047
|
+
downloadedMsg: {
|
|
7048
|
+
id: scope + ".downloadedMsg",
|
|
7049
|
+
defaultMessage: 'downloaded'
|
|
7050
|
+
},
|
|
7051
|
+
reuploadFileMsg: {
|
|
7052
|
+
id: scope + ".reuploadFileMsg",
|
|
7053
|
+
defaultMessage: 'Reupload file'
|
|
7054
|
+
},
|
|
7055
|
+
storeIdsMsg: {
|
|
7056
|
+
id: scope + ".storeIdsMsg",
|
|
7057
|
+
defaultMessage: 'Store IDs'
|
|
7058
|
+
},
|
|
7059
|
+
downloadStoreIdMsg: {
|
|
7060
|
+
id: scope + ".downloadStoreIdMsg",
|
|
7061
|
+
defaultMessage: 'Download Store ID'
|
|
7062
|
+
},
|
|
7063
|
+
downloadStoreIdCodeNameMsg: {
|
|
7064
|
+
id: scope + ".downloadStoreIdCodeNameMsg",
|
|
7065
|
+
defaultMessage: 'Download Store ID, code & name'
|
|
7066
|
+
},
|
|
7067
|
+
downloadInProgressMsg: {
|
|
7068
|
+
id: scope + ".downloadInProgressMsg",
|
|
7069
|
+
defaultMessage: 'Download in progress, might take a while'
|
|
7070
|
+
},
|
|
7071
|
+
xDaysBeforeMsg: {
|
|
7072
|
+
id: scope + ".xDaysBeforeMsg",
|
|
7073
|
+
defaultMessage: 'x days before'
|
|
7074
|
+
},
|
|
7075
|
+
xDaysAfterMsg: {
|
|
7076
|
+
id: scope + ".xDaysAfterMsg",
|
|
7077
|
+
defaultMessage: 'x days after'
|
|
7078
|
+
},
|
|
7079
|
+
specificDateLabel: {
|
|
7080
|
+
id: scope + ".specificDateLabel",
|
|
7081
|
+
defaultMessage: 'specific date'
|
|
7082
|
+
},
|
|
7083
|
+
eventDateAttributeLabel: {
|
|
7084
|
+
id: scope + ".eventDateAttributeLabel",
|
|
7085
|
+
defaultMessage: 'Event date attribute'
|
|
7086
|
+
},
|
|
7087
|
+
entryTriggerLabel: {
|
|
7088
|
+
id: scope + ".entryTriggerLabel",
|
|
7089
|
+
defaultMessage: 'Entry trigger'
|
|
7090
|
+
},
|
|
7091
|
+
waitTillEventLabel: {
|
|
7092
|
+
id: scope + ".waitTillEventLabel",
|
|
7093
|
+
defaultMessage: 'Wait till event'
|
|
7094
|
+
},
|
|
7095
|
+
daysSuffix: {
|
|
7096
|
+
id: scope + ".daysSuffix",
|
|
7097
|
+
defaultMessage: 'days'
|
|
7098
|
+
},
|
|
7099
|
+
loadingTip: {
|
|
7100
|
+
id: scope + ".loadingTip",
|
|
7101
|
+
defaultMessage: 'Loading...'
|
|
7102
|
+
},
|
|
7103
|
+
specificDateToolTip: {
|
|
7104
|
+
id: scope + ".specificDateToolTip",
|
|
7105
|
+
defaultMessage: "Specific date cannot be selected for 'x days before/after'"
|
|
7106
|
+
},
|
|
7107
|
+
skuFileName: {
|
|
7108
|
+
id: scope + ".skuFileName",
|
|
7109
|
+
defaultMessage: 'SKUs.csv'
|
|
7110
|
+
},
|
|
7111
|
+
addedSKUsMsg: {
|
|
7112
|
+
id: scope + ".addedSKUsMsg",
|
|
7113
|
+
defaultMessage: 'Added SKUs'
|
|
7114
|
+
},
|
|
7115
|
+
uploadedMsg: {
|
|
7116
|
+
id: scope + ".uploadedMsg",
|
|
7117
|
+
defaultMessage: 'uploaded'
|
|
7118
|
+
},
|
|
7119
|
+
viewMoreMsg: {
|
|
7120
|
+
id: scope + ".viewMoreMsg",
|
|
7121
|
+
defaultMessage: 'View more'
|
|
7122
|
+
},
|
|
7123
|
+
storesMsg: {
|
|
7124
|
+
id: scope + ".storesMsg",
|
|
7125
|
+
defaultMessage: 'Stores'
|
|
7126
|
+
},
|
|
7127
|
+
uploadInvalidErrorMsg: {
|
|
7128
|
+
id: scope + ".uploadInvalidErrorMsg",
|
|
7129
|
+
defaultMessage: 'Invalid file uploaded'
|
|
7130
|
+
}
|
|
7131
|
+
});
|
|
6967
7132
|
|
|
6968
7133
|
/***/ }),
|
|
6969
7134
|
|
|
@@ -8583,381 +8748,6 @@ var _default = exports["default"] = SvgTest;
|
|
|
8583
8748
|
|
|
8584
8749
|
/***/ }),
|
|
8585
8750
|
|
|
8586
|
-
/***/ 49540:
|
|
8587
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
8588
|
-
|
|
8589
|
-
"use strict";
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
exports.__esModule = true;
|
|
8593
|
-
exports["default"] = void 0;
|
|
8594
|
-
var _default = exports["default"] = {
|
|
8595
|
-
CapMultiSelect: {
|
|
8596
|
-
noResultsFoundText: 'No results found',
|
|
8597
|
-
selectText: 'Select',
|
|
8598
|
-
closeText: 'Close',
|
|
8599
|
-
searchPlaceholder: 'Search',
|
|
8600
|
-
selectedText: 'selected',
|
|
8601
|
-
selectAllText: 'Select all',
|
|
8602
|
-
selectAllSearchResultsText: 'Select all searched results',
|
|
8603
|
-
moreText: 'more'
|
|
8604
|
-
},
|
|
8605
|
-
CapModal: {
|
|
8606
|
-
okText: 'Yes',
|
|
8607
|
-
closeText: 'No'
|
|
8608
|
-
},
|
|
8609
|
-
CapMultiSelectWithTree: {
|
|
8610
|
-
noResultsFoundText: 'No results found',
|
|
8611
|
-
selectText: 'Select',
|
|
8612
|
-
closeText: 'Close',
|
|
8613
|
-
searchPlaceholder: 'Search',
|
|
8614
|
-
selectedText: 'selected',
|
|
8615
|
-
selectAllText: 'Select all',
|
|
8616
|
-
selectAllSearchResultsText: 'Select all searched results',
|
|
8617
|
-
moreText: 'more',
|
|
8618
|
-
storeUploadsText: 'Store IDs are uploaded already'
|
|
8619
|
-
},
|
|
8620
|
-
CapCustomSelect: {
|
|
8621
|
-
searchPlaceholder: 'Search',
|
|
8622
|
-
selectPlaceholder: 'Select Option'
|
|
8623
|
-
},
|
|
8624
|
-
CapMultiSelectDatePicker: {
|
|
8625
|
-
lastDayText: 'Last day of month'
|
|
8626
|
-
},
|
|
8627
|
-
CapTable: {
|
|
8628
|
-
loadMoreData: 'Loading more data...'
|
|
8629
|
-
},
|
|
8630
|
-
CapIllustration: {
|
|
8631
|
-
accessForbiddenMsg: 'Action cannot be performed due to insufficient permission'
|
|
8632
|
-
},
|
|
8633
|
-
CapNavigation: {
|
|
8634
|
-
businessProcesses: 'Workbench',
|
|
8635
|
-
wecrm: 'Wecrm',
|
|
8636
|
-
loyaltyProgram: 'Loyalty+',
|
|
8637
|
-
storePerformance: 'Store Performance',
|
|
8638
|
-
memberCare: 'Member Care',
|
|
8639
|
-
storeCare: 'Store Care',
|
|
8640
|
-
insights: 'Insights+',
|
|
8641
|
-
connectPlus: 'Connect+',
|
|
8642
|
-
settingsLabel: 'Settings',
|
|
8643
|
-
campaign: 'Engage+',
|
|
8644
|
-
selectOrganization: 'Select Organization',
|
|
8645
|
-
organization: 'Organization',
|
|
8646
|
-
noResultText: 'No results found',
|
|
8647
|
-
selectProduct: 'Select Product'
|
|
8648
|
-
},
|
|
8649
|
-
InfoNote: {
|
|
8650
|
-
noteText: 'Note'
|
|
8651
|
-
},
|
|
8652
|
-
SomethingWentWrong: {
|
|
8653
|
-
title: 'Sorry, something went wrong.',
|
|
8654
|
-
description: 'Please try again. If this issue occurs again, please reach out to Capillary support team.',
|
|
8655
|
-
reloadText: 'Try refreshing again'
|
|
8656
|
-
},
|
|
8657
|
-
CapBlock: {
|
|
8658
|
-
deleteBlockMsg: 'Delete',
|
|
8659
|
-
expandBlockMsg: 'Expand',
|
|
8660
|
-
collapseBlockMsg: 'Collapse'
|
|
8661
|
-
},
|
|
8662
|
-
CapMultiplePath: {
|
|
8663
|
-
notUniqueMsg: 'Not Unique',
|
|
8664
|
-
deleteConfirmationTitleMsg: 'Confirm delete path',
|
|
8665
|
-
deleteConfirmationTextMsg: 'Are you sure you wish to delete path',
|
|
8666
|
-
deleteConfirmationWarningMsg: 'This action cannot be undone.',
|
|
8667
|
-
deleteButtonTextMsg: 'Yes, Delete',
|
|
8668
|
-
yesMsg: 'Yes',
|
|
8669
|
-
noMsg: 'No',
|
|
8670
|
-
pathMsg: 'Path',
|
|
8671
|
-
addPathMessage: 'Add Path'
|
|
8672
|
-
},
|
|
8673
|
-
CapCondition: {
|
|
8674
|
-
includeMsg: 'include',
|
|
8675
|
-
excludeMsg: 'exclude',
|
|
8676
|
-
equalMsg: 'equal to',
|
|
8677
|
-
greaterThanMsg: 'greater than',
|
|
8678
|
-
lessThanMsg: 'less than',
|
|
8679
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
8680
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
8681
|
-
inRangeMsg: 'in range',
|
|
8682
|
-
notEqualMsg: 'not equal to',
|
|
8683
|
-
whoseMsg: 'Whose',
|
|
8684
|
-
isMsg: 'is',
|
|
8685
|
-
andMsg: 'and',
|
|
8686
|
-
ANDMsg: 'AND',
|
|
8687
|
-
containsMsg: 'contains',
|
|
8688
|
-
startsWithMsg: 'starts with',
|
|
8689
|
-
endsWithMsg: 'ends with',
|
|
8690
|
-
exactMsg: 'exact',
|
|
8691
|
-
conditionStringInputPlaceholderMsg: 'Enter min. 3 characters',
|
|
8692
|
-
lineItemMsg: 'only for lineitems with',
|
|
8693
|
-
withMsg: 'with',
|
|
8694
|
-
additionalFieldsMsg: 'Additional condition',
|
|
8695
|
-
plusMinus: '+/-',
|
|
8696
|
-
inMsg: 'in',
|
|
8697
|
-
notInMsg: 'not in',
|
|
8698
|
-
uploadFailedError: 'Upload failed',
|
|
8699
|
-
uploadLimitExceeded: 'Please do not upload more than 1000 store codes',
|
|
8700
|
-
uploadReqLoader: 'Uploading stores',
|
|
8701
|
-
or: 'OR',
|
|
8702
|
-
search: 'Search',
|
|
8703
|
-
searchWithExact: 'Search with exact keyword',
|
|
8704
|
-
customFieldsTag: 'custom fields',
|
|
8705
|
-
storeSearchMsg: 'Enter min. 3 characters to search',
|
|
8706
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
8707
|
-
unsupportedCsvHeaderMsg: "The CSV header must be 'Store code' or 'Store id'",
|
|
8708
|
-
csvFileNoEntryTxt: 'Please upload a file with atleast one entry',
|
|
8709
|
-
downloadedMsg: 'downloaded',
|
|
8710
|
-
reuploadFileMsg: 'Reupload file',
|
|
8711
|
-
storeIdsMsg: 'Store IDs',
|
|
8712
|
-
downloadStoreIdMsg: 'Download Store ID',
|
|
8713
|
-
downloadStoreIdCodeNameMsg: 'Download Store ID, code & name',
|
|
8714
|
-
downloadInProgressMsg: 'Download in progress, might take a while',
|
|
8715
|
-
onMsg: 'on',
|
|
8716
|
-
beforeMsg: 'before',
|
|
8717
|
-
afterMsg: 'after',
|
|
8718
|
-
xDaysBeforeMsg: 'x days before',
|
|
8719
|
-
xDaysAfterMsg: 'x days after',
|
|
8720
|
-
betweenMsg: 'between',
|
|
8721
|
-
specificDateLabel: 'specific date',
|
|
8722
|
-
eventDateAttributeLabel: 'Event date attribute',
|
|
8723
|
-
entryTriggerLabel: 'Entry trigger',
|
|
8724
|
-
waitTillEventLabel: 'Wait till event',
|
|
8725
|
-
andLabel: 'and',
|
|
8726
|
-
beforeLabel: 'before',
|
|
8727
|
-
afterLabel: 'after',
|
|
8728
|
-
daysSuffix: 'days',
|
|
8729
|
-
loadingTip: 'Loading...',
|
|
8730
|
-
specificDateToolTip: "Specific date cannot be selected for 'x days before/after'"
|
|
8731
|
-
},
|
|
8732
|
-
CapConditionPreview: {
|
|
8733
|
-
includeMsg: 'Include',
|
|
8734
|
-
excludeMsg: 'Exclude',
|
|
8735
|
-
equalMsg: 'equal to',
|
|
8736
|
-
greaterThanMsg: 'greater than',
|
|
8737
|
-
lessThanMsg: 'less than',
|
|
8738
|
-
greaterThanOrEqualMsg: 'greater than or equal to',
|
|
8739
|
-
lessThanorEqualMsg: 'less than or equal',
|
|
8740
|
-
inRangeMsg: 'in range',
|
|
8741
|
-
notEqualMsg: 'not equal to',
|
|
8742
|
-
whoseMsg: 'whose',
|
|
8743
|
-
isMsg: 'is',
|
|
8744
|
-
andMsg: 'and',
|
|
8745
|
-
ANDMsg: 'AND',
|
|
8746
|
-
lineItemMsg: 'only for lineitems with',
|
|
8747
|
-
withMsg: 'with',
|
|
8748
|
-
addedSKUsMsg: 'Added SKUs',
|
|
8749
|
-
skuFileName: 'SKU.csv',
|
|
8750
|
-
uploadedMsg: 'uploaded',
|
|
8751
|
-
inMsg: 'in',
|
|
8752
|
-
notInMsg: 'not in',
|
|
8753
|
-
storesMsg: 'Stores',
|
|
8754
|
-
viewMoreMsg: 'View more',
|
|
8755
|
-
uploadInProgressMsg: 'Upload in progress',
|
|
8756
|
-
uploadFailedErrorMsg: 'Upload failed',
|
|
8757
|
-
uploadInvalidErrorMsg: 'Invalid file uploaded'
|
|
8758
|
-
},
|
|
8759
|
-
CapPopoverTree: {
|
|
8760
|
-
emptyDataMessage: 'No data found',
|
|
8761
|
-
searchPlaceholder: 'Search'
|
|
8762
|
-
},
|
|
8763
|
-
CapGraphBlockNode: {
|
|
8764
|
-
configureText: 'Configure',
|
|
8765
|
-
replaceEngagementBlockMsg: 'Replace engagement block'
|
|
8766
|
-
},
|
|
8767
|
-
CapStaticTemplates: {
|
|
8768
|
-
strategyTitleMsg: 'Select the strategy',
|
|
8769
|
-
strategyDescriptionMsg: 'Use strategy driven pre-defined marketing use-cases or build your own strategy',
|
|
8770
|
-
comingSoonMsg: 'Coming soon',
|
|
8771
|
-
blankCategoryLabel: 'Custom',
|
|
8772
|
-
blankTemplateLabel: 'Build from scratch',
|
|
8773
|
-
blankTemplateDescription: 'Create your own journey from scratch',
|
|
8774
|
-
searchPlaceholderMsg: 'Search strategy'
|
|
8775
|
-
},
|
|
8776
|
-
CapProductSelection: {
|
|
8777
|
-
lineItem: 'Line items',
|
|
8778
|
-
selectAttribute: 'Select Attribute',
|
|
8779
|
-
brand: 'Brand',
|
|
8780
|
-
brandInfo: 'Brand',
|
|
8781
|
-
category: 'Category',
|
|
8782
|
-
categoryInfo: 'Category',
|
|
8783
|
-
product: 'Product',
|
|
8784
|
-
productInfo: 'Product',
|
|
8785
|
-
SKU: 'SKU',
|
|
8786
|
-
uploadSKU: 'Upload SKU',
|
|
8787
|
-
uploadSKUInfo: 'Upload SKU',
|
|
8788
|
-
changeSelection: 'Change the selection',
|
|
8789
|
-
description: 'Changing the attribute of additional condition will result in lose of previously defined additional condition',
|
|
8790
|
-
okText: 'Yes, change',
|
|
8791
|
-
cancelText: 'Cancel',
|
|
8792
|
-
comingSoon: 'Coming soon',
|
|
8793
|
-
selectValues: 'Select value(s)',
|
|
8794
|
-
atleast1Attribute: 'At least 1 attribute is required'
|
|
8795
|
-
},
|
|
8796
|
-
CapTruncateList: {
|
|
8797
|
-
more: 'more'
|
|
8798
|
-
},
|
|
8799
|
-
CapSKUUploader: {
|
|
8800
|
-
validatingSKUs: 'Validating SKUs',
|
|
8801
|
-
invalid: 'invalid',
|
|
8802
|
-
invalidSKUs: 'Invalid SKUs',
|
|
8803
|
-
valid: 'valid',
|
|
8804
|
-
addedSKUsMsg: 'Added SKUs',
|
|
8805
|
-
skuFileName: 'SKU.csv',
|
|
8806
|
-
invalidSKUFilename: 'invalidSKU.csv',
|
|
8807
|
-
uploadedMsg: 'uploaded'
|
|
8808
|
-
},
|
|
8809
|
-
CapDndGraph: {
|
|
8810
|
-
deleteBlockModalHeaderText: 'Delete block',
|
|
8811
|
-
deleteBlockModalDescriptionText: 'Are you sure you want to delete this block?',
|
|
8812
|
-
yesDeleteButtonText: 'Yes, delete',
|
|
8813
|
-
noButtonText: 'No',
|
|
8814
|
-
joinDropErrorText: 'Join block can only be added at the end of the path',
|
|
8815
|
-
jumpDropErrorText: 'Jump block can only be added at the end of the path',
|
|
8816
|
-
theText: 'The',
|
|
8817
|
-
endText: 'End',
|
|
8818
|
-
blockIsLinkedText: 'block is linked to the',
|
|
8819
|
-
blockText: 'block.',
|
|
8820
|
-
disconnectText: 'Deleting this block will disconnect the join.',
|
|
8821
|
-
areYouSureText: 'Are you sure?'
|
|
8822
|
-
},
|
|
8823
|
-
CapDragAndDrop: {
|
|
8824
|
-
dropboxtext: 'Drop here!',
|
|
8825
|
-
selectFilesText: 'Select files from your computer',
|
|
8826
|
-
invalidFileSelectionText: 'Invalid file selection!',
|
|
8827
|
-
or: 'OR',
|
|
8828
|
-
droptext: 'Drag and drop files'
|
|
8829
|
-
},
|
|
8830
|
-
CapRoadMap: {
|
|
8831
|
-
defaultRoadMapDisabledMessage: 'Not configured yet'
|
|
8832
|
-
},
|
|
8833
|
-
CapTimelineCard: {
|
|
8834
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
8835
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
8836
|
-
toConfigure: 'To configure ',
|
|
8837
|
-
completePrevSteps: ' complete the previous steps.'
|
|
8838
|
-
},
|
|
8839
|
-
CapTimelineNestedCard: {
|
|
8840
|
-
defaultConfiguringMessage: 'Configuring...',
|
|
8841
|
-
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
8842
|
-
toConfigure: 'To configure ',
|
|
8843
|
-
completePrevSteps: ' complete the previous steps.'
|
|
8844
|
-
},
|
|
8845
|
-
NestedCardParent: {
|
|
8846
|
-
defaultNestedTitle: 'Triggers',
|
|
8847
|
-
toConfigure: 'To configure ',
|
|
8848
|
-
completePrevSteps: ' complete the previous steps.'
|
|
8849
|
-
},
|
|
8850
|
-
'CapAskAira.DocumentationBot': {
|
|
8851
|
-
textAskYourQuestion: 'Ask your question here',
|
|
8852
|
-
textVisitDocs: 'Visit Capillary Documentation',
|
|
8853
|
-
textNeedHelp: 'Need more help?',
|
|
8854
|
-
textHowMayIHelp: 'How may AI help you?',
|
|
8855
|
-
textAira: 'aiRA Documentation Bot',
|
|
8856
|
-
textLinks: 'Links',
|
|
8857
|
-
textWasHelpful: 'Was this response helpful?',
|
|
8858
|
-
textConfidence: 'confidence',
|
|
8859
|
-
textTooltip: 'Need help? Ask aiRA',
|
|
8860
|
-
textCantConnect: "Can't connect to the server."
|
|
8861
|
-
},
|
|
8862
|
-
'CapAskAira.RuleGenerationBot': {
|
|
8863
|
-
textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
|
|
8864
|
-
textError: 'An error occurred while generating rule. Try again.',
|
|
8865
|
-
textAiraTitle: 'aiRA Rule Generation',
|
|
8866
|
-
textAiraTooltip: 'aiRA, our proprietary AI tool, generates rule expressions based on text query.',
|
|
8867
|
-
textCopy: 'Copy',
|
|
8868
|
-
textCopied: 'Copied',
|
|
8869
|
-
textRulePlaceholder: 'Enter query...',
|
|
8870
|
-
textRuleLoading: 'Rule is loading... Hang tight!',
|
|
8871
|
-
textThank: 'Thank you for your response!',
|
|
8872
|
-
textWarn: 'aiRA responses may be inaccurate or misleading. Help us to improve!',
|
|
8873
|
-
textAddCommentPlaceholder: 'Add comment'
|
|
8874
|
-
},
|
|
8875
|
-
'CapAskAira.ContentGenerationBot': {
|
|
8876
|
-
textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
|
|
8877
|
-
textRecommendationsLoading: 'Recommendations loading... Hang tight!',
|
|
8878
|
-
textError: 'An error occurred while loading recommendations. Try again.',
|
|
8879
|
-
textAiraTitle: 'aiRA Content Recommendations',
|
|
8880
|
-
textAiraTooltip: 'aiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.',
|
|
8881
|
-
textLoading: 'loading...',
|
|
8882
|
-
textCharacters: 'characters',
|
|
8883
|
-
textReplaceWithThis: 'Replace with this',
|
|
8884
|
-
textReplaced: 'Replaced',
|
|
8885
|
-
textResetToDefault: 'Reset to default',
|
|
8886
|
-
textMoreLikeThis: 'More like this',
|
|
8887
|
-
textGenerateMore: 'Generate more'
|
|
8888
|
-
},
|
|
8889
|
-
'CapAskAira.ConfigurationBot': {
|
|
8890
|
-
textAiraTitle: 'aiRA Configuration Bot',
|
|
8891
|
-
textAiraTooltip: 'aiRA, our proprietary AI tool, helps you configure promotions, campaigns, and more.',
|
|
8892
|
-
textTypeAMessage: 'Type a message above and ask aiRA to recommend the best content',
|
|
8893
|
-
textUser: 'Hello!',
|
|
8894
|
-
textPilot: "I'm your Copilot. I can create all type of promotions (milestones, streaks, etc.) on your behalf. Meanwhile, you can sit back, relax, and enjoy a cup of chai.",
|
|
8895
|
-
textCouponTile: 'Milestone on GS',
|
|
8896
|
-
textCouponDescription: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.',
|
|
8897
|
-
textPromotionTitle: 'Milestone on count',
|
|
8898
|
-
textPromotionDescription: 'Eligible customers get points on every 5 transactions.',
|
|
8899
|
-
textStreakTitle: 'Reward on referral',
|
|
8900
|
-
textStreakDescription: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.',
|
|
8901
|
-
textPromptHere: 'Enter a prompt here...',
|
|
8902
|
-
textCouponPrompt: 'If customer does 1000 gross sales in a month, award them 100 points that expire in 20 days. Promotion runs from 1 July to 1 December.',
|
|
8903
|
-
textPromotionPrompt: 'After every 5 transactions I want to award customer with 200 points. Only customers with more than 2000 lifetime points are eligible. Promotion runs from 1 July to 1 December',
|
|
8904
|
-
textStreakPrompt: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. ',
|
|
8905
|
-
textCantConnect: "Can't connect to the server.",
|
|
8906
|
-
textCreate: 'Create',
|
|
8907
|
-
textCancel: 'Cancel',
|
|
8908
|
-
textGeneratingResponse: 'Generating response'
|
|
8909
|
-
},
|
|
8910
|
-
'CapAskAira.DocumentationChatBot': {
|
|
8911
|
-
textBotPlaceholder: 'Ask aiRA about anything on our CRM platform',
|
|
8912
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
8913
|
-
textChatBotDesc: 'Ask any doubts about our CRM platform and aiRA will do its best to find answers',
|
|
8914
|
-
textChatBot: 'Documentation Chat Bot'
|
|
8915
|
-
},
|
|
8916
|
-
'CapAskAira.CapAiMediaGeneration': {
|
|
8917
|
-
textImageBotPlaceholder: 'Ask aiRA to generate an image',
|
|
8918
|
-
textChatBotLoader: 'Hang tight, analyzing your query...',
|
|
8919
|
-
textImageBotDesc: 'Enter a prompt that describes your image.',
|
|
8920
|
-
textImageBot: 'aiRA Media Generator',
|
|
8921
|
-
textImageFooter: 'Dragging and dropping generated images is only supported in the basic email builder.',
|
|
8922
|
-
textTipsGenerate: 'Tips to generate better images:',
|
|
8923
|
-
textCopy: 'Copy image',
|
|
8924
|
-
textCopied: 'Copied',
|
|
8925
|
-
textDownload: 'Download',
|
|
8926
|
-
textImageDownload: 'Image downloaded successfully!',
|
|
8927
|
-
textComingSoon: 'Coming soon',
|
|
8928
|
-
textGenerateMore: 'Generate more'
|
|
8929
|
-
},
|
|
8930
|
-
'CapAskAira.RuleSummarizationBot': {
|
|
8931
|
-
textRuleBotPlaceholder: 'Ask aiRA to write an expression',
|
|
8932
|
-
textSummarizeBotPlaceholder: 'Ask aiRA to explain an expression',
|
|
8933
|
-
textRuleChatBotLoader: 'Hang tight, analyzing your query...',
|
|
8934
|
-
textRuleChatBotDesc: 'Write your detailed rule in simple english and aiRA will write the expression for you',
|
|
8935
|
-
textSummarizeChatBotDesc: 'Enter the expression and aiRA will generate a summary in plain english',
|
|
8936
|
-
textRuleChatBot: 'aiRA Expression Translator'
|
|
8937
|
-
},
|
|
8938
|
-
'CapAskAira.AudienceFilterBot': {
|
|
8939
|
-
textNeedHelp: 'Need help choosing the right filters?',
|
|
8940
|
-
textAskAiraLink: 'Ask aiRA to apply filters',
|
|
8941
|
-
textDescribeAudience: 'Describe your audience',
|
|
8942
|
-
textPlaceholder: 'e.g.: Filter customers who have made a purchase in the last 7 days',
|
|
8943
|
-
textError: 'Something went wrong, please try again',
|
|
8944
|
-
textThoughtProcess: 'Thought Process',
|
|
8945
|
-
textFiltersAdded: 'Filters added below',
|
|
8946
|
-
textAnalyzing: 'Analyzing your query...',
|
|
8947
|
-
textPartialFiltersAdded: 'Rest of the filters added below',
|
|
8948
|
-
textFeedbackTitle: 'Give feedback',
|
|
8949
|
-
textFeedbackOptional: '(Optional)',
|
|
8950
|
-
textFeedbackMessage: 'Let us know what was wrong with the results',
|
|
8951
|
-
textFeedbackPlaceholder: 'Share your feedback',
|
|
8952
|
-
textFeedbackSubmit: 'Submit',
|
|
8953
|
-
textFeedbackCancel: 'Cancel',
|
|
8954
|
-
textThankYouFeedback: 'Thank you for your feedback!',
|
|
8955
|
-
textThankYouDetailedFeedback: 'Thank you for your detailed feedback!'
|
|
8956
|
-
}
|
|
8957
|
-
};
|
|
8958
|
-
|
|
8959
|
-
/***/ }),
|
|
8960
|
-
|
|
8961
8751
|
/***/ 49580:
|
|
8962
8752
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8963
8753
|
|
|
@@ -14811,14 +14601,6 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
14811
14601
|
/* 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);
|
|
14812
14602
|
|
|
14813
14603
|
|
|
14814
|
-
/***/ }),
|
|
14815
|
-
|
|
14816
|
-
/***/ 76480:
|
|
14817
|
-
/***/ ((module) => {
|
|
14818
|
-
|
|
14819
|
-
"use strict";
|
|
14820
|
-
module.exports = require("styled-components");
|
|
14821
|
-
|
|
14822
14604
|
/***/ }),
|
|
14823
14605
|
|
|
14824
14606
|
/***/ 76545:
|
|
@@ -17986,10 +17768,19 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
17986
17768
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
17987
17769
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
17988
17770
|
// Module
|
|
17989
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.
|
|
17771
|
+
___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.142rem;height:2.285rem;padding:.642rem .928rem}.capConditionPreview__errorIcon{color:#ea213a}.capConditionPreview__errorLabel{color:#ea213a}.capConditionPreview .capConditionPreview__errorLabel{color:#ea213a}.capConditionPreview__flexWrapDiv .capConditionPreview__errorLabel{color:#ea213a}.capConditionPreview__marginR4{margin-right:.285rem}.capConditionPreview__marginL4{margin-left:.285rem}.capConditionPreview__marginR20{margin-right:1.428rem}`, ""]);
|
|
17990
17772
|
// Exports
|
|
17991
17773
|
___CSS_LOADER_EXPORT___.locals = {
|
|
17992
|
-
"
|
|
17774
|
+
"capConditionPreview__string": `capConditionPreview__string`,
|
|
17775
|
+
"capConditionPreview__flexWrapDiv": `capConditionPreview__flexWrapDiv`,
|
|
17776
|
+
"capConditionPreview__skuDownloadLink": `capConditionPreview__skuDownloadLink`,
|
|
17777
|
+
"capConditionPreview__label": `capConditionPreview__label`,
|
|
17778
|
+
"capConditionPreview__errorIcon": `capConditionPreview__errorIcon`,
|
|
17779
|
+
"capConditionPreview__errorLabel": `capConditionPreview__errorLabel`,
|
|
17780
|
+
"capConditionPreview": `capConditionPreview`,
|
|
17781
|
+
"capConditionPreview__marginR4": `capConditionPreview__marginR4`,
|
|
17782
|
+
"capConditionPreview__marginL4": `capConditionPreview__marginL4`,
|
|
17783
|
+
"capConditionPreview__marginR20": `capConditionPreview__marginR20`
|
|
17993
17784
|
};
|
|
17994
17785
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
17995
17786
|
|
|
@@ -18198,7 +17989,6 @@ exports.__esModule = true;
|
|
|
18198
17989
|
exports["default"] = void 0;
|
|
18199
17990
|
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
18200
17991
|
var _isEmpty = _interopRequireDefault(__webpack_require__(62193));
|
|
18201
|
-
var _propTypes = _interopRequireDefault(__webpack_require__(43363));
|
|
18202
17992
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
18203
17993
|
var _reactIntl = __webpack_require__(46407);
|
|
18204
17994
|
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
@@ -18207,24 +17997,23 @@ var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
|
18207
17997
|
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
18208
17998
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
18209
17999
|
var _CapTruncateList = _interopRequireDefault(__webpack_require__(14545));
|
|
18210
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
18211
18000
|
var _variables = __webpack_require__(56587);
|
|
18212
18001
|
var _constants = __webpack_require__(41859);
|
|
18213
|
-
var
|
|
18214
|
-
__webpack_require__(29236);
|
|
18002
|
+
var _messages2 = _interopRequireDefault(__webpack_require__(39860));
|
|
18003
|
+
var _styles = _interopRequireDefault(__webpack_require__(29236));
|
|
18215
18004
|
var _jsxRuntime = __webpack_require__(74848);
|
|
18216
18005
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18217
|
-
|
|
18006
|
+
/**
|
|
18218
18007
|
* Timezone-safe date formatting helper that detects YYYY-MM-DD format
|
|
18219
18008
|
* and constructs a local Date to avoid timezone shifts
|
|
18220
18009
|
*/
|
|
18221
18010
|
function formatDateForPreview(input) {
|
|
18222
18011
|
if (!input) return '';
|
|
18223
18012
|
try {
|
|
18224
|
-
|
|
18225
|
-
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(
|
|
18226
|
-
const d = m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : new Date(
|
|
18227
|
-
return Number.isNaN(d.getTime()) ? '' : d.toLocaleDateString('en-US');
|
|
18013
|
+
const str = String(input);
|
|
18014
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str);
|
|
18015
|
+
const d = m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : new Date(str);
|
|
18016
|
+
return Number.isNaN(d.getTime()) ? '' : d.toLocaleDateString('en-US');
|
|
18228
18017
|
} catch (_unused) {
|
|
18229
18018
|
return '';
|
|
18230
18019
|
}
|
|
@@ -18234,6 +18023,9 @@ const {
|
|
|
18234
18023
|
} = _CapLabel.default;
|
|
18235
18024
|
const CapConditionPreview = _ref => {
|
|
18236
18025
|
let {
|
|
18026
|
+
intl: {
|
|
18027
|
+
formatMessage
|
|
18028
|
+
},
|
|
18237
18029
|
className,
|
|
18238
18030
|
type,
|
|
18239
18031
|
operand,
|
|
@@ -18243,79 +18035,57 @@ const CapConditionPreview = _ref => {
|
|
|
18243
18035
|
additionalFields,
|
|
18244
18036
|
isExcluded,
|
|
18245
18037
|
conditionName,
|
|
18246
|
-
excludeMsg,
|
|
18247
|
-
includeMsg,
|
|
18248
|
-
whoseMsg,
|
|
18249
|
-
isMsg,
|
|
18250
|
-
andMsg,
|
|
18251
|
-
equalMsg,
|
|
18252
|
-
greaterThanMsg,
|
|
18253
|
-
lessThanMsg,
|
|
18254
|
-
greaterThanOrEqualMsg,
|
|
18255
|
-
lessThanorEqualMsg,
|
|
18256
|
-
inRangeMsg,
|
|
18257
|
-
notEqualMsg,
|
|
18258
|
-
lineItemMsg,
|
|
18259
|
-
addedSKUsMsg,
|
|
18260
18038
|
skuFileName,
|
|
18261
|
-
uploadedMsg,
|
|
18262
|
-
inMsg,
|
|
18263
|
-
notInMsg,
|
|
18264
18039
|
hideNumberAndProductFields = false,
|
|
18265
18040
|
// This flag is to hide some fields for Store profile, Custom fields etc in journey context.
|
|
18266
|
-
viewMoreMsg,
|
|
18267
|
-
storesMsg,
|
|
18268
|
-
uploadInProgressMsg,
|
|
18269
18041
|
ViewMoreLink,
|
|
18270
18042
|
onClickConfigure,
|
|
18271
18043
|
blockId,
|
|
18272
18044
|
setPopoverVisible,
|
|
18273
|
-
uploadFailedErrorMsg,
|
|
18274
|
-
uploadInvalidErrorMsg,
|
|
18275
18045
|
entryTriggerEventAttribute,
|
|
18276
18046
|
dateTypeData
|
|
18277
18047
|
} = _ref;
|
|
18278
18048
|
const isStoreFilter = !(0, _isEmpty.default)(additionalFields == null ? void 0 : additionalFields.STORE_FILTER);
|
|
18279
|
-
|
|
18280
|
-
|
|
18281
|
-
*/
|
|
18049
|
+
// For date operators, we keep message keys (strings) to look up messages later
|
|
18050
|
+
// For regular operators, we format the messages immediately
|
|
18282
18051
|
const operandsMapping = {
|
|
18283
18052
|
EQ: {
|
|
18284
|
-
text: equalMsg,
|
|
18053
|
+
text: formatMessage(_messages2.default.equalMsg),
|
|
18285
18054
|
isList: false
|
|
18286
18055
|
},
|
|
18287
18056
|
GT: {
|
|
18288
|
-
text: greaterThanMsg,
|
|
18057
|
+
text: formatMessage(_messages2.default.greaterThanMsg),
|
|
18289
18058
|
isList: false
|
|
18290
18059
|
},
|
|
18291
18060
|
LT: {
|
|
18292
|
-
text: lessThanMsg,
|
|
18061
|
+
text: formatMessage(_messages2.default.lessThanMsg),
|
|
18293
18062
|
isList: false
|
|
18294
18063
|
},
|
|
18295
18064
|
GTE: {
|
|
18296
|
-
text: greaterThanOrEqualMsg,
|
|
18065
|
+
text: formatMessage(_messages2.default.greaterThanOrEqualMsg),
|
|
18297
18066
|
isList: false
|
|
18298
18067
|
},
|
|
18299
18068
|
LTE: {
|
|
18300
|
-
text: lessThanorEqualMsg,
|
|
18069
|
+
text: formatMessage(_messages2.default.lessThanorEqualMsg),
|
|
18301
18070
|
isList: false
|
|
18302
18071
|
},
|
|
18303
18072
|
IN_RANGE: {
|
|
18304
|
-
text: inRangeMsg,
|
|
18073
|
+
text: formatMessage(_messages2.default.inRangeMsg),
|
|
18305
18074
|
isList: true
|
|
18306
18075
|
},
|
|
18307
18076
|
NEQ: {
|
|
18308
|
-
text: notEqualMsg,
|
|
18077
|
+
text: formatMessage(_messages2.default.notEqualMsg),
|
|
18309
18078
|
isList: false
|
|
18310
18079
|
},
|
|
18311
18080
|
IN: {
|
|
18312
|
-
text: inMsg,
|
|
18081
|
+
text: formatMessage(_messages2.default.inMsg),
|
|
18313
18082
|
isList: false
|
|
18314
18083
|
},
|
|
18315
18084
|
NOT_IN: {
|
|
18316
|
-
text: notInMsg,
|
|
18085
|
+
text: formatMessage(_messages2.default.notInMsg),
|
|
18317
18086
|
isList: false
|
|
18318
18087
|
},
|
|
18088
|
+
// Date operators use message keys (not formatted) because they're used to look up messages
|
|
18319
18089
|
IS_EXACT_DATE: {
|
|
18320
18090
|
text: _constants.TEXT_ON_MSG,
|
|
18321
18091
|
isList: false
|
|
@@ -18341,28 +18111,31 @@ const CapConditionPreview = _ref => {
|
|
|
18341
18111
|
isList: false
|
|
18342
18112
|
}
|
|
18343
18113
|
};
|
|
18344
|
-
const ValuesPrefix = () =>
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
children:
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18114
|
+
const ValuesPrefix = () => {
|
|
18115
|
+
var _operandsMapping$oper;
|
|
18116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
18117
|
+
children: !hideNumberAndProductFields && operator ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18118
|
+
type: "label18",
|
|
18119
|
+
children: (_operandsMapping$oper = operandsMapping[operator]) == null ? void 0 : _operandsMapping$oper.text
|
|
18120
|
+
}) : null
|
|
18121
|
+
});
|
|
18122
|
+
};
|
|
18352
18123
|
const downloadHandler = (event, data, downloadedFileName) => {
|
|
18353
|
-
|
|
18354
|
-
|
|
18124
|
+
const target = event.target;
|
|
18125
|
+
target.setAttribute('href', "data:text/csv;charset=utf-8," + encodeURIComponent(data));
|
|
18126
|
+
target.setAttribute('download', downloadedFileName);
|
|
18355
18127
|
};
|
|
18356
18128
|
const downloadSKUs = function (event, list) {
|
|
18357
18129
|
if (list === void 0) {
|
|
18358
18130
|
list = [];
|
|
18359
18131
|
}
|
|
18360
|
-
const csvArray = [[addedSKUsMsg]];
|
|
18132
|
+
const csvArray = [[formatMessage(_messages2.default.addedSKUsMsg)]];
|
|
18361
18133
|
list.forEach(sku => csvArray.push([sku]));
|
|
18362
18134
|
const csvContent = csvArray.map(e => e.join(',')).join('\n');
|
|
18363
|
-
downloadHandler(event, csvContent, skuFileName);
|
|
18135
|
+
downloadHandler(event, csvContent, skuFileName != null ? skuFileName : formatMessage(_messages2.default.skuFileName));
|
|
18364
18136
|
};
|
|
18365
18137
|
const OperandValues = _ref2 => {
|
|
18138
|
+
var _operandsMapping$text, _operandsMapping;
|
|
18366
18139
|
let {
|
|
18367
18140
|
linkedFact,
|
|
18368
18141
|
linkedDataType,
|
|
@@ -18371,8 +18144,9 @@ const CapConditionPreview = _ref => {
|
|
|
18371
18144
|
let dataTypeLocal = type;
|
|
18372
18145
|
let listDataLocal = listData;
|
|
18373
18146
|
if (linkedFact) {
|
|
18147
|
+
var _linkedConditionExpre;
|
|
18374
18148
|
dataTypeLocal = linkedDataType;
|
|
18375
|
-
listDataLocal = (linkedConditionExpression == null ? void 0 : linkedConditionExpression.operand)
|
|
18149
|
+
listDataLocal = (_linkedConditionExpre = linkedConditionExpression == null ? void 0 : linkedConditionExpression.operand) != null ? _linkedConditionExpre : [];
|
|
18376
18150
|
}
|
|
18377
18151
|
let hasUploadedStores = false;
|
|
18378
18152
|
let StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
@@ -18387,17 +18161,17 @@ const CapConditionPreview = _ref => {
|
|
|
18387
18161
|
className: "progress-icon"
|
|
18388
18162
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18389
18163
|
type: "label11",
|
|
18390
|
-
className:
|
|
18391
|
-
children: uploadInProgressMsg
|
|
18164
|
+
className: (0, _classnames.default)(_styles.default.capConditionPreview__marginL4, _styles.default.capConditionPreview__marginR4),
|
|
18165
|
+
children: formatMessage(_messages2.default.uploadInProgressMsg)
|
|
18392
18166
|
})]
|
|
18393
18167
|
});
|
|
18394
18168
|
if (isStoreFilter && (linkedConditionExpression == null ? void 0 : linkedConditionExpression.storeSource) === _constants.UPLOAD) {
|
|
18395
18169
|
const {
|
|
18396
18170
|
isStoreUploadFailed = false,
|
|
18397
18171
|
isStoreUploadInvalid = false,
|
|
18398
|
-
operand = [],
|
|
18172
|
+
operand: storeOperand = [],
|
|
18399
18173
|
storeUploadIsInProgress = false
|
|
18400
|
-
} = linkedConditionExpression
|
|
18174
|
+
} = linkedConditionExpression != null ? linkedConditionExpression : {};
|
|
18401
18175
|
hasUploadedStores = true;
|
|
18402
18176
|
if (isStoreUploadFailed || isStoreUploadInvalid) {
|
|
18403
18177
|
StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
@@ -18406,37 +18180,35 @@ const CapConditionPreview = _ref => {
|
|
|
18406
18180
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
18407
18181
|
type: "error",
|
|
18408
18182
|
size: "s",
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
className: "margin-r-4"
|
|
18413
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default.CapLabelInline, {
|
|
18414
|
-
style: {
|
|
18415
|
-
color: _variables.CAP_RED
|
|
18416
|
-
},
|
|
18183
|
+
className: (0, _classnames.default)(_styles.default.capConditionPreview__errorIcon, _styles.default.capConditionPreview__marginR4)
|
|
18184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18185
|
+
className: _styles.default.capConditionPreview__errorLabel,
|
|
18417
18186
|
type: "label4",
|
|
18418
|
-
children: isStoreUploadFailed ?
|
|
18187
|
+
children: isStoreUploadFailed ? formatMessage(_messages2.default.uploadFailedError) : formatMessage(_messages2.default.uploadInvalidErrorMsg)
|
|
18419
18188
|
})]
|
|
18420
18189
|
});
|
|
18421
18190
|
} else {
|
|
18422
|
-
|
|
18191
|
+
var _storeOperand$length;
|
|
18192
|
+
StoreUploadMsg = !storeUploadIsInProgress ? ((_storeOperand$length = storeOperand == null ? void 0 : storeOperand.length) != null ? _storeOperand$length : 0) + " " + formatMessage(_messages2.default.storesMsg) : StoreUploadMsg;
|
|
18423
18193
|
}
|
|
18424
18194
|
}
|
|
18425
18195
|
switch (dataTypeLocal) {
|
|
18426
18196
|
case _constants.MULTI_SELECT:
|
|
18427
18197
|
{
|
|
18428
|
-
var
|
|
18429
|
-
const
|
|
18430
|
-
|
|
18431
|
-
|
|
18198
|
+
var _operandsMapping$list, _listArr$, _ref3;
|
|
18199
|
+
const listArr = Array.isArray(listDataLocal) ? listDataLocal : [];
|
|
18200
|
+
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('_', ' ');
|
|
18201
|
+
return [_constants.CUSTOM_FIELD, _constants.EXTENDED_FIELD].includes(linkedFact != null ? linkedFact : '') ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18202
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18203
|
+
className: _styles.default.capConditionPreview__label,
|
|
18432
18204
|
type: "label2",
|
|
18433
|
-
children:
|
|
18205
|
+
children: listArr[0]
|
|
18434
18206
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18435
18207
|
type: "label18",
|
|
18436
18208
|
children: operandForPreview
|
|
18437
18209
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18438
18210
|
type: "label16",
|
|
18439
|
-
children:
|
|
18211
|
+
children: listArr[2]
|
|
18440
18212
|
})]
|
|
18441
18213
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18442
18214
|
children: [!linkedFact && /*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
@@ -18448,33 +18220,38 @@ const CapConditionPreview = _ref => {
|
|
|
18448
18220
|
type: "attachment"
|
|
18449
18221
|
}), linkedFact === _constants.SKU ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18450
18222
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
18451
|
-
list:
|
|
18223
|
+
list: listArr,
|
|
18452
18224
|
showNumber: 1,
|
|
18453
18225
|
capLabelType: "label4",
|
|
18454
18226
|
showTooltip: false
|
|
18455
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18456
|
-
|
|
18227
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
18228
|
+
className: _styles.default.capConditionPreview__skuDownloadLink,
|
|
18229
|
+
href: "#",
|
|
18230
|
+
onClick: e => {
|
|
18231
|
+
e.preventDefault();
|
|
18232
|
+
downloadSKUs(e, listArr);
|
|
18233
|
+
},
|
|
18457
18234
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18458
18235
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
18459
18236
|
type: "download",
|
|
18460
18237
|
size: "s"
|
|
18461
|
-
}), uploadedMsg]
|
|
18238
|
+
}), formatMessage(_messages2.default.uploadedMsg)]
|
|
18462
18239
|
})
|
|
18463
18240
|
})]
|
|
18464
18241
|
}) : hasUploadedStores ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18465
18242
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18466
18243
|
type: "label4",
|
|
18467
|
-
className:
|
|
18244
|
+
className: _styles.default.capConditionPreview__marginR20,
|
|
18468
18245
|
children: StoreUploadMsg
|
|
18469
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewMoreLink, {
|
|
18246
|
+
}), ViewMoreLink && /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewMoreLink, {
|
|
18470
18247
|
onClick: () => {
|
|
18471
|
-
setPopoverVisible(false);
|
|
18472
|
-
onClickConfigure(blockId);
|
|
18248
|
+
setPopoverVisible == null || setPopoverVisible(false);
|
|
18249
|
+
blockId && (onClickConfigure == null ? void 0 : onClickConfigure(blockId));
|
|
18473
18250
|
},
|
|
18474
|
-
children: viewMoreMsg
|
|
18251
|
+
children: formatMessage(_messages2.default.viewMoreMsg)
|
|
18475
18252
|
})]
|
|
18476
18253
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
18477
|
-
list: listDataLocal
|
|
18254
|
+
list: (_ref3 = listDataLocal != null ? listDataLocal : dstData == null ? void 0 : dstData.couponSeriesNames) != null ? _ref3 : [],
|
|
18478
18255
|
showNumber: 1,
|
|
18479
18256
|
capLabelType: "label4"
|
|
18480
18257
|
})]
|
|
@@ -18493,124 +18270,126 @@ const CapConditionPreview = _ref => {
|
|
|
18493
18270
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18494
18271
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18495
18272
|
type: "label18",
|
|
18496
|
-
children: (operator
|
|
18273
|
+
children: (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
18497
18274
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18498
18275
|
type: "label16",
|
|
18499
|
-
className:
|
|
18276
|
+
className: _styles.default.capConditionPreview__string,
|
|
18500
18277
|
children: operand
|
|
18501
18278
|
})]
|
|
18502
18279
|
});
|
|
18503
18280
|
}
|
|
18504
18281
|
return null;
|
|
18505
18282
|
case _constants.LIST:
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
children:
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18283
|
+
{
|
|
18284
|
+
const opArr = Array.isArray(operand) ? operand : [];
|
|
18285
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18286
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18287
|
+
type: "label16",
|
|
18288
|
+
children: opArr[0]
|
|
18289
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18290
|
+
type: "label18",
|
|
18291
|
+
children: formatMessage(_messages.default.andMsg)
|
|
18292
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18293
|
+
type: "label16",
|
|
18294
|
+
children: opArr[1]
|
|
18295
|
+
})]
|
|
18296
|
+
});
|
|
18297
|
+
}
|
|
18518
18298
|
case _constants.ENTRY_TRIGGER_EVENT_ATTRIBUTE:
|
|
18519
18299
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18520
18300
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18521
18301
|
type: "label18",
|
|
18522
|
-
children: operandsMapping[operator
|
|
18302
|
+
children: (_operandsMapping$text = (_operandsMapping = operandsMapping[operator != null ? operator : '']) == null ? void 0 : _operandsMapping.text) != null ? _operandsMapping$text : (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
18523
18303
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18524
18304
|
type: "label16",
|
|
18525
|
-
children:
|
|
18526
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18305
|
+
children: formatMessage(_messages.default.entryTriggerEventAttribute)
|
|
18306
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18307
|
+
className: _styles.default.capConditionPreview__label,
|
|
18527
18308
|
type: "label2",
|
|
18528
18309
|
children: entryTriggerEventAttribute
|
|
18529
18310
|
})]
|
|
18530
18311
|
});
|
|
18531
18312
|
case _constants.STRING_LIST:
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18535
|
-
children: [
|
|
18536
|
-
|
|
18537
|
-
|
|
18313
|
+
{
|
|
18314
|
+
const opList = Array.isArray(operand) ? operand : [];
|
|
18315
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18316
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(CapLabelInline, {
|
|
18317
|
+
type: "label16",
|
|
18318
|
+
children: [opList == null ? void 0 : opList[0], (opList == null ? void 0 : opList.length) > 1 && " +" + (opList.length - 1) + " " + formatMessage(_messages.default.more)]
|
|
18319
|
+
})]
|
|
18320
|
+
});
|
|
18321
|
+
}
|
|
18538
18322
|
case _constants.DATE_TYPE:
|
|
18539
18323
|
return renderDateConditionPreview(operator, dateTypeData);
|
|
18540
18324
|
default:
|
|
18541
18325
|
return null;
|
|
18542
18326
|
}
|
|
18543
18327
|
};
|
|
18544
|
-
|
|
18545
|
-
// Helper function to render date condition preview
|
|
18546
|
-
const renderDateConditionPreview = (operator, dateTypeData) => {
|
|
18328
|
+
const renderDateConditionPreview = (op, dtData) => {
|
|
18547
18329
|
const renderContent = () => {
|
|
18548
|
-
var
|
|
18549
|
-
switch (
|
|
18330
|
+
var _operandsMapping2, _operandsMapping3, _dtData$contextData, _operandsMapping4, _dtData$contextData2;
|
|
18331
|
+
switch (dtData == null ? void 0 : dtData.dateType) {
|
|
18550
18332
|
case _constants.DATE_TYPE_RANGE:
|
|
18551
18333
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18552
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18334
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18335
|
+
className: _styles.default.capConditionPreview__label,
|
|
18553
18336
|
type: "label2",
|
|
18554
|
-
children:
|
|
18337
|
+
children: formatMessage(_messages.default[operandsMapping == null || (_operandsMapping2 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping2.text])
|
|
18555
18338
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18556
18339
|
type: "label18",
|
|
18557
|
-
children: formatDateForPreview(
|
|
18340
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.startDate)
|
|
18558
18341
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18559
18342
|
type: "label18",
|
|
18560
|
-
children:
|
|
18343
|
+
children: formatMessage(_messages.default.andMsg)
|
|
18561
18344
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18562
18345
|
type: "label18",
|
|
18563
|
-
children: formatDateForPreview(
|
|
18346
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.endDate)
|
|
18564
18347
|
})]
|
|
18565
18348
|
});
|
|
18566
18349
|
case _constants.DATE_TYPE_SINGLE:
|
|
18567
18350
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18568
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18351
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18352
|
+
className: _styles.default.capConditionPreview__label,
|
|
18569
18353
|
type: "label2",
|
|
18570
|
-
children:
|
|
18571
|
-
}),
|
|
18354
|
+
children: formatMessage(_messages.default[operandsMapping == null || (_operandsMapping3 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping3.text])
|
|
18355
|
+
}), dtData != null && dtData.contextData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18572
18356
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18573
18357
|
type: "label4",
|
|
18574
|
-
children:
|
|
18358
|
+
children: formatMessage(_messages.default.endDate)
|
|
18575
18359
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18576
18360
|
type: "label18",
|
|
18577
|
-
children:
|
|
18361
|
+
children: formatMessage(_messages.default.of)
|
|
18578
18362
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18579
18363
|
type: "label4",
|
|
18580
|
-
children:
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
}
|
|
18584
|
-
}))
|
|
18364
|
+
children: formatMessage(_messages.default.profileNameMessage, {
|
|
18365
|
+
profileName: dtData == null || (_dtData$contextData = dtData.contextData) == null ? void 0 : _dtData$contextData.profileName
|
|
18366
|
+
})
|
|
18585
18367
|
})]
|
|
18586
18368
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18587
18369
|
type: "label18",
|
|
18588
|
-
children: formatDateForPreview(
|
|
18370
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.date)
|
|
18589
18371
|
})]
|
|
18590
18372
|
});
|
|
18591
18373
|
case _constants.DATE_TYPE_DAYS_AFTER:
|
|
18592
18374
|
case _constants.DATE_TYPE_DAYS_BEFORE:
|
|
18593
18375
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18594
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18376
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18377
|
+
className: _styles.default.capConditionPreview__label,
|
|
18595
18378
|
type: "label2",
|
|
18596
|
-
children:
|
|
18597
|
-
|
|
18598
|
-
|
|
18599
|
-
}
|
|
18600
|
-
}))
|
|
18379
|
+
children: formatMessage(_messages.default[operandsMapping == null || (_operandsMapping4 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping4.text], {
|
|
18380
|
+
days: dtData == null ? void 0 : dtData.days
|
|
18381
|
+
})
|
|
18601
18382
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18602
18383
|
type: "label4",
|
|
18603
|
-
children:
|
|
18384
|
+
children: formatMessage(_messages.default.endDate)
|
|
18604
18385
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18605
18386
|
type: "label18",
|
|
18606
|
-
children:
|
|
18387
|
+
children: formatMessage(_messages.default.of)
|
|
18607
18388
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18608
18389
|
type: "label4",
|
|
18609
|
-
children:
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
}
|
|
18613
|
-
}))
|
|
18390
|
+
children: formatMessage(_messages.default.profileNameMessage, {
|
|
18391
|
+
profileName: dtData == null || (_dtData$contextData2 = dtData.contextData) == null ? void 0 : _dtData$contextData2.profileName
|
|
18392
|
+
})
|
|
18614
18393
|
})]
|
|
18615
18394
|
});
|
|
18616
18395
|
default:
|
|
@@ -18619,109 +18398,64 @@ const CapConditionPreview = _ref => {
|
|
|
18619
18398
|
};
|
|
18620
18399
|
return renderContent();
|
|
18621
18400
|
};
|
|
18622
|
-
const LabelType =
|
|
18401
|
+
const LabelType = _ref4 => {
|
|
18623
18402
|
let {
|
|
18624
18403
|
children
|
|
18625
|
-
} =
|
|
18404
|
+
} = _ref4;
|
|
18626
18405
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18627
18406
|
type: "label18",
|
|
18628
18407
|
children: children
|
|
18629
18408
|
});
|
|
18630
18409
|
};
|
|
18631
|
-
const getAdditionalConditions = () => {
|
|
18632
|
-
var
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
}) : null;
|
|
18656
|
-
};
|
|
18410
|
+
const getAdditionalConditions = () => Object.values(additionalFields != null ? additionalFields : {}).length > 0 ? Object.entries(additionalFields != null ? additionalFields : {}).map((_ref5, index) => {
|
|
18411
|
+
var _operandsMapping5, _linkedConditionExpre2;
|
|
18412
|
+
let [key, {
|
|
18413
|
+
description: linkedDescription,
|
|
18414
|
+
factId: linkedFact,
|
|
18415
|
+
expression: linkedConditionExpression
|
|
18416
|
+
}] = _ref5;
|
|
18417
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
18418
|
+
children: [!hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(LabelType, {
|
|
18419
|
+
children: !index ? formatMessage(_messages2.default.lineItemMsg) : formatMessage(_messages.default.andMsg)
|
|
18420
|
+
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18421
|
+
className: _styles.default.capConditionPreview__label,
|
|
18422
|
+
type: "label2",
|
|
18423
|
+
children: linkedDescription
|
|
18424
|
+
}), !hideNumberAndProductFields && linkedConditionExpression && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18425
|
+
type: "label18",
|
|
18426
|
+
children: (_operandsMapping5 = operandsMapping[(_linkedConditionExpre2 = linkedConditionExpression.operator) != null ? _linkedConditionExpre2 : '']) == null ? void 0 : _operandsMapping5.text
|
|
18427
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {
|
|
18428
|
+
linkedFact: linkedFact,
|
|
18429
|
+
linkedDataType: _constants.MULTI_SELECT,
|
|
18430
|
+
linkedConditionExpression: linkedConditionExpression
|
|
18431
|
+
})]
|
|
18432
|
+
}, key);
|
|
18433
|
+
}) : null;
|
|
18657
18434
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
18658
|
-
display: "flex",
|
|
18659
18435
|
className: (0, _classnames.default)(className, 'cap-condition-wrapper'),
|
|
18660
18436
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColumn.default, {
|
|
18661
18437
|
xs: 25,
|
|
18662
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
18438
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
18439
|
+
className: _styles.default.capConditionPreview__flexWrapDiv,
|
|
18663
18440
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18664
18441
|
type: "label18",
|
|
18665
|
-
children: isExcluded ? excludeMsg : includeMsg
|
|
18442
|
+
children: isExcluded ? formatMessage(_messages2.default.excludeMsg) : formatMessage(_messages2.default.includeMsg)
|
|
18666
18443
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18667
18444
|
type: "label18",
|
|
18668
|
-
children: whoseMsg
|
|
18669
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
18445
|
+
children: formatMessage(_messages2.default.whoseMsg)
|
|
18446
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
18447
|
+
className: _styles.default.capConditionPreview__label,
|
|
18670
18448
|
type: "label2",
|
|
18671
18449
|
children: conditionName
|
|
18672
18450
|
}), (type !== _constants.STRING || hideNumberAndProductFields) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
18673
18451
|
type: "label18",
|
|
18674
|
-
children: isMsg
|
|
18452
|
+
children: formatMessage(_messages2.default.isMsg)
|
|
18675
18453
|
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {}), getAdditionalConditions()]
|
|
18676
18454
|
})
|
|
18677
18455
|
})
|
|
18678
18456
|
});
|
|
18679
18457
|
};
|
|
18680
|
-
|
|
18681
|
-
type: _propTypes.default.string,
|
|
18682
|
-
className: _propTypes.default.string,
|
|
18683
|
-
conditionName: _propTypes.default.string,
|
|
18684
|
-
operand: _propTypes.default.any,
|
|
18685
|
-
operator: _propTypes.default.string,
|
|
18686
|
-
isExcluded: _propTypes.default.bool,
|
|
18687
|
-
dstData: _propTypes.default.object,
|
|
18688
|
-
listData: _propTypes.default.array,
|
|
18689
|
-
additionalFields: _propTypes.default.object,
|
|
18690
|
-
/**Below fields are added in translations/en.js */
|
|
18691
|
-
includeMsg: _propTypes.default.string,
|
|
18692
|
-
excludeMsg: _propTypes.default.string,
|
|
18693
|
-
whoseMsg: _propTypes.default.string,
|
|
18694
|
-
isMsg: _propTypes.default.string,
|
|
18695
|
-
andMsg: _propTypes.default.string,
|
|
18696
|
-
equalMsg: _propTypes.default.string,
|
|
18697
|
-
greaterThanMsg: _propTypes.default.string,
|
|
18698
|
-
lessThanMsg: _propTypes.default.string,
|
|
18699
|
-
greaterThanOrEqualMsg: _propTypes.default.string,
|
|
18700
|
-
lessThanorEqualMsg: _propTypes.default.string,
|
|
18701
|
-
inRangeMsg: _propTypes.default.string,
|
|
18702
|
-
notEqualMsg: _propTypes.default.string,
|
|
18703
|
-
lineItemMsg: _propTypes.default.string,
|
|
18704
|
-
addedSKUsMsg: _propTypes.default.string,
|
|
18705
|
-
skuFileName: _propTypes.default.string,
|
|
18706
|
-
uploadedMsg: _propTypes.default.string,
|
|
18707
|
-
inMsg: _propTypes.default.string,
|
|
18708
|
-
notInMsg: _propTypes.default.string,
|
|
18709
|
-
hideNumberAndProductFields: _propTypes.default.bool,
|
|
18710
|
-
ViewMoreLink: _propTypes.default.any,
|
|
18711
|
-
onClickConfigure: _propTypes.default.func,
|
|
18712
|
-
blockId: _propTypes.default.string,
|
|
18713
|
-
setPopoverVisible: _propTypes.default.func,
|
|
18714
|
-
viewMoreMsg: _propTypes.default.string,
|
|
18715
|
-
storesMsg: _propTypes.default.string,
|
|
18716
|
-
uploadInProgressMsg: _propTypes.default.string,
|
|
18717
|
-
uploadFailedErrorMsg: _propTypes.default.string,
|
|
18718
|
-
uploadInvalidErrorMsg: _propTypes.default.string,
|
|
18719
|
-
entryTriggerEventAttribute: _propTypes.default.string,
|
|
18720
|
-
dateTypeData: _propTypes.default.object
|
|
18721
|
-
};
|
|
18722
|
-
var _default = exports["default"] = (0, _LocaleHoc.default)(CapConditionPreview, {
|
|
18723
|
-
key: 'CapConditionPreview'
|
|
18724
|
-
});
|
|
18458
|
+
var _default = exports["default"] = (0, _reactIntl.injectIntl)(CapConditionPreview);
|
|
18725
18459
|
})();
|
|
18726
18460
|
|
|
18727
18461
|
module.exports = __webpack_exports__;
|