@copart/ops-tool-kit 1.10.20-alpha.2 → 1.10.20-alpha.4
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/dist/ops-tool-kit.js +367 -34
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.10.20-alpha.
|
|
36
|
+
const version$5 = "1.10.20-alpha.4";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -43058,7 +43058,7 @@ var GoHome = function GoHome(props) {
|
|
|
43058
43058
|
}, props.reason));
|
|
43059
43059
|
};
|
|
43060
43060
|
|
|
43061
|
-
var css_248z$2 = ".utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper {\r\n position: absolute;\r\n right: 50px;\r\n bottom: 30px;\r\n z-index: 9999;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatIcon {\r\n position: absolute;\r\n right: 0;\r\n bottom: 0px;\r\n background: #1d5ab9;\r\n border-radius: 50%;\r\n width: 60px;\r\n height: 60px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border: 5px solid #fff;\r\n box-shadow: 0 0px 6px #c1c1c1;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n position: absolute;\r\n right: 0;\r\n bottom: 68px;\r\n box-shadow: 0 0px 6px #c1c1c1;\r\n height: 600px;\r\n width: 500px;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n display: flex;\r\n flex-direction: column;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowHeader {\r\n background: #1d5ab9;\r\n display: flex;\r\n justify-content: space-between;\r\n padding: 15px;\r\n align-items: center;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowHeader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--title {\r\n font-size: 16px;\r\n font-weight: 600;\r\n line-height: 22px;\r\n color: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody {\r\n flex: 1;\r\n padding: 12px 36px;\r\n overflow: auto;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatVisible {\r\n padding-top: 56px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer {\r\n padding: 8px 0;\r\n border-bottom: 1px solid #d1d1d1;\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatVisible .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer {\r\n position: absolute;\r\n width: calc(100% - 72px);\r\n top: 57px;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messagesContainer {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 16px;\r\n gap: 16px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatButton {\r\n display: flex;\r\n align-items: center;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n cursor: pointer;\r\n border: 1px solid #d1d1d1;\r\n border-radius: 4px;\r\n padding: 6px 12px;\r\n font-weight: 600;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message {\r\n display: flex;\r\n align-items: flex-start;\r\n grid-gap: 10px;\r\n gap: 10px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--user {\r\n justify-content: flex-end;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--welcomeQuestion {\r\n margin-top: 5px;\r\n margin-left: 36px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions {\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 12px;\r\n gap: 12px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestionWrapper {\r\n display: flex;\r\n flex-direction: row-reverse;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestionContainer {\r\n max-width: 95%;\r\n word-break: break-all;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestion {\r\n border: 1px solid #3261bd;\r\n border-radius: 16px;\r\n padding: 6px 8px;\r\n font-size: 14px;\r\n color: #3261bd;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--agentIcon {\r\n width: 26px;\r\n border-radius: 50%;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble {\r\n background-color: #f5f5f5;\r\n border-radius: 0px 12px 12px 12px;\r\n padding: 10px 15px;\r\n max-width: 85%;\r\n font-size: 14px;\r\n line-height: 1.5;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--error {\r\n border: 1px solid #f1bbbc;\r\n background: #fdf6f6;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--user .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble {\r\n background: #3261bd;\r\n color: #fff;\r\n border-radius: 12px 0px 12px 12px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p {\r\n margin: 0;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p a {\r\n color: #1e54ad;\r\n text-decoration: underline;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p ol,\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p ul {\r\n padding-left: 15px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowFooter {\r\n border-top: 1px solid #d1d1d1;\r\n padding: 16px 24px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer {\r\n display: flex;\r\n align-items: center;\r\n border: 1px solid #ddd;\r\n border-radius: 12px;\r\n padding: 10px 15px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--disabled {\r\n background-color: #fafafa;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input {\r\n border: none;\r\n outline: none;\r\n flex-grow: 1;\r\n font-size: 14px !important;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-webkit-input-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-moz-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-ms-input-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::placeholder {\r\n color: #757575;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 10px;\r\n width: 75px;\r\n background-color: #f5f5f5;\r\n border-radius: 0px 12px 12px 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot {\r\n width: 8px;\r\n height: 8px;\r\n margin: 0 3px;\r\n background-color: #3261bd;\r\n border-radius: 50%;\r\n display: inline-block;\r\n -webkit-animation: utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce 1.2s infinite ease-in-out both;\r\n animation: utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce 1.2s infinite ease-in-out both;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot:nth-child(1) {\r\n -webkit-animation-delay: -0.32s;\r\n animation-delay: -0.32s;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot:nth-child(2) {\r\n -webkit-animation-delay: -0.16s;\r\n animation-delay: -0.16s;\r\n}\r\n\r\n@-webkit-keyframes utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce {\r\n 0%,\r\n 80%,\r\n 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n }\r\n 40% {\r\n -webkit-transform: scale(1);\r\n transform: scale(1);\r\n }\r\n}\r\n\r\n@keyframes utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce {\r\n 0%,\r\n 80%,\r\n 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n }\r\n 40% {\r\n -webkit-transform: scale(1);\r\n transform: scale(1);\r\n }\r\n}\r\n\r\n@media (max-width: 575px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper {\r\n right: 20px;\r\n bottom: 100px;\r\n }\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--iphoneChrome {\r\n bottom: 125px;\r\n }\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 450px;\r\n }\r\n}\r\n\r\n@media (max-width: 475px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 400px;\r\n }\r\n}\r\n\r\n@media (max-width: 425px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 350px;\r\n }\r\n}\r\n\r\n@media (max-width: 375px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 325px;\r\n }\r\n}\r\n\r\n@media (max-width: 350px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 300px;\r\n }\r\n}\r\n\r\n@media (max-width: 325px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 275px;\r\n }\r\n}\r\n";
|
|
43061
|
+
var css_248z$2 = ".utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper {\r\n position: absolute;\r\n /* right: 50px;\r\n bottom: 30px; */\r\n z-index: 9999;\r\n height: auto;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatIcon {\r\n position: absolute;\r\n right: 0;\r\n bottom: 0px;\r\n background: #1d5ab9;\r\n border-radius: 50%;\r\n width: 60px;\r\n height: 60px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border: 5px solid #fff;\r\n box-shadow: 0 0px 6px #c1c1c1;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n position: absolute;\r\n /* right: 0;\r\n bottom: 68px; */\r\n box-shadow: 0 0px 6px #c1c1c1;\r\n height: 600px;\r\n width: 500px;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n display: flex;\r\n flex-direction: column;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowHeader {\r\n background: #1d5ab9;\r\n display: flex;\r\n justify-content: space-between;\r\n padding: 15px;\r\n align-items: center;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowHeader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--title {\r\n font-size: 16px;\r\n font-weight: 600;\r\n line-height: 22px;\r\n color: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody {\r\n flex: 1;\r\n padding: 12px 36px;\r\n overflow: auto;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatVisible {\r\n padding-top: 56px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer {\r\n padding: 8px 0;\r\n border-bottom: 1px solid #d1d1d1;\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatVisible .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer {\r\n position: absolute;\r\n width: calc(100% - 72px);\r\n top: 57px;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messagesContainer {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 16px;\r\n gap: 16px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatContainer .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--newChatButton {\r\n display: flex;\r\n align-items: center;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n cursor: pointer;\r\n border: 1px solid #d1d1d1;\r\n border-radius: 4px;\r\n padding: 6px 12px;\r\n font-weight: 600;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message {\r\n display: flex;\r\n align-items: flex-start;\r\n grid-gap: 10px;\r\n gap: 10px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--user {\r\n justify-content: flex-end;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--welcomeQuestion {\r\n margin-top: 5px;\r\n margin-left: 36px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions {\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 12px;\r\n gap: 12px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestionWrapper {\r\n display: flex;\r\n flex-direction: row-reverse;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestionContainer {\r\n max-width: 95%;\r\n word-break: break-all;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestions .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--quickQuestion {\r\n border: 1px solid #3261bd;\r\n border-radius: 16px;\r\n padding: 6px 8px;\r\n font-size: 14px;\r\n color: #3261bd;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--agentIcon {\r\n width: 26px;\r\n border-radius: 50%;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble {\r\n background-color: #f5f5f5;\r\n border-radius: 0px 12px 12px 12px;\r\n padding: 10px 15px;\r\n max-width: 85%;\r\n font-size: 14px;\r\n line-height: 1.5;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--error {\r\n border: 1px solid #f1bbbc;\r\n background: #fdf6f6;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--message.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--user .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble {\r\n background: #3261bd;\r\n color: #fff;\r\n border-radius: 12px 0px 12px 12px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--feedbackContainer {\r\n display: flex;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n margin-top: 10px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p {\r\n margin: 0;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p a {\r\n color: #1e54ad;\r\n text-decoration: underline;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p ol,\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowBody .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble p ul {\r\n padding-left: 15px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowFooter {\r\n border-top: 1px solid #d1d1d1;\r\n padding: 16px 24px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer {\r\n display: flex;\r\n align-items: center;\r\n border: 1px solid #ddd;\r\n border-radius: 12px;\r\n padding: 10px 15px;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--disabled {\r\n background-color: #fafafa;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input {\r\n border: none;\r\n outline: none;\r\n flex-grow: 1;\r\n font-size: 14px !important;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-webkit-input-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-moz-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::-ms-input-placeholder {\r\n color: #757575;\r\n}\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer input:disabled::placeholder {\r\n color: #757575;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 10px;\r\n width: 75px;\r\n background-color: #f5f5f5;\r\n border-radius: 0px 12px 12px 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot {\r\n width: 8px;\r\n height: 8px;\r\n margin: 0 3px;\r\n background-color: #3261bd;\r\n border-radius: 50%;\r\n display: inline-block;\r\n -webkit-animation: utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce 1.2s infinite ease-in-out both;\r\n animation: utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce 1.2s infinite ease-in-out both;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot:nth-child(1) {\r\n -webkit-animation-delay: -0.32s;\r\n animation-delay: -0.32s;\r\n}\r\n\r\n.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatbotLoader .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--dot:nth-child(2) {\r\n -webkit-animation-delay: -0.16s;\r\n animation-delay: -0.16s;\r\n}\r\n\r\n@-webkit-keyframes utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce {\r\n 0%,\r\n 80%,\r\n 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n }\r\n 40% {\r\n -webkit-transform: scale(1);\r\n transform: scale(1);\r\n }\r\n}\r\n\r\n@keyframes utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--bounce {\r\n 0%,\r\n 80%,\r\n 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n }\r\n 40% {\r\n -webkit-transform: scale(1);\r\n transform: scale(1);\r\n }\r\n}\r\n\r\n@media (max-width: 575px) {\r\n /* .mihelpAgentWrapper {\r\n right: 20px;\r\n bottom: 100px;\r\n } */\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper.utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--iphoneChrome {\r\n bottom: 125px;\r\n }\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 450px;\r\n }\r\n}\r\n\r\n@media (max-width: 475px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 400px;\r\n }\r\n}\r\n\r\n@media (max-width: 425px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 350px;\r\n }\r\n}\r\n\r\n@media (max-width: 375px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 325px;\r\n }\r\n}\r\n\r\n@media (max-width: 350px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 300px;\r\n }\r\n}\r\n\r\n@media (max-width: 325px) {\r\n .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--mihelpAgentWrapper .utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow {\r\n width: 275px;\r\n }\r\n}\r\n";
|
|
43062
43062
|
styleInject(css_248z$2);
|
|
43063
43063
|
|
|
43064
43064
|
var _styleModuleImportMap$1 = {
|
|
@@ -43083,6 +43083,7 @@ var _styleModuleImportMap$1 = {
|
|
|
43083
43083
|
"agentIcon": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--agentIcon",
|
|
43084
43084
|
"messageBubble": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--messageBubble",
|
|
43085
43085
|
"error": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--error",
|
|
43086
|
+
"feedbackContainer": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--feedbackContainer",
|
|
43086
43087
|
"chatWindowFooter": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowFooter",
|
|
43087
43088
|
"inputContainer": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--inputContainer",
|
|
43088
43089
|
"disabled": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--disabled",
|
|
@@ -43100,7 +43101,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43100
43101
|
_ref$systemPrompt = _ref.systemPrompt,
|
|
43101
43102
|
systemPrompt = _ref$systemPrompt === void 0 ? '' : _ref$systemPrompt,
|
|
43102
43103
|
_ref$contextMessagesC = _ref.contextMessagesCount,
|
|
43103
|
-
contextMessagesCount = _ref$contextMessagesC === void 0 ? 5 : _ref$contextMessagesC
|
|
43104
|
+
contextMessagesCount = _ref$contextMessagesC === void 0 ? 5 : _ref$contextMessagesC,
|
|
43105
|
+
mihelpAgentRef = _ref.mihelpAgentRef;
|
|
43104
43106
|
|
|
43105
43107
|
var _useState = React.useState(false),
|
|
43106
43108
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -43139,10 +43141,295 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43139
43141
|
message = _useState14[0],
|
|
43140
43142
|
setMessage = _useState14[1];
|
|
43141
43143
|
|
|
43144
|
+
var _useState15 = React.useState(null),
|
|
43145
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
43146
|
+
currentContext = _useState16[0],
|
|
43147
|
+
setCurrentContext = _useState16[1];
|
|
43148
|
+
|
|
43149
|
+
var _useState17 = React.useState({}),
|
|
43150
|
+
_useState18 = _slicedToArray(_useState17, 2);
|
|
43151
|
+
_useState18[0];
|
|
43152
|
+
var setFeedbacks = _useState18[1];
|
|
43153
|
+
|
|
43154
|
+
var _useState19 = React.useState({
|
|
43155
|
+
x: 0,
|
|
43156
|
+
y: 0
|
|
43157
|
+
}),
|
|
43158
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
43159
|
+
position = _useState20[0],
|
|
43160
|
+
setPosition = _useState20[1];
|
|
43161
|
+
|
|
43162
|
+
var _useState21 = React.useState({
|
|
43163
|
+
x: 50,
|
|
43164
|
+
y: -68
|
|
43165
|
+
}),
|
|
43166
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
43167
|
+
chatPosition = _useState22[0],
|
|
43168
|
+
setChatPosition = _useState22[1];
|
|
43169
|
+
|
|
43170
|
+
var _useState23 = React.useState(false),
|
|
43171
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
43172
|
+
isDragging = _useState24[0],
|
|
43173
|
+
setIsDragging = _useState24[1];
|
|
43174
|
+
|
|
43175
|
+
var _useState25 = React.useState({
|
|
43176
|
+
x: 0,
|
|
43177
|
+
y: 0
|
|
43178
|
+
}),
|
|
43179
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
43180
|
+
offset = _useState26[0],
|
|
43181
|
+
setOffset = _useState26[1];
|
|
43182
|
+
|
|
43183
|
+
var _useState27 = React.useState(false),
|
|
43184
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
43185
|
+
dragged = _useState28[0],
|
|
43186
|
+
setDragged = _useState28[1];
|
|
43187
|
+
|
|
43188
|
+
var _useState29 = React.useState(500),
|
|
43189
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
43190
|
+
chatWindowWidth = _useState30[0],
|
|
43191
|
+
setChatWindowWidth = _useState30[1];
|
|
43192
|
+
|
|
43193
|
+
var _useState31 = React.useState(0),
|
|
43194
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
43195
|
+
windowInnerWidthForMobile = _useState32[0],
|
|
43196
|
+
setWindowInnerWidthForMobile = _useState32[1];
|
|
43197
|
+
|
|
43198
|
+
var chatWindowHeight = 600; //update this if changed in css
|
|
43199
|
+
|
|
43200
|
+
var chatIconSize = 60; //update this if changed in css
|
|
43201
|
+
|
|
43202
|
+
React.useEffect(function () {
|
|
43203
|
+
var updateChatWindowWidth = function updateChatWindowWidth() {
|
|
43204
|
+
var width = window.innerWidth;
|
|
43205
|
+
var newWidth = 500; //Update these values if changed in css
|
|
43206
|
+
|
|
43207
|
+
if (width <= 575) newWidth = 450;
|
|
43208
|
+
if (width <= 475) newWidth = 400;
|
|
43209
|
+
if (width <= 425) newWidth = 350;
|
|
43210
|
+
if (width <= 375) newWidth = 325;
|
|
43211
|
+
if (width <= 350) newWidth = 300;
|
|
43212
|
+
if (width <= 325) newWidth = 275;
|
|
43213
|
+
setChatWindowWidth(newWidth);
|
|
43214
|
+
setWindowInnerWidthForMobile(width);
|
|
43215
|
+
};
|
|
43216
|
+
|
|
43217
|
+
updateChatWindowWidth();
|
|
43218
|
+
window.addEventListener('resize', updateChatWindowWidth);
|
|
43219
|
+
return function () {
|
|
43220
|
+
return window.removeEventListener('resize', updateChatWindowWidth);
|
|
43221
|
+
};
|
|
43222
|
+
}, []);
|
|
43223
|
+
React.useEffect(function () {
|
|
43224
|
+
var updateInitialPosition = function updateInitialPosition() {
|
|
43225
|
+
var bufferForMobile = window.innerWidth <= 575 ? 40 : 0;
|
|
43226
|
+
setPosition({
|
|
43227
|
+
x: window.innerWidth - chatIconSize + bufferForMobile,
|
|
43228
|
+
y: window.innerHeight - chatIconSize + 30
|
|
43229
|
+
});
|
|
43230
|
+
};
|
|
43231
|
+
|
|
43232
|
+
updateInitialPosition();
|
|
43233
|
+
window.addEventListener('resize', updateInitialPosition);
|
|
43234
|
+
return function () {
|
|
43235
|
+
return window.removeEventListener('resize', updateInitialPosition);
|
|
43236
|
+
};
|
|
43237
|
+
}, []);
|
|
43238
|
+
|
|
43239
|
+
var handleStart = function handleStart(e) {
|
|
43240
|
+
var target = e.target;
|
|
43241
|
+
|
|
43242
|
+
if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA') {
|
|
43243
|
+
return;
|
|
43244
|
+
}
|
|
43245
|
+
|
|
43246
|
+
e.preventDefault();
|
|
43247
|
+
setIsDragging(true);
|
|
43248
|
+
setDragged(false);
|
|
43249
|
+
var clientX = e.touches ? e.touches[0].clientX : e.clientX;
|
|
43250
|
+
var clientY = e.touches ? e.touches[0].clientY : e.clientY;
|
|
43251
|
+
setOffset({
|
|
43252
|
+
x: clientX - position.x,
|
|
43253
|
+
y: clientY - position.y
|
|
43254
|
+
});
|
|
43255
|
+
};
|
|
43256
|
+
|
|
43257
|
+
var handleMove = function handleMove(e) {
|
|
43258
|
+
var _e$target;
|
|
43259
|
+
|
|
43260
|
+
if (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('#chatCloseIcon')) return;
|
|
43261
|
+
|
|
43262
|
+
if (isDragging) {
|
|
43263
|
+
setDragged(true);
|
|
43264
|
+
var clientX = e.touches ? e.touches[0].clientX : e.clientX;
|
|
43265
|
+
var clientY = e.touches ? e.touches[0].clientY : e.clientY;
|
|
43266
|
+
var newX = clientX - offset.x;
|
|
43267
|
+
var newY = clientY - offset.y; // chat icon has to stay within set screen bounds
|
|
43268
|
+
|
|
43269
|
+
newX = Math.max(chatIconSize + 10, Math.min(newX, window.innerWidth - 20));
|
|
43270
|
+
newY = Math.max(chatIconSize + 20, Math.min(newY, window.innerHeight - chatIconSize + 30));
|
|
43271
|
+
setPosition({
|
|
43272
|
+
x: newX,
|
|
43273
|
+
y: newY
|
|
43274
|
+
});
|
|
43275
|
+
}
|
|
43276
|
+
};
|
|
43277
|
+
|
|
43278
|
+
var handleEnd = function handleEnd() {
|
|
43279
|
+
setIsDragging(false);
|
|
43280
|
+
setTimeout(function () {
|
|
43281
|
+
return setDragged(false);
|
|
43282
|
+
}, 100);
|
|
43283
|
+
};
|
|
43284
|
+
|
|
43285
|
+
React.useEffect(function () {
|
|
43286
|
+
if (!isDragging) {
|
|
43287
|
+
adjustChatWindowPosition();
|
|
43288
|
+
|
|
43289
|
+
if (showChatWindow) {
|
|
43290
|
+
adjustChatIconPosition();
|
|
43291
|
+
}
|
|
43292
|
+
}
|
|
43293
|
+
}, [isDragging, position, showChatWindow]);
|
|
43294
|
+
React.useEffect(function () {
|
|
43295
|
+
var isMobile = window.innerWidth < 575;
|
|
43296
|
+
|
|
43297
|
+
if (showChatWindow && isMobile && !dragged) {
|
|
43298
|
+
adjustChatWindowPosition();
|
|
43299
|
+
}
|
|
43300
|
+
}, [position, dragged]);
|
|
43301
|
+
|
|
43302
|
+
var adjustChatWindowPosition = function adjustChatWindowPosition() {
|
|
43303
|
+
var bufferForMobile = window.innerWidth <= 575 ? 40 : 0; // let chatX = 0 - chatIconSize + bufferForMobile
|
|
43304
|
+
|
|
43305
|
+
var chatX = 0 - chatIconSize;
|
|
43306
|
+
var chatY = -chatWindowHeight - chatIconSize - 10; // Default: Open above
|
|
43307
|
+
// Adjust horizontally
|
|
43308
|
+
|
|
43309
|
+
if (position.x + chatWindowWidth > window.innerWidth + bufferForMobile) {
|
|
43310
|
+
chatX = -chatWindowWidth; // Move left if overflowing right
|
|
43311
|
+
} // Adjust vertically
|
|
43312
|
+
|
|
43313
|
+
|
|
43314
|
+
if (position.y < chatWindowHeight) {
|
|
43315
|
+
chatY = 10; // Move below if there's not enough space above
|
|
43316
|
+
}
|
|
43317
|
+
|
|
43318
|
+
setChatPosition({
|
|
43319
|
+
x: chatX,
|
|
43320
|
+
y: chatY
|
|
43321
|
+
});
|
|
43322
|
+
};
|
|
43323
|
+
|
|
43324
|
+
var adjustChatIconPosition = function adjustChatIconPosition() {
|
|
43325
|
+
var newX = position.x;
|
|
43326
|
+
var newY = position.y;
|
|
43327
|
+
var isMobile = windowInnerWidthForMobile < 575;
|
|
43328
|
+
var middleX = windowInnerWidthForMobile / 2; // Middle of the screen
|
|
43329
|
+
|
|
43330
|
+
var closerToLeft = position.x < middleX; // Check if icon is closer to left or right
|
|
43331
|
+
// Move chat icon up if chat window is overflowing at the bottom
|
|
43332
|
+
|
|
43333
|
+
if (position.y < chatWindowHeight && window.innerHeight - position.y < chatWindowHeight) {
|
|
43334
|
+
newY = position.y - (chatWindowHeight - (window.innerHeight - position.y)) - 20;
|
|
43335
|
+
} // Move chat icon down if chat window is overflowing at the top
|
|
43336
|
+
else if (position.y > chatWindowHeight && position.y < chatWindowHeight + chatIconSize + 10) {
|
|
43337
|
+
newY = chatWindowHeight + chatIconSize + 20;
|
|
43338
|
+
} // In Mobile, move chat icon to the nearest screen edge (left or right)
|
|
43339
|
+
|
|
43340
|
+
|
|
43341
|
+
if (isMobile) {
|
|
43342
|
+
newX = closerToLeft ? 70 : windowInnerWidthForMobile - 10;
|
|
43343
|
+
}
|
|
43344
|
+
|
|
43345
|
+
if (newX !== position.x || newY !== position.y) {
|
|
43346
|
+
setPosition({
|
|
43347
|
+
x: newX,
|
|
43348
|
+
y: newY
|
|
43349
|
+
});
|
|
43350
|
+
}
|
|
43351
|
+
};
|
|
43352
|
+
|
|
43142
43353
|
React.useEffect(function () {
|
|
43143
|
-
|
|
43354
|
+
if (isDragging) {
|
|
43355
|
+
document.addEventListener('mousemove', handleMove);
|
|
43356
|
+
document.addEventListener('mouseup', handleEnd);
|
|
43357
|
+
document.addEventListener('touchmove', handleMove, {
|
|
43358
|
+
passive: false
|
|
43359
|
+
});
|
|
43360
|
+
document.addEventListener('touchend', handleEnd);
|
|
43361
|
+
} else {
|
|
43362
|
+
document.removeEventListener('mousemove', handleMove);
|
|
43363
|
+
document.removeEventListener('mouseup', handleEnd);
|
|
43364
|
+
document.removeEventListener('touchmove', handleMove);
|
|
43365
|
+
document.removeEventListener('touchend', handleEnd);
|
|
43366
|
+
}
|
|
43367
|
+
|
|
43368
|
+
return function () {
|
|
43369
|
+
document.removeEventListener('mousemove', handleMove);
|
|
43370
|
+
document.removeEventListener('mouseup', handleEnd);
|
|
43371
|
+
document.removeEventListener('touchmove', handleMove);
|
|
43372
|
+
document.removeEventListener('touchend', handleEnd);
|
|
43373
|
+
};
|
|
43374
|
+
}, [isDragging]);
|
|
43375
|
+
|
|
43376
|
+
var handleChatIconClick = function handleChatIconClick() {
|
|
43377
|
+
if (!dragged) {
|
|
43378
|
+
setShowChatWindow(function (prev) {
|
|
43379
|
+
return !prev;
|
|
43380
|
+
});
|
|
43381
|
+
}
|
|
43382
|
+
};
|
|
43383
|
+
|
|
43384
|
+
React.useEffect(function () {
|
|
43385
|
+
if (showChatWindow) {
|
|
43386
|
+
adjustChatIconPosition();
|
|
43387
|
+
}
|
|
43388
|
+
}, [showChatWindow]);
|
|
43389
|
+
React.useEffect(function () {
|
|
43390
|
+
var conversationsFromSession = storage$1.getLocalItem('mihelpAgentConversations');
|
|
43144
43391
|
var conversationsToBeSaved = !isEmpty$2(conversationsFromSession) ? conversationsFromSession : [];
|
|
43145
43392
|
setConversations(conversationsToBeSaved);
|
|
43393
|
+
var feedbacksFromSession = storage$1.getLocalItem('mihelpAgentFeedbacks');
|
|
43394
|
+
var feedbacksToBeSaved = !isEmpty$2(feedbacksFromSession) ? feedbacksFromSession : {};
|
|
43395
|
+
setFeedbacks(feedbacksToBeSaved);
|
|
43396
|
+
|
|
43397
|
+
if (conversationsToBeSaved.length) {
|
|
43398
|
+
var _systemPrompts;
|
|
43399
|
+
|
|
43400
|
+
var systemPrompts = conversationsToBeSaved.filter(function (c) {
|
|
43401
|
+
return (c === null || c === void 0 ? void 0 : c.role) === 'system';
|
|
43402
|
+
});
|
|
43403
|
+
var latestPrompt = ((_systemPrompts = systemPrompts[systemPrompts.length - 1]) === null || _systemPrompts === void 0 ? void 0 : _systemPrompts.content) || '';
|
|
43404
|
+
var match = latestPrompt.match(/<context>\s*([\s\S]*?)\s*<\/context>/);
|
|
43405
|
+
|
|
43406
|
+
if (match) {
|
|
43407
|
+
var latestContext = {};
|
|
43408
|
+
|
|
43409
|
+
try {
|
|
43410
|
+
latestContext = JSON.parse(match[1]);
|
|
43411
|
+
} catch (e) {
|
|
43412
|
+
console.log('context parse error', e);
|
|
43413
|
+
}
|
|
43414
|
+
|
|
43415
|
+
if (!isEmpty$2(latestContext)) {
|
|
43416
|
+
setCurrentContext(latestContext);
|
|
43417
|
+
}
|
|
43418
|
+
} else {
|
|
43419
|
+
console.log('No context found');
|
|
43420
|
+
}
|
|
43421
|
+
}
|
|
43422
|
+
|
|
43423
|
+
if (mihelpAgentRef && _typeof(mihelpAgentRef) === 'object') {
|
|
43424
|
+
mihelpAgentRef.current = {
|
|
43425
|
+
openChat: function openChat() {
|
|
43426
|
+
return setShowChatWindow(true);
|
|
43427
|
+
},
|
|
43428
|
+
closeChat: function closeChat() {
|
|
43429
|
+
return setShowChatWindow(false);
|
|
43430
|
+
}
|
|
43431
|
+
};
|
|
43432
|
+
}
|
|
43146
43433
|
}, []);
|
|
43147
43434
|
var chatBodyRef = React.useRef(null);
|
|
43148
43435
|
|
|
@@ -43161,7 +43448,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43161
43448
|
context = storage$1.appContext;
|
|
43162
43449
|
}
|
|
43163
43450
|
} catch (e) {
|
|
43164
|
-
console.log('App context error
|
|
43451
|
+
console.log('App context error');
|
|
43165
43452
|
}
|
|
43166
43453
|
|
|
43167
43454
|
return frontEndUtils.string.substitute(systemPrompt, {
|
|
@@ -43175,7 +43462,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43175
43462
|
var _ref2 = _asyncToGenerator(
|
|
43176
43463
|
/*#__PURE__*/
|
|
43177
43464
|
regenerator.mark(function _callee(messages) {
|
|
43178
|
-
var _storage$getLocalItem, _storage$getLocalItem2, _response$data, newMessages, payload, endpoint, response, newConversations;
|
|
43465
|
+
var _window$toolkitEnv, _window$toolkitEnv2, _window$toolkitEnv3, _storage$getLocalItem, _storage$getLocalItem2, _response$data, newMessages, isCoreApp, appTiles, appName, appData, appAuthName, messagesWithOutId, payload, endpoint, response, newConversations;
|
|
43179
43466
|
|
|
43180
43467
|
return regenerator.wrap(function _callee$(_context) {
|
|
43181
43468
|
while (1) {
|
|
@@ -43187,43 +43474,74 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43187
43474
|
newMessages = _toConsumableArray(messages);
|
|
43188
43475
|
|
|
43189
43476
|
if (systemPrompt && typeof systemPrompt === 'string') {
|
|
43190
|
-
|
|
43191
|
-
|
|
43192
|
-
|
|
43193
|
-
|
|
43477
|
+
if (!currentContext) {
|
|
43478
|
+
newMessages.unshift({
|
|
43479
|
+
role: 'system',
|
|
43480
|
+
content: getSystemPrompt()
|
|
43481
|
+
});
|
|
43482
|
+
|
|
43483
|
+
if (!isEmpty$2(storage$1.appContext)) {
|
|
43484
|
+
setCurrentContext(storage$1.appContext);
|
|
43485
|
+
}
|
|
43486
|
+
} else if (!equals$1(currentContext, storage$1.appContext)) {
|
|
43487
|
+
setCurrentContext(storage$1.appContext);
|
|
43488
|
+
newMessages.splice(newMessages.length - 1, 0, {
|
|
43489
|
+
role: 'system',
|
|
43490
|
+
content: getSystemPrompt()
|
|
43491
|
+
});
|
|
43492
|
+
}
|
|
43194
43493
|
}
|
|
43195
43494
|
|
|
43495
|
+
isCoreApp = ((_window$toolkitEnv = window.toolkitEnv) === null || _window$toolkitEnv === void 0 ? void 0 : _window$toolkitEnv.IS_CORE_APP) ? window.toolkitEnv.IS_CORE_APP : process.env.IS_CORE_APP;
|
|
43496
|
+
appTiles = storage$1.getLocalItem('opsportal-core:config').tiles || [];
|
|
43497
|
+
appName = ((_window$toolkitEnv2 = window.toolkitEnv) === null || _window$toolkitEnv2 === void 0 ? void 0 : _window$toolkitEnv2.APP_NAME) ? window.toolkitEnv.APP_NAME : process.env.APP_NAME;
|
|
43498
|
+
appData = appTiles.find(function (tile) {
|
|
43499
|
+
if (tile.appName) {
|
|
43500
|
+
return tile.appName === appName;
|
|
43501
|
+
} else {
|
|
43502
|
+
return tile.path === "/".concat(appName);
|
|
43503
|
+
}
|
|
43504
|
+
});
|
|
43505
|
+
appAuthName = appData ? appData.appAuthName : ((_window$toolkitEnv3 = window.toolkitEnv) === null || _window$toolkitEnv3 === void 0 ? void 0 : _window$toolkitEnv3.APP_AUTH_NAME) ? window.toolkitEnv.APP_AUTH_NAME : process.env.APP_AUTH_NAME;
|
|
43506
|
+
messagesWithOutId = newMessages.map(function (m) {
|
|
43507
|
+
return {
|
|
43508
|
+
role: m === null || m === void 0 ? void 0 : m.role,
|
|
43509
|
+
content: m === null || m === void 0 ? void 0 : m.content
|
|
43510
|
+
};
|
|
43511
|
+
});
|
|
43196
43512
|
payload = {
|
|
43197
|
-
messages:
|
|
43513
|
+
messages: messagesWithOutId,
|
|
43198
43514
|
collection: collection,
|
|
43199
|
-
last_n: contextMessagesCount
|
|
43515
|
+
last_n: contextMessagesCount,
|
|
43516
|
+
appName: isCoreApp ? 'g2Home' : appAuthName
|
|
43200
43517
|
};
|
|
43201
43518
|
endpoint = (_storage$getLocalItem = storage$1.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.mihelpChat;
|
|
43202
|
-
_context.next =
|
|
43519
|
+
_context.next = 15;
|
|
43203
43520
|
return fetcher.post(endpoint, payload, {
|
|
43204
43521
|
headers: {
|
|
43205
43522
|
'Content-Type': 'application/json'
|
|
43206
43523
|
}
|
|
43207
43524
|
});
|
|
43208
43525
|
|
|
43209
|
-
case
|
|
43526
|
+
case 15:
|
|
43210
43527
|
response = _context.sent;
|
|
43211
43528
|
setIsLoading(false);
|
|
43212
|
-
newConversations = [].concat(_toConsumableArray(
|
|
43529
|
+
newConversations = [].concat(_toConsumableArray(newMessages), [{
|
|
43213
43530
|
role: 'assistant',
|
|
43214
|
-
content: response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.content
|
|
43531
|
+
content: response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.content,
|
|
43532
|
+
id: nonSecure()
|
|
43215
43533
|
}]);
|
|
43216
43534
|
setConversations(newConversations);
|
|
43217
|
-
storage$1.
|
|
43218
|
-
_context.next =
|
|
43535
|
+
storage$1.setLocalItem('mihelpAgentConversations', newConversations);
|
|
43536
|
+
_context.next = 34;
|
|
43219
43537
|
break;
|
|
43220
43538
|
|
|
43221
|
-
case
|
|
43222
|
-
_context.prev =
|
|
43539
|
+
case 22:
|
|
43540
|
+
_context.prev = 22;
|
|
43223
43541
|
_context.t0 = _context["catch"](2);
|
|
43224
43542
|
|
|
43225
43543
|
if (!(retryCount.current < 3)) {
|
|
43226
|
-
_context.next =
|
|
43544
|
+
_context.next = 30;
|
|
43227
43545
|
break;
|
|
43228
43546
|
}
|
|
43229
43547
|
|
|
@@ -43231,18 +43549,18 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43231
43549
|
send(messages);
|
|
43232
43550
|
return _context.abrupt("return");
|
|
43233
43551
|
|
|
43234
|
-
case
|
|
43552
|
+
case 30:
|
|
43235
43553
|
retryCount.current = 0;
|
|
43236
43554
|
setMessageError(true);
|
|
43237
43555
|
setIsLoading(false);
|
|
43238
43556
|
console.log(_context.t0);
|
|
43239
43557
|
|
|
43240
|
-
case
|
|
43558
|
+
case 34:
|
|
43241
43559
|
case "end":
|
|
43242
43560
|
return _context.stop();
|
|
43243
43561
|
}
|
|
43244
43562
|
}
|
|
43245
|
-
}, _callee, null, [[2,
|
|
43563
|
+
}, _callee, null, [[2, 22]]);
|
|
43246
43564
|
}));
|
|
43247
43565
|
|
|
43248
43566
|
return function send(_x) {
|
|
@@ -43308,7 +43626,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43308
43626
|
|
|
43309
43627
|
var handleNewConversation = function handleNewConversation() {
|
|
43310
43628
|
setConversations([]);
|
|
43311
|
-
storage$1.
|
|
43629
|
+
storage$1.setLocalItem('mihelpAgentConversations', []);
|
|
43630
|
+
storage$1.setLocalItem('mihelpAgentFeedbacks', {});
|
|
43312
43631
|
setMessageError(false);
|
|
43313
43632
|
};
|
|
43314
43633
|
|
|
@@ -43319,12 +43638,23 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43319
43638
|
return isIPhone && isChrome;
|
|
43320
43639
|
};
|
|
43321
43640
|
|
|
43322
|
-
|
|
43641
|
+
var chatbotUI = React__default["default"].createElement("div", {
|
|
43642
|
+
onMouseDown: handleStart,
|
|
43643
|
+
onTouchStart: handleStart,
|
|
43644
|
+
style: {
|
|
43645
|
+
left: "".concat(position.x, "px"),
|
|
43646
|
+
top: "".concat(position.y, "px"),
|
|
43647
|
+
cursor: 'grab'
|
|
43648
|
+
},
|
|
43323
43649
|
className: _getClassName("mihelpAgentWrapper ".concat(isChromeOnIPhone() ? 'iphoneChrome' : ''), _styleModuleImportMap$1, {
|
|
43324
43650
|
"handleMissingStyleName": "warn"
|
|
43325
43651
|
})
|
|
43326
43652
|
}, showChatWindow && React__default["default"].createElement("div", {
|
|
43327
|
-
className: "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow"
|
|
43653
|
+
className: "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindow",
|
|
43654
|
+
style: {
|
|
43655
|
+
left: "".concat(chatPosition.x, "px"),
|
|
43656
|
+
top: "".concat(chatPosition.y, "px")
|
|
43657
|
+
}
|
|
43328
43658
|
}, React__default["default"].createElement("div", {
|
|
43329
43659
|
className: "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatWindowHeader"
|
|
43330
43660
|
}, React__default["default"].createElement("span", {
|
|
@@ -43332,7 +43662,8 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43332
43662
|
}, "MiHelp Bot"), React__default["default"].createElement("span", {
|
|
43333
43663
|
onClick: function onClick() {
|
|
43334
43664
|
return setShowChatWindow(false);
|
|
43335
|
-
}
|
|
43665
|
+
},
|
|
43666
|
+
id: "chatCloseIcon"
|
|
43336
43667
|
}, React__default["default"].createElement(coreComponents.IconV2, {
|
|
43337
43668
|
name: "xmark",
|
|
43338
43669
|
variant: "light",
|
|
@@ -43398,7 +43729,9 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43398
43729
|
})), function () {
|
|
43399
43730
|
var userCount = 0;
|
|
43400
43731
|
var agentCount = 2;
|
|
43401
|
-
return conversations.
|
|
43732
|
+
return conversations.filter(function (c) {
|
|
43733
|
+
return (c === null || c === void 0 ? void 0 : c.role) !== 'system';
|
|
43734
|
+
}).map(function (conversation) {
|
|
43402
43735
|
var isUser = (conversation === null || conversation === void 0 ? void 0 : conversation.role) === 'user';
|
|
43403
43736
|
var testId = isUser ? "user-message-".concat(++userCount) : "agent-message-".concat(++agentCount);
|
|
43404
43737
|
return React__default["default"].createElement("div", {
|
|
@@ -43479,9 +43812,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43479
43812
|
disabled: isLoading || collectionError
|
|
43480
43813
|
}))))), React__default["default"].createElement("span", {
|
|
43481
43814
|
className: "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--chatIcon",
|
|
43482
|
-
onClick:
|
|
43483
|
-
return setShowChatWindow(!showChatWindow);
|
|
43484
|
-
}
|
|
43815
|
+
onClick: handleChatIconClick
|
|
43485
43816
|
}, React__default["default"].createElement(coreComponents.IconV2, {
|
|
43486
43817
|
name: "comment-sparkle-custom",
|
|
43487
43818
|
variant: "light",
|
|
@@ -43490,6 +43821,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
43490
43821
|
fontSize: '22px'
|
|
43491
43822
|
}
|
|
43492
43823
|
})));
|
|
43824
|
+
return ReactDOM__default["default"].createPortal(chatbotUI, document.body);
|
|
43493
43825
|
};
|
|
43494
43826
|
|
|
43495
43827
|
var css_248z$1 = ".utilities_ops-app-frame_AppFrame_AppFrame--AppFrame {\r\n background: var(--paleGray);\r\n background: var(--paleGray);\r\n height: 100vh;\r\n max-height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n flex-basis: 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--header {\r\n flex: 0 1 auto;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n/* Wrapper that contains the app being developed. */\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--AppContainer {\r\n flex: 1 1 auto;\r\n}\r\n";
|
|
@@ -43522,7 +43854,7 @@ var SCROLL = {
|
|
|
43522
43854
|
var NO_SCROLL = {};
|
|
43523
43855
|
var defaultSystemPrompt = 'Format all of the subsequent AI responses in valid HTML5, without markdown code blocks or any additional formatting, ensuring that the response consists only of raw HTML tags. Format your response in this structure:<html> <p> Your answer here </p> </html>';
|
|
43524
43856
|
var AppFrame = function AppFrame(props) {
|
|
43525
|
-
var _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4;
|
|
43857
|
+
var _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4, _props$mihelpAgentPro5;
|
|
43526
43858
|
|
|
43527
43859
|
// Check if the child AppBar is mounted
|
|
43528
43860
|
var _useState = React.useState(false),
|
|
@@ -43581,7 +43913,8 @@ var AppFrame = function AppFrame(props) {
|
|
|
43581
43913
|
quickReplies: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro = props.mihelpAgentProps) === null || _props$mihelpAgentPro === void 0 ? void 0 : _props$mihelpAgentPro.quickReplies,
|
|
43582
43914
|
collection: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro2 = props.mihelpAgentProps) === null || _props$mihelpAgentPro2 === void 0 ? void 0 : _props$mihelpAgentPro2.collection,
|
|
43583
43915
|
systemPrompt: (props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro3 = props.mihelpAgentProps) === null || _props$mihelpAgentPro3 === void 0 ? void 0 : _props$mihelpAgentPro3.systemPrompt) || defaultSystemPrompt,
|
|
43584
|
-
contextMessagesCount: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro4 = props.mihelpAgentProps) === null || _props$mihelpAgentPro4 === void 0 ? void 0 : _props$mihelpAgentPro4.contextMessagesCount
|
|
43916
|
+
contextMessagesCount: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro4 = props.mihelpAgentProps) === null || _props$mihelpAgentPro4 === void 0 ? void 0 : _props$mihelpAgentPro4.contextMessagesCount,
|
|
43917
|
+
mihelpAgentRef: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro5 = props.mihelpAgentProps) === null || _props$mihelpAgentPro5 === void 0 ? void 0 : _props$mihelpAgentPro5.mihelpAgentRef
|
|
43585
43918
|
})))));
|
|
43586
43919
|
};
|
|
43587
43920
|
AppFrame.defaultProps = {
|