@capillarytech/blaze-ui 5.10.0 → 5.11.1
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/CapAskAira/AudienceFilterBot/index.d.ts +2 -2
- package/CapAskAira/AudienceFilterBot/index.d.ts.map +1 -1
- package/CapAskAira/AudienceFilterBot/messages.d.ts +77 -0
- package/CapAskAira/AudienceFilterBot/messages.d.ts.map +1 -0
- package/CapAskAira/AudienceFilterBot/types.d.ts +3 -18
- package/CapAskAira/AudienceFilterBot/types.d.ts.map +1 -1
- package/CapAskAira/CapAiMediaGeneration/index.d.ts +3 -14
- package/CapAskAira/CapAiMediaGeneration/index.d.ts.map +1 -1
- package/CapAskAira/CapAiMediaGeneration/messages.d.ts +53 -0
- package/CapAskAira/CapAiMediaGeneration/messages.d.ts.map +1 -0
- package/CapAskAira/CapAiMediaGeneration/reducer.d.ts +1 -4
- package/CapAskAira/CapAiMediaGeneration/reducer.d.ts.map +1 -1
- package/CapAskAira/CapAiMediaGeneration/selectors.d.ts +1 -1
- package/CapAskAira/CapAiMediaGeneration/selectors.d.ts.map +1 -1
- package/CapAskAira/CapAiMediaGeneration/types.d.ts +6 -12
- package/CapAskAira/CapAiMediaGeneration/types.d.ts.map +1 -1
- package/CapAskAira/ConfigurationBot/CopilotResponse.d.ts.map +1 -1
- package/CapAskAira/ConfigurationBot/index.d.ts +2 -2
- package/CapAskAira/ConfigurationBot/index.d.ts.map +1 -1
- package/CapAskAira/ConfigurationBot/messages.d.ts +73 -0
- package/CapAskAira/ConfigurationBot/messages.d.ts.map +1 -0
- package/CapAskAira/ConfigurationBot/types.d.ts +12 -7
- package/CapAskAira/ConfigurationBot/types.d.ts.map +1 -1
- package/CapAskAira/ContentGenerationBot/index.d.ts +2 -2
- package/CapAskAira/ContentGenerationBot/index.d.ts.map +1 -1
- package/CapAskAira/ContentGenerationBot/messages.d.ts +45 -0
- package/CapAskAira/ContentGenerationBot/messages.d.ts.map +1 -0
- package/CapAskAira/ContentGenerationBot/types.d.ts +2 -11
- package/CapAskAira/ContentGenerationBot/types.d.ts.map +1 -1
- package/CapAskAira/DocumentationBot/index.d.ts +2 -2
- package/CapAskAira/DocumentationBot/index.d.ts.map +1 -1
- package/CapAskAira/DocumentationBot/messages.d.ts +45 -0
- package/CapAskAira/DocumentationBot/messages.d.ts.map +1 -0
- package/CapAskAira/DocumentationBot/types.d.ts +2 -11
- package/CapAskAira/DocumentationBot/types.d.ts.map +1 -1
- package/CapAskAira/DocumentationChatBot/index.d.ts +9 -1
- package/CapAskAira/DocumentationChatBot/index.d.ts.map +1 -1
- package/CapAskAira/DocumentationChatBot/messages.d.ts +16 -0
- package/CapAskAira/DocumentationChatBot/messages.d.ts.map +1 -1
- package/CapAskAira/DocumentationChatBot/reducer.d.ts +1 -3
- package/CapAskAira/DocumentationChatBot/reducer.d.ts.map +1 -1
- package/CapAskAira/DocumentationChatBot/saga.d.ts.map +1 -1
- package/CapAskAira/DocumentationChatBot/types.d.ts +3 -4
- package/CapAskAira/DocumentationChatBot/types.d.ts.map +1 -1
- package/CapAskAira/RuleGenerationBot/UtilComponents.d.ts.map +1 -1
- package/CapAskAira/RuleGenerationBot/index.d.ts +2 -1
- package/CapAskAira/RuleGenerationBot/index.d.ts.map +1 -1
- package/CapAskAira/RuleGenerationBot/messages.d.ts +49 -0
- package/CapAskAira/RuleGenerationBot/messages.d.ts.map +1 -0
- package/CapAskAira/RuleGenerationBot/reducer.d.ts +1 -4
- package/CapAskAira/RuleGenerationBot/reducer.d.ts.map +1 -1
- package/CapAskAira/RuleGenerationBot/saga.d.ts.map +1 -1
- package/CapAskAira/RuleGenerationBot/types.d.ts +6 -11
- package/CapAskAira/RuleGenerationBot/types.d.ts.map +1 -1
- package/CapAskAira/RuleSummarizationBot/index.d.ts +2 -1
- package/CapAskAira/RuleSummarizationBot/index.d.ts.map +1 -1
- package/CapAskAira/RuleSummarizationBot/reducer.d.ts +1 -4
- package/CapAskAira/RuleSummarizationBot/reducer.d.ts.map +1 -1
- package/CapAskAira/RuleSummarizationBot/types.d.ts +4 -0
- package/CapAskAira/RuleSummarizationBot/types.d.ts.map +1 -1
- package/CapAskAira/UtilComponents/AiraContainer.d.ts.map +1 -1
- package/CapAskAira/UtilComponents/Notification.d.ts.map +1 -1
- package/CapAskAira/UtilComponents/Popup.d.ts +2 -1
- package/CapAskAira/UtilComponents/Popup.d.ts.map +1 -1
- package/CapAskAira/UtilComponents/TitleBar.d.ts +6 -1
- package/CapAskAira/UtilComponents/TitleBar.d.ts.map +1 -1
- package/CapAskAira/constants.d.ts +9 -0
- package/CapAskAira/constants.d.ts.map +1 -1
- package/CapAskAira/index.d.ts +19 -24
- package/CapAskAira/index.d.ts.map +1 -1
- package/CapAskAira/index.js +730 -672
- package/CapAskAira/index.js.map +1 -1
- package/CapInput/README.md +4 -0
- package/CapSplit/index.js +1 -1
- package/CapSplit/index.js.map +1 -1
- package/README.md +6 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +736 -253
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/_variables.scss +26 -14
- package/CapVirtualMultiSelect/index.js +0 -18432
- package/CapVirtualMultiSelect/index.js.map +0 -1
package/index.js
CHANGED
|
@@ -1586,7 +1586,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
1586
1586
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
1587
1587
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
1588
1588
|
// Module
|
|
1589
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-ask-aira-raw-input{padding:0;border:none}.cap-ask-aira-raw-input:focus{outline:none}.cap-ask-aira-raw-input:disabled{background:none}.cap-ask-aira-no-scrollbar{white-space:nowrap;-ms-overflow-style:none;scrollbar-width:none}.cap-ask-aira-no-scrollbar::-webkit-scrollbar{height:0;width:0;background:rgba(0,0,0,0);-webkit-appearance:none}.cap-ask-aira-popup{user-select:none;border-radius:.5rem;box-shadow:0
|
|
1589
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-ask-aira-raw-input{padding:0;border:none}.cap-ask-aira-raw-input:focus{outline:none}.cap-ask-aira-raw-input:disabled{background:none}.cap-ask-aira-no-scrollbar{white-space:nowrap;-ms-overflow-style:none;scrollbar-width:none}.cap-ask-aira-no-scrollbar::-webkit-scrollbar{height:0;width:0;background:rgba(0,0,0,0);-webkit-appearance:none}.cap-ask-aira-popup{user-select:none;border-radius:.5rem;box-shadow:0 .1429rem .3571rem .0714rem rgba(0,0,0,.1333333333);background-color:#fff;z-index:2147483001;overflow:hidden}.cap-ask-aira-error-bar{gap:.65rem;margin-top:1rem;margin-bottom:.35rem;color:#ea213a}.cap-ask-aira-error-bar img{height:1.2rem}.cap-ask-aira-title-bar{gap:.5rem;cursor:move;background:linear-gradient(90deg, #d0d7ff 47.35%, #ace0ff 100%);border-top-left-radius:inherit;border-top-right-radius:inherit;position:relative;z-index:9}.cap-ask-aira-title-bar .cap-ask-aira-heading-text{margin-left:.25rem;font-size:1.05rem;font-weight:500;user-select:none}.cap-ask-aira-title-bar .cap-ask-aira-close-btn{margin-right:.1rem;cursor:pointer;margin-left:auto}.cap-ask-aira-tooltip-overlay.ant-tooltip.cap-tooltip-overlay-v2{z-index:2147483003}.cap-ask-aira-tooltip-overlay.ant-tooltip.cap-tooltip-overlay-v2 ul{padding-inline-start:2.5rem;list-style:disc}.cap-ask-aira-tooltip{padding:.5rem}.cap-ask-aira-tooltip .cap-ask-aira-description{font-size:.8rem;margin-top:.3rem}.cap-ask-aira-bot-icon{cursor:pointer;user-select:none;display:inline-flex;align-items:center;justify-content:center;overflow:visible;width:auto !important;height:auto !important;min-width:2.5rem;min-height:2.5rem;flex-shrink:0}.cap-ask-aira-bot-icon[data-visible=true]{pointer-events:none}.cap-ask-aira-root{text-align:start;bottom:.857rem;line-height:normal;z-index:100}.cap-ask-aira-root.cap-ask-aira-float-br{z-index:80;position:absolute;bottom:.2rem;right:.2rem}.cap-ask-aira-root.cap-ask-aira-fixed-br-beamer{position:fixed;bottom:7.1429rem;right:1.4286rem}.cap-ask-aira-root *{box-sizing:border-box}@keyframes cap-ask-aira-border-animation{0%{background-position:0% 0%}100%{background-position:100% 0%}}.cap-ask-aira-input-border{width:100%;height:4rem;background:linear-gradient(10deg, #4a67ff 0%, #44ddff 50%, #4a67ff 100%);border-radius:.5rem;background-size:200% 100%;--border-width: 0.2rem;padding:var(--border-width);margin-top:.35rem}.cap-ask-aira-input-border form{width:100%;height:100%;background-color:#fff;border-radius:calc(.5rem - var(--border-width)/2);box-sizing:content-box;display:flex;flex-direction:row;align-items:center;gap:.5rem}.cap-ask-aira-input-border form .cap-ask-aira-input-box{border:none;outline:none;height:80%;width:0;flex-grow:1;font-size:1.1rem}.cap-ask-aira-input-border form .cap-ask-aira-input-bnox:focus{outline:none}.cap-ask-aira-input-border form .cap-ask-aira-three-stars-img{margin-left:.65rem}.cap-ask-aira-input-border form .cap-ask-aira-send-img{cursor:pointer;margin-right:.65rem}.cap-ask-aira-input-border[data-loading=true]{animation:cap-ask-aira-border-animation 1s ease-in-out alternate infinite}.cap-ask-aira-round{border-radius:71.357rem}.cap-ask-aira-multiline-input-root{margin-top:auto;width:100%;--border-radius: 0.5rem;--border-width: 0.2rem;border-radius:var(--border-radius);padding:var(--border-width);border:.0714rem solid #6268ff}.cap-ask-aira-multiline-input-root .cap-ask-aira-inside-input-border{background-color:#fff;border-radius:calc(var(--border-radius) - var(--border-width)/2);display:flex;align-items:end}.cap-ask-aira-multiline-input-root .cap-ask-aira-text-area{flex-grow:1}.cap-ask-aira-multiline-input-root textarea.ant-input{border:none !important}.cap-ask-aira-notification{z-index:21474830014}.cap-ask-aira-multiline-input-extended{margin-top:auto;margin-bottom:.5714rem;width:100%;--border-radius: 0.2857rem;--border-width: 0.0714rem;border-radius:var(--border-radius);padding:var(--border-width);background:linear-gradient(90deg, #6268ff, #3ba7ff)}.cap-ask-aira-multiline-input-extended .cap-ask-aira-inside-input-border{background-color:#fff;border-radius:calc(var(--border-radius) - var(--border-width)/2);position:relative;padding:0;overflow:hidden}.cap-ask-aira-multiline-input-extended .cap-ask-aira-text-area{width:100%}.cap-ask-aira-multiline-input-extended .cap-ask-aira-text-area .ant-input{height:5.4286rem;margin-bottom:.5714rem;resize:none;padding:.7143rem .8571rem 0 .8571rem;border:none !important}.cap-ask-aira-multiline-input-extended .cap-ask-aira-send-button-wrapper{position:absolute;right:.5714rem;bottom:.5714rem;z-index:5;padding:.2857rem;display:flex;align-items:center;justify-content:center}.cap-ask-aira-multiline-input-extended .cap-ask-aira-send-icon{width:1.7143rem !important;height:1.7143rem !important}.cap-ask-aira-multiline-input-extended .cap-ask-aira-send-icon.enabled{cursor:pointer}`, ""]);
|
|
1590
1590
|
// Exports
|
|
1591
1591
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1592
1592
|
"cap-ask-aira-raw-input": `cap-ask-aira-raw-input`,
|
|
@@ -10398,9 +10398,9 @@ var _default = exports["default"] = CapHeadingWithStatic;
|
|
|
10398
10398
|
exports.__esModule = true;
|
|
10399
10399
|
exports["default"] = void 0;
|
|
10400
10400
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
10401
|
+
var _reactIntl = __webpack_require__(46407);
|
|
10401
10402
|
var _CapButton = _interopRequireDefault(__webpack_require__(80739));
|
|
10402
10403
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
10403
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
10404
10404
|
var _constants = __webpack_require__(23944);
|
|
10405
10405
|
var _useWebsocket = _interopRequireDefault(__webpack_require__(69406));
|
|
10406
10406
|
var _rootStyles = _interopRequireDefault(__webpack_require__(43647));
|
|
@@ -10410,13 +10410,12 @@ var _Icons = __webpack_require__(91540);
|
|
|
10410
10410
|
var _constants2 = _interopRequireWildcard(__webpack_require__(63763));
|
|
10411
10411
|
var constants = _constants2;
|
|
10412
10412
|
var _jsonAssembler = _interopRequireWildcard(__webpack_require__(66282));
|
|
10413
|
+
var _messages = _interopRequireDefault(__webpack_require__(49956));
|
|
10413
10414
|
var _styles = _interopRequireDefault(__webpack_require__(17320));
|
|
10414
10415
|
var _UtilComponents = __webpack_require__(96532);
|
|
10415
10416
|
var _jsxRuntime = __webpack_require__(74848);
|
|
10416
10417
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10417
10418
|
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); }
|
|
10418
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10419
|
-
|
|
10420
10419
|
const ContentGenerationBot = _ref => {
|
|
10421
10420
|
var _chat;
|
|
10422
10421
|
let {
|
|
@@ -10425,18 +10424,21 @@ const ContentGenerationBot = _ref => {
|
|
|
10425
10424
|
popupWidth = '42rem',
|
|
10426
10425
|
iconPlacement,
|
|
10427
10426
|
rootStyle,
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
textCharacters,
|
|
10433
|
-
textReplaceWithThis,
|
|
10434
|
-
textResetToDefault,
|
|
10435
|
-
textMoreLikeThis,
|
|
10436
|
-
textGenerateMore,
|
|
10437
|
-
textReplaced,
|
|
10438
|
-
iconSize
|
|
10427
|
+
iconSize,
|
|
10428
|
+
intl: {
|
|
10429
|
+
formatMessage
|
|
10430
|
+
}
|
|
10439
10431
|
} = _ref;
|
|
10432
|
+
const textTypeAMessage = formatMessage(_messages.default.textTypeAMessage);
|
|
10433
|
+
const textError = formatMessage(_messages.default.textError);
|
|
10434
|
+
const textAiraTitle = formatMessage(_messages.default.textAiraTitle);
|
|
10435
|
+
const textAiraTooltip = formatMessage(_messages.default.textAiraTooltip);
|
|
10436
|
+
const textCharacters = formatMessage(_messages.default.textCharacters);
|
|
10437
|
+
const textReplaceWithThis = formatMessage(_messages.default.textReplaceWithThis);
|
|
10438
|
+
const textResetToDefault = formatMessage(_messages.default.textResetToDefault);
|
|
10439
|
+
const textMoreLikeThis = formatMessage(_messages.default.textMoreLikeThis);
|
|
10440
|
+
const textGenerateMore = formatMessage(_messages.default.textGenerateMore);
|
|
10441
|
+
const textReplaced = formatMessage(_messages.default.textReplaced);
|
|
10440
10442
|
const chatCompletionRef = (0, _react.useRef)(null);
|
|
10441
10443
|
const originalPrompt = (0, _react.useRef)('');
|
|
10442
10444
|
const [chat, setChat] = (0, _react.useState)([]);
|
|
@@ -10539,8 +10541,9 @@ const ContentGenerationBot = _ref => {
|
|
|
10539
10541
|
className: _rootStyles.default[_constants.rootClsPrefix + "-no-scrollbar"] + " " + _styles.default[_constants2.clsPrefix + "-chat-container"],
|
|
10540
10542
|
children: [(renderedChat == null ? void 0 : renderedChat.length) > 0 && renderedChat.map((msg, index) => {
|
|
10541
10543
|
if ((msg == null ? void 0 : msg.type) === 'user') {
|
|
10544
|
+
const userContent = msg;
|
|
10542
10545
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_UtilComponents.PromptLI, {
|
|
10543
|
-
content:
|
|
10546
|
+
content: userContent,
|
|
10544
10547
|
moreLikeThis: index > 0,
|
|
10545
10548
|
showReset: replacedWith !== null,
|
|
10546
10549
|
reset: resetReplacedTextToOriginal,
|
|
@@ -10550,21 +10553,26 @@ const ContentGenerationBot = _ref => {
|
|
|
10550
10553
|
}, index);
|
|
10551
10554
|
}
|
|
10552
10555
|
if ((msg == null ? void 0 : msg.type) === 'bot') {
|
|
10556
|
+
var _botMsg$content;
|
|
10557
|
+
const botMsg = msg;
|
|
10558
|
+
const botContent = (_botMsg$content = botMsg.content) != null ? _botMsg$content : {
|
|
10559
|
+
content: ''
|
|
10560
|
+
};
|
|
10553
10561
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_UtilComponents.SuggestionLI, {
|
|
10554
10562
|
textMoreLikeThis: textMoreLikeThis,
|
|
10555
10563
|
textReplaced: textReplaced,
|
|
10556
|
-
content:
|
|
10557
|
-
loading: !
|
|
10564
|
+
content: botContent,
|
|
10565
|
+
loading: !botMsg.suggestionLoaded,
|
|
10558
10566
|
replace: () => {
|
|
10559
|
-
var
|
|
10560
|
-
setText((
|
|
10567
|
+
var _botContent$content;
|
|
10568
|
+
setText((_botContent$content = botContent.content) != null ? _botContent$content : '');
|
|
10561
10569
|
setReplacedWith(index);
|
|
10562
10570
|
},
|
|
10563
10571
|
active: replacedWith === index,
|
|
10564
10572
|
moreLikeThis: () => {
|
|
10565
|
-
var
|
|
10573
|
+
var _botContent$content2;
|
|
10566
10574
|
scrollToBottomWithDelay();
|
|
10567
|
-
getSuggestions((
|
|
10575
|
+
getSuggestions((_botContent$content2 = botContent.content) != null ? _botContent$content2 : '');
|
|
10568
10576
|
},
|
|
10569
10577
|
textReplaceWithThis: textReplaceWithThis,
|
|
10570
10578
|
textCharacters: textCharacters
|
|
@@ -10584,9 +10592,7 @@ const ContentGenerationBot = _ref => {
|
|
|
10584
10592
|
})]
|
|
10585
10593
|
});
|
|
10586
10594
|
};
|
|
10587
|
-
var _default = exports["default"] = (0,
|
|
10588
|
-
key: 'CapAskAira.ContentGenerationBot'
|
|
10589
|
-
});
|
|
10595
|
+
var _default = exports["default"] = (0, _reactIntl.injectIntl)(ContentGenerationBot);
|
|
10590
10596
|
|
|
10591
10597
|
/***/ }),
|
|
10592
10598
|
|
|
@@ -11714,7 +11720,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
11714
11720
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
11715
11721
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
11716
11722
|
// Module
|
|
11717
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-media-generation-bot-content{padding:0rem .75rem 1.12rem .75rem;height:100%;display:flex;flex-direction:column;align-items:center}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container{display:flex;justify-content:space-around;width:100%;margin-bottom:1.5rem;flex-direction:row}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container .cap-media-generation-bot-tab{padding:.5rem;font-size:1rem;opacity:.5;cursor:not-allowed;width:50%;text-align:center}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container .cap-media-generation-bot-tab[data-active=true]{border-bottom:.15rem solid rgba(0,0,0,0);border-image:linear-gradient(to right, #6268ff 0%, #3ba7ff 100%);border-image-slice:1;font-weight:500}.cap-media-generation-bot-content .cap-media-generation-bot-text-media-footer{position:absolute;bottom:0;background-color:#fff}.cap-media-generation-bot-content .imageTextBot{margin:.5rem 0rem}.cap-media-generation-bot-content .doc-bot{text-align:center;margin-top:2rem;flex-direction:column;align-items:center}.cap-media-generation-bot-content .doc-bot .three-star-icon{border-radius:100%;border:.0625rem solid
|
|
11723
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-media-generation-bot-content{padding:0rem .75rem 1.12rem .75rem;height:100%;display:flex;flex-direction:column;align-items:center}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container{display:flex;justify-content:space-around;width:100%;margin-bottom:1.5rem;flex-direction:row}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container .cap-media-generation-bot-tab{padding:.5rem;font-size:1rem;opacity:.5;cursor:not-allowed;width:50%;text-align:center}.cap-media-generation-bot-content .cap-media-generation-bot-tab-container .cap-media-generation-bot-tab[data-active=true]{border-bottom:.15rem solid rgba(0,0,0,0);border-image:linear-gradient(to right, #6268ff 0%, #3ba7ff 100%);border-image-slice:1;font-weight:500}.cap-media-generation-bot-content .cap-media-generation-bot-text-media-footer{position:absolute;bottom:0;background-color:#fff}.cap-media-generation-bot-content .imageTextBot{margin:.5rem 0rem}.cap-media-generation-bot-content .doc-bot{text-align:center;margin-top:2rem;flex-direction:column;align-items:center}.cap-media-generation-bot-content .doc-bot .three-star-icon{border-radius:100%;border:.0625rem solid #7a869a}.cap-media-generation-bot-content .cap-media-generation-bot-tips-box{background-color:#d4e1fc;padding:1rem;margin:.92rem;border-radius:.3rem}.cap-media-generation-bot-content .cap-media-generation-bot-tips-box svg{margin-right:.5rem;fill:#0056e0}.cap-media-generation-bot-content .cap-media-generation-bot-tips-box .tips-box-head{display:flex;margin-bottom:.25rem}.cap-media-generation-bot-content .cap-media-generation-bot-image-container{width:100%;display:flex;overflow-y:auto;margin:1.5rem 0 3rem 0}.cap-media-generation-bot-content .cap-media-generation-bot-image-answer-container{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;width:100%}.cap-media-generation-bot-content .chat-loader-icon{padding:.48rem;display:flex}.cap-media-generation-bot-content .cap-media-generation-bot-generate-more{display:flex;align-items:center;background:#ebecf0;border-radius:.3rem;padding:.375rem .5rem;width:fit-content;gap:.3rem;cursor:pointer;opacity:1}.cap-media-generation-bot-content .cap-media-generation-bot-generate-more.cap-media-generation-bot-loading{cursor:not-allowed;opacity:.5;pointer-events:none}.cap-media-generation-bot-content .rate-icon{display:flex;gap:.3rem;align-items:center;margin-left:auto}.cap-media-generation-bot-content .image-container{width:100%;height:15rem;border-radius:.3rem;position:relative;background-color:#f0f0f0;display:flex;align-items:center;justify-content:center}.cap-media-generation-bot-content .image-container>div{width:100% !important;min-width:7.1429rem}.cap-media-generation-bot-content .image-container-img{object-fit:cover;width:100% !important;height:100% !important;border-radius:.3rem}.cap-media-generation-bot-content .image-container-overlay-content{width:100%;height:15rem;border-radius:.3rem;background-color:rgba(255,255,255,.8);position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center}.cap-media-generation-bot-content .image-container-overlay-content a{color:#091e42}.cap-media-generation-bot-content .image-container-download-icon{cursor:pointer;padding:.75rem;background:#fff;border-radius:.25rem}.cap-media-generation-bot-content .image-container-copy-icon{fill:#fff;cursor:pointer;margin-right:.5rem;background:#dfe2e7;padding:.7143rem;border-radius:.25rem}.cap-media-generation-bot-content .image-footer{display:flex;margin:.5rem .75rem;gap:.3rem;align-items:center;flex:100}.cap-media-generation-bot-content .image-footer .image-footer-icon{flex:5}.cap-media-generation-bot-content .image-footer .image-footer-heading{flex:95}.cap-media-generation-bot-tooltip-copied-size{padding:.625rem .75rem}.cap-media-generation-bot-tooltip-size{padding:.5rem 1rem}`, ""]);
|
|
11718
11724
|
// Exports
|
|
11719
11725
|
___CSS_LOADER_EXPORT___.locals = {
|
|
11720
11726
|
"cap-media-generation-bot-content": `cap-media-generation-bot-content`,
|
|
@@ -11730,7 +11736,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
11730
11736
|
"cap-media-generation-bot-image-answer-container": `cap-media-generation-bot-image-answer-container`,
|
|
11731
11737
|
"chat-loader-icon": `chat-loader-icon`,
|
|
11732
11738
|
"cap-media-generation-bot-generate-more": `cap-media-generation-bot-generate-more`,
|
|
11733
|
-
"loading": `loading`,
|
|
11739
|
+
"cap-media-generation-bot-loading": `cap-media-generation-bot-loading`,
|
|
11734
11740
|
"rate-icon": `rate-icon`,
|
|
11735
11741
|
"image-container": `image-container`,
|
|
11736
11742
|
"image-container-img": `image-container-img`,
|
|
@@ -17211,17 +17217,18 @@ exports.getMergedStatus = getMergedStatus;
|
|
|
17211
17217
|
exports.__esModule = true;
|
|
17212
17218
|
exports["default"] = void 0;
|
|
17213
17219
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
17220
|
+
var _reactIntl = __webpack_require__(46407);
|
|
17214
17221
|
var _CapDivider = _interopRequireDefault(__webpack_require__(23406));
|
|
17215
17222
|
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
17216
17223
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
17217
17224
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
17218
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
17219
17225
|
var _constants = __webpack_require__(23944);
|
|
17220
17226
|
var _useWebsocket = _interopRequireDefault(__webpack_require__(69406));
|
|
17221
17227
|
var _rootStyles = _interopRequireDefault(__webpack_require__(43647));
|
|
17222
17228
|
var _AiraContainer = _interopRequireDefault(__webpack_require__(97060));
|
|
17223
17229
|
var _InputBox = _interopRequireDefault(__webpack_require__(36227));
|
|
17224
17230
|
var _constants2 = __webpack_require__(82260);
|
|
17231
|
+
var _messages = _interopRequireDefault(__webpack_require__(63525));
|
|
17225
17232
|
var _styles = _interopRequireDefault(__webpack_require__(58861));
|
|
17226
17233
|
var _UtilComponents = __webpack_require__(78507);
|
|
17227
17234
|
var _jsxRuntime = __webpack_require__(74848);
|
|
@@ -17229,18 +17236,21 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
17229
17236
|
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); }
|
|
17230
17237
|
const DocumentationBot = _ref => {
|
|
17231
17238
|
let {
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
textAira,
|
|
17237
|
-
textTooltip,
|
|
17238
|
-
textLinks,
|
|
17239
|
-
textConfidence,
|
|
17240
|
-
textWasHelpful,
|
|
17241
|
-
textCantConnect,
|
|
17242
|
-
iconPlacement
|
|
17239
|
+
iconPlacement,
|
|
17240
|
+
intl: {
|
|
17241
|
+
formatMessage
|
|
17242
|
+
}
|
|
17243
17243
|
} = _ref;
|
|
17244
|
+
const textAskYourQuestion = formatMessage(_messages.default.textAskYourQuestion);
|
|
17245
|
+
const textVisitDocs = formatMessage(_messages.default.textVisitDocs);
|
|
17246
|
+
const textNeedHelp = formatMessage(_messages.default.textNeedHelp);
|
|
17247
|
+
const textHowMayIHelp = formatMessage(_messages.default.textHowMayIHelp);
|
|
17248
|
+
const textAira = formatMessage(_messages.default.textAira);
|
|
17249
|
+
const textTooltip = formatMessage(_messages.default.textTooltip);
|
|
17250
|
+
const textLinks = formatMessage(_messages.default.textLinks);
|
|
17251
|
+
const textConfidence = formatMessage(_messages.default.textConfidence);
|
|
17252
|
+
const textWasHelpful = formatMessage(_messages.default.textWasHelpful);
|
|
17253
|
+
const textCantConnect = formatMessage(_messages.default.textCantConnect);
|
|
17244
17254
|
const queryId = (0, _react.useRef)(null);
|
|
17245
17255
|
const [query, setQuery] = (0, _react.useState)('');
|
|
17246
17256
|
const [lastQuery, setLastQuery] = (0, _react.useState)();
|
|
@@ -17272,7 +17282,7 @@ const DocumentationBot = _ref => {
|
|
|
17272
17282
|
}
|
|
17273
17283
|
}, []);
|
|
17274
17284
|
const onError = (0, _react.useCallback)(() => {
|
|
17275
|
-
setAnswerContent(textCantConnect
|
|
17285
|
+
setAnswerContent(textCantConnect);
|
|
17276
17286
|
setLoading(false);
|
|
17277
17287
|
}, [textCantConnect]);
|
|
17278
17288
|
const {
|
|
@@ -17380,9 +17390,7 @@ const DocumentationBot = _ref => {
|
|
|
17380
17390
|
})
|
|
17381
17391
|
});
|
|
17382
17392
|
};
|
|
17383
|
-
var _default = exports["default"] = (0,
|
|
17384
|
-
key: 'CapAskAira.DocumentationBot'
|
|
17385
|
-
});
|
|
17393
|
+
var _default = exports["default"] = (0, _reactIntl.injectIntl)(DocumentationBot);
|
|
17386
17394
|
|
|
17387
17395
|
/***/ }),
|
|
17388
17396
|
|
|
@@ -18987,7 +18995,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
18987
18995
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
18988
18996
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
18989
18997
|
// Module
|
|
18990
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-content-type-message{margin-top:.25rem;padding:1rem;color:#97a0af;border-bottom
|
|
18998
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-content-type-message{margin-top:.25rem;padding:1rem;color:#97a0af;border-bottom:.0714rem solid #dfe2e7}.cap-aira-content-chat-container{max-height:27rem;overflow-y:scroll;padding-top:.25rem}.cap-aira-content-generate-suggestions{margin:.4rem .5rem}.cap-aira-content-suggestion-li{position:relative;flex-wrap:nowrap;gap:.65rem;padding:0 1rem;user-select:text}.cap-aira-content-suggestion-li[data-active=true]{background-color:#ecf7ec}.cap-aira-content-suggestion-li .cap-aira-content-only-hover{opacity:0;pointer-events:none}.cap-aira-content-suggestion-li:hover .cap-aira-content-only-hover{opacity:1;pointer-events:all}.cap-aira-content-suggestion-li>.cap-aira-content-cover{display:none;background-color:rgba(255,238,0,.03);position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}.cap-aira-content-suggestion-li:hover>.cap-aira-content-cover{display:block}.cap-aira-content-suggestion-li .cap-aira-content-content{flex-grow:1;padding:.65rem 0}.cap-aira-content-suggestion-li .cap-aira-content-content .cap-aira-content-content-text{white-space:pre-wrap}.cap-aira-content-suggestion-li .cap-aira-content-content .cap-aira-content-content-info{margin-top:.5rem}.cap-aira-content-suggestion-li .cap-aira-content-content .cap-aira-content-content-info .cap-aira-content-emoji{font-size:1.1rem}.cap-aira-content-suggestion-li .cap-aira-content-content .cap-aira-content-content-info .cap-aira-content-emoji-character-count{margin-left:.7rem;padding-left:.7rem;border-left:.0714rem solid #dfe2e7;font-size:.8rem;color:#5e6c84}.cap-aira-content-suggestion-li .cap-aira-content-replaced-txt{padding:0 1.25rem}.cap-aira-content-suggestion-li .cap-aira-content-replaced-txt>span{color:#47af46;margin-left:.35rem}.cap-aira-content-suggestion-li .cap-aira-content-more-btn{margin-left:auto}.cap-aira-content-suggestion-li .cap-aira-content-replace-btn{margin-left:.5rem}.cap-aira-content-suggestion-li+.cap-aira-content-suggestion-li>.cap-aira-content-content{border-top:.0714rem solid #dfe2e7}.cap-aira-content-reset-to-default{cursor:pointer;color:#2466ea;font-weight:500;padding:0 1rem;margin-left:auto}`, ""]);
|
|
18991
18999
|
// Exports
|
|
18992
19000
|
___CSS_LOADER_EXPORT___.locals = {
|
|
18993
19001
|
"cap-aira-content-type-message": `cap-aira-content-type-message`,
|
|
@@ -20496,18 +20504,20 @@ module.exports = assignValue;
|
|
|
20496
20504
|
exports.__esModule = true;
|
|
20497
20505
|
exports["default"] = void 0;
|
|
20498
20506
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
20507
|
+
var _reactIntl = __webpack_require__(46407);
|
|
20499
20508
|
var _CapButton = _interopRequireDefault(__webpack_require__(80739));
|
|
20500
20509
|
var _CapDivider = _interopRequireDefault(__webpack_require__(23406));
|
|
20501
20510
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
20502
20511
|
var _CapModal = _interopRequireDefault(__webpack_require__(7442));
|
|
20503
20512
|
var _CapNotification = _interopRequireDefault(__webpack_require__(98170));
|
|
20504
20513
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
20505
|
-
var
|
|
20514
|
+
var _constants = __webpack_require__(23944);
|
|
20506
20515
|
var _AiraContainer = _interopRequireDefault(__webpack_require__(97060));
|
|
20507
20516
|
var _ErrorBar = _interopRequireDefault(__webpack_require__(83985));
|
|
20508
20517
|
var _Icons = __webpack_require__(91540);
|
|
20509
20518
|
var _MultiLineInpuxBox = _interopRequireDefault(__webpack_require__(34388));
|
|
20510
|
-
var
|
|
20519
|
+
var _constants2 = __webpack_require__(20082);
|
|
20520
|
+
var _messages = _interopRequireDefault(__webpack_require__(42639));
|
|
20511
20521
|
var _styles = _interopRequireDefault(__webpack_require__(43377));
|
|
20512
20522
|
var _jsxRuntime = __webpack_require__(74848);
|
|
20513
20523
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -20515,7 +20525,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
20515
20525
|
const AudienceFilterBot = _ref => {
|
|
20516
20526
|
var _audienceData$approac, _audienceData$status, _ref2;
|
|
20517
20527
|
let {
|
|
20518
|
-
textAiraTitle
|
|
20528
|
+
textAiraTitle: textAiraTitleProp,
|
|
20519
20529
|
setFilterDataFromApi = () => {},
|
|
20520
20530
|
clearFilterData = () => {},
|
|
20521
20531
|
updateSetQueryData = () => {},
|
|
@@ -20535,24 +20545,28 @@ const AudienceFilterBot = _ref => {
|
|
|
20535
20545
|
partial_error: false
|
|
20536
20546
|
}
|
|
20537
20547
|
},
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
textPlaceholder,
|
|
20542
|
-
textError,
|
|
20543
|
-
textThoughtProcess,
|
|
20544
|
-
textFiltersAdded,
|
|
20545
|
-
textAnalyzing,
|
|
20546
|
-
textPartialFiltersAdded,
|
|
20547
|
-
textFeedbackTitle,
|
|
20548
|
-
textFeedbackOptional,
|
|
20549
|
-
textFeedbackMessage,
|
|
20550
|
-
textFeedbackPlaceholder,
|
|
20551
|
-
textFeedbackSubmit,
|
|
20552
|
-
textFeedbackCancel,
|
|
20553
|
-
textThankYouFeedback,
|
|
20554
|
-
textThankYouDetailedFeedback
|
|
20548
|
+
intl: {
|
|
20549
|
+
formatMessage
|
|
20550
|
+
}
|
|
20555
20551
|
} = _ref;
|
|
20552
|
+
const textAiraTitle = textAiraTitleProp != null ? textAiraTitleProp : formatMessage(_messages.default.textAiraTitle);
|
|
20553
|
+
const textNeedHelp = formatMessage(_messages.default.textNeedHelp);
|
|
20554
|
+
const textAskAiraLink = formatMessage(_messages.default.textAskAiraLink);
|
|
20555
|
+
const textDescribeAudience = formatMessage(_messages.default.textDescribeAudience);
|
|
20556
|
+
const textPlaceholder = formatMessage(_messages.default.textPlaceholder);
|
|
20557
|
+
const textError = formatMessage(_messages.default.textError);
|
|
20558
|
+
const textThoughtProcess = formatMessage(_messages.default.textThoughtProcess);
|
|
20559
|
+
const textFiltersAdded = formatMessage(_messages.default.textFiltersAdded);
|
|
20560
|
+
const textAnalyzing = formatMessage(_messages.default.textAnalyzing);
|
|
20561
|
+
const textPartialFiltersAdded = formatMessage(_messages.default.textPartialFiltersAdded);
|
|
20562
|
+
const textFeedbackTitle = formatMessage(_messages.default.textFeedbackTitle);
|
|
20563
|
+
const textFeedbackOptional = formatMessage(_messages.default.textFeedbackOptional);
|
|
20564
|
+
const textFeedbackMessage = formatMessage(_messages.default.textFeedbackMessage);
|
|
20565
|
+
const textFeedbackPlaceholder = formatMessage(_messages.default.textFeedbackPlaceholder);
|
|
20566
|
+
const textFeedbackSubmit = formatMessage(_messages.default.textFeedbackSubmit);
|
|
20567
|
+
const textFeedbackCancel = formatMessage(_messages.default.textFeedbackCancel);
|
|
20568
|
+
const textThankYouFeedback = formatMessage(_messages.default.textThankYouFeedback);
|
|
20569
|
+
const textThankYouDetailedFeedback = formatMessage(_messages.default.textThankYouDetailedFeedback);
|
|
20556
20570
|
const [query, setQuery] = (0, _react.useState)('');
|
|
20557
20571
|
const [isVisible, setIsVisible] = (0, _react.useState)(false);
|
|
20558
20572
|
const [isQuerySubmitted, setIsQuerySubmitted] = (0, _react.useState)(false);
|
|
@@ -20628,16 +20642,16 @@ const AudienceFilterBot = _ref => {
|
|
|
20628
20642
|
}
|
|
20629
20643
|
};
|
|
20630
20644
|
const getOuterBoxClass = () => {
|
|
20631
|
-
if (!isVisible) return _styles.default[
|
|
20632
|
-
if (isQuerySubmitted) return _styles.default[
|
|
20633
|
-
return _styles.default[
|
|
20645
|
+
if (!isVisible) return _styles.default[_constants2.clsPrefix + "-collapsed"];
|
|
20646
|
+
if (isQuerySubmitted) return _styles.default[_constants2.clsPrefix + "-analysis-height"];
|
|
20647
|
+
return _styles.default[_constants2.clsPrefix + "-expanded"];
|
|
20634
20648
|
};
|
|
20635
20649
|
const renderLoadingIndicator = () => {
|
|
20636
20650
|
if (getAudienceDataStatus === 'COMPLETE') return null;
|
|
20637
20651
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20638
|
-
className: _styles.default[
|
|
20652
|
+
className: _styles.default[_constants2.clsPrefix + "-loading-container"],
|
|
20639
20653
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20640
|
-
className: _styles.default[
|
|
20654
|
+
className: _styles.default[_constants2.clsPrefix + "-loading-text"],
|
|
20641
20655
|
children: textAnalyzing
|
|
20642
20656
|
})
|
|
20643
20657
|
});
|
|
@@ -20650,51 +20664,51 @@ const AudienceFilterBot = _ref => {
|
|
|
20650
20664
|
type: 'anchor-br'
|
|
20651
20665
|
},
|
|
20652
20666
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20653
|
-
className: _styles.default[
|
|
20667
|
+
className: _styles.default[_constants2.clsPrefix + "-custom-title"],
|
|
20654
20668
|
children: textAiraTitle
|
|
20655
20669
|
}),
|
|
20656
20670
|
onHide: onHide,
|
|
20657
20671
|
mode: "audience-filter",
|
|
20658
20672
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20659
|
-
className: _styles.default[
|
|
20673
|
+
className: _styles.default[_constants2.clsPrefix + "-multiline-box-outer"] + " " + getOuterBoxClass(),
|
|
20660
20674
|
children: [!isVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20661
|
-
className: _styles.default[
|
|
20675
|
+
className: _styles.default[_constants2.clsPrefix + "-info-container"],
|
|
20662
20676
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
20663
|
-
className: _styles.default[
|
|
20677
|
+
className: _styles.default[_constants2.clsPrefix + "-info-text"],
|
|
20664
20678
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20665
20679
|
type: "three-star-dark",
|
|
20666
20680
|
size: "m",
|
|
20667
|
-
className: _styles.default[
|
|
20681
|
+
className: _styles.default[_constants2.clsPrefix + "-icon-margin"]
|
|
20668
20682
|
}), textNeedHelp, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20669
|
-
className: _styles.default[
|
|
20683
|
+
className: _styles.default[_constants2.clsPrefix + "-ask-aira-wrapper"],
|
|
20670
20684
|
onClick: toggleVisibility,
|
|
20671
20685
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20672
|
-
className: _styles.default[
|
|
20686
|
+
className: _styles.default[_constants2.clsPrefix + "-ask-aira-link"],
|
|
20673
20687
|
children: textAskAiraLink
|
|
20674
20688
|
})
|
|
20675
20689
|
})]
|
|
20676
20690
|
})
|
|
20677
20691
|
}), isVisible && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20678
20692
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20679
|
-
className: _styles.default[
|
|
20693
|
+
className: _styles.default[_constants2.clsPrefix + "-header-container"],
|
|
20680
20694
|
children: isQuerySubmitted ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20681
|
-
className: _styles.default[
|
|
20695
|
+
className: _styles.default[_constants2.clsPrefix + "-submitted-elements-container"],
|
|
20682
20696
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20683
|
-
className: _styles.default[
|
|
20697
|
+
className: _styles.default[_constants2.clsPrefix + "-submitted-left-section"],
|
|
20684
20698
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20685
20699
|
type: "three-star-dark",
|
|
20686
20700
|
size: "m",
|
|
20687
|
-
className: _styles.default[
|
|
20701
|
+
className: _styles.default[_constants2.clsPrefix + "-header-icon"]
|
|
20688
20702
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20689
|
-
className: _styles.default[
|
|
20703
|
+
className: _styles.default[_constants2.clsPrefix + "-query-label"] + " " + _styles.default[_constants2.clsPrefix + "-header-label"],
|
|
20690
20704
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
20691
|
-
className: _styles.default[
|
|
20705
|
+
className: _styles.default[_constants2.clsPrefix + "-ask-aira-link"] + " " + _styles.default[_constants2.clsPrefix + "-query-display"] + " " + (getAudienceDataStatus !== 'REQUEST' ? _styles.default[_constants2.clsPrefix + "-normal-color"] : ''),
|
|
20692
20706
|
children: [query, getAudienceDataStatus !== 'REQUEST' && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20693
|
-
className: _styles.default[
|
|
20707
|
+
className: _styles.default[_constants2.clsPrefix + "-edit-icon-container"],
|
|
20694
20708
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20695
20709
|
type: "edit",
|
|
20696
20710
|
size: "s",
|
|
20697
|
-
className: _styles.default[
|
|
20711
|
+
className: _styles.default[_constants2.clsPrefix + "-edit-icon"],
|
|
20698
20712
|
onClick: () => {
|
|
20699
20713
|
setIsQuerySubmitted(false);
|
|
20700
20714
|
setFeedbackState(null);
|
|
@@ -20707,7 +20721,7 @@ const AudienceFilterBot = _ref => {
|
|
|
20707
20721
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20708
20722
|
type: "close",
|
|
20709
20723
|
size: "s",
|
|
20710
|
-
className: _styles.default[
|
|
20724
|
+
className: _styles.default[_constants2.clsPrefix + "-close-icon"] + " " + _styles.default[_constants2.clsPrefix + "-close-button"],
|
|
20711
20725
|
onClick: () => {
|
|
20712
20726
|
setIsVisible(false);
|
|
20713
20727
|
setIsQuerySubmitted(false);
|
|
@@ -20718,21 +20732,21 @@ const AudienceFilterBot = _ref => {
|
|
|
20718
20732
|
}
|
|
20719
20733
|
})]
|
|
20720
20734
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20721
|
-
className: _styles.default[
|
|
20735
|
+
className: _styles.default[_constants2.clsPrefix + "-placeholder-container"],
|
|
20722
20736
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20723
|
-
className: _styles.default[
|
|
20737
|
+
className: _styles.default[_constants2.clsPrefix + "-header-left-container"],
|
|
20724
20738
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20725
20739
|
type: "three-star-dark",
|
|
20726
20740
|
size: "m",
|
|
20727
|
-
className: _styles.default[
|
|
20741
|
+
className: _styles.default[_constants2.clsPrefix + "-header-icon"]
|
|
20728
20742
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20729
|
-
className: _styles.default[
|
|
20743
|
+
className: _styles.default[_constants2.clsPrefix + "-query-label"] + " " + _styles.default[_constants2.clsPrefix + "-header-label"],
|
|
20730
20744
|
children: textDescribeAudience
|
|
20731
20745
|
})]
|
|
20732
20746
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20733
20747
|
type: "close",
|
|
20734
20748
|
size: "s",
|
|
20735
|
-
className: _styles.default[
|
|
20749
|
+
className: _styles.default[_constants2.clsPrefix + "-close-icon"] + " " + _styles.default[_constants2.clsPrefix + "-close-button"],
|
|
20736
20750
|
onClick: () => {
|
|
20737
20751
|
setIsVisible(false);
|
|
20738
20752
|
setIsQuerySubmitted(false);
|
|
@@ -20744,7 +20758,7 @@ const AudienceFilterBot = _ref => {
|
|
|
20744
20758
|
})]
|
|
20745
20759
|
})
|
|
20746
20760
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20747
|
-
className: _styles.default[
|
|
20761
|
+
className: _styles.default[_constants2.clsPrefix + "-input-wrapper"] + " " + (isQuerySubmitted ? _styles.default[_constants2.clsPrefix + "-hidden"] : ''),
|
|
20748
20762
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultiLineInpuxBox.default, {
|
|
20749
20763
|
value: query,
|
|
20750
20764
|
setValue: setQuery,
|
|
@@ -20755,20 +20769,20 @@ const AudienceFilterBot = _ref => {
|
|
|
20755
20769
|
})
|
|
20756
20770
|
}), isQuerySubmitted && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20757
20771
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapDivider.default, {
|
|
20758
|
-
className: _styles.default[
|
|
20772
|
+
className: _styles.default[_constants2.clsPrefix + "-divider"]
|
|
20759
20773
|
}), renderLoadingIndicator(), hasError && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
20760
20774
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20761
|
-
className: _styles.default[
|
|
20775
|
+
className: _styles.default[_constants2.clsPrefix + "-error-container"],
|
|
20762
20776
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
20763
20777
|
type: "flex",
|
|
20764
20778
|
justify: "start",
|
|
20765
20779
|
align: "top",
|
|
20766
|
-
className: _styles.default[
|
|
20780
|
+
className: _styles.default[_constants2.clsPrefix + "-full-width-row"],
|
|
20767
20781
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20768
|
-
className: _styles.default[
|
|
20782
|
+
className: _styles.default[_constants2.clsPrefix + "-header-left-container"],
|
|
20769
20783
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorBar.default, {
|
|
20770
20784
|
textError: textError != null ? textError : '',
|
|
20771
|
-
className: _styles.default[
|
|
20785
|
+
className: _styles.default[_constants2.clsPrefix + "-error-bar-no-padding"]
|
|
20772
20786
|
})
|
|
20773
20787
|
})
|
|
20774
20788
|
})
|
|
@@ -20776,107 +20790,107 @@ const AudienceFilterBot = _ref => {
|
|
|
20776
20790
|
})]
|
|
20777
20791
|
}), hasResults && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
20778
20792
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20779
|
-
className: _styles.default[
|
|
20793
|
+
className: _styles.default[_constants2.clsPrefix + "-success-container"],
|
|
20780
20794
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
20781
20795
|
type: "flex",
|
|
20782
20796
|
justify: "space-between",
|
|
20783
20797
|
align: "middle",
|
|
20784
|
-
className: _styles.default[
|
|
20798
|
+
className: _styles.default[_constants2.clsPrefix + "-full-width-row"],
|
|
20785
20799
|
children: [(audienceData == null || (_audienceData$approac = audienceData.approach) == null ? void 0 : _audienceData$approac.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20786
|
-
className: _styles.default[
|
|
20800
|
+
className: _styles.default[_constants2.clsPrefix + "-approach-container"],
|
|
20787
20801
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20788
|
-
className: _styles.default[
|
|
20802
|
+
className: _styles.default[_constants2.clsPrefix + "-thought-process-heading"],
|
|
20789
20803
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20790
|
-
className: _styles.default[
|
|
20804
|
+
className: _styles.default[_constants2.clsPrefix + "-thought-process-text"],
|
|
20791
20805
|
onClick: () => setShowApproaches(!showApproaches),
|
|
20792
20806
|
children: textThoughtProcess
|
|
20793
20807
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20794
20808
|
type: showApproaches ? 'chevron-up' : 'chevron-down',
|
|
20795
20809
|
size: "s",
|
|
20796
|
-
className: _styles.default[
|
|
20810
|
+
className: _styles.default[_constants2.clsPrefix + "-chevron-icon"],
|
|
20797
20811
|
onClick: () => setShowApproaches(!showApproaches)
|
|
20798
20812
|
})]
|
|
20799
20813
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20800
|
-
className: showApproaches ? _styles.default[
|
|
20814
|
+
className: showApproaches ? _styles.default[_constants2.clsPrefix + "-approach-content-visible"] : _styles.default[_constants2.clsPrefix + "-approach-content"],
|
|
20801
20815
|
children: audienceData == null ? void 0 : audienceData.approach.map((approaches, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
20802
|
-
className: _styles.default[
|
|
20816
|
+
className: _styles.default[_constants2.clsPrefix + "-approach-item"],
|
|
20803
20817
|
type: "flex",
|
|
20804
20818
|
align: "top",
|
|
20805
20819
|
justify: "start",
|
|
20806
20820
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20807
|
-
className: _styles.default[
|
|
20821
|
+
className: _styles.default[_constants2.clsPrefix + "-bullet"],
|
|
20808
20822
|
children: "\u2022"
|
|
20809
20823
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20810
|
-
className: _styles.default[
|
|
20824
|
+
className: _styles.default[_constants2.clsPrefix + "-approach-text"],
|
|
20811
20825
|
children: String(approaches)
|
|
20812
20826
|
})]
|
|
20813
20827
|
}, "approach-" + index))
|
|
20814
20828
|
})]
|
|
20815
20829
|
}), (audienceData == null ? void 0 : audienceData.error) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20816
|
-
className: _styles.default[
|
|
20830
|
+
className: _styles.default[_constants2.clsPrefix + "-error-container"],
|
|
20817
20831
|
children: audienceData == null ? void 0 : audienceData.error.map((error, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
20818
|
-
className: _styles.default[
|
|
20832
|
+
className: _styles.default[_constants2.clsPrefix + "-error-item"],
|
|
20819
20833
|
type: "flex",
|
|
20820
20834
|
align: "top",
|
|
20821
20835
|
justify: "start",
|
|
20822
20836
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20823
|
-
className: _styles.default[
|
|
20837
|
+
className: _styles.default[_constants2.clsPrefix + "-error-icon"],
|
|
20824
20838
|
type: 'error',
|
|
20825
20839
|
size: "s",
|
|
20826
20840
|
"data-testid": "cap-icon"
|
|
20827
20841
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20828
|
-
className: _styles.default[
|
|
20842
|
+
className: _styles.default[_constants2.clsPrefix + "-error-text"],
|
|
20829
20843
|
children: error
|
|
20830
20844
|
})]
|
|
20831
20845
|
}, "error-" + index))
|
|
20832
20846
|
}), (audienceData == null ? void 0 : audienceData.warning) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20833
20847
|
children: audienceData == null ? void 0 : audienceData.warning.map((warn, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
20834
|
-
className: _styles.default[
|
|
20848
|
+
className: _styles.default[_constants2.clsPrefix + "-warning-item"],
|
|
20835
20849
|
type: "flex",
|
|
20836
20850
|
align: "middle",
|
|
20837
20851
|
justify: "start",
|
|
20838
20852
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20839
|
-
className: _styles.default[
|
|
20853
|
+
className: _styles.default[_constants2.clsPrefix + "-warning-icon"],
|
|
20840
20854
|
type: 'alert-warning',
|
|
20841
20855
|
"data-testid": "cap-icon"
|
|
20842
20856
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20843
|
-
className: _styles.default[
|
|
20857
|
+
className: _styles.default[_constants2.clsPrefix + "-warning-text"],
|
|
20844
20858
|
children: warn
|
|
20845
20859
|
})]
|
|
20846
20860
|
}, "warning-" + index))
|
|
20847
20861
|
}), Boolean((audienceData == null ? void 0 : audienceData.response) && (audienceData == null || (_audienceData$status = audienceData.status) == null ? void 0 : _audienceData$status.code) == 200) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20848
|
-
className: _styles.default[
|
|
20862
|
+
className: _styles.default[_constants2.clsPrefix + "-filters-added-container"],
|
|
20849
20863
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20850
|
-
className: _styles.default[
|
|
20864
|
+
className: _styles.default[_constants2.clsPrefix + "-filters-added-content"],
|
|
20851
20865
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20852
20866
|
type: "check-filled",
|
|
20853
20867
|
size: "m",
|
|
20854
|
-
className: _styles.default[
|
|
20868
|
+
className: _styles.default[_constants2.clsPrefix + "-success-icon"]
|
|
20855
20869
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20856
|
-
className: _styles.default[
|
|
20870
|
+
className: _styles.default[_constants2.clsPrefix + "-filters-added-text"],
|
|
20857
20871
|
children: (_ref2 = audienceData != null && audienceData.partial_error ? textPartialFiltersAdded : textFiltersAdded) != null ? _ref2 : ''
|
|
20858
20872
|
})]
|
|
20859
20873
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20860
|
-
className: _styles.default[
|
|
20874
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-buttons"],
|
|
20861
20875
|
children: [feedbackState === 'like' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20862
20876
|
type: "filled-like",
|
|
20863
20877
|
size: "m",
|
|
20864
|
-
className: _styles.default[
|
|
20878
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-icon"] + " " + _styles.default[_constants2.clsPrefix + "-feedback-selected"] + " " + (feedbackSubmitted ? _styles.default[_constants2.clsPrefix + "-feedback-submitted"] : ''),
|
|
20865
20879
|
onClick: handleLikeClick
|
|
20866
20880
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20867
20881
|
type: "like",
|
|
20868
20882
|
size: "m",
|
|
20869
|
-
className: _styles.default[
|
|
20883
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-icon"] + " " + (feedbackSubmitted && feedbackState === 'dislike' ? _styles.default[_constants2.clsPrefix + "-feedback-disabled"] : ''),
|
|
20870
20884
|
onClick: handleLikeClick
|
|
20871
20885
|
}), feedbackState === 'dislike' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20872
20886
|
type: "filled-disLike",
|
|
20873
20887
|
size: "m",
|
|
20874
|
-
className: _styles.default[
|
|
20888
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-icon"] + " " + _styles.default[_constants2.clsPrefix + "-feedback-selected"] + " " + (feedbackSubmitted ? _styles.default[_constants2.clsPrefix + "-feedback-submitted"] : ''),
|
|
20875
20889
|
onClick: handleDislikeClick
|
|
20876
20890
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
20877
20891
|
type: "disLike",
|
|
20878
20892
|
size: "m",
|
|
20879
|
-
className: _styles.default[
|
|
20893
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-icon"] + " " + (feedbackSubmitted && feedbackState === 'like' ? _styles.default[_constants2.clsPrefix + "-feedback-disabled"] : ''),
|
|
20880
20894
|
onClick: handleDislikeClick
|
|
20881
20895
|
})]
|
|
20882
20896
|
})]
|
|
@@ -20888,10 +20902,10 @@ const AudienceFilterBot = _ref => {
|
|
|
20888
20902
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapModal.default, {
|
|
20889
20903
|
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20890
20904
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20891
|
-
className: _styles.default[
|
|
20905
|
+
className: _styles.default[_constants2.clsPrefix + "-modal-title"],
|
|
20892
20906
|
children: textFeedbackTitle
|
|
20893
20907
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20894
|
-
className: _styles.default[
|
|
20908
|
+
className: _styles.default[_constants2.clsPrefix + "-modal-title-optional"],
|
|
20895
20909
|
children: textFeedbackOptional
|
|
20896
20910
|
})]
|
|
20897
20911
|
}),
|
|
@@ -20902,16 +20916,16 @@ const AudienceFilterBot = _ref => {
|
|
|
20902
20916
|
closeText: textFeedbackCancel,
|
|
20903
20917
|
styles: {
|
|
20904
20918
|
body: {
|
|
20905
|
-
height: '
|
|
20919
|
+
height: '13.4286rem'
|
|
20906
20920
|
},
|
|
20907
20921
|
mask: {
|
|
20908
|
-
backgroundColor:
|
|
20922
|
+
backgroundColor: _constants.CAP_ASK_AIRA_COLORS.MASK_BG
|
|
20909
20923
|
}
|
|
20910
20924
|
},
|
|
20911
20925
|
transitionName: "",
|
|
20912
20926
|
maskTransitionName: "",
|
|
20913
20927
|
footer: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20914
|
-
className: _styles.default[
|
|
20928
|
+
className: _styles.default[_constants2.clsPrefix + "-modal-footer"],
|
|
20915
20929
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapButton.default, {
|
|
20916
20930
|
onClick: handleModalOk,
|
|
20917
20931
|
type: "primary",
|
|
@@ -20919,33 +20933,31 @@ const AudienceFilterBot = _ref => {
|
|
|
20919
20933
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapButton.default, {
|
|
20920
20934
|
onClick: handleModalCancel,
|
|
20921
20935
|
type: "flat",
|
|
20922
|
-
className: _styles.default[
|
|
20936
|
+
className: _styles.default[_constants2.clsPrefix + "-modal-flat-button"],
|
|
20923
20937
|
children: textFeedbackCancel
|
|
20924
20938
|
})]
|
|
20925
20939
|
}),
|
|
20926
20940
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20927
|
-
className: _styles.default[
|
|
20941
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-message"],
|
|
20928
20942
|
children: textFeedbackMessage
|
|
20929
20943
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20930
|
-
className: _styles.default[
|
|
20944
|
+
className: _styles.default[_constants2.clsPrefix + "-textarea-container"],
|
|
20931
20945
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
20932
|
-
className: _styles.default[
|
|
20946
|
+
className: _styles.default[_constants2.clsPrefix + "-feedback-textarea"],
|
|
20933
20947
|
rows: 4,
|
|
20934
20948
|
value: comment,
|
|
20935
20949
|
onChange: handleCommentChange,
|
|
20936
20950
|
placeholder: textFeedbackPlaceholder,
|
|
20937
20951
|
maxLength: 200
|
|
20938
20952
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20939
|
-
className: _styles.default[
|
|
20953
|
+
className: _styles.default[_constants2.clsPrefix + "-character-count"],
|
|
20940
20954
|
children: [comment.length, "/200"]
|
|
20941
20955
|
})]
|
|
20942
20956
|
})]
|
|
20943
20957
|
})]
|
|
20944
20958
|
});
|
|
20945
20959
|
};
|
|
20946
|
-
var _default = exports["default"] = (0,
|
|
20947
|
-
key: 'CapAskAira.AudienceFilterBot'
|
|
20948
|
-
});
|
|
20960
|
+
var _default = exports["default"] = (0, _reactIntl.injectIntl)(AudienceFilterBot);
|
|
20949
20961
|
|
|
20950
20962
|
/***/ }),
|
|
20951
20963
|
|
|
@@ -22091,12 +22103,12 @@ exports.__esModule = true;
|
|
|
22091
22103
|
exports["default"] = exports.RuleSummarizationBot = void 0;
|
|
22092
22104
|
var _markdownToJsx = _interopRequireDefault(__webpack_require__(36841));
|
|
22093
22105
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
22106
|
+
var _reactIntl = __webpack_require__(46407);
|
|
22094
22107
|
var _reactRedux = __webpack_require__(31286);
|
|
22095
22108
|
var _redux = __webpack_require__(90916);
|
|
22096
22109
|
var _reselect = __webpack_require__(86751);
|
|
22097
22110
|
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
22098
22111
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
22099
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
22100
22112
|
var _AiraContainer = _interopRequireDefault(__webpack_require__(97060));
|
|
22101
22113
|
var _ErrorBar = _interopRequireDefault(__webpack_require__(83985));
|
|
22102
22114
|
var _Icons = __webpack_require__(91540);
|
|
@@ -22374,12 +22386,8 @@ function mapDispatchToProps(dispatch) {
|
|
|
22374
22386
|
}
|
|
22375
22387
|
const withConnect = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
|
|
22376
22388
|
|
|
22377
|
-
//
|
|
22378
|
-
|
|
22379
|
-
key: 'CapAskAira.RuleSummarizationBot'
|
|
22380
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22381
|
-
});
|
|
22382
|
-
var _default = exports["default"] = (0, _redux.compose)(withConnect)(LocalizedRuleSummarizationBot);
|
|
22389
|
+
// compose(connect)(injectIntl(...)) conflicts: connect infers actions return action objects, props type uses void; cast avoids complex generics
|
|
22390
|
+
var _default = exports["default"] = (0, _redux.compose)(withConnect)((0, _reactIntl.injectIntl)(RuleSummarizationBot));
|
|
22383
22391
|
|
|
22384
22392
|
/***/ }),
|
|
22385
22393
|
|
|
@@ -23570,6 +23578,7 @@ var _default = exports["default"] = CapAlert;
|
|
|
23570
23578
|
exports.__esModule = true;
|
|
23571
23579
|
exports["default"] = void 0;
|
|
23572
23580
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
23581
|
+
var _reactIntl = __webpack_require__(46407);
|
|
23573
23582
|
var _uuid = __webpack_require__(79308);
|
|
23574
23583
|
var _cart = _interopRequireDefault(__webpack_require__(53425));
|
|
23575
23584
|
var _offer = _interopRequireDefault(__webpack_require__(63915));
|
|
@@ -23578,7 +23587,6 @@ var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
|
23578
23587
|
var _CapImage = _interopRequireDefault(__webpack_require__(84446));
|
|
23579
23588
|
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
23580
23589
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
23581
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
23582
23590
|
var _constants = __webpack_require__(23944);
|
|
23583
23591
|
var _useWebsocket = _interopRequireDefault(__webpack_require__(69406));
|
|
23584
23592
|
var _rootStyles = _interopRequireDefault(__webpack_require__(43647));
|
|
@@ -23590,22 +23598,40 @@ exports.clsPrefix = _constants2.clsPrefix;
|
|
|
23590
23598
|
var _CopilotResponse = _interopRequireDefault(__webpack_require__(98418));
|
|
23591
23599
|
var _GeneratingResponse = _interopRequireDefault(__webpack_require__(24650));
|
|
23592
23600
|
var _IdentityIcon = _interopRequireDefault(__webpack_require__(14338));
|
|
23601
|
+
var _messages = _interopRequireDefault(__webpack_require__(65061));
|
|
23593
23602
|
var _styles = _interopRequireDefault(__webpack_require__(29225));
|
|
23594
23603
|
var _UserRequest = _interopRequireDefault(__webpack_require__(80551));
|
|
23595
23604
|
var _jsxRuntime = __webpack_require__(74848);
|
|
23596
|
-
const _excluded = ["iconPlacement", "textAiraTitle", "textAiraTooltip"],
|
|
23597
|
-
_excluded2 = ["request", "getAPICallObject", "textPromptHere", "textCreate", "textCancel", "textGeneratingResponse", "firstName", "lastName"];
|
|
23598
23605
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23599
23606
|
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); }
|
|
23600
|
-
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); }
|
|
23601
|
-
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; }
|
|
23602
23607
|
const ConfigurationBot = _ref => {
|
|
23603
23608
|
let {
|
|
23604
|
-
|
|
23605
|
-
|
|
23606
|
-
|
|
23607
|
-
|
|
23608
|
-
|
|
23609
|
+
iconPlacement,
|
|
23610
|
+
request,
|
|
23611
|
+
getAPICallObject,
|
|
23612
|
+
firstName,
|
|
23613
|
+
lastName,
|
|
23614
|
+
intl: {
|
|
23615
|
+
formatMessage
|
|
23616
|
+
}
|
|
23617
|
+
} = _ref;
|
|
23618
|
+
const textAiraTitle = formatMessage(_messages.default.textAiraTitle);
|
|
23619
|
+
const textAiraTooltip = formatMessage(_messages.default.textAiraTooltip);
|
|
23620
|
+
const textPromptHere = formatMessage(_messages.default.textPromptHere);
|
|
23621
|
+
const textCreate = formatMessage(_messages.default.textCreate);
|
|
23622
|
+
const textCancel = formatMessage(_messages.default.textCancel);
|
|
23623
|
+
const textGeneratingResponse = formatMessage(_messages.default.textGeneratingResponse);
|
|
23624
|
+
const textUser = formatMessage(_messages.default.textUser);
|
|
23625
|
+
const textPilot = formatMessage(_messages.default.textPilot);
|
|
23626
|
+
const textCouponTile = formatMessage(_messages.default.textCouponTile);
|
|
23627
|
+
const textCouponDescription = formatMessage(_messages.default.textCouponDescription);
|
|
23628
|
+
const textPromotionTitle = formatMessage(_messages.default.textPromotionTitle);
|
|
23629
|
+
const textPromotionDescription = formatMessage(_messages.default.textPromotionDescription);
|
|
23630
|
+
const textStreakTitle = formatMessage(_messages.default.textStreakTitle);
|
|
23631
|
+
const textStreakDescription = formatMessage(_messages.default.textStreakDescription);
|
|
23632
|
+
const textCouponPrompt = formatMessage(_messages.default.textCouponPrompt);
|
|
23633
|
+
const textPromotionPrompt = formatMessage(_messages.default.textPromotionPrompt);
|
|
23634
|
+
const textStreakPrompt = formatMessage(_messages.default.textStreakPrompt);
|
|
23609
23635
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
23610
23636
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AiraContainer.default, {
|
|
23611
23637
|
titlePadding: "0.5rem",
|
|
@@ -23620,7 +23646,27 @@ const ConfigurationBot = _ref => {
|
|
|
23620
23646
|
type: 'float-br',
|
|
23621
23647
|
padding: '0rem'
|
|
23622
23648
|
},
|
|
23623
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopupContent,
|
|
23649
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopupContent, {
|
|
23650
|
+
request: request,
|
|
23651
|
+
getAPICallObject: getAPICallObject,
|
|
23652
|
+
textPromptHere: textPromptHere,
|
|
23653
|
+
textCreate: textCreate,
|
|
23654
|
+
textCancel: textCancel,
|
|
23655
|
+
textGeneratingResponse: textGeneratingResponse,
|
|
23656
|
+
firstName: firstName,
|
|
23657
|
+
lastName: lastName,
|
|
23658
|
+
textUser: textUser,
|
|
23659
|
+
textPilot: textPilot,
|
|
23660
|
+
textCouponTile: textCouponTile,
|
|
23661
|
+
textCouponDescription: textCouponDescription,
|
|
23662
|
+
textPromotionTitle: textPromotionTitle,
|
|
23663
|
+
textPromotionDescription: textPromotionDescription,
|
|
23664
|
+
textStreakTitle: textStreakTitle,
|
|
23665
|
+
textStreakDescription: textStreakDescription,
|
|
23666
|
+
textCouponPrompt: textCouponPrompt,
|
|
23667
|
+
textPromotionPrompt: textPromotionPrompt,
|
|
23668
|
+
textStreakPrompt: textStreakPrompt
|
|
23669
|
+
})
|
|
23624
23670
|
})
|
|
23625
23671
|
});
|
|
23626
23672
|
};
|
|
@@ -23748,16 +23794,26 @@ const BootupPage = _ref2 => {
|
|
|
23748
23794
|
};
|
|
23749
23795
|
const PopupContent = _ref3 => {
|
|
23750
23796
|
let {
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
|
|
23760
|
-
|
|
23797
|
+
request,
|
|
23798
|
+
getAPICallObject,
|
|
23799
|
+
textPromptHere,
|
|
23800
|
+
textCreate,
|
|
23801
|
+
textCancel,
|
|
23802
|
+
textGeneratingResponse,
|
|
23803
|
+
firstName,
|
|
23804
|
+
lastName,
|
|
23805
|
+
textUser,
|
|
23806
|
+
textPilot,
|
|
23807
|
+
textCouponTile,
|
|
23808
|
+
textCouponDescription,
|
|
23809
|
+
textPromotionTitle,
|
|
23810
|
+
textPromotionDescription,
|
|
23811
|
+
textStreakTitle,
|
|
23812
|
+
textStreakDescription,
|
|
23813
|
+
textCouponPrompt,
|
|
23814
|
+
textPromotionPrompt,
|
|
23815
|
+
textStreakPrompt
|
|
23816
|
+
} = _ref3;
|
|
23761
23817
|
const [query, setQuery] = (0, _react.useState)('');
|
|
23762
23818
|
const [loading, setLoading] = (0, _react.useState)(false);
|
|
23763
23819
|
const [changes, setChanges] = (0, _react.useState)({});
|
|
@@ -23921,9 +23977,20 @@ const PopupContent = _ref3 => {
|
|
|
23921
23977
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23922
23978
|
className: _styles.default[_constants2.clsPrefix + "-answer-container"] + " " + _rootStyles.default[_constants.rootClsPrefix + "-no-scrollbar"],
|
|
23923
23979
|
ref: scrollRef,
|
|
23924
|
-
children: [showBootupPage && /*#__PURE__*/(0, _jsxRuntime.jsx)(BootupPage,
|
|
23925
|
-
setQuery: setQuery
|
|
23926
|
-
|
|
23980
|
+
children: [showBootupPage && /*#__PURE__*/(0, _jsxRuntime.jsx)(BootupPage, {
|
|
23981
|
+
setQuery: setQuery,
|
|
23982
|
+
textUser: textUser,
|
|
23983
|
+
textPilot: textPilot,
|
|
23984
|
+
textCouponTile: textCouponTile,
|
|
23985
|
+
textCouponDescription: textCouponDescription,
|
|
23986
|
+
textPromotionTitle: textPromotionTitle,
|
|
23987
|
+
textPromotionDescription: textPromotionDescription,
|
|
23988
|
+
textStreakTitle: textStreakTitle,
|
|
23989
|
+
textStreakDescription: textStreakDescription,
|
|
23990
|
+
textCouponPrompt: textCouponPrompt,
|
|
23991
|
+
textPromotionPrompt: textPromotionPrompt,
|
|
23992
|
+
textStreakPrompt: textStreakPrompt
|
|
23993
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
23927
23994
|
className: _styles.default['copilot-body-container'],
|
|
23928
23995
|
children: renderChatMessages(chat, progressStatusData)
|
|
23929
23996
|
})]
|
|
@@ -23939,9 +24006,7 @@ const PopupContent = _ref3 => {
|
|
|
23939
24006
|
})]
|
|
23940
24007
|
});
|
|
23941
24008
|
};
|
|
23942
|
-
var _default = exports["default"] = (0,
|
|
23943
|
-
key: 'CapAskAira.ConfigurationBot'
|
|
23944
|
-
});
|
|
24009
|
+
var _default = exports["default"] = (0, _reactIntl.injectIntl)(ConfigurationBot);
|
|
23945
24010
|
|
|
23946
24011
|
/***/ }),
|
|
23947
24012
|
|
|
@@ -27004,7 +27069,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
27004
27069
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
27005
27070
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
27006
27071
|
// Module
|
|
27007
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-audiencefilter-multiline-box-outer{background:linear-gradient(90deg, #
|
|
27072
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-audiencefilter-multiline-box-outer{background:linear-gradient(90deg, #f5f5ff, #ebf6ff);padding:.5714rem 1.1429rem;width:74.143rem}.cap-aira-audiencefilter-multiline-box-outer.collapsed{height:2.8571rem}.cap-aira-audiencefilter-multiline-box-outer.expanded{height:auto}.cap-aira-audiencefilter-multiline-box-outer.analysis-height{height:max-content;min-height:6.0714rem;position:relative;overflow:visible}.cap-aira-audiencefilter-custom-title{font-weight:normal}.cap-aira-audiencefilter-info-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:100%}.cap-aira-audiencefilter-info-text{text-align:left;display:flex;align-items:center;font-family:"Roboto",sans-serif;font-weight:400;font-size:1rem;line-height:1.4286rem;letter-spacing:0}.cap-aira-audiencefilter-icon-margin{margin-right:.5714rem;width:1.1429rem;height:1.1429rem}.cap-aira-audiencefilter-icon-margin svg{width:1.1429rem;height:1.1429rem}.cap-aira-audiencefilter-ask-aira-wrapper{display:inline-flex;align-items:center;justify-content:flex-start;margin-left:.5rem;cursor:pointer;height:2rem;border-radius:.2857rem;padding:0;box-sizing:border-box;max-width:11.7143rem}.cap-aira-audiencefilter-ask-aira-wrapper:hover{background-color:#d4e1fc}.cap-aira-audiencefilter-ask-aira-link{font-family:"Roboto",sans-serif;font-weight:500;font-size:1rem;line-height:1.4286rem;letter-spacing:0;text-wrap:auto;word-break:break-word;overflow-wrap:break-word;background:linear-gradient(90deg, #6268ff, #3ba7ff);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);display:inline-block;padding:.2857rem .5714rem;white-space:nowrap}.cap-aira-audiencefilter-ask-aira-link.query-display{margin-left:0;cursor:default;text-wrap:wrap;white-space:normal;word-break:break-word;overflow-wrap:break-word}.cap-aira-audiencefilter-ask-aira-link.normal-color{background:none;color:inherit;-webkit-background-clip:initial}.cap-aira-audiencefilter-query-label{font-family:"Roboto",sans-serif;font-weight:400;font-size:1rem;line-height:1.4286rem;letter-spacing:0}.cap-aira-audiencefilter-close-icon{cursor:pointer;align-self:flex-start}.cap-aira-audiencefilter-input-wrapper{display:flex;align-items:center;margin-top:0}.cap-aira-audiencefilter-hidden{display:none}.cap-aira-audiencefilter-error-container{text-align:left;padding:0;margin-top:0;width:100%}.cap-aira-audiencefilter-error-container .cap-aira-error-bar{justify-content:flex-start;margin:0;padding:0;text-align:left}.cap-aira-audiencefilter-error-container .cap-aira-error-bar span{padding-left:0;text-align:left}.cap-aira-audiencefilter-loading-text{font-family:"Roboto",sans-serif;font-weight:400;letter-spacing:0;font-size:.8571rem;line-height:1.1429rem;color:#091e42;display:block}.cap-aira-audiencefilter-header-container{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 .5714rem 0}.cap-aira-audiencefilter-submitted-elements-container{display:flex;align-items:center;width:100%;justify-content:space-between;padding:0;border-radius:.2857rem;margin-bottom:0}.cap-aira-audiencefilter-submitted-left-section{display:flex;align-items:center;max-width:calc(100% - 1.7143rem);overflow:hidden}.cap-aira-audiencefilter-placeholder-container{display:flex;align-items:center;width:100%;justify-content:space-between}.cap-aira-audiencefilter-header-left-container{display:flex;align-items:center}.cap-aira-audiencefilter-header-icon{margin:0;width:1.1429rem;height:1.1429rem}.cap-aira-audiencefilter-header-icon svg{width:1.1429rem;height:1.1429rem}.cap-aira-audiencefilter-submitted-left-section .cap-aira-audiencefilter-header-icon{align-self:flex-start;margin-top:.5rem}.cap-aira-audiencefilter-header-label{margin:0 0 0 .5714rem;width:100%;display:block}.cap-aira-audiencefilter-close-button{margin:.4286rem 0 0 0;align-self:flex-start}.cap-aira-audiencefilter-divider{width:68rem;height:.0714rem;background-color:#dfe2e7;border:none;margin:0 !important;display:block}.cap-aira-audiencefilter-success-container{display:flex;justify-content:flex-end;width:100%;padding:0;margin:0}.cap-aira-audiencefilter-error-container,.cap-aira-audiencefilter-success-container{font-family:"Roboto",sans-serif;font-weight:400;font-size:1rem;line-height:1.4286rem;letter-spacing:0}.cap-aira-audiencefilter-edit-icon-container{display:inline-flex;margin-left:.2857rem;margin-top:-0.1429rem;vertical-align:middle;width:1.7143rem;height:1.7143rem;align-items:center;justify-content:center;border-radius:2.4286rem}.cap-aira-audiencefilter-edit-icon-container:hover{background-color:#ebecf0}.cap-aira-audiencefilter-edit-icon{width:1.1429rem;height:1.1429rem;cursor:pointer}.cap-aira-audiencefilter-loading-container{width:100%;padding:.7143rem 0;text-align:left}.cap-aira-audiencefilter-thought-process-heading{font-size:1rem;font-weight:bold;color:#091e42;margin:.5714rem 0 .1429rem 0;display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.cap-aira-audiencefilter-thought-process-text{cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;margin-right:.2857rem}.cap-aira-audiencefilter-approach-item{margin-top:.2857rem;padding:0;color:#000;display:flex;align-items:flex-start}.cap-aira-audiencefilter-approach-content{display:none}.cap-aira-audiencefilter-approach-content-visible{display:block}.cap-aira-audiencefilter-bullet{display:inline-block;flex-shrink:0;width:.8571rem;margin:.1429rem 0 0 .5714rem;line-height:1.4286rem}.cap-aira-audiencefilter-approach-text{word-break:break-word;margin:.1429rem .1429rem;flex:1}.cap-aira-audiencefilter-approach-container{width:100%}.cap-aira-audiencefilter-error-item{margin:.5714rem 0 .2143rem .2143rem;padding:0;color:#ea213a;display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;width:100%}.cap-aira-audiencefilter-error-icon{margin:.1429rem .5714rem 0 0;align-self:flex-start}.dAqpdr{font-size:1.3571rem !important}.cap-aira-audiencefilter-error-text{word-break:break-word;flex:1;white-space:pre-wrap;margin-left:.2857rem;padding-top:.0714rem;text-align:left}.cap-aira-audiencefilter-filters-added-container{width:100%;display:flex;margin:.5714rem 0 0 0;justify-content:space-between}.cap-aira-audiencefilter-filters-added-content{display:flex}.cap-aira-audiencefilter-filters-added-text{color:#091e42;padding:0 .5714rem;display:block;margin-top:.1429rem}.cap-aira-audiencefilter-full-width-row{width:100%}.cap-aira-audiencefilter-error-bar-no-padding{padding:0}.cap-aira-audiencefilter-chevron-icon{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:pointer}.cap-aira-audiencefilter-feedback-buttons{display:flex;gap:.2857rem}.cap-aira-audiencefilter-feedback-icon{cursor:pointer;padding:.3571rem;border-radius:50%;transition:background-color .2s}.cap-aira-audiencefilter-feedback-icon:hover{background-color:rgba(0,0,0,.05)}.cap-aira-audiencefilter-feedback-textarea::placeholder{color:#b3bac5}.cap-aira-audiencefilter-feedback-disabled{opacity:.5;cursor:not-allowed}.cap-aira-audiencefilter-feedback-submitted{cursor:default}.cap-aira-audiencefilter-modal-footer{margin-left:.5714rem;display:flex;justify-content:flex-start}.cap-aira-audiencefilter-modal-flat-button{background-color:#ebecf0}.cap-aira-audiencefilter-modal-title{color:#091e42;font-weight:500}.cap-aira-audiencefilter-modal-title-optional{color:#5e6c84;margin-left:.2857rem}.cap-aira-audiencefilter-feedback-message{margin-bottom:1.1429rem;color:#091e42}.cap-aira-audiencefilter-textarea-container{position:relative;width:23.2857rem}.cap-aira-audiencefilter-character-count{position:absolute;bottom:.5714rem;right:.5714rem;font-size:.8571rem;color:#5e6c84;background-color:rgba(255,255,255,.8);padding:.1429rem .2857rem;border-radius:.1429rem}.cap-aira-audiencefilter-feedback-textarea{width:23.2857rem;height:8.5714rem;padding:.5714rem;border-radius:.2857rem;border:.0714rem solid #091e42;resize:none;padding-bottom:1.7143rem}.cap-aira-audiencefilter-warning-item{margin-top:.2857rem;padding:0;color:#f87d23;display:flex;align-items:flex-start}.cap-aira-audiencefilter-warning-icon{margin-right:.5714rem;align-self:flex-start}.cap-aira-audiencefilter-warning-text{word-break:break-word;flex:1}`, ""]);
|
|
27008
27073
|
// Exports
|
|
27009
27074
|
___CSS_LOADER_EXPORT___.locals = {
|
|
27010
27075
|
"cap-aira-audiencefilter-multiline-box-outer": `cap-aira-audiencefilter-multiline-box-outer`,
|
|
@@ -27952,7 +28017,7 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
27952
28017
|
|
|
27953
28018
|
|
|
27954
28019
|
exports.__esModule = true;
|
|
27955
|
-
exports.rootClsPrefix = exports.WS_DOMAIN = exports.DOMAIN = exports.AIRA_REDUCER_DOMAIN = void 0;
|
|
28020
|
+
exports.rootClsPrefix = exports.WS_DOMAIN = exports.DOMAIN = exports.CAP_ASK_AIRA_COLORS = exports.AIRA_REDUCER_DOMAIN = void 0;
|
|
27956
28021
|
const DOMAIN = exports.DOMAIN = true ? '' :
|
|
27957
28022
|
// : 'https://crm-nightly-new.cc.capillarytech.com';
|
|
27958
28023
|
0;
|
|
@@ -27962,6 +28027,16 @@ const WS_DOMAIN = exports.WS_DOMAIN = true ? "wss://" + window.location.host :
|
|
|
27962
28027
|
const AIRA_REDUCER_DOMAIN = exports.AIRA_REDUCER_DOMAIN = 'ASK_AIRA';
|
|
27963
28028
|
const rootClsPrefix = exports.rootClsPrefix = 'cap-ask-aira';
|
|
27964
28029
|
|
|
28030
|
+
/** Shared color tokens for CapAskAira (align with components/styles/_variables.scss) */
|
|
28031
|
+
const CAP_ASK_AIRA_COLORS = exports.CAP_ASK_AIRA_COLORS = {
|
|
28032
|
+
SHADOW_GREY: '#aaaaaa',
|
|
28033
|
+
HIGHLIGHT_BG: '#eaf1ff',
|
|
28034
|
+
MASK_BG: 'rgba(244, 245, 247, 0.9)',
|
|
28035
|
+
TEXT_MUTED: '#808080',
|
|
28036
|
+
TEXT_SECONDARY: '#5e6c84',
|
|
28037
|
+
BORDER_EDIT: '0.1429rem solid #000000'
|
|
28038
|
+
};
|
|
28039
|
+
|
|
27965
28040
|
/***/ }),
|
|
27966
28041
|
|
|
27967
28042
|
/***/ 24066:
|
|
@@ -30680,6 +30755,22 @@ var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
|
30680
30755
|
aiRA: {
|
|
30681
30756
|
id: scope + ".aiRA",
|
|
30682
30757
|
defaultMessage: 'aiRA'
|
|
30758
|
+
},
|
|
30759
|
+
textBotPlaceholder: {
|
|
30760
|
+
id: scope + ".textBotPlaceholder",
|
|
30761
|
+
defaultMessage: 'Ask aiRA about anything on our CRM platform'
|
|
30762
|
+
},
|
|
30763
|
+
textChatBotLoader: {
|
|
30764
|
+
id: scope + ".textChatBotLoader",
|
|
30765
|
+
defaultMessage: 'Hang tight, analyzing your query...'
|
|
30766
|
+
},
|
|
30767
|
+
textChatBotDesc: {
|
|
30768
|
+
id: scope + ".textChatBotDesc",
|
|
30769
|
+
defaultMessage: 'Ask any doubts about our CRM platform and aiRA will do its best to find answers'
|
|
30770
|
+
},
|
|
30771
|
+
textChatBot: {
|
|
30772
|
+
id: scope + ".textChatBot",
|
|
30773
|
+
defaultMessage: 'Documentation Chat Bot'
|
|
30683
30774
|
}
|
|
30684
30775
|
});
|
|
30685
30776
|
|
|
@@ -30737,6 +30828,69 @@ var _default = exports["default"] = SvgAdd;
|
|
|
30737
30828
|
|
|
30738
30829
|
/***/ }),
|
|
30739
30830
|
|
|
30831
|
+
/***/ 26824:
|
|
30832
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
30833
|
+
|
|
30834
|
+
"use strict";
|
|
30835
|
+
|
|
30836
|
+
|
|
30837
|
+
exports.__esModule = true;
|
|
30838
|
+
exports.scope = exports["default"] = void 0;
|
|
30839
|
+
var _reactIntl = __webpack_require__(46407);
|
|
30840
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.CapAiMediaGeneration';
|
|
30841
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
30842
|
+
textImageBotPlaceholder: {
|
|
30843
|
+
id: scope + ".textImageBotPlaceholder",
|
|
30844
|
+
defaultMessage: 'Ask aiRA to generate an image'
|
|
30845
|
+
},
|
|
30846
|
+
textChatBotLoader: {
|
|
30847
|
+
id: scope + ".textChatBotLoader",
|
|
30848
|
+
defaultMessage: 'Hang tight, analyzing your query...'
|
|
30849
|
+
},
|
|
30850
|
+
textImageBotDesc: {
|
|
30851
|
+
id: scope + ".textImageBotDesc",
|
|
30852
|
+
defaultMessage: 'Enter a prompt that describes your image.'
|
|
30853
|
+
},
|
|
30854
|
+
textImageBot: {
|
|
30855
|
+
id: scope + ".textImageBot",
|
|
30856
|
+
defaultMessage: 'aiRA Media Generator'
|
|
30857
|
+
},
|
|
30858
|
+
textImageFooter: {
|
|
30859
|
+
id: scope + ".textImageFooter",
|
|
30860
|
+
defaultMessage: 'Dragging and dropping generated images is only supported in the basic email builder.'
|
|
30861
|
+
},
|
|
30862
|
+
textTipsGenerate: {
|
|
30863
|
+
id: scope + ".textTipsGenerate",
|
|
30864
|
+
defaultMessage: 'Tips to generate better images:'
|
|
30865
|
+
},
|
|
30866
|
+
textCopy: {
|
|
30867
|
+
id: scope + ".textCopy",
|
|
30868
|
+
defaultMessage: 'Copy image'
|
|
30869
|
+
},
|
|
30870
|
+
textCopied: {
|
|
30871
|
+
id: scope + ".textCopied",
|
|
30872
|
+
defaultMessage: 'Copied'
|
|
30873
|
+
},
|
|
30874
|
+
textDownload: {
|
|
30875
|
+
id: scope + ".textDownload",
|
|
30876
|
+
defaultMessage: 'Download'
|
|
30877
|
+
},
|
|
30878
|
+
textImageDownload: {
|
|
30879
|
+
id: scope + ".textImageDownload",
|
|
30880
|
+
defaultMessage: 'Image downloaded successfully!'
|
|
30881
|
+
},
|
|
30882
|
+
textComingSoon: {
|
|
30883
|
+
id: scope + ".textComingSoon",
|
|
30884
|
+
defaultMessage: 'Coming soon'
|
|
30885
|
+
},
|
|
30886
|
+
textGenerateMore: {
|
|
30887
|
+
id: scope + ".textGenerateMore",
|
|
30888
|
+
defaultMessage: 'Generate more'
|
|
30889
|
+
}
|
|
30890
|
+
});
|
|
30891
|
+
|
|
30892
|
+
/***/ }),
|
|
30893
|
+
|
|
30740
30894
|
/***/ 26992:
|
|
30741
30895
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
30742
30896
|
|
|
@@ -48943,6 +49097,7 @@ var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
|
48943
49097
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
48944
49098
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
48945
49099
|
var _CapInput = _interopRequireDefault(__webpack_require__(15773));
|
|
49100
|
+
var _constants = __webpack_require__(23944);
|
|
48946
49101
|
var _jsxRuntime = __webpack_require__(74848);
|
|
48947
49102
|
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); }
|
|
48948
49103
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -48987,7 +49142,7 @@ const MetaBlock = _ref => {
|
|
|
48987
49142
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
48988
49143
|
style: {
|
|
48989
49144
|
fontSize: '0.9rem',
|
|
48990
|
-
color:
|
|
49145
|
+
color: _constants.CAP_ASK_AIRA_COLORS.TEXT_SECONDARY
|
|
48991
49146
|
},
|
|
48992
49147
|
children: hint
|
|
48993
49148
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -51899,6 +52054,93 @@ var _default = exports["default"] = SvgTiktok;
|
|
|
51899
52054
|
|
|
51900
52055
|
/***/ }),
|
|
51901
52056
|
|
|
52057
|
+
/***/ 42639:
|
|
52058
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
52059
|
+
|
|
52060
|
+
"use strict";
|
|
52061
|
+
|
|
52062
|
+
|
|
52063
|
+
exports.__esModule = true;
|
|
52064
|
+
exports.scope = exports["default"] = void 0;
|
|
52065
|
+
var _reactIntl = __webpack_require__(46407);
|
|
52066
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.AudienceFilterBot';
|
|
52067
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
52068
|
+
textAiraTitle: {
|
|
52069
|
+
id: scope + ".textAiraTitle",
|
|
52070
|
+
defaultMessage: 'aiRA'
|
|
52071
|
+
},
|
|
52072
|
+
textNeedHelp: {
|
|
52073
|
+
id: scope + ".textNeedHelp",
|
|
52074
|
+
defaultMessage: 'Need help choosing the right filters?'
|
|
52075
|
+
},
|
|
52076
|
+
textAskAiraLink: {
|
|
52077
|
+
id: scope + ".textAskAiraLink",
|
|
52078
|
+
defaultMessage: 'Ask aiRA to apply filters'
|
|
52079
|
+
},
|
|
52080
|
+
textDescribeAudience: {
|
|
52081
|
+
id: scope + ".textDescribeAudience",
|
|
52082
|
+
defaultMessage: 'Describe your audience'
|
|
52083
|
+
},
|
|
52084
|
+
textPlaceholder: {
|
|
52085
|
+
id: scope + ".textPlaceholder",
|
|
52086
|
+
defaultMessage: 'e.g.: Filter customers who have made a purchase in the last 7 days'
|
|
52087
|
+
},
|
|
52088
|
+
textError: {
|
|
52089
|
+
id: scope + ".textError",
|
|
52090
|
+
defaultMessage: 'Something went wrong, please try again'
|
|
52091
|
+
},
|
|
52092
|
+
textThoughtProcess: {
|
|
52093
|
+
id: scope + ".textThoughtProcess",
|
|
52094
|
+
defaultMessage: 'Thought Process'
|
|
52095
|
+
},
|
|
52096
|
+
textFiltersAdded: {
|
|
52097
|
+
id: scope + ".textFiltersAdded",
|
|
52098
|
+
defaultMessage: 'Filters added below'
|
|
52099
|
+
},
|
|
52100
|
+
textAnalyzing: {
|
|
52101
|
+
id: scope + ".textAnalyzing",
|
|
52102
|
+
defaultMessage: 'Analyzing your query...'
|
|
52103
|
+
},
|
|
52104
|
+
textPartialFiltersAdded: {
|
|
52105
|
+
id: scope + ".textPartialFiltersAdded",
|
|
52106
|
+
defaultMessage: 'Rest of the filters added below'
|
|
52107
|
+
},
|
|
52108
|
+
textFeedbackTitle: {
|
|
52109
|
+
id: scope + ".textFeedbackTitle",
|
|
52110
|
+
defaultMessage: 'Give feedback'
|
|
52111
|
+
},
|
|
52112
|
+
textFeedbackOptional: {
|
|
52113
|
+
id: scope + ".textFeedbackOptional",
|
|
52114
|
+
defaultMessage: '(Optional)'
|
|
52115
|
+
},
|
|
52116
|
+
textFeedbackMessage: {
|
|
52117
|
+
id: scope + ".textFeedbackMessage",
|
|
52118
|
+
defaultMessage: 'Let us know what was wrong with the results'
|
|
52119
|
+
},
|
|
52120
|
+
textFeedbackPlaceholder: {
|
|
52121
|
+
id: scope + ".textFeedbackPlaceholder",
|
|
52122
|
+
defaultMessage: 'Share your feedback'
|
|
52123
|
+
},
|
|
52124
|
+
textFeedbackSubmit: {
|
|
52125
|
+
id: scope + ".textFeedbackSubmit",
|
|
52126
|
+
defaultMessage: 'Submit'
|
|
52127
|
+
},
|
|
52128
|
+
textFeedbackCancel: {
|
|
52129
|
+
id: scope + ".textFeedbackCancel",
|
|
52130
|
+
defaultMessage: 'Cancel'
|
|
52131
|
+
},
|
|
52132
|
+
textThankYouFeedback: {
|
|
52133
|
+
id: scope + ".textThankYouFeedback",
|
|
52134
|
+
defaultMessage: 'Thank you for your feedback!'
|
|
52135
|
+
},
|
|
52136
|
+
textThankYouDetailedFeedback: {
|
|
52137
|
+
id: scope + ".textThankYouDetailedFeedback",
|
|
52138
|
+
defaultMessage: 'Thank you for your detailed feedback!'
|
|
52139
|
+
}
|
|
52140
|
+
});
|
|
52141
|
+
|
|
52142
|
+
/***/ }),
|
|
52143
|
+
|
|
51902
52144
|
/***/ 42687:
|
|
51903
52145
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
51904
52146
|
|
|
@@ -52057,7 +52299,6 @@ const Notification = _ref => {
|
|
|
52057
52299
|
className
|
|
52058
52300
|
} = _ref,
|
|
52059
52301
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
52060
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
52061
52302
|
const NotificationComponent = _CapNotification.default;
|
|
52062
52303
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotificationComponent, _extends({
|
|
52063
52304
|
className: _rootStyles.default[_constants.rootClsPrefix + "-notification"] + " " + (className || '')
|
|
@@ -53832,6 +54073,7 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
53832
54073
|
exports.__esModule = true;
|
|
53833
54074
|
exports["default"] = exports.CapAiMediaGeneration = void 0;
|
|
53834
54075
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
54076
|
+
var _reactIntl = __webpack_require__(46407);
|
|
53835
54077
|
var _reactRedux = __webpack_require__(31286);
|
|
53836
54078
|
var _redux = __webpack_require__(90916);
|
|
53837
54079
|
var _reselect = __webpack_require__(86751);
|
|
@@ -53840,7 +54082,6 @@ var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
|
53840
54082
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
53841
54083
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
53842
54084
|
var _CapSpin = _interopRequireDefault(__webpack_require__(56543));
|
|
53843
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
53844
54085
|
var _constants = __webpack_require__(23944);
|
|
53845
54086
|
var _rootStyles = _interopRequireDefault(__webpack_require__(43647));
|
|
53846
54087
|
var _AiraContainer = _interopRequireDefault(__webpack_require__(97060));
|
|
@@ -53851,6 +54092,7 @@ var _Tooltip = __webpack_require__(51007);
|
|
|
53851
54092
|
var action = _interopRequireWildcard(__webpack_require__(2641));
|
|
53852
54093
|
var _api = __webpack_require__(60258);
|
|
53853
54094
|
var _constants2 = __webpack_require__(48791);
|
|
54095
|
+
var _messages = _interopRequireDefault(__webpack_require__(26824));
|
|
53854
54096
|
var _selectors = __webpack_require__(44768);
|
|
53855
54097
|
var _styles = _interopRequireDefault(__webpack_require__(88780));
|
|
53856
54098
|
var _jsxRuntime = __webpack_require__(74848);
|
|
@@ -53858,23 +54100,26 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
53858
54100
|
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); }
|
|
53859
54101
|
const CapAiMediaGeneration = _ref => {
|
|
53860
54102
|
let {
|
|
53861
|
-
textImageBot,
|
|
53862
|
-
textImageBotDesc,
|
|
53863
|
-
textImageBotPlaceholder,
|
|
53864
|
-
textImageFooter,
|
|
53865
|
-
textTipsGenerate,
|
|
53866
|
-
textCopy,
|
|
53867
|
-
textCopied,
|
|
53868
|
-
textDownload,
|
|
53869
|
-
textComingSoon,
|
|
53870
|
-
textGenerateMore,
|
|
53871
|
-
textImageDownload,
|
|
53872
54103
|
request,
|
|
53873
54104
|
getAPICallObject,
|
|
53874
54105
|
imageDetails,
|
|
53875
54106
|
actions,
|
|
53876
|
-
iconPlacement
|
|
54107
|
+
iconPlacement,
|
|
54108
|
+
intl: {
|
|
54109
|
+
formatMessage
|
|
54110
|
+
}
|
|
53877
54111
|
} = _ref;
|
|
54112
|
+
const textImageBot = formatMessage(_messages.default.textImageBot);
|
|
54113
|
+
const textImageBotDesc = formatMessage(_messages.default.textImageBotDesc);
|
|
54114
|
+
const textImageBotPlaceholder = formatMessage(_messages.default.textImageBotPlaceholder);
|
|
54115
|
+
const textImageFooter = formatMessage(_messages.default.textImageFooter);
|
|
54116
|
+
const textTipsGenerate = formatMessage(_messages.default.textTipsGenerate);
|
|
54117
|
+
const textCopy = formatMessage(_messages.default.textCopy);
|
|
54118
|
+
const textCopied = formatMessage(_messages.default.textCopied);
|
|
54119
|
+
const textDownload = formatMessage(_messages.default.textDownload);
|
|
54120
|
+
const textComingSoon = formatMessage(_messages.default.textComingSoon);
|
|
54121
|
+
const textGenerateMore = formatMessage(_messages.default.textGenerateMore);
|
|
54122
|
+
const textImageDownload = formatMessage(_messages.default.textImageDownload);
|
|
53878
54123
|
const [query, setQuery] = (0, _react.useState)('');
|
|
53879
54124
|
const [loading, setLoading] = (0, _react.useState)(false);
|
|
53880
54125
|
const [currentTab, setCurrentTab] = (0, _react.useState)(0);
|
|
@@ -53892,7 +54137,7 @@ const CapAiMediaGeneration = _ref => {
|
|
|
53892
54137
|
setLoading(false);
|
|
53893
54138
|
setShowImageBox(true);
|
|
53894
54139
|
_Notification.NotificationMethods.success({
|
|
53895
|
-
message: textImageDownload
|
|
54140
|
+
message: textImageDownload
|
|
53896
54141
|
});
|
|
53897
54142
|
}
|
|
53898
54143
|
}, [imageDetails]);
|
|
@@ -53924,11 +54169,11 @@ const CapAiMediaGeneration = _ref => {
|
|
|
53924
54169
|
titlePadding: "0.95rem",
|
|
53925
54170
|
popupWidth: "32rem",
|
|
53926
54171
|
Icon: _Icons.AiraChatBot,
|
|
53927
|
-
iconSize: "
|
|
54172
|
+
iconSize: "4.2857rem",
|
|
53928
54173
|
iconProps: {
|
|
53929
54174
|
svgProps: {
|
|
53930
54175
|
style: {
|
|
53931
|
-
padding: '
|
|
54176
|
+
padding: '1.1607rem'
|
|
53932
54177
|
}
|
|
53933
54178
|
}
|
|
53934
54179
|
},
|
|
@@ -54027,10 +54272,6 @@ const CapAiMediaGeneration = _ref => {
|
|
|
54027
54272
|
}, i)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
54028
54273
|
className: _styles.default[_constants2.clsPrefix + "-generate-more"] + " " + (loading ? _styles.default[_constants2.clsPrefix + "-loading"] : ''),
|
|
54029
54274
|
onClick: () => !loading && onSubmitHandler(true),
|
|
54030
|
-
style: {
|
|
54031
|
-
opacity: loading ? 0.5 : 1,
|
|
54032
|
-
pointerEvents: loading ? 'none' : 'auto'
|
|
54033
|
-
},
|
|
54034
54275
|
"data-testid": "generate-more",
|
|
54035
54276
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
54036
54277
|
size: "s",
|
|
@@ -54125,7 +54366,7 @@ const ImageContainer = _ref2 => {
|
|
|
54125
54366
|
type: "check-filled",
|
|
54126
54367
|
size: "s",
|
|
54127
54368
|
style: {
|
|
54128
|
-
marginRight: '
|
|
54369
|
+
marginRight: '0.2857rem'
|
|
54129
54370
|
},
|
|
54130
54371
|
"data-testid": "copied"
|
|
54131
54372
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -54172,9 +54413,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
54172
54413
|
};
|
|
54173
54414
|
}
|
|
54174
54415
|
const withConnect = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
|
|
54175
|
-
var _default = exports["default"] = (0, _redux.compose)(withConnect)((0,
|
|
54176
|
-
key: 'CapAskAira.CapAiMediaGeneration'
|
|
54177
|
-
}));
|
|
54416
|
+
var _default = exports["default"] = (0, _redux.compose)(withConnect)((0, _reactIntl.injectIntl)(CapAiMediaGeneration));
|
|
54178
54417
|
|
|
54179
54418
|
/***/ }),
|
|
54180
54419
|
|
|
@@ -54412,7 +54651,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
54412
54651
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
54413
54652
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
54414
54653
|
// Module
|
|
54415
|
-
___CSS_LOADER_EXPORT___.push([module.id, `:root{--percentage: 50%}.split-audience{flex-direction:column;padding:1.428rem 0}.split-audience .rc-slider{width:40.571rem;margin-top:3.428rem}.split-audience .rc-slider-rail,.split-audience .rc-slider-track{height:1.428rem;border-radius:.714rem}.split-audience .rc-slider-track{border-radius:0}.split-audience .rc-slider-handle{height:2.857rem;width:2.857rem;top:-10%;border:none;box-shadow:0 .285rem .571rem -2px rgba(9,30,66,.25),0 0 1px 0 rgba(9,30,66,.31)}.split-audience .rc-slider-rail{background:linear-gradient(to right, #
|
|
54654
|
+
___CSS_LOADER_EXPORT___.push([module.id, `:root{--percentage: 50%}.split-audience{flex-direction:column;padding:1.428rem 0}.split-audience .rc-slider{width:40.571rem;margin-top:3.428rem}.split-audience .rc-slider-rail,.split-audience .rc-slider-track{height:1.428rem;border-radius:.714rem}.split-audience .rc-slider-track{border-radius:0}.split-audience .rc-slider-handle{height:2.857rem;width:2.857rem;top:-10%;border:none;box-shadow:0 .285rem .571rem -2px rgba(9,30,66,.25),0 0 1px 0 rgba(9,30,66,.31)}.split-audience .rc-slider-rail{background:linear-gradient(to right, #dbb7f9 0%, #dbb7f9 var(--percentage), #f8bae4 var(--percentage), #f8bae4 100%) !important}.split-audience .footer-button{bottom:1.714rem;position:fixed}.split-audience .split-count{margin-top:1.428rem}.split-audience .split-count .cap-button-v2.flat-btn:hover{background-color:#fff;border-color:#fff}.split-audience .split-count .count{margin:0 .571rem;font-size:2.857rem;font-weight:500;color:#091e42}.split-groups:last-child{border-bottom:1px solid #dfe2e7}.audience-split-header{display:flex;align-items:center;text-align:center}.split-groups-box{display:flex;align-items:center;width:100%;flex-wrap:wrap;justify-content:flex-end}.slider-content-box{height:100%;display:flex;align-items:center}.split-equally-btn{margin-top:3.142rem}.split-info-row{margin-top:.857rem;gap:.571rem}.split-label-row{margin-top:.571rem;margin-bottom:1.142rem}.flex-auto{flex:0 0 auto}.styled-div-wrapper{display:flex}.styled-div-wrapper.disable-cursor{cursor:not-allowed;opacity:.7}.styled-div-wrapper.disable-cursor *{pointer-events:none}.advance-button{position:absolute;bottom:1.714rem}.group-dot{border-radius:50%;display:inline-block}.split-group-data{border-bottom:1px solid #dfe2e7;width:16.571rem}.split-groups{display:flex;flex-direction:column}.split-groups-row{width:100%}`, ""]);
|
|
54416
54655
|
// Exports
|
|
54417
54656
|
___CSS_LOADER_EXPORT___.locals = {
|
|
54418
54657
|
"split-audience": `split-audience`,
|
|
@@ -54580,6 +54819,8 @@ exports.watchUpdateLikeResult = watchUpdateLikeResult;
|
|
|
54580
54819
|
var _effects = __webpack_require__(20510);
|
|
54581
54820
|
var types = _interopRequireWildcard(__webpack_require__(75858));
|
|
54582
54821
|
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); }
|
|
54822
|
+
/** Worker type for takeLatest to satisfy overload (pattern, worker) */
|
|
54823
|
+
|
|
54583
54824
|
function getRule(_ref) {
|
|
54584
54825
|
let {
|
|
54585
54826
|
getRuleApi,
|
|
@@ -54649,15 +54890,12 @@ function updateDislikeResult(_ref3) {
|
|
|
54649
54890
|
}();
|
|
54650
54891
|
}
|
|
54651
54892
|
function* watchGetRule() {
|
|
54652
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54653
54893
|
yield (0, _effects.takeLatest)(types.GET_RULE_REQUEST, getRule);
|
|
54654
54894
|
}
|
|
54655
54895
|
function* watchUpdateLikeResult() {
|
|
54656
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54657
54896
|
yield (0, _effects.takeLatest)(types.UPDATE_LIKE_ANSWER_REQUEST, updateLikeResult);
|
|
54658
54897
|
}
|
|
54659
54898
|
function* watchUpdateDislikeResult() {
|
|
54660
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54661
54899
|
yield (0, _effects.takeLatest)(types.UPDATE_DISLIKE_ANSWER_REQUEST, updateDislikeResult);
|
|
54662
54900
|
}
|
|
54663
54901
|
var _default = exports["default"] = [watchGetRule, watchUpdateLikeResult, watchUpdateDislikeResult];
|
|
@@ -57452,13 +57690,13 @@ exports.__esModule = true;
|
|
|
57452
57690
|
exports["default"] = void 0;
|
|
57453
57691
|
var _markdownToJsx = _interopRequireDefault(__webpack_require__(36841));
|
|
57454
57692
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
57693
|
+
var _reactIntl = __webpack_require__(46407);
|
|
57455
57694
|
var _reactRedux = __webpack_require__(31286);
|
|
57456
57695
|
var _redux = __webpack_require__(90916);
|
|
57457
57696
|
var _reselect = __webpack_require__(86751);
|
|
57458
57697
|
var _CapHeading = _interopRequireDefault(__webpack_require__(7319));
|
|
57459
57698
|
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
57460
57699
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
57461
|
-
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
57462
57700
|
var _constants = __webpack_require__(23944);
|
|
57463
57701
|
var _useWebsocket = _interopRequireDefault(__webpack_require__(69406));
|
|
57464
57702
|
var _rootStyles = _interopRequireDefault(__webpack_require__(43647));
|
|
@@ -57477,10 +57715,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
57477
57715
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
57478
57716
|
const DocumentationChatBot = _ref => {
|
|
57479
57717
|
let {
|
|
57480
|
-
textBotPlaceholder,
|
|
57481
|
-
textChatBotLoader,
|
|
57482
|
-
textChatBotDesc,
|
|
57483
|
-
textChatBot,
|
|
57484
57718
|
actions,
|
|
57485
57719
|
getAPICallObject,
|
|
57486
57720
|
request,
|
|
@@ -57489,6 +57723,10 @@ const DocumentationChatBot = _ref => {
|
|
|
57489
57723
|
formatMessage
|
|
57490
57724
|
}
|
|
57491
57725
|
} = _ref;
|
|
57726
|
+
const textBotPlaceholder = formatMessage(_messages.default.textBotPlaceholder);
|
|
57727
|
+
const textChatBotLoader = formatMessage(_messages.default.textChatBotLoader);
|
|
57728
|
+
const textChatBotDesc = formatMessage(_messages.default.textChatBotDesc);
|
|
57729
|
+
const textChatBot = formatMessage(_messages.default.textChatBot);
|
|
57492
57730
|
const [query, setQuery] = (0, _react.useState)('');
|
|
57493
57731
|
const [loading, setLoading] = (0, _react.useState)(false);
|
|
57494
57732
|
const [answerChunks, setAnswerChunks] = (0, _react.useState)([]);
|
|
@@ -57628,11 +57866,11 @@ const DocumentationChatBot = _ref => {
|
|
|
57628
57866
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AiraContainer.default, {
|
|
57629
57867
|
titlePadding: "0.95rem",
|
|
57630
57868
|
popupWidth: "32rem",
|
|
57631
|
-
iconSize: "
|
|
57869
|
+
iconSize: "3.4286rem",
|
|
57632
57870
|
iconProps: {
|
|
57633
57871
|
svgProps: {
|
|
57634
57872
|
style: {
|
|
57635
|
-
padding: '
|
|
57873
|
+
padding: '0.9286rem'
|
|
57636
57874
|
}
|
|
57637
57875
|
}
|
|
57638
57876
|
},
|
|
@@ -57702,13 +57940,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
57702
57940
|
};
|
|
57703
57941
|
}
|
|
57704
57942
|
const withConnect = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
|
|
57705
|
-
|
|
57706
|
-
// LocaleHoc + connect/compose produce a component type that's hard to express; cast avoids complex generics
|
|
57707
|
-
const LocalizedDocumentationChatBot = (0, _LocaleHoc.default)(DocumentationChatBot, {
|
|
57708
|
-
key: 'CapAskAira.DocumentationChatBot'
|
|
57709
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
57710
|
-
});
|
|
57711
|
-
var _default = exports["default"] = (0, _redux.compose)(withConnect)(LocalizedDocumentationChatBot);
|
|
57943
|
+
var _default = exports["default"] = (0, _redux.compose)(withConnect)((0, _reactIntl.injectIntl)(DocumentationChatBot));
|
|
57712
57944
|
|
|
57713
57945
|
/***/ }),
|
|
57714
57946
|
|
|
@@ -58328,6 +58560,61 @@ var _presetColors = __webpack_require__(77459);
|
|
|
58328
58560
|
|
|
58329
58561
|
/***/ }),
|
|
58330
58562
|
|
|
58563
|
+
/***/ 49956:
|
|
58564
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
58565
|
+
|
|
58566
|
+
"use strict";
|
|
58567
|
+
|
|
58568
|
+
|
|
58569
|
+
exports.__esModule = true;
|
|
58570
|
+
exports.scope = exports["default"] = void 0;
|
|
58571
|
+
var _reactIntl = __webpack_require__(46407);
|
|
58572
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.ContentGenerationBot';
|
|
58573
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
58574
|
+
textTypeAMessage: {
|
|
58575
|
+
id: scope + ".textTypeAMessage",
|
|
58576
|
+
defaultMessage: 'Type a message above and ask aiRA to recommend the best content'
|
|
58577
|
+
},
|
|
58578
|
+
textError: {
|
|
58579
|
+
id: scope + ".textError",
|
|
58580
|
+
defaultMessage: 'An error occurred while loading recommendations. Try again.'
|
|
58581
|
+
},
|
|
58582
|
+
textAiraTitle: {
|
|
58583
|
+
id: scope + ".textAiraTitle",
|
|
58584
|
+
defaultMessage: 'aiRA Content Recommendations'
|
|
58585
|
+
},
|
|
58586
|
+
textAiraTooltip: {
|
|
58587
|
+
id: scope + ".textAiraTooltip",
|
|
58588
|
+
defaultMessage: 'aiRA, our proprietary AI tool, recommends tailored language to effectively engage customers and prompt desired actions.'
|
|
58589
|
+
},
|
|
58590
|
+
textCharacters: {
|
|
58591
|
+
id: scope + ".textCharacters",
|
|
58592
|
+
defaultMessage: 'characters'
|
|
58593
|
+
},
|
|
58594
|
+
textReplaceWithThis: {
|
|
58595
|
+
id: scope + ".textReplaceWithThis",
|
|
58596
|
+
defaultMessage: 'Replace with this'
|
|
58597
|
+
},
|
|
58598
|
+
textReplaced: {
|
|
58599
|
+
id: scope + ".textReplaced",
|
|
58600
|
+
defaultMessage: 'Replaced'
|
|
58601
|
+
},
|
|
58602
|
+
textResetToDefault: {
|
|
58603
|
+
id: scope + ".textResetToDefault",
|
|
58604
|
+
defaultMessage: 'Reset to default'
|
|
58605
|
+
},
|
|
58606
|
+
textMoreLikeThis: {
|
|
58607
|
+
id: scope + ".textMoreLikeThis",
|
|
58608
|
+
defaultMessage: 'More like this'
|
|
58609
|
+
},
|
|
58610
|
+
textGenerateMore: {
|
|
58611
|
+
id: scope + ".textGenerateMore",
|
|
58612
|
+
defaultMessage: 'Generate more'
|
|
58613
|
+
}
|
|
58614
|
+
});
|
|
58615
|
+
|
|
58616
|
+
/***/ }),
|
|
58617
|
+
|
|
58331
58618
|
/***/ 50002:
|
|
58332
58619
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
58333
58620
|
|
|
@@ -58922,12 +59209,13 @@ exports["default"] = CapRadioButton;
|
|
|
58922
59209
|
exports.__esModule = true;
|
|
58923
59210
|
exports["default"] = void 0;
|
|
58924
59211
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
59212
|
+
var _reactIntl = __webpack_require__(46407);
|
|
58925
59213
|
var _reactRedux = __webpack_require__(31286);
|
|
58926
59214
|
var _redux = __webpack_require__(90916);
|
|
58927
59215
|
var _reselect = __webpack_require__(86751);
|
|
58928
59216
|
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
58929
59217
|
var _CapSpin = _interopRequireDefault(__webpack_require__(56543));
|
|
58930
|
-
var
|
|
59218
|
+
var _constants = __webpack_require__(23944);
|
|
58931
59219
|
var _AiraContainer = _interopRequireDefault(__webpack_require__(97060));
|
|
58932
59220
|
var _ErrorBar = _interopRequireDefault(__webpack_require__(83985));
|
|
58933
59221
|
var _Icons = __webpack_require__(91540);
|
|
@@ -58936,6 +59224,7 @@ var _SecondaryButton = _interopRequireDefault(__webpack_require__(15488));
|
|
|
58936
59224
|
var action = _interopRequireWildcard(__webpack_require__(15608));
|
|
58937
59225
|
var _api = __webpack_require__(80935);
|
|
58938
59226
|
var constants = _interopRequireWildcard(__webpack_require__(75858));
|
|
59227
|
+
var _messages = _interopRequireDefault(__webpack_require__(69007));
|
|
58939
59228
|
var _selector = __webpack_require__(82713);
|
|
58940
59229
|
var _styles = _interopRequireDefault(__webpack_require__(69661));
|
|
58941
59230
|
var _UtilComponents = __webpack_require__(38273);
|
|
@@ -58945,23 +59234,26 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
58945
59234
|
const RuleGenerationBot = _ref => {
|
|
58946
59235
|
let {
|
|
58947
59236
|
popupWidth = '42rem',
|
|
58948
|
-
textAiraTitle,
|
|
58949
|
-
textAiraTooltip,
|
|
58950
|
-
textRulePlaceholder,
|
|
58951
|
-
textCopy,
|
|
58952
|
-
textCopied,
|
|
58953
|
-
textRuleLoading,
|
|
58954
|
-
textThank,
|
|
58955
|
-
textError,
|
|
58956
|
-
textAddCommentPlaceholder,
|
|
58957
|
-
textWarn,
|
|
58958
59237
|
askAiraData = {},
|
|
58959
59238
|
actions,
|
|
58960
59239
|
activity,
|
|
58961
59240
|
request,
|
|
58962
59241
|
getAPICallObject,
|
|
58963
|
-
iconPlacement
|
|
59242
|
+
iconPlacement,
|
|
59243
|
+
intl: {
|
|
59244
|
+
formatMessage
|
|
59245
|
+
}
|
|
58964
59246
|
} = _ref;
|
|
59247
|
+
const textAiraTitle = formatMessage(_messages.default.textAiraTitle);
|
|
59248
|
+
const textAiraTooltip = formatMessage(_messages.default.textAiraTooltip);
|
|
59249
|
+
const textRulePlaceholder = formatMessage(_messages.default.textRulePlaceholder);
|
|
59250
|
+
const textCopy = formatMessage(_messages.default.textCopy);
|
|
59251
|
+
const textCopied = formatMessage(_messages.default.textCopied);
|
|
59252
|
+
const textRuleLoading = formatMessage(_messages.default.textRuleLoading);
|
|
59253
|
+
const textThank = formatMessage(_messages.default.textThank);
|
|
59254
|
+
const textError = formatMessage(_messages.default.textError);
|
|
59255
|
+
const textAddCommentPlaceholder = formatMessage(_messages.default.textAddCommentPlaceholder);
|
|
59256
|
+
const textWarn = formatMessage(_messages.default.textWarn);
|
|
58965
59257
|
const [query, setQuery] = (0, _react.useState)('');
|
|
58966
59258
|
const [copyText, setCopyText] = (0, _react.useState)(textCopy);
|
|
58967
59259
|
const {
|
|
@@ -59031,7 +59323,7 @@ const RuleGenerationBot = _ref => {
|
|
|
59031
59323
|
})
|
|
59032
59324
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
59033
59325
|
style: {
|
|
59034
|
-
color:
|
|
59326
|
+
color: _constants.CAP_ASK_AIRA_COLORS.TEXT_MUTED,
|
|
59035
59327
|
fontSize: '0.9rem'
|
|
59036
59328
|
},
|
|
59037
59329
|
children: textRuleLoading
|
|
@@ -59075,8 +59367,6 @@ const RuleGenerationBot = _ref => {
|
|
|
59075
59367
|
const mapStateToProps = (0, _reselect.createStructuredSelector)({
|
|
59076
59368
|
askAiraData: (0, _selector.makeSelectRuleGenData)()
|
|
59077
59369
|
});
|
|
59078
|
-
|
|
59079
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
59080
59370
|
function mapDispatchToProps(dispatch) {
|
|
59081
59371
|
return {
|
|
59082
59372
|
actions: (0, _redux.bindActionCreators)(action, dispatch)
|
|
@@ -59084,12 +59374,8 @@ function mapDispatchToProps(dispatch) {
|
|
|
59084
59374
|
}
|
|
59085
59375
|
const withConnect = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
|
|
59086
59376
|
|
|
59087
|
-
//
|
|
59088
|
-
|
|
59089
|
-
key: 'CapAskAira.RuleGenerationBot'
|
|
59090
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
59091
|
-
});
|
|
59092
|
-
var _default = exports["default"] = (0, _redux.compose)(withConnect)(LocalizedRuleGenerationBot);
|
|
59377
|
+
// compose(connect)(injectIntl(...)) conflicts: connect infers actions return action objects, props type uses void; cast avoids complex generics
|
|
59378
|
+
var _default = exports["default"] = (0, _redux.compose)(withConnect)((0, _reactIntl.injectIntl)(RuleGenerationBot));
|
|
59093
59379
|
|
|
59094
59380
|
/***/ }),
|
|
59095
59381
|
|
|
@@ -67985,6 +68271,7 @@ var _exportNames = {
|
|
|
67985
68271
|
CapIllustration: true,
|
|
67986
68272
|
CapImportMFEComponent: true,
|
|
67987
68273
|
CapInput: true,
|
|
68274
|
+
CapSearchBar: true,
|
|
67988
68275
|
CapInfoNote: true,
|
|
67989
68276
|
CapLabel: true,
|
|
67990
68277
|
CapLevelGraphRenderer: true,
|
|
@@ -68050,8 +68337,8 @@ var _exportNames = {
|
|
|
68050
68337
|
CapIcons: true,
|
|
68051
68338
|
styledVars: true
|
|
68052
68339
|
};
|
|
68053
|
-
exports.
|
|
68054
|
-
exports.styledVars = exports.request = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = void 0;
|
|
68340
|
+
exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTreeSelect = exports.CapTree = exports.CapTopBar = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTimePicker = exports.CapTag = exports.CapTable = exports.CapTabV3 = exports.CapTab = exports.CapSwitch = exports.CapSupportVideosWrapper = exports.CapStepsAccordian = exports.CapSteps = exports.CapStatus = exports.CapStatisticCard = exports.CapSplit = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSnackBar = exports.CapSlider = exports.CapSlideBox = exports.CapSkeleton = exports.CapSideBar = exports.CapShape = exports.CapSelectFilter = exports.CapSelect = exports.CapSecondaryTopBar = exports.CapSearchBar = exports.CapSKUUploader = exports.CapRow = exports.CapRoadMap = exports.CapReorderComponent = exports.CapRadioGroup = exports.CapRadioCard = exports.CapRadioButton = exports.CapRadio = exports.CapProgress = exports.CapPopover = exports.CapNotificationDropdown = exports.CapNotification = exports.CapMultiSelectDatePicker = exports.CapModal = exports.CapMenu = exports.CapLogin = exports.CapList = exports.CapLink = exports.CapLevelGraphRenderer = 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.CapExpressionEditor = exports.CapError = exports.CapEmptyDivWithBorder = exports.CapDropdown = exports.CapDrawer = exports.CapDivider = exports.CapDateTimePicker = exports.CapDateRangePicker = exports.CapDatePicker = exports.CapCustomSelect = exports.CapCustomList = exports.CapCustomCheckboxList = exports.CapCustomCarousel = exports.CapCustomCard = exports.CapConditionPreview = exports.CapColumn = exports.CapColoredTag = exports.CapColorPicker = exports.CapCheckbox = exports.CapCarousel = exports.CapCardBox = exports.CapCard = exports.CapCalendarDatePicker = exports.CapCSVFileUploader = exports.CapButton = exports.CapBorderedBox = exports.CapBlock = exports.CapBanner = exports.CapAskAira = exports.CapAppNotEnabled = exports.CapAlert = exports.CapActionBar = void 0;
|
|
68341
|
+
exports.styledVars = exports.request = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = void 0;
|
|
68055
68342
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
68056
68343
|
exports.CapAlert = _CapAlert.default;
|
|
68057
68344
|
var _CapActionBar = _interopRequireDefault(__webpack_require__(9464));
|
|
@@ -68139,6 +68426,8 @@ exports.CapInput = _CapInput.default;
|
|
|
68139
68426
|
exports.CapInputSearch = _CapInput.CapInputSearch;
|
|
68140
68427
|
exports.CapInputTextArea = _CapInput.CapInputTextArea;
|
|
68141
68428
|
exports.CapInputNumber = _CapInput.CapInputNumber;
|
|
68429
|
+
var _Search = _interopRequireDefault(__webpack_require__(27625));
|
|
68430
|
+
exports.CapSearchBar = _Search.default;
|
|
68142
68431
|
var _CapInfoNote = _interopRequireDefault(__webpack_require__(47703));
|
|
68143
68432
|
exports.CapInfoNote = _CapInfoNote.default;
|
|
68144
68433
|
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
@@ -68725,6 +69014,61 @@ var _default = exports["default"] = SvgSurveyBackground;
|
|
|
68725
69014
|
|
|
68726
69015
|
/***/ }),
|
|
68727
69016
|
|
|
69017
|
+
/***/ 63525:
|
|
69018
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
69019
|
+
|
|
69020
|
+
"use strict";
|
|
69021
|
+
|
|
69022
|
+
|
|
69023
|
+
exports.__esModule = true;
|
|
69024
|
+
exports.scope = exports["default"] = void 0;
|
|
69025
|
+
var _reactIntl = __webpack_require__(46407);
|
|
69026
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.DocumentationBot';
|
|
69027
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
69028
|
+
textAskYourQuestion: {
|
|
69029
|
+
id: scope + ".textAskYourQuestion",
|
|
69030
|
+
defaultMessage: 'Ask your question here'
|
|
69031
|
+
},
|
|
69032
|
+
textVisitDocs: {
|
|
69033
|
+
id: scope + ".textVisitDocs",
|
|
69034
|
+
defaultMessage: 'Visit Capillary Documentation'
|
|
69035
|
+
},
|
|
69036
|
+
textNeedHelp: {
|
|
69037
|
+
id: scope + ".textNeedHelp",
|
|
69038
|
+
defaultMessage: 'Need more help?'
|
|
69039
|
+
},
|
|
69040
|
+
textHowMayIHelp: {
|
|
69041
|
+
id: scope + ".textHowMayIHelp",
|
|
69042
|
+
defaultMessage: 'How may AI help you?'
|
|
69043
|
+
},
|
|
69044
|
+
textAira: {
|
|
69045
|
+
id: scope + ".textAira",
|
|
69046
|
+
defaultMessage: 'aiRA Documentation Bot'
|
|
69047
|
+
},
|
|
69048
|
+
textTooltip: {
|
|
69049
|
+
id: scope + ".textTooltip",
|
|
69050
|
+
defaultMessage: 'Need help? Ask aiRA'
|
|
69051
|
+
},
|
|
69052
|
+
textLinks: {
|
|
69053
|
+
id: scope + ".textLinks",
|
|
69054
|
+
defaultMessage: 'Links'
|
|
69055
|
+
},
|
|
69056
|
+
textConfidence: {
|
|
69057
|
+
id: scope + ".textConfidence",
|
|
69058
|
+
defaultMessage: 'confidence'
|
|
69059
|
+
},
|
|
69060
|
+
textWasHelpful: {
|
|
69061
|
+
id: scope + ".textWasHelpful",
|
|
69062
|
+
defaultMessage: 'Was this response helpful?'
|
|
69063
|
+
},
|
|
69064
|
+
textCantConnect: {
|
|
69065
|
+
id: scope + ".textCantConnect",
|
|
69066
|
+
defaultMessage: "Can't connect to the server."
|
|
69067
|
+
}
|
|
69068
|
+
});
|
|
69069
|
+
|
|
69070
|
+
/***/ }),
|
|
69071
|
+
|
|
68728
69072
|
/***/ 63605:
|
|
68729
69073
|
/***/ ((module) => {
|
|
68730
69074
|
|
|
@@ -69471,6 +69815,89 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
69471
69815
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
69472
69816
|
|
|
69473
69817
|
|
|
69818
|
+
/***/ }),
|
|
69819
|
+
|
|
69820
|
+
/***/ 65061:
|
|
69821
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
69822
|
+
|
|
69823
|
+
"use strict";
|
|
69824
|
+
|
|
69825
|
+
|
|
69826
|
+
exports.__esModule = true;
|
|
69827
|
+
exports.scope = exports["default"] = void 0;
|
|
69828
|
+
var _reactIntl = __webpack_require__(46407);
|
|
69829
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.ConfigurationBot';
|
|
69830
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
69831
|
+
textAiraTitle: {
|
|
69832
|
+
id: scope + ".textAiraTitle",
|
|
69833
|
+
defaultMessage: 'aiRA Configuration Bot'
|
|
69834
|
+
},
|
|
69835
|
+
textAiraTooltip: {
|
|
69836
|
+
id: scope + ".textAiraTooltip",
|
|
69837
|
+
defaultMessage: 'aiRA, our proprietary AI tool, helps you configure promotions, campaigns, and more.'
|
|
69838
|
+
},
|
|
69839
|
+
textUser: {
|
|
69840
|
+
id: scope + ".textUser",
|
|
69841
|
+
defaultMessage: 'Hello!'
|
|
69842
|
+
},
|
|
69843
|
+
textPilot: {
|
|
69844
|
+
id: scope + ".textPilot",
|
|
69845
|
+
defaultMessage: "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."
|
|
69846
|
+
},
|
|
69847
|
+
textCouponTile: {
|
|
69848
|
+
id: scope + ".textCouponTile",
|
|
69849
|
+
defaultMessage: 'Milestone on GS'
|
|
69850
|
+
},
|
|
69851
|
+
textCouponDescription: {
|
|
69852
|
+
id: scope + ".textCouponDescription",
|
|
69853
|
+
defaultMessage: 'Customer has to do 1000/- gross sales in a month, and can get 100 points.'
|
|
69854
|
+
},
|
|
69855
|
+
textPromotionTitle: {
|
|
69856
|
+
id: scope + ".textPromotionTitle",
|
|
69857
|
+
defaultMessage: 'Milestone on count'
|
|
69858
|
+
},
|
|
69859
|
+
textPromotionDescription: {
|
|
69860
|
+
id: scope + ".textPromotionDescription",
|
|
69861
|
+
defaultMessage: 'Eligible customers get points on every 5 transactions.'
|
|
69862
|
+
},
|
|
69863
|
+
textStreakTitle: {
|
|
69864
|
+
id: scope + ".textStreakTitle",
|
|
69865
|
+
defaultMessage: 'Reward on referral'
|
|
69866
|
+
},
|
|
69867
|
+
textStreakDescription: {
|
|
69868
|
+
id: scope + ".textStreakDescription",
|
|
69869
|
+
defaultMessage: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months.'
|
|
69870
|
+
},
|
|
69871
|
+
textPromptHere: {
|
|
69872
|
+
id: scope + ".textPromptHere",
|
|
69873
|
+
defaultMessage: 'Enter a prompt here...'
|
|
69874
|
+
},
|
|
69875
|
+
textCouponPrompt: {
|
|
69876
|
+
id: scope + ".textCouponPrompt",
|
|
69877
|
+
defaultMessage: '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.'
|
|
69878
|
+
},
|
|
69879
|
+
textPromotionPrompt: {
|
|
69880
|
+
id: scope + ".textPromotionPrompt",
|
|
69881
|
+
defaultMessage: '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'
|
|
69882
|
+
},
|
|
69883
|
+
textStreakPrompt: {
|
|
69884
|
+
id: scope + ".textStreakPrompt",
|
|
69885
|
+
defaultMessage: 'Award customer 150 points if they refer 3 users in a month. Promotion starts on July 1 and runs for 5 months. '
|
|
69886
|
+
},
|
|
69887
|
+
textCreate: {
|
|
69888
|
+
id: scope + ".textCreate",
|
|
69889
|
+
defaultMessage: 'Create'
|
|
69890
|
+
},
|
|
69891
|
+
textCancel: {
|
|
69892
|
+
id: scope + ".textCancel",
|
|
69893
|
+
defaultMessage: 'Cancel'
|
|
69894
|
+
},
|
|
69895
|
+
textGeneratingResponse: {
|
|
69896
|
+
id: scope + ".textGeneratingResponse",
|
|
69897
|
+
defaultMessage: 'Generating response'
|
|
69898
|
+
}
|
|
69899
|
+
});
|
|
69900
|
+
|
|
69474
69901
|
/***/ }),
|
|
69475
69902
|
|
|
69476
69903
|
/***/ 65124:
|
|
@@ -71181,6 +71608,65 @@ var _default = exports["default"] = SvgInfoWithError;
|
|
|
71181
71608
|
|
|
71182
71609
|
/***/ }),
|
|
71183
71610
|
|
|
71611
|
+
/***/ 69007:
|
|
71612
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
71613
|
+
|
|
71614
|
+
"use strict";
|
|
71615
|
+
|
|
71616
|
+
|
|
71617
|
+
exports.__esModule = true;
|
|
71618
|
+
exports.scope = exports["default"] = void 0;
|
|
71619
|
+
var _reactIntl = __webpack_require__(46407);
|
|
71620
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapAskAira.RuleGenerationBot';
|
|
71621
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
71622
|
+
textTypeAMessage: {
|
|
71623
|
+
id: scope + ".textTypeAMessage",
|
|
71624
|
+
defaultMessage: 'Type a message above and ask aiRA to recommend the best content'
|
|
71625
|
+
},
|
|
71626
|
+
textError: {
|
|
71627
|
+
id: scope + ".textError",
|
|
71628
|
+
defaultMessage: 'An error occurred while generating rule. Try again.'
|
|
71629
|
+
},
|
|
71630
|
+
textAiraTitle: {
|
|
71631
|
+
id: scope + ".textAiraTitle",
|
|
71632
|
+
defaultMessage: 'aiRA Rule Generation'
|
|
71633
|
+
},
|
|
71634
|
+
textAiraTooltip: {
|
|
71635
|
+
id: scope + ".textAiraTooltip",
|
|
71636
|
+
defaultMessage: 'aiRA, our proprietary AI tool, generates rule expressions based on text query.'
|
|
71637
|
+
},
|
|
71638
|
+
textCopy: {
|
|
71639
|
+
id: scope + ".textCopy",
|
|
71640
|
+
defaultMessage: 'Copy'
|
|
71641
|
+
},
|
|
71642
|
+
textCopied: {
|
|
71643
|
+
id: scope + ".textCopied",
|
|
71644
|
+
defaultMessage: 'Copied'
|
|
71645
|
+
},
|
|
71646
|
+
textRulePlaceholder: {
|
|
71647
|
+
id: scope + ".textRulePlaceholder",
|
|
71648
|
+
defaultMessage: 'Enter query...'
|
|
71649
|
+
},
|
|
71650
|
+
textRuleLoading: {
|
|
71651
|
+
id: scope + ".textRuleLoading",
|
|
71652
|
+
defaultMessage: 'Rule is loading... Hang tight!'
|
|
71653
|
+
},
|
|
71654
|
+
textThank: {
|
|
71655
|
+
id: scope + ".textThank",
|
|
71656
|
+
defaultMessage: 'Thank you for your response!'
|
|
71657
|
+
},
|
|
71658
|
+
textWarn: {
|
|
71659
|
+
id: scope + ".textWarn",
|
|
71660
|
+
defaultMessage: 'aiRA responses may be inaccurate or misleading. Help us to improve!'
|
|
71661
|
+
},
|
|
71662
|
+
textAddCommentPlaceholder: {
|
|
71663
|
+
id: scope + ".textAddCommentPlaceholder",
|
|
71664
|
+
defaultMessage: 'Add comment'
|
|
71665
|
+
}
|
|
71666
|
+
});
|
|
71667
|
+
|
|
71668
|
+
/***/ }),
|
|
71669
|
+
|
|
71184
71670
|
/***/ 69038:
|
|
71185
71671
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
71186
71672
|
|
|
@@ -77920,7 +78406,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
77920
78406
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
77921
78407
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
77922
78408
|
// Module
|
|
77923
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-config-bot-root{height:100%;display:flex;line-height:1.5;flex-direction:column}.cap-aira-config-bot-root ul{padding-inline-start:2.5rem;list-style:disc}.cap-aira-config-bot-root .bootup-page-container{margin:auto}.cap-aira-config-bot-root .bootup-page-container .coupon-promotion-container{display:flex;gap:.5rem;width:100%;padding:.85rem}.cap-aira-config-bot-root .bootup-page-container .question-container{margin:0 .85rem 0 .85rem}.cap-aira-config-bot-root .bootup-page-container .bootup-page-r1{display:flex !important;flex-direction:column;align-items:center;margin-bottom
|
|
78409
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-aira-config-bot-root{height:100%;display:flex;line-height:1.5;flex-direction:column}.cap-aira-config-bot-root ul{padding-inline-start:2.5rem;list-style:disc}.cap-aira-config-bot-root .bootup-page-container{margin:auto}.cap-aira-config-bot-root .bootup-page-container .coupon-promotion-container{display:flex;gap:.5rem;width:100%;padding:.85rem}.cap-aira-config-bot-root .bootup-page-container .question-container{margin:0 .85rem 0 .85rem}.cap-aira-config-bot-root .bootup-page-container .bootup-page-r1{display:flex !important;flex-direction:column;align-items:center;margin-bottom:.5714rem}.cap-aira-config-bot-root .bootup-page-container .bootup-page-r1 .user-name-heading{margin-top:1rem}.cap-aira-config-bot-root .bootup-page-container .bootup-page-r1 .user-description-heading{margin-top:1rem;text-align:center;padding-left:1.1429rem;padding-right:1.1429rem}.cap-aira-config-bot-root .predefined-templates-container .each-item-margin{margin-top:.2857rem}.cap-aira-config-bot-root .predefined-templates-container .create-streak-margin{margin-left:.4286rem}.cap-aira-config-bot-root .predefined-templates-container .create-template-container{padding:1.2857rem 1rem 1rem 1rem;background-color:#e9f0fe;height:9.143rem}.cap-aira-config-bot-root .predefined-templates-container .create-template-container .title-margin{margin-left:.2857rem}.cap-aira-config-bot-root .predefined-templates-container .question-template-container{padding:1rem 1rem 1rem 1rem;background-color:#e9f0fe;height:6.429rem;width:100%}.cap-aira-config-bot-root .copilot-body-container{width:100%}.cap-aira-config-bot-root .copilot-body-container .each-response-display-container{width:100%;padding:1rem .85rem}.cap-aira-config-bot-root .copilot-body-container .gpt-response-divider{margin:0}.cap-aira-config-bot-root .copilot-body-container .render-chat-messages{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding-bottom:1.4286rem}.cap-aira-config-bot-root .copilot-body-container .chat-messages{user-select:text;width:100%}.cap-aira-config-bot-root .cap-aira-config-bot-answer-container{white-space:pre-wrap;overflow-y:scroll;flex-grow:1;display:flex;flex-direction:column;justify-content:start}.cap-aira-config-bot-root .identity-icon-container .user-name-icon{width:1.7143rem;height:1.7143rem;border-radius:.5714rem;background-color:#9747ff;padding:.2857rem 0 0 .2143rem}.cap-aira-config-bot-root .generating-container{display:grid;grid-template-columns:min-content max-content;align-items:center;grid-row-gap:.4rem;grid-column-gap:.6rem}.cap-aira-config-bot-root .generate-response-container{width:100%;flex-wrap:nowrap}.cap-aira-config-bot-root .generate-response-container .generate-response-description{margin-left:.6rem;padding-top:.1429rem;word-break:break-word;width:calc(100% - 1.7rem)}.cap-aira-config-bot-root .progress-status-container .each-status-message{margin-top:.5714rem}.cap-aira-config-bot-root .progress-status-container .completed-icon{padding-top:.2857rem;margin-left:.2857rem}.cap-aira-config-bot-root .progress-status-container .progress-icon{margin-left:.8571rem}.cap-aira-config-bot-root .progress-status-container .progress-status-heading{margin-left:1.2857rem}.cap-aira-config-bot-root .user-request-container{width:100%}.cap-aira-config-bot-root .user-request-container .user-request-description{width:85%;margin-left:.8571rem;padding-top:.1429rem;word-break:break-word}.cap-aira-config-bot-root .user-approve-container{justify-content:end}.cap-aira-config-bot-root .user-approve-container .user-approve-button{height:2rem}.cap-aira-config-bot-root .user-approve-container .cancel-button{margin-left:.7143rem}.cap-aira-config-bot-root .cap-aira-config-bot-expression-editor{width:100%;border-right:.1429rem solid #000}.cap-aira-config-bot-root .cap-aira-config-bot-expression-editor .ant-input{width:100%;padding:0;border:none;outline:none;border-radius:0;line-height:1.5}.cap-aira-config-bot-root .cap-aira-config-bot-expression-editor .ant-input:focus{outline:none;box-shadow:none}`, ""]);
|
|
77924
78410
|
// Exports
|
|
77925
78411
|
___CSS_LOADER_EXPORT___.locals = {
|
|
77926
78412
|
"cap-aira-config-bot-root": `cap-aira-config-bot-root`,
|
|
@@ -84338,9 +84824,7 @@ var _effects = __webpack_require__(20510);
|
|
|
84338
84824
|
var types = _interopRequireWildcard(__webpack_require__(41686));
|
|
84339
84825
|
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); }
|
|
84340
84826
|
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); }
|
|
84341
|
-
// takeLatest overload (pattern, worker) requires a type assertion to avoid channel overload
|
|
84342
84827
|
function* watchForUpvote() {
|
|
84343
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
84344
84828
|
yield (0, _effects.takeLatest)(types.SEND_FEEDBACK_REQUEST, sendFeedbackApi);
|
|
84345
84829
|
}
|
|
84346
84830
|
function sendFeedbackApi(_ref) {
|
|
@@ -84879,7 +85363,7 @@ const MetaBlock = _ref => {
|
|
|
84879
85363
|
type: "check-filled",
|
|
84880
85364
|
size: "s",
|
|
84881
85365
|
style: {
|
|
84882
|
-
marginRight: '
|
|
85366
|
+
marginRight: '0.2857rem'
|
|
84883
85367
|
},
|
|
84884
85368
|
"data-testid": "copied"
|
|
84885
85369
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -84992,7 +85476,7 @@ const Window = _ref => {
|
|
|
84992
85476
|
const titleBarLastClick = (0, _react.useRef)(0);
|
|
84993
85477
|
const [finalPopupPosition, setFinalPopupPosition] = (0, _react.useState)(null);
|
|
84994
85478
|
const getDefaultPopupPosition = () => {
|
|
84995
|
-
if (!popupRef.current) return defaultPopupPosition(popupWidth, '
|
|
85479
|
+
if (!popupRef.current) return defaultPopupPosition(popupWidth, '0rem');
|
|
84996
85480
|
const rect = popupRef.current.getBoundingClientRect();
|
|
84997
85481
|
return defaultPopupPosition(popupWidth, rect.height + "px");
|
|
84998
85482
|
};
|
|
@@ -85035,8 +85519,8 @@ const Window = _ref => {
|
|
|
85035
85519
|
const handleMouseMove = e => {
|
|
85036
85520
|
if (dragging.current && dragPosition.current.popup && dragPosition.current.mouse) {
|
|
85037
85521
|
if (!popupPosition.current) popupPosition.current = {
|
|
85038
|
-
x: '
|
|
85039
|
-
y: '
|
|
85522
|
+
x: '0rem',
|
|
85523
|
+
y: '0rem'
|
|
85040
85524
|
};
|
|
85041
85525
|
const newX = dragPosition.current.popup.x + e.clientX - dragPosition.current.mouse.x;
|
|
85042
85526
|
const newY = dragPosition.current.popup.y + e.clientY - dragPosition.current.mouse.y;
|
|
@@ -92545,7 +93029,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
92545
93029
|
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); }
|
|
92546
93030
|
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; }
|
|
92547
93031
|
const _ = __webpack_require__(42551);
|
|
92548
|
-
const editBorder = '2px solid black';
|
|
92549
93032
|
const Chevron = _ref => {
|
|
92550
93033
|
let {
|
|
92551
93034
|
direction = 'right',
|
|
@@ -92607,7 +93090,7 @@ const EditableTextNode = _ref2 => {
|
|
|
92607
93090
|
onChange: handleChange,
|
|
92608
93091
|
style: {
|
|
92609
93092
|
flexGrow: 1,
|
|
92610
|
-
borderRight: disabled ? 'none' :
|
|
93093
|
+
borderRight: disabled ? 'none' : _constants.CAP_ASK_AIRA_COLORS.BORDER_EDIT
|
|
92611
93094
|
},
|
|
92612
93095
|
disabled: disabled
|
|
92613
93096
|
});
|
|
@@ -92695,7 +93178,7 @@ const ExpressionNode = _ref3 => {
|
|
|
92695
93178
|
children: [!enabled && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
92696
93179
|
style: {
|
|
92697
93180
|
fontFamily: 'monospace',
|
|
92698
|
-
borderRight: disabled ? 'none' :
|
|
93181
|
+
borderRight: disabled ? 'none' : _constants.CAP_ASK_AIRA_COLORS.BORDER_EDIT,
|
|
92699
93182
|
wordBreak: 'break-all'
|
|
92700
93183
|
},
|
|
92701
93184
|
children: expression
|
|
@@ -92781,9 +93264,9 @@ const InferenceNodeView = _ref5 => {
|
|
|
92781
93264
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
92782
93265
|
style: {
|
|
92783
93266
|
position: 'absolute',
|
|
92784
|
-
width: '
|
|
93267
|
+
width: '0.0714rem',
|
|
92785
93268
|
height: 'calc(100% - 1rem)',
|
|
92786
|
-
backgroundColor:
|
|
93269
|
+
backgroundColor: _constants.CAP_ASK_AIRA_COLORS.SHADOW_GREY,
|
|
92787
93270
|
left: "calc(" + chevronSize + " / 2)",
|
|
92788
93271
|
top: chevronSize,
|
|
92789
93272
|
display: isOpen ? 'block' : 'none'
|
|
@@ -92865,9 +93348,9 @@ const Inference = _ref6 => {
|
|
|
92865
93348
|
style: {
|
|
92866
93349
|
padding: '0.4rem 0.75rem',
|
|
92867
93350
|
borderRadius: '0.5rem',
|
|
92868
|
-
backgroundColor:
|
|
93351
|
+
backgroundColor: _constants.CAP_ASK_AIRA_COLORS.HIGHLIGHT_BG,
|
|
92869
93352
|
margin: '1rem 0',
|
|
92870
|
-
boxShadow:
|
|
93353
|
+
boxShadow: "0.0714rem 0.0714rem 0.2857rem " + _constants.CAP_ASK_AIRA_COLORS.SHADOW_GREY
|
|
92871
93354
|
},
|
|
92872
93355
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
92873
93356
|
style: {
|
|
@@ -93057,7 +93540,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
93057
93540
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
93058
93541
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
93059
93542
|
// Module
|
|
93060
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-ask-aira-rule-summarization-bot-tabs-container{display:flex;width:100%;justify-content:space-evenly}.cap-ask-aira-rule-summarization-bot-tab-item{flex:1;text-align:center;padding:1rem;cursor:pointer;font-weight:500;color:#
|
|
93543
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-ask-aira-rule-summarization-bot-tabs-container{display:flex;width:100%;justify-content:space-evenly}.cap-ask-aira-rule-summarization-bot-tab-item{flex:1;text-align:center;padding:1rem;cursor:pointer;font-weight:500;color:#253858;transition:background-color .3s ease,color .3s ease}.cap-ask-aira-rule-summarization-bot-tab-item.active{background-color:#fff;border-bottom:.1429rem solid #1890ff;color:#1890ff}.cap-ask-aira-rule-summarization-bot-tab-content{padding:1rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content{padding:0rem .87rem 1.12rem .87rem;height:100%;display:flex;flex-direction:column;margin-top:1rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .rule-summarize-bot{text-align:center;margin:8rem 4.65rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .three-star-icon{margin-bottom:.715rem;border-radius:100%;padding:.715rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .rule-summarize-bot-desc{margin-top:.86rem;margin-bottom:2.86rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .conversation{display:flex;flex-direction:column;margin-bottom:.7rem;width:100%}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .query-sent{padding:.573rem .86rem;background:#d4e1fc;align-self:flex-end;border-radius:.25rem;margin:.5rem .5rem 1.2rem .5rem;user-select:text}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .answer-received{border:.0625rem solid #dfe2e7;padding:.573rem .86rem;border-radius:.25rem;align-self:normal;word-wrap:break-word;width:100%;box-sizing:border-box;user-select:text;overflow-y:auto;max-height:30rem}.cap-ask-aira-rule-summarization-bot-tab-content .cap-ask-aira-rule-summarization-bot-content .chat-loader-icon{padding:.48rem;display:flex}.cap-ask-aira-rule-summarization-bot-meta-data{display:flex;margin:.715rem;justify-content:space-between}`, ""]);
|
|
93061
93544
|
// Exports
|
|
93062
93545
|
___CSS_LOADER_EXPORT___.locals = {
|
|
93063
93546
|
"cap-ask-aira-rule-summarization-bot-tabs-container": `cap-ask-aira-rule-summarization-bot-tabs-container`,
|