@koredev/agentai-web-sdk 1.3.5-rc → 1.3.6-rc
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/components/aaWindow/aaWindow.d.ts +1 -0
- package/dist/components/common/services/rootService.d.ts +9 -6
- package/dist/components/common/templatemanager/tabs/atom/actionButtons.d.ts +4 -0
- package/dist/components/common/templatemanager/tabs/suggestions/article/article.d.ts +0 -3
- package/dist/components/common/templatemanager/tabs/suggestions/faq/faq.d.ts +0 -2
- package/dist/components/common/templatemanager/tabs/suggestions/file/file.d.ts +0 -3
- package/dist/components/common/templatemanager/tabs/suggestions/snippet/snippet.d.ts +0 -2
- package/dist/esm/agentai-web-sdk.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js.map +1 -1
- package/dist/umd/hot/hot-update.js +1294 -51
- package/dist/umd/hot/hot-update.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={958:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,'.aa-heading-two-xl{letter-spacing:-0.02em;font-size:72px;font-weight:400;line-height:90px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-two-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-two-xl.medium{font-weight:500}.aa-heading-two-xl.semibold{font-weight:600}.aa-heading-two-xl.bold{font-weight:700}.aa-heading-two-xl.center{text-align:center}.aa-heading-xl{letter-spacing:-0.02em;font-size:60px;font-weight:400;line-height:72px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xl.medium{font-weight:500}.aa-heading-xl.semibold{font-weight:600}.aa-heading-xl.bold{font-weight:700}.aa-heading-xl.center{text-align:center}.aa-heading-lg{letter-spacing:-0.96px;font-size:48px;font-weight:400;line-height:60px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-lg.medium{font-weight:500}.aa-heading-lg.semibold{font-weight:600}.aa-heading-lg.bold{font-weight:700}.aa-heading-lg.center{text-align:center}.aa-heading-md{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-md.medium{font-weight:500}.aa-heading-md.semibold{font-weight:600}.aa-heading-md.bold{font-weight:700}.aa-heading-md.center{text-align:center}.aa-heading-sm{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-sm.medium{font-weight:500}.aa-heading-sm.semibold{font-weight:600}.aa-heading-sm.bold{font-weight:700}.aa-heading-sm.center{text-align:center}.aa-heading-xs{font-size:24px;font-weight:400;line-height:32px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xs.medium{font-weight:500}.aa-heading-xs.semibold{font-weight:600}.aa-heading-xs.bold{font-weight:700}.aa-heading-xs.center{text-align:center}.aa-text-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xl.medium{font-weight:500}.aa-text-xl.semibold{font-weight:600}.aa-text-xl.bold{font-weight:700}.aa-text-xl.center{text-align:center}.aa-text-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-lg.medium{font-weight:500}.aa-text-lg.semibold{font-weight:600}.aa-text-lg.bold{font-weight:700}.aa-text-lg.center{text-align:center}.aa-text-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-md.medium{font-weight:500}.aa-text-md.semibold{font-weight:600}.aa-text-md.bold{font-weight:700}.aa-text-md.center{text-align:center}.aa-text-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-sm.medium{font-weight:500}.aa-text-sm.semibold{font-weight:600}.aa-text-sm.bold{font-weight:700}.aa-text-sm.center{text-align:center}.aa-text-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xs.medium{font-weight:500}.aa-text-xs.semibold{font-weight:600}.aa-text-xs.bold{font-weight:700}.aa-text-xs.center{text-align:center}.aa-text-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xxs.medium{font-weight:500}.aa-text-xxs.semibold{font-weight:600}.aa-text-xxs.bold{font-weight:700}.aa-text-xxs.center{text-align:center}.aa-desc-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xl.medium{font-weight:500}.aa-desc-xl.semibold{font-weight:600}.aa-desc-xl.bold{font-weight:700}.aa-desc-xl.center{text-align:center}.aa-desc-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-lg.medium{font-weight:500}.aa-desc-lg.semibold{font-weight:600}.aa-desc-lg.bold{font-weight:700}.aa-desc-lg.center{text-align:center}.aa-desc-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-md.medium{font-weight:500}.aa-desc-md.semibold{font-weight:600}.aa-desc-md.bold{font-weight:700}.aa-desc-md.center{text-align:center}.aa-desc-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-sm.medium{font-weight:500}.aa-desc-sm.semibold{font-weight:600}.aa-desc-sm.bold{font-weight:700}.aa-desc-sm.center{text-align:center}.aa-desc-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xs.medium{font-weight:500}.aa-desc-xs.semibold{font-weight:600}.aa-desc-xs.bold{font-weight:700}.aa-desc-xs.center{text-align:center}.aa-desc-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xxs.medium{font-weight:500}.aa-desc-xxs.semibold{font-weight:600}.aa-desc-xxs.bold{font-weight:700}.aa-desc-xxs.center{text-align:center}*::before,*::after{box-sizing:border-box}*{font-family:var(--AA-font-family);box-sizing:border-box}button{cursor:pointer}applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,summary,time,mark,audio,video{margin:0;padding:0;border:0;vertical-align:baseline}h1,h2,h3,h4,h5,h6{text-align:start}html{overflow:hidden;height:100%}body{height:100%;line-height:normal;color:var(--AA-gloabl-text-color);padding:20px}:focus-visible{outline-color:var(--AA-global-theme-bg);outline-offset:1px;outline-style:auto}body::-webkit-scrollbar{width:10px;height:10px;cursor:pointer}::-webkit-scrollbar{width:6px;height:6px;cursor:pointer}::-webkit-scrollbar-thumb{background-color:var(--AA-gloabl-bg-secondary);border-radius:7px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background-color:var(--AA-gloabl-border)}body{margin:0;font-size:14px;font-weight:400;line-height:normal;color:var(--AA-gloabl-text-color);background-color:var(--AA-global-white-bg);-webkit-text-size-adjust:100%}h6,h5,h4,h3,h2,h1{margin-top:0;margin-bottom:0px;font-weight:400;line-height:normal}.paragraph{margin:0;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color)}.paragraph.semibold{font-weight:600}.h-100{height:100%}.w-100{width:100%}p{margin:0}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}.disabled-msg{opacity:.5;pointer-events:none}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dd{margin-bottom:.5rem;margin-left:0}b,strong{font-weight:700}sub,sup{position:relative;line-height:0;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}a{color:var(--AA-global-theme-text-color);text-decoration:none;cursor:pointer}a:hover{color:var(--AA-global-theme-text-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}figure{margin:0;line-height:0}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}th{font-weight:500;text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none !important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button:disabled,[type=button]:disabled,[type=reset]:disabled,[type=submit]:disabled{opacity:.3;pointer-events:none}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}iframe{border:0}[hidden]{display:none !important}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.aa-d-none{display:none !important}.aa-hidden{display:none !important}.more-link-text{cursor:pointer;border:0;background:rgba(0,0,0,0);padding:0;color:var(--AA-global-theme-text-color)}.aa-solidbtn{border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);padding:5px 11px;display:flex;align-items:center;justify-content:center;min-height:24px}.aa_btn{padding:4px 14px;height:30px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);box-shadow:0px 1px 2px 0px rgba(16,24,40,.05);display:inline-flex;align-items:center;justify-content:center;text-align:center;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;transition:.2s all ease}.aa_btn.w-100{width:100%}.aa_btn:disabled{opacity:.3}.primaryBtn{border:1px solid var(--AA-global-theme-text-color);background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.primaryBtn:focus{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:active{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:hover{border:1px solid var(--AA-global-theme-bg);background:var(--AA-global-theme-bg)}.h_100{height:100%}@keyframes bottomToTopMove{0%{opacity:0;transform:translateY(100%);display:none}60%{display:none;opacity:0}100%{opacity:1;display:block;transform:translateY(0%)}}.animate-compo-slide-up-wrapper{height:100%;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}:root{--AA-font-family: "Inter";--AA-primary-color:#2970FF;--AA-secondary-color:#EAECF0;--AA-primary-text:#101828;--AA-secondary-text:#FFFFFF;--AA-body-background:#FFFFFF;--AA-warning-color:#D92D20;--AA-global-theme-bg:var(--AA-primary-color);--AA-global-theme-text-color:var(--AA-primary-color);--AA-gloabl-bg-secondary:var(--AA-secondary-color);--AA-global-white-color:var(--AA-secondary-text);--AA-global-white-bg:var(--AA-body-background);--AA-gloabl-text-color:var(--AA-primary-text);--AA-gloabl-text-desc-color:var(--AA-primary-text);--AA-gloabl-border:var(--AA-secondary-color);--AA-gloabl-scrollbar-bg:var(--AA-secondary-color)}.aa-toggle-switch{position:relative;display:block}.aa-toggle-switch input{opacity:0;position:absolute;z-index:9;cursor:pointer;width:28px;height:16px;left:0;top:0px;line-height:normal;font-size:0}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn{background-color:var(--AA-global-theme-bg)}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn::before{-webkit-transform:translateX(12px);-ms-transform:translateX(12px);transform:translateX(12px)}.aa-toggle-switch input:checked+.aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch input:checked+.aa-slider span.enabled{display:block}.aa-toggle-switch input:checked+.aa-slider span.disabled{display:none}.aa-toggle-switch input:checked:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch input:disabled{cursor:auto}.aa-toggle-switch input:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch .aa-slider{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(0,0,0,0);padding:0;border:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent{position:relative;width:28px;height:16px}.aa-toggle-switch .aa-slider .slide-parent .slider-btn{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0;right:0;bottom:0;transition:.4s;border-radius:10px;background:var(--AA-global-white-bg);border:0;padding:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent .slider-btn:focus{box-shadow:0px 0px 0px 4px #eff4ff}.aa-toggle-switch .aa-slider .slide-parent .slider-btn::before{position:absolute;content:"";height:12px;width:12px;top:2px;left:2px;right:0;background-color:var(--AA-global-white-bg);transition:.4s;border-radius:50%;filter:drop-shadow(0px 0.778px 1.556px rgba(16, 24, 40, 0.06)) drop-shadow(0px 0.778px 2.333px rgba(16, 24, 40, 0.1))}.aa-toggle-switch .aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch .aa-slider span.no{color:var(--AA-gloabl-text-color)}.aa-toggle-switch .aa-slider span.enabled{color:var(--AA-gloabl-text-color);display:none}.aa-toggle-switch .aa-slider span.disabled{display:block}.aa-dropdown{position:relative}.aa-dropdown .aa-dropdown-toggle{white-space:nowrap}.aa-dropdown.show .aa-dropdown-content{display:block}.aa-dropdown.show .aa-dropdown-content svg.arrow-icon{transform:rotate(180deg)}.aa-dropdown-content{position:absolute;z-index:1000;display:none;min-width:auto;margin:0;color:var(--AA-gloabl-text-color);text-align:left;list-style:none;background-clip:padding-box;border-radius:8px;background:var(--AA-global-white-bg);box-shadow:0px 4px 8px 0px rgba(32,33,36,.15);border:0;padding:8px 12px}.aa-dropdown-item{display:block;width:100%;padding:8px 14px;clear:both;text-align:inherit;text-decoration:none;white-space:nowrap;background-color:rgba(0,0,0,0);border:0;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;border-radius:6px}.aa-dropdown-item:hover,.aa-dropdown-item:focus{color:var(--AA-gloabl-text-color);background:var(--AA-gloabl-bg-secondary)}.aa-dropdown-item.active,.aa-dropdown-item:active{color:var(--AA-gloabl-text-color);text-decoration:none;background:var(--AA-gloabl-bg-secondary)}.aa-dropdown-item.disabled,.aa-dropdown-item:disabled{opacity:.5;pointer-events:none;background-color:rgba(0,0,0,0)}.playbook-dropdown-content{min-width:250px;max-height:300px;overflow:auto;max-width:350px}.playbook-dropdown-content .heading-text-scripts{border-radius:8px 8px 0px 0px;background:var(--AA-gloabl-bg-secondary);padding:8px 10px;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:600;line-height:normal;text-transform:capitalize}.playbook-dropdown-content .aa-dropdown-item{display:flex;align-items:center;gap:5px;margin:1px 0;white-space:normal}.playbook-dropdown-content .aa-dropdown-item.selected{background:var(--AA-gloabl-bg-secondary)}.playbook-dropdown-content .aa-dropdown-item p{width:100%;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.playbook-dropdown-content .aa-dropdown-item .primaryBtn{border-radius:16px;background:var(--AA-global-theme-bg);color:var(--AA-global-white-color);font-size:12px;font-weight:500;height:22px;padding:0 8px;flex-shrink:0}.playbook-dropdown-content .aa-dropdown-item span{flex-shrink:0;color:var(--AA-gloabl-text-desc-color);font-size:12px;font-weight:400;line-height:18px;opacity:.8}',""]);const r=i},773:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".agentassist-widget-main-chat-container-wrapper{height:100%;display:flex}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable{box-shadow:0px 4px 12px 2px rgba(32,33,36,.12);border-radius:4px}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable .section-agent-aa-wrapper{box-shadow:none}.agentassist-widget-main-chat-container-wrapper nav{flex-shrink:0;border-radius:4px 0px 0px 4px;border-right:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);display:flex;padding:11px;flex-direction:column;align-items:center;gap:12px;width:72px}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper{width:100%;display:flex;flex-direction:column;height:100%;position:relative;overflow:hidden;box-shadow:0px 4px 12px 2px rgba(32,33,36,.12)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper header{border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper .body-container-aa{flex:1 1 auto;position:relative;overflow:hidden}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper footer{border-radius:0px 0px 4px 4px;background:var(--AA-gloabl-bg-secondary)}@-webkit-keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.nudges-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;max-width:418px;margin:0 auto;left:0;right:0;display:flex;align-items:flex-start;justify-content:center;top:40px;padding:10px 16px;-webkit-animation-name:NudgeslideInDown;animation-name:NudgeslideInDown;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.nudges-wrapper-fixed .nudges-template-data{display:flex;flex-direction:column;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card{border-radius:24px;background:var(--success-500-main, #22C55E);box-shadow:15px 15px 26px 0px rgba(0,0,0,.15);display:flex;align-items:center;padding:6px 16px;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge{background:var(--AA-gloabl-border)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge p{color:var(--AA-gloabl-text-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge .close-nudge svg path{stroke:#000}.nudges-wrapper-fixed .nudges-template-data .nudges-card.warning-nudge{background:var(--warning-500-main, #F59E0B)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.danger-nudge{background:var(--destructive-500-main, #EF4444)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block{flex-shrink:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block svg path{fill:#fff}.nudges-wrapper-fixed .nudges-template-data .nudges-card p{color:var(--AA-global-white-color);font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge{width:16px;height:16px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color);font-size:16px}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge svg path{stroke:#fff}@-webkit-keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}@keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}.hints-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;display:flex;align-items:flex-end;justify-content:center;bottom:56px;overflow:auto;max-height:80%;max-width:100%;margin:0 auto;left:0;right:0;-webkit-animation-name:HintslideInUp;animation-name:HintslideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.hints-wrapper-fixed .hints-template-data{display:flex;flex-direction:column;gap:10px;overflow:auto;height:100%;max-height:500px;padding:10px 16px}.hints-wrapper-fixed .hints-template-data .hint-card{border-radius:12px;background:var(--success-600, #16A34A);box-shadow:0px 25px 50px -12px rgba(16,24,40,.25);position:relative;padding:12px;-webkit-animation-name:shakeHint;animation-name:shakeHint;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-delay:1s;-webkit-animation-delay:1s}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint{background:var(--gray-neutral-500, #6C737F)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block{border:2px solid var(--Neutral-200, #E5E5E5)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block svg path{fill:#667085}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint{background:var(--warning-500, #F79009)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block{border:2px solid var(--Warning-100, #FEF0C7)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block svg path{fill:#f79009}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint{background:var(--destructive-500-main, #EF4444)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block{border:2px solid var(--error-200, #FECDCA)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block svg path{stroke:#f04438}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info{display:flex;align-items:center;gap:6px}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .icon_block{display:flex;width:24px;height:24px;justify-content:center;align-items:center;border-radius:28px;border:2px solid var(--success-100, #D1FADF);background:#fff;flex-shrink:0;color:#039855}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info h1{color:#fff;font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .close-hint{flex-shrink:0;width:20px;height:20px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}.hints-wrapper-fixed .hints-template-data .hint-card .body-hint{padding:6px 0;color:#fff;font-size:14px;font-weight:400;line-height:20px;margin:0}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint{text-align:right}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint button{color:#fff;font-size:14px;font-weight:500;line-height:20px;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer}@-webkit-keyframes kr-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes kr-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.loader-progress{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999}.loader-progress .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress img{width:30px;height:30px}.loader-progress-individual{display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;height:100%;z-index:9999}.loader-progress-individual .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:24px;height:24px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-individual img{width:24px;height:24px}.loader-progress-main{display:flex;align-items:center;justify-content:center;position:relative;top:0;left:0;width:100%;height:100%;z-index:9999;border:.5px solid var(--AA-gloabl-bg-secondary);border-radius:5px}.loader-progress-main .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-main img{width:30px;height:30px}.summery-wrapper-container{position:absolute;width:100%;height:100%;background:rgba(52,64,84,.7);border-radius:6px;display:flex;align-items:center;justify-content:center}.summery-wrapper-container .summery-popup-data{background:var(--AA-global-white-bg);border-radius:6px;max-height:80%}.summery-wrapper-container .summery-popup-data .title-block{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .title-block h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:16px;width:100%}.summery-wrapper-container .summery-popup-data .title-block .ai-block{flex-shrink:0;display:flex;align-items:center;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;gap:10px;opacity:.6}.summery-wrapper-container .summery-popup-data .title-block .ai-block svg path{fill:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery{background:rgba(0,0,0,0);border:0;display:flex;align-items:center;justify-content:center;padding:0;width:16px;height:16px;font-size:16px;color:var(--AA-gloabl-text-color);cursor:pointer}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg{width:16px;height:16px}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg path{stroke:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .input-block{padding:8px;position:relative}.summery-wrapper-container .summery-popup-data .input-block textarea{min-height:200px}.summery-wrapper-container .summery-popup-data .input-block .recylin-bin-btn{border:0;padding:0;background:var(--AA-global-white-bg);cursor:pointer;z-index:1;position:absolute;right:20px;bottom:20px}.summery-wrapper-container .summery-popup-data .actions-footer{padding:8px;display:flex;align-items:center;gap:10px;justify-content:end;position:relative;min-height:52px;border-top:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .actions-footer .footer-btns-left-sec{display:flex;align-items:center;gap:8px}",""]);const r=i},567:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"@keyframes slideInUpText{0%{-webkit-transform:translateY(5px);transform:translateY(5px);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.dis-none{display:none}.widget-footer-wrapper{display:inline-block;width:100%;position:relative}.widget-footer-wrapper .logo-left-menu{display:none}.widget-footer-wrapper .line-divider{background:var(--AA-gloabl-bg-secondary);width:10px;height:2px;display:none;border-radius:4px;margin:0 auto;flex-shrink:0}.widget-footer-wrapper .footer-links-data{display:flex;padding:8px 16px;width:100%;gap:32px;min-height:50px}@media screen and (max-width: 500px){.widget-footer-wrapper .footer-links-data{gap:initial}}.widget-footer-wrapper .footer-links-data .logo-sec{display:none}.widget-footer-wrapper .footer-links-data .footer-list-buttons{width:100%;display:flex;align-items:center}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{border:0;padding:0;background:rgba(0,0,0,0);min-width:62px;height:40px;display:flex;justify-content:center;align-items:center;gap:4px;flex:1;transition:.2s all ease;color:var(--AA-gloabl-text-color);border-radius:45px}@media screen and (max-width: 600px){.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column}}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg:hover{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-mB svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-ast svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-trnspt svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover svg path{stroke:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer .svg_icon{line-height:0;font-size:16px}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer .svg_icon svg{width:18px;height:18px}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{margin:0;font-size:10px;font-weight:600;line-height:normal;-webkit-animation-name:slideInUpText;animation-name:slideInUpText;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.widget-footer-wrapper .settings-dark-theme{display:none}.widget-footer-wrapper .footer-action-items{padding:10px 0;display:none}nav{display:block;height:100%;width:100%;border-radius:4px 0px 0px 4px;background:var(--AA-global-theme-bg)}nav .widget-footer-wrapper{height:100%;border-radius:4px 0px 0px 4px;display:flex;flex-direction:column;gap:12px;justify-content:center}nav .widget-footer-wrapper .logo-left-menu{display:flex;align-items:center;height:48px;justify-content:center;border-radius:4px;width:100%;background:var(--AA-gloabl-bg-secondary)}nav .widget-footer-wrapper .logo-left-menu svg{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .line-divider{display:block}nav .widget-footer-wrapper .footer-links-data{flex-direction:column;padding:0px;gap:12px;flex:1 1 auto;overflow:auto}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column;padding:8px 0;border-radius:4px;gap:8px;min-width:auto;height:auto;overflow:hidden}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{font-weight:500;width:100%}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer svg path{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color) !important;background:var(--AA-gloabl-bg-secondary) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .settings-dark-theme{flex-shrink:0;display:flex !important;flex-direction:column;gap:8px}nav .widget-footer-wrapper .settings-dark-theme button{display:flex;padding:0px;flex-direction:column;align-items:center;gap:8px;align-self:stretch;border:0;background:rgba(0,0,0,0);height:32px;justify-content:center;font-size:16px;color:var(--AA-gloabl-text-color);transition:.2s all ease}nav .widget-footer-wrapper .settings-dark-theme button:hover,nav .widget-footer-wrapper .settings-dark-theme button.selected-tab-action{color:var(--AA-global-theme-text-color)}nav .widget-footer-wrapper .footer-action-items{padding:10px 0;display:flex;align-items:center;justify-content:center}",""]);const r=i},724:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.sugestions-block .suggestion-header .count-text{flex-shrink:0;border-radius:16px;background:var(--AA-gloabl-bg-secondary);padding:0px 8px;height:15px;display:flex;justify-content:center;align-items:center;color:var(--AA-global-theme-text-color)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec{width:100%;display:flex;align-items:center;gap:4px;overflow:hidden}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .sent-msg-text{color:var(--AA-global-theme-text-color);margin:0 0 0 auto}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph{transition:max-height .3s ease;overflow:hidden;max-height:50px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded{max-height:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded+.aa-more-button{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph:not(.expanded)+.aa-more-button{display:block}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names{display:flex;align-items:flex-start;gap:8px;overflow:hidden;flex-wrap:wrap;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag{display:flex;padding:2px 8px;justify-content:center;align-items:center;gap:4px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);transition:.2s all ease;flex:0 auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover a{text-decoration-line:underline;opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag span{display:flex;width:14px;height:14px;padding:0;justify-content:center;align-items:center;flex-shrink:0;border-radius:16px;background:var(--AA-global-white-bg);color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:16px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag a{overflow:hidden;color:var(--AA-gloabl-text-desc-color);text-align:center;text-overflow:ellipsis;font-size:12px;font-weight:400;line-height:18px;opacity:.8}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.assist-suggestions-list{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.assist-suggestions-list .sugestions-block{width:100%;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.assist-suggestions-list .sugestions-block .suggestion-body-search{padding-bottom:8px}",""]);const r=i},544:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".assist-data-wrapper-container{height:100%;padding:8px;width:100%}.assist-data-wrapper-container .assist-block-content{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);border-radius:4px}.assist-data-wrapper-container .assist-block-content .assist-header-content{display:flex;align-items:center;padding:8px;min-height:36px;gap:10px;border-bottom:1px solid var(--AA-gloabl-border)}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info{width:100%;overflow:hidden}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info{display:flex;align-items:center;gap:6px}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:20px;margin:0 0 2px 0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist{flex:1 1 auto;height:100%;overflow:auto}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper{padding:12px;border-radius:8px;border:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary);margin:8px}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text svg{flex-shrink:0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text svg path{fill:var(--AA-gloabl-text-color)}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li{color:var(--AA-gloabl-text-color);font-size:13px;font-weight:400;line-height:20px;list-style-type:none;display:flex;align-items:flex-end;gap:8px;width:100%}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li span{width:100%}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn{padding:0;width:25px;height:25px;flex-shrink:0;align-items:center;justify-content:center;font-size:16px;border:0;background:rgba(0,0,0,0);display:flex;cursor:pointer;border-radius:4px;transition:.2s all ease}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn svg path{stroke:var(--AA-gloabl-text-color)}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn:hover{background:var(--AA-global-white-bg)}.empty-listing-triggers{display:flex;align-items:center;justify-content:center;height:100%;flex-direction:column;padding:0 16px}",""]);const r=i},144:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".widget-header-sec{display:flex;align-items:center;width:100%;padding:6px 16px;min-height:auto;min-height:50px}.widget-header-sec .logo-sec{display:flex;align-items:center;gap:8px;width:100%}.widget-header-sec .logo-sec svg path{stroke:var(--AA-gloabl-text-color)}.widget-header-sec .logo-sec .divider-line{background:var(--AA-gloabl-bg-secondary);width:1px;flex-shrink:0;height:15px}.widget-header-sec .right-chart-data{transition:.2s all ease-in-out;flex-shrink:0;display:flex;align-items:center;gap:8px}.widget-header-sec .right-chart-data button:not(.aa-slider){padding:0;height:28px;width:28px;border:0;display:flex;align-items:center;justify-content:center;border-radius:100%;font-size:18px;transition:.2s all ease;background:rgba(0,0,0,0);color:var(--AA-gloabl-text-color)}.widget-header-sec .right-chart-data button:not(.aa-slider):hover,.widget-header-sec .right-chart-data button:not(.aa-slider).active-action{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}",""]);const r=i},884:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"@-webkit-keyframes slideInUpPlaybookAnim{0%{-webkit-transform:translateY(20px);transform:translateY(20px);visibility:hidden}20%{visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideInUpPlaybookAnim{0%{-webkit-transform:translateY(20px);transform:translateY(20px);visibility:visible}20%{visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.playbook-wrapper-template{height:100%;padding:8px;width:100%}.playbook-wrapper-template .playbook-template-data{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);border-radius:4px}.playbook-wrapper-template .playbook-template-data .playbook-header-data{padding:7px 11px;border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);display:flex;align-items:center;gap:10px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data{width:100%;display:flex;align-items:center;gap:12px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .aa-dropdown.show .aa-dropdown-toggle .arrow-icon{transform:rotate(180deg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .aa-dropdown .aa-dropdown-toggle{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;background:rgba(0,0,0,0);border:0;padding:0;display:flex;align-items:center;gap:2px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .playbook-suggestion{width:24px;height:24px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;flex-shrink:0}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .playbook-suggestion sub{position:absolute;top:-2px;right:0;display:flex;width:12px;height:12px;padding:0;align-items:center;justify-content:center;border-radius:100px;background:#d92d20;color:#fff;font-size:7px;font-weight:500;line-height:normal;letter-spacing:.5px;text-transform:uppercase}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info{width:100%}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info .bottom-titles-info{display:flex;align-items:center;gap:5px;margin-top:1px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info .bottom-titles-info h6{color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:20px;flex-shrink:0;opacity:.8}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header{flex-shrink:0;display:flex;align-items:center;gap:4px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action{border-radius:3px;border:0px solid;background:var(--AA-global-white-bg);display:flex;width:25px;height:25px;padding:0;justify-content:center;align-items:center;gap:6px;color:var(--AA-gloabl-text-color);font-size:16px;cursor:pointer}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.step-complete{font-size:9px;font-weight:600}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action:hover{border:1px solid var(--AA-global-theme-bg);color:var(--AA-global-theme-bg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.stop-assist{border:0px solid #fecdca;background:var(--AA-global-white-bg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.stop-assist:hover{border:1px solid #fda29b;box-shadow:0px 1px 2px 0px rgba(16,24,40,.06),0px 1px 3px 0px rgba(16,24,40,.1)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body{flex:1 1 auto;overflow:auto;height:100%;padding:12px 11px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info{display:flex;flex-direction:column;gap:4px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data{display:flex;flex-direction:column;gap:4px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data{display:flex;align-items:center;justify-content:center;padding:4px 8px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data span{width:100%;height:1px;background:var(--AA-gloabl-border)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data p{color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:20px;flex-shrink:0;padding:0 8px;opacity:.8}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .stage-btn{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;display:inline-flex;align-items:center;padding:4px 12px 4px 12px;min-height:36px;border:0;background:rgba(0,0,0,0);border-radius:6px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step{text-align:initial;border:0;padding:0;border-radius:6px;background:rgba(0,0,0,0)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step{display:flex;padding:4px 8px 4px 12px;align-items:flex-start;gap:4px;background:rgba(0,0,0,0);border-radius:6px 6px 0px 0px;min-height:30px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn{flex-shrink:0;width:20px;height:20px;display:none;align-items:center;justify-content:center;border:2px solid var(--AA-gloabl-border);border-radius:100%;background:rgba(0,0,0,0);padding:0;transition:.2s all ease}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn svg path{fill:var(--AA-gloabl-border)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn.checked-playbook{border-color:var(--AA-global-white-bg);background:#12b76a}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn:hover{border-color:var(--AA-global-white-bg);background:#12b76a}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block{padding:8px;position:relative;transition:.2s all ease;min-height:52px;display:none}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block:hover .step-actions-send-copy{display:flex}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy{position:absolute;right:8px;top:8px;display:none;align-items:center;border-radius:4px;background:var(--AA-global-white-bg);box-shadow:0px 2px 4px -2px rgba(16,24,40,.06),0px 4px 8px -2px rgba(16,24,40,.1);padding:6px;gap:4px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy .solidbtn{position:relative;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);padding:2px 8px;min-height:24px;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:500;line-height:16px;cursor:pointer;justify-content:center;display:flex;align-items:center}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy .solidbtn i{font-size:12px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block p{padding:0 0 0 12px;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:400;line-height:20px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad{padding:0 12px;margin-top:6px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info{border-top:1px solid var(--AA-gloabl-border);display:flex;align-items:center;gap:10px;padding:4px 0 0 0;min-height:32px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info h1{width:100%;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:500;line-height:normal;text-align:inherit}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data{display:flex;align-items:center;flex-shrink:0;gap:5px;width:auto}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data .primaryBtn{padding:2px 10px;height:24px;border-radius:16px;border:0}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data .primaryBtn:hover{background:var(--AA-gloabl-bg-secondary);color:var(--AA-gloabl-text-color)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data h2{color:var(--AA-gloabl-text-color);font-size:11px;font-weight:400;line-height:normal}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing{background:var(--AA-global-white-bg);box-shadow:-7px 4px 30px 0px rgba(18,61,101,.2),-8px -6px 80px 0px rgba(255,255,255,.18) inset;-webkit-animation-name:slideInUpPlaybookAnim;animation-name:slideInUpPlaybookAnim;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step{background:var(--AA-global-theme-bg)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step h1{color:var(--AA-global-white-bg)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step .check-btn{display:flex}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .step-text-send-block{display:block}.strike-text{text-decoration:line-through}",""]);const r=i},478:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".input-control{display:block;width:100%;padding:7px 11px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);width:100%;height:36px;appearance:none}.input-control::placeholder{color:var(--AA-gloabl-border);font-size:14px;font-weight:400;line-height:20px}.input-control:focus{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:active{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:disabled{border:1px solid var(--AA-gloabl-border);background:#f9fafb;pointer-events:none;cursor:not-allowed}.input-control.error{border:1px solid #fda29b;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #fee4e2}textarea.input-control{min-height:70px}.sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.sugestions-block .suggestion-header .count-text{flex-shrink:0;border-radius:16px;background:var(--AA-gloabl-bg-secondary);padding:0px 8px;height:15px;display:flex;justify-content:center;align-items:center;color:var(--AA-global-theme-text-color)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec{width:100%;display:flex;align-items:center;gap:4px;overflow:hidden}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .sent-msg-text{color:var(--AA-global-theme-text-color);margin:0 0 0 auto}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph{transition:max-height .3s ease;overflow:hidden;max-height:50px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded{max-height:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded+.aa-more-button{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph:not(.expanded)+.aa-more-button{display:block}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names{display:flex;align-items:flex-start;gap:8px;overflow:hidden;flex-wrap:wrap;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag{display:flex;padding:2px 8px;justify-content:center;align-items:center;gap:4px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);transition:.2s all ease;flex:0 auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover a{text-decoration-line:underline;opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag span{display:flex;width:14px;height:14px;padding:0;justify-content:center;align-items:center;flex-shrink:0;border-radius:16px;background:var(--AA-global-white-bg);color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:16px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag a{overflow:hidden;color:var(--AA-gloabl-text-desc-color);text-align:center;text-overflow:ellipsis;font-size:12px;font-weight:400;line-height:18px;opacity:.8}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.search-block-data-suggestions-wrapper{height:100%;padding:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions{height:100%;display:flex;flex-direction:column;justify-content:flex-end;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .empty-search-container-wrapper{display:flex;align-items:center;justify-content:center;width:277px;margin:0 auto;gap:10px;flex-direction:column;height:100%;text-align:center;min-height:300px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search{padding:8px 12px 0px 12px;flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;gap:4px;position:relative}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input{padding:8px 12px;flex-shrink:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info button{position:relative;padding:2px 10px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);color:var(--AA-gloabl-text-color);border:0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info p{font-style:italic;margin:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block{position:relative;background:var(--themeBgWhiteColor);border-radius:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control{z-index:1;position:relative;background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input{display:block;width:100%;color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0);position:absolute;top:0;left:0;z-index:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::-moz-selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg{position:absolute;right:12px;top:8px;z-index:2}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg path{fill:var(--AA-gloabl-text-color);opacity:.5}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search{position:absolute;right:8px;top:3px;z-index:2;cursor:pointer;background:border-box;border:0;padding:0;font-size:16px;line-height:0;color:var(--AA-gloabl-text-color)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg{width:16px;height:16px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg path{stroke:var(--AA-gloabl-text-color)}",""]);const r=i},390:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},370:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},36:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},798:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".selection-on-snippet-color{background:var(--AA-gloabl-bg-secondary)}.selection-on-snippet-color ul li{background:var(--AA-global-white-color)}.selection-on-snippet-color .source-count-num{color:var(--AA-global-white-color);background:var(--AA-global-theme-bg);display:inline-block;padding:0px 5px;border-radius:100%;min-width:18px;text-align:center}",""]);const r=i},762:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".transcript-template-wrapper{height:100%;padding:8px;width:100%}.transcript-template-wrapper .transcript-template-data{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);border-radius:4px}.transcript-template-wrapper .transcript-template-data .transcript-header{padding:7px 11px;border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.transcript-template-wrapper .transcript-template-data .transcript-body-wrapper{flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;height:100%;padding:12px 11px;gap:12px}.aa-agent-bubble-comp{display:flex;width:100%;justify-content:flex-end}.aa-agent-bubble-comp .agent-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:6px;max-width:90%;transition:.5s all ease;word-break:break-word}.aa-agent-bubble-comp .agent-bubble-content .top-info{display:flex;align-items:center;gap:4px}.aa-agent-bubble-comp .agent-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .bubble-msg{background:var(--AA-global-theme-bg);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-global-white-color);padding:8px 12px}.aa-bot-bubble-comp{display:flex;width:100%;justify-content:flex-start}.aa-bot-bubble-comp .bot-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;max-width:90%;justify-content:flex-start;align-items:flex-start;transition:.5s all ease;word-break:break-word;gap:6px}.aa-bot-bubble-comp .bot-bubble-content .top-info{display:flex;align-items:center;gap:4px;width:100%}.aa-bot-bubble-comp .bot-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);flex-shrink:0}.aa-bot-bubble-comp .bot-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.aa-bot-bubble-comp .bot-bubble-content .bubble-msg{background:var(--AA-gloabl-bg-secondary);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-gloabl-text-color);padding:8px 12px;word-break:break-word;white-space:break-spaces}.agent-joined-banner{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}.agent-joined-banner .line-border{width:100%;border-top:1px solid var(--AA-gloabl-border)}.agent-joined-banner .info-joined-details{display:flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0}.summary-wrapper{border-radius:8px;border:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary);display:inline-flex;padding:12px;justify-content:center;align-items:center;align-self:stretch;flex-direction:column;width:auto;margin:10px auto;gap:6px}.summary-wrapper .summary-header{display:flex;align-items:center;gap:6px}.summary-wrapper .summary-header svg path{fill:var(--AA-gloabl-text-color)}",""]);const r=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,s,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var a={},i=[],r=0;r<e.length;r++){var l=e[r],c=n.base?l[0]+n.base:l[0],d=a[c]||0,p="".concat(c," ").concat(d);a[c]=d+1;var u=o(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var g=s(h,n);n.byIndex=r,t.splice(r,0,{identifier:p,updater:g,references:1})}i.push(p)}return i}function s(e,t){var o=t.domAPI(t);o.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var r=o(a[i]);t[r].references--}for(var l=n(e,s),c=0;c<a.length;c++){var d=o(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},659:e=>{var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,o)=>{e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,s&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};o.d(n,{h:()=>Bn,d:()=>Dn});var s={};o.r(s),o.d(s,{Decoder:()=>_n,Encoder:()=>mn,PacketType:()=>fn,protocol:()=>vn});var a=o(72),i=o.n(a),r=o(825),l=o.n(r),c=o(659),d=o.n(c),p=o(56),u=o.n(p),h=o(540),g=o.n(h),v=o(113),f=o.n(v),m=o(958),b={};b.styleTagTransform=f(),b.setAttributes=u(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=g();i()(m.A,b);m.A&&m.A.locals&&m.A.locals;var _,E,y,x,C,A,S,k=function(){function e(){this.eventListeners={}}return e.prototype.on=function(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)},e.prototype.off=function(e,t){this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter((function(e){return e!==t})))},e.prototype.emit=function(e,t,o){var n=this.eventListeners[e];n&&n.forEach((function(e){return e(t,o)}))},e}(),T={},w=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,N=Array.isArray;function O(e,t){for(var o in t)e[o]=t[o];return e}function L(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,o){var n,s,a,i={};for(a in t)"key"==a?n=t[a]:"ref"==a?s=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?_.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return M(e,i,n,s,null)}function M(e,t,o,n,s){var a={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++y:s};return null==s&&null!=E.vnode&&E.vnode(a),a}function P(e){return e.children}function D(e,t){this.props=e,this.context=t}function B(e,t){if(null==t)return e.__?B(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if(null!=(o=e.__k[t])&&null!=o.__e)return o.__e;return"function"==typeof e.type?B(e):null}function H(e){var t,o;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(o=e.__k[t])&&null!=o.__e){e.__e=e.__c.base=o.__e;break}return H(e)}}function G(e){(!e.__d&&(e.__d=!0)&&x.push(e)&&!q.__r++||C!==E.debounceRendering)&&((C=E.debounceRendering)||A)(q)}function q(){var e,t,o,n,s,a,i,r,l;for(x.sort(S);e=x.shift();)e.__d&&(t=x.length,n=void 0,s=void 0,a=void 0,r=(i=(o=e).__v).__e,(l=o.__P)&&(n=[],s=[],(a=O({},i)).__v=i.__v+1,Q(l,i,a,o.__n,void 0!==l.ownerSVGElement,null!=i.__h?[r]:null,n,null==r?B(i):r,i.__h,s),Z(n,i,s),i.__e!=r&&H(i)),x.length>t&&x.sort(S));q.__r=0}function F(e,t,o,n,s,a,i,r,l,c,d){var p,u,h,g,v,f,m,b,_,E=0,y=n&&n.__k||w,x=y.length,C=x,A=t.length;for(o.__k=[],p=0;p<A;p++)null!=(g=o.__k[p]=null==(g=t[p])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?M(null,g,null,null,g):N(g)?M(P,{children:g},null,null,null):g.__b>0?M(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=o,g.__b=o.__b+1,-1===(b=K(g,y,m=p+E,C))?h=T:(h=y[b]||T,y[b]=void 0,C--),Q(e,g,h,s,a,i,r,l,c,d),v=g.__e,(u=g.ref)&&h.ref!=u&&(h.ref&&J(h.ref,null,g),d.push(u,g.__c||v,g)),null!=v&&(null==f&&(f=v),(_=h===T||null===h.__v)?-1==b&&E--:b!==m&&(b===m+1?E++:b>m?C>A-m?E+=b-m:E--:E=b<m&&b==m-1?b-m:0),m=p+E,"function"!=typeof g.type||b===m&&h.__k!==g.__k?"function"==typeof g.type||b===m&&!_?void 0!==g.__d?(l=g.__d,g.__d=void 0):l=v.nextSibling:l=V(e,v,l):l=U(g,l,e),"function"==typeof o.type&&(o.__d=l))):(h=y[p])&&null==h.key&&h.__e&&(h.__e==l&&(l=B(h)),$(h,h,!1),y[p]=null);for(o.__e=f,p=x;p--;)null!=y[p]&&("function"==typeof o.type&&null!=y[p].__e&&y[p].__e==o.__d&&(o.__d=y[p].__e.nextSibling),$(y[p],y[p]))}function U(e,t,o){for(var n,s=e.__k,a=0;s&&a<s.length;a++)(n=s[a])&&(n.__=e,t="function"==typeof n.type?U(n,t,o):V(o,n.__e,t));return t}function V(e,t,o){return null==o||o.parentNode!==e?e.insertBefore(t,null):t==o&&null!=t.parentNode||e.insertBefore(t,o),t.nextSibling}function K(e,t,o,n){var s=e.key,a=e.type,i=o-1,r=o+1,l=t[o];if(null===l||l&&s==l.key&&a===l.type)return o;if(n>(null!=l?1:0))for(;i>=0||r<t.length;){if(i>=0){if((l=t[i])&&s==l.key&&a===l.type)return i;i--}if(r<t.length){if((l=t[r])&&s==l.key&&a===l.type)return r;r++}}return-1}function j(e,t,o){"-"===t[0]?e.setProperty(t,null==o?"":o):e[t]=null==o?"":"number"!=typeof o||I.test(t)?o:o+"px"}function Y(e,t,o,n,s){var a;e:if("style"===t)if("string"==typeof o)e.style.cssText=o;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||j(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||j(e.style,t,o[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=o,o?n||e.addEventListener(t,a?z:W,a):e.removeEventListener(t,a?z:W,a);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==o?"":o;break e}catch(e){}"function"==typeof o||(null==o||!1===o&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,o))}}function W(e){return this.l[e.type+!1](E.event?E.event(e):e)}function z(e){return this.l[e.type+!0](E.event?E.event(e):e)}function Q(e,t,o,n,s,a,i,r,l,c){var d,p,u,h,g,v,f,m,b,_,y,x,C,A,S,k=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(l=o.__h,r=t.__e=o.__e,t.__h=null,a=[r]),(d=E.__b)&&d(t);e:if("function"==typeof k)try{if(m=t.props,b=(d=k.contextType)&&n[d.__c],_=d?b?b.props.value:d.__:n,o.__c?f=(p=t.__c=o.__c).__=p.__E:("prototype"in k&&k.prototype.render?t.__c=p=new k(m,_):(t.__c=p=new D(m,_),p.constructor=k,p.render=ee),b&&b.sub(p),p.props=m,p.state||(p.state={}),p.context=_,p.__n=n,u=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=k.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=O({},p.__s)),O(p.__s,k.getDerivedStateFromProps(m,p.__s))),h=p.props,g=p.state,p.__v=t,u)null==k.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==k.getDerivedStateFromProps&&m!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,_),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,_)||t.__v===o.__v)){for(t.__v!==o.__v&&(p.props=m,p.state=p.__s,p.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),y=0;y<p._sb.length;y++)p.__h.push(p._sb[y]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,_),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,g,v)}))}if(p.context=_,p.props=m,p.__P=e,p.__e=!1,x=E.__r,C=0,"prototype"in k&&k.prototype.render){for(p.state=p.__s,p.__d=!1,x&&x(t),d=p.render(p.props,p.state,p.context),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[]}else do{p.__d=!1,x&&x(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++C<25);p.state=p.__s,null!=p.getChildContext&&(n=O(O({},n),p.getChildContext())),u||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(h,g)),F(e,N(S=null!=d&&d.type===P&&null==d.key?d.props.children:d)?S:[S],t,o,n,s,a,i,r,l,c),p.base=t.__e,t.__h=null,p.__h.length&&i.push(p),f&&(p.__E=p.__=null)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=r,t.__h=!!l,a[a.indexOf(r)]=null),E.__e(e,t,o)}else null==a&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=X(o.__e,t,o,n,s,a,i,l,c);(d=E.diffed)&&d(t)}function Z(e,t,o){for(var n=0;n<o.length;n++)J(o[n],o[++n],o[++n]);E.__c&&E.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){E.__e(e,t.__v)}}))}function X(e,t,o,n,s,a,i,r,l){var c,d,p,u=o.props,h=t.props,g=t.type,v=0;if("svg"===g&&(s=!0),null!=a)for(;v<a.length;v++)if((c=a[v])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[v]=null;break}if(null==e){if(null===g)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),a=null,r=!1}if(null===g)u===h||r&&e.data===h||(e.data=h);else{if(a=a&&_.call(e.childNodes),d=(u=o.props||T).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!r){if(null!=a)for(u={},v=0;v<e.attributes.length;v++)u[e.attributes[v].name]=e.attributes[v].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,o,n,s){var a;for(a in o)"children"===a||"key"===a||a in t||Y(e,a,null,o[a],n);for(a in t)s&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||o[a]===t[a]||Y(e,a,t[a],o[a],n)}(e,h,u,s,r),p)t.__k=[];else if(F(e,N(v=t.props.children)?v:[v],t,o,n,s&&"foreignObject"!==g,a,i,a?a[0]:o.__k&&B(o,0),r,l),null!=a)for(v=a.length;v--;)null!=a[v]&&L(a[v]);r||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===g&&!v||"option"===g&&v!==u.value)&&Y(e,"value",v,u.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&Y(e,"checked",v,u.checked,!1))}return e}function J(e,t,o){try{"function"==typeof e?e(t):e.current=t}catch(e){E.__e(e,o)}}function $(e,t,o){var n,s;if(E.unmount&&E.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||J(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){E.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&$(n[s],t,o||"function"!=typeof e.type);o||null==e.__e||L(e.__e),e.__=e.__e=e.__d=void 0}function ee(e,t,o){return this.constructor(e,o)}function te(e,t,o){var n,s,a,i;E.__&&E.__(e,t),s=(n="function"==typeof o)?null:o&&o.__k||t.__k,a=[],i=[],Q(t,e=(!n&&o||t).__k=R(P,null,[e]),s||T,T,void 0!==t.ownerSVGElement,!n&&o?[o]:s?null:t.firstChild?_.call(t.childNodes):null,a,!n&&o?o:s?s.__e:t.firstChild,n,i),Z(a,e,i)}_=w.slice,E={__e:function(e,t,o,n){for(var s,a,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((a=s.constructor)&&null!=a.getDerivedStateFromError&&(s.setState(a.getDerivedStateFromError(e)),i=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(t){e=t}throw e}},y=0,D.prototype.setState=function(e,t){var o;o=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},o),this.props)),e&&O(o,e),null!=e&&this.__v&&(t&&this._sb.push(t),G(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},D.prototype.render=P,x=[],A="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S=function(e,t){return e.__v.__b-t.__v.__b},q.__r=0;var oe=function(){function e(e,t){this.component=e,this.hostInstance=t}return e.prototype.renderMessage=function(e){var t=this.hostInstance,o=document.createElement("div");return te(R(this.component,{hostInstance:t,msgData:e}),o),o.childNodes[0]},e}();function ne(e,t,o){return new oe(e,o).renderMessage(t)}var se=o(773),ae={};ae.styleTagTransform=f(),ae.setAttributes=u(),ae.insert=d().bind(null,"head"),ae.domAPI=l(),ae.insertStyleElement=g();i()(se.A,ae);se.A&&se.A.locals&&se.A.locals;var ie,re,le,ce,de=0,pe=[],ue=[],he=E.__b,ge=E.__r,ve=E.diffed,fe=E.__c,me=E.unmount;function be(e,t){E.__h&&E.__h(re,e,de||t),de=0;var o=re.__H||(re.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:ue}),o.__[e]}function _e(e){return de=1,function(e,t,o){var n=be(ie++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):we(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],o=n.t(t,e);t!==o&&(n.__N=[o,n.__[1]],n.__c.setState({}))}],n.__c=re,!re.u)){var s=function(e,t,o){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter((function(e){return e.__c}));if(s.every((function(e){return!e.__N})))return!a||a.call(this,e,t,o);var i=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&n.__c.props===e)&&(!a||a.call(this,e,t,o))};re.u=!0;var a=re.shouldComponentUpdate,i=re.componentWillUpdate;re.componentWillUpdate=function(e,t,o){if(this.__e){var n=a;a=void 0,s(e,t,o),a=n}i&&i.call(this,e,t,o)},re.shouldComponentUpdate=s}return n.__N||n.__}(we,e)}function Ee(e,t){var o=be(ie++,3);!E.__s&&Te(o.__H,t)&&(o.__=e,o.i=t,re.__H.__h.push(o))}function ye(e,t){var o=be(ie++,7);return Te(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function xe(){for(var e;e=pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(ke),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){re=null,he&&he(e)},E.__r=function(e){ge&&ge(e),ie=0;var t=(re=e.__c).__H;t&&(le===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ue,e.__N=e.i=void 0}))):(t.__h.forEach(Se),t.__h.forEach(ke),t.__h=[],ie=0)),le=re},E.diffed=function(e){ve&&ve(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pe.push(t)&&ce===E.requestAnimationFrame||((ce=E.requestAnimationFrame)||Ae)(xe)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ue&&(e.__=e.__V),e.i=void 0,e.__V=ue}))),le=re=null},E.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Se),e.__h=e.__h.filter((function(e){return!e.__||ke(e)}))}catch(o){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.__e(o,e.__v)}})),fe&&fe(e,t)},E.unmount=function(e){me&&me(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach((function(e){try{Se(e)}catch(e){t=e}})),o.__H=void 0,t&&E.__e(t,o.__v))};var Ce="function"==typeof requestAnimationFrame;function Ae(e){var t,o=function(){clearTimeout(n),Ce&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);Ce&&(t=requestAnimationFrame(o))}function Se(e){var t=re,o=e.__c;"function"==typeof o&&(e.__c=void 0,o()),re=t}function ke(e){var t=re;e.__c=e.__(),re=t}function Te(e,t){return!e||e.length!==t.length||t.some((function(t,o){return t!==e[o]}))}function we(e,t){return"function"==typeof t?t(e):t}var Ie={SEARCH:"SEARCH",MYBOT:"MYBOT",ASSIST:"ASSIST",TRANSCRIPT:"TRANSCRIPT",HISTORY:"HISTORY",SETTINGS:"SETTINGS",CHECKLIST:"CHECLIST",SMARTASSIST_SOURCE:"SMARTASSIST_SOURCE"},Ne={SUGGESTIONS:"SUGGESTIONS",SMALLTALK:"SMALLTALK",AUTOMATION:"AUTOMATION",USERMSG:"USERMSG",ASSISTRESPONSE:"ASSISTRESPONSE",FEEDBACK:"FEEDBACK",WELCOME_MSG:"WELCOME_MSG"},Oe={ASSIST:"Assist",MYBOT:"My Bot",TRANSCRIPT:"Transcript",LIBRARY:"Library",SETTINGS:"Settings",SEARCH:"Search",PLAYBOOK:"Playbook",VOICE:"voice",CHAT:"chat",BOTID:"botId",CONVESATIONID:"conversationId",RUN:"RUN",AGENTASSIST_RUN:"Run with Agent Inputs",SEND:"Send",COPY:"Copy",COPIED:"COPIED",SHOW_MORE:"Show more",SHOW_LESS:"Show less",READ_MORE:"More",READ_LESS:"Less",EXPAND:"Expand",READ_MORE_EXPAND:"Read more | Expand",CLOSE:"Close",DIALOG:"Dialog task",FAQ:"FAQ",ARTICLE:"Article",SNIPPET:"Snippet",VIEW_ALL_FAQ:"View All FAQs",VIEW_FEW_FAQ:"View Few FAQs",VIEW_ALL_ARTICLES:"View All Articles",VIEW_FEW_ARTICLES:"View Few Articles",VIEW_ALL_SNIPPETS:"View All Snippets",VIEW_FEW_SNIPPETS:"View Few Snippets",SENDMSG:"agentAssist.SendMessage",COPYMSG:"agentAssist.CopyMessage",SEND_METHOD:"send",COPY_METHOD:"copy",AWAITING:"Awaiting Response | Type to override",OVERRIDE:"Type to override",ACCEPT_RESPONSE:"Response Accepted",AGENT_ENTERED:"Agent Entered",WIDGET_LOADER:"widget",INDIVIDUAL_LOADER:"individual",LOGO_PATH:"assets/images/logo/koreLogo.svg",DOCUMENTATION_LINK:"https://docs.kore.ai/agentassist/",FAQ_LINK:"https://docs.kore.ai/agentassist/frequently-asked-questions/faq/",KOREACADEMY_LINK:"https://academy.kore.ai/",WRONG_SUGGESTION:"Wrong suggestions",INCORRECT_INTENT:"Incorrect intent",ACCIDENTAL_CLICK:"Accidental click",TIME_TAKING:"Time taking",OTHER:"Other",SETTINGS_DOCUMENTATION:"documentation",SETTINGS_FAQ:"faq",SETTINGS_KOREACADEMY:"koreAcademy",SUGGESTION_LINEHEIGHT:18,SUGGESTION_ADDHEIGHT:10,SUGGESTION_MAXHEIGHT:12},Le={NUDGE_DATA:{positive:{color:"#22C55E",icon:"krIocnsFont-thumbs-up"},neutral:{color:"#E5E5E5",className:"info-nudge"},alert:{color:"#F59E0B",icon:"krIocnsFont-alert-triangle",className:"warning-nudge"},critical:{color:"#EF4444",icon:"krIocnsFont-hand",className:"danger-nudge"}},HINT_DATA:{positive:{color:"#22C55E",icon:"krIocnsFont-thumbs-up"},neutral:{color:"#E5E5E5",icon:"krIocnsFont-exclamation",className:"info-hint"},alert:{color:"#F59E0B",icon:"krIocnsFont-alert-triangle",className:"warning-hint"},critical:{color:"#EF4444",icon:"krIocnsFont-hand",className:"danger-hint"}}},Re={ast:Ie.ASSIST,srch:Ie.SEARCH,trnspt:Ie.TRANSCRIPT,mB:Ie.MYBOT,cl:Ie.CHECKLIST},Me={"#0BA5EC":"#F0F9FF","#06AED4":"#ECFDFF","#2E90FA":"#EFF4FF","#6172F3":"#EEF4FF","#6172F3f":"#F5F3FF","#EE46BC":"#FDF4FF","#F63D68":"#FFF1F3","#669F2A":"#F5FBEE","#16B364":"#EDFCF2","#FF4405":"#FFF4ED"},Pe={HEADER:".aa-header",FOOTER:".aa-footer",FOOTER_BTN:".aa-footer-btn-",FOOTER_BTN_SEARCH:".aa-footer-btn-srch",FOOTER_BTN_MYBOT:".aa-footer-btn-mB",FOOTER_BTN_ASSIST:".aa-footer-btn-ast",FOOTER_BTN_TRANSCRIPT:".aa-footer-btn-trnspt",ASSIST_SECTION:".aa-assist-section",SUGGESTION_EACH:".aa-each-suggestion",SUGGESTION_EACH_HEADER:".aa-suggestion-header",SUGGESTION_EACH_TITLE:".aa-suggestion-title",SUGGESTION_EACH_BODY:".aa-each-suggestion-faq-body",SUGGESTION_LESS_LINK:".aa-less-link",SUGGESTION_MORE_LINK:".aa-more-link",SUGGESTION_SEND_BTN:".aa-send-btn-suggestion",SUGGESTION_COPY_BTN:".aa-copy-btn-suggestion",SUGGESTION_SENDCPY_ACTION:".aa-action-buttons",SUGGESTION_FAQ_UP_ARROW:".aa-faq-up-arrow",SUGGESTION_FAQ_DOWN_ARROW:".aa-faq-down-arrow",SUGGESTION_FAQ_EXPAND:".aa-expand-btn-link",SUGGESTION_FAQ_CLOSE:".aa-close-btn-link",SUGGESTION_FAQ_ANS_LENGTH:".aa-faq-ans-length",SUGGESTION_FAQ_ANS_LOADER:".aa-faq-answer-loader",SUGGESTION_SNIPPET_SOURCE_TAG:".aa-source-tag",SUGGESTION_SNIPPET_LINK:".aa-snippet-link",SUGGESTION_ARTICLE_LINK:".aa-article-link",SUGGESTION_FILE_LINK:".aa-file-link",SEARCH_INPUT_BLOCK:".aa-input-block",SEARCH_INPUT_CLOSE:".aa-input-search-close",SEARCH_INPUT_ICON:".aa-input-search-icon",SUGGESTION_SENT_TEXT:".aa-sent-text",SEARCH_SUGGESTION_WRAPPER:".aa-search-suggestion-wrapper",HIDE_ELEMENT:"aa-hidden",SDK_MAIN_WRAPPER:"agentassist-widget-main-chat-container-wrapper",NUDGE_TEMPLATE:"aa-nudges-template-data",NUDGE_CLOSE:"aa-close-nudge",HINT_CLOSE:"aa-close-hint",HINT_TEMPLATE:"aa-hints-template-data",SEND_TEXT:".aa-sent-text",SCROLL_DATA_ASSIST:"scroll-data-assist",DESC_TEXT_SUGGESTION:".suggestion-paragraph",DESC_TEXT_SNIPPET_EXTERNAL:".aa-snippet-content-ref1",DESC_TEXT_SNIPPET_INTERNAL:".aa-snippet-content-ref2",MORE_BTN_CONTAINER:".aa-seemore-buttons",EXTERNAL_SNIPPET_MORE_BTN_CONTAINER:".aa-external-seemore-buttons",INTERNAL_SNIPPET_MORE_BTN_CONTAINER:".aa-internal-seemore-buttons",MORE_BUTTON:".aa-more-button",SUGGESTION_EXPANDED:"expanded",TRANSCRIPT_BODY_WRAPPER:"aa-transcript-body-wrapper",TRIGGER_CHECKLIST_BULB_COUNT:".aa-triggerDynChecklist-bulb-count",TRIGGER_CHECKLIST_BTN:".aa-trigger-checklist-btn-",TRIGGER_CHECKLIST_NAME:".aa-trigger-checklist-name",TRIGGER_CHECKLIST_STEPCOUNT:".aa-trigger-checklist-stepcount",TRIGGET_CHECKLIST_DROPDOWN:".aa-trigger-checklist-drp",TRIGGER_CHECKLIST_DROPDOWN_WRAPPER:".aa-triggerList-drp-wrapper",CHECKLIST_DROPDOWN_WRAPPER:".aa-checklist-drp-wrapper",CHECKLIST_DROPDOWN:".aa-checklist-drp",PRIMARY_SCRIPTS:".aa-primary-scripts",DYNAMIC_SCRIPTS:".aa-dynamic-scripts",SELECTED_CHECKLIST:".aa-selected-checklist",SELECTED_CHECKLIST_ARROW:".aa-selected-checklist-arrow",STAGE_DRP_WRAPPER_MAIN:".aa-stage-drp-wrapper-main",STAGE_DRP_WRAPPER:".aa-stage-drp-wrapper",SELECTED_STAGE:".aa-selected-stage",SELECTED_STAGE_ARROW:".aa-selected-stage-arrow",STAGE_DROPDOWN:".aa-stage-drp",STEP_COMPLETE_COUNT:".aa-step-complete-count",PROCEEDTOCLOSE_BTN:".aa-proceedtoclose-btn",PRIMARY_CHECKLIST_BTN:".aa-primary-cl-",PRIMARY_CHECKLIST_RESUME_BTN:".aa-primary-cl-resume-",DYNAMIC_CHECKLIST_BTN:".aa-dynamic-cl-",DYNAMIC_CHECKLIST_RESUME_BTN:".aa-dynamic-cl-resume-",CHECKLIST_HEADER:".aa-playbook-header",CHECKLIST_HEADER_STEP:".aa-heading-step",CHECKLIST_HEADER_STEP_NAME:".aa-step-header-name",CHECKLIST_EACH_STEP:".aa-playbook-step-",CHECKLIST_DISABLE_MSG:"disabled-msg",CHECKLIST_STRIKE:"strike-text",CHECKLIST_STEP_COMPLETE_BTN:".aa-step-complete-",CHECKLIST_STEP_SEND_BLOCK:".step-text-send-block",CHECKLIST_STEP_ONGOING:"playbook-step-ongoing",CHECKLIST_STEP_COPY_BTN:".aa-step-copy-btn",CHECKLIST_STEP_SEND_BTN:".aa-step-send-btn",CHECKLIST_STEP_CONFIRMATION_BTN:".aa-step-confirmation-btn-",CHECKLIST_CLOSE_STEPS:".aa-close-steps",CHECKLIST_CLOSE_STAGE:".aa-close-stage",CHECKLIST_ITEM_CHECK:".aa-cl-check-",CHECKLIST_EACH_ITEM:".aa-cl-item",CHECKLIST_EACH_RESUME:".aa-cl-resume-",CHECKLIST_CLOSE_STAGE_BTN:".aa-close-stage-btn",CHECKLIST_EACH_STAGE_DRP_ITEM:".aa-stage-drp-",CHECKLIST_SELECTED_STAGE_CHECK:".aa-selected-stage-",CHECKLIST_EMPTY:".aa-checklist-empty",TRIGGER_CHECKLIST_COUNT_BTN:".aa-trigger-checklist-count-btn"},De={PROACTIVE_BTN:"aa-proactiveBtn",ASSIST_FAQ_SUGGESTION:"aa-faqSuggestion-",ASSIST_SNIPPET_SUGGESTION:"aa-snippetSuggestion-",ASSIST_ARTICLE_SUGGESTION:"aa-articleSuggestion-",ASSIST_FILE_SUGGESTION:"aa-fileSuggestion-",SEARCH_FAQ_SUGGESTION:"aa-faqSuggestion",SEARCH_SNIPPET_SUGGESTION:"aa-snippetSuggestion",SEARCH_ARTICLE_SUGGESTION:"aa-articleSuggestion",SEARCH_FILE_SUGGESTION:"aa-fileSuggestion",SEARCH_INPUT:"aa-search-input",SEARCH_SUGGESTION_BLOCK:"searchSuggestionsBlock",SUMMARY_OVERLAY_BLOCK:"section-agent-aa-wrapper",CHECKLIST_MAIN_TEMPLATE:"checkListMainTemplate",CHECKLIST_BODY_TEMPLATE:"checkListBodyTemplate",TRIGGER_CHECKLIST_DRP:"playbookDrpTriggerChecklist",CHECKLIST_DRP_LIST_BTN:"playbookDrpListBtn",CHECKLIST_STAGE_DRP_BTN:"playbookStageDrpBtn",CHECKLIST_STEP_TEMPLATE:"checklistStepTemplate"},Be=o(567),He={};He.styleTagTransform=f(),He.setAttributes=u(),He.insert=d().bind(null,"head"),He.domAPI=l(),He.insertStyleElement=g();i()(Be.A,He);Be.A&&Be.A.locals&&Be.A.locals;function Ge(e){var t=e.msgData,o=t.tabsNTitles,n=t.selectedTab,s=t.showTranscript;t.selectedTheme;return Ee((function(){})),R("div",{className:"widget-footer-wrapper"},R("div",{className:"logo-left-menu"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"line-divider"}),R("div",{className:"footer-links-data"},R("div",{className:"footer-list-buttons"},o.map((function(e,t){return R(P,null,"srch"===e.type&&R("button",{className:"aa-footer-btn-srch btn_footer ".concat(n===Ie.SEARCH?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M21.75 22.2001C21.55 22.2001 21.45 22.1001 21.35 22.0001L17.45 18.1001C15.95 19.4001 13.95 20.2001 11.85 20.2001C7.15 20.2001 3.25 16.3001 3.25 11.6001C3.25 6.90006 7.05 3.00006 11.75 3.00006C16.45 3.00006 20.35 6.90006 20.35 11.6001C20.35 13.8001 19.55 15.7001 18.25 17.2001L22.15 21.1001C22.35 21.3001 22.35 21.7001 22.15 21.9001C22.05 22.1001 21.95 22.2001 21.75 22.2001ZM11.75 4.20006C7.65 4.20006 4.35 7.50006 4.35 11.6001C4.35 15.7001 7.65 19.0001 11.75 19.0001C13.75 19.0001 15.55 18.2001 16.95 16.9001C16.95 16.9001 16.95 16.9001 17.05 16.8001C17.05 16.8001 17.05 16.8001 17.15 16.7001C18.45 15.4001 19.25 13.5001 19.25 11.5001C19.15 7.50006 15.85 4.20006 11.75 4.20006Z",fill:"#202939"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"mB"===e.type&&!1,"ast"===e.type&&R("button",{className:"aa-footer-btn-ast btn_footer ".concat(n===Ie.ASSIST?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},R("path",{opacity:"0.12",d:"M13 17.0999C13 20.1374 10.5965 22.5999 7.63158 22.5999C7.01911 22.5999 6.43059 22.4948 5.88227 22.3013C5.67416 22.2278 5.5701 22.1911 5.50011 22.1771C5.42641 22.1624 5.38652 22.1584 5.31137 22.1578C5.24 22.1574 5.15827 22.1685 4.9948 22.1909L2 22.5999L2.61134 19.8382C2.65141 19.6572 2.67145 19.5666 2.67608 19.4866C2.68091 19.403 2.67864 19.3565 2.66566 19.2738C2.65322 19.1946 2.61533 19.0786 2.53955 18.8466C2.36028 18.2978 2.26316 17.7104 2.26316 17.0999C2.26316 14.0623 4.66668 11.5999 7.63158 11.5999C10.5965 11.5999 13 14.0623 13 17.0999Z",fill:""}),R("path",{d:"M6.09436 11.8286C6.03221 11.4281 5.99996 11.0177 5.99996 10.5999C5.99996 6.18158 9.60525 2.59985 14.0526 2.59985C18.4999 2.59985 22.1052 6.18158 22.1052 10.5999C22.1052 11.5979 21.9213 12.5533 21.5852 13.4344C21.5154 13.6173 21.4804 13.7088 21.4646 13.7803C21.4489 13.851 21.4428 13.9008 21.4411 13.9733C21.4394 14.0465 21.4493 14.127 21.4692 14.2882L21.8717 17.5584C21.9153 17.9124 21.9371 18.0894 21.8782 18.2181C21.8266 18.3308 21.735 18.4204 21.6211 18.4694C21.4911 18.5253 21.3146 18.4994 20.9617 18.4477L17.7765 17.9808C17.6101 17.9564 17.527 17.9442 17.4512 17.9446C17.3763 17.945 17.3245 17.9506 17.2511 17.966C17.177 17.9816 17.0823 18.017 16.893 18.088C16.0097 18.4188 15.0524 18.5999 14.0526 18.5999C13.6344 18.5999 13.2237 18.5682 12.8227 18.5071M7.63158 22.5999C10.5965 22.5999 13 20.1374 13 17.0999C13 14.0623 10.5965 11.5999 7.63158 11.5999C4.66668 11.5999 2.26316 14.0623 2.26316 17.0999C2.26316 17.7104 2.36028 18.2978 2.53955 18.8466C2.61533 19.0786 2.65322 19.1946 2.66566 19.2738C2.67864 19.3565 2.68091 19.403 2.67608 19.4866C2.67145 19.5666 2.65141 19.6572 2.61134 19.8382L2 22.5999L4.9948 22.1909C5.15827 22.1685 5.24 22.1574 5.31137 22.1578C5.38652 22.1584 5.42641 22.1624 5.50011 22.1771C5.5701 22.1911 5.67416 22.2278 5.88227 22.3013C6.43059 22.4948 7.01911 22.5999 7.63158 22.5999Z",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"trnspt"===e.type&&s&&R("button",{className:"aa-footer-btn-trnspt btn_footer ".concat(n===Ie.TRANSCRIPT?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M20.625 10.5999V7.39985C20.625 5.7197 20.625 4.87962 20.298 4.23788C20.0104 3.6734 19.5515 3.21445 18.987 2.92683C18.3452 2.59985 17.5052 2.59985 15.825 2.59985H9.425C7.74484 2.59985 6.90476 2.59985 6.26303 2.92683C5.69854 3.21445 5.2396 3.6734 4.95198 4.23788C4.625 4.87962 4.625 5.7197 4.625 7.39985V17.7999C4.625 19.48 4.625 20.3201 4.95198 20.9618C5.2396 21.5263 5.69854 21.9853 6.26303 22.2729C6.90476 22.5999 7.74484 22.5999 9.425 22.5999H12.625M13.125 11.5999H8.625M9.625 15.5999H8.625M16.625 7.59985H8.625M14.125 16.5999C14.2782 19.4612 14.8347 20.5857 17.625 20.9618M17.625 20.9618C20.4768 20.4358 21.0708 19.3717 21.125 16.5999M17.625 20.9618V22.5999H15.825H19.625",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),R("path",{d:"M16.125 13.6V18.1C16.7101 18.8457 17.0454 19.0111 17.625 19.1C18.4009 18.9793 18.6961 18.7335 19.125 18.1V13.6C18.702 12.8834 18.3994 12.5877 17.625 12.6C16.7358 12.7661 16.4766 13.0363 16.125 13.6Z",stroke:"#202939","stroke-width":"1.2"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"cl"===e.type&&R("button",{className:"aa-footer-btn-cl btn_footer ".concat(n===Ie.CHECKLIST?"selected-tab sel-bg":"")},R("p",{className:"text-truncate",title:e.title},e.title)))})))),R("div",{className:"footer-action-items"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"}))))))}const qe=function(){var e=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="ua-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?o:3&o|8).toString(16)}));return t};var Fe,Ue,Ve,Ke,je;!function(e){e.event="event",e.request_port="request_port",e.control_message="control_message",e.connect="connect",e.disconnect="disconnect",e.error="error",e.connect_error="connect_error",e.conversation_closed="conversation_closed",e.welcome_message_request="welcome_message_request",e.user_message="user_message",e.agent_message="agent_message",e.agent_assist_request="agent_assist_request",e.agent_assist_response="agent_assist_response",e.agent_menu_request="agent_menu_request",e.agent_menu_response="agent_menu_response",e.agent_assist_user_message="agent_assist_user_message",e.agent_feedback_request="agent_feedback_request",e.agent_feedback_response="agent_feedback_response",e.agent_usage_feedback="agent_usage_feedback",e.agent_assist_agent_request="agent_assist_agent_request",e.agent_assist_agent_response="agent_assist_agent_response",e.agent_assist_endoftask="agent_assist_endoftask",e.request_resolution_comments="request_resolution_comments",e.response_resolution_comments="response_resolution_comments",e.enable_override_userinput="enable_override_userinput",e.agent_send_or_copy="agent_send_or_copy",e.end_of_conversation="end_of_conversation",e.user_sent_message="user_sent_message",e.agent_sent_message="agent_sent_message",e.agent_coaching_response="agent_coaching_response",e.realtime_sentiment_response="realtime_sentiment_response",e.agent_coaching_ackpress="agent_coaching_ackpress",e.checklist_opened="checklist_opened",e.checklist_step_closed="checklist_step_closed",e.checklist_closed="checklist_closed",e.checklist_step_response="checklist_step_response",e.checklist_response="checklist_response",e.checklist_resume="checklist_resume",e.checklist_proceed_to_closed="checklist_proceed_to_closed",e.internal_transfer="internal_transfer",e.agent_activity_request="agent_activity_request",e.submit_summary_request="submit_summary_request",e.agentassist_control_response="agentassist_control_response",e.response_resolution_comments_ack="response_resolution_comments_ack"}(Fe||(Fe={})),function(e){e.BEFORE_VIEW_INIT="BEFORE_VIEW_INIT",e.SUMMARY_TEMPLATE="SUMMARY_TEMPLATE",e.AGENT_TRANSCRIPT="AGENT_TRANSCRIPT",e.USER_TRANSCRIPT="USER_TRANSCRIPT",e.BOT_TRANSCRIPT="BOT_TRANSCRIPT",e.AGENT_JOINED_TEMPLATE="AGENT_JOINED_TEMPLATE",e.ARTICE_TEMPLATE="ARTICLE_TEMPLATE",e.SNIPPET_TEMPLATE="SNIPPET_TEMPLATE",e.FILE_TEMPLATE="FILE_TEMPLATE",e.FAQ_TEMPLATE="FAQ_TEMPLATE",e.HINT_TEMPLATE="HINT_TEMPLATE",e.NUDGE_TEMPLATE="NUDGE_TEMPLATE",e.FOOTER_TEMPLATE="FOOTER_TEMPLATE",e.HEADER_TEMPLATE="HEADER_TEMPLATE",e.SEARCH_INPUT="SEARCH_INPUT",e.FAQ_ANSWER_AFTER_TOGGLE="FAQ_ANSWER_AFTER_TOGGLE",e.SEARCH_ARTICE_TEMPLATE="SEARCH_ARTICE_TEMPLATE",e.SEARCH_SNIPPET_TEMPLATE="SEARCH_SNIPPET_TEMPLATE",e.SEARCH_FILE_TEMPLATE="SEARCH_FILE_TEMPLATE",e.SEARCH_FAQ_TEMPLATE="SEARCH_FAQ_TEMPLATE",e.CONVERSATION_SUMMARY_TEMPLATE="CONVERSATION_SUMMARY_TEMPLATE",e.SUMMARY_TEMPLATE_ASSIST="SUMMARY_TEMPLATE_ASSIST",e.ON_ERROR="ON_ERROR",e.AGENT_SEND_MESSAGE="AGENT_SEND_MESSAGE",e.AGENT_COPY_MESSAGE="AGENT_COPY_MESSAGE",e.PLAYBOOK_HEADER_TEMPLATE="PLAYBOOK_HEADER_TEMPLATE",e.PLAYBOOK_BODY_TEMPLATE="PLAYBOOK_BODY_TEMPLATE",e.PLAYBOOK_EMPTY_TEMPLATE="PLAYBOOK_EMPTY_TEMPLATE",e.PLAYBOOK_SEND_EVENT="PLAYBOOK_SEND_EVENT",e.PLAYBOOK_COPY_EVENT="PLAYBOOK_COPY_EVENT",e.PLAYBOOK_CONFIRMATION_YES="PLAYBOOK_CONFIRMATION_YES",e.PLAYBOOK_CONFIRMATION_NO="PLAYBOOK_CONFIRMATION_NO",e.PLAYBOOK_PRIMARYLIST_TEMPLATE="PLAYBOOK_PRIMARYLIST_TEMPLATE",e.PLAYBOOK_DYNAMICLIST_TEMPLATE="PLAYBOOK_DYNAMICLIST_TEMPLATE",e.PLAYBOOK_STAGE_DROPDOWN_TEMPLATE="PLAYBOOK_STAGE_DROPDOWN_TEMPLATE",e.PLAYBOOK_TRIGGERED_LIST_TEMPLATE="PLAYBOOK_TRIGGERED_LIST_TEMPLATE",e.PLAYBOOK_OPENED_EVENT="PLAYBOOK_OPENED_EVENT",e.PLAYBOOK_RESUME_EVENT="PLAYBOOK_RESUME_EVENT",e.PLAYBOOK_STEP_CLOSED_EVENT="PLAYBOOK_STEP_CLOSED_EVENT",e.PLAYBOOK_PROCEED_TO_CLOSE_EVENT="PLAYBOOK_PROCEED_TO_CLOSE_EVENT"}(Ue||(Ue={})),function(e){e.AGENT_COACHING_RESPONSES="AGENT_COACHING_RESPONSES",e.USER_TRANSCRIPT_RESPONSE="USER_TRANSCRIPT_RESPONSE",e.AGENT_TRANSCRIPT_RESPONSE="AGENT_TRANSCRIPT_RESPONSE",e.AGENT_AI_RESPONSE="AGENT_AI_RESPONSE",e.AGENT_AI_AGENT_RESPONSE="AGENT_AI_AGENT_RESPONSE",e.PRO_ACTIVE_CHANGE="PRO_ACTIVE_CHANGE",e.RESOLUTION_COMMENTS_RESPONSE="RESOLUTION_COMMENTS_RESPONSE",e.CHECKLIST_RESPONSE="CHECKLIST_RESPONSE",e.CHECKLIST_STEP_RESPONSE="CHECKLIST_STEP_RESPONSE"}(Ve||(Ve={})),function(e){e.USER_TRANSCRIPT_MSG="USER_TRANSCRIPT_MSG",e.AGENT_TRANSCRIPT_MSG="AGENT_TRANSCRIPT_MSG",e.END_OF_CONVERSATION="END_OF_CONVERSATION",e.CONVERSATION_SUMMARY_IN_ASSIST="CONVERSATION_SUMMARY_IN_ASSIST",e.GET_CHECKLISTS="GET_CHECKLISTS"}(Ke||(Ke={})),function(e){e.UPDATE_ACTIVE_TAB="updateActiveTab",e.CHECKLIST_OPEN="checklistOpened",e.CHECLIST_RESUME="checklistResume",e.CHECKLIST_STEP_CLOSE="checklistStepClosed",e.CHECKLIST_PROCEED_TO_CLOSE="checklistProceedToClosed"}(je||(je={}));var Ye=o(390),We={};We.styleTagTransform=f(),We.setAttributes=u(),We.insert=d().bind(null,"head"),We.domAPI=l(),We.insertStyleElement=g();i()(Ye.A,We);Ye.A&&Ye.A.locals&&Ye.A.locals;function ze(e){return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"})}function Qe(e){var t,o;return R(P,null,(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||void 0===o?void 0:o.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less Article"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"Show more web pages")))}function Ze(e){var t,o,n,s,a,i,r;return R(P,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(n=null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.article)||void 0===n?void 0:n.content)&&!(null===(a=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.article)||void 0===a?void 0:a.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(i=null==e?void 0:e.msgData)||void 0===i?void 0:i.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function Xe(e){var t,o;return R("div",null,null===(o=(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||[])||void 0===o?void 0:o.map((function(t,o){var n;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(o<(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.viewCount)?"":"aa-hidden")},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!t.link&&t.title&&R("h2",{className:"aa-text-xs"},t.title),t.link&&t.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-article-link",role:"link"},t.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:null==t?void 0:t.content}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),t.link&&!t.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-article-link",role:"link"},"View Full Article"))))})))}var Je=o(370),$e={};$e.styleTagTransform=f(),$e.setAttributes=u(),$e.insert=d().bind(null,"head"),$e.domAPI=l(),$e.insertStyleElement=g();i()(Je.A,$e);Je.A&&Je.A.locals&&Je.A.locals;function et(e){var t,o,n,s=_e(null===(t=e.msgData)||void 0===t?void 0:t.faq),a=s[0];s[1];return R(P,null,a.answer&&(null===(o=null==a?void 0:a.answer)||void 0===o?void 0:o.length)>0&&(a.toggle&&!a.answerRender||a.answerRender)&&(null===(n=null==a?void 0:a.answer)||void 0===n?void 0:n.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:e.ans}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")))}))))}function tt(e){return R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs expand-link aa-close-btn-link aa-hidden",role:"link"},"Close"),R("button",{className:"more-link-text aa-text-xs expand-link aa-expand-btn-link",role:"link"},"Expand/More"))}function ot(e){return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"})}function nt(e){var t,o;return R(P,null,(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===o?void 0:o.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less FAQ"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More FAQ")))}function st(e){var t,o,n;return R("div",{className:"action-buttons aa-action-buttons "+((null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.addHideClass)?"aa-hidden":"")},!(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send"))}function at(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===o?void 0:o.map((function(t,o){var n,s,a,i,r;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(o<(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.viewCount)?"":"aa-hidden"),key:o},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},(!t.displayName||t.question)&&R("h2",{className:"aa-text-xs semibold text-truncate"},t.displayName||t.question),t.answer&&(null===(s=null==t?void 0:t.answer)||void 0===s?void 0:s.length)>1&&(!t.seeMoreWrapper&&t.answerRender||t.toggle&&!t.answerRender&&!t.seeMoreWrapper)&&R("span",{className:"aa-faq-ans-length"},"1/",null===(a=null==t?void 0:t.answer)||void 0===a?void 0:a.length),t.childBotName&&R("span",{className:"aa-desc-sm semibold child-bot-name text-truncate"},"(",t.childBotName,")"),R("span",{className:"up-down-arrows aa-faq-down-arrow "+(t.answerRender||t.toggle?"aa-hidden":"")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.36437 10.3494C8.17497 10.5383 7.87481 10.5494 7.67239 10.3828L7.63563 10.3494L3.15093 6.07722C2.94969 5.87653 2.94969 5.55115 3.15093 5.35047C3.34033 5.16158 3.64048 5.15047 3.84291 5.31713L3.87967 5.35047L8 9.25923L12.1203 5.35047C12.3097 5.16158 12.6099 5.15047 12.8123 5.31713L12.8491 5.35047C13.0385 5.53935 13.0496 5.83868 12.8825 6.04056L12.8491 6.07722L8.36437 10.3494Z",fill:"#9AA4B2"}))),R("span",{className:"up-down-arrows aa-faq-up-arrow "+(!t.answerRender&&t.toggle?"":"aa-hidden")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.63563 5.35054C7.82503 5.16166 8.12519 5.15055 8.32761 5.31721L8.36437 5.35054L12.8491 9.6227C13.0503 9.82338 13.0503 10.1488 12.8491 10.3494C12.6597 10.5383 12.3595 10.5494 12.1571 10.3828L12.1203 10.3494L8 6.44074L3.87967 10.3494C3.69027 10.5383 3.39012 10.5494 3.18769 10.3828L3.15093 10.3494C2.96153 10.1606 2.95039 9.86123 3.1175 9.65936L3.15093 9.6227L7.63563 5.35054Z",fill:"#9AA4B2"}))),R("div",{id:"loader",className:"loader-progress-individual aa-faq-answer-loader aa-hidden"},R("div",{className:"loading-border"})))),t.answer&&(null===(i=null==t?void 0:t.answer)||void 0===i?void 0:i.length)>0&&(t.toggle&&!t.answerRender||t.answerRender)&&(null===(r=null==t?void 0:t.answer)||void 0===r?void 0:r.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body ",key:t},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:e.ans}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")))}))))})))}var it=o(36),rt={};rt.styleTagTransform=f(),rt.setAttributes=u(),rt.insert=d().bind(null,"head"),rt.domAPI=l(),rt.insertStyleElement=g();i()(it.A,rt);it.A&&it.A.locals&&it.A.locals;function lt(e){return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"})}function ct(e){var t,o;return R(P,null,(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===o?void 0:o.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less File"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More File")))}function dt(e){var t,o,n,s,a,i,r;return R(P,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(n=null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.file)||void 0===n?void 0:n.content)&&!(null===(a=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.file)||void 0===a?void 0:a.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(i=null==e?void 0:e.msgData)||void 0===i?void 0:i.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function pt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===o?void 0:o.map((function(e,t){return R("div",{key:t,className:"suggestion-item-card aa-each-suggestion "},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!e.link&&e.title&&R("h2",{className:"aa-text-xs"},e.title),e.link&&e.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-file-link",role:"link"},e.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:null==e?void 0:e.content}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),e.link&&!e.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-file-link",role:"link"},"View Full File"))))})))}var ut=o(798),ht={};ht.styleTagTransform=f(),ht.setAttributes=u(),ht.insert=d().bind(null,"head"),ht.domAPI=l(),ht.insertStyleElement=g();i()(ut.A,ht);ut.A&&ut.A.locals&&ut.A.locals;function gt(e){return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"})}function vt(e){var t,o,n,s;return R(P,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.snippet.contentArray.length)>0&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function ft(e){var t,o,n="",s=function(){var e;n&&(null===(e=document.querySelectorAll(n))||void 0===e||e.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")})))};return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippets)||void 0===o?void 0:o.map((function(t,o){var a,i;return R("div",{className:"suggestion-item-card aa-each-suggestion ",key:o},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},t.title&&R("h2",{className:"aa-text-xs"},t.title))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph aa-snippet-content-ref1"},t.contentArray.map((function(e,t){return(null==e?void 0:e.length)>0&&R("div",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),R("div",{className:"more-links-buttons aa-external-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),(null===(a=t.internalInfo)||void 0===a?void 0:a.length)>0&&R(P,null,R("div",{className:"line-with-text-heading"},R("h2",null,"Internal Information"),R("span",null)),R("p",{className:"aa-desc-xs suggestion-paragraph aa-snippet-content-ref2"},t.internalInfo.map((function(e,o){return(null==e?void 0:e.length)>0&&R("div",{key:o,className:"inner-text-snippet-selection ".concat(t.internalInfo.length>1&&!t.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:e}})}))),R("div",{className:"more-links-buttons aa-internal-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),R("div",{className:"line-with-text-heading"},R("span",null),R("h2",null,"Internal Information"))),(null===(i=null==t?void 0:t.sources)||void 0===i?void 0:i.length)>0&&R("div",{className:"souces-names-wrapper"},R("h1",{className:"aa-desc-xs"},"Sources :"),R("div",{className:"source-names"},t.sources.map((function(o,a){return o.url&&R("div",{key:a,className:"source-tag aa-source-tag",onMouseOver:function(){return function(t){var o,s,a;n&&(null===(o=document.querySelectorAll(n))||void 0===o||o.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")}))),n=".fragment-ext-"+t+"-"+(null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.suggestionIndex),null===(a=document.querySelectorAll(n))||void 0===a||a.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.add("selection-on-snippet-color")}))}(a+1)},onMouseLeave:s},t.isActCit&&R("span",null,a+1),R("a",{title:o.title,className:"aa-snippet-link"},(null==o?void 0:o.title)||"Know More"))}))))))})))}function mt(e){var t,o,n,s,a,i,r,l,c,d,p,u,h,g,v,f,m=De;return R(P,null,(null===(o=(null===(t=e.searchResponse)||void 0===t?void 0:t.faqs)||[])||void 0===o?void 0:o.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"FAQ"),R("span",{className:"count-text aa-text-xxs"},null===(s=null===(n=e.searchResponse)||void 0===n?void 0:n.faqs)||void 0===s?void 0:s.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_FAQ_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_FAQ_SUGGESTION)})),(null===(i=(null===(a=e.searchResponse)||void 0===a?void 0:a.snippets)||[])||void 0===i?void 0:i.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Answers"),R("span",{className:"count-text aa-text-xxs"},null===(l=null===(r=e.searchResponse)||void 0===r?void 0:r.snippets)||void 0===l?void 0:l.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_SNIPPET_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_SNIPPET_SUGGESTION)})),(null===(d=(null===(c=e.searchResponse)||void 0===c?void 0:c.articles)||[])||void 0===d?void 0:d.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Web Pages"),R("span",{className:"count-text aa-text-xxs"},null===(u=null===(p=e.searchResponse)||void 0===p?void 0:p.articles)||void 0===u?void 0:u.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_ARTICLE_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_ARTICLE_SUGGESTION)})),(null===(g=(null===(h=e.searchResponse)||void 0===h?void 0:h.files)||[])||void 0===g?void 0:g.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"File Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Files"),R("span",{className:"count-text aa-text-xxs"},null===(f=null===(v=e.searchResponse)||void 0===v?void 0:v.files)||void 0===f?void 0:f.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_FILE_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_FILE_SUGGESTION)})))}var bt=o(724),_t={};_t.styleTagTransform=f(),_t.setAttributes=u(),_t.insert=d().bind(null,"head"),_t.domAPI=l(),_t.insertStyleElement=g();i()(bt.A,_t);bt.A&&bt.A.locals&&bt.A.locals;function Et(e){var t,o=_e(e.suggestions.searchResponse),n=o[0],s=(o[1],_e(!1)),a=s[0],i=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),p=d[0],u=d[1],h=e.hostInstance,g=h.rootService,v=Pe,f=De;Ee((function(){m()}),[]),Ee((function(){var t;if(e.ambiguityToken&&(null===(t=Object.keys(e.ambiguityToken))||void 0===t?void 0:t.length)>0){var o=f.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.handleFaqAmbiguityDescElement(o,e.ambiguityToken,null==n?void 0:n.faqs,a,p,l,h)}}),[e.suggestions]);var m=function(){var t,o,s,i,r=document.getElementById(f.ASSIST_FAQ_SUGGESTION+e.suggestionIndex),c=document.getElementById(f.ASSIST_SNIPPET_SUGGESTION+e.suggestionIndex),d=document.getElementById(f.ASSIST_ARTICLE_SUGGESTION+e.suggestionIndex),u=document.getElementById(f.ASSIST_FILE_SUGGESTION+e.suggestionIndex);if(E(),null===(t=(null==n?void 0:n.faqs)||[])||void 0===t?void 0:t.length){var m,_=void 0;_=ne(at,{searchResponse:n,hostInstance:h,faqs:n.faqs,viewCount:2},h),(m=ne(nt,{hostInstance:h,faqs:n.faqs,moreClick:!1},h))&&(null==_||_.append(m)),h.emit(Ue.BEFORE_VIEW_INIT,_,{event:Ue.FAQ_TEMPLATE,data:n.faqs}),null==r||r.append(_),_&&g.handleSeeMoreButtonsForFaq(r,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,h);var y=_.querySelectorAll(v.SUGGESTION_EACH);g.renderEachFaqInSuggestionList(n,y,a,p,l,h,!0,e),m&&(g.handleSuggestionMoreClickEvent(m,r,y,h),g.handleSuggestionLessClickEvent(m,r,y,h))}if(null===(o=null==n?void 0:n.snippets)||void 0===o?void 0:o.length){var x=void 0;x=ne(ft,{searchResponse:n,hostInstance:h,snippets:n.snippets,suggestionIndex:e.suggestionIndex},h),h.emit(Ue.BEFORE_VIEW_INIT,x,{event:Ue.SNIPPET_TEMPLATE,data:n.snippets}),null==c||c.append(x),x&&(g.handleSeeMoreButtonsForSearchAssist(c,Pe.DESC_TEXT_SNIPPET_EXTERNAL,Pe.EXTERNAL_SNIPPET_MORE_BTN_CONTAINER,h),g.handleSeeMoreButtonsForSearchAssist(c,Pe.DESC_TEXT_SNIPPET_INTERNAL,Pe.INTERNAL_SNIPPET_MORE_BTN_CONTAINER,h));var C=x.querySelectorAll(v.SUGGESTION_EACH);g.renderEachSnippetInSuggestionList(n,C,a,p,l,h)}if((null===(s=(null==n?void 0:n.articles)||[])||void 0===s?void 0:s.length)>0){var A,S=void 0;S=ne(Xe,{searchResponse:n,hostInstance:h,articles:n.articles,viewCount:2},h),(A=ne(Qe,{hostInstance:h,articles:n.articles,moreClick:!1},h))&&(null==S||S.append(A)),h.emit(Ue.BEFORE_VIEW_INIT,S,{event:Ue.ARTICE_TEMPLATE,data:n.articles}),null==d||d.append(S),S&&g.handleSeeMoreButtonsForSearchAssist(d,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,h);var k=S.querySelectorAll(v.SUGGESTION_EACH);g.renderEachArticleInSuggestionList(n,k,a,p,l,h),A&&(g.handleSuggestionMoreClickEvent(A,d,k,h),g.handleSuggestionLessClickEvent(A,d,k,h))}if(null===(i=null==n?void 0:n.files)||void 0===i?void 0:i.length){var T,w=void 0;w=ne(pt,{searchResponse:n,hostInstance:h,files:n.files},h),(T=ne(ct,{hostInstance:h,files:n.files,moreClick:!1},h))&&(null==w||w.append(T)),h.emit(Ue.BEFORE_VIEW_INIT,w,{event:Ue.FILE_TEMPLATE,data:n.files}),null==u||u.append(w),w&&g.handleSeeMoreButtonsForSearchAssist(u,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,h);var I=w.querySelectorAll(v.SUGGESTION_EACH);g.renderEachFileInSuggestionList(n,I,a,p,l,h),T&&(g.handleSuggestionMoreClickEvent(T,u,I,h),g.handleSuggestionLessClickEvent(T,u,I,h))}b()},b=function(){var e,t,o=null===(e=n.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==o?void 0:o.length)&&_(o[0],null===(t=o[0])||void 0===t?void 0:t.index)},_=function(t,o){var n=f.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.toggleArrows(o,n),t.toggle=!t.toggle,t.seeMoreWrapper=!1,g.checkAnswerAndToggleForAssist(t,o,h,e)},E=function(){var e,t,o=!1,n=!1;i(g.connectionDetails.channel===Oe.VOICE),!1===(null===(e=null==g?void 0:g.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(c(!0),n=!0),!1===(null===(t=null==g?void 0:g.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(u(!0),o=!0),n&&o&&i(!0)};return R(P,null,(null===(t=Object.keys(n))||void 0===t?void 0:t.length)>0&&R("div",{className:"assist-suggestions-list"},R(mt,{hostInstance:h,searchResponse:n,suggestionIndex:e.suggestionIndex,isAssist:!0})))}var yt=o(544),xt={};xt.styleTagTransform=f(),xt.setAttributes=u(),xt.insert=d().bind(null,"head"),xt.domAPI=l(),xt.insertStyleElement=g();i()(yt.A,xt);yt.A&&yt.A.locals&&yt.A.locals;var Ct=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function At(e){var t,o,n=e.hostInstance,s=n.rootService,a=_e([]),i=a[0],r=a[1],l=_e({}),c=l[0],d=l[1],p=_e({}),u=p[0],h=p[1],g=_e(!0),v=g[0],f=g[1],m=Pe;Ee((function(){n.on("CONVERSATION_SUMMARY_IN_ASSIST",(function(e){return b(e)}));var e=function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&y(e)};return n.on("AGENT_AI_RESPONSE",e),function(){n.off("AGENT_AI_RESPONSE",e)}}),[]),Ee((function(){var e=document.querySelector(m.ASSIST_SECTION);e.scrollTop=e.scrollHeight}),[i]);var b=function(e){var t;0===i.length&&f(!1);var o=ne(_,e,n),s=document.getElementsByClassName(m.SCROLL_DATA_ASSIST)[0];n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.SUMMARY_TEMPLATE_ASSIST,summaryObj:e}),null==s||s.append(o),null===(t=n.eventManager)||void 0===t||t.addEventListener(".aa-copy-summary-text","click",(function(){E(e)}),o)},_=function(e){var t=e.msgData;return R("div",{class:"summery-conv-banner-wrapper"},R("div",{class:"heading-text"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("h1",{className:"aa-text-sm medium"},"CONVERSATION SUMMARY")),R("li",null,R("span",{className:"summary-text"},t),R("button",{class:"copy-btn aa-copy-summary-text"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"})))))))},E=function(e){navigator.clipboard.writeText(e)},y=function(e){var t,o,n,a,i=qe(),l={};if(!s.isAutomationOnGoing&&e.suggestions&&(null===(t=Object.keys(e.suggestions))||void 0===t?void 0:t.length)>0)if(e.uiunqref){if(e.uiunqref){var c=JSON.parse(atob(e.uiunqref));r((function(t){var o;return c&&(null==c?void 0:c.question)===(null===(o=e.suggestions)||void 0===o?void 0:o.faqs[0].question)?s.updateSearchResponse(t,e,c):t})),d(c)}}else(l=x(e,i))&&(null===(o=Object.keys(l))||void 0===o?void 0:o.length)>0&&r((function(e){return Ct(Ct([],e,!0),[l],!1)}));e.sendMenuRequest&&(null===(n=null==e?void 0:e.buttons)||void 0===n?void 0:n.length)>0&&0==(null===(a=Object.keys(u))||void 0===a?void 0:a.length)&&(l=s.formatWelcomeMessageResponse(e),h(e))},x=function(e,t){var o;e&&(null===(o=Object.keys(e))||void 0===o?void 0:o.length)>0&&(e.suggestionFrom=Oe.ASSIST);var n=0;return r((function(e){return(null==e?void 0:e.length)>0&&(n=null==e?void 0:e.length),e})),{data:e,type:Ne.SUGGESTIONS,uuid:t,searchResponse:s.formatSearchResponse(e,!1,n),connectionDetails:s.connectionDetails}};return R(P,null,R("div",{className:"assist-data-wrapper-container"},R("div",{className:"assist-block-content"},R("div",{className:"assist-header-content"},R("div",{className:"left-title-info"},R("div",{className:"text-dropdown-info"},R("h1",null,"Assist")))),R("div",{className:"scroll-data-assist aa-assist-section"},null===(t=i)||void 0===t?void 0:t.map((function(e,t){return e.type===Ne.SUGGESTIONS&&R(Et,{hostInstance:n,suggestions:e,suggestionIndex:t,key:t,ambiguityToken:c})})),0===i.length&&0===(null===(o=Object.keys(u))||void 0===o?void 0:o.length)&&R(P,null,v&&R("div",{class:"empty-listing-triggers"},R("h1",{className:"aa-text-sm medium m-0 center"},"Listening for triggers"),R("p",{className:"aa-desc-xs m-0 center"},"Agent AI is actively listening to your conversation and ready to assist automatically when triggered.")))))))}var St=o(478),kt={};kt.styleTagTransform=f(),kt.setAttributes=u(),kt.insert=d().bind(null,"head"),kt.domAPI=l(),kt.insertStyleElement=g();i()(St.A,kt);St.A&&St.A.locals&&St.A.locals;var Tt=function(){return Tt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},Tt.apply(this,arguments)};function wt(){return R("div",{className:"input-block aa-input-block"},R("input",{id:"aa-search-input",type:"text",className:"input-control","aria-describedby":"search",placeholder:"Ask a customer",value:""}),R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"aa-input-search-icon"},R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33342 1.66675C4.65152 1.66675 1.66675 4.65152 1.66675 8.33342C1.66675 12.0153 4.65152 15.0001 8.33342 15.0001C9.87401 15.0001 11.2925 14.4775 12.4215 13.6L16.9108 18.0893C17.2363 18.4148 17.7639 18.4148 18.0893 18.0893C18.4148 17.7639 18.4148 17.2363 18.0893 16.9108L13.6 12.4215C14.4775 11.2925 15.0001 9.87401 15.0001 8.33342C15.0001 4.65152 12.0153 1.66675 8.33342 1.66675ZM3.33341 8.33342C3.33341 5.57199 5.57199 3.33341 8.33342 3.33341C11.0948 3.33341 13.3334 5.57199 13.3334 8.33342C13.3334 11.0948 11.0948 13.3334 8.33342 13.3334C5.57199 13.3334 3.33341 11.0948 3.33341 8.33342Z",fill:"#667085"})),R("button",{className:"clear-search aa-input-search-close aa-hidden"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))}function It(e){var t,o,n,s=e.hostInstance,a=_e({value:"",isEntered:!1,stTime:null,edTime:null}),i=a[0],r=a[1],l=_e(""),c=l[0],d=l[1],p=_e({}),u=p[0],h=p[1],g=_e(!1),v=g[0],f=g[1],m=_e(!1),b=m[0],_=m[1],E=s.rootService,y=_e(!1),x=y[0],C=y[1],A=_e(!1),S=A[0],k=A[1],T=_e(!1),w=T[0],I=T[1],N=Pe,O=De,L=null;Ee((function(){var e=function(e){var t;(null==e?void 0:e.suggestions)&&(null===(t=Object.keys(null==e?void 0:e.suggestions))||void 0===t?void 0:t.length)>0&&(e.isSearch||e.uiunqref)&&(F(e),_(!1),E.searchedResultData=e)};return s.on("AGENT_AI_AGENT_RESPONSE",e),D(),function(){s.off("AGENT_AI_AGENT_RESPONSE",e)}}),[]),Ee((function(){E.handleSearchText(i,s)}),[i]),Ee((function(){M(b)}),[b]),Ee((function(){var e;!E.faqAnswerIdsPlace&&u&&(null===(e=Object.keys(u))||void 0===e?void 0:e.length)>0&&(U(),V())}),[u]);var M=function(e){var t,o=null===(t=null==s?void 0:s.chatEle)||void 0===t?void 0:t.querySelector(N.SEARCH_INPUT_BLOCK);o&&((null==o?void 0:o.querySelector(N.SEARCH_INPUT_CLOSE)).disabled=e)},D=function(){var e,t,o,n,a,i=ne(wt,{},s);i&&(s.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.SEARCH_INPUT}),null===(o=null===(t=null===(e=null==s?void 0:s.chatEle)||void 0===e?void 0:e.querySelector(N.SEARCH_SUGGESTION_WRAPPER))||void 0===t?void 0:t.querySelector("#".concat(O.SEARCH_SUGGESTION_BLOCK)))||void 0===o||o.append(i),null===(n=s.eventManager)||void 0===n||n.addEventListener("#".concat(O.SEARCH_INPUT),"keyup",(function(e){"Enter"===e.key&&e.target.value?H(e):B(e)}),i),null===(a=s.eventManager)||void 0===a||a.addEventListener(N.SEARCH_INPUT_CLOSE,"click",(function(e){q()}),i))},B=function(e){r({value:e.target.value,isEntered:!1});var t=e.target.value;t.length>0?c===t||c.includes(t):q(),(null==t?void 0:t.length)>0&&!L&&(L=new Date)},H=function(e){_(!0),G(e.target.value,!0),d(""),setTimeout((function(){_(!1)}),15e3)},G=function(e,t){void 0===t&&(t=!1);var o=null,n=null;t&&(o=L,n=new Date),r({value:e,isEntered:t,stTime:o,edTime:n})},q=function(){r({value:"",isEntered:!1}),d(""),f(!1),h({}),L=null,E.faqAnswerIdsPlace=!1},F=function(e){var t,o,n,a,i,r,l,c,d;if(f(!0),null==e?void 0:e.suggestions)if(e.uiunqref){if(e.uiunqref){var p=JSON.parse(atob(e.uiunqref));if(e.suggestions.faqs=E.formatFAQResponse(e.suggestions.faqs),E.faqAnswerIdsPlace=!(!p||(null==p?void 0:p.question)!==e.suggestions.faqs[0].question),E.faqAnswerIdsPlace){var u=null===(l=null===(r=null==e?void 0:e.suggestions)||void 0===r?void 0:r.faqs)||void 0===l?void 0:l.findIndex((function(e,t){if(e.question===p.question)return e})),g={};if(u>=0&&(g=null===(c=null==e?void 0:e.suggestions)||void 0===c?void 0:c.faqs[u]),g&&(null===(d=Object.keys(g))||void 0===d?void 0:d.length)>0){var v=[];h((function(e){var t;return v=null===(t=null==e?void 0:e.faqs)||void 0===t?void 0:t.map((function(e,t){return g&&g.answer&&t===p.index&&(e.answer=g.answer),g&&(e.showSpinner=!1),e})),e})),E.handleFaqAmbiguityDescElement(O.SEARCH_FAQ_SUGGESTION,p,v,x,w,S,s),h((function(e){return Tt(Tt({},e),{faqs:v})}))}}}}else{E.faqAnswerIdsPlace=!1;var m=E.formatSearchResponse(e,!0,0);m&&Object.keys(m).length>0&&(m=Tt(Tt({},m),{totalSearchResults:((null===(t=m.dialogs)||void 0===t?void 0:t.length)||0)+((null===(o=m.faqs)||void 0===o?void 0:o.length)||0)+((null===(n=m.articles)||void 0===n?void 0:n.length)||0)+((null===(a=m.files)||void 0===a?void 0:a.length)||0)+((null===(i=m.snippets)||void 0===i?void 0:i.length)||0)}),h(m))}else h({})},U=function(){var e,t,o,n,a,i=document.getElementById(O.SEARCH_FAQ_SUGGESTION),r=document.getElementById(O.SEARCH_SNIPPET_SUGGESTION),l=document.getElementById(O.SEARCH_ARTICLE_SUGGESTION),c=document.getElementById(O.SEARCH_FILE_SUGGESTION);if(j(),null==(a=[i,r,l,c])||a.forEach((function(e){e&&(e.innerHTML="")})),null===(e=(null==u?void 0:u.faqs)||[])||void 0===e?void 0:e.length){var d,p=void 0;p=ne(at,{searchResponse:u,hostInstance:s,faqs:u.faqs,viewCount:2},s),(d=ne(nt,{hostInstance:s,faqs:u.faqs,moreClick:!1},s))&&(null==p||p.append(d)),s.emit(Ue.BEFORE_VIEW_INIT,p,{event:Ue.SEARCH_FAQ_TEMPLATE,data:u.faqs}),null==i||i.append(p),p&&E.handleSeeMoreButtonsForFaq(i,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var h=p.querySelectorAll(N.SUGGESTION_EACH);E.renderEachFaqInSuggestionList(u,h,x,w,S,s,!1,{}),d&&(E.handleSuggestionMoreClickEvent(d,i,h,s),E.handleSuggestionLessClickEvent(d,i,h,s))}if(null===(t=null==u?void 0:u.snippets)||void 0===t?void 0:t.length){var g=void 0;g=ne(ft,{searchResponse:u,hostInstance:s,snippets:u.snippets,suggestionIndex:0},s),s.emit(Ue.BEFORE_VIEW_INIT,g,{event:Ue.SEARCH_SNIPPET_TEMPLATE,data:u.snippets}),null==r||r.append(g),g&&(E.handleSeeMoreButtonsForSearchAssist(r,Pe.DESC_TEXT_SNIPPET_EXTERNAL,Pe.EXTERNAL_SNIPPET_MORE_BTN_CONTAINER,s),E.handleSeeMoreButtonsForSearchAssist(r,Pe.DESC_TEXT_SNIPPET_INTERNAL,Pe.INTERNAL_SNIPPET_MORE_BTN_CONTAINER,s));var v=g.querySelectorAll(N.SUGGESTION_EACH);E.renderEachSnippetInSuggestionList(u,v,x,w,S,s)}if((null===(o=(null==u?void 0:u.articles)||[])||void 0===o?void 0:o.length)>0){var f,m=void 0;m=ne(Xe,{searchResponse:u,hostInstance:s,articles:u.articles,viewCount:2},s),(f=ne(Qe,{hostInstance:s,articles:u.articles,moreClick:!1},s))&&(null==m||m.append(f)),s.emit(Ue.BEFORE_VIEW_INIT,m,{event:Ue.SEARCH_ARTICE_TEMPLATE,data:u.articles}),null==l||l.append(m),m&&E.handleSeeMoreButtonsForSearchAssist(l,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var b=m.querySelectorAll(N.SUGGESTION_EACH);E.renderEachArticleInSuggestionList(u,b,x,w,S,s),f&&(E.handleSuggestionMoreClickEvent(f,l,b,s),E.handleSuggestionLessClickEvent(f,l,b,s))}if(null===(n=null==u?void 0:u.files)||void 0===n?void 0:n.length){var _,y=void 0;y=ne(pt,{searchResponse:u,hostInstance:s,files:u.files},s),(_=ne(ct,{hostInstance:s,files:u.files,moreClick:!1},s))&&(null==y||y.append(_)),s.emit(Ue.BEFORE_VIEW_INIT,y,{event:Ue.SEARCH_FILE_TEMPLATE,data:u.files}),null==c||c.append(y),y&&E.handleSeeMoreButtonsForSearchAssist(c,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var C=y.querySelectorAll(N.SUGGESTION_EACH);E.renderEachFileInSuggestionList(u,C,x,w,S,s),_&&(E.handleSuggestionMoreClickEvent(_,c,C,s),E.handleSuggestionLessClickEvent(_,c,C,s))}},V=function(){var e,t,o=null===(e=u.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==o?void 0:o.length)&&K(o[0],null===(t=o[0])||void 0===t?void 0:t.index)},K=function(e,t){e.toggle=!e.toggle,e.seeMoreWrapper=!1;var o=O.SEARCH_FAQ_SUGGESTION;E.toggleArrows(t,o),E.checkAnswerAndToggleForSearch(e,t,s)},j=function(){var e,t,o=!1,n=!1;C(E.connectionDetails.channel===Oe.VOICE),!1===(null===(e=null==E?void 0:E.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(k(!0),n=!0),!1===(null===(t=null==E?void 0:E.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(I(!0),o=!0),n&&o&&C(!0)};return R("div",{className:"search-block-data-suggestions-wrapper aa-search-suggestion-wrapper"},R("div",{class:"search-block-data-suggestions"},R("div",{className:"suggestionslist-conntent-search"},((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0||v)&&R(P,null,R(mt,{hostInstance:s,searchResponse:u,isAssist:!1})),0==(null===(o=Object.keys(u))||void 0===o?void 0:o.length)&&v&&!b&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("h1",{className:"aa-text-md m-0 center"},"No Search Result Found"),R("p",{className:"aa-desc-sm m-0 center"},'"Could you rephrase your question or ask something else?"')),0==(null===(n=Object.keys(u))||void 0===n?void 0:n.length)&&!v&&!b&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("p",{className:"aa-desc-sm m-0 center"},"Type to search"))),R("div",{className:"search-block-input",id:"searchSuggestionsBlock"})),b&&R("div",{id:"loader",className:"loader-progress-individual"},R("div",{className:"loading-border"})))}var Nt=o(762),Ot={};Ot.styleTagTransform=f(),Ot.setAttributes=u(),Ot.insert=d().bind(null,"head"),Ot.domAPI=l(),Ot.insertStyleElement=g();i()(Nt.A,Ot);Nt.A&&Nt.A.locals&&Nt.A.locals;var Lt=function(){return Lt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},Lt.apply(this,arguments)},Rt=function(e,t,o,n){return new(o||(o=Promise))((function(s,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function r(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){e.done?s(e.value):function(e){return e instanceof o?e:new o((function(t){t(e)}))}(e.value).then(i,r)}l((n=n.apply(e,t||[])).next())}))},Mt=function(e,t){var o,n,s,a,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(r){return function(l){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(i=0)),i;)try{if(o=1,n&&(s=2&r[0]?n.return:r[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,r[1])).done)return s;switch(n=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,n=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(s=i.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){i=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){i.label=r[1];break}if(6===r[0]&&i.label<s[1]){i.label=s[1],s=r;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(r);break}s[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],n=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},Pt={jwt_grant:"/api/1.1/oAuth/token/jwtgrant",get_aa_settings:"/agentassist/api/v1/agentassist/:botId/agentassistsetting?e=:channel",get_history_trascript:"/agentassist/api/v1/agentassistconversations/:conversationId/conversation?page=0&limit=-1&botId=:botId&sessionId=:sessionId&isSummaryRequired=:isSummaryRequired&experience=:channel",get_checklist:"/agentassist/api/v1/agentcoachingconfiguration/checklist/:botId/activeChecklists"};const Dt=function(e,t,o,n){return void 0===t&&(t={}),Rt(void 0,void 0,void 0,(function(){var s,a,i,r,l,c,d,p,u,h,g,v,f,m;return Mt(this,(function(b){switch(b.label){case 0:return b.trys.push([0,5,,6]),_=n,s=Pt[e].replace(/:(\w+)/g,(function(e,t){return void 0!==_[t]?_[t]:":".concat(t)})),a=o.rootService.connectionDetails,i=a.domainURL,r=a.botId,l=((null===(f=o.rootService.grantResponseObj)||void 0===f?void 0:f.userInfo)||{}).accountId,c=((null===(m=o.rootService.grantResponseObj)||void 0===m?void 0:m.authorization)||{}).accessToken,d=new Headers(t.headers||{}),p={iid:r,accountId:l,Authorization:"bearer "+c,"Content-Type":"application/json"},Object.keys(p).forEach((function(e){d.set(e,p[e])})),u=Lt(Lt({},t),{headers:d}),[4,fetch(i+s,u)];case 1:return(h=b.sent()).ok?[3,3]:[4,h.json()];case 2:throw g=b.sent(),new Error(g.message||"Something went wrong");case 3:return[4,h.json()];case 4:return[2,b.sent()];case 5:throw v=b.sent(),console.error("Fetch error:",v),v;case 6:return[2]}var _}))}))};var Bt=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function Ht(e){var t=e.hostInstance,o=_e([]),n=o[0],s=o[1],a=_e([]),i=a[0],r=a[1],l=_e([]),c=l[0],d=l[1],p=_e(void 0),u=p[0],h=p[1],g=_e(null),v=g[0],f=g[1],m=function(e){return de=5,ye((function(){return{current:e}}),[])}(!0),b=t.rootService,_=Pe;Ee((function(){E(),y()}),[]);var E=function(){var e=function(e){return T(e)};t.on("AGENT_TRANSCRIPT_MSG",e),t.on("USER_TRANSCRIPT_MSG",e),t.on("AGENT_TRANSCRIPT_RESPONSE",e),t.on("USER_TRANSCRIPT_RESPONSE",e)},y=function(){C().then((function(e){if(e){var t=e.userBotMessages,o=e.summary,n=e.userAgentMessages,s=x(null==t?void 0:t.result);d(s),(null==o?void 0:o.message)&&L(o);var a=x(null==n?void 0:n.result);r(a)}})).catch((function(e){I()}))};Ee((function(){if(m.current)m.current=!1;else{if((c||[]).forEach((function(e){var t,o;(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)&&A(e)})),null==u?void 0:u.msg){var e=ne(O,u,t),o=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,e,{event:Ue.SUMMARY_TEMPLATE,summary:u}),o.append(e)}I(),(i||[]).forEach((function(e){var t,o;"USER"!==(null==e?void 0:e.msgType)&&"AGENT"!==(null==e?void 0:e.msgType)||!(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)||S(e)}))}}),[c,i,u]);var x=function(e){return(null==e?void 0:e.length)?e.map((function(e){var t,o,n;try{if("string"==typeof(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)){var s=JSON.parse(e.components[0].data.text);(null===(n=null==s?void 0:s.payload)||void 0===n?void 0:n.text)&&(e.components[0].data.text=s.payload.text)}}catch(e){}return e})):[]},C=function(){var e=b.connectionDetails||{},o=e.botId,n=e.conversationId,s=e.channel,a=e.sessionId;return Dt("get_history_trascript",{method:"GET",headers:{"Content-Type":"application/json"}},t,{conversationId:n,botId:o,channel:s,sessionId:a||0,isSummaryRequired:!0})},A=function(e){var o,n,s={timestamp:k(e.createdOn),msg:null===(n=null===(o=e.components[0])||void 0===o?void 0:o.data)||void 0===n?void 0:n.text,from:"BOT"===e.msgType?"bot":"user",type:"BOT"===e.msgType?"bot":"user"},a=ne(M,s,t),i=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,a,{event:"BOT"===e.msgType?Ue.BOT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:s}),i.append(a)},S=function(e){var o,n,s={timestamp:k(e.createdOn),msg:null===(n=null===(o=e.components[0])||void 0===o?void 0:o.data)||void 0===n?void 0:n.text,from:"AGENT"===e.msgType?"agent":"user",type:"AGENT"===e.msgType?"agent":"user"},a=ne(M,s,t),i=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,a,{event:"AGENT"===e.msgType?Ue.AGENT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:s}),i.append(a)},k=function(e){var t=new Date(e),o=t.getUTCHours(),n=t.getUTCMinutes(),s=o>=12?"pm":"am";return n=n<10?"0"+n:n,"".concat(o=(o%=12)||12,":").concat(n," ").concat(s)},T=function(e){var o,a,i,r=null===(a=null===(o=null==e?void 0:e.author)||void 0===o?void 0:o.type)||void 0===a?void 0:a.toLowerCase(),l={timestamp:w(new Date),msg:null==e?void 0:e.message,from:r,type:r};s(Bt(Bt([],n,!0),[l],!1));var c=ne(M,l,t),d=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,c,{event:"AGENT"===(null===(i=null==e?void 0:e.author)||void 0===i?void 0:i.type)?Ue.AGENT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:l}),d.append(c)},w=function(e){var t=e.getHours(),o=e.getMinutes(),n=t>=12?"pm":"am";return(t=(t%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n},I=function(){var e={title:"Agent joined the conversation",timeStamp:w(new Date)};f(v);var o=ne(N,e,t),n=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.AGENT_JOINED_TEMPLATE,data:e}),n.append(o)},N=function(e){var t=e.msgData;return R("div",{className:"agent-joined-banner"},R("div",{className:"line-border"}),R("div",{className:"info-joined-details"},R("h4",{className:"aa-text-sm"},t.title)),R("div",{className:"line-border"}))},O=function(e){var t=e.msgData;return R("div",{className:"summary-wrapper"},R("div",{className:"summary-header"},R("i",{className:"krIocnsFont-Aimark"}),R("span",{className:"aa-text-md medium"},t.title)),R("p",{className:"aa-text-sm"},t.msg))},L=function(e){var t={title:"Conversation Summary",msg:null==e?void 0:e.message};h(t)},M=function(e){var t=e.msgData;return R("div",{className:"user"===t.type?"aa-bot-bubble-comp":"aa-agent-bubble-comp"},R("div",{className:"user"===t.type?"bot-bubble-content":"agent-bubble-content"},R("div",{className:"top-info"},"bot"!==t.type&&R("div",{className:"you-text"},"agent"===t.type?"agent":"user"),"bot"===t.type&&R("div",{className:"you-text"},"bot"===t.type?"bot":"user"),R("div",{className:"time-tamp"},R("time",null,t.timestamp))),R("div",{className:"bubble-msg"},t.msg)))};return Ee((function(){var e=document.querySelector(".aa-transcript-body-wrapper");e.scrollTop=e.scrollHeight}),[n]),R(P,null,R("div",{className:"transcript-template-wrapper"},R("div",{className:"transcript-template-data"},R("h1",{className:"transcript-header aa-text-md semibold"},"Transcript"),R("div",{className:"transcript-body-wrapper aa-transcript-body-wrapper"}))))}var Gt=o(884),qt={};qt.styleTagTransform=f(),qt.setAttributes=u(),qt.insert=d().bind(null,"head"),qt.domAPI=l(),qt.insertStyleElement=g();i()(Gt.A,qt);Gt.A&&Gt.A.locals&&Gt.A.locals;var Ft=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function Ut(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.stageList)||void 0===o?void 0:o.map((function(t,o){var n,s=((null==t?void 0:t.steps)||[]).every((function(e){return e.complete})),a=["aa-dropdown-item","aa-stage-drp-".concat(o)];return"Close"===t.name&&a.push("aa-close-stage-btn"),"Close"!==t.name||s||a.push("disabled-msg"),R("button",{"aria-disabled":"true",className:"".concat(a.join(" "))},R("p",null,t.name),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-selected-stage-".concat(o," ").concat(o!==(null===(n=e.msgData)||void 0===n?void 0:n.selectedStInx)?"aa-hidden":"")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})))})))}function Vt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.allChecklists)||void 0===o?void 0:o.map((function(e,t){return R(P,null,0==t&&R("div",{className:"heading-text-scripts aa-primary-scripts"},"PRIMARY SCRIPTS"),"primary"===e.type&&R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-primary-cl-".concat(t)},R("p",null,e.name),R("button",{className:"primaryBtn aa-hidden aa-cl-resume-".concat(t)},"Resume"),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-cl-check-".concat(t," aa-cl-item aa-hidden")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))})))}function Kt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.allChecklists)||void 0===o?void 0:o.map((function(e,t){return R(P,null,0==t&&R("div",{className:"heading-text-scripts aa-dynamic-scripts"},"DYNAMIC SCRIPTS"),"dynamic"===e.type&&R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-dynamic-cl-".concat(t)},R("p",null,e.name),R("button",{className:"primaryBtn aa-hidden aa-cl-resume-".concat(t)},"Resume"),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-cl-check-".concat(t," aa-cl-item aa-hidden")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))})))}function jt(e){var t,o,n,s,a,i,r;return R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-trigger-checklist-btn-".concat(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.checklist)||void 0===o?void 0:o._id)},R("p",{className:"aa-trigger-checklist-name"},null===(s=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.checklist)||void 0===s?void 0:s.name),R("span",{className:"aa-trigger-checklist-stepcount"},null===(r=null===(i=null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.checklist)||void 0===i?void 0:i.stages)||void 0===r?void 0:r.length," steps"))}function Yt(e){return R("div",{className:"empty-listing-triggers aa-checklist-empty"},R("h1",{className:"aa-text-sm medium"},"Select Playbook"),R("p",{className:"aa-desc-xs center"},"Agent AI is unable to load the playbook due to all available playbooks being dynamic. Click 'Select Playbook' to access the playbook"))}function Wt(e){return R("div",{className:"playbook-header-data aa-playbook-header"},R("div",{className:"left-sec-data"},R("div",{className:"aa-dropdown aa-triggerList-drp-wrapper aa-hidden"},R("button",{type:"button",id:"playbookDrpTriggerChecklist",className:"aa-dropdown-toggle playbook-suggestion aa-trigger-checklist-count-btn"},R("sub",{className:"aa-triggerDynChecklist-bulb-count"}),R("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},R("path",{d:"M13.0496 4.64998C13.0496 4.07008 12.5795 3.59998 11.9996 3.59998C11.4197 3.59998 10.9496 4.07008 10.9496 4.64998V5.69998C10.9496 6.27987 11.4197 6.74998 11.9996 6.74998C12.5795 6.74998 13.0496 6.27987 13.0496 5.69998V4.64998Z",fill:"#2B75E4"}),R("path",{d:"M17.9393 7.54515C18.3493 7.1351 18.3493 6.47027 17.9393 6.06022C17.5292 5.65017 16.8644 5.65017 16.4543 6.06022L15.7119 6.80269C15.3018 7.21274 15.3018 7.87756 15.7119 8.28761C16.1219 8.69766 16.7868 8.69766 17.1968 8.28761L17.9393 7.54515Z",fill:"#2B75E4"}),R("path",{d:"M20.3996 12C20.3996 12.5799 19.9295 13.05 19.3496 13.05H18.2996C17.7197 13.05 17.2496 12.5799 17.2496 12C17.2496 11.4201 17.7197 10.95 18.2996 10.95H19.3496C19.9295 10.95 20.3996 11.4201 20.3996 12Z",fill:"#2B75E4"}),R("path",{d:"M6.80231 8.28763C7.21236 8.69768 7.87718 8.69768 8.28723 8.28763C8.69728 7.87758 8.69728 7.21275 8.28723 6.8027L7.54477 6.06024C7.13472 5.65019 6.4699 5.65019 6.05984 6.06024C5.64979 6.47029 5.64979 7.13512 6.05984 7.54517L6.80231 8.28763Z",fill:"#2B75E4"}),R("path",{d:"M6.74961 12C6.74961 12.5799 6.27951 13.05 5.69961 13.05H4.64961C4.06971 13.05 3.59961 12.5799 3.59961 12C3.59961 11.4201 4.06971 10.95 4.64961 10.95H5.69961C6.27951 10.95 6.74961 11.4201 6.74961 12Z",fill:"#2B75E4"}),R("path",{d:"M9.89961 18.3V17.25H14.0996V18.3C14.0996 19.4598 13.1594 20.4 11.9996 20.4C10.8398 20.4 9.89961 19.4598 9.89961 18.3Z",fill:"#2B75E4"}),R("path",{d:"M14.1005 16.2C14.1159 15.8426 14.3176 15.5214 14.6003 15.2982C15.5744 14.529 16.1996 13.3375 16.1996 12C16.1996 9.68038 14.3192 7.79998 11.9996 7.79998C9.68001 7.79998 7.79961 9.68038 7.79961 12C7.79961 13.3375 8.42483 14.529 9.39896 15.2982C9.68164 15.5214 9.88335 15.8426 9.89867 16.2H14.1005Z",fill:"#2B75E4"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-trigger-checklist-drp","aria-labelledby":"playbookDrpTriggerChecklist"},R("div",{className:"heading-text-scripts"},"RECOMMENDED PLAYBOOK"))),R("div",{className:"dropdowns-text-info"},R("div",{className:"aa-dropdown aa-checklist-drp-wrapper aa-hidden"},R("button",{type:"button",id:"playbookDrpListBtn",className:"aa-dropdown-toggle"},R("span",{className:"aa-selected-checklist"}),R("svg",{className:"arrow-icon aa-selected-checklist-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.52876 5.52858C3.78911 5.26823 4.21122 5.26823 4.47157 5.52858L8.00016 9.05717L11.5288 5.52858C11.7891 5.26823 12.2112 5.26823 12.4716 5.52858C12.7319 5.78892 12.7319 6.21103 12.4716 6.47138L8.47157 10.4714C8.21122 10.7317 7.78911 10.7317 7.52876 10.4714L3.52876 6.47138C3.26841 6.21103 3.26841 5.78892 3.52876 5.52858Z",fill:"#667085"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-checklist-drp","aria-labelledby":"playbookDrpListBtn"})),R("div",{className:"bottom-titles-info aa-stage-drp-wrapper-main aa-hidden"},R("h6",null,"Stage: "),R("div",{className:"aa-dropdown aa-stage-drp-wrapper"},R("button",{type:"button",id:"playbookStageDrpBtn",className:"aa-dropdown-toggle"},R("span",{className:"aa-selected-stage"}),R("svg",{className:"arrow-icon aa-selected-stage-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.52876 5.52858C3.78911 5.26823 4.21122 5.26823 4.47157 5.52858L8.00016 9.05717L11.5288 5.52858C11.7891 5.26823 12.2112 5.26823 12.4716 5.52858C12.7319 5.78892 12.7319 6.21103 12.4716 6.47138L8.47157 10.4714C8.21122 10.7317 7.78911 10.7317 7.52876 10.4714L3.52876 6.47138C3.26841 6.21103 3.26841 5.78892 3.52876 5.52858Z",fill:"#667085"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-stage-drp","aria-labelledby":"playbookStageDrpBtn"}))))),R("div",{className:"actions-checklist-header"},R("button",{className:"solid-action step-complete aa-step-complete-count aa-hidden","aria-label":"button"}),R("button",{className:"solid-action stop-assist aa-proceedtoclose-btn aa-hidden","aria-label":"button",title:"Proceed to close"},R("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"},R("g",{"clip-path":"url(#clip0_9531_17675)"},R("path",{d:"M8.24998 4V2.5L9.74998 1L10.25 2L11.25 2.5L9.74998 4H8.24998ZM8.24998 4L6.24999 5.99997M11.25 6C11.25 8.76142 9.01142 11 6.25 11C3.48858 11 1.25 8.76142 1.25 6C1.25 3.23858 3.48858 1 6.25 1M8.75 6C8.75 7.38071 7.63071 8.5 6.25 8.5C4.86929 8.5 3.75 7.38071 3.75 6C3.75 4.61929 4.86929 3.5 6.25 3.5",stroke:"#DC2626","stroke-width":"0.7","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9531_17675"},R("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.25)"})))))))}function zt(e){var t,o,n,s=_e(!1),a=s[0],i=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),p=d[0],u=d[1],h=null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hostInstance)||void 0===o?void 0:o.rootService;Ee((function(){g()}),[]);var g=function(){var e,t,o=!1,n=!1;i(h.connectionDetails.channel===Oe.VOICE),!1===(null===(e=null==h?void 0:h.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(c(!0),n=!0),!1===(null===(t=null==h?void 0:h.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(u(!0),o=!0),n&&o&&i(!0)};return R("div",{className:"playbook-steps-repeat-data"},null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.stages.map((function(t,o){var n,s=((null==t?void 0:t.steps)||[]).every((function(e){return e.complete})),i=["close-playbook-data","aa-playbook-stage-".concat(o)];return"Close"===t.name&&i.push("aa-close-stage"),s||i.push("aa-hidden"),R(P,{key:o},0!=o&&R("div",{className:"".concat(i.join(" "))},R("span",null),R("p",null,t.name),R("span",null)),null===(n=null==t?void 0:t.steps)||void 0===n?void 0:n.map((function(n,i){var r,c,d,u=["playbook-step","aa-playbook-step-".concat(o,"-").concat(i," ")];return"Close"===t.name&&u.push("aa-close-steps"),(null==n?void 0:n.ongoing)&&u.push("playbook-step-ongoing"),"Close"!==t.name||s||u.push("aa-hidden"),R("button",{key:i,className:"".concat(u.join(" ")),id:"".concat(n._id)},R("div",{className:"heading-step aa-heading-step ".concat((null==n?void 0:n.ongoing)?"":"disabled-msg")},R("h1",{className:"aa-step-header-name ".concat(n.complete?"strike-text":"")},n.name),R("button",{className:"check-btn aa-step-complete-".concat(o,"-").concat(i," ").concat((null==n?void 0:n.ongoing)?"":"aa-hidden")},R("svg",{width:"10",height:"10",viewBox:"0 0 7 6",fill:"none"},R("path",{d:"M6.34755 0.999929C6.67364 1.32601 6.67365 1.85471 6.34756 2.1808L4.79202 3.73638L3.23648 5.29196C3.07989 5.44856 2.8675 5.53653 2.64604 5.53653C2.42458 5.53653 2.21219 5.44855 2.0556 5.29196L0.50005 3.73636C0.173967 3.41026 0.173975 2.88157 0.500069 2.55549C0.826161 2.2294 1.35485 2.22941 1.68094 2.55551L2.64605 3.52065L5.16668 0.999945C5.49276 0.673852 6.02146 0.673846 6.34755 0.999929Z",fill:"#D4D4D4"})))),R("div",{className:"step-text-send-block ".concat(n.ongoing?"":"aa-hidden")},R("div",{className:"step-actions-send-copy ".concat(0!==(null===(r=null==n?void 0:n.confirmButtons)||void 0===r?void 0:r.length)||a?"aa-hidden":"")},R("button",{className:"solidbtn aa-step-copy-btn ".concat(!p&&(null==n?void 0:n.isSendCopy)?"":"aa-hidden")},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9531_13889)"},R("path",{d:"M10.6663 10.6667V12.5333C10.6663 13.2801 10.6663 13.6534 10.521 13.9387C10.3932 14.1895 10.1892 14.3935 9.93833 14.5214C9.65311 14.6667 9.27974 14.6667 8.53301 14.6667H3.46634C2.7196 14.6667 2.34624 14.6667 2.06102 14.5214C1.81014 14.3935 1.60616 14.1895 1.47833 13.9387C1.33301 13.6534 1.33301 13.2801 1.33301 12.5333V7.46668C1.33301 6.71994 1.33301 6.34657 1.47833 6.06136C1.60616 5.81047 1.81014 5.6065 2.06102 5.47867C2.34624 5.33334 2.7196 5.33334 3.46634 5.33334H5.33301M7.46634 10.6667H12.533C13.2797 10.6667 13.6531 10.6667 13.9383 10.5214C14.1892 10.3935 14.3932 10.1895 14.521 9.93866C14.6663 9.65345 14.6663 9.28008 14.6663 8.53334V3.46668C14.6663 2.71994 14.6663 2.34657 14.521 2.06136C14.3932 1.81047 14.1892 1.6065 13.9383 1.47867C13.6531 1.33334 13.2797 1.33334 12.533 1.33334H7.46634C6.7196 1.33334 6.34624 1.33334 6.06102 1.47867C5.81014 1.6065 5.60616 1.81047 5.47833 2.06136C5.33301 2.34657 5.33301 2.71994 5.33301 3.46668V8.53334C5.33301 9.28008 5.33301 9.65345 5.47833 9.93866C5.60616 10.1895 5.81014 10.3935 6.06102 10.5214C6.34624 10.6667 6.7196 10.6667 7.46634 10.6667Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9531_13889"},R("rect",{width:"16",height:"16",fill:"white"}))))),R("button",{className:"solidbtn aa-step-send-btn ".concat(!l&&(null==n?void 0:n.isSendCopy)?"":"aa-hidden")},"Send")),R("p",null,n.description),R("div",{className:"border-bottom-pad ".concat((null===(c=null==n?void 0:n.confirmButtons)||void 0===c?void 0:c.length)>0?"":"aa-hidden")},R("div",{className:"bottom-data-info"},R("h1",null),R("div",{className:"right-info-data"},null===(d=null==n?void 0:n.confirmButtons)||void 0===d?void 0:d.map((function(t,o){var n,s={backgroundColor:null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.colors[t.color],color:t.color};return R("button",{className:"_btn primaryBtn aa-step-confirmation-btn-".concat(o),style:s},t.title)})))))))})))})))}function Qt(e){var t=e.hostInstance,o=_e({}),n=(o[0],o[1]),s=_e([]),a=s[0],i=s[1],r=t.rootService,l=function(e){var t,o=document.getElementsByClassName(e);for(t=0;t<o.length;t++){var n=o[t];n.classList.contains("show")&&n.classList.remove("show")}};Ee((function(){var e,o,n,s=null===(e=null==t?void 0:t.chatEle)||void 0===e?void 0:e.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER));(null==a?void 0:a.length)>0?null===(o=null==s?void 0:s.classList)||void 0===o||o.remove(Pe.HIDE_ELEMENT):null===(n=null==s?void 0:s.classList)||void 0===n||n.add(Pe.HIDE_ELEMENT),I(a)}),a),Ee((function(){var e=function(e){e&&p()},o=function(e){e&&e.checklistsIdentified&&(e.checklistsIdentified||[]).forEach((function(e){var t=e.checklistId||e.id||e._id;i((function(e){if(e.findIndex((function(e){return e._id===t}))<0&&r.dynClObjs[t])return N(r.dynClObjs[t],null==e?void 0:e.length),Ft(Ft([],e,!0),[JSON.parse(JSON.stringify(r.dynClObjs[t]))],!1);return e}))}))},s=function(e){n((function(o){return((null==e?void 0:e.checklistStepsIdentified)||[]).forEach((function(e){var n,s={},a={},i=o.checklists.findIndex((function(t){return t._id===e.id})),l=(o.checklists[i].stages||[]).findIndex((function(t){if(t._id===e.stageId)return s=t,!0})),c=(o.checklists[i].stages[l].steps||[]).findIndex((function(t){if(t._id===e.stepId)return a=t,!0}));if("Close"===s.name&&!r.isProceedToClose){var d=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN));v(!1,d)}w(o,s,a,i,l,c)})),o}))};return t.on(Ke.GET_CHECKLISTS,e),t.on(Ve.CHECKLIST_RESPONSE,o),t.on(Ve.CHECKLIST_STEP_RESPONSE,s),window.onclick=function(e){e.target.matches("aa-stage-drp-wrapper")||l("aa-stage-drp-wrapper"),e.target.matches("aa-checklist-drp-wrapper")||l("aa-checklist-drp-wrapper"),e.target.matches("aa-triggerList-drp-wrapper")||l("aa-triggerList-drp-wrapper")},c(),function(){t.off(Ke.GET_CHECKLISTS,e),t.off(Ve.CHECKLIST_RESPONSE,o),t.off(Ve.CHECKLIST_STEP_RESPONSE,s)}}),[]);var c=function(){t.on(je.CHECKLIST_OPEN,(function(e){d(Fe.checklist_opened,e,Ue.PLAYBOOK_OPENED_EVENT)})),t.on(je.CHECLIST_RESUME,(function(e){d(Fe.checklist_resume,e,Ue.PLAYBOOK_RESUME_EVENT)})),t.on(je.CHECKLIST_STEP_CLOSE,(function(e){d(Fe.checklist_step_closed,e,Ue.PLAYBOOK_STEP_CLOSED_EVENT)})),t.on(je.CHECKLIST_PROCEED_TO_CLOSE,(function(e){d(Fe.checklist_proceed_to_closed,e,Ue.PLAYBOOK_PROCEED_TO_CLOSE_EVENT)}))},d=function(e,o,n){t.socketConnection.emitEvents(e,o),t.emit(n,o)},p=function(){var e;(e=r.connectionDetails.botId,Dt("get_checklist",{method:"GET",headers:{"Content-Type":"application/json"}},t,{botId:e})).then((function(e){var t;if((null===(t=null==e?void 0:e.checklists)||void 0===t?void 0:t.length)>0){e.checklists=e.checklists.filter((function(e){return e.channels.includes(r.connectionDetails.channel)}));var o=e.checklists.filter((function(e){return"dynamic"===e.type})),s=e.checklists.filter((function(e){return"primary"===e.type}));n(e),u(e,s,o),r.dynClObjs=(o||[]).reduce((function(e,t){return e[t._id]=t,e}),{}),h(s,o)}})).catch((function(e){}))},u=function(e,o,n){var s,a,i,r,l,c=ne(Wt,{hostInstance:t,checklistData:e},t);t.emit(Ue.BEFORE_VIEW_INIT,c,{event:Ue.PLAYBOOK_HEADER_TEMPLATE,data:{checklists:e.checklists}}),null===(s=null==t?void 0:t.chatEle)||void 0===s||s.querySelector("#".concat(De.CHECKLIST_MAIN_TEMPLATE)).prepend(c);var d=null==c?void 0:c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN_WRAPPER)),p=null==c?void 0:c.querySelector("".concat(Pe.STAGE_DRP_WRAPPER)),u=null==c?void 0:c.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER));if((null==o?void 0:o.length)>0){var h=ne(Vt,{hostInstance:t,primaryChecklists:o,allChecklists:e.checklists},t);t.emit(Ue.BEFORE_VIEW_INIT,h,{event:Ue.PLAYBOOK_PRIMARYLIST_TEMPLATE,data:{checklists:e.checklists,primaryChecklist:o}}),null==c||c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN)).append(h)}if((null==n?void 0:n.length)>0){var g=ne(Kt,{hostInstance:t,dynamicChecklists:n,allChecklists:e.checklists},t);t.emit(Ue.BEFORE_VIEW_INIT,g,{event:Ue.PLAYBOOK_DYNAMICLIST_TEMPLATE,data:{checklists:e.checklists,dynamicChecklist:n}}),null==c||c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN)).append(g)}((null==o?void 0:o.length)||(null==n?void 0:n.length))&&(null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(Pe.HIDE_ELEMENT),null==e||e.checklists.map((function(o,n){var s,a="primary"===o.type?Pe.PRIMARY_CHECKLIST_BTN:Pe.DYNAMIC_CHECKLIST_BTN;null===(s=t.eventManager)||void 0===s||s.addEventListener("".concat(a).concat(n),"click",(function(){var t;null===(t=null==d?void 0:d.classList)||void 0===t||t.remove("show"),E(e,o)}),c)}))),null===(i=t.eventManager)||void 0===i||i.addEventListener(Pe.SELECTED_CHECKLIST_ARROW,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==d?void 0:d.classList)||void 0===e||e.toggle("show")}),d),null===(r=t.eventManager)||void 0===r||r.addEventListener(Pe.SELECTED_STAGE_ARROW,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==p?void 0:p.classList)||void 0===e||e.toggle("show")}),p),null===(l=t.eventManager)||void 0===l||l.addEventListener(Pe.TRIGGER_CHECKLIST_COUNT_BTN,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==u?void 0:u.classList)||void 0===e||e.toggle("show")}),c)},h=function(e,o){var n,s,a,i,l=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.CHECKLIST_HEADER));if((null==e?void 0:e.length)>0){var c=r.connectionDetails.channel;(null===(a=null===(s=e[0])||void 0===s?void 0:s.channels)||void 0===a?void 0:a.includes(c))&&(r.proceedToClose=!0,f(e[0]),g(l,!0,!0))}else if((null==o?void 0:o.length)>0){var d=null===(i=null==t?void 0:t.chatEle)||void 0===i?void 0:i.querySelector("#".concat(De.CHECKLIST_BODY_TEMPLATE)),p=ne(Yt,{hostInstance:t},t);d&&(t.emit(Ue.BEFORE_VIEW_INIT,p,{event:Ue.PLAYBOOK_EMPTY_TEMPLATE,data:{primaryClList:e,dynamicClist:o}}),d.append(p)),b(l,"Select Playbook",-1)}},g=function(e,o,n){var s,a=null==e?void 0:e.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN));o?null==a||a.classList.remove(Pe.HIDE_ELEMENT):null==a||a.classList.add(Pe.HIDE_ELEMENT),n&&(null===(s=t.eventManager)||void 0===s||s.addEventListener(Pe.PROCEEDTOCLOSE_BTN,"click",(function(e){v(!0,a)}),e))},v=function(e,o){var s,a,i,l,c;!function(e){void 0===e&&(e=!1);var o={stageId:"",id:""};n((function(n){if(n.checklists.forEach((function(e,s){var a;if("primary"===e.type){x(n.checklists,s),o.stageId=e.stages[1]._id,o.id=e._id,r.selCLInx=s,r.selStInx=1,r.isProceedToClose=!0,r.selectNextStep(n,s,1,t);var i=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.CHECKLIST_HEADER));b(i,e.name,s),A(i,null==e?void 0:e.stages,1),_(n,r.selCLInx),T()}})),e){var s=r.prepareChecklistPayload(Fe.checklist_proceed_to_closed,n,o);d(Fe.checklist_proceed_to_closed,s,Ue.PLAYBOOK_PROCEED_TO_CLOSE_EVENT)}return n}))}(e),o.classList.add(Pe.HIDE_ELEMENT),null===(i=null===(a=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector(Pe.CHECKLIST_CLOSE_STAGE))||void 0===a?void 0:a.classList)||void 0===i||i.remove(Pe.HIDE_ELEMENT),null===(c=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelectorAll(Pe.CHECKLIST_CLOSE_STEPS))||void 0===c||c.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove(Pe.HIDE_ELEMENT)}))},f=function(e){n((function(t){var o,n=null===(o=null==t?void 0:t.checklists)||void 0===o?void 0:o.findIndex((function(t){return t._id==e._id}));if(n>=0){if(m(t,n),_(t,n),!t.checklists[n].openedChecklist){t.checklists[n].openedChecklist=!0;var s=r.prepareChecklistPayload(Fe.checklist_opened,t,{id:e._id});d(Fe.checklist_opened,s,Ue.PLAYBOOK_OPENED_EVENT)}T()}return t}))},m=function(e,o){var n,s,a,i,l,c,d=e.checklists,p=(null===(s=null===(n=d[o])||void 0===n?void 0:n.stages)||void 0===s?void 0:s.length)?0:-1;if(r.selCLInx=o,r.selStInx=p,null===(i=null===(a=d[o])||void 0===a?void 0:a.stages[p])||void 0===i?void 0:i.steps[0]){d[o].stages[p].steps[0].ongoing=!0,r.selSpInx=0;var u=d[o].stages[p].steps[0]._id;r.scrollView(u,t)}var h=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelector("".concat(Pe.CHECKLIST_HEADER));b(h,d[o].name,o),A(h,null===(c=d[o])||void 0===c?void 0:c.stages,p)},b=function(e,t,o){var n,s,a=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_CHECKLIST));a&&(a.innerText=t),null===(s=null===(n=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(o)))||void 0===n?void 0:n.classList)||void 0===s||s.remove(Pe.HIDE_ELEMENT)},_=function(e,o){var n,s,a,i=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("#".concat(De.CHECKLIST_STEP_TEMPLATE)),r=ne(zt,{hostInstance:t,stages:null===(s=e.checklists[o])||void 0===s?void 0:s.stages,colors:Me},t);i&&(i.innerHTML="",t.emit(Ue.BEFORE_VIEW_INIT,r,{event:Ue.PLAYBOOK_BODY_TEMPLATE,data:{stages:null===(a=e.checklists[o])||void 0===a?void 0:a.stages,colors:Me}}),i.append(r)),r&&k(r,e,o)},E=function(e,t){var o=e.checklists.findIndex((function(e){return e._id==t._id}));e.checklists[o]&&y(o)},y=function(e){n((function(o){var n=o.checklists;return x(n,e),n[e].openedChecklist?n[e].name!=n[r.selCLInx].name&&(r.selCLInx=e,r.selStInx=0,C(o,e,0),r.selectNextStage(o,e,0,t),T()):f(n[e]),function(){var e,o,n,s=null===(e=null==t?void 0:t.chatEle)||void 0===e?void 0:e.querySelector("".concat(Pe.CHECKLIST_EMPTY));(null===(o=null==s?void 0:s.classList)||void 0===o?void 0:o.contains(Pe.HIDE_ELEMENT))||null===(n=null==s?void 0:s.classList)||void 0===n||n.add(Pe.HIDE_ELEMENT)}(),o}))},x=function(e,o){var n,s,a,i,l,c,d,p,u,h,g,v,f=r.selCLInx;o!=f&&!(null===(n=e[f])||void 0===n?void 0:n.completed)&&(null===(s=e[f])||void 0===s?void 0:s.openedChecklist)?(null===(i=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.CHECKLIST_EACH_RESUME).concat(f)))||void 0===i||i.classList.remove(Pe.HIDE_ELEMENT),null===(c=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(f)))||void 0===c||c.classList.add(Pe.HIDE_ELEMENT)):o!=f&&(null===(d=e[f])||void 0===d?void 0:d.completed)&&(null===(u=null===(p=null==t?void 0:t.chatEle)||void 0===p?void 0:p.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(f)))||void 0===u||u.classList.add(Pe.HIDE_ELEMENT));var m=null===(h=null==t?void 0:t.chatEle)||void 0===h?void 0:h.querySelector("".concat(Pe.CHECKLIST_EACH_RESUME).concat(o));(null===(g=null==m?void 0:m.classList)||void 0===g?void 0:g.contains(Pe.HIDE_ELEMENT))||null===(v=null==m?void 0:m.classList)||void 0===v||v.add(Pe.HIDE_ELEMENT)},C=function(e,o,n){var s,a;r.isProceedToClose=!1;var i=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.CHECKLIST_HEADER));b(i,e.checklists[o].name,o),A(i,null===(a=e.checklists[o])||void 0===a?void 0:a.stages,n),_(e,o);var l=e.checklists[o];r.showProceedToCloseBtn(t);var c=r.prepareChecklistPayload(Fe.checklist_resume,e,{id:l._id});d(Fe.checklist_resume,c,Ue.PLAYBOOK_RESUME_EVENT)},A=function(e,o,s){var a,i,l,c=o[s].name,d=null==e?void 0:e.querySelector("".concat(Pe.STAGE_DRP_WRAPPER_MAIN)),p=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_STAGE)),u=null==e?void 0:e.querySelector("".concat(Pe.STAGE_DROPDOWN));null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(Pe.HIDE_ELEMENT),p&&(p.innerText=c);var h=ne(Ut,{hostInstance:t,stageList:o,selectedStInx:s,isProceedToClose:r.isProceedToClose},t);h&&(u.innerHTML="",t.emit(Ue.BEFORE_VIEW_INIT,h,{event:Ue.PLAYBOOK_STAGE_DROPDOWN_TEMPLATE,data:{stageList:o,selectedStInx:s,isProceedToClose:r.isProceedToClose}}),u.append(h));var g=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_STAGE_ARROW));g&&((null==o?void 0:o.length)<=1?g.classList.add(Pe.HIDE_ELEMENT):g.classList.remove(Pe.HIDE_ELEMENT)),r.isProceedToClose&&(null===(l=null===(i=h.querySelector("".concat(Pe.CHECKLIST_CLOSE_STAGE_BTN)))||void 0===i?void 0:i.classList)||void 0===l||l.remove(Pe.CHECKLIST_DISABLE_MSG)),null==o||o.map((function(e,n){var s;null===(s=t.eventManager)||void 0===s||s.addEventListener("".concat(Pe.CHECKLIST_EACH_STAGE_DRP_ITEM).concat(n),"click",(function(){r.selStInx=n,T(),S(h,n,o)}),h)})),n((function(e){var o,n=e.checklists;return"primary"==(null===(o=n[r.selCLInx])||void 0===o?void 0:o.type)&&"Close"==n[r.selCLInx].stages[r.selStInx].name||(r.isProceedToClose=!1,r.showProceedToCloseBtn(t)),e}))},S=function(e,o,s){r.handleStageCheck(e,o,s,t),n((function(e){return r.selectStage(e,r.selCLInx,o,t),e}))},k=function(e,o,s){var a,i;null===(i=null===(a=o.checklists[s])||void 0===a?void 0:a.stages)||void 0===i||i.map((function(a,i){var l;null===(l=null==a?void 0:a.steps)||void 0===l||l.map((function(l,c){var d,p,u,h,g,v=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_EACH_STEP).concat(i,"-").concat(c));null===(d=t.eventManager)||void 0===d||d.addEventListener("".concat(Pe.CHECKLIST_EACH_STEP).concat(i,"-").concat(c),"click",(function(e){l.complete||n((function(e){return r.clickStep(e,i,l,c,t),e}))}),e),null===(p=t.eventManager)||void 0===p||p.addEventListener("".concat(Pe.CHECKLIST_STEP_COMPLETE_BTN).concat(i,"-").concat(c),"click",(function(e){e.stopPropagation(),l.complete||n((function(e){return w(e,a,l,s,i,c),e}))}),e),null===(u=t.eventManager)||void 0===u||u.addEventListener(Pe.CHECKLIST_STEP_COPY_BTN,"click",(function(){r.sendAndCopyForPlaybook(Oe.COPY_METHOD,l.description,v,t),w(o,a,l,s,i,c)}),v),null===(h=t.eventManager)||void 0===h||h.addEventListener(Pe.CHECKLIST_STEP_SEND_BTN,"click",(function(){r.sendAndCopyForPlaybook(Oe.SEND_METHOD,l.description,v,t),w(o,a,l,s,i,c)}),v),null===(g=l.confirmButtons)||void 0===g||g.map((function(e,n){var d;null===(d=t.eventManager)||void 0===d||d.addEventListener("".concat(Pe.CHECKLIST_STEP_CONFIRMATION_BTN).concat(n),"click",(function(){w(o,a,l,s,i,c),r.confirmationBtnForPlaybook(e,v,t)}),v)}))}))}))},T=function(){n((function(e){var o,n,s,a,i=null===(s=null===(n=null===(o=e.checklists[r.selCLInx])||void 0===o?void 0:o.stages[r.selStInx])||void 0===n?void 0:n.steps)||void 0===s?void 0:s.length,l=r.getNumberstepCompInStage(e),c=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.STEP_COMPLETE_COUNT));return c&&(c.classList.remove(Pe.HIDE_ELEMENT),c.innerText=l+"/"+i),e}))},w=function(e,o,s,a,i,l){var c=e.checklists[a]._id,p=o._id,u=s._id;s.ongoing=!1,s.complete=!0;var h=r.prepareChecklistPayload(Fe.checklist_step_closed,e,{id:c,stageId:p,stepId:u,adheredBy:"manual"},!0);d(Fe.checklist_step_closed,h,Ue.PLAYBOOK_STEP_CLOSED_EVENT),n((function(e){return T(),r.selectNextStage(e,a,i,t),r.checkAllStagesCompleted(e,c,t),e}))},I=function(e){var o,n=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector("".concat(Pe.TRIGGER_CHECKLIST_BULB_COUNT));n&&(n.innerText=null==e?void 0:e.length)},N=function(e,o){var s,a,i=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.TRIGGET_CHECKLIST_DROPDOWN)),r=ne(jt,{hostInstance:t,checklist:e},t);r&&i&&(t.emit(Ue.BEFORE_VIEW_INIT,r,{event:Ue.PLAYBOOK_TRIGGERED_LIST_TEMPLATE,data:{checklist:e}}),i.append(r),null===(a=t.eventManager)||void 0===a||a.addEventListener("".concat(Pe.TRIGGER_CHECKLIST_BTN).concat(null==e?void 0:e._id),"click",(function(){n((function(t){return O(t,e,o),t}))}),i))},O=function(e,t,o){i((function(e){return L(e[o],o),e.slice(0,o).concat(e.slice(o+1))}));var n=e.checklists.findIndex((function(e){return e._id==t._id}));e.checklists[n]&&y(n)},L=function(e,o){var n,s,a,i=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.TRIGGET_CHECKLIST_DROPDOWN)),r=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER)),l=i.querySelector("".concat(Pe.TRIGGER_CHECKLIST_BTN).concat(e._id));l&&(null==l||l.remove(),null===(a=null==r?void 0:r.classList)||void 0===a||a.toggle("show"))};return R("div",{className:"playbook-wrapper-template"},R("div",{className:"playbook-template-data",id:"checkListMainTemplate"},R("div",{className:"playbook-wrapper-body",id:"checkListBodyTemplate"},R("div",{className:"playbook-steps-info",id:"checklistStepTemplate"}))))}var Zt=o(144),Xt={};Xt.styleTagTransform=f(),Xt.setAttributes=u(),Xt.insert=d().bind(null,"head"),Xt.domAPI=l(),Xt.insertStyleElement=g();i()(Zt.A,Xt);Zt.A&&Zt.A.locals&&Zt.A.locals;var Jt=function(e){return R("div",{className:"widget-header-sec"},R("div",{className:"logo-sec"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"right-chart-data"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0,id:"aa-proactiveBtn"}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"})),R("div",{class:"aa-text-xs"},"Proactive Mode")))))};function $t(e){e.hostInstance.rootService;return R("div",null,R("h1",null," MyBot "))}var eo=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function to(e){return R("div",{id:"aa-loader-main",className:"loader-progress-main"},R("div",{className:"loading-border"}))}function oo(e){var t=_e(!0),o=t[0],n=t[1],s=_e(!1),a=s[0],i=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),p=d[0],u=d[1],h=_e(!1),g=h[0],v=h[1],f=_e("light"),m=f[0],b=f[1],_=_e([]),E=_[0],y=_[1],x=_e([]),C=(x[0],x[1]),A=_e(!1),S=(A[0],A[1]),k=_e(""),T=(k[0],k[1]),w=[],I=[],N=[{type:"srch",title:"Search"},{type:"mB",title:"My Bot"},{type:"ast",title:"Assist"},{type:"trnspt",title:"Transcript"},{type:"cl",title:"PlayBook"}],O=e.connectionDetails,L=Re,M=e.hostInstance,P=M.rootService,D=Pe,B=De,H=D.SDK_MAIN_WRAPPER;Ee((function(){ee(),te(),M.on("updateActiveTab",(function(e){oe(e.activeTab,e.footerTag)}));M.on("AGENT_COACHING_RESPONSES",(function(e){return W(e)})),M.on("END_OF_CONVERSATION",q);M.on("RESOLUTION_COMMENTS_RESPONSE",(function(e){return F(e)}))}),[]);var G=function(){b("light"===m?"dark":"light")},q=function(){var e,t,o,n,s,a,i,r,l,c,d={conversationId:null===(t=null===(e=null==M?void 0:M.rootService)||void 0===e?void 0:e.connectionDetails)||void 0===t?void 0:t.conversationId,userId:(null===(n=null===(o=null==M?void 0:M.rootService)||void 0===o?void 0:o.connectionDetails)||void 0===n?void 0:n.userId)||"",botId:null===(a=null===(s=null==M?void 0:M.rootService)||void 0===s?void 0:s.connectionDetails)||void 0===a?void 0:a.botId,sessionId:qe(),chatHistory:null===(r=null===(i=null==M?void 0:M.rootService)||void 0===i?void 0:i.connectionDetails)||void 0===r?void 0:r.chatHistory};(null===(c=null===(l=null==M?void 0:M.rootService)||void 0===l?void 0:l.connectionDetails)||void 0===c?void 0:c.summaryEnabled)&&M.socketConnection.emitEvents(Fe.request_resolution_comments,d),M.socketConnection.emitEvents(Fe.end_of_conversation,d)},F=function(e){var t,o,n,s;S(!0);var a=e.summary[0]||"";T(a),M.socketConnection.emitEvents(Fe.response_resolution_comments_ack,e,!0);var i=ne(U,e,M),r=document.getElementsByClassName(B.SUMMARY_OVERLAY_BLOCK)[0];null==r||r.append(i),null===(t=M.eventManager)||void 0===t||t.addEventListener(".aa-delete-summary-text","click",(function(){Y()}),i),null===(o=M.eventManager)||void 0===o||o.addEventListener(".aa-summit-summary-text","click",(function(){V()}),i),null===(n=M.eventManager)||void 0===n||n.addEventListener(".aa-copy-summary-text","click",(function(){K()}),i),null===(s=M.eventManager)||void 0===s||s.addEventListener(".aa-close-summary-text","click",(function(){j()}),i),M.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.CONVERSATION_SUMMARY_TEMPLATE,respData:e})},U=function(e){var t=e.msgData;return R("div",{className:"summery-wrapper-container"},R("div",{className:"summery-popup-data",id:"aa-conv-summary"},R("div",{className:"title-block"},R("h1",null,"Summary"),R("div",{className:"ai-block"},R("div",null,R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"}))),R("span",null,"Suggested"),R("button",{type:"button",className:"close-summery aa-close-summary-text"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))),R("div",{className:"input-block"},R("textarea",{className:"input-control",id:"summaryText",placeholder:"Type Summary...",rows:4,cols:50,value:null==t?void 0:t.summary[0],onChange:function(e){return T(e.target.value)}}),R("button",{className:"recylin-bin-btn aa-delete-summary-text"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M13.3333 4.99996V4.33329C13.3333 3.39987 13.3333 2.93316 13.1517 2.57664C12.9919 2.26304 12.7369 2.00807 12.4233 1.84828C12.0668 1.66663 11.6001 1.66663 10.6667 1.66663H9.33333C8.39991 1.66663 7.9332 1.66663 7.57668 1.84828C7.26308 2.00807 7.00811 2.26304 6.84832 2.57664C6.66667 2.93316 6.66667 3.39987 6.66667 4.33329V4.99996M8.33333 9.58329V13.75M11.6667 9.58329V13.75M2.5 4.99996H17.5M15.8333 4.99996V14.3333C15.8333 15.7334 15.8333 16.4335 15.5608 16.9683C15.3212 17.4387 14.9387 17.8211 14.4683 18.0608C13.9335 18.3333 13.2335 18.3333 11.8333 18.3333H8.16667C6.76654 18.3333 6.06647 18.3333 5.53169 18.0608C5.06129 17.8211 4.67883 17.4387 4.43915 16.9683C4.16667 16.4335 4.16667 15.7334 4.16667 14.3333V4.99996",stroke:"#D92D20","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"actions-footer"},R("div",{className:"footer-btns-left-sec"},R("button",{className:"aa_btn primaryBtn aa-summit-summary-text",id:"summarySubmit"},"Submit"),R("button",{className:"aa_btn aa-solidbtn aa-copy-summary-text",id:"summaryCopy"},"Copy")))))},V=function(){var e,t,o,n=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"",s={conversationId:null===(t=M.rootService.connectionDetails)||void 0===t?void 0:t.conversationId,botId:null===(o=M.rootService.connectionDetails)||void 0===o?void 0:o.botId,summary:[{summary_text:n}]};M.socketConnection.emitEvents(Fe.submit_summary_request,s),j()},K=function(){var e,t=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"";navigator.clipboard.writeText(t).then((function(){})).catch((function(e){}))},j=function(){var e,t=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"";M.emit(Ke.CONVERSATION_SUMMARY_IN_ASSIST,t);var o=document.querySelector("."+B.SUMMARY_OVERLAY_BLOCK),n=document.querySelector(".summery-wrapper-container");o&&n&&o.removeChild(n)},Y=function(){T(""),document.getElementById("summaryText").value=""},W=function(e){"nudge"===(null==e?void 0:e.action)?z(e):"hint"===(null==e?void 0:e.action)&&X(e)},z=function(e){var t,o=e.actionId;I.unshift(e),C((function(t){return eo([e],t,!0)}));var n=ne(Q,e,M),s=document.getElementsByClassName(Pe.NUDGE_TEMPLATE)[0];setTimeout((function(){var e=I.findIndex((function(e){return e.actionId===o}));if(e>=0){var t=document.getElementById("".concat(o));t&&(t.remove(),E.splice(e,1),Z(o),C((function(e){return e.filter((function(e){return e.actionId!==o}))})))}}),7e3),null===(t=M.eventManager)||void 0===t||t.addEventListener(".".concat(Pe.NUDGE_CLOSE),"click",(function(){Z(o)}),n),M.emit(Ue.BEFORE_VIEW_INIT,n,{event:Ue.NUDGE_TEMPLATE,NudgeObject:e}),s.append(n)},Q=function(e){var t,o,n,s=e.msgData;return R("div",{class:"nudges-card ".concat(null===(t=Le.NUDGE_DATA[null==s?void 0:s.expression])||void 0===t?void 0:t.className),id:"".concat(null==s?void 0:s.actionId)},(null===(o=Le.NUDGE_DATA[null==s?void 0:s.expression])||void 0===o?void 0:o.icon)&&R("div",{class:"icon_block"},"neutral"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M2.55371 8.35C2.55371 7.7701 3.02381 7.3 3.60371 7.3C4.18361 7.3 4.65371 7.7701 4.65371 8.35V12.55C4.65371 13.1299 4.18361 13.6 3.60371 13.6C3.02381 13.6 2.55371 13.1299 2.55371 12.55V8.35Z",fill:"white"}),R("path",{d:"M5.35371 8.23334V12.0348C5.35371 12.565 5.65331 13.0498 6.12761 13.287L6.1625 13.3044C6.5513 13.4988 6.98002 13.6 7.4147 13.6H11.206C11.8733 13.6 12.4479 13.129 12.5788 12.4746L13.4188 8.27457C13.5921 7.40826 12.9295 6.6 12.046 6.6H9.55371V3.8C9.55371 3.0268 8.92691 2.4 8.15371 2.4C7.76711 2.4 7.45371 2.7134 7.45371 3.1V3.56667C7.45371 4.1725 7.25721 4.762 6.89371 5.24667L5.91371 6.55334C5.55021 7.038 5.35371 7.6275 5.35371 8.23334Z",fill:"white"})),"alert"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.71312 3.61289C7.27776 2.60908 8.72302 2.60908 9.28766 3.61289L13.4086 10.9389C13.9624 11.9235 13.2509 13.14 12.1213 13.14H3.87949C2.74988 13.14 2.03841 11.9235 2.59222 10.9389L6.71312 3.61289ZM8.7388 10.9246C8.7388 11.3325 8.40817 11.6631 8.00033 11.6631C7.59248 11.6631 7.26185 11.3325 7.26185 10.9246C7.26185 10.5168 7.59248 10.1862 8.00033 10.1862C8.40817 10.1862 8.7388 10.5168 8.7388 10.9246ZM8.00033 5.01685C7.59248 5.01685 7.26185 5.34748 7.26185 5.75533V7.97075C7.26185 8.37859 7.59248 8.70922 8.00033 8.70922C8.40817 8.70922 8.7388 8.37859 8.7388 7.97075V5.75533C8.7388 5.34748 8.40817 5.01685 8.00033 5.01685Z",fill:"white"})),"critical"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M7.29961 3.1C7.29961 2.7134 7.61301 2.4 7.99961 2.4C8.38621 2.4 8.69961 2.7134 8.69961 3.1V6.95C8.69961 7.1433 8.85631 7.3 9.04961 7.3C9.24291 7.3 9.39961 7.1433 9.39961 6.95V3.8C9.39961 3.4134 9.71301 3.1 10.0996 3.1C10.4862 3.1 10.7996 3.4134 10.7996 3.8V6.95C10.7996 7.1433 10.9563 7.3 11.1496 7.3C11.3429 7.3 11.4996 7.1433 11.4996 6.95V5.2C11.4996 4.8134 11.813 4.5 12.1996 4.5C12.5862 4.5 12.8996 4.8134 12.8996 5.2V8.7C12.8996 11.4062 10.7058 13.6 7.99961 13.6C5.29341 13.6 3.09961 11.4062 3.09961 8.7V7.3C3.09961 6.9134 3.41301 6.6 3.79961 6.6C4.18621 6.6 4.49961 6.9134 4.49961 7.3V9.05C4.49961 9.2433 4.65631 9.4 4.84961 9.4C5.04291 9.4 5.19961 9.2433 5.19961 9.05V3.8C5.19961 3.4134 5.51301 3.1 5.89961 3.1C6.28621 3.1 6.59961 3.4134 6.59961 3.8V6.95C6.59961 7.1433 6.75631 7.3 6.94961 7.3C7.14291 7.3 7.29961 7.1433 7.29961 6.95V3.1Z",fill:"white"})),"positive"===(null==s?void 0:s.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"}))),R("p",null,null===(n=null==s?void 0:s.message)||void 0===n?void 0:n.title),R("button",{className:"close-nudge aa-close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}))))},Z=function(e){var t=I.findIndex((function(t){return t.actionId===e}));if(t>=0){var o=document.getElementById("".concat(e));o&&(o.remove(),I.splice(t,1),C((function(t){return t.filter((function(t){return t.actionId!==e}))})))}},X=function(e){var t,o,n,s,a=e.actionId;w.unshift(e),y((function(t){return eo([e],t,!0)}));var i=ne(J,e,M),r=document.getElementsByClassName(Pe.HINT_TEMPLATE)[0];"doesnot_auto_close"!==(null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.postAction)&&setTimeout((function(){var e=w.findIndex((function(e){return e.actionId===a}));if(e>=0){var t=document.getElementById("".concat(a));t&&(t.remove(),w.splice(e,1),y((function(e){return e.filter((function(e){return e.actionId!==a}))})))}}),1e3*((null===(o=e.message)||void 0===o?void 0:o.time)<900?null===(n=e.message)||void 0===n?void 0:n.time:900)),null===(s=M.eventManager)||void 0===s||s.addEventListener(".".concat(Pe.HINT_CLOSE),"click",(function(){$(a)}),i),M.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.HINT_TEMPLATE,hintObject:e}),r.append(i)},J=function(e){var t,o,n,s,a,i=e.msgData;return R("div",{className:"hint-card ".concat(null===(t=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===t?void 0:t.className),style:{border:null===(o=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===o?void 0:o.color},id:"".concat(i.actionId)},R("div",{className:"top-card-info"},(null===(n=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===n?void 0:n.icon)&&R("div",{className:"icon_block"},"positive"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"})),"neutral"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2008 6.00005C10.2008 8.31964 8.32038 10.2 6.00078 10.2C3.68119 10.2 1.80078 8.31964 1.80078 6.00005C1.80078 3.68045 3.68119 1.80005 6.00078 1.80005C8.32038 1.80005 10.2008 3.68045 10.2008 6.00005ZM6.52578 8.10005C6.52578 8.39 6.29073 8.62505 6.00078 8.62505C5.71083 8.62505 5.47578 8.39 5.47578 8.10005C5.47578 7.8101 5.71083 7.57505 6.00078 7.57505C6.29073 7.57505 6.52578 7.8101 6.52578 8.10005ZM6.00078 3.37505C5.71083 3.37505 5.47578 3.6101 5.47578 3.90005V6.00005C5.47578 6.29 5.71083 6.52505 6.00078 6.52505C6.29073 6.52505 6.52578 6.29 6.52578 6.00005V3.90005C6.52578 3.6101 6.29073 3.37505 6.00078 3.37505Z",fill:"#667085"})),"alert"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.40714 0.834185C6.14848 0.719172 5.8532 0.719172 5.59454 0.834185C5.39478 0.923011 5.26501 1.07947 5.17471 1.20696C5.08593 1.3323 4.99087 1.49651 4.88634 1.67711L0.75276 8.81693C0.647804 8.99818 0.552428 9.16289 0.487757 9.30268C0.422033 9.44475 0.35073 9.63572 0.373455 9.85369C0.40286 10.1357 0.550631 10.392 0.779988 10.5588C0.957236 10.6877 1.15823 10.7217 1.31411 10.736C1.46749 10.75 1.65782 10.75 1.86726 10.75H10.1344C10.3438 10.75 10.5342 10.75 10.6876 10.736C10.8434 10.7217 11.0444 10.6877 11.2217 10.5588C11.451 10.392 11.5988 10.1357 11.6282 9.85369C11.651 9.63572 11.5796 9.44475 11.5139 9.30268C11.4493 9.1629 11.3539 8.9982 11.2489 8.81697L7.11533 1.67709C7.0108 1.49651 6.91575 1.3323 6.82697 1.20696C6.73667 1.07947 6.6069 0.923011 6.40714 0.834185ZM6.50085 4.5C6.50085 4.22386 6.277 4 6.00085 4C5.72471 4 5.50085 4.22386 5.50085 4.5V6.5C5.50085 6.77614 5.72471 7 6.00085 7C6.277 7 6.50085 6.77614 6.50085 6.5V4.5ZM6.00085 8C5.72471 8 5.50085 8.22386 5.50085 8.5C5.50085 8.77614 5.72471 9 6.00085 9H6.00585C6.282 9 6.50585 8.77614 6.50585 8.5C6.50585 8.22386 6.282 8 6.00585 8H6.00085Z",fill:"#F79009"})),"critical"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M3.45 5.72222V7.11111M3.45 5.72222V2.38889C3.45 1.92865 3.83056 1.55556 4.3 1.55556C4.76944 1.55556 5.15 1.92865 5.15 2.38889M3.45 5.72222C3.45 5.26198 3.06944 4.88889 2.6 4.88889C2.13056 4.88889 1.75 5.26198 1.75 5.72222V6.83333C1.75 9.13452 3.65279 11 6 11C8.34721 11 10.25 9.13452 10.25 6.83333V4.05556C10.25 3.59532 9.86944 3.22222 9.4 3.22222C8.93056 3.22222 8.55 3.59532 8.55 4.05556M5.15 2.38889V5.44444M5.15 2.38889V1.83333C5.15 1.3731 5.53056 1 6 1C6.46944 1 6.85 1.3731 6.85 1.83333V2.38889M6.85 2.38889V5.44444M6.85 2.38889C6.85 1.92865 7.23056 1.55556 7.7 1.55556C8.16944 1.55556 8.55 1.92865 8.55 2.38889V4.05556M8.55 4.05556V5.44444",stroke:"#F04438","stroke-linecap":"round","stroke-linejoin":"round"}))),R("h1",null,i.message.title),R("button",{className:"close-hint aa-close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},R("p",null,i.message.body)),R("div",{className:"footer-hint"},"ack"===(null===(s=i.adherence)||void 0===s?void 0:s.adType)&&R("button",null,null===(a=i.adherence)||void 0===a?void 0:a.ackText)))},$=function(e){var t=w.findIndex((function(t){return t.actionId===e}));if(t>=0){var o=document.getElementById("".concat(e));o&&(o.remove(),w.splice(t,1),y((function(t){return t.filter((function(t){return t.actionId!==e}))})))}},ee=function(){var e,t;t=ne(Jt,{},M);var o=M.chatEle.querySelector(D.HEADER);o&&t&&(M.emit(Ue.BEFORE_VIEW_INIT,t,{event:Ue.HEADER_TEMPLATE,data:{}}),o.append(t),null===(e=null==M?void 0:M.eventManager)||void 0===e||e.addEventListener("#".concat(B.PROACTIVE_BTN),"click",(function(e){null==M||M.emit(Ve.PRO_ACTIVE_CHANGE,e.target.checked),null==M||M.handleOverrideMode(!e.target.checked)}),t))},te=function(){var e;e=ne(Ge,{tabsNTitles:N,selectedTab:L.ast,showTranscript:M.rootService.connectionDetails.channel===Oe.VOICE,connectionDetails:O,sourceDesktop:"SomeSource",hideUserBotHistory:false,projConstants:Ie,selectedTheme:m,chooseTheme:G,hostInstance:M},M);var t=M.chatEle.querySelector(D.FOOTER);t&&(M.emit(Ue.BEFORE_VIEW_INIT,e,{event:Ue.FOOTER_TEMPLATE,data:{tabsNTitles:N,footerTag:t}}),t.append(e),N.forEach((function(e){var o;null===(o=M.eventManager)||void 0===o||o.addEventListener("".concat(D.FOOTER_BTN).concat(e.type),"click",(function(){oe(e.type,t)}),t)})))},oe=function(e,t){se(e),N.forEach((function(o){var n,s,a=t.querySelector("".concat(D.FOOTER_BTN).concat(o.type));o.type===e?null===(n=null==a?void 0:a.classList)||void 0===n||n.add.apply(n,["selected-tab","sel-bg"]):null===(s=null==a?void 0:a.classList)||void 0===s||s.remove.apply(s,["selected-tab","sel-bg"])}))},se=function(e,t){switch(void 0===t&&(t=!0),P.activeTab=Re[e],t&&(n(!1),i(!1),c(!1),u(!1)),e){case"ast":default:n(!0);break;case"srch":c(!0);break;case"mB":i(!0);break;case"trnspt":u(!0);break;case"cl":v(!0)}};return R("div",{className:H,"aria-label":"agent-window-section"},R("section",{className:"section-agent-aa-wrapper"},R("header",{className:"aa-header"}),R("section",{className:"body-container-aa"},R("div",{className:o?"animate-compo-slide-up-wrapper":"aa-hidden"},R(At,{hostInstance:M})),R("div",{className:l?"animate-compo-slide-up-wrapper":"aa-hidden"},R(It,{hostInstance:M})),R("div",{className:p?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Ht,{hostInstance:M})),R("div",{className:a?"animate-compo-slide-up-wrapper":"aa-hidden"},R($t,{hostInstance:M})),R("div",{className:g?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Qt,{hostInstance:M}))),R("footer",{className:"aa-footer"}),R("div",{className:"nudges-wrapper-fixed "},R("div",{className:"nudges-template-data aa-nudges-template-data"})),R("div",{className:"hints-wrapper-fixed "},R("div",{className:"hints-template-data aa-hints-template-data"}))))}const no=Object.create(null);no.open="0",no.close="1",no.ping="2",no.pong="3",no.message="4",no.upgrade="5",no.noop="6";const so=Object.create(null);Object.keys(no).forEach((e=>{so[no[e]]=e}));const ao={type:"error",data:"parser error"},io="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ro="function"==typeof ArrayBuffer,lo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,co=({type:e,data:t},o,n)=>io&&t instanceof Blob?o?n(t):po(t,n):ro&&(t instanceof ArrayBuffer||lo(t))?o?n(t):po(new Blob([t]),n):n(no[e]+(t||"")),po=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+(e||""))},o.readAsDataURL(e)};function uo(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ho;const go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vo="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)vo[go.charCodeAt(e)]=e;const fo="function"==typeof ArrayBuffer,mo=(e,t)=>{if("string"!=typeof e)return{type:"message",data:_o(e,t)};const o=e.charAt(0);if("b"===o)return{type:"message",data:bo(e.substring(1),t)};return so[o]?e.length>1?{type:so[o],data:e.substring(1)}:{type:so[o]}:ao},bo=(e,t)=>{if(fo){const o=(e=>{let t,o,n,s,a,i=.75*e.length,r=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);const c=new ArrayBuffer(i),d=new Uint8Array(c);for(t=0;t<r;t+=4)o=vo[e.charCodeAt(t)],n=vo[e.charCodeAt(t+1)],s=vo[e.charCodeAt(t+2)],a=vo[e.charCodeAt(t+3)],d[l++]=o<<2|n>>4,d[l++]=(15&n)<<4|s>>2,d[l++]=(3&s)<<6|63&a;return c})(e);return _o(o,t)}return{base64:!0,data:e}},_o=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Eo=String.fromCharCode(30);function yo(){return new TransformStream({transform(e,t){!function(e,t){io&&e.data instanceof Blob?e.data.arrayBuffer().then(uo).then(t):ro&&(e.data instanceof ArrayBuffer||lo(e.data))?t(uo(e.data)):co(e,!1,(e=>{ho||(ho=new TextEncoder),t(ho.encode(e))}))}(e,(o=>{const n=o.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(o)}))}})}let xo;function Co(e){return e.reduce(((e,t)=>e+t.length),0)}function Ao(e,t){if(e[0].length===t)return e.shift();const o=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)o[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),o}function So(e){if(e)return function(e){for(var t in So.prototype)e[t]=So.prototype[t];return e}(e)}So.prototype.on=So.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},So.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},So.prototype.off=So.prototype.removeListener=So.prototype.removeAllListeners=So.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<n.length;s++)if((o=n[s])===t||o.fn===t){n.splice(s,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},So.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),o=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(o){n=0;for(var s=(o=o.slice(0)).length;n<s;++n)o[n].apply(this,t)}return this},So.prototype.emitReserved=So.prototype.emit,So.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},So.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ko="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function To(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})}const wo=ko.setTimeout,Io=ko.clearTimeout;function No(e,t){t.useNativeTimers?(e.setTimeoutFn=wo.bind(ko),e.clearTimeoutFn=Io.bind(ko)):(e.setTimeoutFn=ko.setTimeout.bind(ko),e.clearTimeoutFn=ko.clearTimeout.bind(ko))}class Oo extends Error{constructor(e,t,o){super(e),this.description=t,this.context=o,this.type="TransportError"}}class Lo extends So{constructor(e){super(),this.writable=!1,No(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,o){return super.emitReserved("error",new Oo(e,t,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=mo(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t}(e);return t.length?"?"+t:""}}const Ro="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Mo=64,Po={};let Do,Bo=0,Ho=0;function Go(e){let t="";do{t=Ro[e%Mo]+t,e=Math.floor(e/Mo)}while(e>0);return t}function qo(){const e=Go(+new Date);return e!==Do?(Bo=0,Do=e):e+"."+Go(Bo++)}for(;Ho<Mo;Ho++)Po[Ro[Ho]]=Ho;let Fo=!1;try{Fo="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const Uo=Fo;function Vo(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Uo))return new XMLHttpRequest}catch(e){}if(!t)try{return new(ko[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Ko(){}const jo=null!=new Vo({xdomain:!1}).responseType;class Yo extends So{constructor(e,t){super(),No(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=To(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const o=this.xhr=new Vo(t);try{o.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&o.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{o.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(o.timeout=this.opts.requestTimeout),o.onreadystatechange=()=>{var e;3===o.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(o)),4===o.readyState&&(200===o.status||1223===o.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof o.status?o.status:0)}),0))},o.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Yo.requestsCount++,Yo.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Ko,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Yo.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Yo.requestsCount=0,Yo.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Wo);else if("function"==typeof addEventListener){addEventListener("onpagehide"in ko?"pagehide":"unload",Wo,!1)}function Wo(){for(let e in Yo.requests)Yo.requests.hasOwnProperty(e)&&Yo.requests[e].abort()}const zo="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Qo=ko.WebSocket||ko.MozWebSocket,Zo="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const Xo={websocket:class extends Lo{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,o=Zo?{}:To(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=Zo?new Qo(e,t,o):t?new Qo(e,t):new Qo(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const o=e[t],n=t===e.length-1;co(o,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}n&&zo((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=qo()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Qo}},webtransport:class extends Lo{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){xo||(xo=new TextDecoder);const o=[];let n=0,s=-1,a=!1;return new TransformStream({transform(i,r){for(o.push(i);;){if(0===n){if(Co(o)<1)break;const e=Ao(o,1);a=!(128&~e[0]),s=127&e[0],n=s<126?3:126===s?1:2}else if(1===n){if(Co(o)<2)break;const e=Ao(o,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(Co(o)<8)break;const e=Ao(o,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>Math.pow(2,21)-1){r.enqueue(ao);break}s=a*Math.pow(2,32)+t.getUint32(4),n=3}else{if(Co(o)<s)break;const e=Ao(o,s);r.enqueue(mo(a?e:xo.decode(e),t)),n=0}if(0===s||s>e){r.enqueue(ao);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(t).getReader(),n=yo();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const s=()=>{o.read().then((({done:e,value:t})=>{e||(this.onPacket(t),s())})).catch((e=>{}))};s();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const o=e[t],n=t===e.length-1;this.writer.write(o).then((()=>{n&&zo((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Lo{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port}const t=e&&e.forceBase64;this.supportsBinary=jo&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const o=e.split(Eo),n=[];for(let e=0;e<o.length;e++){const s=mo(o[e],t);if(n.push(s),"error"===s.type)break}return n})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const o=e.length,n=new Array(o);let s=0;e.forEach(((e,a)=>{co(e,!1,(e=>{n[a]=e,++s===o&&t(n.join(Eo))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=qo()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Yo(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Jo=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){if(e.length>2e3)throw"URI too long";const t=e,o=e.indexOf("["),n=e.indexOf("]");-1!=o&&-1!=n&&(e=e.substring(0,o)+e.substring(o,n).replace(/:/g,";")+e.substring(n,e.length));let s=Jo.exec(e||""),a={},i=14;for(;i--;)a[$o[i]]=s[i]||"";return-1!=o&&-1!=n&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const o=/\/{2,9}/g,n=t.replace(o,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,a.path),a.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,a.query),a}class tn extends So{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=en(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=en(t.host).host),No(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e<n;e++){let n=o[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const o=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Xo[e](o)}open(){let e;if(this.opts.rememberUpgrade&&tn.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),o=!1;tn.priorWebsocketSuccess=!1;const n=()=>{o||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!o)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;tn.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{o||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function s(){o||(o=!0,c(),t.close(),t=null)}const a=e=>{const o=new Error("probe error: "+e);o.transport=t.name,s(),this.emitReserved("upgradeError",o)};function i(){a("transport closed")}function r(){a("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",n),t.removeListener("error",a),t.removeListener("close",i),this.off("close",r),this.off("upgrading",l)};t.once("open",n),t.once("error",a),t.once("close",i),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{o||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",tn.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let o=0;o<this.writeBuffer.length;o++){const n=this.writeBuffer[o].data;if(n&&(e+="string"==typeof(t=n)?function(e){let t=0,o=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?o+=1:t<2048?o+=2:t<55296||t>=57344?o+=3:(n++,o+=4);return o}(t):Math.ceil(1.33*(t.byteLength||t.size))),o>0&&e>this.maxPayload)return this.writeBuffer.slice(0,o);e+=2}var t;return this.writeBuffer}write(e,t,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const s={type:e,data:t,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},o=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?o():e()})):this.upgrading?o():e()),this}onError(e){tn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let o=0;const n=e.length;for(;o<n;o++)~this.transports.indexOf(e[o])&&t.push(e[o]);return t}}tn.protocol=4;tn.protocol;const on="function"==typeof ArrayBuffer,nn=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,sn=Object.prototype.toString,an="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===sn.call(Blob),rn="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===sn.call(File);function ln(e){return on&&(e instanceof ArrayBuffer||nn(e))||an&&e instanceof Blob||rn&&e instanceof File}function cn(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,o=e.length;t<o;t++)if(cn(e[t]))return!0;return!1}if(ln(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return cn(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&cn(e[t]))return!0;return!1}function dn(e){const t=[],o=e.data,n=e;return n.data=pn(o,t),n.attachments=t.length,{packet:n,buffers:t}}function pn(e,t){if(!e)return e;if(ln(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n<e.length;n++)o[n]=pn(e[n],t);return o}if("object"==typeof e&&!(e instanceof Date)){const o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=pn(e[n],t));return o}return e}function un(e,t){return e.data=hn(e.data,t),delete e.attachments,e}function hn(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let o=0;o<e.length;o++)e[o]=hn(e[o],t);else if("object"==typeof e)for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=hn(e[o],t));return e}const gn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],vn=5;var fn;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(fn||(fn={}));class mn{constructor(e){this.replacer=e}encode(e){return e.type!==fn.EVENT&&e.type!==fn.ACK||!cn(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===fn.EVENT?fn.BINARY_EVENT:fn.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==fn.BINARY_EVENT&&e.type!==fn.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=dn(e),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}}function bn(e){return"[object Object]"===Object.prototype.toString.call(e)}class _n extends So{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const o=t.type===fn.BINARY_EVENT;o||t.type===fn.BINARY_ACK?(t.type=o?fn.EVENT:fn.ACK,this.reconstructor=new En(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ln(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const o={type:Number(e.charAt(0))};if(void 0===fn[o.type])throw new Error("unknown packet type "+o.type);if(o.type===fn.BINARY_EVENT||o.type===fn.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(n,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(s)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!_n.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return o}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case fn.CONNECT:return bn(t);case fn.DISCONNECT:return void 0===t;case fn.CONNECT_ERROR:return"string"==typeof t||bn(t);case fn.EVENT:case fn.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===gn.indexOf(t[0]));case fn.ACK:case fn.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class En{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=un(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function yn(e,t,o){return e.on(t,o),function(){e.off(t,o)}}const xn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Cn extends So{constructor(e,t,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[yn(e,"open",this.onopen.bind(this)),yn(e,"packet",this.onpacket.bind(this)),yn(e,"error",this.onerror.bind(this)),yn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(xn.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:fn.EVENT,data:t,options:{}};if(o.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)||(this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var o;const n=null!==(o=this.flags.timeout)&&void 0!==o?o:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const s=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),n),a=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};a.withError=!0,this.acks[e]=a}emitWithAck(e,...t){return new Promise(((o,n)=>{const s=(e,t)=>e?n(e):o(t);s.withError=!0,t.push(s),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(o!==this._queue[0])return;return null!==e?o.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),o.pending=!1,this._drainQueue()})),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:fn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case fn.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case fn.EVENT:case fn.BINARY_EVENT:this.onevent(e);break;case fn.ACK:case fn.BINARY_ACK:this.onack(e);break;case fn.DISCONNECT:this.ondisconnect();break;case fn.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const o of t)o.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,t.packet({type:fn.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:fn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const o of t)o.apply(this,e.data)}}}function An(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}An.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+o:e-o}return 0|Math.min(e,this.max)},An.prototype.reset=function(){this.attempts=0},An.prototype.setMin=function(e){this.ms=e},An.prototype.setMax=function(e){this.max=e},An.prototype.setJitter=function(e){this.jitter=e};class Sn extends So{constructor(e,t){var o;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,No(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(o=t.randomizationFactor)&&void 0!==o?o:.5),this.backoff=new An({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new tn(this.uri,this.opts);const t=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const n=yn(t,"open",(function(){o.onopen(),e&&e()})),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=yn(t,"error",s);if(!1!==this._timeout){const e=this._timeout,o=this.setTimeoutFn((()=>{n(),s(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&o.unref(),this.subs.push((()=>{this.clearTimeoutFn(o)}))}return this.subs.push(n),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(yn(e,"ping",this.onping.bind(this)),yn(e,"data",this.ondata.bind(this)),yn(e,"error",this.onerror.bind(this)),yn(e,"close",this.onclose.bind(this)),yn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){zo((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new Cn(this,e,t),this.nsps[e]=o),o}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let o=0;o<t.length;o++)this.engine.write(t[o],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&o.unref(),this.subs.push((()=>{this.clearTimeoutFn(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const kn={};function Tn(e,t){"object"==typeof e&&(t=e,e=void 0);const o=function(e,t="",o){let n=e;o=o||"undefined"!=typeof location&&location,null==e&&(e=o.protocol+"//"+o.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?o.protocol+e:o.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==o?o.protocol+"//"+e:"https://"+e),n=en(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(o&&o.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=o.source,s=o.id,a=o.path,i=kn[s]&&a in kn[s].nsps;let r;return t.forceNew||t["force new connection"]||!1===t.multiplex||i?r=new Sn(n,t):(kn[s]||(kn[s]=new Sn(n,t)),r=kn[s]),o.query&&!t.query&&(t.query=o.queryKey),r.socket(o.path,t)}Object.assign(Tn,{Manager:Sn,Socket:Cn,io:Tn,connect:Tn});const wn=function(){function e(e){this.prevTimeStamp=0,this.intervalTime=510,this.count=1,this.hostIns=e}return e.prototype.socketConnection=function(e){var t,o,n=this;this.configOptions=e;var s={url:(null===(t=null==e?void 0:e.connectionDetails)||void 0===t?void 0:t.domainURL)+"/koreagentassist",options:{path:"/agentassist/api/v1/chat",autoConnect:!1,transports:["websocket","polling","flashsocket"],reconnection:!0,reconnectionDelay:5e3,reconnectionAttempts:13,query:{jToken:null===(o=null==e?void 0:e.connectionDetails)||void 0===o?void 0:o.token}}};this._agentAssistSocket=Tn(s.url,s.options),this._agentAssistSocket.connect(),this.listenEvents(),this._agentAssistSocket.on("connect",(function(){n.hostIns.emit("ON_SOCKET_CONNECTION",e),n.hostIns.rootService.socketConnect||(n.hostIns.rootService.socketConnect=!0,n.hostIns.emit(Ke.GET_CHECKLISTS,!0))}))},e.prototype.emitEvents=function(e,t,o){void 0===o&&(o=!1);var n=this.configOptions.connectionDetails,s=n.fromSAT,a=n.source,i=(n.autoBotId,n.channel),r=n.interactiveLanguage,l=n.botId;t&&(t.isExtAD=!s,t.source=a,t.experience=i,t.traceId=o&&t.traceId?t.traceId:"ua-f0f3edc3-16ca-4e02-9363-4f48c602df62",t.language=r),"internal_transfer"==e&&(t.botId=l),this._agentAssistSocket.emit(e,t)},e.prototype.listenEvents=function(){var e=this;this._agentAssistSocket.on(Fe.agent_assist_response,(function(t){e.hostIns.rootService.assistTabSessionId="",t.sessionId&&(e.hostIns.rootService.assistTabSessionId=null==t?void 0:t.sessionId),e.hostIns.emit(Ve.AGENT_AI_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_menu_response,(function(e){})),this._agentAssistSocket.on(Fe.agent_coaching_response,(function(t){e.hostIns.emit(Ve.AGENT_COACHING_RESPONSES,t)})),this._agentAssistSocket.on(Fe.checklist_step_response,(function(t){e.hostIns.emit(Ve.CHECKLIST_STEP_RESPONSE,t)})),this._agentAssistSocket.on(Fe.checklist_response,(function(t){e.hostIns.emit(Ve.CHECKLIST_RESPONSE,t)})),this._agentAssistSocket.on(Fe.realtime_sentiment_response,(function(e){})),this._agentAssistSocket.on(Fe.agent_assist_agent_response,(function(t){var o=e.getTimeout();setTimeout((function(){e.hostIns.rootService.sentSearchResponse=!1,e.hostIns.rootService.myBotTabSessionId="",t.sessionId&&(e.hostIns.rootService.myBotTabSessionId=null==t?void 0:t.sessionId),e.hostIns.emit(Ve.AGENT_AI_AGENT_RESPONSE,t)}),o)})),this._agentAssistSocket.on(Fe.agent_assist_endoftask,(function(e){})),this._agentAssistSocket.on(Fe.user_message,(function(t){e.hostIns.emit(Ve.USER_TRANSCRIPT_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_message,(function(t){e.hostIns.emit(Ve.AGENT_TRANSCRIPT_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_assist_user_message,(function(e){})),this._agentAssistSocket.on(Fe.agent_feedback_response,(function(e){})),this._agentAssistSocket.on(Fe.response_resolution_comments,(function(t){e.hostIns.emit(Ve.RESOLUTION_COMMENTS_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agentassist_control_response,(function(e){}))},e.prototype.getTimeout=function(){var e=Date.now(),t=this.intervalTime;return e-this.prevTimeStamp<this.intervalTime?(t=t*this.count+(this.intervalTime-(e-this.prevTimeStamp)),this.count+=1):this.count=1,this.prevTimeStamp=e,t},e}();var In=function(){return In=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},In.apply(this,arguments)},Nn=function(){function e(){this.isAutomationOnGoing=!1,this.grantResponseObj={},this.prefsAccessObj={tabsNTitles:[],prefs:{}},this.connectionDetails={},this.settingsData={},this.numOfLines=4,this.maxHeight="max-content",this.scrollHeight=Number.MAX_VALUE,this.classConstants=Pe,this.idConstants=De,this.faqambiguityResponse=!1,this.activeTab="",this.myBotTabSessionId="",this.assistTabSessionId="",this.sentSearchResponse=!1,this.searchedResultData={},this.proactiveMode=!1,this.socketConnect=!1,this.isProceedToClose=!1,this.dynClObjs={}}return e.prototype.formatWelcomeMessageResponse=function(e){return{data:e,type:Ne.WELCOME_MSG,connectionDetails:this.connectionDetails,responseType:Ne.ASSISTRESPONSE}},e.prototype.formatSearchResponse=function(e,t,o){var n,s,a,i,r,l,c,d,p,u,h,g,v;void 0===t&&(t=!1);var f=e.suggestions,m=f.dialogs||[],b=f.faqs||[],_=this.formatSnippetResponse((null===(n=null==f?void 0:f.searchassist)||void 0===n?void 0:n.snippets)||[],e,o),E=(null===(s=null==f?void 0:f.searchassist)||void 0===s?void 0:s.files)||[],y={};(null==f?void 0:f.searchassist)&&(null===(a=null==f?void 0:f.searchassist)||void 0===a?void 0:a.snippets)&&0==(null===(r=null===(i=null==f?void 0:f.searchassist)||void 0===i?void 0:i.snippets)||void 0===r?void 0:r.length)&&delete f.searchassist.snippets;var x=Object.keys((null==f?void 0:f.searchassist)||{});if((null==f?void 0:f.searchassist)&&1==(null==x?void 0:x.length)&&"searchRequestId"===x[0]&&(f.searchassist={}),m.length||b.length||_.length||E.length||(null==f?void 0:f.searchassist)&&(null===(l=Object.keys(null==f?void 0:f.searchassist))||void 0===l?void 0:l.length)){if(y.dialogs=[],y.faqs=[],y.articles=[],y.snippets=[],y.files=[],f.searchassist&&(null===(c=Object.keys(f.searchassist))||void 0===c?void 0:c.length)>0){var C=function(e){"snippets"!=e&&"file"!=e&&"searchRequestId"!=e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(d=Object.keys(f.searchassist[e]))||void 0===d?void 0:d.length)>0&&y.articles.push.apply(y.articles,f.searchassist[e])),"file"==e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(p=Object.keys(f.searchassist[e]))||void 0===p?void 0:p.length)>0&&y.files.push.apply(y.files,f.searchassist[e])),e&&"searchRequestId"!=e&&(null===(u=null==f?void 0:f.searchassist[e])||void 0===u||u.forEach((function(t){t.subType=e})))},A=this;for(var S in f.searchassist)C(S);for(var k=0,T=y.articles;k<T.length;k++){var w=T[k];w.showMoreButton=!0,w.showLessButton=!1,w.content=w.content?w.content:"",w.contentId=w.contentId,w.userInput=e.userInput,w.sourceMsgId=e.sourceMsgId||"",w.subType=w.subType,w.intType=t?"mybot":"assist",w.feedbackData=this.prepareFeedbackForSuggestions("article",w,{})}for(var I=0,N=y.files;I<N.length;I++){var O=N[I];O.showMoreButton=!0,O.showLessButton=!1,O.content=O.content?O.content:"",O.contentId=O.contentId,O.userInput=e.userInput,O.sourceMsgId=e.sourceMsgId||"",O.subType=O.subType,O.intType=t?"mybot":"assist",O.feedbackData=this.prepareFeedbackForSuggestions("file",O,{})}}for(var L=0,R=b;L<R.length;L++){var M=R[L],P={question:M.question,displayName:M.displayName,taskRefId:null==M?void 0:M.taskRefId,answer:!!(M.answer&&M.answer.length>0)&&[],showMoreButton:!0,showLessButton:!1,answerRender:M.answer||!1,childBotId:M.childBotId,childBotName:M.childBotName,answerCount:1,sourceMsgId:e.sourceMsgId||"",positionId:M.positionId,userInput:e.userInput,intType:e.intType};if(M.answer&&M.answer.length>0)for(var D=0,B=M.answer;D<B.length;D++){var H={ans:B[D],taskRefId:M.taskRefId,showMoreButton:!0,showLessButton:!1,displayName:M.displayName,sourceMsgId:e.sourceMsgId||"",positionId:M.positionId};P.answer.push(H)}var G=M.historyFeedback?M.historyFeedback:{};P.feedbackData=this.prepareFeedbackForSuggestions("faqs",P,G),P.feedbackData.interactionType=t?"mybot":"assist",y.faqs.push(P)}if((null===(g=null===(h=null==f?void 0:f.searchassist)||void 0===h?void 0:h.snippets)||void 0===g?void 0:g.length)>0){(null==_?void 0:_.length)>0&&(y.snippets=Object.assign([],_));for(var q=0,F=y.snippets;q<F.length;q++){var U=F[q];U.showMoreButton=!0,U.showLessButton=!1,U.subType="snippets"}}for(var V=0,K=m;V<K.length;V++){var j=K[V];j.entities&&(null===(v=j.entities)||void 0===v?void 0:v.length)>0&&j.entities.forEach((function(e){e.editMode=!1})),y.dialogs.push({name:j.name,agentRunButton:!1,childBotId:j.childBotId,childBotName:j.childBotName,entities:j.entities,userInput:e.userInput,sourceMsgId:e.sourceMsgId||""})}}return y},e.prototype.formatSnippetResponse=function(e,t,o){var n,s={contentArray:[],sources:[],internalInfo:[],sendCopyText:""},a=[];if((null==e?void 0:e.length)>0){e.forEach((function(e){var o;if(null==e?void 0:e.templateType){if("active_citation_snippet"==e.templateType||"citation_snippet"==e.templateType)(null==e?void 0:e.content)&&Array.isArray(null==e?void 0:e.content)&&(null===(o=null==e?void 0:e.content)||void 0===o?void 0:o.length)>0&&e.content.forEach((function(t){var o={ans:t.answer_fragment,sources:(null==t?void 0:t.sources)||[],internalFlag:e.internalFlag};s.contentArray.push(o),s.internalFlag=e.internalFlag||!1,s.isActCit=!0}));else if(null==e?void 0:e.content){Array.isArray(null==e?void 0:e.content)&&(e.content=null==e?void 0:e.content.join("\n")),s.internalFlag=e.internalFlag||!1;var n={ans:e.content,internalFlag:e.internalFlag};e.url&&(n.sources=[{title:e.source,url:e.url}]),s.contentArray.push(n)}s.templateType=e.templateType,s.positionId=e.positionId,s.sourceMsgId=t.sourceMsgId||"",s.intType=t.intType,s.isFromGeneratedSummary=t.isFromGeneratedSummary,s.userInput=t.userInput||""}}));var i="",r="",l=[];null===(n=s.contentArray)||void 0===n||n.forEach((function(e){var t,n,a="";(t=s.sources).push.apply(t,((null==e?void 0:e.sources)||[]).filter((function(e){var t=e.url&&-1==l.indexOf(e.title);return t&&l.push(e.title),-1!=l.indexOf(e.title)&&(a+="fragment-ext-".concat(l.indexOf(e.title)+1,"-").concat(o)),t}))),e.internalFlag||(s.sendCopyText+=e.ans);var c='<span class="'.concat(a,'">').concat(e.ans," ");if(Array.isArray(null==e?void 0:e.sources)&&(null===(n=null==e?void 0:e.sources)||void 0===n?void 0:n.length))for(var d=0,p=null==e?void 0:e.sources;d<p.length;d++){var u=p[d];if((null==u?void 0:u.title)&&-1!=l.indexOf(null==u?void 0:u.title)){var h=l.indexOf(u.title);c+='<span class="source-count-num">'.concat(h+1,"</span>")}}c+="</span>",e.internalFlag?r+=c:i+=c})),s.contentArray=[],s.internalInfo=[],(null==r?void 0:r.trim())&&s.internalInfo.push(null==r?void 0:r.trim()),(null==i?void 0:i.trim())&&s.contentArray.push(null==i?void 0:i.trim()),s.feedbackData=this.prepareFeedbackForSuggestions("answer",s,{}),a.push(s)}return a},e.prototype.updateSearchResponse=function(e,t,o){var n,s,a,i;t.suggestions.faqs=this.formatFAQResponse(t.suggestions.faqs);var r=null===(s=null===(n=null==t?void 0:t.suggestions)||void 0===n?void 0:n.faqs)||void 0===s?void 0:s.findIndex((function(e,t){if(e.question===o.question)return e})),l={};if(r>=0&&(l=null===(a=null==t?void 0:t.suggestions)||void 0===a?void 0:a.faqs[r]),l&&(null===(i=Object.keys(l))||void 0===i?void 0:i.length)>0){var c=e.map((function(e,t){var n;if(t===o.assistSuggestion){var s=In({},e),a=null===(n=s.searchResponse)||void 0===n?void 0:n.faqs[o.index];return a&&l&&(null==l?void 0:l.answer)&&(a.answer=null==l?void 0:l.answer,a.toggle=!0,a.showMoreButton=!1,a.showLessButton=!1,a.showSpinner=!1),s.faqArrowClickResponse=!0,s}return e}));return c}},e.prototype.prepareFeedbackForSuggestions=function(e,t,o){var n,s,a;void 0===o&&(o={});var i={type:Ne.FEEDBACK,connectionDetails:this.connectionDetails,positionId:t.positionId,submitForm:!!(null==o?void 0:o.feedback),feedback:(null==o?void 0:o.feedback)?o.feedback:"",feedbackDetails:(null===(n=null==o?void 0:o.feedbackDetails)||void 0===n?void 0:n.length)?o.feedbackDetails:[],comment:(null==o?void 0:o.comment)?null==o?void 0:o.comment:"",sourceMsgId:t.sourceMsgId||"",query:t.userInput,suggestionType:e,dialogPositionId:t.positionId,subType:t.subType||""};if("answer"==e)i.isFromGeneratedSummary=t.isFromGeneratedSummary,i.answerType=t.templateType,i.title=t.title,i.answer=t.sendCopyText||"",i.interactionType=t.intType,i.sources=t.sources,(null===(s=t.internalInfo)||void 0===s?void 0:s.length)>0&&(i.answer+=t.internalInfo.join(" "));else if("article"==e||"file"==e)i.title=t.title,i.answer=t.content||"",i.interactionType=t.intType;else if("faqs"==e){var r="";Array.isArray(null==t?void 0:t.answer)&&(null===(a=null==t?void 0:t.answer)||void 0===a||a.forEach((function(e){r+=e.ans}))),i.title=t.question,i.answer=r}return i},e.prototype.checkEmptyObjectsInArray=function(e){return e=e.filter((function(e){var t;return e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&(e.title||e.content)}))},e.prototype.formatFAQResponse=function(e){var t,o,n=[];if(e&&(null==e?void 0:e.length)>0)for(var s=0,a=e;s<a.length;s++){var i=a[s],r={question:i.question,taskRefId:null==i?void 0:i.taskRefId,answer:!!((null==i?void 0:i.answer)&&(null===(t=null==i?void 0:i.answer)||void 0===t?void 0:t.length)>0)&&[]};if(i.answer&&i.answer.length>0)for(var l=0,c=i.answer;l<c.length;l++){var d=c[l],p={taskRefId:i.taskRefId,ans:d,showMoreButton:!0,showLessButton:!1};null===(o=null==r?void 0:r.answer)||void 0===o||o.push(p)}n.push(r)}return n},e.prototype.openurlInBrowser=function(e){window.open(e,"_blank")},e.prototype.extractTextFromElement=function(e){var t="";if(e){var o=function(e){if(e.nodeType===Node.TEXT_NODE)t+=e.textContent;else if(e.nodeType===Node.ELEMENT_NODE)for(var n=e.childNodes,s=0;s<n.length;s++)o(n[s])};o(e)}return t.trim()},e.prototype.handleSendCopyButton=function(e,t,o){var n={};return e==Oe.SEND?(n={method:"send",name:Oe.SENDMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},o===Oe.ARTICLE?(n.title=t.title,n.contentId=t.contentId):(n.title=t.displayName,n.contentId=t.taskRefId)):(n={method:"copy",name:Oe.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},o===Oe.ARTICLE?(n.title=t.title,n.contentId=t.contentId):(n.title=t.displayName,n.contentId=t.taskRefId)),n.type=o==Oe.FAQ?"faq":"article",this.faqArticleSendorCopyEvent(o,n,t)},e.prototype.faqArticleSendorCopyEvent=function(e,t,o){var n,s,a={botId:this.connectionDetails.botId,conversationId:this.connectionDetails.conversationId,experience:null===(n=this.connectionDetails)||void 0===n?void 0:n.channel,source:this.connectionDetails.source,usedType:t.method,type:t.type,name:t.name,payload:t.payload,title:t.title,contentId:t.contentId,positionId:o.positionId?o.positionId:"",sessionId:this.activeTab==Ie.MYBOT||this.activeTab==Ie.SEARCH?this.myBotTabSessionId:this.assistTabSessionId};return a=this.addSourceMsgIdToRequestParams(o,a),this.activeTab==Ie.SEARCH&&(a.skipMsg=this.sentSearchResponse,a.input=(null===(s=this.searchedResultData)||void 0===s?void 0:s.userInput)||"",this.sentSearchResponse=!0),o.subType&&(a.subType=o.subType),a},e.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},e.prototype.addSentOrCopiedTextForFaqs=function(e,t,o,n){var s=t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE),a=t.querySelector("".concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_SENT_TEXT));if(!e.send&&!a){e.send=o;var i=ne(ot,{ansObj:e},n);s.append(i)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForFiles=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(lt,{file:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForArticle=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(ze,{article:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForSnippets=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(gt,{snippet:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.handleSendCopyButtonForFaq=function(e,t,o,n,s){t.sourceMsgId=n,t.sendContent=t.answer||t.ans;var a=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(a,s)},e.prototype.handleSendCopyButtonForSnippet=function(e,t,o,n){t.sendContent=t.sendCopyText;var s=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(s,n)},e.prototype.handleSendCopyButtonArticleOrFile=function(e,t,o,n){t.sendContent=t.content;var s=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(s,n)},e.prototype.handleActionTemplateClickEventsForFAQ=function(e,t,o,n,s){var a,i,r=this;null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Oe.SEND,o,Oe.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(o,n,"Sent",s)}),e),null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Oe.COPY,o,Oe.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(o,n,"Copied",s)}),e)},e.prototype.emitSendOrCopyEvent=function(e,t){"send"===(null==e?void 0:e.usedType)?t.emit(Ue.AGENT_SEND_MESSAGE,e):t.emit(Ue.AGENT_COPY_MESSAGE,e),t.socketConnection.emitEvents(Fe.agent_send_or_copy,e)},e.prototype.handleFaqExpandCloseBtnClickEvents=function(e,t,o,n,s){var a,i,r=this,l=e.querySelector(this.classConstants.SUGGESTION_FAQ_EXPAND),c=e.querySelector(this.classConstants.SUGGESTION_FAQ_CLOSE),d=null==n?void 0:n.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LENGTH));null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_FAQ_EXPAND,"click",(function(){var e,n,s,a,i,p,u,h;(null===(e=null==c?void 0:c.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==c?void 0:c.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==l?void 0:l.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var o,n;(null===(o=null==e?void 0:e.classList)||void 0===o?void 0:o.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT))})),null===(a=null==d?void 0:d.classList)||void 0===a||a.add(r.classConstants.HIDE_ELEMENT),null===(i=null==o?void 0:o.classList)||void 0===i||i.add(r.classConstants.HIDE_ELEMENT);var g=null===(p=t[0])||void 0===p?void 0:p.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);(null===(u=null==g?void 0:g.classList)||void 0===u?void 0:u.contains(r.classConstants.HIDE_ELEMENT))&&(null===(h=null==g?void 0:g.classList)||void 0===h||h.remove(r.classConstants.HIDE_ELEMENT))}),e),null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_FAQ_CLOSE,"click",(function(){var e,n,s,a,i,p,u,h,g;(null===(e=null==l?void 0:l.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==l?void 0:l.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==c?void 0:c.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var o;0!=t&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.add(r.classConstants.HIDE_ELEMENT))})),(null===(a=null==d?void 0:d.classList)||void 0===a?void 0:a.contains(r.classConstants.HIDE_ELEMENT))&&(null===(i=null==d?void 0:d.classList)||void 0===i||i.remove(r.classConstants.HIDE_ELEMENT)),(null===(p=null==o?void 0:o.classList)||void 0===p?void 0:p.contains(r.classConstants.HIDE_ELEMENT))&&(null===(u=null==o?void 0:o.classList)||void 0===u||u.remove(r.classConstants.HIDE_ELEMENT));var v=null===(h=t[0])||void 0===h?void 0:h.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);null===(g=null==v?void 0:v.classList)||void 0===g||g.add(r.classConstants.HIDE_ELEMENT)}),e)},e.prototype.handleActionTemplateClickEventsForSnippet=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonForSnippet(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForSnippets(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonForSnippet(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForSnippets(t,o,"Copied",n)}),e)},e.prototype.handleActionTemplateClickEventsForArticle=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForArticle(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForArticle(t,o,"Copied",n)}),e)},e.prototype.handleActionTemplateClickEventsForFile=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForFiles(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForFiles(t,o,"Copied",n)}),e)},e.prototype.handleSuggestionLessClickEvent=function(e,t,o,n){var s,a=this,i=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_MORE_LINK,"click",(function(){var e,t,n;(null===(e=null==r?void 0:r.classList)||void 0===e?void 0:e.contains(a.classConstants.HIDE_ELEMENT))&&(null===(t=null==r?void 0:r.classList)||void 0===t||t.remove(a.classConstants.HIDE_ELEMENT)),null===(n=null==i?void 0:i.classList)||void 0===n||n.add(a.classConstants.HIDE_ELEMENT),o.forEach((function(e){var t,o;(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(a.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(a.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.handleSuggestionMoreClickEvent=function(e,t,o,n){var s,a=this,i=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=null==n?void 0:n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_LESS_LINK,"click",(function(){var e,t,n;(null===(e=null==i?void 0:i.classList)||void 0===e?void 0:e.contains(a.classConstants.HIDE_ELEMENT))&&(null===(t=null==i?void 0:i.classList)||void 0===t||t.remove(a.classConstants.HIDE_ELEMENT)),null===(n=null==r?void 0:r.classList)||void 0===n||n.add(a.classConstants.HIDE_ELEMENT),o.forEach((function(e,t){var o;t>=2&&e&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.add(a.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.setFaqIndividualLoader=function(e,t,o){var n,s,a,i,r=this;void 0===t&&(t=!1);var l=document.getElementById(o),c=null===(n=(null==l?void 0:l.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===n?void 0:n.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LOADER));t&&c?null===(s=null==c?void 0:c.classList)||void 0===s||s.add(this.classConstants.HIDE_ELEMENT):c&&((null===(a=null==c?void 0:c.classList)||void 0===a?void 0:a.contains(this.classConstants.HIDE_ELEMENT))&&(null===(i=null==c?void 0:c.classList)||void 0===i||i.remove(this.classConstants.HIDE_ELEMENT)),setTimeout((function(){var e;null===(e=null==c?void 0:c.classList)||void 0===e||e.add(r.classConstants.HIDE_ELEMENT)}),1e4))},e.prototype.addOrHideFAQArrows=function(e,t,o){var n,s,a,i,r,l;"up"===o?((null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains(this.classConstants.HIDE_ELEMENT))&&(null===(s=null==t?void 0:t.classList)||void 0===s||s.remove(this.classConstants.HIDE_ELEMENT)),null===(a=null==e?void 0:e.classList)||void 0===a||a.add(this.classConstants.HIDE_ELEMENT)):((null===(i=null==e?void 0:e.classList)||void 0===i?void 0:i.contains(this.classConstants.HIDE_ELEMENT))&&(null===(r=null==e?void 0:e.classList)||void 0===r||r.remove(this.classConstants.HIDE_ELEMENT)),null===(l=null==t?void 0:t.classList)||void 0===l||l.add(this.classConstants.HIDE_ELEMENT))},e.prototype.toggleArrows=function(e,t){var o,n=document.getElementById(t),s=null===(o=(null==n?void 0:n.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===o?void 0:o.querySelector(this.classConstants.SUGGESTION_EACH_HEADER),a=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_UP_ARROW),i=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_DOWN_ARROW);this.addOrHideFAQArrows(a,i,"down")},e.prototype.openLinksInBrowser=function(e){this.openurlInBrowser(e)},e.prototype.openurlInBrowserForSnippet=function(e,t,o){this.openurlInBrowser(e),this.handleUrlClickEvent(e,t,o)},e.prototype.handleUrlClickEvent=function(e,t,o){var n=this.commonRequestParamsForActivity(t);n.eventType="url_clicked",n.url=e,o.socketConnection.emitEvents(Fe.agent_activity_request,n)},e.prototype.commonRequestParamsForActivity=function(e){var t=this.connectionDetails,o=t.botId,n=t.conversationId;t.channel;return{botId:o,conversationId:n,event:"clicked",sourceMsgId:e.sourceMsgId,dataSource:"snippet",positionId:e.positionId}},e.prototype.emitSearchRequestForAssistSuggestions=function(e,t,o,n){var s=Object.assign({},this.connectionDetails);s.value=e,s.isSearch=t,s.interactiveLanguage&&"string"==typeof s.interactiveLanguage&&"''"!=s.interactiveLanguage&&(s.language=s.interactiveLanguage),o.sourceMsgId&&(s.sourceMsgId=o.sourceMsgId);var a=n.prepareAgentAssistRequestParams(s);o.ambiguityToken&&(a.uiunqref=o.ambiguityToken),n.socketConnection.emitEvents(Fe.agent_assist_request,a)},e.prototype.emitSearchRequestForSearch=function(e,t,o,n){var s,a;void 0===o&&(o={});var i=null==e?void 0:e.value,r=In(In({},null===(a=null===(s=null==n?void 0:n.socketConnection)||void 0===s?void 0:s.configOptions)||void 0===a?void 0:a.connectionDetails),{value:i,isSearch:t});r.interactiveLanguage&&"string"==typeof r.interactiveLanguage&&"''"!==r.interactiveLanguage&&(r.language=r.interactiveLanguage),o&&o.sourceMsgId&&(r.sourceMsgId=o.sourceMsgId);var l=n.prepareAgentAssistAgentRequestParams(r);t&&(l.startTime=null==e?void 0:e.stTime,l.endTime=null==e?void 0:e.edTime),o.ambiguityToken&&(l.uiunqref=o.ambiguityToken),n.socketConnection.emitEvents(Fe.agent_assist_agent_request,l)},e.prototype.handleFaqAmbiguityDescElement=function(e,t,o,n,s,a,i){var r,l,c,d=document.getElementById(e),p=null==d?void 0:d.querySelectorAll(this.classConstants.SUGGESTION_EACH),u=null==t?void 0:t.index,h=o[u];this.setFaqIndividualLoader(u,!0,e),h&&(null===(r=null==h?void 0:h.answer)||void 0===r?void 0:r.length)>0&&p[u]&&(c=ne(et,{faq:h},i),i.emit(Ue.BEFORE_VIEW_INIT,c,{event:Ue.FAQ_ANSWER_AFTER_TOGGLE,data:o}),c&&(p[u].append(c),this.handleSeeMoreButtonsForFaq(d,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,i,u)));var g=null===(l=p[u])||void 0===l?void 0:l.querySelector(this.classConstants.SUGGESTION_EACH_HEADER);this.addOrHideFAQActionExpandCloseElements(h,n,s,a,g,p,u,i)},e.prototype.handleFaqToggle=function(e,t,o,n,s,a,i){var r,l=this;e.toggle=!e.toggle,e.seeMoreWrapper=!1;var c=null===(r=n[t])||void 0===r?void 0:r.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);"down"!=o||e.answer?"down"==o&&e.answer?c.forEach((function(e,t){var o,n;(null===(o=null==e?void 0:e.classList)||void 0===o?void 0:o.contains(l.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(l.classConstants.HIDE_ELEMENT))})):"up"==o&&c.forEach((function(e,t){var o;null===(o=null==e?void 0:e.classList)||void 0===o||o.add(l.classConstants.HIDE_ELEMENT)})):a?this.checkAnswerAndToggleForAssist(e,t,s,i):this.checkAnswerAndToggleForSearch(e,t,s)},e.prototype.checkAnswerAndToggleForAssist=function(e,t,o,n){if(!e.answer&&e.toggle){e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t,assistSuggestion:n.suggestionIndex})),this.emitSearchRequestForAssistSuggestions(e.displayName,!1,e,o);var s=this.idConstants.ASSIST_FAQ_SUGGESTION+n.suggestionIndex;this.setFaqIndividualLoader(t,!1,s)}},e.prototype.checkAnswerAndToggleForSearch=function(e,t,o){!e.answer&&e.toggle&&(e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t})),this.emitSearchRequestForSearch({value:e.displayName},!1,e,o),this.setFaqIndividualLoader(t,!1,this.idConstants.SEARCH_FAQ_SUGGESTION))},e.prototype.renderEachFaqInSuggestionList=function(e,t,o,n,s,a,i,r){var l,c=this;null===(l=null==e?void 0:e.faqs)||void 0===l||l.forEach((function(e,l){var d,p,u,h,g=null===(d=t[l])||void 0===d?void 0:d.querySelector(c.classConstants.SUGGESTION_EACH_HEADER),v=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_UP_ARROW),f=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW);null===(p=a.eventManager)||void 0===p||p.addEventListener(c.classConstants.SUGGESTION_FAQ_UP_ARROW,"click",(function(){c.addOrHideFAQArrows(v,f,"up"),c.handleFaqToggle(e,l,"up",t,a,i,r)}),g),null===(u=a.eventManager)||void 0===u||u.addEventListener(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW,"click",(function(){c.addOrHideFAQArrows(v,f,"down"),c.handleFaqToggle(e,l,"down",t,a,i,r)}),g),e.answer&&(null===(h=null==e?void 0:e.answer)||void 0===h?void 0:h.length)>0&&!o&&c.addOrHideFAQActionExpandCloseElements(e,o,n,s,g,t,l,a)}))},e.prototype.renderEachSnippetInSuggestionList=function(e,t,o,n,s,a){var i,r=this;null===(i=null==e?void 0:e.snippets)||void 0===i||i.forEach((function(e,i){var l,c,d=ne(vt,{snippet:e,hostInstance:a,hideActionButtons:o,hideCopyButton:n,hideSendButton:s},a);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[i])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForSnippet(d,e,t[i],a));var p=t[i].querySelectorAll(r.classConstants.SUGGESTION_SNIPPET_SOURCE_TAG);null===(c=e.sources)||void 0===c||c.forEach((function(t,o){var n;null===(n=a.eventManager)||void 0===n||n.addEventListener(r.classConstants.SUGGESTION_SNIPPET_LINK,"click",(function(){r.openurlInBrowserForSnippet(t.url,e,a)}),p[o])}))}))},e.prototype.renderEachArticleInSuggestionList=function(e,t,o,n,s,a){var i,r=this;null===(i=null==e?void 0:e.articles)||void 0===i||i.forEach((function(e,i){var l,c,d=ne(Ze,{article:e,hostInstance:a,hideActionButtons:o,hideCopyButton:n,hideSendButton:s},a);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[i])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForArticle(d,e,t[i],a)),null===(c=a.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_ARTICLE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[i])}))},e.prototype.renderEachFileInSuggestionList=function(e,t,o,n,s,a){var i,r=this;null===(i=null==e?void 0:e.files)||void 0===i||i.forEach((function(e,i){var l,c,d=ne(dt,{file:e,hostInstance:a,hideActionButtons:o,hideCopyButton:n,hideSendButton:s},a);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[i])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForFile(d,e,t[i],a)),null===(c=a.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_FILE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[i])}))},e.prototype.handleSearchText=function(e,t){var o,n;e.isEntered&&this.emitSearchRequestForSearch(e,!0,{},t);var s=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector(this.classConstants.SEARCH_INPUT_BLOCK),a=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("#".concat(this.idConstants.SEARCH_INPUT));if(s){var i=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_ICON),r=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_CLOSE);e.value?(i.classList.add(this.classConstants.HIDE_ELEMENT),r.classList.remove(this.classConstants.HIDE_ELEMENT)):(r.classList.add(this.classConstants.HIDE_ELEMENT),i.classList.remove(this.classConstants.HIDE_ELEMENT)),a.value=e.value}},e.prototype.addOrHideFAQActionExpandCloseElements=function(e,t,o,n,s,a,i,r){var l,c,d,p,u,h=this,g=ne(st,{ansObj:e.answer[0],hostInstance:r,hideActionButtons:t,hideCopyButton:o,hideSendButton:n,addHideClass:!1},r);if(s&&g&&"#text"!=(null==g?void 0:g.nodeName)&&(s.append(g),this.handleActionTemplateClickEventsForFAQ(g,e,e.answer[0],a[i],r)),(null===(l=e.answer)||void 0===l?void 0:l.length)>1){var v=null===(c=a[i])||void 0===c?void 0:c.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);null===(d=e.answer)||void 0===d||d.forEach((function(s,l){var c=ne(st,{ansObj:s,hostInstance:r,hideActionButtons:t,hideCopyButton:o,hideSendButton:n,addHideClass:0==l},r);c&&"#text"!=(null==c?void 0:c.nodeName)&&v&&(null==v?void 0:v.length)>0&&(v[l].prepend(c),h.handleActionTemplateClickEventsForFAQ(c,e,s,a[i],r))}));var f=ne(tt,{},r);null===(p=a[i])||void 0===p||p.append(f);var m=null===(u=a[i])||void 0===u?void 0:u.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_SENDCPY_ACTION));this.handleFaqExpandCloseBtnClickEvents(f,v,m,a[i],r)}},e.prototype.handleSeeMoreButtonsForSearchAssist=function(e,t,o,n){var s=this,a=null==e?void 0:e.querySelectorAll(".suggestion-item-card .suggestion-body-faq");null==a||a.forEach((function(e,a){var i,r=e.querySelector(t);if(r){var l=null==e?void 0:e.querySelector(o),c=null==l?void 0:l.querySelector(s.classConstants.MORE_BUTTON);r.scrollHeight>r.clientHeight&&(l.classList.remove(s.classConstants.HIDE_ELEMENT),null===(i=n.eventManager)||void 0===i||i.addEventListener(s.classConstants.MORE_BUTTON,"click",(function(e){r.classList.toggle(s.classConstants.SUGGESTION_EXPANDED),c.textContent=r.classList.contains(s.classConstants.SUGGESTION_EXPANDED)?Oe.READ_LESS:Oe.READ_MORE}),l))}}))},e.prototype.handleSeeMoreButtonsForFaq=function(e,t,o,n,s){var a=this;void 0===s&&(s=-1);var i=null==e?void 0:e.querySelectorAll(this.classConstants.SUGGESTION_EACH);null==i||i.forEach((function(e,i){var r;-1!=s&&s!==i||null===(r=e.querySelectorAll(a.classConstants.SUGGESTION_EACH_BODY))||void 0===r||r.forEach((function(e,s){var i,r=e.querySelector(t);if(r){var l=null==e?void 0:e.querySelector(o),c=null==l?void 0:l.querySelector(a.classConstants.MORE_BUTTON);r.scrollHeight>r.clientHeight&&(l.classList.remove(a.classConstants.HIDE_ELEMENT),null===(i=n.eventManager)||void 0===i||i.addEventListener(a.classConstants.MORE_BUTTON,"click",(function(e){r.classList.toggle(a.classConstants.SUGGESTION_EXPANDED),c.textContent=r.classList.contains(a.classConstants.SUGGESTION_EXPANDED)?Oe.READ_LESS:Oe.READ_MORE}),l)),s>0&&e.classList.add(a.classConstants.HIDE_ELEMENT)}}))}))},e.prototype.prepareChecklistPayload=function(e,t,o,n){var s,a,i;void 0===n&&(n=!1);var r={payload:{event:e,conversationId:this.connectionDetails.conversationId,ccVersion:null==t?void 0:t.ccVersion,accountId:null==t?void 0:t.accountId,botId:(null===(s=this.connectionDetails)||void 0===s?void 0:s.fromSAT)?null===(a=this.connectionDetails)||void 0===a?void 0:a.instanceBotId:null===(i=this.connectionDetails)||void 0===i?void 0:i.botId,agentInfo:{agentId:""},timestamp:0,context:{}}};return n?r.payload.checklistStep=o:r.payload.checklist=o,r},e.prototype.sendAndCopyForPlaybook=function(e,t,o,n){var s={method:e==Oe.SEND_METHOD?Oe.SEND_METHOD:Oe.COPY_METHOD,name:e==Oe.SEND_METHOD?Oe.SENDMSG:Oe.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t};e==Oe.SEND_METHOD?n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.PLAYBOOK_SEND_EVENT,data:{message:s}}):e==Oe.COPY_METHOD&&n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.PLAYBOOK_COPY_EVENT,data:{message:s}})},e.prototype.sendCheckListCompleteEvent=function(e,t,o){var n=this.prepareChecklistPayload("checklist_closed",e,{id:t});o.socketConnection.emitEvents(Fe.checklist_closed,n)},e.prototype.checkAllStagesCompleted=function(e,t,o){var n,s,a,i,r,l,c,d=e.checklists,p=!1,u=(d||[]).findIndex((function(e){return e._id===t}));if("primary"!==(null===(n=d[u])||void 0===n?void 0:n.type))(p=((null===(s=d[u].stages[0])||void 0===s?void 0:s.steps)||[]).every((function(e){return e.complete})))&&(d[u].completed=!0,this.sendCheckListCompleteEvent(e,t,o));else{var h=((null===(a=d[u].stages[0])||void 0===a?void 0:a.steps)||[]).every((function(e){return e.complete})),g=((null===(i=d[u].stages[1])||void 0===i?void 0:i.steps)||[]).every((function(e){return e.complete}));g&&(null===(c=null===(l=null===(r=null==o?void 0:o.chatEle)||void 0===r?void 0:r.querySelector(Pe.PROCEEDTOCLOSE_BTN))||void 0===l?void 0:l.classList)||void 0===c||c.add(Pe.CHECKLIST_DISABLE_MSG)),h&&g&&(d[u].completed=!0,p=!0),p&&this.sendCheckListCompleteEvent(e,t,o)}},e.prototype.updateStepTemplate=function(e,t){var o,n;null===(n=null===(o=e.checklists[this.selCLInx])||void 0===o?void 0:o.stages)||void 0===n||n.map((function(e,o){var n;null===(n=null==e?void 0:e.steps)||void 0===n||n.map((function(e,n){var s,a,i,r,l,c,d,p,u,h,g,v,f,m,b,_=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.CHECKLIST_EACH_STEP).concat(o,"-").concat(n)),E=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_COMPLETE_BTN).concat(o,"-").concat(n));_&&(!1===e.ongoing&&(null===(a=null==_?void 0:_.classList)||void 0===a||a.remove(Pe.CHECKLIST_STEP_ONGOING),null===(r=null===(i=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP)))||void 0===i?void 0:i.classList)||void 0===r||r.add(Pe.CHECKLIST_DISABLE_MSG),null===(l=null==E?void 0:E.classList)||void 0===l||l.add(Pe.HIDE_ELEMENT),null===(d=null===(c=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_SEND_BLOCK)))||void 0===c?void 0:c.classList)||void 0===d||d.add(Pe.HIDE_ELEMENT)),!0===e.complete&&(null===(u=null===(p=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP_NAME)))||void 0===p?void 0:p.classList)||void 0===u||u.add(Pe.CHECKLIST_STRIKE)),!0===e.ongoing&&(null===(h=null==_?void 0:_.classList)||void 0===h||h.add(Pe.CHECKLIST_STEP_ONGOING),null===(v=null===(g=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP)))||void 0===g?void 0:g.classList)||void 0===v||v.remove(Pe.CHECKLIST_DISABLE_MSG),null===(f=null==E?void 0:E.classList)||void 0===f||f.remove(Pe.HIDE_ELEMENT),null===(b=null===(m=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_SEND_BLOCK)))||void 0===m?void 0:m.classList)||void 0===b||b.remove(Pe.HIDE_ELEMENT)))}))}))},e.prototype.selectNextStep=function(e,t,o,n){var s,a,i=!0,r=0;this.closeAllStepsInStage(e,t,o);for(var l=0,c=null===(a=null===(s=e.checklists[t])||void 0===s?void 0:s.stages[o])||void 0===a?void 0:a.steps;l<c.length;l++){var d=c[l];if(!d.complete){d.ongoing=!0,i=!1,this.selSpInx=r,this.scrollView(d._id,n);break}r++}return i},e.prototype.closeAllStepsInStage=function(e,t,o){var n;null===(n=e.checklists[t])||void 0===n||n.stages.forEach((function(e){null==e||e.steps.forEach((function(e){e.ongoing=!1}))}))},e.prototype.selectStepForRandom=function(e,t,o,n){this.selStInx=e,this.selSpInx=o,t.ongoing=!0;var s=t._id;this.scrollView(s,n)},e.prototype.selectStage=function(e,t,o,n){this.selStInx=o,this.selectNextStep(e,t,o,n),this.updateStepTemplate(e,n)},e.prototype.scrollView=function(e,t){t.chatEle.querySelector("#".concat(e))&&t.chatEle.querySelector("#".concat(e)).scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},e.prototype.showProceedToCloseBtn=function(e){var t;(null===(t=null==e?void 0:e.chatEle)||void 0===t?void 0:t.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN))).classList.remove(Pe.HIDE_ELEMENT)},e.prototype.clickStep=function(e,t,o,n,s){var a=this.selCLInx,i=this.selStInx,r=this.selSpInx,l=e.checklists,c=l[a];(null==o?void 0:o.complete)||(null==o?void 0:o.ongoing)||"random"===(null==c?void 0:c.order)&&(l[a].stages[i].steps[r].ongoing=!1,this.selectStepForRandom(t,o,n,s),this.updateStepTemplate(e,s))},e.prototype.getNumberstepCompInStage=function(e){for(var t,o,n=0,s=0,a=null===(o=null===(t=e.checklists[this.selCLInx])||void 0===t?void 0:t.stages[this.selStInx])||void 0===o?void 0:o.steps;s<a.length;s++){a[s].complete&&(n+=1)}return n},e.prototype.handleStageCheck=function(e,t,o,n){var s,a,i=null===(s=null==n?void 0:n.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.SELECTED_STAGE));i&&(i.innerText=null===(a=o[t])||void 0===a?void 0:a.name),null==o||o.map((function(o,n){var s,a,i=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_SELECTED_STAGE_CHECK).concat(n));n===t?null===(s=null==i?void 0:i.classList)||void 0===s||s.remove(Pe.HIDE_ELEMENT):null===(a=null==i?void 0:i.classList)||void 0===a||a.add(Pe.HIDE_ELEMENT)}))},e.prototype.selectNextStage=function(e,t,o,n){var s,a,i,r;if(this.selectNextStep(e,t,o,n)&&(null===(s=e.checklists[t])||void 0===s?void 0:s.stages[o+1])&&("Close"!=(null===(a=e.checklists[t])||void 0===a?void 0:a.stages[o+1].name)||this.isProceedToClose)){var l=null===(i=null==n?void 0:n.chatEle)||void 0===i?void 0:i.querySelector("".concat(Pe.STAGE_DROPDOWN));this.handleStageCheck(l,o+1,null===(r=e.checklists[t])||void 0===r?void 0:r.stages,n),this.selectStage(e,t,o+1,n)}this.updateStepTemplate(e,n)},e.prototype.confirmationBtnForPlaybook=function(e,t,o){var n="yes"===e.title?Ue.PLAYBOOK_CONFIRMATION_YES:Ue.PLAYBOOK_CONFIRMATION_NO;o.emit(Ue.BEFORE_VIEW_INIT,t,{event:n,data:{btn:e}})},e}();const On=Nn;const Ln=function(){function e(e){this.eventMapper=[],this.hostInstance=e}return e.prototype.addEventListener=function(e,t,o,n){var s;!n&&this.eventMapper.filter((function(o){return o.querySelector===e&&o.event==t})).length||(this.eventMapper.push({querySelector:e,event:t,cb:o}),null===(s=(n||this.hostInstance.chatEle).querySelector(e))||void 0===s||s.addEventListener(t,o))},e.prototype.removeEventListener=function(e,t,o){var n,s,a=this.eventMapper.filter((function(o){return o.querySelector==e&&o.event==t}));null===(n=(o||this.hostInstance.chatEle).querySelector(e))||void 0===n||n.removeEventListener(t,null===(s=a[0])||void 0===s?void 0:s.cb),this.eventMapper.splice(this.eventMapper.findIndex((function(o){return o.querySelector==e&&o.event==t})),1)},e}();var Rn,Mn=(Rn=function(e,t){return Rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},Rn(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}Rn(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),Pn=function(e){function t(){var t=e.call(this)||this;return t.handleOverrideMode=function(e,o){var n,s=t.rootService.connectionDetails,a={agentId:"",botId:s.botId,conversationId:s.conversationId,query:"",enable_override_userinput:e,experience:null===(n=t.rootService.connectionDetails)||void 0===n?void 0:n.channel,positionId:o};t.rootService.proactiveMode=!e,t.socketConnection.emitEvents(Fe.enable_override_userinput,a),t.rootService.OverRideMode=e},t}return Mn(t,e),t.prototype.show=function(e){var t;this.config=e,this.applyBranding(null===(t=e.branding)||void 0===t?void 0:t.colors),this.initShow(e),this.eventManager=new Ln(this)},t.prototype.sendUserMessage=function(e){var t,o,n,s,a,i,r;if(e.message&&"user"===(null===(o=null===(t=e.author)||void 0===t?void 0:t.type)||void 0===o?void 0:o.toLowerCase())){var l=null===(n=this.rootService.connectionDetails)||void 0===n?void 0:n.conversationId,c=null===(s=this.rootService.connectionDetails)||void 0===s?void 0:s.botId,d={author:e.author,type:null===(i=null===(a=e.author)||void 0===a?void 0:a.type)||void 0===i?void 0:i.toUpperCase(),conversationId:l,message:e.message,botId:c};if(this.emit(Ke.USER_TRANSCRIPT_MSG,d),this.socketConnection.emitEvents(Fe.user_sent_message,d),this.rootService.proactiveMode){var p={author:e.author,botId:c,conversationId:l,experience:null===(r=this.rootService.connectionDetails)||void 0===r?void 0:r.channel,query:e.message,positionId:this.rootService.isAutomationOnGoing?this.rootService.currentPositionId:null};(null==e?void 0:e.customData)&&(p.customData=JSON.parse(JSON.stringify(null==e?void 0:e.customData))),(null==e?void 0:e.secureCustomData)&&(p.secureCustomData=null==e?void 0:e.secureCustomData),this.socketConnection.emitEvents(Fe.agent_assist_request,p)}}else this.emit(Ue.ON_ERROR,{message:"Missing required fields to send user message"})},t.prototype.sendAgentMessage=function(e){var t,o,n,s,a,i;if(e.message&&"agent"===(null===(o=null===(t=e.author)||void 0===t?void 0:t.type)||void 0===o?void 0:o.toLowerCase())){var r=null===(n=this.rootService.connectionDetails)||void 0===n?void 0:n.conversationId,l=null===(s=this.rootService.connectionDetails)||void 0===s?void 0:s.botId,c={author:e.author,type:null===(i=null===(a=e.author)||void 0===a?void 0:a.type)||void 0===i?void 0:i.toUpperCase(),conversationId:r,message:e.message,botId:l};this.emit(Ke.AGENT_TRANSCRIPT_MSG,c),(null==e?void 0:e.customData)&&(c.customData=JSON.parse(JSON.stringify(null==e?void 0:e.customData))),(null==e?void 0:e.secureCustomData)&&(c.secureCustomData=null==e?void 0:e.secureCustomData),this.socketConnection.emitEvents(Fe.agent_sent_message,c)}else this.emit(Ue.ON_ERROR,{message:"Missing required fields to send agent message"})},t.prototype.initShow=function(e){var t=this;this.renderLoader(),this.socketConnection=new wn(this),this.rootService=new On,this.rootService.connectionDetails=e.connectionDetails,this.JWTSetup(e).then((function(o){t.rootService.grantResponseObj=o,e.JWT_RESP=o,t.socketConnection.configOptions=e;var n=e.connectionDetails.botId;t.getAASettings(n).then((function(o){var n;t.rootService.aaSettings=(null==o?void 0:o.agentAssistSettings)||{},t.socketConnection.socketConnection(e),n=ne(oo,{},t),t.chatEle=n,t.render(n),t.bindEvents()}))})).catch((function(e){}))},t.prototype.getAASettings=function(e){var t=this.rootService.connectionDetails.channel;return Dt("get_aa_settings",{method:"GET",headers:{"Content-Type":"application/json"}},this,{botId:e,channel:t})},t.prototype.JWTSetup=function(e){var t=e.connectionDetails||{},o={assertion:t.token,botInfo:{taskBotId:t.botId,chatBot:"Sample Bot"},token:{}};return Dt("jwt_grant",{method:"POST",body:JSON.stringify(o)},this)},t.prototype.render=function(e){this.clearContainer(),document.getElementsByClassName(this.config.container)[0].append(e)},t.prototype.clearContainer=function(){for(var e=document.getElementsByClassName(this.config.container),t=0;t<e.length;t++)for(;e[t].firstChild;)e[t].removeChild(e[t].firstChild)},t.prototype.renderLoader=function(){var e=ne(to,{},this);document.getElementsByClassName(this.config.container)[0].append(e)},t.prototype.bindEvents=function(){var e=this;this.on("ON_SOCKET_CONNECTION",(function(t){e.commonEmitEvents(t)}))},t.prototype.commonEmitEvents=function(e){var t,o,n=null==e?void 0:e.connectionDetails,s=n.botId,a=n.conversationId,i=n.autoBotId,r=n.interactiveLanguage,l=n.userName,c=n.customData,d=n.token,p=n.channel,u="",h="",g="";c&&(null===(t=Object.keys(c))||void 0===t?void 0:t.length)>0&&"smartassist-color-scheme"!==(null===(o=null==e?void 0:e.connectionDetails)||void 0===o?void 0:o.source)&&(u=c),null!=r&&"''"!==r&&(h=r),i&&"undefined"!==i&&(g=i);var v={waitTime:2e3,userName:l,id:a,isSendWelcomeMessage:!0,agentassistInfo:{},botId:s,sendMenuRequest:!0,uId:"",sId:"",experience:p,jToken:d,conversationId:a,autoBotId:g,language:h,allQueryParams:null==e?void 0:e.connectionDetials,customData:u};this.welComeMsgReq(v),this.handleOverrideMode(!1,null);var f={botId:s,conversationId:a,experience:p,autoBotId:g,language:h};this.menuReq(f)},t.prototype.prepareAgentAssistRequestParams=function(e){var t,o,n,s,a,i,r,l,c=null===(o=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===o?void 0:o.connectionDetails,d={conversationId:e.conversationId,query:e.value,botId:e.botId,agentId:"",experience:null==c?void 0:c.channel,positionId:e.positionId,intType:"assist"};return e.intentName&&(d.intentName=e.value),e.entities?d.entities=e.entities:d.entities=[],e.childBotId&&(d.childBotId=e.childBotId),e.childBotName&&(d.childBotName=e.childBotName),(null==c?void 0:c.autoBotId)&&"undefined"!==(null==c?void 0:c.autoBotId)?d.autoBotId=c.autoBotId:d.autoBotId="",e.intentName&&e.userInput&&(d.query=e.userInput),this.rootService.isAutomationOnGoing&&(d.positionId=this.rootService.currentPositionId),Array.isArray(e.traits)&&(null===(n=null==e?void 0:e.traits)||void 0===n?void 0:n.length)&&(d.traits=e.traits),e.taskRefId&&(d.taskRefId=e.taskRefId),e.dialogId&&(d.dialogId=e.dialogId),e.isDiscard&&(d.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(d.query=(null===(a=null===(s=null==e?void 0:e.attachments[0])||void 0===s?void 0:s.url)||void 0===a?void 0:a.fileUrl)||"",d.attachments=null==e?void 0:e.attachments),(null==e?void 0:e.author)&&(d.firstName=(null===(i=null==e?void 0:e.author)||void 0===i?void 0:i.firstName)||"",d.lastName=(null===(r=null==e?void 0:e.author)||void 0===r?void 0:r.lastName)||"",d.type=(null===(l=null==e?void 0:e.author)||void 0===l?void 0:l.type)||""),d=this.addSourceMsgIdToRequestParams(e,d)},t.prototype.prepareAgentAssistAgentRequestParams=function(e){var t,o,n,s,a,i=null===(o=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===o?void 0:o.connectionDetails,r={isSearch:e.isSearch,conversationId:e.conversationId,query:e.value,botId:e.botId,experience:null==i?void 0:i.channel,positionId:null==e?void 0:e.positionId,childBotId:(null==e?void 0:e.childBotId)||"",childBotName:(null==e?void 0:e.childBotName)||"",intType:"myBot"};return e.intentName&&(r.intentName=e.intentName),(null==i?void 0:i.autoBotId)&&"undefined"!==(null==i?void 0:i.autoBotId)?r.autoBotId=i.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),Array.isArray(e.traits)&&(null===(n=null==e?void 0:e.traits)||void 0===n?void 0:n.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.query=(null===(a=null===(s=null==e?void 0:e.attachments[0])||void 0===s?void 0:s.url)||void 0===a?void 0:a.fileUrl)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},t.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},t.prototype.welComeMsgReq=function(e){this.socketConnection.emitEvents(Fe.welcome_message_request,e)},t.prototype.menuReq=function(e){this.socketConnection.emitEvents(Fe.agent_menu_request,e)},t.prototype.openAssistTab=function(e,t){this.emit(je.UPDATE_ACTIVE_TAB,{activeTab:"ast",isActive:t,footerTag:e})},t.prototype.openTranscriptTab=function(e,t){this.emit(je.UPDATE_ACTIVE_TAB,{activeTab:"trnspt",isActive:t,footerTag:e})},t.prototype.openSearchTab=function(e,t){this.emit(je.UPDATE_ACTIVE_TAB,{activeTab:"srch",isActive:t,footerTag:e})},t.prototype.openMybotTab=function(e,t){this.emit(je.UPDATE_ACTIVE_TAB,{activeTab:"mB",isActive:t,footerTag:e})},t.prototype.openPlaybookTab=function(e,t){this.emit(je.UPDATE_ACTIVE_TAB,{activeTab:"playbook",isActive:t,footerTag:e})},t.prototype.sendChecklistOpenedEvent=function(e){this.emit(je.CHECKLIST_OPEN,e)},t.prototype.sendChecklistResumeEvent=function(e){this.emit(je.CHECLIST_RESUME,e)},t.prototype.sendChecklistStepCloseEvent=function(e){this.emit(je.CHECKLIST_STEP_CLOSE,e)},t.prototype.sendChecklistProceedToCloseEvent=function(e){this.emit(je.CHECKLIST_PROCEED_TO_CLOSE,e)},t.prototype.endOfConversation=function(){this.emit(Ke.END_OF_CONVERSATION)},t.prototype.applyBranding=function(e){var t={primay:"--AA-primary-color",secondary:"--AA-secondary-color",primaryText:"--AA-primary-text",secondaryText:"--AA-secondary-text",bodyBackground:"--AA-body-background",warningColor:"--AA-warning-color"};if(t)for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var n=t[o];document.documentElement.style.setProperty(n,e[o])}},t}(k);const Dn=Pn;const Bn={connectionDetails:{},container:"aa-web-sdk-window",branding:{colors:{primay:"#2970FF",secondary:"#EAECF0",primaryText:"#101828",secondaryText:"#FFFFFF",bodyBackground:"#FFFFFF",warningColor:"#D92D20"}}};var Hn=n.h,Gn=n.d;export{Hn as AAConfig,Gn as AAWindow};
|
|
1
|
+
var e={958:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,'.aa-heading-two-xl{letter-spacing:-0.02em;font-size:72px;font-weight:400;line-height:90px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-two-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-two-xl.medium{font-weight:500}.aa-heading-two-xl.semibold{font-weight:600}.aa-heading-two-xl.bold{font-weight:700}.aa-heading-two-xl.center{text-align:center}.aa-heading-xl{letter-spacing:-0.02em;font-size:60px;font-weight:400;line-height:72px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xl.medium{font-weight:500}.aa-heading-xl.semibold{font-weight:600}.aa-heading-xl.bold{font-weight:700}.aa-heading-xl.center{text-align:center}.aa-heading-lg{letter-spacing:-0.96px;font-size:48px;font-weight:400;line-height:60px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-lg.medium{font-weight:500}.aa-heading-lg.semibold{font-weight:600}.aa-heading-lg.bold{font-weight:700}.aa-heading-lg.center{text-align:center}.aa-heading-md{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-md.medium{font-weight:500}.aa-heading-md.semibold{font-weight:600}.aa-heading-md.bold{font-weight:700}.aa-heading-md.center{text-align:center}.aa-heading-sm{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-sm.medium{font-weight:500}.aa-heading-sm.semibold{font-weight:600}.aa-heading-sm.bold{font-weight:700}.aa-heading-sm.center{text-align:center}.aa-heading-xs{font-size:24px;font-weight:400;line-height:32px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xs.medium{font-weight:500}.aa-heading-xs.semibold{font-weight:600}.aa-heading-xs.bold{font-weight:700}.aa-heading-xs.center{text-align:center}.aa-text-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xl.medium{font-weight:500}.aa-text-xl.semibold{font-weight:600}.aa-text-xl.bold{font-weight:700}.aa-text-xl.center{text-align:center}.aa-text-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-lg.medium{font-weight:500}.aa-text-lg.semibold{font-weight:600}.aa-text-lg.bold{font-weight:700}.aa-text-lg.center{text-align:center}.aa-text-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-md.medium{font-weight:500}.aa-text-md.semibold{font-weight:600}.aa-text-md.bold{font-weight:700}.aa-text-md.center{text-align:center}.aa-text-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-sm.medium{font-weight:500}.aa-text-sm.semibold{font-weight:600}.aa-text-sm.bold{font-weight:700}.aa-text-sm.center{text-align:center}.aa-text-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xs.medium{font-weight:500}.aa-text-xs.semibold{font-weight:600}.aa-text-xs.bold{font-weight:700}.aa-text-xs.center{text-align:center}.aa-text-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xxs.medium{font-weight:500}.aa-text-xxs.semibold{font-weight:600}.aa-text-xxs.bold{font-weight:700}.aa-text-xxs.center{text-align:center}.aa-desc-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xl.medium{font-weight:500}.aa-desc-xl.semibold{font-weight:600}.aa-desc-xl.bold{font-weight:700}.aa-desc-xl.center{text-align:center}.aa-desc-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-lg.medium{font-weight:500}.aa-desc-lg.semibold{font-weight:600}.aa-desc-lg.bold{font-weight:700}.aa-desc-lg.center{text-align:center}.aa-desc-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-md.medium{font-weight:500}.aa-desc-md.semibold{font-weight:600}.aa-desc-md.bold{font-weight:700}.aa-desc-md.center{text-align:center}.aa-desc-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-sm.medium{font-weight:500}.aa-desc-sm.semibold{font-weight:600}.aa-desc-sm.bold{font-weight:700}.aa-desc-sm.center{text-align:center}.aa-desc-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xs.medium{font-weight:500}.aa-desc-xs.semibold{font-weight:600}.aa-desc-xs.bold{font-weight:700}.aa-desc-xs.center{text-align:center}.aa-desc-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xxs.medium{font-weight:500}.aa-desc-xxs.semibold{font-weight:600}.aa-desc-xxs.bold{font-weight:700}.aa-desc-xxs.center{text-align:center}*::before,*::after{box-sizing:border-box}*{font-family:var(--AA-font-family);box-sizing:border-box}button{cursor:pointer}applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,summary,time,mark,audio,video{margin:0;padding:0;border:0;vertical-align:baseline}h1,h2,h3,h4,h5,h6{text-align:start}html{overflow:hidden;height:100%}body{height:100%;line-height:normal;color:var(--AA-gloabl-text-color);padding:20px}:focus-visible{outline-color:var(--AA-global-theme-bg);outline-offset:1px;outline-style:auto}body::-webkit-scrollbar{width:10px;height:10px;cursor:pointer}::-webkit-scrollbar{width:6px;height:6px;cursor:pointer}::-webkit-scrollbar-thumb{background-color:var(--AA-gloabl-bg-secondary);border-radius:7px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background-color:var(--AA-gloabl-border)}body{margin:0;font-size:14px;font-weight:400;line-height:normal;color:var(--AA-gloabl-text-color);background-color:var(--AA-global-white-bg);-webkit-text-size-adjust:100%}h6,h5,h4,h3,h2,h1{margin-top:0;margin-bottom:0px;font-weight:400;line-height:normal}.paragraph{margin:0;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color)}.paragraph.semibold{font-weight:600}.h-100{height:100%}.w-100{width:100%}p{margin:0}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}.disabled-msg{opacity:.5;pointer-events:none}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dd{margin-bottom:.5rem;margin-left:0}b,strong{font-weight:700}sub,sup{position:relative;line-height:0;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}a{color:var(--AA-global-theme-text-color);text-decoration:none;cursor:pointer}a:hover{color:var(--AA-global-theme-text-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}figure{margin:0;line-height:0}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}th{font-weight:500;text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none !important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button:disabled,[type=button]:disabled,[type=reset]:disabled,[type=submit]:disabled{opacity:.3;pointer-events:none}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}iframe{border:0}[hidden]{display:none !important}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.aa-d-none{display:none !important}.aa-hidden{display:none !important}.more-link-text{cursor:pointer;border:0;background:rgba(0,0,0,0);padding:0;color:var(--AA-global-theme-text-color)}.aa-solidbtn{border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);padding:5px 11px;display:flex;align-items:center;justify-content:center;min-height:24px}.aa_btn{padding:4px 14px;height:30px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);box-shadow:0px 1px 2px 0px rgba(16,24,40,.05);display:inline-flex;align-items:center;justify-content:center;text-align:center;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;transition:.2s all ease}.aa_btn.w-100{width:100%}.aa_btn:disabled{opacity:.3}.primaryBtn{border:1px solid var(--AA-global-theme-text-color);background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.primaryBtn:focus{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:active{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:hover{border:1px solid var(--AA-global-theme-bg);background:var(--AA-global-theme-bg)}.h_100{height:100%}@keyframes bottomToTopMove{0%{opacity:0;transform:translateY(100%);display:none}60%{display:none;opacity:0}100%{opacity:1;display:block;transform:translateY(0%)}}.animate-compo-slide-up-wrapper{height:100%;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}:root{--AA-font-family: "Inter";--AA-primary-color:#2970FF;--AA-secondary-color:#EAECF0;--AA-primary-text:#101828;--AA-secondary-text:#FFFFFF;--AA-body-background:#FFFFFF;--AA-warning-color:#D92D20;--AA-global-theme-bg:var(--AA-primary-color);--AA-global-theme-text-color:var(--AA-primary-color);--AA-gloabl-bg-secondary:var(--AA-secondary-color);--AA-global-white-color:var(--AA-secondary-text);--AA-global-white-bg:var(--AA-body-background);--AA-gloabl-text-color:var(--AA-primary-text);--AA-gloabl-text-desc-color:var(--AA-primary-text);--AA-gloabl-border:var(--AA-secondary-color);--AA-gloabl-scrollbar-bg:var(--AA-secondary-color)}.aa-toggle-switch{position:relative;display:block}.aa-toggle-switch input{opacity:0;position:absolute;z-index:9;cursor:pointer;width:28px;height:16px;left:0;top:0px;line-height:normal;font-size:0}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn{background-color:var(--AA-global-theme-bg)}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn::before{-webkit-transform:translateX(12px);-ms-transform:translateX(12px);transform:translateX(12px)}.aa-toggle-switch input:checked+.aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch input:checked+.aa-slider span.enabled{display:block}.aa-toggle-switch input:checked+.aa-slider span.disabled{display:none}.aa-toggle-switch input:checked:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch input:disabled{cursor:auto}.aa-toggle-switch input:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch .aa-slider{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(0,0,0,0);padding:0;border:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent{position:relative;width:28px;height:16px}.aa-toggle-switch .aa-slider .slide-parent .slider-btn{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0;right:0;bottom:0;transition:.4s;border-radius:10px;background:var(--AA-global-white-bg);border:0;padding:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent .slider-btn:focus{box-shadow:0px 0px 0px 4px #eff4ff}.aa-toggle-switch .aa-slider .slide-parent .slider-btn::before{position:absolute;content:"";height:12px;width:12px;top:2px;left:2px;right:0;background-color:var(--AA-global-white-bg);transition:.4s;border-radius:50%;filter:drop-shadow(0px 0.778px 1.556px rgba(16, 24, 40, 0.06)) drop-shadow(0px 0.778px 2.333px rgba(16, 24, 40, 0.1))}.aa-toggle-switch .aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch .aa-slider span.no{color:var(--AA-gloabl-text-color)}.aa-toggle-switch .aa-slider span.enabled{color:var(--AA-gloabl-text-color);display:none}.aa-toggle-switch .aa-slider span.disabled{display:block}.aa-dropdown{position:relative}.aa-dropdown .aa-dropdown-toggle{white-space:nowrap}.aa-dropdown.show .aa-dropdown-content{display:block}.aa-dropdown.show .aa-dropdown-content svg.arrow-icon{transform:rotate(180deg)}.aa-dropdown-content{position:absolute;z-index:1000;display:none;min-width:auto;margin:0;color:var(--AA-gloabl-text-color);text-align:left;list-style:none;background-clip:padding-box;border-radius:8px;background:var(--AA-global-white-bg);box-shadow:0px 4px 8px 0px rgba(32,33,36,.15);border:0;padding:8px 12px}.aa-dropdown-item{display:block;width:100%;padding:8px 14px;clear:both;text-align:inherit;text-decoration:none;white-space:nowrap;background-color:rgba(0,0,0,0);border:0;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;border-radius:6px}.aa-dropdown-item:hover,.aa-dropdown-item:focus{color:var(--AA-gloabl-text-color);background:var(--AA-gloabl-bg-secondary)}.aa-dropdown-item.active,.aa-dropdown-item:active{color:var(--AA-gloabl-text-color);text-decoration:none;background:var(--AA-gloabl-bg-secondary)}.aa-dropdown-item.disabled,.aa-dropdown-item:disabled{opacity:.5;pointer-events:none;background-color:rgba(0,0,0,0)}.playbook-dropdown-content{min-width:250px;max-height:300px;overflow:auto;max-width:350px}.playbook-dropdown-content .heading-text-scripts{border-radius:8px 8px 0px 0px;background:var(--AA-gloabl-bg-secondary);padding:8px 10px;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:600;line-height:normal;text-transform:capitalize}.playbook-dropdown-content .aa-dropdown-item{display:flex;align-items:center;gap:5px;margin:1px 0;white-space:normal}.playbook-dropdown-content .aa-dropdown-item.selected{background:var(--AA-gloabl-bg-secondary)}.playbook-dropdown-content .aa-dropdown-item p{width:100%;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.playbook-dropdown-content .aa-dropdown-item .primaryBtn{border-radius:16px;background:var(--AA-global-theme-bg);color:var(--AA-global-white-color);font-size:12px;font-weight:500;height:22px;padding:0 8px;flex-shrink:0}.playbook-dropdown-content .aa-dropdown-item span{flex-shrink:0;color:var(--AA-gloabl-text-desc-color);font-size:12px;font-weight:400;line-height:18px;opacity:.8}',""]);const r=i},773:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".agentassist-widget-main-chat-container-wrapper{height:100%;display:flex}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable{box-shadow:0px 4px 12px 2px rgba(32,33,36,.12);border-radius:4px}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable .section-agent-aa-wrapper{box-shadow:none}.agentassist-widget-main-chat-container-wrapper nav{flex-shrink:0;border-radius:4px 0px 0px 4px;border-right:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);display:flex;padding:11px;flex-direction:column;align-items:center;gap:12px;width:72px}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper{width:100%;display:flex;flex-direction:column;height:100%;position:relative;overflow:hidden;box-shadow:0px 4px 12px 2px rgba(32,33,36,.12)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper header{border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper .body-container-aa{flex:1 1 auto;position:relative;overflow:hidden}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper footer{border-radius:0px 0px 4px 4px;background:var(--AA-gloabl-bg-secondary)}@-webkit-keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.nudges-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;max-width:418px;margin:0 auto;left:0;right:0;display:flex;align-items:flex-start;justify-content:center;top:40px;padding:10px 16px;-webkit-animation-name:NudgeslideInDown;animation-name:NudgeslideInDown;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.nudges-wrapper-fixed .nudges-template-data{display:flex;flex-direction:column;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card{border-radius:24px;background:var(--success-500-main, #22C55E);box-shadow:15px 15px 26px 0px rgba(0,0,0,.15);display:flex;align-items:center;padding:6px 16px;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge{background:var(--AA-gloabl-border)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge p{color:var(--AA-gloabl-text-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge .close-nudge svg path{stroke:#000}.nudges-wrapper-fixed .nudges-template-data .nudges-card.warning-nudge{background:var(--warning-500-main, #F59E0B)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.danger-nudge{background:var(--destructive-500-main, #EF4444)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block{flex-shrink:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block svg path{fill:#fff}.nudges-wrapper-fixed .nudges-template-data .nudges-card p{color:var(--AA-global-white-color);font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge{width:16px;height:16px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color);font-size:16px}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge svg path{stroke:#fff}@-webkit-keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}@keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}.hints-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;display:flex;align-items:flex-end;justify-content:center;bottom:56px;overflow:auto;max-height:80%;max-width:100%;margin:0 auto;left:0;right:0;-webkit-animation-name:HintslideInUp;animation-name:HintslideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.hints-wrapper-fixed .hints-template-data{display:flex;flex-direction:column;gap:10px;overflow:auto;height:100%;max-height:500px;padding:10px 16px}.hints-wrapper-fixed .hints-template-data .hint-card{border-radius:12px;background:var(--success-600, #16A34A);box-shadow:0px 25px 50px -12px rgba(16,24,40,.25);position:relative;padding:12px;-webkit-animation-name:shakeHint;animation-name:shakeHint;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-delay:1s;-webkit-animation-delay:1s}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint{background:var(--gray-neutral-500, #6C737F)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block{border:2px solid var(--Neutral-200, #E5E5E5)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block svg path{fill:#667085}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint{background:var(--warning-500, #F79009)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block{border:2px solid var(--Warning-100, #FEF0C7)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block svg path{fill:#f79009}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint{background:var(--destructive-500-main, #EF4444)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block{border:2px solid var(--error-200, #FECDCA)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block svg path{stroke:#f04438}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info{display:flex;align-items:center;gap:6px}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .icon_block{display:flex;width:24px;height:24px;justify-content:center;align-items:center;border-radius:28px;border:2px solid var(--success-100, #D1FADF);background:#fff;flex-shrink:0;color:#039855}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info h1{color:#fff;font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .close-hint{flex-shrink:0;width:20px;height:20px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}.hints-wrapper-fixed .hints-template-data .hint-card .body-hint{padding:6px 0;color:#fff;font-size:14px;font-weight:400;line-height:20px;margin:0}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint{text-align:right}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint button{color:#fff;font-size:14px;font-weight:500;line-height:20px;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer}@-webkit-keyframes kr-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes kr-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.loader-progress{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999}.loader-progress .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress img{width:30px;height:30px}.loader-progress-individual{display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;height:100%;z-index:9999}.loader-progress-individual .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:24px;height:24px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-individual img{width:24px;height:24px}.loader-progress-main{display:flex;align-items:center;justify-content:center;position:relative;top:0;left:0;width:100%;height:100%;z-index:9999;border:.5px solid var(--AA-gloabl-bg-secondary);border-radius:5px}.loader-progress-main .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-main img{width:30px;height:30px}.summery-wrapper-container{position:absolute;width:100%;height:100%;background:rgba(52,64,84,.7);border-radius:6px;display:flex;align-items:center;justify-content:center}.summery-wrapper-container .summery-popup-data{background:var(--AA-global-white-bg);border-radius:6px;max-height:80%}.summery-wrapper-container .summery-popup-data .title-block{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .title-block h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:16px;width:100%}.summery-wrapper-container .summery-popup-data .title-block .ai-block{flex-shrink:0;display:flex;align-items:center;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;gap:10px;opacity:.6}.summery-wrapper-container .summery-popup-data .title-block .ai-block svg path{fill:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery{background:rgba(0,0,0,0);border:0;display:flex;align-items:center;justify-content:center;padding:0;width:16px;height:16px;font-size:16px;color:var(--AA-gloabl-text-color);cursor:pointer}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg{width:16px;height:16px}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg path{stroke:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .input-block{padding:8px;position:relative}.summery-wrapper-container .summery-popup-data .input-block textarea{min-height:200px}.summery-wrapper-container .summery-popup-data .input-block .recylin-bin-btn{border:0;padding:0;background:var(--AA-global-white-bg);cursor:pointer;z-index:1;position:absolute;right:20px;bottom:20px}.summery-wrapper-container .summery-popup-data .actions-footer{padding:8px;display:flex;align-items:center;gap:10px;justify-content:end;position:relative;min-height:52px;border-top:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .actions-footer .footer-btns-left-sec{display:flex;align-items:center;gap:8px}",""]);const r=i},567:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"@keyframes slideInUpText{0%{-webkit-transform:translateY(5px);transform:translateY(5px);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.dis-none{display:none}.widget-footer-wrapper{display:inline-block;width:100%;position:relative}.widget-footer-wrapper .logo-left-menu{display:none}.widget-footer-wrapper .line-divider{background:var(--AA-gloabl-bg-secondary);width:10px;height:2px;display:none;border-radius:4px;margin:0 auto;flex-shrink:0}.widget-footer-wrapper .footer-links-data{display:flex;padding:8px 16px;width:100%;gap:32px;min-height:50px}@media screen and (max-width: 500px){.widget-footer-wrapper .footer-links-data{gap:initial}}.widget-footer-wrapper .footer-links-data .logo-sec{display:none}.widget-footer-wrapper .footer-links-data .footer-list-buttons{width:100%;display:flex;align-items:center}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{border:0;padding:0;background:rgba(0,0,0,0);min-width:62px;height:40px;display:flex;justify-content:center;align-items:center;gap:4px;flex:1;transition:.2s all ease;color:var(--AA-gloabl-text-color);border-radius:45px}@media screen and (max-width: 600px){.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column}}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg:hover{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-mB svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-ast svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-trnspt svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover svg path{stroke:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer .svg_icon{line-height:0;font-size:16px}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer .svg_icon svg{width:18px;height:18px}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{margin:0;font-size:10px;font-weight:600;line-height:normal;-webkit-animation-name:slideInUpText;animation-name:slideInUpText;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.widget-footer-wrapper .settings-dark-theme{display:none}.widget-footer-wrapper .footer-action-items{padding:10px 0;display:none}nav{display:block;height:100%;width:100%;border-radius:4px 0px 0px 4px;background:var(--AA-global-theme-bg)}nav .widget-footer-wrapper{height:100%;border-radius:4px 0px 0px 4px;display:flex;flex-direction:column;gap:12px;justify-content:center}nav .widget-footer-wrapper .logo-left-menu{display:flex;align-items:center;height:48px;justify-content:center;border-radius:4px;width:100%;background:var(--AA-gloabl-bg-secondary)}nav .widget-footer-wrapper .logo-left-menu svg{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .line-divider{display:block}nav .widget-footer-wrapper .footer-links-data{flex-direction:column;padding:0px;gap:12px;flex:1 1 auto;overflow:auto}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column;padding:8px 0;border-radius:4px;gap:8px;min-width:auto;height:auto;overflow:hidden}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{font-weight:500;width:100%}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer svg path{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color) !important;background:var(--AA-gloabl-bg-secondary) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .settings-dark-theme{flex-shrink:0;display:flex !important;flex-direction:column;gap:8px}nav .widget-footer-wrapper .settings-dark-theme button{display:flex;padding:0px;flex-direction:column;align-items:center;gap:8px;align-self:stretch;border:0;background:rgba(0,0,0,0);height:32px;justify-content:center;font-size:16px;color:var(--AA-gloabl-text-color);transition:.2s all ease}nav .widget-footer-wrapper .settings-dark-theme button:hover,nav .widget-footer-wrapper .settings-dark-theme button.selected-tab-action{color:var(--AA-global-theme-text-color)}nav .widget-footer-wrapper .footer-action-items{padding:10px 0;display:flex;align-items:center;justify-content:center}",""]);const r=i},724:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.sugestions-block .suggestion-header .count-text{flex-shrink:0;border-radius:16px;background:var(--AA-gloabl-bg-secondary);padding:0px 8px;height:15px;display:flex;justify-content:center;align-items:center;color:var(--AA-global-theme-text-color)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec{width:100%;display:flex;align-items:center;gap:4px;overflow:hidden}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .sent-msg-text{color:var(--AA-global-theme-text-color);margin:0 0 0 auto}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph{transition:max-height .3s ease;overflow:hidden;max-height:50px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded{max-height:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded+.aa-more-button{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph:not(.expanded)+.aa-more-button{display:block}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names{display:flex;align-items:flex-start;gap:8px;overflow:hidden;flex-wrap:wrap;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag{display:flex;padding:2px 8px;justify-content:center;align-items:center;gap:4px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);transition:.2s all ease;flex:0 auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover a{text-decoration-line:underline;opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag span{display:flex;width:14px;height:14px;padding:0;justify-content:center;align-items:center;flex-shrink:0;border-radius:16px;background:var(--AA-global-white-bg);color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:16px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag a{overflow:hidden;color:var(--AA-gloabl-text-desc-color);text-align:center;text-overflow:ellipsis;font-size:12px;font-weight:400;line-height:18px;opacity:.8}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.assist-suggestions-list{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.assist-suggestions-list .sugestions-block{width:100%;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.assist-suggestions-list .sugestions-block .suggestion-body-search{padding-bottom:8px}",""]);const r=i},544:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".assist-data-wrapper-container{height:100%;padding:8px;width:100%}.assist-data-wrapper-container .assist-block-content{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);border-radius:4px}.assist-data-wrapper-container .assist-block-content .assist-header-content{display:flex;align-items:center;padding:8px;min-height:36px;gap:10px;border-bottom:1px solid var(--AA-gloabl-border)}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info{width:100%;overflow:hidden}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info{display:flex;align-items:center;gap:6px}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:20px;margin:0 0 2px 0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist{flex:1 1 auto;height:100%;overflow:auto}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper{padding:12px;border-radius:8px;border:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary);margin:8px}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text svg{flex-shrink:0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper .heading-text svg path{fill:var(--AA-gloabl-text-color)}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li{color:var(--AA-gloabl-text-color);font-size:13px;font-weight:400;line-height:20px;list-style-type:none;display:flex;align-items:flex-end;gap:8px;width:100%}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li span{width:100%}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn{padding:0;width:25px;height:25px;flex-shrink:0;align-items:center;justify-content:center;font-size:16px;border:0;background:rgba(0,0,0,0);display:flex;cursor:pointer;border-radius:4px;transition:.2s all ease}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn svg path{stroke:var(--AA-gloabl-text-color)}.assist-data-wrapper-container .assist-block-content .scroll-data-assist .summery-conv-banner-wrapper li .copy-btn:hover{background:var(--AA-global-white-bg)}.empty-listing-triggers{display:flex;align-items:center;justify-content:center;height:100%;flex-direction:column;padding:0 16px}",""]);const r=i},144:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".widget-header-sec{display:flex;align-items:center;width:100%;padding:6px 16px;min-height:auto;min-height:50px}.widget-header-sec .logo-sec{display:flex;align-items:center;gap:8px;width:100%}.widget-header-sec .logo-sec svg path{stroke:var(--AA-gloabl-text-color)}.widget-header-sec .logo-sec .divider-line{background:var(--AA-gloabl-bg-secondary);width:1px;flex-shrink:0;height:15px}.widget-header-sec .right-chart-data{transition:.2s all ease-in-out;flex-shrink:0;display:flex;align-items:center;gap:8px}.widget-header-sec .right-chart-data button:not(.aa-slider){padding:0;height:28px;width:28px;border:0;display:flex;align-items:center;justify-content:center;border-radius:100%;font-size:18px;transition:.2s all ease;background:rgba(0,0,0,0);color:var(--AA-gloabl-text-color)}.widget-header-sec .right-chart-data button:not(.aa-slider):hover,.widget-header-sec .right-chart-data button:not(.aa-slider).active-action{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}",""]);const r=i},884:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"@-webkit-keyframes slideInUpPlaybookAnim{0%{-webkit-transform:translateY(20px);transform:translateY(20px);visibility:hidden}20%{visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideInUpPlaybookAnim{0%{-webkit-transform:translateY(20px);transform:translateY(20px);visibility:visible}20%{visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.playbook-wrapper-template{height:100%;padding:8px;width:100%}.playbook-wrapper-template .playbook-template-data{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);border-radius:4px}.playbook-wrapper-template .playbook-template-data .playbook-header-data{padding:7px 11px;border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);display:flex;align-items:center;gap:10px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data{width:100%;display:flex;align-items:center;gap:12px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .aa-dropdown.show .aa-dropdown-toggle .arrow-icon{transform:rotate(180deg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .aa-dropdown .aa-dropdown-toggle{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;background:rgba(0,0,0,0);border:0;padding:0;display:flex;align-items:center;gap:2px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .playbook-suggestion{width:24px;height:24px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;flex-shrink:0}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .playbook-suggestion sub{position:absolute;top:-2px;right:0;display:flex;width:12px;height:12px;padding:0;align-items:center;justify-content:center;border-radius:100px;background:#d92d20;color:#fff;font-size:7px;font-weight:500;line-height:normal;letter-spacing:.5px;text-transform:uppercase}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info{width:100%}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info .bottom-titles-info{display:flex;align-items:center;gap:5px;margin-top:1px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .left-sec-data .dropdowns-text-info .bottom-titles-info h6{color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:20px;flex-shrink:0;opacity:.8}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header{flex-shrink:0;display:flex;align-items:center;gap:4px}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action{border-radius:3px;border:0px solid;background:var(--AA-global-white-bg);display:flex;width:25px;height:25px;padding:0;justify-content:center;align-items:center;gap:6px;color:var(--AA-gloabl-text-color);font-size:16px;cursor:pointer}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.step-complete{font-size:9px;font-weight:600}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action:hover{border:1px solid var(--AA-global-theme-bg);color:var(--AA-global-theme-bg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.stop-assist{border:0px solid #fecdca;background:var(--AA-global-white-bg)}.playbook-wrapper-template .playbook-template-data .playbook-header-data .actions-checklist-header .solid-action.stop-assist:hover{border:1px solid #fda29b;box-shadow:0px 1px 2px 0px rgba(16,24,40,.06),0px 1px 3px 0px rgba(16,24,40,.1)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body{flex:1 1 auto;overflow:auto;height:100%;padding:12px 11px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info{display:flex;flex-direction:column;gap:4px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data{display:flex;flex-direction:column;gap:4px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data{display:flex;align-items:center;justify-content:center;padding:4px 8px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data span{width:100%;height:1px;background:var(--AA-gloabl-border)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .close-playbook-data p{color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:20px;flex-shrink:0;padding:0 8px;opacity:.8}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .stage-btn{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;display:inline-flex;align-items:center;padding:4px 12px 4px 12px;min-height:36px;border:0;background:rgba(0,0,0,0);border-radius:6px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step{text-align:initial;border:0;padding:0;border-radius:6px;background:rgba(0,0,0,0)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step{display:flex;padding:4px 8px 4px 12px;align-items:flex-start;gap:4px;background:rgba(0,0,0,0);border-radius:6px 6px 0px 0px;min-height:30px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;width:100%}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn{flex-shrink:0;width:20px;height:20px;display:none;align-items:center;justify-content:center;border:2px solid var(--AA-gloabl-border);border-radius:100%;background:rgba(0,0,0,0);padding:0;transition:.2s all ease}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn svg path{fill:var(--AA-gloabl-border)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn.checked-playbook{border-color:var(--AA-global-white-bg);background:#12b76a}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .heading-step .check-btn:hover{border-color:var(--AA-global-white-bg);background:#12b76a}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block{padding:8px;position:relative;transition:.2s all ease;min-height:52px;display:none}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block:hover .step-actions-send-copy{display:flex}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy{position:absolute;right:8px;top:8px;display:none;align-items:center;border-radius:4px;background:var(--AA-global-white-bg);box-shadow:0px 2px 4px -2px rgba(16,24,40,.06),0px 4px 8px -2px rgba(16,24,40,.1);padding:6px;gap:4px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy .solidbtn{position:relative;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);padding:2px 8px;min-height:24px;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:500;line-height:16px;cursor:pointer;justify-content:center;display:flex;align-items:center}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block .step-actions-send-copy .solidbtn i{font-size:12px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .step-text-send-block p{padding:0 0 0 12px;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:400;line-height:20px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad{padding:0 12px;margin-top:6px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info{border-top:1px solid var(--AA-gloabl-border);display:flex;align-items:center;gap:10px;padding:4px 0 0 0;min-height:32px}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info h1{width:100%;color:var(--AA-gloabl-text-color);font-size:11px;font-weight:500;line-height:normal;text-align:inherit}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data{display:flex;align-items:center;flex-shrink:0;gap:5px;width:auto}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data .primaryBtn{padding:2px 10px;height:24px;border-radius:16px;border:0}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data .primaryBtn:hover{background:var(--AA-gloabl-bg-secondary);color:var(--AA-gloabl-text-color)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step .border-bottom-pad .bottom-data-info .right-info-data h2{color:var(--AA-gloabl-text-color);font-size:11px;font-weight:400;line-height:normal}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing{background:var(--AA-global-white-bg);box-shadow:-7px 4px 30px 0px rgba(18,61,101,.2),-8px -6px 80px 0px rgba(255,255,255,.18) inset;-webkit-animation-name:slideInUpPlaybookAnim;animation-name:slideInUpPlaybookAnim;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step{background:var(--AA-global-theme-bg)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step h1{color:var(--AA-global-white-bg)}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .heading-step .check-btn{display:flex}.playbook-wrapper-template .playbook-template-data .playbook-wrapper-body .playbook-steps-info .playbook-steps-repeat-data .playbook-step.playbook-step-ongoing .step-text-send-block{display:block}.strike-text{text-decoration:line-through}",""]);const r=i},478:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".input-control{display:block;width:100%;padding:7px 11px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);width:100%;height:36px;appearance:none}.input-control::placeholder{color:var(--AA-gloabl-border);font-size:14px;font-weight:400;line-height:20px}.input-control:focus{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:active{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:disabled{border:1px solid var(--AA-gloabl-border);background:#f9fafb;pointer-events:none;cursor:not-allowed}.input-control.error{border:1px solid #fda29b;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #fee4e2}textarea.input-control{min-height:70px}.sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.sugestions-block .suggestion-header .count-text{flex-shrink:0;border-radius:16px;background:var(--AA-gloabl-bg-secondary);padding:0px 8px;height:15px;display:flex;justify-content:center;align-items:center;color:var(--AA-global-theme-text-color)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec{width:100%;display:flex;align-items:center;gap:4px;overflow:hidden}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .sent-msg-text{color:var(--AA-global-theme-text-color);margin:0 0 0 auto}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph{transition:max-height .3s ease;overflow:hidden;max-height:50px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded{max-height:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph.expanded+.aa-more-button{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .suggestion-paragraph:not(.expanded)+.aa-more-button{display:block}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names{display:flex;align-items:flex-start;gap:8px;overflow:hidden;flex-wrap:wrap;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag{display:flex;padding:2px 8px;justify-content:center;align-items:center;gap:4px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);transition:.2s all ease;flex:0 auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover a{text-decoration-line:underline;opacity:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag span{display:flex;width:14px;height:14px;padding:0;justify-content:center;align-items:center;flex-shrink:0;border-radius:16px;background:var(--AA-global-white-bg);color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:16px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag a{overflow:hidden;color:var(--AA-gloabl-text-desc-color);text-align:center;text-overflow:ellipsis;font-size:12px;font-weight:400;line-height:18px;opacity:.8}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.search-block-data-suggestions-wrapper{height:100%;padding:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions{height:100%;display:flex;flex-direction:column;justify-content:flex-end;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .empty-search-container-wrapper{display:flex;align-items:center;justify-content:center;width:277px;margin:0 auto;gap:10px;flex-direction:column;height:100%;text-align:center;min-height:300px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search{padding:8px 12px 0px 12px;flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;gap:4px;position:relative}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input{padding:8px 12px;flex-shrink:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info button{position:relative;padding:2px 10px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);color:var(--AA-gloabl-text-color);border:0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info p{font-style:italic;margin:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block{position:relative;background:var(--themeBgWhiteColor);border-radius:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control{z-index:1;position:relative;background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input{display:block;width:100%;color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0);position:absolute;top:0;left:0;z-index:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::-moz-selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg{position:absolute;right:12px;top:8px;z-index:2}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg path{fill:var(--AA-gloabl-text-color);opacity:.5}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search{position:absolute;right:8px;top:3px;z-index:2;cursor:pointer;background:border-box;border:0;padding:0;font-size:16px;line-height:0;color:var(--AA-gloabl-text-color)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg{width:16px;height:16px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg path{stroke:var(--AA-gloabl-text-color)}",""]);const r=i},390:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},370:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},36:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,"",""]);const r=i},798:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".selection-on-snippet-color{background:var(--AA-gloabl-bg-secondary)}.selection-on-snippet-color ul li{background:var(--AA-global-white-color)}.selection-on-snippet-color .source-count-num{color:var(--AA-global-white-color);background:var(--AA-global-theme-bg);display:inline-block;padding:0px 5px;border-radius:100%;min-width:18px;text-align:center}",""]);const r=i},762:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(601),s=o.n(n),a=o(314),i=o.n(a)()(s());i.push([e.id,".transcript-template-wrapper{height:100%;padding:8px;width:100%}.transcript-template-wrapper .transcript-template-data{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);border-radius:4px}.transcript-template-wrapper .transcript-template-data .transcript-header{padding:7px 11px;border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.transcript-template-wrapper .transcript-template-data .transcript-body-wrapper{flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;height:100%;padding:12px 11px;gap:12px}.aa-agent-bubble-comp{display:flex;width:100%;justify-content:flex-end}.aa-agent-bubble-comp .agent-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:6px;max-width:90%;transition:.5s all ease;word-break:break-word}.aa-agent-bubble-comp .agent-bubble-content .top-info{display:flex;align-items:center;gap:4px}.aa-agent-bubble-comp .agent-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .bubble-msg{background:var(--AA-global-theme-bg);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-global-white-color);padding:8px 12px}.aa-bot-bubble-comp{display:flex;width:100%;justify-content:flex-start}.aa-bot-bubble-comp .bot-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;max-width:90%;justify-content:flex-start;align-items:flex-start;transition:.5s all ease;word-break:break-word;gap:6px}.aa-bot-bubble-comp .bot-bubble-content .top-info{display:flex;align-items:center;gap:4px;width:100%}.aa-bot-bubble-comp .bot-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);flex-shrink:0}.aa-bot-bubble-comp .bot-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.aa-bot-bubble-comp .bot-bubble-content .bubble-msg{background:var(--AA-gloabl-bg-secondary);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-gloabl-text-color);padding:8px 12px;word-break:break-word;white-space:break-spaces}.agent-joined-banner{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}.agent-joined-banner .line-border{width:100%;border-top:1px solid var(--AA-gloabl-border)}.agent-joined-banner .info-joined-details{display:flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0}.summary-wrapper{border-radius:8px;border:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary);display:inline-flex;padding:12px;justify-content:center;align-items:center;align-self:stretch;flex-direction:column;width:auto;margin:10px auto;gap:6px}.summary-wrapper .summary-header{display:flex;align-items:center;gap:6px}.summary-wrapper .summary-header svg path{fill:var(--AA-gloabl-text-color)}",""]);const r=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,s,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var a={},i=[],r=0;r<e.length;r++){var l=e[r],c=n.base?l[0]+n.base:l[0],d=a[c]||0,p="".concat(c," ").concat(d);a[c]=d+1;var u=o(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var g=s(h,n);n.byIndex=r,t.splice(r,0,{identifier:p,updater:g,references:1})}i.push(p)}return i}function s(e,t){var o=t.domAPI(t);o.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var r=o(a[i]);t[r].references--}for(var l=n(e,s),c=0;c<a.length;c++){var d=o(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},659:e=>{var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,o)=>{e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,s&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};o.d(n,{h:()=>In,d:()=>wn});var s={};o.r(s),o.d(s,{Decoder:()=>pn,Encoder:()=>cn,PacketType:()=>ln,protocol:()=>rn});var a=o(72),i=o.n(a),r=o(825),l=o.n(r),c=o(659),d=o.n(c),p=o(56),u=o.n(p),h=o(540),g=o.n(h),v=o(113),f=o.n(v),m=o(958),b={};b.styleTagTransform=f(),b.setAttributes=u(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=g();i()(m.A,b);m.A&&m.A.locals&&m.A.locals;var _,E,y,x,A,S,C,T=function(){function e(){this.eventListeners={}}return e.prototype.on=function(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)},e.prototype.off=function(e,t){this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter((function(e){return e!==t})))},e.prototype.emit=function(e,t,o){var n=this.eventListeners[e];n&&n.forEach((function(e){return e(t,o)}))},e}(),k={},w=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,N=Array.isArray;function O(e,t){for(var o in t)e[o]=t[o];return e}function L(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,o){var n,s,a,i={};for(a in t)"key"==a?n=t[a]:"ref"==a?s=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?_.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return M(e,i,n,s,null)}function M(e,t,o,n,s){var a={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++y:s};return null==s&&null!=E.vnode&&E.vnode(a),a}function P(e){return e.children}function D(e,t){this.props=e,this.context=t}function B(e,t){if(null==t)return e.__?B(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if(null!=(o=e.__k[t])&&null!=o.__e)return o.__e;return"function"==typeof e.type?B(e):null}function H(e){var t,o;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(o=e.__k[t])&&null!=o.__e){e.__e=e.__c.base=o.__e;break}return H(e)}}function G(e){(!e.__d&&(e.__d=!0)&&x.push(e)&&!q.__r++||A!==E.debounceRendering)&&((A=E.debounceRendering)||S)(q)}function q(){var e,t,o,n,s,a,i,r,l;for(x.sort(C);e=x.shift();)e.__d&&(t=x.length,n=void 0,s=void 0,a=void 0,r=(i=(o=e).__v).__e,(l=o.__P)&&(n=[],s=[],(a=O({},i)).__v=i.__v+1,Q(l,i,a,o.__n,void 0!==l.ownerSVGElement,null!=i.__h?[r]:null,n,null==r?B(i):r,i.__h,s),Z(n,i,s),i.__e!=r&&H(i)),x.length>t&&x.sort(C));q.__r=0}function F(e,t,o,n,s,a,i,r,l,c,d){var p,u,h,g,v,f,m,b,_,E=0,y=n&&n.__k||w,x=y.length,A=x,S=t.length;for(o.__k=[],p=0;p<S;p++)null!=(g=o.__k[p]=null==(g=t[p])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?M(null,g,null,null,g):N(g)?M(P,{children:g},null,null,null):g.__b>0?M(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=o,g.__b=o.__b+1,-1===(b=K(g,y,m=p+E,A))?h=k:(h=y[b]||k,y[b]=void 0,A--),Q(e,g,h,s,a,i,r,l,c,d),v=g.__e,(u=g.ref)&&h.ref!=u&&(h.ref&&J(h.ref,null,g),d.push(u,g.__c||v,g)),null!=v&&(null==f&&(f=v),(_=h===k||null===h.__v)?-1==b&&E--:b!==m&&(b===m+1?E++:b>m?A>S-m?E+=b-m:E--:E=b<m&&b==m-1?b-m:0),m=p+E,"function"!=typeof g.type||b===m&&h.__k!==g.__k?"function"==typeof g.type||b===m&&!_?void 0!==g.__d?(l=g.__d,g.__d=void 0):l=v.nextSibling:l=V(e,v,l):l=U(g,l,e),"function"==typeof o.type&&(o.__d=l))):(h=y[p])&&null==h.key&&h.__e&&(h.__e==l&&(l=B(h)),$(h,h,!1),y[p]=null);for(o.__e=f,p=x;p--;)null!=y[p]&&("function"==typeof o.type&&null!=y[p].__e&&y[p].__e==o.__d&&(o.__d=y[p].__e.nextSibling),$(y[p],y[p]))}function U(e,t,o){for(var n,s=e.__k,a=0;s&&a<s.length;a++)(n=s[a])&&(n.__=e,t="function"==typeof n.type?U(n,t,o):V(o,n.__e,t));return t}function V(e,t,o){return null==o||o.parentNode!==e?e.insertBefore(t,null):t==o&&null!=t.parentNode||e.insertBefore(t,o),t.nextSibling}function K(e,t,o,n){var s=e.key,a=e.type,i=o-1,r=o+1,l=t[o];if(null===l||l&&s==l.key&&a===l.type)return o;if(n>(null!=l?1:0))for(;i>=0||r<t.length;){if(i>=0){if((l=t[i])&&s==l.key&&a===l.type)return i;i--}if(r<t.length){if((l=t[r])&&s==l.key&&a===l.type)return r;r++}}return-1}function Y(e,t,o){"-"===t[0]?e.setProperty(t,null==o?"":o):e[t]=null==o?"":"number"!=typeof o||I.test(t)?o:o+"px"}function j(e,t,o,n,s){var a;e:if("style"===t)if("string"==typeof o)e.style.cssText=o;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||Y(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||Y(e.style,t,o[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=o,o?n||e.addEventListener(t,a?z:W,a):e.removeEventListener(t,a?z:W,a);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==o?"":o;break e}catch(e){}"function"==typeof o||(null==o||!1===o&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,o))}}function W(e){return this.l[e.type+!1](E.event?E.event(e):e)}function z(e){return this.l[e.type+!0](E.event?E.event(e):e)}function Q(e,t,o,n,s,a,i,r,l,c){var d,p,u,h,g,v,f,m,b,_,y,x,A,S,C,T=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(l=o.__h,r=t.__e=o.__e,t.__h=null,a=[r]),(d=E.__b)&&d(t);e:if("function"==typeof T)try{if(m=t.props,b=(d=T.contextType)&&n[d.__c],_=d?b?b.props.value:d.__:n,o.__c?f=(p=t.__c=o.__c).__=p.__E:("prototype"in T&&T.prototype.render?t.__c=p=new T(m,_):(t.__c=p=new D(m,_),p.constructor=T,p.render=ee),b&&b.sub(p),p.props=m,p.state||(p.state={}),p.context=_,p.__n=n,u=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=T.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=O({},p.__s)),O(p.__s,T.getDerivedStateFromProps(m,p.__s))),h=p.props,g=p.state,p.__v=t,u)null==T.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==T.getDerivedStateFromProps&&m!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,_),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,_)||t.__v===o.__v)){for(t.__v!==o.__v&&(p.props=m,p.state=p.__s,p.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),y=0;y<p._sb.length;y++)p.__h.push(p._sb[y]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,_),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,g,v)}))}if(p.context=_,p.props=m,p.__P=e,p.__e=!1,x=E.__r,A=0,"prototype"in T&&T.prototype.render){for(p.state=p.__s,p.__d=!1,x&&x(t),d=p.render(p.props,p.state,p.context),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[]}else do{p.__d=!1,x&&x(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(n=O(O({},n),p.getChildContext())),u||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(h,g)),F(e,N(C=null!=d&&d.type===P&&null==d.key?d.props.children:d)?C:[C],t,o,n,s,a,i,r,l,c),p.base=t.__e,t.__h=null,p.__h.length&&i.push(p),f&&(p.__E=p.__=null)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=r,t.__h=!!l,a[a.indexOf(r)]=null),E.__e(e,t,o)}else null==a&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=X(o.__e,t,o,n,s,a,i,l,c);(d=E.diffed)&&d(t)}function Z(e,t,o){for(var n=0;n<o.length;n++)J(o[n],o[++n],o[++n]);E.__c&&E.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){E.__e(e,t.__v)}}))}function X(e,t,o,n,s,a,i,r,l){var c,d,p,u=o.props,h=t.props,g=t.type,v=0;if("svg"===g&&(s=!0),null!=a)for(;v<a.length;v++)if((c=a[v])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[v]=null;break}if(null==e){if(null===g)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),a=null,r=!1}if(null===g)u===h||r&&e.data===h||(e.data=h);else{if(a=a&&_.call(e.childNodes),d=(u=o.props||k).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!r){if(null!=a)for(u={},v=0;v<e.attributes.length;v++)u[e.attributes[v].name]=e.attributes[v].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,o,n,s){var a;for(a in o)"children"===a||"key"===a||a in t||j(e,a,null,o[a],n);for(a in t)s&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||o[a]===t[a]||j(e,a,t[a],o[a],n)}(e,h,u,s,r),p)t.__k=[];else if(F(e,N(v=t.props.children)?v:[v],t,o,n,s&&"foreignObject"!==g,a,i,a?a[0]:o.__k&&B(o,0),r,l),null!=a)for(v=a.length;v--;)null!=a[v]&&L(a[v]);r||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===g&&!v||"option"===g&&v!==u.value)&&j(e,"value",v,u.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&j(e,"checked",v,u.checked,!1))}return e}function J(e,t,o){try{"function"==typeof e?e(t):e.current=t}catch(e){E.__e(e,o)}}function $(e,t,o){var n,s;if(E.unmount&&E.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||J(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){E.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&$(n[s],t,o||"function"!=typeof e.type);o||null==e.__e||L(e.__e),e.__=e.__e=e.__d=void 0}function ee(e,t,o){return this.constructor(e,o)}function te(e,t,o){var n,s,a,i;E.__&&E.__(e,t),s=(n="function"==typeof o)?null:o&&o.__k||t.__k,a=[],i=[],Q(t,e=(!n&&o||t).__k=R(P,null,[e]),s||k,k,void 0!==t.ownerSVGElement,!n&&o?[o]:s?null:t.firstChild?_.call(t.childNodes):null,a,!n&&o?o:s?s.__e:t.firstChild,n,i),Z(a,e,i)}_=w.slice,E={__e:function(e,t,o,n){for(var s,a,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((a=s.constructor)&&null!=a.getDerivedStateFromError&&(s.setState(a.getDerivedStateFromError(e)),i=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(t){e=t}throw e}},y=0,D.prototype.setState=function(e,t){var o;o=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},o),this.props)),e&&O(o,e),null!=e&&this.__v&&(t&&this._sb.push(t),G(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},D.prototype.render=P,x=[],S="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C=function(e,t){return e.__v.__b-t.__v.__b},q.__r=0;var oe=function(){function e(e,t){this.component=e,this.hostInstance=t}return e.prototype.renderMessage=function(e){var t=this.hostInstance,o=document.createElement("div");return te(R(this.component,{hostInstance:t,msgData:e}),o),o.childNodes[0]},e}();function ne(e,t,o){return new oe(e,o).renderMessage(t)}var se=o(773),ae={};ae.styleTagTransform=f(),ae.setAttributes=u(),ae.insert=d().bind(null,"head"),ae.domAPI=l(),ae.insertStyleElement=g();i()(se.A,ae);se.A&&se.A.locals&&se.A.locals;var ie,re,le,ce,de=0,pe=[],ue=[],he=E.__b,ge=E.__r,ve=E.diffed,fe=E.__c,me=E.unmount;function be(e,t){E.__h&&E.__h(re,e,de||t),de=0;var o=re.__H||(re.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:ue}),o.__[e]}function _e(e){return de=1,function(e,t,o){var n=be(ie++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):we(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],o=n.t(t,e);t!==o&&(n.__N=[o,n.__[1]],n.__c.setState({}))}],n.__c=re,!re.u)){var s=function(e,t,o){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter((function(e){return e.__c}));if(s.every((function(e){return!e.__N})))return!a||a.call(this,e,t,o);var i=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&n.__c.props===e)&&(!a||a.call(this,e,t,o))};re.u=!0;var a=re.shouldComponentUpdate,i=re.componentWillUpdate;re.componentWillUpdate=function(e,t,o){if(this.__e){var n=a;a=void 0,s(e,t,o),a=n}i&&i.call(this,e,t,o)},re.shouldComponentUpdate=s}return n.__N||n.__}(we,e)}function Ee(e,t){var o=be(ie++,3);!E.__s&&ke(o.__H,t)&&(o.__=e,o.i=t,re.__H.__h.push(o))}function ye(e,t){var o=be(ie++,7);return ke(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function xe(){for(var e;e=pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Te),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){re=null,he&&he(e)},E.__r=function(e){ge&&ge(e),ie=0;var t=(re=e.__c).__H;t&&(le===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ue,e.__N=e.i=void 0}))):(t.__h.forEach(Ce),t.__h.forEach(Te),t.__h=[],ie=0)),le=re},E.diffed=function(e){ve&&ve(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pe.push(t)&&ce===E.requestAnimationFrame||((ce=E.requestAnimationFrame)||Se)(xe)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ue&&(e.__=e.__V),e.i=void 0,e.__V=ue}))),le=re=null},E.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ce),e.__h=e.__h.filter((function(e){return!e.__||Te(e)}))}catch(o){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.__e(o,e.__v)}})),fe&&fe(e,t)},E.unmount=function(e){me&&me(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach((function(e){try{Ce(e)}catch(e){t=e}})),o.__H=void 0,t&&E.__e(t,o.__v))};var Ae="function"==typeof requestAnimationFrame;function Se(e){var t,o=function(){clearTimeout(n),Ae&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);Ae&&(t=requestAnimationFrame(o))}function Ce(e){var t=re,o=e.__c;"function"==typeof o&&(e.__c=void 0,o()),re=t}function Te(e){var t=re;e.__c=e.__(),re=t}function ke(e,t){return!e||e.length!==t.length||t.some((function(t,o){return t!==e[o]}))}function we(e,t){return"function"==typeof t?t(e):t}var Ie={SEARCH:"SEARCH",MYBOT:"MYBOT",ASSIST:"ASSIST",TRANSCRIPT:"TRANSCRIPT",HISTORY:"HISTORY",SETTINGS:"SETTINGS",CHECKLIST:"CHECLIST",SMARTASSIST_SOURCE:"SMARTASSIST_SOURCE"},Ne={SUGGESTIONS:"SUGGESTIONS",SMALLTALK:"SMALLTALK",AUTOMATION:"AUTOMATION",USERMSG:"USERMSG",ASSISTRESPONSE:"ASSISTRESPONSE",FEEDBACK:"FEEDBACK",WELCOME_MSG:"WELCOME_MSG"},Oe={ASSIST:"Assist",MYBOT:"My Bot",TRANSCRIPT:"Transcript",LIBRARY:"Library",SETTINGS:"Settings",SEARCH:"Search",PLAYBOOK:"Playbook",VOICE:"voice",CHAT:"chat",BOTID:"botId",CONVESATIONID:"conversationId",RUN:"RUN",AGENTASSIST_RUN:"Run with Agent Inputs",SEND:"Send",COPY:"Copy",COPIED:"COPIED",SHOW_MORE:"Show more",SHOW_LESS:"Show less",READ_MORE:"More",READ_LESS:"Less",EXPAND:"Expand",READ_MORE_EXPAND:"Read more | Expand",CLOSE:"Close",DIALOG:"Dialog task",FAQ:"FAQ",ARTICLE:"Article",SNIPPET:"Snippet",VIEW_ALL_FAQ:"View All FAQs",VIEW_FEW_FAQ:"View Few FAQs",VIEW_ALL_ARTICLES:"View All Articles",VIEW_FEW_ARTICLES:"View Few Articles",VIEW_ALL_SNIPPETS:"View All Snippets",VIEW_FEW_SNIPPETS:"View Few Snippets",SENDMSG:"agentAssist.SendMessage",COPYMSG:"agentAssist.CopyMessage",SEND_METHOD:"send",COPY_METHOD:"copy",AWAITING:"Awaiting Response | Type to override",OVERRIDE:"Type to override",ACCEPT_RESPONSE:"Response Accepted",AGENT_ENTERED:"Agent Entered",WIDGET_LOADER:"widget",INDIVIDUAL_LOADER:"individual",LOGO_PATH:"assets/images/logo/koreLogo.svg",DOCUMENTATION_LINK:"https://docs.kore.ai/agentassist/",FAQ_LINK:"https://docs.kore.ai/agentassist/frequently-asked-questions/faq/",KOREACADEMY_LINK:"https://academy.kore.ai/",WRONG_SUGGESTION:"Wrong suggestions",INCORRECT_INTENT:"Incorrect intent",ACCIDENTAL_CLICK:"Accidental click",TIME_TAKING:"Time taking",OTHER:"Other",SETTINGS_DOCUMENTATION:"documentation",SETTINGS_FAQ:"faq",SETTINGS_KOREACADEMY:"koreAcademy",SUGGESTION_LINEHEIGHT:18,SUGGESTION_ADDHEIGHT:10,SUGGESTION_MAXHEIGHT:12},Le={NUDGE_DATA:{positive:{color:"#22C55E",icon:"krIocnsFont-thumbs-up"},neutral:{color:"#E5E5E5",className:"info-nudge"},alert:{color:"#F59E0B",icon:"krIocnsFont-alert-triangle",className:"warning-nudge"},critical:{color:"#EF4444",icon:"krIocnsFont-hand",className:"danger-nudge"}},HINT_DATA:{positive:{color:"#22C55E",icon:"krIocnsFont-thumbs-up"},neutral:{color:"#E5E5E5",icon:"krIocnsFont-exclamation",className:"info-hint"},alert:{color:"#F59E0B",icon:"krIocnsFont-alert-triangle",className:"warning-hint"},critical:{color:"#EF4444",icon:"krIocnsFont-hand",className:"danger-hint"}}},Re={ast:Ie.ASSIST,srch:Ie.SEARCH,trnspt:Ie.TRANSCRIPT,mB:Ie.MYBOT,cl:Ie.CHECKLIST},Me={"#0BA5EC":"#F0F9FF","#06AED4":"#ECFDFF","#2E90FA":"#EFF4FF","#6172F3":"#EEF4FF","#6172F3f":"#F5F3FF","#EE46BC":"#FDF4FF","#F63D68":"#FFF1F3","#669F2A":"#F5FBEE","#16B364":"#EDFCF2","#FF4405":"#FFF4ED"},Pe={HEADER:".aa-header",FOOTER:".aa-footer",FOOTER_BTN:".aa-footer-btn-",FOOTER_BTN_SEARCH:".aa-footer-btn-srch",FOOTER_BTN_MYBOT:".aa-footer-btn-mB",FOOTER_BTN_ASSIST:".aa-footer-btn-ast",FOOTER_BTN_TRANSCRIPT:".aa-footer-btn-trnspt",ASSIST_SECTION:".aa-assist-section",SUGGESTION_EACH:".aa-each-suggestion",SUGGESTION_EACH_HEADER:".aa-suggestion-header",SUGGESTION_EACH_TITLE:".aa-suggestion-title",SUGGESTION_EACH_BODY:".aa-each-suggestion-faq-body",SUGGESTION_LESS_LINK:".aa-less-link",SUGGESTION_MORE_LINK:".aa-more-link",SUGGESTION_SEND_BTN:".aa-send-btn-suggestion",SUGGESTION_COPY_BTN:".aa-copy-btn-suggestion",SUGGESTION_SENDCPY_ACTION:".aa-action-buttons",SUGGESTION_FAQ_UP_ARROW:".aa-faq-up-arrow",SUGGESTION_FAQ_DOWN_ARROW:".aa-faq-down-arrow",SUGGESTION_FAQ_EXPAND:".aa-expand-btn-link",SUGGESTION_FAQ_CLOSE:".aa-close-btn-link",SUGGESTION_FAQ_ANS_LENGTH:".aa-faq-ans-length",SUGGESTION_FAQ_ANS_LOADER:".aa-faq-answer-loader",SUGGESTION_SNIPPET_SOURCE_TAG:".aa-source-tag",SUGGESTION_SNIPPET_LINK:".aa-snippet-link",SUGGESTION_ARTICLE_LINK:".aa-article-link",SUGGESTION_FILE_LINK:".aa-file-link",SEARCH_INPUT_BLOCK:".aa-input-block",SEARCH_INPUT_CLOSE:".aa-input-search-close",SEARCH_INPUT_ICON:".aa-input-search-icon",SUGGESTION_SENT_TEXT:".aa-sent-text",SEARCH_SUGGESTION_WRAPPER:".aa-search-suggestion-wrapper",HIDE_ELEMENT:"aa-hidden",SDK_MAIN_WRAPPER:"agentassist-widget-main-chat-container-wrapper",NUDGE_TEMPLATE:"aa-nudges-template-data",NUDGE_CLOSE:"aa-close-nudge",HINT_CLOSE:"aa-close-hint",HINT_TEMPLATE:"aa-hints-template-data",SEND_TEXT:".aa-sent-text",SCROLL_DATA_ASSIST:"scroll-data-assist",DESC_TEXT_SUGGESTION:".suggestion-paragraph",DESC_TEXT_SNIPPET_EXTERNAL:".aa-snippet-content-ref1",DESC_TEXT_SNIPPET_INTERNAL:".aa-snippet-content-ref2",MORE_BTN_CONTAINER:".aa-seemore-buttons",EXTERNAL_SNIPPET_MORE_BTN_CONTAINER:".aa-external-seemore-buttons",INTERNAL_SNIPPET_MORE_BTN_CONTAINER:".aa-internal-seemore-buttons",MORE_BUTTON:".aa-more-button",SUGGESTION_EXPANDED:"expanded",TRANSCRIPT_BODY_WRAPPER:"aa-transcript-body-wrapper",TRIGGER_CHECKLIST_BULB_COUNT:".aa-triggerDynChecklist-bulb-count",TRIGGER_CHECKLIST_BTN:".aa-trigger-checklist-btn-",TRIGGER_CHECKLIST_NAME:".aa-trigger-checklist-name",TRIGGER_CHECKLIST_STEPCOUNT:".aa-trigger-checklist-stepcount",TRIGGET_CHECKLIST_DROPDOWN:".aa-trigger-checklist-drp",TRIGGER_CHECKLIST_DROPDOWN_WRAPPER:".aa-triggerList-drp-wrapper",CHECKLIST_DROPDOWN_WRAPPER:".aa-checklist-drp-wrapper",CHECKLIST_DROPDOWN:".aa-checklist-drp",PRIMARY_SCRIPTS:".aa-primary-scripts",DYNAMIC_SCRIPTS:".aa-dynamic-scripts",SELECTED_CHECKLIST:".aa-selected-checklist",SELECTED_CHECKLIST_ARROW:".aa-selected-checklist-arrow",STAGE_DRP_WRAPPER_MAIN:".aa-stage-drp-wrapper-main",STAGE_DRP_WRAPPER:".aa-stage-drp-wrapper",SELECTED_STAGE:".aa-selected-stage",SELECTED_STAGE_ARROW:".aa-selected-stage-arrow",STAGE_DROPDOWN:".aa-stage-drp",STEP_COMPLETE_COUNT:".aa-step-complete-count",PROCEEDTOCLOSE_BTN:".aa-proceedtoclose-btn",PRIMARY_CHECKLIST_BTN:".aa-primary-cl-",PRIMARY_CHECKLIST_RESUME_BTN:".aa-primary-cl-resume-",DYNAMIC_CHECKLIST_BTN:".aa-dynamic-cl-",DYNAMIC_CHECKLIST_RESUME_BTN:".aa-dynamic-cl-resume-",CHECKLIST_HEADER:".aa-playbook-header",CHECKLIST_HEADER_STEP:".aa-heading-step",CHECKLIST_HEADER_STEP_NAME:".aa-step-header-name",CHECKLIST_EACH_STEP:".aa-playbook-step-",CHECKLIST_DISABLE_MSG:"disabled-msg",CHECKLIST_STRIKE:"strike-text",CHECKLIST_STEP_COMPLETE_BTN:".aa-step-complete-",CHECKLIST_STEP_SEND_BLOCK:".step-text-send-block",CHECKLIST_STEP_ONGOING:"playbook-step-ongoing",CHECKLIST_STEP_COPY_BTN:".aa-step-copy-btn",CHECKLIST_STEP_SEND_BTN:".aa-step-send-btn",CHECKLIST_STEP_CONFIRMATION_BTN:".aa-step-confirmation-btn-",CHECKLIST_CLOSE_STEPS:".aa-close-steps",CHECKLIST_CLOSE_STAGE:".aa-close-stage",CHECKLIST_ITEM_CHECK:".aa-cl-check-",CHECKLIST_EACH_ITEM:".aa-cl-item",CHECKLIST_EACH_RESUME:".aa-cl-resume-",CHECKLIST_CLOSE_STAGE_BTN:".aa-close-stage-btn",CHECKLIST_EACH_STAGE_DRP_ITEM:".aa-stage-drp-",CHECKLIST_SELECTED_STAGE_CHECK:".aa-selected-stage-",CHECKLIST_EMPTY:".aa-checklist-empty",TRIGGER_CHECKLIST_COUNT_BTN:".aa-trigger-checklist-count-btn"},De={PROACTIVE_BTN:"aa-proactiveBtn",ASSIST_FAQ_SUGGESTION:"aa-faqSuggestion-",ASSIST_SNIPPET_SUGGESTION:"aa-snippetSuggestion-",ASSIST_ARTICLE_SUGGESTION:"aa-articleSuggestion-",ASSIST_FILE_SUGGESTION:"aa-fileSuggestion-",SEARCH_FAQ_SUGGESTION:"aa-faqSuggestion",SEARCH_SNIPPET_SUGGESTION:"aa-snippetSuggestion",SEARCH_ARTICLE_SUGGESTION:"aa-articleSuggestion",SEARCH_FILE_SUGGESTION:"aa-fileSuggestion",SEARCH_INPUT:"aa-search-input",SEARCH_SUGGESTION_BLOCK:"searchSuggestionsBlock",SUMMARY_OVERLAY_BLOCK:"section-agent-aa-wrapper",CHECKLIST_MAIN_TEMPLATE:"checkListMainTemplate",CHECKLIST_BODY_TEMPLATE:"checkListBodyTemplate",TRIGGER_CHECKLIST_DRP:"playbookDrpTriggerChecklist",CHECKLIST_DRP_LIST_BTN:"playbookDrpListBtn",CHECKLIST_STAGE_DRP_BTN:"playbookStageDrpBtn",CHECKLIST_STEP_TEMPLATE:"checklistStepTemplate"},Be=o(567),He={};He.styleTagTransform=f(),He.setAttributes=u(),He.insert=d().bind(null,"head"),He.domAPI=l(),He.insertStyleElement=g();i()(Be.A,He);Be.A&&Be.A.locals&&Be.A.locals;function Ge(e){var t=e.msgData,o=t.tabsNTitles,n=t.selectedTab,s=t.showTranscript;t.selectedTheme;return Ee((function(){})),R("div",{className:"widget-footer-wrapper"},R("div",{className:"logo-left-menu"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"line-divider"}),R("div",{className:"footer-links-data"},R("div",{className:"footer-list-buttons"},o.map((function(e,t){return R(P,null,"srch"===e.type&&R("button",{className:"aa-footer-btn-srch btn_footer ".concat(n===Ie.SEARCH?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M21.75 22.2001C21.55 22.2001 21.45 22.1001 21.35 22.0001L17.45 18.1001C15.95 19.4001 13.95 20.2001 11.85 20.2001C7.15 20.2001 3.25 16.3001 3.25 11.6001C3.25 6.90006 7.05 3.00006 11.75 3.00006C16.45 3.00006 20.35 6.90006 20.35 11.6001C20.35 13.8001 19.55 15.7001 18.25 17.2001L22.15 21.1001C22.35 21.3001 22.35 21.7001 22.15 21.9001C22.05 22.1001 21.95 22.2001 21.75 22.2001ZM11.75 4.20006C7.65 4.20006 4.35 7.50006 4.35 11.6001C4.35 15.7001 7.65 19.0001 11.75 19.0001C13.75 19.0001 15.55 18.2001 16.95 16.9001C16.95 16.9001 16.95 16.9001 17.05 16.8001C17.05 16.8001 17.05 16.8001 17.15 16.7001C18.45 15.4001 19.25 13.5001 19.25 11.5001C19.15 7.50006 15.85 4.20006 11.75 4.20006Z",fill:"#202939"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"mB"===e.type&&!1,"ast"===e.type&&R("button",{className:"aa-footer-btn-ast btn_footer ".concat(n===Ie.ASSIST?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},R("path",{opacity:"0.12",d:"M13 17.0999C13 20.1374 10.5965 22.5999 7.63158 22.5999C7.01911 22.5999 6.43059 22.4948 5.88227 22.3013C5.67416 22.2278 5.5701 22.1911 5.50011 22.1771C5.42641 22.1624 5.38652 22.1584 5.31137 22.1578C5.24 22.1574 5.15827 22.1685 4.9948 22.1909L2 22.5999L2.61134 19.8382C2.65141 19.6572 2.67145 19.5666 2.67608 19.4866C2.68091 19.403 2.67864 19.3565 2.66566 19.2738C2.65322 19.1946 2.61533 19.0786 2.53955 18.8466C2.36028 18.2978 2.26316 17.7104 2.26316 17.0999C2.26316 14.0623 4.66668 11.5999 7.63158 11.5999C10.5965 11.5999 13 14.0623 13 17.0999Z",fill:""}),R("path",{d:"M6.09436 11.8286C6.03221 11.4281 5.99996 11.0177 5.99996 10.5999C5.99996 6.18158 9.60525 2.59985 14.0526 2.59985C18.4999 2.59985 22.1052 6.18158 22.1052 10.5999C22.1052 11.5979 21.9213 12.5533 21.5852 13.4344C21.5154 13.6173 21.4804 13.7088 21.4646 13.7803C21.4489 13.851 21.4428 13.9008 21.4411 13.9733C21.4394 14.0465 21.4493 14.127 21.4692 14.2882L21.8717 17.5584C21.9153 17.9124 21.9371 18.0894 21.8782 18.2181C21.8266 18.3308 21.735 18.4204 21.6211 18.4694C21.4911 18.5253 21.3146 18.4994 20.9617 18.4477L17.7765 17.9808C17.6101 17.9564 17.527 17.9442 17.4512 17.9446C17.3763 17.945 17.3245 17.9506 17.2511 17.966C17.177 17.9816 17.0823 18.017 16.893 18.088C16.0097 18.4188 15.0524 18.5999 14.0526 18.5999C13.6344 18.5999 13.2237 18.5682 12.8227 18.5071M7.63158 22.5999C10.5965 22.5999 13 20.1374 13 17.0999C13 14.0623 10.5965 11.5999 7.63158 11.5999C4.66668 11.5999 2.26316 14.0623 2.26316 17.0999C2.26316 17.7104 2.36028 18.2978 2.53955 18.8466C2.61533 19.0786 2.65322 19.1946 2.66566 19.2738C2.67864 19.3565 2.68091 19.403 2.67608 19.4866C2.67145 19.5666 2.65141 19.6572 2.61134 19.8382L2 22.5999L4.9948 22.1909C5.15827 22.1685 5.24 22.1574 5.31137 22.1578C5.38652 22.1584 5.42641 22.1624 5.50011 22.1771C5.5701 22.1911 5.67416 22.2278 5.88227 22.3013C6.43059 22.4948 7.01911 22.5999 7.63158 22.5999Z",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"trnspt"===e.type&&s&&R("button",{className:"aa-footer-btn-trnspt btn_footer ".concat(n===Ie.TRANSCRIPT?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M20.625 10.5999V7.39985C20.625 5.7197 20.625 4.87962 20.298 4.23788C20.0104 3.6734 19.5515 3.21445 18.987 2.92683C18.3452 2.59985 17.5052 2.59985 15.825 2.59985H9.425C7.74484 2.59985 6.90476 2.59985 6.26303 2.92683C5.69854 3.21445 5.2396 3.6734 4.95198 4.23788C4.625 4.87962 4.625 5.7197 4.625 7.39985V17.7999C4.625 19.48 4.625 20.3201 4.95198 20.9618C5.2396 21.5263 5.69854 21.9853 6.26303 22.2729C6.90476 22.5999 7.74484 22.5999 9.425 22.5999H12.625M13.125 11.5999H8.625M9.625 15.5999H8.625M16.625 7.59985H8.625M14.125 16.5999C14.2782 19.4612 14.8347 20.5857 17.625 20.9618M17.625 20.9618C20.4768 20.4358 21.0708 19.3717 21.125 16.5999M17.625 20.9618V22.5999H15.825H19.625",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),R("path",{d:"M16.125 13.6V18.1C16.7101 18.8457 17.0454 19.0111 17.625 19.1C18.4009 18.9793 18.6961 18.7335 19.125 18.1V13.6C18.702 12.8834 18.3994 12.5877 17.625 12.6C16.7358 12.7661 16.4766 13.0363 16.125 13.6Z",stroke:"#202939","stroke-width":"1.2"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"cl"===e.type&&R("button",{className:"aa-footer-btn-cl btn_footer ".concat(n===Ie.CHECKLIST?"selected-tab sel-bg":"")},R("p",{className:"text-truncate",title:e.title},e.title)))})))),R("div",{className:"footer-action-items"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"}))))))}const qe=function(){var e=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="ua-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?o:3&o|8).toString(16)}));return t};var Fe,Ue,Ve,Ke,Ye;!function(e){e.event="event",e.request_port="request_port",e.control_message="control_message",e.connect="connect",e.disconnect="disconnect",e.error="error",e.connect_error="connect_error",e.conversation_closed="conversation_closed",e.welcome_message_request="welcome_message_request",e.user_message="user_message",e.agent_message="agent_message",e.agent_assist_request="agent_assist_request",e.agent_assist_response="agent_assist_response",e.agent_menu_request="agent_menu_request",e.agent_menu_response="agent_menu_response",e.agent_assist_user_message="agent_assist_user_message",e.agent_feedback_request="agent_feedback_request",e.agent_feedback_response="agent_feedback_response",e.agent_usage_feedback="agent_usage_feedback",e.agent_assist_agent_request="agent_assist_agent_request",e.agent_assist_agent_response="agent_assist_agent_response",e.agent_assist_endoftask="agent_assist_endoftask",e.request_resolution_comments="request_resolution_comments",e.response_resolution_comments="response_resolution_comments",e.enable_override_userinput="enable_override_userinput",e.agent_send_or_copy="agent_send_or_copy",e.end_of_conversation="end_of_conversation",e.user_sent_message="user_sent_message",e.agent_sent_message="agent_sent_message",e.agent_coaching_response="agent_coaching_response",e.realtime_sentiment_response="realtime_sentiment_response",e.agent_coaching_ackpress="agent_coaching_ackpress",e.checklist_opened="checklist_opened",e.checklist_step_closed="checklist_step_closed",e.checklist_closed="checklist_closed",e.checklist_step_response="checklist_step_response",e.checklist_response="checklist_response",e.checklist_resume="checklist_resume",e.checklist_proceed_to_closed="checklist_proceed_to_closed",e.internal_transfer="internal_transfer",e.agent_activity_request="agent_activity_request",e.submit_summary_request="submit_summary_request",e.agentassist_control_response="agentassist_control_response",e.response_resolution_comments_ack="response_resolution_comments_ack"}(Fe||(Fe={})),function(e){e.BEFORE_VIEW_INIT="BEFORE_VIEW_INIT",e.SUMMARY_TEMPLATE="SUMMARY_TEMPLATE",e.AGENT_TRANSCRIPT="AGENT_TRANSCRIPT",e.USER_TRANSCRIPT="USER_TRANSCRIPT",e.BOT_TRANSCRIPT="BOT_TRANSCRIPT",e.AGENT_JOINED_TEMPLATE="AGENT_JOINED_TEMPLATE",e.ARTICE_TEMPLATE="ARTICLE_TEMPLATE",e.SNIPPET_TEMPLATE="SNIPPET_TEMPLATE",e.FILE_TEMPLATE="FILE_TEMPLATE",e.FAQ_TEMPLATE="FAQ_TEMPLATE",e.HINT_TEMPLATE="HINT_TEMPLATE",e.NUDGE_TEMPLATE="NUDGE_TEMPLATE",e.FOOTER_TEMPLATE="FOOTER_TEMPLATE",e.HEADER_TEMPLATE="HEADER_TEMPLATE",e.SEARCH_INPUT="SEARCH_INPUT",e.FAQ_ANSWER_AFTER_TOGGLE="FAQ_ANSWER_AFTER_TOGGLE",e.SEARCH_ARTICE_TEMPLATE="SEARCH_ARTICE_TEMPLATE",e.SEARCH_SNIPPET_TEMPLATE="SEARCH_SNIPPET_TEMPLATE",e.SEARCH_FILE_TEMPLATE="SEARCH_FILE_TEMPLATE",e.SEARCH_FAQ_TEMPLATE="SEARCH_FAQ_TEMPLATE",e.CONVERSATION_SUMMARY_TEMPLATE="CONVERSATION_SUMMARY_TEMPLATE",e.SUMMARY_TEMPLATE_ASSIST="SUMMARY_TEMPLATE_ASSIST",e.ON_ERROR="ON_ERROR",e.AGENT_SEND_MESSAGE="AGENT_SEND_MESSAGE",e.AGENT_COPY_MESSAGE="AGENT_COPY_MESSAGE",e.PLAYBOOK_HEADER_TEMPLATE="PLAYBOOK_HEADER_TEMPLATE",e.PLAYBOOK_BODY_TEMPLATE="PLAYBOOK_BODY_TEMPLATE",e.PLAYBOOK_EMPTY_TEMPLATE="PLAYBOOK_EMPTY_TEMPLATE",e.PLAYBOOK_SEND_EVENT="PLAYBOOK_SEND_EVENT",e.PLAYBOOK_COPY_EVENT="PLAYBOOK_COPY_EVENT",e.PLAYBOOK_CONFIRMATION_YES="PLAYBOOK_CONFIRMATION_YES",e.PLAYBOOK_CONFIRMATION_NO="PLAYBOOK_CONFIRMATION_NO",e.PLAYBOOK_PRIMARYLIST_TEMPLATE="PLAYBOOK_PRIMARYLIST_TEMPLATE",e.PLAYBOOK_DYNAMICLIST_TEMPLATE="PLAYBOOK_DYNAMICLIST_TEMPLATE",e.PLAYBOOK_STAGE_DROPDOWN_TEMPLATE="PLAYBOOK_STAGE_DROPDOWN_TEMPLATE",e.PLAYBOOK_TRIGGERED_LIST_TEMPLATE="PLAYBOOK_TRIGGERED_LIST_TEMPLATE",e.PLAYBOOK_OPENED_EVENT="PLAYBOOK_OPENED_EVENT",e.PLAYBOOK_RESUME_EVENT="PLAYBOOK_RESUME_EVENT",e.PLAYBOOK_STEP_CLOSED_EVENT="PLAYBOOK_STEP_CLOSED_EVENT",e.PLAYBOOK_PROCEED_TO_CLOSE_EVENT="PLAYBOOK_PROCEED_TO_CLOSE_EVENT"}(Ue||(Ue={})),function(e){e.AGENT_COACHING_RESPONSES="AGENT_COACHING_RESPONSES",e.USER_TRANSCRIPT_RESPONSE="USER_TRANSCRIPT_RESPONSE",e.AGENT_TRANSCRIPT_RESPONSE="AGENT_TRANSCRIPT_RESPONSE",e.AGENT_AI_RESPONSE="AGENT_AI_RESPONSE",e.AGENT_AI_AGENT_RESPONSE="AGENT_AI_AGENT_RESPONSE",e.PRO_ACTIVE_CHANGE="PRO_ACTIVE_CHANGE",e.RESOLUTION_COMMENTS_RESPONSE="RESOLUTION_COMMENTS_RESPONSE",e.CHECKLIST_RESPONSE="CHECKLIST_RESPONSE",e.CHECKLIST_STEP_RESPONSE="CHECKLIST_STEP_RESPONSE"}(Ve||(Ve={})),function(e){e.USER_TRANSCRIPT_MSG="USER_TRANSCRIPT_MSG",e.AGENT_TRANSCRIPT_MSG="AGENT_TRANSCRIPT_MSG",e.END_OF_CONVERSATION="END_OF_CONVERSATION",e.CONVERSATION_SUMMARY_IN_ASSIST="CONVERSATION_SUMMARY_IN_ASSIST",e.GET_CHECKLISTS="GET_CHECKLISTS"}(Ke||(Ke={})),function(e){e.UPDATE_ACTIVE_TAB="updateActiveTab",e.CHECKLIST_OPEN="checklistOpened",e.CHECLIST_RESUME="checklistResume",e.CHECKLIST_STEP_CLOSE="checklistStepClosed",e.CHECKLIST_PROCEED_TO_CLOSE="checklistProceedToClosed"}(Ye||(Ye={}));var je=o(390),We={};We.styleTagTransform=f(),We.setAttributes=u(),We.insert=d().bind(null,"head"),We.domAPI=l(),We.insertStyleElement=g();i()(je.A,We);je.A&&je.A.locals&&je.A.locals;function ze(e){var t,o;return R("div",null,null===(o=(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||[])||void 0===o?void 0:o.map((function(t,o){var n;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(o<(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.viewCount)?"":"aa-hidden")},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!t.link&&t.title&&R("h2",{className:"aa-text-xs"},t.title),t.link&&t.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-article-link",role:"link"},t.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:null==t?void 0:t.content}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),t.link&&!t.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-article-link",role:"link"},"View Full Article"))))})))}var Qe=o(370),Ze={};Ze.styleTagTransform=f(),Ze.setAttributes=u(),Ze.insert=d().bind(null,"head"),Ze.domAPI=l(),Ze.insertStyleElement=g();i()(Qe.A,Ze);Qe.A&&Qe.A.locals&&Qe.A.locals;function Xe(e){var t,o,n,s=_e(null===(t=e.msgData)||void 0===t?void 0:t.faq),a=s[0];s[1];return R(P,null,a.answer&&(null===(o=null==a?void 0:a.answer)||void 0===o?void 0:o.length)>0&&(a.toggle&&!a.answerRender||a.answerRender)&&(null===(n=null==a?void 0:a.answer)||void 0===n?void 0:n.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:e.ans}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")))}))))}function Je(e){return R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs expand-link aa-close-btn-link aa-hidden",role:"link"},"Close"),R("button",{className:"more-link-text aa-text-xs expand-link aa-expand-btn-link",role:"link"},"Expand/More"))}function $e(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===o?void 0:o.map((function(t,o){var n,s,a,i,r;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(o<(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.viewCount)?"":"aa-hidden"),key:o},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},(!t.displayName||t.question)&&R("h2",{className:"aa-text-xs semibold text-truncate"},t.displayName||t.question),t.answer&&(null===(s=null==t?void 0:t.answer)||void 0===s?void 0:s.length)>1&&(!t.seeMoreWrapper&&t.answerRender||t.toggle&&!t.answerRender&&!t.seeMoreWrapper)&&R("span",{className:"aa-faq-ans-length"},"1/",null===(a=null==t?void 0:t.answer)||void 0===a?void 0:a.length),t.childBotName&&R("span",{className:"aa-desc-sm semibold child-bot-name text-truncate"},"(",t.childBotName,")"),R("span",{className:"up-down-arrows aa-faq-down-arrow "+(t.answerRender||t.toggle?"aa-hidden":"")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.36437 10.3494C8.17497 10.5383 7.87481 10.5494 7.67239 10.3828L7.63563 10.3494L3.15093 6.07722C2.94969 5.87653 2.94969 5.55115 3.15093 5.35047C3.34033 5.16158 3.64048 5.15047 3.84291 5.31713L3.87967 5.35047L8 9.25923L12.1203 5.35047C12.3097 5.16158 12.6099 5.15047 12.8123 5.31713L12.8491 5.35047C13.0385 5.53935 13.0496 5.83868 12.8825 6.04056L12.8491 6.07722L8.36437 10.3494Z",fill:"#9AA4B2"}))),R("span",{className:"up-down-arrows aa-faq-up-arrow "+(!t.answerRender&&t.toggle?"":"aa-hidden")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.63563 5.35054C7.82503 5.16166 8.12519 5.15055 8.32761 5.31721L8.36437 5.35054L12.8491 9.6227C13.0503 9.82338 13.0503 10.1488 12.8491 10.3494C12.6597 10.5383 12.3595 10.5494 12.1571 10.3828L12.1203 10.3494L8 6.44074L3.87967 10.3494C3.69027 10.5383 3.39012 10.5494 3.18769 10.3828L3.15093 10.3494C2.96153 10.1606 2.95039 9.86123 3.1175 9.65936L3.15093 9.6227L7.63563 5.35054Z",fill:"#9AA4B2"}))),R("div",{id:"loader",className:"loader-progress-individual aa-faq-answer-loader aa-hidden"},R("div",{className:"loading-border"})))),t.answer&&(null===(i=null==t?void 0:t.answer)||void 0===i?void 0:i.length)>0&&(t.toggle&&!t.answerRender||t.answerRender)&&(null===(r=null==t?void 0:t.answer)||void 0===r?void 0:r.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body ",key:t},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:e.ans}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")))}))))})))}var et=o(36),tt={};tt.styleTagTransform=f(),tt.setAttributes=u(),tt.insert=d().bind(null,"head"),tt.domAPI=l(),tt.insertStyleElement=g();i()(et.A,tt);et.A&&et.A.locals&&et.A.locals;function ot(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===o?void 0:o.map((function(e,t){return R("div",{key:t,className:"suggestion-item-card aa-each-suggestion "},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!e.link&&e.title&&R("h2",{className:"aa-text-xs"},e.title),e.link&&e.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-file-link",role:"link"},e.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph",dangerouslySetInnerHTML:{__html:null==e?void 0:e.content}}),R("div",{className:"more-links-buttons aa-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),e.link&&!e.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-file-link",role:"link"},"View Full File"))))})))}var nt=o(798),st={};st.styleTagTransform=f(),st.setAttributes=u(),st.insert=d().bind(null,"head"),st.domAPI=l(),st.insertStyleElement=g();i()(nt.A,st);nt.A&&nt.A.locals&&nt.A.locals;function at(e){var t,o,n="",s=function(){var e;n&&(null===(e=document.querySelectorAll(n))||void 0===e||e.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")})))};return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippets)||void 0===o?void 0:o.map((function(t,o){var a,i;return R("div",{className:"suggestion-item-card aa-each-suggestion ",key:o},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},t.title&&R("h2",{className:"aa-text-xs"},t.title))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs suggestion-paragraph aa-snippet-content-ref1"},t.contentArray.map((function(e,t){return(null==e?void 0:e.length)>0&&R("div",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),R("div",{className:"more-links-buttons aa-external-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),(null===(a=t.internalInfo)||void 0===a?void 0:a.length)>0&&R(P,null,R("div",{className:"line-with-text-heading"},R("h2",null,"Internal Information"),R("span",null)),R("p",{className:"aa-desc-xs suggestion-paragraph aa-snippet-content-ref2"},t.internalInfo.map((function(e,o){return(null==e?void 0:e.length)>0&&R("div",{key:o,className:"inner-text-snippet-selection ".concat(t.internalInfo.length>1&&!t.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:e}})}))),R("div",{className:"more-links-buttons aa-internal-seemore-buttons aa-hidden"},R("button",{className:"more-link-text aa-text-xs aa-more-button",role:"link"},"More")),R("div",{className:"line-with-text-heading"},R("span",null),R("h2",null,"Internal Information"))),(null===(i=null==t?void 0:t.sources)||void 0===i?void 0:i.length)>0&&R("div",{className:"souces-names-wrapper"},R("h1",{className:"aa-desc-xs"},"Sources :"),R("div",{className:"source-names"},t.sources.map((function(o,a){return o.url&&R("div",{key:a,className:"source-tag aa-source-tag",onMouseOver:function(){return function(t){var o,s,a;n&&(null===(o=document.querySelectorAll(n))||void 0===o||o.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")}))),n=".fragment-ext-"+t+"-"+(null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.suggestionIndex),null===(a=document.querySelectorAll(n))||void 0===a||a.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.add("selection-on-snippet-color")}))}(a+1)},onMouseLeave:s},t.isActCit&&R("span",null,a+1),R("a",{title:o.title,className:"aa-snippet-link"},(null==o?void 0:o.title)||"Know More"))}))))))})))}function it(e){var t,o,n,s,a,i,r,l,c,d,p,u,h,g,v,f,m=De;return R(P,null,(null===(o=(null===(t=e.searchResponse)||void 0===t?void 0:t.faqs)||[])||void 0===o?void 0:o.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"FAQ"),R("span",{className:"count-text aa-text-xxs"},null===(s=null===(n=e.searchResponse)||void 0===n?void 0:n.faqs)||void 0===s?void 0:s.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_FAQ_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_FAQ_SUGGESTION)})),(null===(i=(null===(a=e.searchResponse)||void 0===a?void 0:a.snippets)||[])||void 0===i?void 0:i.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Answers"),R("span",{className:"count-text aa-text-xxs"},null===(l=null===(r=e.searchResponse)||void 0===r?void 0:r.snippets)||void 0===l?void 0:l.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_SNIPPET_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_SNIPPET_SUGGESTION)})),(null===(d=(null===(c=e.searchResponse)||void 0===c?void 0:c.articles)||[])||void 0===d?void 0:d.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Web Pages"),R("span",{className:"count-text aa-text-xxs"},null===(u=null===(p=e.searchResponse)||void 0===p?void 0:p.articles)||void 0===u?void 0:u.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_ARTICLE_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_ARTICLE_SUGGESTION)})),(null===(g=(null===(h=e.searchResponse)||void 0===h?void 0:h.files)||[])||void 0===g?void 0:g.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"File Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Files"),R("span",{className:"count-text aa-text-xxs"},null===(f=null===(v=e.searchResponse)||void 0===v?void 0:v.files)||void 0===f?void 0:f.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(m.ASSIST_FILE_SUGGESTION).concat(e.suggestionIndex):"".concat(m.SEARCH_FILE_SUGGESTION)})))}var rt=o(724),lt={};lt.styleTagTransform=f(),lt.setAttributes=u(),lt.insert=d().bind(null,"head"),lt.domAPI=l(),lt.insertStyleElement=g();i()(rt.A,lt);rt.A&&rt.A.locals&&rt.A.locals;function ct(e){var t,o,n,s,a,i,r;return R(P,null,!(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.rootServiceInstance)||void 0===o?void 0:o.hideActionButtons)&&R("div",{className:"action-buttons aa-action-buttons "+((null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.addHideClass)?"aa-hidden":"")},!(null===(a=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.rootServiceInstance)||void 0===a?void 0:a.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null===(i=null==e?void 0:e.msgData)||void 0===i?void 0:i.rootServiceInstance)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function dt(e){return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"})}function pt(e){var t,o,n;return R(P,null,(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.suggestionLength)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.showLessText),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.showMoreText)))}function ut(e){var t,o=_e(e.suggestions.searchResponse),n=o[0],s=(o[1],e.hostInstance),a=s.rootService,i=Pe,r=De;Ee((function(){l()}),[]),Ee((function(){var t;if(e.ambiguityToken&&(null===(t=Object.keys(e.ambiguityToken))||void 0===t?void 0:t.length)>0){var o=r.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;a.handleFaqAmbiguityDescElement(o,e.ambiguityToken,null==n?void 0:n.faqs,s)}}),[e.suggestions]);var l=function(){var t,o,l,d,p,u,h,g=document.getElementById(r.ASSIST_FAQ_SUGGESTION+e.suggestionIndex),v=document.getElementById(r.ASSIST_SNIPPET_SUGGESTION+e.suggestionIndex),f=document.getElementById(r.ASSIST_ARTICLE_SUGGESTION+e.suggestionIndex),m=document.getElementById(r.ASSIST_FILE_SUGGESTION+e.suggestionIndex);if(null===(t=(null==n?void 0:n.faqs)||[])||void 0===t?void 0:t.length){var b,_=void 0;_=ne($e,{searchResponse:n,hostInstance:s,faqs:n.faqs,viewCount:2},s),(b=ne(pt,{hostInstance:s,faqs:n.faqs,moreClick:!1,suggestionLength:null===(o=n.faqs)||void 0===o?void 0:o.length,showLessText:"Show less FAQs",showMoreText:"Show more FAQs"},s))&&(null==_||_.append(b)),s.emit(Ue.BEFORE_VIEW_INIT,_,{event:Ue.FAQ_TEMPLATE,data:n.faqs}),null==g||g.append(_),_&&a.handleSeeMoreButtonsForFaq(g,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var E=_.querySelectorAll(i.SUGGESTION_EACH);a.renderEachFaqInSuggestionList(n,E,s,!0,e),b&&(a.handleSuggestionMoreClickEvent(b,g,E,s),a.handleSuggestionLessClickEvent(b,g,E,s))}if(null===(l=null==n?void 0:n.snippets)||void 0===l?void 0:l.length){var y=void 0;y=ne(at,{searchResponse:n,hostInstance:s,snippets:n.snippets,suggestionIndex:e.suggestionIndex},s),s.emit(Ue.BEFORE_VIEW_INIT,y,{event:Ue.SNIPPET_TEMPLATE,data:n.snippets}),null==v||v.append(y),y&&(a.handleSeeMoreButtonsForSearchAssist(v,Pe.DESC_TEXT_SNIPPET_EXTERNAL,Pe.EXTERNAL_SNIPPET_MORE_BTN_CONTAINER,s),a.handleSeeMoreButtonsForSearchAssist(v,Pe.DESC_TEXT_SNIPPET_INTERNAL,Pe.INTERNAL_SNIPPET_MORE_BTN_CONTAINER,s));var x=y.querySelectorAll(i.SUGGESTION_EACH);a.renderEachSnippetInSuggestionList(n,x,s)}if((null===(d=(null==n?void 0:n.articles)||[])||void 0===d?void 0:d.length)>0){var A,S=void 0;S=ne(ze,{searchResponse:n,hostInstance:s,articles:n.articles,viewCount:2},s),(A=ne(pt,{hostInstance:s,articles:n.articles,moreClick:!1,suggestionLength:null===(p=n.articles)||void 0===p?void 0:p.length,showLessText:"Show less web pages",showMoreText:"Show more web pages"},s))&&(null==S||S.append(A)),s.emit(Ue.BEFORE_VIEW_INIT,S,{event:Ue.ARTICE_TEMPLATE,data:n.articles}),null==f||f.append(S),S&&a.handleSeeMoreButtonsForSearchAssist(f,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var C=S.querySelectorAll(i.SUGGESTION_EACH);a.renderEachArticleInSuggestionList(n,C,s),A&&(a.handleSuggestionMoreClickEvent(A,f,C,s),a.handleSuggestionLessClickEvent(A,f,C,s))}if(null===(u=null==n?void 0:n.files)||void 0===u?void 0:u.length){var T,k=void 0;k=ne(ot,{searchResponse:n,hostInstance:s,files:n.files},s),(T=ne(pt,{hostInstance:s,files:n.files,moreClick:!1,suggestionLength:null===(h=n.files)||void 0===h?void 0:h.length,showLessText:"Show Less Files",showMoreText:"Show More Files"},s))&&(null==k||k.append(T)),s.emit(Ue.BEFORE_VIEW_INIT,k,{event:Ue.FILE_TEMPLATE,data:n.files}),null==m||m.append(k),k&&a.handleSeeMoreButtonsForSearchAssist(m,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var w=k.querySelectorAll(i.SUGGESTION_EACH);a.renderEachFileInSuggestionList(n,w,s),T&&(a.handleSuggestionMoreClickEvent(T,m,w,s),a.handleSuggestionLessClickEvent(T,m,w,s))}c()},c=function(){var e,t,o=null===(e=n.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==o?void 0:o.length)&&d(o[0],null===(t=o[0])||void 0===t?void 0:t.index)},d=function(t,o){var n=r.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;a.toggleArrows(o,n),t.toggle=!t.toggle,t.seeMoreWrapper=!1,a.checkAnswerAndToggleForAssist(t,o,s,e)};return R(P,null,(null===(t=Object.keys(n))||void 0===t?void 0:t.length)>0&&R("div",{className:"assist-suggestions-list"},R(it,{hostInstance:s,searchResponse:n,suggestionIndex:e.suggestionIndex,isAssist:!0})))}var ht=o(544),gt={};gt.styleTagTransform=f(),gt.setAttributes=u(),gt.insert=d().bind(null,"head"),gt.domAPI=l(),gt.insertStyleElement=g();i()(ht.A,gt);ht.A&&ht.A.locals&&ht.A.locals;var vt=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function ft(e){var t,o,n=e.hostInstance,s=n.rootService,a=_e([]),i=a[0],r=a[1],l=_e({}),c=l[0],d=l[1],p=_e({}),u=p[0],h=p[1],g=_e(!0),v=g[0],f=g[1],m=Pe;Ee((function(){n.on("CONVERSATION_SUMMARY_IN_ASSIST",(function(e){return b(e)}));var e=function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&y(e)};return n.on("AGENT_AI_RESPONSE",e),function(){n.off("AGENT_AI_RESPONSE",e)}}),[]),Ee((function(){var e=document.querySelector(m.ASSIST_SECTION);e.scrollTop=e.scrollHeight}),[i]);var b=function(e){var t;0===i.length&&f(!1);var o=ne(_,e,n),s=document.getElementsByClassName(m.SCROLL_DATA_ASSIST)[0];n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.SUMMARY_TEMPLATE_ASSIST,summaryObj:e}),null==s||s.append(o),null===(t=n.eventManager)||void 0===t||t.addEventListener(".aa-copy-summary-text","click",(function(){E(e)}),o)},_=function(e){var t=e.msgData;return R("div",{class:"summery-conv-banner-wrapper"},R("div",{class:"heading-text"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("h1",{className:"aa-text-sm medium"},"CONVERSATION SUMMARY")),R("li",null,R("span",{className:"summary-text"},t),R("button",{class:"copy-btn aa-copy-summary-text"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"})))))))},E=function(e){navigator.clipboard.writeText(e)},y=function(e){var t,o,n,a,i=qe(),l={};if(!s.isAutomationOnGoing&&e.suggestions&&(null===(t=Object.keys(e.suggestions))||void 0===t?void 0:t.length)>0)if(e.uiunqref){if(e.uiunqref){var c=JSON.parse(atob(e.uiunqref));r((function(t){var o;return c&&(null==c?void 0:c.question)===(null===(o=e.suggestions)||void 0===o?void 0:o.faqs[0].question)?s.updateSearchResponse(t,e,c):t})),d(c)}}else(l=x(e,i))&&(null===(o=Object.keys(l))||void 0===o?void 0:o.length)>0&&r((function(e){return vt(vt([],e,!0),[l],!1)}));e.sendMenuRequest&&(null===(n=null==e?void 0:e.buttons)||void 0===n?void 0:n.length)>0&&0==(null===(a=Object.keys(u))||void 0===a?void 0:a.length)&&(l=s.formatWelcomeMessageResponse(e),h(e))},x=function(e,t){var o;e&&(null===(o=Object.keys(e))||void 0===o?void 0:o.length)>0&&(e.suggestionFrom=Oe.ASSIST);var n=0;return r((function(e){return(null==e?void 0:e.length)>0&&(n=null==e?void 0:e.length),e})),{data:e,type:Ne.SUGGESTIONS,uuid:t,searchResponse:s.formatSearchResponse(e,!1,n),connectionDetails:s.connectionDetails}};return R(P,null,R("div",{className:"assist-data-wrapper-container"},R("div",{className:"assist-block-content"},R("div",{className:"assist-header-content"},R("div",{className:"left-title-info"},R("div",{className:"text-dropdown-info"},R("h1",null,"Assist")))),R("div",{className:"scroll-data-assist aa-assist-section"},null===(t=i)||void 0===t?void 0:t.map((function(e,t){return e.type===Ne.SUGGESTIONS&&R(ut,{hostInstance:n,suggestions:e,suggestionIndex:t,key:t,ambiguityToken:c})})),0===i.length&&0===(null===(o=Object.keys(u))||void 0===o?void 0:o.length)&&R(P,null,v&&R("div",{class:"empty-listing-triggers"},R("h1",{className:"aa-text-sm medium m-0 center"},"Listening for triggers"),R("p",{className:"aa-desc-xs m-0 center"},"Agent AI is actively listening to your conversation and ready to assist automatically when triggered.")))))))}var mt=o(478),bt={};bt.styleTagTransform=f(),bt.setAttributes=u(),bt.insert=d().bind(null,"head"),bt.domAPI=l(),bt.insertStyleElement=g();i()(mt.A,bt);mt.A&&mt.A.locals&&mt.A.locals;var _t=function(){return _t=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},_t.apply(this,arguments)};function Et(){return R("div",{className:"input-block aa-input-block"},R("input",{id:"aa-search-input",type:"text",className:"input-control","aria-describedby":"search",placeholder:"Ask a customer",value:""}),R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"aa-input-search-icon"},R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33342 1.66675C4.65152 1.66675 1.66675 4.65152 1.66675 8.33342C1.66675 12.0153 4.65152 15.0001 8.33342 15.0001C9.87401 15.0001 11.2925 14.4775 12.4215 13.6L16.9108 18.0893C17.2363 18.4148 17.7639 18.4148 18.0893 18.0893C18.4148 17.7639 18.4148 17.2363 18.0893 16.9108L13.6 12.4215C14.4775 11.2925 15.0001 9.87401 15.0001 8.33342C15.0001 4.65152 12.0153 1.66675 8.33342 1.66675ZM3.33341 8.33342C3.33341 5.57199 5.57199 3.33341 8.33342 3.33341C11.0948 3.33341 13.3334 5.57199 13.3334 8.33342C13.3334 11.0948 11.0948 13.3334 8.33342 13.3334C5.57199 13.3334 3.33341 11.0948 3.33341 8.33342Z",fill:"#667085"})),R("button",{className:"clear-search aa-input-search-close aa-hidden"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))}function yt(e){var t,o,n,s=e.hostInstance,a=_e({value:"",isEntered:!1,stTime:null,edTime:null}),i=a[0],r=a[1],l=_e(""),c=l[0],d=l[1],p=_e({}),u=p[0],h=p[1],g=_e(!1),v=g[0],f=g[1],m=_e(!1),b=m[0],_=m[1],E=s.rootService,y=Pe,x=De,A=null;Ee((function(){var e=function(e){var t;(null==e?void 0:e.suggestions)&&(null===(t=Object.keys(null==e?void 0:e.suggestions))||void 0===t?void 0:t.length)>0&&(e.isSearch||e.uiunqref)&&(N(e),_(!1),E.searchedResultData=e)};return s.on("AGENT_AI_AGENT_RESPONSE",e),C(),function(){s.off("AGENT_AI_AGENT_RESPONSE",e)}}),[]),Ee((function(){E.handleSearchText(i,s)}),[i]),Ee((function(){S(b)}),[b]),Ee((function(){var e;!E.faqAnswerIdsPlace&&u&&(null===(e=Object.keys(u))||void 0===e?void 0:e.length)>0&&(O(),L())}),[u]);var S=function(e){var t,o=null===(t=null==s?void 0:s.chatEle)||void 0===t?void 0:t.querySelector(y.SEARCH_INPUT_BLOCK);o&&((null==o?void 0:o.querySelector(y.SEARCH_INPUT_CLOSE)).disabled=e)},C=function(){var e,t,o,n,a,i=ne(Et,{},s);i&&(s.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.SEARCH_INPUT}),null===(o=null===(t=null===(e=null==s?void 0:s.chatEle)||void 0===e?void 0:e.querySelector(y.SEARCH_SUGGESTION_WRAPPER))||void 0===t?void 0:t.querySelector("#".concat(x.SEARCH_SUGGESTION_BLOCK)))||void 0===o||o.append(i),null===(n=s.eventManager)||void 0===n||n.addEventListener("#".concat(x.SEARCH_INPUT),"keyup",(function(e){"Enter"===e.key&&e.target.value?k(e):T(e)}),i),null===(a=s.eventManager)||void 0===a||a.addEventListener(y.SEARCH_INPUT_CLOSE,"click",(function(e){I()}),i))},T=function(e){r({value:e.target.value,isEntered:!1});var t=e.target.value;t.length>0?c===t||c.includes(t):I(),(null==t?void 0:t.length)>0&&!A&&(A=new Date)},k=function(e){_(!0),w(e.target.value,!0),d(""),setTimeout((function(){_(!1)}),15e3)},w=function(e,t){void 0===t&&(t=!1);var o=null,n=null;t&&(o=A,n=new Date),r({value:e,isEntered:t,stTime:o,edTime:n})},I=function(){r({value:"",isEntered:!1}),d(""),f(!1),h({}),A=null,E.faqAnswerIdsPlace=!1},N=function(e){var t,o,n,a,i,r,l,c,d;if(f(!0),null==e?void 0:e.suggestions)if(e.uiunqref){if(e.uiunqref){var p=JSON.parse(atob(e.uiunqref));if(e.suggestions.faqs=E.formatFAQResponse(e.suggestions.faqs),E.faqAnswerIdsPlace=!(!p||(null==p?void 0:p.question)!==e.suggestions.faqs[0].question),E.faqAnswerIdsPlace){var u=null===(l=null===(r=null==e?void 0:e.suggestions)||void 0===r?void 0:r.faqs)||void 0===l?void 0:l.findIndex((function(e,t){if(e.question===p.question)return e})),g={};if(u>=0&&(g=null===(c=null==e?void 0:e.suggestions)||void 0===c?void 0:c.faqs[u]),g&&(null===(d=Object.keys(g))||void 0===d?void 0:d.length)>0){var v=[];h((function(e){var t;return v=null===(t=null==e?void 0:e.faqs)||void 0===t?void 0:t.map((function(e,t){return g&&g.answer&&t===p.index&&(e.answer=g.answer),g&&(e.showSpinner=!1),e})),e})),E.handleFaqAmbiguityDescElement(x.SEARCH_FAQ_SUGGESTION,p,v,s),h((function(e){return _t(_t({},e),{faqs:v})}))}}}}else{E.faqAnswerIdsPlace=!1;var m=E.formatSearchResponse(e,!0,0);m&&Object.keys(m).length>0&&(m=_t(_t({},m),{totalSearchResults:((null===(t=m.dialogs)||void 0===t?void 0:t.length)||0)+((null===(o=m.faqs)||void 0===o?void 0:o.length)||0)+((null===(n=m.articles)||void 0===n?void 0:n.length)||0)+((null===(a=m.files)||void 0===a?void 0:a.length)||0)+((null===(i=m.snippets)||void 0===i?void 0:i.length)||0)}),h(m))}else h({})},O=function(){var e,t,o,n,a,i,r,l,c=document.getElementById(x.SEARCH_FAQ_SUGGESTION),d=document.getElementById(x.SEARCH_SNIPPET_SUGGESTION),p=document.getElementById(x.SEARCH_ARTICLE_SUGGESTION),h=document.getElementById(x.SEARCH_FILE_SUGGESTION);if(null==(l=[c,d,p,h])||l.forEach((function(e){e&&(e.innerHTML="")})),null===(e=(null==u?void 0:u.faqs)||[])||void 0===e?void 0:e.length){var g,v=void 0;v=ne($e,{searchResponse:u,hostInstance:s,faqs:u.faqs,viewCount:2},s),(g=ne(pt,{hostInstance:s,faqs:u.faqs,moreClick:!1,suggestionLength:null===(t=u.faqs)||void 0===t?void 0:t.length,showLessText:"Show less FAQs",showMoreText:"Show more FAQs"},s))&&(null==v||v.append(g)),s.emit(Ue.BEFORE_VIEW_INIT,v,{event:Ue.SEARCH_FAQ_TEMPLATE,data:u.faqs}),null==c||c.append(v),v&&E.handleSeeMoreButtonsForFaq(c,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var f=v.querySelectorAll(y.SUGGESTION_EACH);E.renderEachFaqInSuggestionList(u,f,s,!1,{}),g&&(E.handleSuggestionMoreClickEvent(g,c,f,s),E.handleSuggestionLessClickEvent(g,c,f,s))}if(null===(o=null==u?void 0:u.snippets)||void 0===o?void 0:o.length){var m=void 0;m=ne(at,{searchResponse:u,hostInstance:s,snippets:u.snippets,suggestionIndex:0},s),s.emit(Ue.BEFORE_VIEW_INIT,m,{event:Ue.SEARCH_SNIPPET_TEMPLATE,data:u.snippets}),null==d||d.append(m),m&&(E.handleSeeMoreButtonsForSearchAssist(d,Pe.DESC_TEXT_SNIPPET_EXTERNAL,Pe.EXTERNAL_SNIPPET_MORE_BTN_CONTAINER,s),E.handleSeeMoreButtonsForSearchAssist(d,Pe.DESC_TEXT_SNIPPET_INTERNAL,Pe.INTERNAL_SNIPPET_MORE_BTN_CONTAINER,s));var b=m.querySelectorAll(y.SUGGESTION_EACH);E.renderEachSnippetInSuggestionList(u,b,s)}if((null===(n=(null==u?void 0:u.articles)||[])||void 0===n?void 0:n.length)>0){var _,A=void 0;A=ne(ze,{searchResponse:u,hostInstance:s,articles:u.articles,viewCount:2},s),(_=ne(pt,{hostInstance:s,articles:u.articles,moreClick:!1,suggestionLength:null===(a=u.articles)||void 0===a?void 0:a.length,showLessText:"Show less web pages",showMoreText:"Show more web pages"},s))&&(null==A||A.append(_)),s.emit(Ue.BEFORE_VIEW_INIT,A,{event:Ue.SEARCH_ARTICE_TEMPLATE,data:u.articles}),null==p||p.append(A),A&&E.handleSeeMoreButtonsForSearchAssist(p,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var S=A.querySelectorAll(y.SUGGESTION_EACH);E.renderEachArticleInSuggestionList(u,S,s),_&&(E.handleSuggestionMoreClickEvent(_,p,S,s),E.handleSuggestionLessClickEvent(_,p,S,s))}if(null===(i=null==u?void 0:u.files)||void 0===i?void 0:i.length){var C,T=void 0;T=ne(ot,{searchResponse:u,hostInstance:s,files:u.files},s),(C=ne(pt,{hostInstance:s,files:u.files,moreClick:!1,suggestionLength:null===(r=u.files)||void 0===r?void 0:r.length,showLessText:"Show Less Files",showMoreText:"Show More Files"},s))&&(null==T||T.append(C)),s.emit(Ue.BEFORE_VIEW_INIT,T,{event:Ue.SEARCH_FILE_TEMPLATE,data:u.files}),null==h||h.append(T),T&&E.handleSeeMoreButtonsForSearchAssist(h,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,s);var k=T.querySelectorAll(y.SUGGESTION_EACH);E.renderEachFileInSuggestionList(u,k,s),C&&(E.handleSuggestionMoreClickEvent(C,h,k,s),E.handleSuggestionLessClickEvent(C,h,k,s))}},L=function(){var e,t,o=null===(e=u.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==o?void 0:o.length)&&M(o[0],null===(t=o[0])||void 0===t?void 0:t.index)},M=function(e,t){e.toggle=!e.toggle,e.seeMoreWrapper=!1;var o=x.SEARCH_FAQ_SUGGESTION;E.toggleArrows(t,o),E.checkAnswerAndToggleForSearch(e,t,s)};return R("div",{className:"search-block-data-suggestions-wrapper aa-search-suggestion-wrapper"},R("div",{class:"search-block-data-suggestions"},R("div",{className:"suggestionslist-conntent-search"},((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0||v)&&R(P,null,R(it,{hostInstance:s,searchResponse:u,isAssist:!1})),0==(null===(o=Object.keys(u))||void 0===o?void 0:o.length)&&v&&!b&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("h1",{className:"aa-text-md m-0 center"},"No Search Result Found"),R("p",{className:"aa-desc-sm m-0 center"},'"Could you rephrase your question or ask something else?"')),0==(null===(n=Object.keys(u))||void 0===n?void 0:n.length)&&!v&&!b&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("p",{className:"aa-desc-sm m-0 center"},"Type to search"))),R("div",{className:"search-block-input",id:"searchSuggestionsBlock"})),b&&R("div",{id:"loader",className:"loader-progress-individual"},R("div",{className:"loading-border"})))}var xt=o(762),At={};At.styleTagTransform=f(),At.setAttributes=u(),At.insert=d().bind(null,"head"),At.domAPI=l(),At.insertStyleElement=g();i()(xt.A,At);xt.A&&xt.A.locals&&xt.A.locals;var St=function(){return St=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},St.apply(this,arguments)},Ct=function(e,t,o,n){return new(o||(o=Promise))((function(s,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function r(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){e.done?s(e.value):function(e){return e instanceof o?e:new o((function(t){t(e)}))}(e.value).then(i,r)}l((n=n.apply(e,t||[])).next())}))},Tt=function(e,t){var o,n,s,a,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(r){return function(l){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(i=0)),i;)try{if(o=1,n&&(s=2&r[0]?n.return:r[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,r[1])).done)return s;switch(n=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,n=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(s=i.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){i=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){i.label=r[1];break}if(6===r[0]&&i.label<s[1]){i.label=s[1],s=r;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(r);break}s[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],n=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},kt={jwt_grant:"/api/1.1/oAuth/token/jwtgrant",get_aa_settings:"/agentassist/api/v1/agentassist/:botId/agentassistsetting?e=:channel",get_history_trascript:"/agentassist/api/v1/agentassistconversations/:conversationId/conversation?page=0&limit=-1&botId=:botId&sessionId=:sessionId&isSummaryRequired=:isSummaryRequired&experience=:channel",get_checklist:"/agentassist/api/v1/agentcoachingconfiguration/checklist/:botId/activeChecklists"};const wt=function(e,t,o,n){return void 0===t&&(t={}),Ct(void 0,void 0,void 0,(function(){var s,a,i,r,l,c,d,p,u,h,g,v,f,m;return Tt(this,(function(b){switch(b.label){case 0:return b.trys.push([0,5,,6]),_=n,s=kt[e].replace(/:(\w+)/g,(function(e,t){return void 0!==_[t]?_[t]:":".concat(t)})),a=o.rootService.connectionDetails,i=a.domainURL,r=a.botId,l=((null===(f=o.rootService.grantResponseObj)||void 0===f?void 0:f.userInfo)||{}).accountId,c=((null===(m=o.rootService.grantResponseObj)||void 0===m?void 0:m.authorization)||{}).accessToken,d=new Headers(t.headers||{}),p={iid:r,accountId:l,Authorization:"bearer "+c,"Content-Type":"application/json"},Object.keys(p).forEach((function(e){d.set(e,p[e])})),u=St(St({},t),{headers:d}),[4,fetch(i+s,u)];case 1:return(h=b.sent()).ok?[3,3]:[4,h.json()];case 2:throw g=b.sent(),new Error(g.message||"Something went wrong");case 3:return[4,h.json()];case 4:return[2,b.sent()];case 5:throw v=b.sent(),console.error("Fetch error:",v),v;case 6:return[2]}var _}))}))};var It=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function Nt(e){var t=e.hostInstance,o=_e([]),n=o[0],s=o[1],a=_e([]),i=a[0],r=a[1],l=_e([]),c=l[0],d=l[1],p=_e(void 0),u=p[0],h=p[1],g=_e(null),v=g[0],f=g[1],m=function(e){return de=5,ye((function(){return{current:e}}),[])}(!0),b=t.rootService,_=Pe;Ee((function(){E(),y()}),[]);var E=function(){var e=function(e){return k(e)};t.on("AGENT_TRANSCRIPT_MSG",e),t.on("USER_TRANSCRIPT_MSG",e),t.on("AGENT_TRANSCRIPT_RESPONSE",e),t.on("USER_TRANSCRIPT_RESPONSE",e)},y=function(){A().then((function(e){if(e){var t=e.userBotMessages,o=e.summary,n=e.userAgentMessages,s=x(null==t?void 0:t.result);d(s),(null==o?void 0:o.message)&&L(o);var a=x(null==n?void 0:n.result);r(a)}})).catch((function(e){I()}))};Ee((function(){if(m.current)m.current=!1;else{if((c||[]).forEach((function(e){var t,o;(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)&&S(e)})),null==u?void 0:u.msg){var e=ne(O,u,t),o=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,e,{event:Ue.SUMMARY_TEMPLATE,summary:u}),o.append(e)}I(),(i||[]).forEach((function(e){var t,o;"USER"!==(null==e?void 0:e.msgType)&&"AGENT"!==(null==e?void 0:e.msgType)||!(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)||C(e)}))}}),[c,i,u]);var x=function(e){return(null==e?void 0:e.length)?e.map((function(e){var t,o,n;try{if("string"==typeof(null===(o=null===(t=null==e?void 0:e.components[0])||void 0===t?void 0:t.data)||void 0===o?void 0:o.text)){var s=JSON.parse(e.components[0].data.text);(null===(n=null==s?void 0:s.payload)||void 0===n?void 0:n.text)&&(e.components[0].data.text=s.payload.text)}}catch(e){}return e})):[]},A=function(){var e=b.connectionDetails||{},o=e.botId,n=e.conversationId,s=e.channel,a=e.sessionId;return wt("get_history_trascript",{method:"GET",headers:{"Content-Type":"application/json"}},t,{conversationId:n,botId:o,channel:s,sessionId:a||0,isSummaryRequired:!0})},S=function(e){var o,n,s={timestamp:T(e.createdOn),msg:null===(n=null===(o=e.components[0])||void 0===o?void 0:o.data)||void 0===n?void 0:n.text,from:"BOT"===e.msgType?"bot":"user",type:"BOT"===e.msgType?"bot":"user"},a=ne(M,s,t),i=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,a,{event:"BOT"===e.msgType?Ue.BOT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:s}),i.append(a)},C=function(e){var o,n,s={timestamp:T(e.createdOn),msg:null===(n=null===(o=e.components[0])||void 0===o?void 0:o.data)||void 0===n?void 0:n.text,from:"AGENT"===e.msgType?"agent":"user",type:"AGENT"===e.msgType?"agent":"user"},a=ne(M,s,t),i=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,a,{event:"AGENT"===e.msgType?Ue.AGENT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:s}),i.append(a)},T=function(e){var t=new Date(e),o=t.getUTCHours(),n=t.getUTCMinutes(),s=o>=12?"pm":"am";return n=n<10?"0"+n:n,"".concat(o=(o%=12)||12,":").concat(n," ").concat(s)},k=function(e){var o,a,i,r=null===(a=null===(o=null==e?void 0:e.author)||void 0===o?void 0:o.type)||void 0===a?void 0:a.toLowerCase(),l={timestamp:w(new Date),msg:null==e?void 0:e.message,from:r,type:r};s(It(It([],n,!0),[l],!1));var c=ne(M,l,t),d=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,c,{event:"AGENT"===(null===(i=null==e?void 0:e.author)||void 0===i?void 0:i.type)?Ue.AGENT_TRANSCRIPT:Ue.USER_TRANSCRIPT,data:l}),d.append(c)},w=function(e){var t=e.getHours(),o=e.getMinutes(),n=t>=12?"pm":"am";return(t=(t%=12)||12)+":"+(o=o<10?"0"+o:o)+" "+n},I=function(){var e={title:"Agent joined the conversation",timeStamp:w(new Date)};f(v);var o=ne(N,e,t),n=document.getElementsByClassName(_.TRANSCRIPT_BODY_WRAPPER)[0];t.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.AGENT_JOINED_TEMPLATE,data:e}),n.append(o)},N=function(e){var t=e.msgData;return R("div",{className:"agent-joined-banner"},R("div",{className:"line-border"}),R("div",{className:"info-joined-details"},R("h4",{className:"aa-text-sm"},t.title)),R("div",{className:"line-border"}))},O=function(e){var t=e.msgData;return R("div",{className:"summary-wrapper"},R("div",{className:"summary-header"},R("i",{className:"krIocnsFont-Aimark"}),R("span",{className:"aa-text-md medium"},t.title)),R("p",{className:"aa-text-sm"},t.msg))},L=function(e){var t={title:"Conversation Summary",msg:null==e?void 0:e.message};h(t)},M=function(e){var t=e.msgData;return R("div",{className:"user"===t.type?"aa-bot-bubble-comp":"aa-agent-bubble-comp"},R("div",{className:"user"===t.type?"bot-bubble-content":"agent-bubble-content"},R("div",{className:"top-info"},"bot"!==t.type&&R("div",{className:"you-text"},"agent"===t.type?"agent":"user"),"bot"===t.type&&R("div",{className:"you-text"},"bot"===t.type?"bot":"user"),R("div",{className:"time-tamp"},R("time",null,t.timestamp))),R("div",{className:"bubble-msg"},t.msg)))};return Ee((function(){var e=document.querySelector(".aa-transcript-body-wrapper");e.scrollTop=e.scrollHeight}),[n]),R(P,null,R("div",{className:"transcript-template-wrapper"},R("div",{className:"transcript-template-data"},R("h1",{className:"transcript-header aa-text-md semibold"},"Transcript"),R("div",{className:"transcript-body-wrapper aa-transcript-body-wrapper"}))))}var Ot=o(884),Lt={};Lt.styleTagTransform=f(),Lt.setAttributes=u(),Lt.insert=d().bind(null,"head"),Lt.domAPI=l(),Lt.insertStyleElement=g();i()(Ot.A,Lt);Ot.A&&Ot.A.locals&&Ot.A.locals;var Rt=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function Mt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.stageList)||void 0===o?void 0:o.map((function(t,o){var n,s=((null==t?void 0:t.steps)||[]).every((function(e){return e.complete})),a=["aa-dropdown-item","aa-stage-drp-".concat(o)];return"Close"===t.name&&a.push("aa-close-stage-btn"),"Close"!==t.name||s||a.push("disabled-msg"),R("button",{"aria-disabled":"true",className:"".concat(a.join(" "))},R("p",null,t.name),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-selected-stage-".concat(o," ").concat(o!==(null===(n=e.msgData)||void 0===n?void 0:n.selectedStInx)?"aa-hidden":"")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})))})))}function Pt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.allChecklists)||void 0===o?void 0:o.map((function(e,t){return R(P,null,0==t&&R("div",{className:"heading-text-scripts aa-primary-scripts"},"PRIMARY SCRIPTS"),"primary"===e.type&&R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-primary-cl-".concat(t)},R("p",null,e.name),R("button",{className:"primaryBtn aa-hidden aa-cl-resume-".concat(t)},"Resume"),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-cl-check-".concat(t," aa-cl-item aa-hidden")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))})))}function Dt(e){var t,o;return R("div",null,null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.allChecklists)||void 0===o?void 0:o.map((function(e,t){return R(P,null,0==t&&R("div",{className:"heading-text-scripts aa-dynamic-scripts"},"DYNAMIC SCRIPTS"),"dynamic"===e.type&&R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-dynamic-cl-".concat(t)},R("p",null,e.name),R("button",{className:"primaryBtn aa-hidden aa-cl-resume-".concat(t)},"Resume"),R("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"aa-cl-check-".concat(t," aa-cl-item aa-hidden")},R("path",{d:"M15 4.5L6.75 12.75L3 9",stroke:"#2970FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))})))}function Bt(e){var t,o,n,s,a,i,r;return R("button",{"aria-disabled":"true",className:"aa-dropdown-item aa-trigger-checklist-btn-".concat(null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.checklist)||void 0===o?void 0:o._id)},R("p",{className:"aa-trigger-checklist-name"},null===(s=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.checklist)||void 0===s?void 0:s.name),R("span",{className:"aa-trigger-checklist-stepcount"},null===(r=null===(i=null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.checklist)||void 0===i?void 0:i.stages)||void 0===r?void 0:r.length," steps"))}function Ht(e){return R("div",{className:"empty-listing-triggers aa-checklist-empty"},R("h1",{className:"aa-text-sm medium"},"Select Playbook"),R("p",{className:"aa-desc-xs center"},"Agent AI is unable to load the playbook due to all available playbooks being dynamic. Click 'Select Playbook' to access the playbook"))}function Gt(e){return R("div",{className:"playbook-header-data aa-playbook-header"},R("div",{className:"left-sec-data"},R("div",{className:"aa-dropdown aa-triggerList-drp-wrapper aa-hidden"},R("button",{type:"button",id:"playbookDrpTriggerChecklist",className:"aa-dropdown-toggle playbook-suggestion aa-trigger-checklist-count-btn"},R("sub",{className:"aa-triggerDynChecklist-bulb-count"}),R("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},R("path",{d:"M13.0496 4.64998C13.0496 4.07008 12.5795 3.59998 11.9996 3.59998C11.4197 3.59998 10.9496 4.07008 10.9496 4.64998V5.69998C10.9496 6.27987 11.4197 6.74998 11.9996 6.74998C12.5795 6.74998 13.0496 6.27987 13.0496 5.69998V4.64998Z",fill:"#2B75E4"}),R("path",{d:"M17.9393 7.54515C18.3493 7.1351 18.3493 6.47027 17.9393 6.06022C17.5292 5.65017 16.8644 5.65017 16.4543 6.06022L15.7119 6.80269C15.3018 7.21274 15.3018 7.87756 15.7119 8.28761C16.1219 8.69766 16.7868 8.69766 17.1968 8.28761L17.9393 7.54515Z",fill:"#2B75E4"}),R("path",{d:"M20.3996 12C20.3996 12.5799 19.9295 13.05 19.3496 13.05H18.2996C17.7197 13.05 17.2496 12.5799 17.2496 12C17.2496 11.4201 17.7197 10.95 18.2996 10.95H19.3496C19.9295 10.95 20.3996 11.4201 20.3996 12Z",fill:"#2B75E4"}),R("path",{d:"M6.80231 8.28763C7.21236 8.69768 7.87718 8.69768 8.28723 8.28763C8.69728 7.87758 8.69728 7.21275 8.28723 6.8027L7.54477 6.06024C7.13472 5.65019 6.4699 5.65019 6.05984 6.06024C5.64979 6.47029 5.64979 7.13512 6.05984 7.54517L6.80231 8.28763Z",fill:"#2B75E4"}),R("path",{d:"M6.74961 12C6.74961 12.5799 6.27951 13.05 5.69961 13.05H4.64961C4.06971 13.05 3.59961 12.5799 3.59961 12C3.59961 11.4201 4.06971 10.95 4.64961 10.95H5.69961C6.27951 10.95 6.74961 11.4201 6.74961 12Z",fill:"#2B75E4"}),R("path",{d:"M9.89961 18.3V17.25H14.0996V18.3C14.0996 19.4598 13.1594 20.4 11.9996 20.4C10.8398 20.4 9.89961 19.4598 9.89961 18.3Z",fill:"#2B75E4"}),R("path",{d:"M14.1005 16.2C14.1159 15.8426 14.3176 15.5214 14.6003 15.2982C15.5744 14.529 16.1996 13.3375 16.1996 12C16.1996 9.68038 14.3192 7.79998 11.9996 7.79998C9.68001 7.79998 7.79961 9.68038 7.79961 12C7.79961 13.3375 8.42483 14.529 9.39896 15.2982C9.68164 15.5214 9.88335 15.8426 9.89867 16.2H14.1005Z",fill:"#2B75E4"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-trigger-checklist-drp","aria-labelledby":"playbookDrpTriggerChecklist"},R("div",{className:"heading-text-scripts"},"RECOMMENDED PLAYBOOK"))),R("div",{className:"dropdowns-text-info"},R("div",{className:"aa-dropdown aa-checklist-drp-wrapper aa-hidden"},R("button",{type:"button",id:"playbookDrpListBtn",className:"aa-dropdown-toggle"},R("span",{className:"aa-selected-checklist"}),R("svg",{className:"arrow-icon aa-selected-checklist-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.52876 5.52858C3.78911 5.26823 4.21122 5.26823 4.47157 5.52858L8.00016 9.05717L11.5288 5.52858C11.7891 5.26823 12.2112 5.26823 12.4716 5.52858C12.7319 5.78892 12.7319 6.21103 12.4716 6.47138L8.47157 10.4714C8.21122 10.7317 7.78911 10.7317 7.52876 10.4714L3.52876 6.47138C3.26841 6.21103 3.26841 5.78892 3.52876 5.52858Z",fill:"#667085"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-checklist-drp","aria-labelledby":"playbookDrpListBtn"})),R("div",{className:"bottom-titles-info aa-stage-drp-wrapper-main aa-hidden"},R("h6",null,"Stage: "),R("div",{className:"aa-dropdown aa-stage-drp-wrapper"},R("button",{type:"button",id:"playbookStageDrpBtn",className:"aa-dropdown-toggle"},R("span",{className:"aa-selected-stage"}),R("svg",{className:"arrow-icon aa-selected-stage-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.52876 5.52858C3.78911 5.26823 4.21122 5.26823 4.47157 5.52858L8.00016 9.05717L11.5288 5.52858C11.7891 5.26823 12.2112 5.26823 12.4716 5.52858C12.7319 5.78892 12.7319 6.21103 12.4716 6.47138L8.47157 10.4714C8.21122 10.7317 7.78911 10.7317 7.52876 10.4714L3.52876 6.47138C3.26841 6.21103 3.26841 5.78892 3.52876 5.52858Z",fill:"#667085"}))),R("div",{className:"playbook-dropdown-content aa-dropdown-content aa-stage-drp","aria-labelledby":"playbookStageDrpBtn"}))))),R("div",{className:"actions-checklist-header"},R("button",{className:"solid-action step-complete aa-step-complete-count aa-hidden","aria-label":"button"}),R("button",{className:"solid-action stop-assist aa-proceedtoclose-btn aa-hidden","aria-label":"button",title:"Proceed to close"},R("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"},R("g",{"clip-path":"url(#clip0_9531_17675)"},R("path",{d:"M8.24998 4V2.5L9.74998 1L10.25 2L11.25 2.5L9.74998 4H8.24998ZM8.24998 4L6.24999 5.99997M11.25 6C11.25 8.76142 9.01142 11 6.25 11C3.48858 11 1.25 8.76142 1.25 6C1.25 3.23858 3.48858 1 6.25 1M8.75 6C8.75 7.38071 7.63071 8.5 6.25 8.5C4.86929 8.5 3.75 7.38071 3.75 6C3.75 4.61929 4.86929 3.5 6.25 3.5",stroke:"#DC2626","stroke-width":"0.7","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9531_17675"},R("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.25)"})))))))}function qt(e){var t,o,n,s=_e(!1),a=s[0],i=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),p=d[0],u=d[1],h=null===(o=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hostInstance)||void 0===o?void 0:o.rootService;Ee((function(){g()}),[]);var g=function(){var e,t,o=!1,n=!1;i(h.connectionDetails.channel===Oe.VOICE),!1===(null===(e=null==h?void 0:h.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(c(!0),n=!0),!1===(null===(t=null==h?void 0:h.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(u(!0),o=!0),n&&o&&i(!0)};return R("div",{className:"playbook-steps-repeat-data"},null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.stages.map((function(t,o){var n,s=((null==t?void 0:t.steps)||[]).every((function(e){return e.complete})),i=["close-playbook-data","aa-playbook-stage-".concat(o)];return"Close"===t.name&&i.push("aa-close-stage"),s||i.push("aa-hidden"),R(P,{key:o},0!=o&&R("div",{className:"".concat(i.join(" "))},R("span",null),R("p",null,t.name),R("span",null)),null===(n=null==t?void 0:t.steps)||void 0===n?void 0:n.map((function(n,i){var r,c,d=["playbook-step","aa-playbook-step-".concat(o,"-").concat(i," ")];return"Close"===t.name&&d.push("aa-close-steps"),(null==n?void 0:n.ongoing)&&d.push("playbook-step-ongoing"),"Close"!==t.name||s||d.push("aa-hidden"),R("button",{key:i,className:"".concat(d.join(" ")),id:"".concat(n._id)},R("div",{className:"heading-step aa-heading-step ".concat((null==n?void 0:n.ongoing)?"":"disabled-msg")},R("h1",{className:"aa-step-header-name ".concat(n.complete?"strike-text":"")},n.name),R("button",{className:"check-btn aa-step-complete-".concat(o,"-").concat(i," ").concat((null==n?void 0:n.ongoing)?"":"aa-hidden")},R("svg",{width:"10",height:"10",viewBox:"0 0 7 6",fill:"none"},R("path",{d:"M6.34755 0.999929C6.67364 1.32601 6.67365 1.85471 6.34756 2.1808L4.79202 3.73638L3.23648 5.29196C3.07989 5.44856 2.8675 5.53653 2.64604 5.53653C2.42458 5.53653 2.21219 5.44855 2.0556 5.29196L0.50005 3.73636C0.173967 3.41026 0.173975 2.88157 0.500069 2.55549C0.826161 2.2294 1.35485 2.22941 1.68094 2.55551L2.64605 3.52065L5.16668 0.999945C5.49276 0.673852 6.02146 0.673846 6.34755 0.999929Z",fill:"#D4D4D4"})))),R("div",{className:"step-text-send-block ".concat(n.ongoing?"":"aa-hidden")},R("div",{className:"step-actions-send-copy ".concat(a?"aa-hidden":"")},R("button",{className:"solidbtn aa-step-copy-btn ".concat(!p&&(null==n?void 0:n.isSendCopy)?"":"aa-hidden")},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9531_13889)"},R("path",{d:"M10.6663 10.6667V12.5333C10.6663 13.2801 10.6663 13.6534 10.521 13.9387C10.3932 14.1895 10.1892 14.3935 9.93833 14.5214C9.65311 14.6667 9.27974 14.6667 8.53301 14.6667H3.46634C2.7196 14.6667 2.34624 14.6667 2.06102 14.5214C1.81014 14.3935 1.60616 14.1895 1.47833 13.9387C1.33301 13.6534 1.33301 13.2801 1.33301 12.5333V7.46668C1.33301 6.71994 1.33301 6.34657 1.47833 6.06136C1.60616 5.81047 1.81014 5.6065 2.06102 5.47867C2.34624 5.33334 2.7196 5.33334 3.46634 5.33334H5.33301M7.46634 10.6667H12.533C13.2797 10.6667 13.6531 10.6667 13.9383 10.5214C14.1892 10.3935 14.3932 10.1895 14.521 9.93866C14.6663 9.65345 14.6663 9.28008 14.6663 8.53334V3.46668C14.6663 2.71994 14.6663 2.34657 14.521 2.06136C14.3932 1.81047 14.1892 1.6065 13.9383 1.47867C13.6531 1.33334 13.2797 1.33334 12.533 1.33334H7.46634C6.7196 1.33334 6.34624 1.33334 6.06102 1.47867C5.81014 1.6065 5.60616 1.81047 5.47833 2.06136C5.33301 2.34657 5.33301 2.71994 5.33301 3.46668V8.53334C5.33301 9.28008 5.33301 9.65345 5.47833 9.93866C5.60616 10.1895 5.81014 10.3935 6.06102 10.5214C6.34624 10.6667 6.7196 10.6667 7.46634 10.6667Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9531_13889"},R("rect",{width:"16",height:"16",fill:"white"}))))),R("button",{className:"solidbtn aa-step-send-btn ".concat(!l&&(null==n?void 0:n.isSendCopy)?"":"aa-hidden")},"Send")),R("p",null,n.description),R("div",{className:"border-bottom-pad ".concat((null===(r=null==n?void 0:n.confirmButtons)||void 0===r?void 0:r.length)>0?"":"aa-hidden")},R("div",{className:"bottom-data-info"},R("h1",null),R("div",{className:"right-info-data"},null===(c=null==n?void 0:n.confirmButtons)||void 0===c?void 0:c.map((function(t,o){var n,s={backgroundColor:null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.colors[t.color],color:t.color};return R("button",{className:"_btn primaryBtn aa-step-confirmation-btn-".concat(o),style:s},t.title)})))))))})))})))}function Ft(e){var t=e.hostInstance,o=_e({}),n=(o[0],o[1]),s=_e([]),a=s[0],i=s[1],r=t.rootService,l=function(e){var t,o=document.getElementsByClassName(e);for(t=0;t<o.length;t++){var n=o[t];n.classList.contains("show")&&n.classList.remove("show")}};Ee((function(){var e,o,n,s=null===(e=null==t?void 0:t.chatEle)||void 0===e?void 0:e.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER));(null==a?void 0:a.length)>0?null===(o=null==s?void 0:s.classList)||void 0===o||o.remove(Pe.HIDE_ELEMENT):null===(n=null==s?void 0:s.classList)||void 0===n||n.add(Pe.HIDE_ELEMENT),I(a)}),a),Ee((function(){var e=function(e){e&&p()},o=function(e){e&&e.checklistsIdentified&&(e.checklistsIdentified||[]).forEach((function(e){var t=e.checklistId||e.id||e._id;i((function(e){if(e.findIndex((function(e){return e._id===t}))<0&&r.dynClObjs[t])return N(r.dynClObjs[t],null==e?void 0:e.length),Rt(Rt([],e,!0),[JSON.parse(JSON.stringify(r.dynClObjs[t]))],!1);return e}))}))},s=function(e){n((function(o){return((null==e?void 0:e.checklistStepsIdentified)||[]).forEach((function(e){var n,s={},a={},i=o.checklists.findIndex((function(t){return t._id===e.id})),l=(o.checklists[i].stages||[]).findIndex((function(t){if(t._id===e.stageId)return s=t,!0})),c=(o.checklists[i].stages[l].steps||[]).findIndex((function(t){if(t._id===e.stepId)return a=t,!0}));if("Close"===s.name&&!r.isProceedToClose){var d=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN));v(!1,d)}w(o,s,a,i,l,c)})),o}))};return t.on(Ke.GET_CHECKLISTS,e),t.on(Ve.CHECKLIST_RESPONSE,o),t.on(Ve.CHECKLIST_STEP_RESPONSE,s),window.onclick=function(e){e.target.matches("aa-stage-drp-wrapper")||l("aa-stage-drp-wrapper"),e.target.matches("aa-checklist-drp-wrapper")||l("aa-checklist-drp-wrapper"),e.target.matches("aa-triggerList-drp-wrapper")||l("aa-triggerList-drp-wrapper")},c(),function(){t.off(Ke.GET_CHECKLISTS,e),t.off(Ve.CHECKLIST_RESPONSE,o),t.off(Ve.CHECKLIST_STEP_RESPONSE,s)}}),[]);var c=function(){t.on(Ye.CHECKLIST_OPEN,(function(e){d(Fe.checklist_opened,e,Ue.PLAYBOOK_OPENED_EVENT)})),t.on(Ye.CHECLIST_RESUME,(function(e){d(Fe.checklist_resume,e,Ue.PLAYBOOK_RESUME_EVENT)})),t.on(Ye.CHECKLIST_STEP_CLOSE,(function(e){d(Fe.checklist_step_closed,e,Ue.PLAYBOOK_STEP_CLOSED_EVENT)})),t.on(Ye.CHECKLIST_PROCEED_TO_CLOSE,(function(e){d(Fe.checklist_proceed_to_closed,e,Ue.PLAYBOOK_PROCEED_TO_CLOSE_EVENT)}))},d=function(e,o,n){t.socketConnection.emitEvents(e,o),t.emit(n,o)},p=function(){var e;(e=r.connectionDetails.botId,wt("get_checklist",{method:"GET",headers:{"Content-Type":"application/json"}},t,{botId:e})).then((function(e){var t;if((null===(t=null==e?void 0:e.checklists)||void 0===t?void 0:t.length)>0){e.checklists=e.checklists.filter((function(e){return e.channels.includes(r.connectionDetails.channel)}));var o=e.checklists.filter((function(e){return"dynamic"===e.type})),s=e.checklists.filter((function(e){return"primary"===e.type}));n(e),u(e,s,o),r.dynClObjs=(o||[]).reduce((function(e,t){return e[t._id]=t,e}),{}),h(s,o)}})).catch((function(e){}))},u=function(e,o,n){var s,a,i,r,l,c=ne(Gt,{hostInstance:t,checklistData:e},t);t.emit(Ue.BEFORE_VIEW_INIT,c,{event:Ue.PLAYBOOK_HEADER_TEMPLATE,data:{checklists:e.checklists}}),null===(s=null==t?void 0:t.chatEle)||void 0===s||s.querySelector("#".concat(De.CHECKLIST_MAIN_TEMPLATE)).prepend(c);var d=null==c?void 0:c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN_WRAPPER)),p=null==c?void 0:c.querySelector("".concat(Pe.STAGE_DRP_WRAPPER)),u=null==c?void 0:c.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER));if((null==o?void 0:o.length)>0){var h=ne(Pt,{hostInstance:t,primaryChecklists:o,allChecklists:e.checklists},t);t.emit(Ue.BEFORE_VIEW_INIT,h,{event:Ue.PLAYBOOK_PRIMARYLIST_TEMPLATE,data:{checklists:e.checklists,primaryChecklist:o}}),null==c||c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN)).append(h)}if((null==n?void 0:n.length)>0){var g=ne(Dt,{hostInstance:t,dynamicChecklists:n,allChecklists:e.checklists},t);t.emit(Ue.BEFORE_VIEW_INIT,g,{event:Ue.PLAYBOOK_DYNAMICLIST_TEMPLATE,data:{checklists:e.checklists,dynamicChecklist:n}}),null==c||c.querySelector("".concat(Pe.CHECKLIST_DROPDOWN)).append(g)}((null==o?void 0:o.length)||(null==n?void 0:n.length))&&(null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(Pe.HIDE_ELEMENT),null==e||e.checklists.map((function(o,n){var s,a="primary"===o.type?Pe.PRIMARY_CHECKLIST_BTN:Pe.DYNAMIC_CHECKLIST_BTN;null===(s=t.eventManager)||void 0===s||s.addEventListener("".concat(a).concat(n),"click",(function(){var t;null===(t=null==d?void 0:d.classList)||void 0===t||t.remove("show"),E(e,o)}),c)}))),null===(i=t.eventManager)||void 0===i||i.addEventListener(Pe.SELECTED_CHECKLIST_ARROW,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==d?void 0:d.classList)||void 0===e||e.toggle("show")}),d),null===(r=t.eventManager)||void 0===r||r.addEventListener(Pe.SELECTED_STAGE_ARROW,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==p?void 0:p.classList)||void 0===e||e.toggle("show")}),p),null===(l=t.eventManager)||void 0===l||l.addEventListener(Pe.TRIGGER_CHECKLIST_COUNT_BTN,"click",(function(){var e;null===event||void 0===event||event.stopPropagation(),null===(e=null==u?void 0:u.classList)||void 0===e||e.toggle("show")}),c)},h=function(e,o){var n,s,a,i,l=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.CHECKLIST_HEADER));if((null==e?void 0:e.length)>0){var c=r.connectionDetails.channel;(null===(a=null===(s=e[0])||void 0===s?void 0:s.channels)||void 0===a?void 0:a.includes(c))&&(r.proceedToClose=!0,f(e[0]),g(l,!0,!0))}else if((null==o?void 0:o.length)>0){var d=null===(i=null==t?void 0:t.chatEle)||void 0===i?void 0:i.querySelector("#".concat(De.CHECKLIST_BODY_TEMPLATE)),p=ne(Ht,{hostInstance:t},t);d&&(t.emit(Ue.BEFORE_VIEW_INIT,p,{event:Ue.PLAYBOOK_EMPTY_TEMPLATE,data:{primaryClList:e,dynamicClist:o}}),d.append(p)),b(l,"Select Playbook",-1)}},g=function(e,o,n){var s,a=null==e?void 0:e.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN));o?null==a||a.classList.remove(Pe.HIDE_ELEMENT):null==a||a.classList.add(Pe.HIDE_ELEMENT),n&&(null===(s=t.eventManager)||void 0===s||s.addEventListener(Pe.PROCEEDTOCLOSE_BTN,"click",(function(e){v(!0,a)}),e))},v=function(e,o){var s,a,i,l,c;!function(e){void 0===e&&(e=!1);var o={stageId:"",id:""};n((function(n){if(n.checklists.forEach((function(e,s){var a;if("primary"===e.type){x(n.checklists,s),o.stageId=e.stages[1]._id,o.id=e._id,r.selCLInx=s,r.selStInx=1,r.isProceedToClose=!0,r.selectNextStep(n,s,1,t);var i=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.CHECKLIST_HEADER));b(i,e.name,s),S(i,null==e?void 0:e.stages,1),_(n,r.selCLInx),k()}})),e){var s=r.prepareChecklistPayload(Fe.checklist_proceed_to_closed,n,o);d(Fe.checklist_proceed_to_closed,s,Ue.PLAYBOOK_PROCEED_TO_CLOSE_EVENT)}return n}))}(e),o.classList.add(Pe.HIDE_ELEMENT),null===(i=null===(a=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector(Pe.CHECKLIST_CLOSE_STAGE))||void 0===a?void 0:a.classList)||void 0===i||i.remove(Pe.HIDE_ELEMENT),null===(c=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelectorAll(Pe.CHECKLIST_CLOSE_STEPS))||void 0===c||c.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove(Pe.HIDE_ELEMENT)}))},f=function(e){n((function(t){var o,n=null===(o=null==t?void 0:t.checklists)||void 0===o?void 0:o.findIndex((function(t){return t._id==e._id}));if(n>=0){if(m(t,n),_(t,n),!t.checklists[n].openedChecklist){t.checklists[n].openedChecklist=!0;var s=r.prepareChecklistPayload(Fe.checklist_opened,t,{id:e._id});d(Fe.checklist_opened,s,Ue.PLAYBOOK_OPENED_EVENT)}k()}return t}))},m=function(e,o){var n,s,a,i,l,c,d=e.checklists,p=(null===(s=null===(n=d[o])||void 0===n?void 0:n.stages)||void 0===s?void 0:s.length)?0:-1;if(r.selCLInx=o,r.selStInx=p,null===(i=null===(a=d[o])||void 0===a?void 0:a.stages[p])||void 0===i?void 0:i.steps[0]){d[o].stages[p].steps[0].ongoing=!0,r.selSpInx=0;var u=d[o].stages[p].steps[0]._id;r.scrollView(u,t)}var h=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelector("".concat(Pe.CHECKLIST_HEADER));b(h,d[o].name,o),S(h,null===(c=d[o])||void 0===c?void 0:c.stages,p)},b=function(e,t,o){var n,s,a=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_CHECKLIST));a&&(a.innerText=t),null===(s=null===(n=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(o)))||void 0===n?void 0:n.classList)||void 0===s||s.remove(Pe.HIDE_ELEMENT)},_=function(e,o){var n,s,a,i=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("#".concat(De.CHECKLIST_STEP_TEMPLATE)),r=ne(qt,{hostInstance:t,stages:null===(s=e.checklists[o])||void 0===s?void 0:s.stages,colors:Me},t);i&&(i.innerHTML="",t.emit(Ue.BEFORE_VIEW_INIT,r,{event:Ue.PLAYBOOK_BODY_TEMPLATE,data:{stages:null===(a=e.checklists[o])||void 0===a?void 0:a.stages,colors:Me}}),i.append(r)),r&&T(r,e,o)},E=function(e,t){var o=e.checklists.findIndex((function(e){return e._id==t._id}));e.checklists[o]&&y(o)},y=function(e){n((function(o){var n=o.checklists;return x(n,e),n[e].openedChecklist?n[e].name!=n[r.selCLInx].name&&(r.selCLInx=e,r.selStInx=0,A(o,e,0),r.selectNextStage(o,e,0,t),k()):f(n[e]),function(){var e,o,n,s=null===(e=null==t?void 0:t.chatEle)||void 0===e?void 0:e.querySelector("".concat(Pe.CHECKLIST_EMPTY));(null===(o=null==s?void 0:s.classList)||void 0===o?void 0:o.contains(Pe.HIDE_ELEMENT))||null===(n=null==s?void 0:s.classList)||void 0===n||n.add(Pe.HIDE_ELEMENT)}(),o}))},x=function(e,o){var n,s,a,i,l,c,d,p,u,h,g,v,f=r.selCLInx;o!=f&&!(null===(n=e[f])||void 0===n?void 0:n.completed)&&(null===(s=e[f])||void 0===s?void 0:s.openedChecklist)?(null===(i=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.CHECKLIST_EACH_RESUME).concat(f)))||void 0===i||i.classList.remove(Pe.HIDE_ELEMENT),null===(c=null===(l=null==t?void 0:t.chatEle)||void 0===l?void 0:l.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(f)))||void 0===c||c.classList.add(Pe.HIDE_ELEMENT)):o!=f&&(null===(d=e[f])||void 0===d?void 0:d.completed)&&(null===(u=null===(p=null==t?void 0:t.chatEle)||void 0===p?void 0:p.querySelector("".concat(Pe.CHECKLIST_ITEM_CHECK).concat(f)))||void 0===u||u.classList.add(Pe.HIDE_ELEMENT));var m=null===(h=null==t?void 0:t.chatEle)||void 0===h?void 0:h.querySelector("".concat(Pe.CHECKLIST_EACH_RESUME).concat(o));(null===(g=null==m?void 0:m.classList)||void 0===g?void 0:g.contains(Pe.HIDE_ELEMENT))||null===(v=null==m?void 0:m.classList)||void 0===v||v.add(Pe.HIDE_ELEMENT)},A=function(e,o,n){var s,a;r.isProceedToClose=!1;var i=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.CHECKLIST_HEADER));b(i,e.checklists[o].name,o),S(i,null===(a=e.checklists[o])||void 0===a?void 0:a.stages,n),_(e,o);var l=e.checklists[o];r.showProceedToCloseBtn(t);var c=r.prepareChecklistPayload(Fe.checklist_resume,e,{id:l._id});d(Fe.checklist_resume,c,Ue.PLAYBOOK_RESUME_EVENT)},S=function(e,o,s){var a,i,l,c=o[s].name,d=null==e?void 0:e.querySelector("".concat(Pe.STAGE_DRP_WRAPPER_MAIN)),p=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_STAGE)),u=null==e?void 0:e.querySelector("".concat(Pe.STAGE_DROPDOWN));null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(Pe.HIDE_ELEMENT),p&&(p.innerText=c);var h=ne(Mt,{hostInstance:t,stageList:o,selectedStInx:s,isProceedToClose:r.isProceedToClose},t);h&&(u.innerHTML="",t.emit(Ue.BEFORE_VIEW_INIT,h,{event:Ue.PLAYBOOK_STAGE_DROPDOWN_TEMPLATE,data:{stageList:o,selectedStInx:s,isProceedToClose:r.isProceedToClose}}),u.append(h));var g=null==e?void 0:e.querySelector("".concat(Pe.SELECTED_STAGE_ARROW));g&&((null==o?void 0:o.length)<=1?g.classList.add(Pe.HIDE_ELEMENT):g.classList.remove(Pe.HIDE_ELEMENT)),r.isProceedToClose&&(null===(l=null===(i=h.querySelector("".concat(Pe.CHECKLIST_CLOSE_STAGE_BTN)))||void 0===i?void 0:i.classList)||void 0===l||l.remove(Pe.CHECKLIST_DISABLE_MSG)),null==o||o.map((function(e,n){var s;null===(s=t.eventManager)||void 0===s||s.addEventListener("".concat(Pe.CHECKLIST_EACH_STAGE_DRP_ITEM).concat(n),"click",(function(){r.selStInx=n,k(),C(h,n,o)}),h)})),n((function(e){var o,n=e.checklists;return"primary"==(null===(o=n[r.selCLInx])||void 0===o?void 0:o.type)&&"Close"==n[r.selCLInx].stages[r.selStInx].name||(r.isProceedToClose=!1,r.showProceedToCloseBtn(t)),e}))},C=function(e,o,s){r.handleStageCheck(e,o,s,t),n((function(e){return r.selectStage(e,r.selCLInx,o,t),e}))},T=function(e,o,s){var a,i;null===(i=null===(a=o.checklists[s])||void 0===a?void 0:a.stages)||void 0===i||i.map((function(a,i){var l;null===(l=null==a?void 0:a.steps)||void 0===l||l.map((function(l,c){var d,p,u,h,g,v=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_EACH_STEP).concat(i,"-").concat(c));null===(d=t.eventManager)||void 0===d||d.addEventListener("".concat(Pe.CHECKLIST_EACH_STEP).concat(i,"-").concat(c),"click",(function(e){l.complete||n((function(e){return r.clickStep(e,i,l,c,t),e}))}),e),null===(p=t.eventManager)||void 0===p||p.addEventListener("".concat(Pe.CHECKLIST_STEP_COMPLETE_BTN).concat(i,"-").concat(c),"click",(function(e){e.stopPropagation(),l.complete||n((function(e){return w(e,a,l,s,i,c),e}))}),e),null===(u=t.eventManager)||void 0===u||u.addEventListener(Pe.CHECKLIST_STEP_COPY_BTN,"click",(function(){r.sendAndCopyForPlaybook(Oe.COPY_METHOD,l.description,v,t),w(o,a,l,s,i,c)}),v),null===(h=t.eventManager)||void 0===h||h.addEventListener(Pe.CHECKLIST_STEP_SEND_BTN,"click",(function(){r.sendAndCopyForPlaybook(Oe.SEND_METHOD,l.description,v,t),w(o,a,l,s,i,c)}),v),null===(g=l.confirmButtons)||void 0===g||g.map((function(e,n){var d;null===(d=t.eventManager)||void 0===d||d.addEventListener("".concat(Pe.CHECKLIST_STEP_CONFIRMATION_BTN).concat(n),"click",(function(){w(o,a,l,s,i,c),r.confirmationBtnForPlaybook(e,v,t)}),v)}))}))}))},k=function(){n((function(e){var o,n,s,a,i=null===(s=null===(n=null===(o=e.checklists[r.selCLInx])||void 0===o?void 0:o.stages[r.selStInx])||void 0===n?void 0:n.steps)||void 0===s?void 0:s.length,l=r.getNumberstepCompInStage(e),c=null===(a=null==t?void 0:t.chatEle)||void 0===a?void 0:a.querySelector("".concat(Pe.STEP_COMPLETE_COUNT));return c&&(c.classList.remove(Pe.HIDE_ELEMENT),c.innerText=l+"/"+i),e}))},w=function(e,o,s,a,i,l){var c=e.checklists[a]._id,p=o._id,u=s._id;s.ongoing=!1,s.complete=!0;var h=r.prepareChecklistPayload(Fe.checklist_step_closed,e,{id:c,stageId:p,stepId:u,adheredBy:"manual"},!0);d(Fe.checklist_step_closed,h,Ue.PLAYBOOK_STEP_CLOSED_EVENT),n((function(e){return k(),r.selectNextStage(e,a,i,t),r.checkAllStagesCompleted(e,c,t),e}))},I=function(e){var o,n=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector("".concat(Pe.TRIGGER_CHECKLIST_BULB_COUNT));n&&(n.innerText=null==e?void 0:e.length)},N=function(e,o){var s,a,i=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.TRIGGET_CHECKLIST_DROPDOWN)),r=ne(Bt,{hostInstance:t,checklist:e},t);r&&i&&(t.emit(Ue.BEFORE_VIEW_INIT,r,{event:Ue.PLAYBOOK_TRIGGERED_LIST_TEMPLATE,data:{checklist:e}}),i.append(r),null===(a=t.eventManager)||void 0===a||a.addEventListener("".concat(Pe.TRIGGER_CHECKLIST_BTN).concat(null==e?void 0:e._id),"click",(function(){n((function(t){return O(t,e,o),t}))}),i))},O=function(e,t,o){i((function(e){return L(e[o],o),e.slice(0,o).concat(e.slice(o+1))}));var n=e.checklists.findIndex((function(e){return e._id==t._id}));e.checklists[n]&&y(n)},L=function(e,o){var n,s,a,i=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("".concat(Pe.TRIGGET_CHECKLIST_DROPDOWN)),r=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.TRIGGER_CHECKLIST_DROPDOWN_WRAPPER)),l=i.querySelector("".concat(Pe.TRIGGER_CHECKLIST_BTN).concat(e._id));l&&(null==l||l.remove(),null===(a=null==r?void 0:r.classList)||void 0===a||a.toggle("show"))};return R("div",{className:"playbook-wrapper-template"},R("div",{className:"playbook-template-data",id:"checkListMainTemplate"},R("div",{className:"playbook-wrapper-body",id:"checkListBodyTemplate"},R("div",{className:"playbook-steps-info",id:"checklistStepTemplate"}))))}var Ut=o(144),Vt={};Vt.styleTagTransform=f(),Vt.setAttributes=u(),Vt.insert=d().bind(null,"head"),Vt.domAPI=l(),Vt.insertStyleElement=g();i()(Ut.A,Vt);Ut.A&&Ut.A.locals&&Ut.A.locals;var Kt=function(e){return R("div",{className:"widget-header-sec"},R("div",{className:"logo-sec"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"right-chart-data"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0,id:"aa-proactiveBtn"}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"})),R("div",{class:"aa-text-xs"},"Proactive Mode")))))};function Yt(e){e.hostInstance.rootService;return R("div",null,R("h1",null," MyBot "))}var jt=function(e,t,o){if(o||2===arguments.length)for(var n,s=0,a=t.length;s<a;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};function Wt(e){return R("div",{id:"aa-loader-main",className:"loader-progress-main"},R("div",{className:"loading-border"}))}function zt(e){var t=_e(!0),o=t[0],n=t[1],s=_e(!1),a=s[0],i=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),p=d[0],u=d[1],h=_e(!1),g=h[0],v=h[1],f=_e("light"),m=f[0],b=f[1],_=_e([]),E=_[0],y=_[1],x=_e([]),A=(x[0],x[1]),S=_e(!1),C=(S[0],S[1]),T=_e(""),k=(T[0],T[1]),w=[],I=[],N=[{type:"srch",title:"Search"},{type:"mB",title:"My Bot"},{type:"ast",title:"Assist"},{type:"trnspt",title:"Transcript"},{type:"cl",title:"PlayBook"}],O=e.connectionDetails,L=Re,M=e.hostInstance,P=M.rootService,D=Pe,B=De,H=D.SDK_MAIN_WRAPPER;Ee((function(){ee(),te(),M.on("updateActiveTab",(function(e){oe(e.activeTab,e.footerTag)}));M.on("AGENT_COACHING_RESPONSES",(function(e){return W(e)})),M.on("END_OF_CONVERSATION",q);M.on("RESOLUTION_COMMENTS_RESPONSE",(function(e){return F(e)}))}),[]);var G=function(){b("light"===m?"dark":"light")},q=function(){var e,t,o,n,s,a,i,r,l,c,d={conversationId:null===(t=null===(e=null==M?void 0:M.rootService)||void 0===e?void 0:e.connectionDetails)||void 0===t?void 0:t.conversationId,userId:(null===(n=null===(o=null==M?void 0:M.rootService)||void 0===o?void 0:o.connectionDetails)||void 0===n?void 0:n.userId)||"",botId:null===(a=null===(s=null==M?void 0:M.rootService)||void 0===s?void 0:s.connectionDetails)||void 0===a?void 0:a.botId,sessionId:qe(),chatHistory:null===(r=null===(i=null==M?void 0:M.rootService)||void 0===i?void 0:i.connectionDetails)||void 0===r?void 0:r.chatHistory};(null===(c=null===(l=null==M?void 0:M.rootService)||void 0===l?void 0:l.connectionDetails)||void 0===c?void 0:c.summaryEnabled)&&M.socketConnection.emitEvents(Fe.request_resolution_comments,d),M.socketConnection.emitEvents(Fe.end_of_conversation,d)},F=function(e){var t,o,n,s;C(!0);var a=e.summary[0]||"";k(a),M.socketConnection.emitEvents(Fe.response_resolution_comments_ack,e,!0);var i=ne(U,e,M),r=document.getElementsByClassName(B.SUMMARY_OVERLAY_BLOCK)[0];null==r||r.append(i),null===(t=M.eventManager)||void 0===t||t.addEventListener(".aa-delete-summary-text","click",(function(){j()}),i),null===(o=M.eventManager)||void 0===o||o.addEventListener(".aa-summit-summary-text","click",(function(){V()}),i),null===(n=M.eventManager)||void 0===n||n.addEventListener(".aa-copy-summary-text","click",(function(){K()}),i),null===(s=M.eventManager)||void 0===s||s.addEventListener(".aa-close-summary-text","click",(function(){Y()}),i),M.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.CONVERSATION_SUMMARY_TEMPLATE,respData:e})},U=function(e){var t=e.msgData;return R("div",{className:"summery-wrapper-container"},R("div",{className:"summery-popup-data",id:"aa-conv-summary"},R("div",{className:"title-block"},R("h1",null,"Summary"),R("div",{className:"ai-block"},R("div",null,R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"}))),R("span",null,"Suggested"),R("button",{type:"button",className:"close-summery aa-close-summary-text"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))),R("div",{className:"input-block"},R("textarea",{className:"input-control",id:"summaryText",placeholder:"Type Summary...",rows:4,cols:50,value:null==t?void 0:t.summary[0],onChange:function(e){return k(e.target.value)}}),R("button",{className:"recylin-bin-btn aa-delete-summary-text"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M13.3333 4.99996V4.33329C13.3333 3.39987 13.3333 2.93316 13.1517 2.57664C12.9919 2.26304 12.7369 2.00807 12.4233 1.84828C12.0668 1.66663 11.6001 1.66663 10.6667 1.66663H9.33333C8.39991 1.66663 7.9332 1.66663 7.57668 1.84828C7.26308 2.00807 7.00811 2.26304 6.84832 2.57664C6.66667 2.93316 6.66667 3.39987 6.66667 4.33329V4.99996M8.33333 9.58329V13.75M11.6667 9.58329V13.75M2.5 4.99996H17.5M15.8333 4.99996V14.3333C15.8333 15.7334 15.8333 16.4335 15.5608 16.9683C15.3212 17.4387 14.9387 17.8211 14.4683 18.0608C13.9335 18.3333 13.2335 18.3333 11.8333 18.3333H8.16667C6.76654 18.3333 6.06647 18.3333 5.53169 18.0608C5.06129 17.8211 4.67883 17.4387 4.43915 16.9683C4.16667 16.4335 4.16667 15.7334 4.16667 14.3333V4.99996",stroke:"#D92D20","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"actions-footer"},R("div",{className:"footer-btns-left-sec"},R("button",{className:"aa_btn primaryBtn aa-summit-summary-text",id:"summarySubmit"},"Submit"),R("button",{className:"aa_btn aa-solidbtn aa-copy-summary-text",id:"summaryCopy"},"Copy")))))},V=function(){var e,t,o,n=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"",s={conversationId:null===(t=M.rootService.connectionDetails)||void 0===t?void 0:t.conversationId,botId:null===(o=M.rootService.connectionDetails)||void 0===o?void 0:o.botId,summary:[{summary_text:n}]};M.socketConnection.emitEvents(Fe.submit_summary_request,s),Y()},K=function(){var e,t=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"";navigator.clipboard.writeText(t).then((function(){})).catch((function(e){}))},Y=function(){var e,t=(null===(e=document.getElementById("summaryText"))||void 0===e?void 0:e.value)||"";M.emit(Ke.CONVERSATION_SUMMARY_IN_ASSIST,t);var o=document.querySelector("."+B.SUMMARY_OVERLAY_BLOCK),n=document.querySelector(".summery-wrapper-container");o&&n&&o.removeChild(n)},j=function(){k(""),document.getElementById("summaryText").value=""},W=function(e){"nudge"===(null==e?void 0:e.action)?z(e):"hint"===(null==e?void 0:e.action)&&X(e)},z=function(e){var t,o=e.actionId;I.unshift(e),A((function(t){return jt([e],t,!0)}));var n=ne(Q,e,M),s=document.getElementsByClassName(Pe.NUDGE_TEMPLATE)[0];setTimeout((function(){var e=I.findIndex((function(e){return e.actionId===o}));if(e>=0){var t=document.getElementById("".concat(o));t&&(t.remove(),E.splice(e,1),Z(o),A((function(e){return e.filter((function(e){return e.actionId!==o}))})))}}),7e3),null===(t=M.eventManager)||void 0===t||t.addEventListener(".".concat(Pe.NUDGE_CLOSE),"click",(function(){Z(o)}),n),M.emit(Ue.BEFORE_VIEW_INIT,n,{event:Ue.NUDGE_TEMPLATE,NudgeObject:e}),s.append(n)},Q=function(e){var t,o,n,s=e.msgData;return R("div",{class:"nudges-card ".concat(null===(t=Le.NUDGE_DATA[null==s?void 0:s.expression])||void 0===t?void 0:t.className),id:"".concat(null==s?void 0:s.actionId)},(null===(o=Le.NUDGE_DATA[null==s?void 0:s.expression])||void 0===o?void 0:o.icon)&&R("div",{class:"icon_block"},"neutral"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M2.55371 8.35C2.55371 7.7701 3.02381 7.3 3.60371 7.3C4.18361 7.3 4.65371 7.7701 4.65371 8.35V12.55C4.65371 13.1299 4.18361 13.6 3.60371 13.6C3.02381 13.6 2.55371 13.1299 2.55371 12.55V8.35Z",fill:"white"}),R("path",{d:"M5.35371 8.23334V12.0348C5.35371 12.565 5.65331 13.0498 6.12761 13.287L6.1625 13.3044C6.5513 13.4988 6.98002 13.6 7.4147 13.6H11.206C11.8733 13.6 12.4479 13.129 12.5788 12.4746L13.4188 8.27457C13.5921 7.40826 12.9295 6.6 12.046 6.6H9.55371V3.8C9.55371 3.0268 8.92691 2.4 8.15371 2.4C7.76711 2.4 7.45371 2.7134 7.45371 3.1V3.56667C7.45371 4.1725 7.25721 4.762 6.89371 5.24667L5.91371 6.55334C5.55021 7.038 5.35371 7.6275 5.35371 8.23334Z",fill:"white"})),"alert"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.71312 3.61289C7.27776 2.60908 8.72302 2.60908 9.28766 3.61289L13.4086 10.9389C13.9624 11.9235 13.2509 13.14 12.1213 13.14H3.87949C2.74988 13.14 2.03841 11.9235 2.59222 10.9389L6.71312 3.61289ZM8.7388 10.9246C8.7388 11.3325 8.40817 11.6631 8.00033 11.6631C7.59248 11.6631 7.26185 11.3325 7.26185 10.9246C7.26185 10.5168 7.59248 10.1862 8.00033 10.1862C8.40817 10.1862 8.7388 10.5168 8.7388 10.9246ZM8.00033 5.01685C7.59248 5.01685 7.26185 5.34748 7.26185 5.75533V7.97075C7.26185 8.37859 7.59248 8.70922 8.00033 8.70922C8.40817 8.70922 8.7388 8.37859 8.7388 7.97075V5.75533C8.7388 5.34748 8.40817 5.01685 8.00033 5.01685Z",fill:"white"})),"critical"===(null==s?void 0:s.expression)&&R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M7.29961 3.1C7.29961 2.7134 7.61301 2.4 7.99961 2.4C8.38621 2.4 8.69961 2.7134 8.69961 3.1V6.95C8.69961 7.1433 8.85631 7.3 9.04961 7.3C9.24291 7.3 9.39961 7.1433 9.39961 6.95V3.8C9.39961 3.4134 9.71301 3.1 10.0996 3.1C10.4862 3.1 10.7996 3.4134 10.7996 3.8V6.95C10.7996 7.1433 10.9563 7.3 11.1496 7.3C11.3429 7.3 11.4996 7.1433 11.4996 6.95V5.2C11.4996 4.8134 11.813 4.5 12.1996 4.5C12.5862 4.5 12.8996 4.8134 12.8996 5.2V8.7C12.8996 11.4062 10.7058 13.6 7.99961 13.6C5.29341 13.6 3.09961 11.4062 3.09961 8.7V7.3C3.09961 6.9134 3.41301 6.6 3.79961 6.6C4.18621 6.6 4.49961 6.9134 4.49961 7.3V9.05C4.49961 9.2433 4.65631 9.4 4.84961 9.4C5.04291 9.4 5.19961 9.2433 5.19961 9.05V3.8C5.19961 3.4134 5.51301 3.1 5.89961 3.1C6.28621 3.1 6.59961 3.4134 6.59961 3.8V6.95C6.59961 7.1433 6.75631 7.3 6.94961 7.3C7.14291 7.3 7.29961 7.1433 7.29961 6.95V3.1Z",fill:"white"})),"positive"===(null==s?void 0:s.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"}))),R("p",null,null===(n=null==s?void 0:s.message)||void 0===n?void 0:n.title),R("button",{className:"close-nudge aa-close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"}))))},Z=function(e){var t=I.findIndex((function(t){return t.actionId===e}));if(t>=0){var o=document.getElementById("".concat(e));o&&(o.remove(),I.splice(t,1),A((function(t){return t.filter((function(t){return t.actionId!==e}))})))}},X=function(e){var t,o,n,s,a=e.actionId;w.unshift(e),y((function(t){return jt([e],t,!0)}));var i=ne(J,e,M),r=document.getElementsByClassName(Pe.HINT_TEMPLATE)[0];"doesnot_auto_close"!==(null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.postAction)&&setTimeout((function(){var e=w.findIndex((function(e){return e.actionId===a}));if(e>=0){var t=document.getElementById("".concat(a));t&&(t.remove(),w.splice(e,1),y((function(e){return e.filter((function(e){return e.actionId!==a}))})))}}),1e3*((null===(o=e.message)||void 0===o?void 0:o.time)<900?null===(n=e.message)||void 0===n?void 0:n.time:900)),null===(s=M.eventManager)||void 0===s||s.addEventListener(".".concat(Pe.HINT_CLOSE),"click",(function(){$(a)}),i),M.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.HINT_TEMPLATE,hintObject:e}),r.append(i)},J=function(e){var t,o,n,s,a,i=e.msgData;return R("div",{className:"hint-card ".concat(null===(t=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===t?void 0:t.className),style:{border:null===(o=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===o?void 0:o.color},id:"".concat(i.actionId)},R("div",{className:"top-card-info"},(null===(n=null==Le?void 0:Le.HINT_DATA[null==i?void 0:i.expression])||void 0===n?void 0:n.icon)&&R("div",{className:"icon_block"},"positive"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"})),"neutral"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2008 6.00005C10.2008 8.31964 8.32038 10.2 6.00078 10.2C3.68119 10.2 1.80078 8.31964 1.80078 6.00005C1.80078 3.68045 3.68119 1.80005 6.00078 1.80005C8.32038 1.80005 10.2008 3.68045 10.2008 6.00005ZM6.52578 8.10005C6.52578 8.39 6.29073 8.62505 6.00078 8.62505C5.71083 8.62505 5.47578 8.39 5.47578 8.10005C5.47578 7.8101 5.71083 7.57505 6.00078 7.57505C6.29073 7.57505 6.52578 7.8101 6.52578 8.10005ZM6.00078 3.37505C5.71083 3.37505 5.47578 3.6101 5.47578 3.90005V6.00005C5.47578 6.29 5.71083 6.52505 6.00078 6.52505C6.29073 6.52505 6.52578 6.29 6.52578 6.00005V3.90005C6.52578 3.6101 6.29073 3.37505 6.00078 3.37505Z",fill:"#667085"})),"alert"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.40714 0.834185C6.14848 0.719172 5.8532 0.719172 5.59454 0.834185C5.39478 0.923011 5.26501 1.07947 5.17471 1.20696C5.08593 1.3323 4.99087 1.49651 4.88634 1.67711L0.75276 8.81693C0.647804 8.99818 0.552428 9.16289 0.487757 9.30268C0.422033 9.44475 0.35073 9.63572 0.373455 9.85369C0.40286 10.1357 0.550631 10.392 0.779988 10.5588C0.957236 10.6877 1.15823 10.7217 1.31411 10.736C1.46749 10.75 1.65782 10.75 1.86726 10.75H10.1344C10.3438 10.75 10.5342 10.75 10.6876 10.736C10.8434 10.7217 11.0444 10.6877 11.2217 10.5588C11.451 10.392 11.5988 10.1357 11.6282 9.85369C11.651 9.63572 11.5796 9.44475 11.5139 9.30268C11.4493 9.1629 11.3539 8.9982 11.2489 8.81697L7.11533 1.67709C7.0108 1.49651 6.91575 1.3323 6.82697 1.20696C6.73667 1.07947 6.6069 0.923011 6.40714 0.834185ZM6.50085 4.5C6.50085 4.22386 6.277 4 6.00085 4C5.72471 4 5.50085 4.22386 5.50085 4.5V6.5C5.50085 6.77614 5.72471 7 6.00085 7C6.277 7 6.50085 6.77614 6.50085 6.5V4.5ZM6.00085 8C5.72471 8 5.50085 8.22386 5.50085 8.5C5.50085 8.77614 5.72471 9 6.00085 9H6.00585C6.282 9 6.50585 8.77614 6.50585 8.5C6.50585 8.22386 6.282 8 6.00585 8H6.00085Z",fill:"#F79009"})),"critical"===(null==i?void 0:i.expression)&&R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M3.45 5.72222V7.11111M3.45 5.72222V2.38889C3.45 1.92865 3.83056 1.55556 4.3 1.55556C4.76944 1.55556 5.15 1.92865 5.15 2.38889M3.45 5.72222C3.45 5.26198 3.06944 4.88889 2.6 4.88889C2.13056 4.88889 1.75 5.26198 1.75 5.72222V6.83333C1.75 9.13452 3.65279 11 6 11C8.34721 11 10.25 9.13452 10.25 6.83333V4.05556C10.25 3.59532 9.86944 3.22222 9.4 3.22222C8.93056 3.22222 8.55 3.59532 8.55 4.05556M5.15 2.38889V5.44444M5.15 2.38889V1.83333C5.15 1.3731 5.53056 1 6 1C6.46944 1 6.85 1.3731 6.85 1.83333V2.38889M6.85 2.38889V5.44444M6.85 2.38889C6.85 1.92865 7.23056 1.55556 7.7 1.55556C8.16944 1.55556 8.55 1.92865 8.55 2.38889V4.05556M8.55 4.05556V5.44444",stroke:"#F04438","stroke-linecap":"round","stroke-linejoin":"round"}))),R("h1",null,i.message.title),R("button",{className:"close-hint aa-close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},R("p",null,i.message.body)),R("div",{className:"footer-hint"},"ack"===(null===(s=i.adherence)||void 0===s?void 0:s.adType)&&R("button",null,null===(a=i.adherence)||void 0===a?void 0:a.ackText)))},$=function(e){var t=w.findIndex((function(t){return t.actionId===e}));if(t>=0){var o=document.getElementById("".concat(e));o&&(o.remove(),w.splice(t,1),y((function(t){return t.filter((function(t){return t.actionId!==e}))})))}},ee=function(){var e,t;t=ne(Kt,{},M);var o=M.chatEle.querySelector(D.HEADER);o&&t&&(M.emit(Ue.BEFORE_VIEW_INIT,t,{event:Ue.HEADER_TEMPLATE,data:{}}),o.append(t),null===(e=null==M?void 0:M.eventManager)||void 0===e||e.addEventListener("#".concat(B.PROACTIVE_BTN),"click",(function(e){null==M||M.emit(Ve.PRO_ACTIVE_CHANGE,e.target.checked),null==M||M.handleOverrideMode(!e.target.checked)}),t))},te=function(){var e;e=ne(Ge,{tabsNTitles:N,selectedTab:L.ast,showTranscript:M.rootService.connectionDetails.channel===Oe.VOICE,connectionDetails:O,sourceDesktop:"SomeSource",hideUserBotHistory:false,projConstants:Ie,selectedTheme:m,chooseTheme:G,hostInstance:M},M);var t=M.chatEle.querySelector(D.FOOTER);t&&(M.emit(Ue.BEFORE_VIEW_INIT,e,{event:Ue.FOOTER_TEMPLATE,data:{tabsNTitles:N,footerTag:t}}),t.append(e),N.forEach((function(e){var o;null===(o=M.eventManager)||void 0===o||o.addEventListener("".concat(D.FOOTER_BTN).concat(e.type),"click",(function(){oe(e.type,t)}),t)})))},oe=function(e,t){se(e),N.forEach((function(o){var n,s,a=t.querySelector("".concat(D.FOOTER_BTN).concat(o.type));o.type===e?null===(n=null==a?void 0:a.classList)||void 0===n||n.add.apply(n,["selected-tab","sel-bg"]):null===(s=null==a?void 0:a.classList)||void 0===s||s.remove.apply(s,["selected-tab","sel-bg"])}))},se=function(e,t){switch(void 0===t&&(t=!0),P.activeTab=Re[e],t&&(n(!1),i(!1),c(!1),u(!1)),e){case"ast":default:n(!0);break;case"srch":c(!0);break;case"mB":i(!0);break;case"trnspt":u(!0);break;case"cl":v(!0)}};return R("div",{className:H,"aria-label":"agent-window-section"},R("section",{className:"section-agent-aa-wrapper"},R("header",{className:"aa-header"}),R("section",{className:"body-container-aa"},R("div",{className:o?"animate-compo-slide-up-wrapper":"aa-hidden"},R(ft,{hostInstance:M})),R("div",{className:l?"animate-compo-slide-up-wrapper":"aa-hidden"},R(yt,{hostInstance:M})),R("div",{className:p?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Nt,{hostInstance:M})),R("div",{className:a?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Yt,{hostInstance:M})),R("div",{className:g?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Ft,{hostInstance:M}))),R("footer",{className:"aa-footer"}),R("div",{className:"nudges-wrapper-fixed "},R("div",{className:"nudges-template-data aa-nudges-template-data"})),R("div",{className:"hints-wrapper-fixed "},R("div",{className:"hints-template-data aa-hints-template-data"}))))}const Qt=Object.create(null);Qt.open="0",Qt.close="1",Qt.ping="2",Qt.pong="3",Qt.message="4",Qt.upgrade="5",Qt.noop="6";const Zt=Object.create(null);Object.keys(Qt).forEach((e=>{Zt[Qt[e]]=e}));const Xt={type:"error",data:"parser error"},Jt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),$t="function"==typeof ArrayBuffer,eo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,to=({type:e,data:t},o,n)=>Jt&&t instanceof Blob?o?n(t):oo(t,n):$t&&(t instanceof ArrayBuffer||eo(t))?o?n(t):oo(new Blob([t]),n):n(Qt[e]+(t||"")),oo=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+(e||""))},o.readAsDataURL(e)};function no(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let so;const ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",io="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)io[ao.charCodeAt(e)]=e;const ro="function"==typeof ArrayBuffer,lo=(e,t)=>{if("string"!=typeof e)return{type:"message",data:po(e,t)};const o=e.charAt(0);if("b"===o)return{type:"message",data:co(e.substring(1),t)};return Zt[o]?e.length>1?{type:Zt[o],data:e.substring(1)}:{type:Zt[o]}:Xt},co=(e,t)=>{if(ro){const o=(e=>{let t,o,n,s,a,i=.75*e.length,r=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);const c=new ArrayBuffer(i),d=new Uint8Array(c);for(t=0;t<r;t+=4)o=io[e.charCodeAt(t)],n=io[e.charCodeAt(t+1)],s=io[e.charCodeAt(t+2)],a=io[e.charCodeAt(t+3)],d[l++]=o<<2|n>>4,d[l++]=(15&n)<<4|s>>2,d[l++]=(3&s)<<6|63&a;return c})(e);return po(o,t)}return{base64:!0,data:e}},po=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,uo=String.fromCharCode(30);function ho(){return new TransformStream({transform(e,t){!function(e,t){Jt&&e.data instanceof Blob?e.data.arrayBuffer().then(no).then(t):$t&&(e.data instanceof ArrayBuffer||eo(e.data))?t(no(e.data)):to(e,!1,(e=>{so||(so=new TextEncoder),t(so.encode(e))}))}(e,(o=>{const n=o.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(o)}))}})}let go;function vo(e){return e.reduce(((e,t)=>e+t.length),0)}function fo(e,t){if(e[0].length===t)return e.shift();const o=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)o[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),o}function mo(e){if(e)return function(e){for(var t in mo.prototype)e[t]=mo.prototype[t];return e}(e)}mo.prototype.on=mo.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},mo.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},mo.prototype.off=mo.prototype.removeListener=mo.prototype.removeAllListeners=mo.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<n.length;s++)if((o=n[s])===t||o.fn===t){n.splice(s,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},mo.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),o=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(o){n=0;for(var s=(o=o.slice(0)).length;n<s;++n)o[n].apply(this,t)}return this},mo.prototype.emitReserved=mo.prototype.emit,mo.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},mo.prototype.hasListeners=function(e){return!!this.listeners(e).length};const bo="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function _o(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})}const Eo=bo.setTimeout,yo=bo.clearTimeout;function xo(e,t){t.useNativeTimers?(e.setTimeoutFn=Eo.bind(bo),e.clearTimeoutFn=yo.bind(bo)):(e.setTimeoutFn=bo.setTimeout.bind(bo),e.clearTimeoutFn=bo.clearTimeout.bind(bo))}class Ao extends Error{constructor(e,t,o){super(e),this.description=t,this.context=o,this.type="TransportError"}}class So extends mo{constructor(e){super(),this.writable=!1,xo(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,o){return super.emitReserved("error",new Ao(e,t,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=lo(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t}(e);return t.length?"?"+t:""}}const Co="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),To=64,ko={};let wo,Io=0,No=0;function Oo(e){let t="";do{t=Co[e%To]+t,e=Math.floor(e/To)}while(e>0);return t}function Lo(){const e=Oo(+new Date);return e!==wo?(Io=0,wo=e):e+"."+Oo(Io++)}for(;No<To;No++)ko[Co[No]]=No;let Ro=!1;try{Ro="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const Mo=Ro;function Po(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Mo))return new XMLHttpRequest}catch(e){}if(!t)try{return new(bo[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Do(){}const Bo=null!=new Po({xdomain:!1}).responseType;class Ho extends mo{constructor(e,t){super(),xo(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=_o(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const o=this.xhr=new Po(t);try{o.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&o.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{o.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(o.timeout=this.opts.requestTimeout),o.onreadystatechange=()=>{var e;3===o.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(o)),4===o.readyState&&(200===o.status||1223===o.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof o.status?o.status:0)}),0))},o.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Ho.requestsCount++,Ho.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Do,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Ho.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Ho.requestsCount=0,Ho.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Go);else if("function"==typeof addEventListener){addEventListener("onpagehide"in bo?"pagehide":"unload",Go,!1)}function Go(){for(let e in Ho.requests)Ho.requests.hasOwnProperty(e)&&Ho.requests[e].abort()}const qo="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Fo=bo.WebSocket||bo.MozWebSocket,Uo="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const Vo={websocket:class extends So{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,o=Uo?{}:_o(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=Uo?new Fo(e,t,o):t?new Fo(e,t):new Fo(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const o=e[t],n=t===e.length-1;to(o,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}n&&qo((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Lo()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Fo}},webtransport:class extends So{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){go||(go=new TextDecoder);const o=[];let n=0,s=-1,a=!1;return new TransformStream({transform(i,r){for(o.push(i);;){if(0===n){if(vo(o)<1)break;const e=fo(o,1);a=!(128&~e[0]),s=127&e[0],n=s<126?3:126===s?1:2}else if(1===n){if(vo(o)<2)break;const e=fo(o,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(vo(o)<8)break;const e=fo(o,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>Math.pow(2,21)-1){r.enqueue(Xt);break}s=a*Math.pow(2,32)+t.getUint32(4),n=3}else{if(vo(o)<s)break;const e=fo(o,s);r.enqueue(lo(a?e:go.decode(e),t)),n=0}if(0===s||s>e){r.enqueue(Xt);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(t).getReader(),n=ho();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const s=()=>{o.read().then((({done:e,value:t})=>{e||(this.onPacket(t),s())})).catch((e=>{}))};s();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const o=e[t],n=t===e.length-1;this.writer.write(o).then((()=>{n&&qo((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends So{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Bo&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const o=e.split(uo),n=[];for(let e=0;e<o.length;e++){const s=lo(o[e],t);if(n.push(s),"error"===s.type)break}return n})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const o=e.length,n=new Array(o);let s=0;e.forEach(((e,a)=>{to(e,!1,(e=>{n[a]=e,++s===o&&t(n.join(uo))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Lo()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ho(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Ko=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yo=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jo(e){if(e.length>2e3)throw"URI too long";const t=e,o=e.indexOf("["),n=e.indexOf("]");-1!=o&&-1!=n&&(e=e.substring(0,o)+e.substring(o,n).replace(/:/g,";")+e.substring(n,e.length));let s=Ko.exec(e||""),a={},i=14;for(;i--;)a[Yo[i]]=s[i]||"";return-1!=o&&-1!=n&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const o=/\/{2,9}/g,n=t.replace(o,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,a.path),a.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,a.query),a}class Wo extends mo{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=jo(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=jo(t.host).host),xo(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e<n;e++){let n=o[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const o=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Vo[e](o)}open(){let e;if(this.opts.rememberUpgrade&&Wo.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),o=!1;Wo.priorWebsocketSuccess=!1;const n=()=>{o||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!o)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Wo.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{o||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function s(){o||(o=!0,c(),t.close(),t=null)}const a=e=>{const o=new Error("probe error: "+e);o.transport=t.name,s(),this.emitReserved("upgradeError",o)};function i(){a("transport closed")}function r(){a("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",n),t.removeListener("error",a),t.removeListener("close",i),this.off("close",r),this.off("upgrading",l)};t.once("open",n),t.once("error",a),t.once("close",i),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{o||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",Wo.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let o=0;o<this.writeBuffer.length;o++){const n=this.writeBuffer[o].data;if(n&&(e+="string"==typeof(t=n)?function(e){let t=0,o=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?o+=1:t<2048?o+=2:t<55296||t>=57344?o+=3:(n++,o+=4);return o}(t):Math.ceil(1.33*(t.byteLength||t.size))),o>0&&e>this.maxPayload)return this.writeBuffer.slice(0,o);e+=2}var t;return this.writeBuffer}write(e,t,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const s={type:e,data:t,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},o=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?o():e()})):this.upgrading?o():e()),this}onError(e){Wo.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let o=0;const n=e.length;for(;o<n;o++)~this.transports.indexOf(e[o])&&t.push(e[o]);return t}}Wo.protocol=4;Wo.protocol;const zo="function"==typeof ArrayBuffer,Qo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Zo=Object.prototype.toString,Xo="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Zo.call(Blob),Jo="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Zo.call(File);function $o(e){return zo&&(e instanceof ArrayBuffer||Qo(e))||Xo&&e instanceof Blob||Jo&&e instanceof File}function en(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,o=e.length;t<o;t++)if(en(e[t]))return!0;return!1}if($o(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return en(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&en(e[t]))return!0;return!1}function tn(e){const t=[],o=e.data,n=e;return n.data=on(o,t),n.attachments=t.length,{packet:n,buffers:t}}function on(e,t){if(!e)return e;if($o(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n<e.length;n++)o[n]=on(e[n],t);return o}if("object"==typeof e&&!(e instanceof Date)){const o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=on(e[n],t));return o}return e}function nn(e,t){return e.data=sn(e.data,t),delete e.attachments,e}function sn(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let o=0;o<e.length;o++)e[o]=sn(e[o],t);else if("object"==typeof e)for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=sn(e[o],t));return e}const an=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],rn=5;var ln;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(ln||(ln={}));class cn{constructor(e){this.replacer=e}encode(e){return e.type!==ln.EVENT&&e.type!==ln.ACK||!en(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===ln.EVENT?ln.BINARY_EVENT:ln.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==ln.BINARY_EVENT&&e.type!==ln.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=tn(e),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}}function dn(e){return"[object Object]"===Object.prototype.toString.call(e)}class pn extends mo{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const o=t.type===ln.BINARY_EVENT;o||t.type===ln.BINARY_ACK?(t.type=o?ln.EVENT:ln.ACK,this.reconstructor=new un(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!$o(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const o={type:Number(e.charAt(0))};if(void 0===ln[o.type])throw new Error("unknown packet type "+o.type);if(o.type===ln.BINARY_EVENT||o.type===ln.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(n,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(s)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!pn.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return o}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case ln.CONNECT:return dn(t);case ln.DISCONNECT:return void 0===t;case ln.CONNECT_ERROR:return"string"==typeof t||dn(t);case ln.EVENT:case ln.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===an.indexOf(t[0]));case ln.ACK:case ln.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class un{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=nn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function hn(e,t,o){return e.on(t,o),function(){e.off(t,o)}}const gn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vn extends mo{constructor(e,t,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[hn(e,"open",this.onopen.bind(this)),hn(e,"packet",this.onpacket.bind(this)),hn(e,"error",this.onerror.bind(this)),hn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(gn.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:ln.EVENT,data:t,options:{}};if(o.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)||(this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var o;const n=null!==(o=this.flags.timeout)&&void 0!==o?o:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const s=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),n),a=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};a.withError=!0,this.acks[e]=a}emitWithAck(e,...t){return new Promise(((o,n)=>{const s=(e,t)=>e?n(e):o(t);s.withError=!0,t.push(s),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(o!==this._queue[0])return;return null!==e?o.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),o.pending=!1,this._drainQueue()})),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ln.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ln.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ln.EVENT:case ln.BINARY_EVENT:this.onevent(e);break;case ln.ACK:case ln.BINARY_ACK:this.onack(e);break;case ln.DISCONNECT:this.ondisconnect();break;case ln.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const o of t)o.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,t.packet({type:ln.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ln.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let o=0;o<t.length;o++)if(e===t[o])return t.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const o of t)o.apply(this,e.data)}}}function fn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}fn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+o:e-o}return 0|Math.min(e,this.max)},fn.prototype.reset=function(){this.attempts=0},fn.prototype.setMin=function(e){this.ms=e},fn.prototype.setMax=function(e){this.max=e},fn.prototype.setJitter=function(e){this.jitter=e};class mn extends mo{constructor(e,t){var o;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,xo(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(o=t.randomizationFactor)&&void 0!==o?o:.5),this.backoff=new fn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Wo(this.uri,this.opts);const t=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const n=hn(t,"open",(function(){o.onopen(),e&&e()})),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=hn(t,"error",s);if(!1!==this._timeout){const e=this._timeout,o=this.setTimeoutFn((()=>{n(),s(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&o.unref(),this.subs.push((()=>{this.clearTimeoutFn(o)}))}return this.subs.push(n),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(hn(e,"ping",this.onping.bind(this)),hn(e,"data",this.ondata.bind(this)),hn(e,"error",this.onerror.bind(this)),hn(e,"close",this.onclose.bind(this)),hn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){qo((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new vn(this,e,t),this.nsps[e]=o),o}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let o=0;o<t.length;o++)this.engine.write(t[o],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&o.unref(),this.subs.push((()=>{this.clearTimeoutFn(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const bn={};function _n(e,t){"object"==typeof e&&(t=e,e=void 0);const o=function(e,t="",o){let n=e;o=o||"undefined"!=typeof location&&location,null==e&&(e=o.protocol+"//"+o.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?o.protocol+e:o.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==o?o.protocol+"//"+e:"https://"+e),n=jo(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(o&&o.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=o.source,s=o.id,a=o.path,i=bn[s]&&a in bn[s].nsps;let r;return t.forceNew||t["force new connection"]||!1===t.multiplex||i?r=new mn(n,t):(bn[s]||(bn[s]=new mn(n,t)),r=bn[s]),o.query&&!t.query&&(t.query=o.queryKey),r.socket(o.path,t)}Object.assign(_n,{Manager:mn,Socket:vn,io:_n,connect:_n});const En=function(){function e(e){this.prevTimeStamp=0,this.intervalTime=510,this.count=1,this.hostIns=e}return e.prototype.socketConnection=function(e){var t,o,n=this;this.configOptions=e;var s={url:(null===(t=null==e?void 0:e.connectionDetails)||void 0===t?void 0:t.domainURL)+"/koreagentassist",options:{path:"/agentassist/api/v1/chat",autoConnect:!1,transports:["websocket","polling","flashsocket"],reconnection:!0,reconnectionDelay:5e3,reconnectionAttempts:13,query:{jToken:null===(o=null==e?void 0:e.connectionDetails)||void 0===o?void 0:o.token}}};this._agentAssistSocket=_n(s.url,s.options),this._agentAssistSocket.connect(),this.listenEvents(),this._agentAssistSocket.on("connect",(function(){n.hostIns.emit("ON_SOCKET_CONNECTION",e),n.hostIns.rootService.socketConnect||(n.hostIns.rootService.socketConnect=!0,n.hostIns.emit(Ke.GET_CHECKLISTS,!0))}))},e.prototype.emitEvents=function(e,t,o){void 0===o&&(o=!1);var n=this.configOptions.connectionDetails,s=n.fromSAT,a=n.source,i=(n.autoBotId,n.channel),r=n.interactiveLanguage,l=n.botId;t&&(t.isExtAD=!s,t.source=a,t.experience=i,t.traceId=o&&t.traceId?t.traceId:"ua-f0f3edc3-16ca-4e02-9363-4f48c602df62",t.language=r),"internal_transfer"==e&&(t.botId=l),this._agentAssistSocket.emit(e,t)},e.prototype.listenEvents=function(){var e=this;this._agentAssistSocket.on(Fe.agent_assist_response,(function(t){e.hostIns.rootService.assistTabSessionId="",t.sessionId&&(e.hostIns.rootService.assistTabSessionId=null==t?void 0:t.sessionId),e.hostIns.emit(Ve.AGENT_AI_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_menu_response,(function(e){})),this._agentAssistSocket.on(Fe.agent_coaching_response,(function(t){e.hostIns.emit(Ve.AGENT_COACHING_RESPONSES,t)})),this._agentAssistSocket.on(Fe.checklist_step_response,(function(t){e.hostIns.emit(Ve.CHECKLIST_STEP_RESPONSE,t)})),this._agentAssistSocket.on(Fe.checklist_response,(function(t){e.hostIns.emit(Ve.CHECKLIST_RESPONSE,t)})),this._agentAssistSocket.on(Fe.realtime_sentiment_response,(function(e){})),this._agentAssistSocket.on(Fe.agent_assist_agent_response,(function(t){var o=e.getTimeout();setTimeout((function(){e.hostIns.rootService.sentSearchResponse=!1,e.hostIns.rootService.myBotTabSessionId="",t.sessionId&&(e.hostIns.rootService.myBotTabSessionId=null==t?void 0:t.sessionId),e.hostIns.emit(Ve.AGENT_AI_AGENT_RESPONSE,t)}),o)})),this._agentAssistSocket.on(Fe.agent_assist_endoftask,(function(e){})),this._agentAssistSocket.on(Fe.user_message,(function(t){e.hostIns.emit(Ve.USER_TRANSCRIPT_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_message,(function(t){e.hostIns.emit(Ve.AGENT_TRANSCRIPT_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agent_assist_user_message,(function(e){})),this._agentAssistSocket.on(Fe.agent_feedback_response,(function(e){})),this._agentAssistSocket.on(Fe.response_resolution_comments,(function(t){e.hostIns.emit(Ve.RESOLUTION_COMMENTS_RESPONSE,t)})),this._agentAssistSocket.on(Fe.agentassist_control_response,(function(e){}))},e.prototype.getTimeout=function(){var e=Date.now(),t=this.intervalTime;return e-this.prevTimeStamp<this.intervalTime?(t=t*this.count+(this.intervalTime-(e-this.prevTimeStamp)),this.count+=1):this.count=1,this.prevTimeStamp=e,t},e}();var yn=function(){return yn=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var s in t=arguments[o])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},yn.apply(this,arguments)},xn=function(){function e(){this.isAutomationOnGoing=!1,this.grantResponseObj={},this.prefsAccessObj={tabsNTitles:[],prefs:{}},this.connectionDetails={},this.settingsData={},this.numOfLines=4,this.maxHeight="max-content",this.scrollHeight=Number.MAX_VALUE,this.classConstants=Pe,this.idConstants=De,this.faqambiguityResponse=!1,this.activeTab="",this.myBotTabSessionId="",this.assistTabSessionId="",this.sentSearchResponse=!1,this.searchedResultData={},this.proactiveMode=!1,this.socketConnect=!1,this.isProceedToClose=!1,this.dynClObjs={},this.hideActionButtons=!1,this.hideSendButton=!1,this.hideCopyButton=!1}return e.prototype.formatWelcomeMessageResponse=function(e){return{data:e,type:Ne.WELCOME_MSG,connectionDetails:this.connectionDetails,responseType:Ne.ASSISTRESPONSE}},e.prototype.formatSearchResponse=function(e,t,o){var n,s,a,i,r,l,c,d,p,u,h,g,v;void 0===t&&(t=!1);var f=e.suggestions,m=f.dialogs||[],b=f.faqs||[],_=this.formatSnippetResponse((null===(n=null==f?void 0:f.searchassist)||void 0===n?void 0:n.snippets)||[],e,o),E=(null===(s=null==f?void 0:f.searchassist)||void 0===s?void 0:s.files)||[],y={};(null==f?void 0:f.searchassist)&&(null===(a=null==f?void 0:f.searchassist)||void 0===a?void 0:a.snippets)&&0==(null===(r=null===(i=null==f?void 0:f.searchassist)||void 0===i?void 0:i.snippets)||void 0===r?void 0:r.length)&&delete f.searchassist.snippets;var x=Object.keys((null==f?void 0:f.searchassist)||{});if((null==f?void 0:f.searchassist)&&1==(null==x?void 0:x.length)&&"searchRequestId"===x[0]&&(f.searchassist={}),m.length||b.length||_.length||E.length||(null==f?void 0:f.searchassist)&&(null===(l=Object.keys(null==f?void 0:f.searchassist))||void 0===l?void 0:l.length)){if(y.dialogs=[],y.faqs=[],y.articles=[],y.snippets=[],y.files=[],f.searchassist&&(null===(c=Object.keys(f.searchassist))||void 0===c?void 0:c.length)>0){var A=function(e){"snippets"!=e&&"file"!=e&&"searchRequestId"!=e&&(f.searchassist[e]=S.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(d=Object.keys(f.searchassist[e]))||void 0===d?void 0:d.length)>0&&y.articles.push.apply(y.articles,f.searchassist[e])),"file"==e&&(f.searchassist[e]=S.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(p=Object.keys(f.searchassist[e]))||void 0===p?void 0:p.length)>0&&y.files.push.apply(y.files,f.searchassist[e])),e&&"searchRequestId"!=e&&(null===(u=null==f?void 0:f.searchassist[e])||void 0===u||u.forEach((function(t){t.subType=e})))},S=this;for(var C in f.searchassist)A(C);for(var T=0,k=y.articles;T<k.length;T++){var w=k[T];w.showMoreButton=!0,w.showLessButton=!1,w.content=w.content?w.content:"",w.contentId=w.contentId,w.userInput=e.userInput,w.sourceMsgId=e.sourceMsgId||"",w.subType=w.subType,w.intType=t?"mybot":"assist",w.feedbackData=this.prepareFeedbackForSuggestions("article",w,{})}for(var I=0,N=y.files;I<N.length;I++){var O=N[I];O.showMoreButton=!0,O.showLessButton=!1,O.content=O.content?O.content:"",O.contentId=O.contentId,O.userInput=e.userInput,O.sourceMsgId=e.sourceMsgId||"",O.subType=O.subType,O.intType=t?"mybot":"assist",O.feedbackData=this.prepareFeedbackForSuggestions("file",O,{})}}for(var L=0,R=b;L<R.length;L++){var M=R[L],P={question:M.question,displayName:M.displayName,taskRefId:null==M?void 0:M.taskRefId,answer:!!(M.answer&&M.answer.length>0)&&[],showMoreButton:!0,showLessButton:!1,answerRender:M.answer||!1,childBotId:M.childBotId,childBotName:M.childBotName,answerCount:1,sourceMsgId:e.sourceMsgId||"",positionId:M.positionId,userInput:e.userInput,intType:e.intType};if(M.answer&&M.answer.length>0)for(var D=0,B=M.answer;D<B.length;D++){var H={ans:B[D],taskRefId:M.taskRefId,showMoreButton:!0,showLessButton:!1,displayName:M.displayName,sourceMsgId:e.sourceMsgId||"",positionId:M.positionId};P.answer.push(H)}var G=M.historyFeedback?M.historyFeedback:{};P.feedbackData=this.prepareFeedbackForSuggestions("faqs",P,G),P.feedbackData.interactionType=t?"mybot":"assist",y.faqs.push(P)}if((null===(g=null===(h=null==f?void 0:f.searchassist)||void 0===h?void 0:h.snippets)||void 0===g?void 0:g.length)>0){(null==_?void 0:_.length)>0&&(y.snippets=Object.assign([],_));for(var q=0,F=y.snippets;q<F.length;q++){var U=F[q];U.showMoreButton=!0,U.showLessButton=!1,U.subType="snippets"}}for(var V=0,K=m;V<K.length;V++){var Y=K[V];Y.entities&&(null===(v=Y.entities)||void 0===v?void 0:v.length)>0&&Y.entities.forEach((function(e){e.editMode=!1})),y.dialogs.push({name:Y.name,agentRunButton:!1,childBotId:Y.childBotId,childBotName:Y.childBotName,entities:Y.entities,userInput:e.userInput,sourceMsgId:e.sourceMsgId||""})}}return y},e.prototype.formatSnippetResponse=function(e,t,o){var n,s={contentArray:[],sources:[],internalInfo:[],sendCopyText:""},a=[];if((null==e?void 0:e.length)>0){e.forEach((function(e){var o;if(null==e?void 0:e.templateType){if("active_citation_snippet"==e.templateType||"citation_snippet"==e.templateType)(null==e?void 0:e.content)&&Array.isArray(null==e?void 0:e.content)&&(null===(o=null==e?void 0:e.content)||void 0===o?void 0:o.length)>0&&e.content.forEach((function(t){var o={ans:t.answer_fragment,sources:(null==t?void 0:t.sources)||[],internalFlag:e.internalFlag};s.contentArray.push(o),s.internalFlag=e.internalFlag||!1,s.isActCit=!0}));else if(null==e?void 0:e.content){Array.isArray(null==e?void 0:e.content)&&(e.content=null==e?void 0:e.content.join("\n")),s.internalFlag=e.internalFlag||!1;var n={ans:e.content,internalFlag:e.internalFlag};e.url&&(n.sources=[{title:e.source,url:e.url}]),s.contentArray.push(n)}s.templateType=e.templateType,s.positionId=e.positionId,s.sourceMsgId=t.sourceMsgId||"",s.intType=t.intType,s.isFromGeneratedSummary=t.isFromGeneratedSummary,s.userInput=t.userInput||""}}));var i="",r="",l=[];null===(n=s.contentArray)||void 0===n||n.forEach((function(e){var t,n,a="";(t=s.sources).push.apply(t,((null==e?void 0:e.sources)||[]).filter((function(e){var t=e.url&&-1==l.indexOf(e.title);return t&&l.push(e.title),-1!=l.indexOf(e.title)&&(a+="fragment-ext-".concat(l.indexOf(e.title)+1,"-").concat(o)),t}))),e.internalFlag||(s.sendCopyText+=e.ans);var c='<span class="'.concat(a,'">').concat(e.ans," ");if(Array.isArray(null==e?void 0:e.sources)&&(null===(n=null==e?void 0:e.sources)||void 0===n?void 0:n.length))for(var d=0,p=null==e?void 0:e.sources;d<p.length;d++){var u=p[d];if((null==u?void 0:u.title)&&-1!=l.indexOf(null==u?void 0:u.title)){var h=l.indexOf(u.title);c+='<span class="source-count-num">'.concat(h+1,"</span>")}}c+="</span>",e.internalFlag?r+=c:i+=c})),s.contentArray=[],s.internalInfo=[],(null==r?void 0:r.trim())&&s.internalInfo.push(null==r?void 0:r.trim()),(null==i?void 0:i.trim())&&s.contentArray.push(null==i?void 0:i.trim()),s.feedbackData=this.prepareFeedbackForSuggestions("answer",s,{}),a.push(s)}return a},e.prototype.updateSearchResponse=function(e,t,o){var n,s,a,i;t.suggestions.faqs=this.formatFAQResponse(t.suggestions.faqs);var r=null===(s=null===(n=null==t?void 0:t.suggestions)||void 0===n?void 0:n.faqs)||void 0===s?void 0:s.findIndex((function(e,t){if(e.question===o.question)return e})),l={};if(r>=0&&(l=null===(a=null==t?void 0:t.suggestions)||void 0===a?void 0:a.faqs[r]),l&&(null===(i=Object.keys(l))||void 0===i?void 0:i.length)>0){var c=e.map((function(e,t){var n;if(t===o.assistSuggestion){var s=yn({},e),a=null===(n=s.searchResponse)||void 0===n?void 0:n.faqs[o.index];return a&&l&&(null==l?void 0:l.answer)&&(a.answer=null==l?void 0:l.answer,a.toggle=!0,a.showMoreButton=!1,a.showLessButton=!1,a.showSpinner=!1),s.faqArrowClickResponse=!0,s}return e}));return c}},e.prototype.prepareFeedbackForSuggestions=function(e,t,o){var n,s,a;void 0===o&&(o={});var i={type:Ne.FEEDBACK,connectionDetails:this.connectionDetails,positionId:t.positionId,submitForm:!!(null==o?void 0:o.feedback),feedback:(null==o?void 0:o.feedback)?o.feedback:"",feedbackDetails:(null===(n=null==o?void 0:o.feedbackDetails)||void 0===n?void 0:n.length)?o.feedbackDetails:[],comment:(null==o?void 0:o.comment)?null==o?void 0:o.comment:"",sourceMsgId:t.sourceMsgId||"",query:t.userInput,suggestionType:e,dialogPositionId:t.positionId,subType:t.subType||""};if("answer"==e)i.isFromGeneratedSummary=t.isFromGeneratedSummary,i.answerType=t.templateType,i.title=t.title,i.answer=t.sendCopyText||"",i.interactionType=t.intType,i.sources=t.sources,(null===(s=t.internalInfo)||void 0===s?void 0:s.length)>0&&(i.answer+=t.internalInfo.join(" "));else if("article"==e||"file"==e)i.title=t.title,i.answer=t.content||"",i.interactionType=t.intType;else if("faqs"==e){var r="";Array.isArray(null==t?void 0:t.answer)&&(null===(a=null==t?void 0:t.answer)||void 0===a||a.forEach((function(e){r+=e.ans}))),i.title=t.question,i.answer=r}return i},e.prototype.checkEmptyObjectsInArray=function(e){return e=e.filter((function(e){var t;return e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&(e.title||e.content)}))},e.prototype.formatFAQResponse=function(e){var t,o,n=[];if(e&&(null==e?void 0:e.length)>0)for(var s=0,a=e;s<a.length;s++){var i=a[s],r={question:i.question,taskRefId:null==i?void 0:i.taskRefId,answer:!!((null==i?void 0:i.answer)&&(null===(t=null==i?void 0:i.answer)||void 0===t?void 0:t.length)>0)&&[]};if(i.answer&&i.answer.length>0)for(var l=0,c=i.answer;l<c.length;l++){var d=c[l],p={taskRefId:i.taskRefId,ans:d,showMoreButton:!0,showLessButton:!1};null===(o=null==r?void 0:r.answer)||void 0===o||o.push(p)}n.push(r)}return n},e.prototype.openurlInBrowser=function(e){window.open(e,"_blank")},e.prototype.extractTextFromElement=function(e){var t="";if(e){var o=function(e){if(e.nodeType===Node.TEXT_NODE)t+=e.textContent;else if(e.nodeType===Node.ELEMENT_NODE)for(var n=e.childNodes,s=0;s<n.length;s++)o(n[s])};o(e)}return t.trim()},e.prototype.handleSendCopyButton=function(e,t,o){var n={};return e==Oe.SEND?(n={method:"send",name:Oe.SENDMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},o===Oe.ARTICLE?(n.title=t.title,n.contentId=t.contentId):(n.title=t.displayName,n.contentId=t.taskRefId)):(n={method:"copy",name:Oe.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},o===Oe.ARTICLE?(n.title=t.title,n.contentId=t.contentId):(n.title=t.displayName,n.contentId=t.taskRefId)),n.type=o==Oe.FAQ?"faq":"article",this.faqArticleSendorCopyEvent(o,n,t)},e.prototype.faqArticleSendorCopyEvent=function(e,t,o){var n,s,a={botId:this.connectionDetails.botId,conversationId:this.connectionDetails.conversationId,experience:null===(n=this.connectionDetails)||void 0===n?void 0:n.channel,source:this.connectionDetails.source,usedType:t.method,type:t.type,name:t.name,payload:t.payload,title:t.title,contentId:t.contentId,positionId:o.positionId?o.positionId:"",sessionId:this.activeTab==Ie.MYBOT||this.activeTab==Ie.SEARCH?this.myBotTabSessionId:this.assistTabSessionId};return a=this.addSourceMsgIdToRequestParams(o,a),this.activeTab==Ie.SEARCH&&(a.skipMsg=this.sentSearchResponse,a.input=(null===(s=this.searchedResultData)||void 0===s?void 0:s.userInput)||"",this.sentSearchResponse=!0),o.subType&&(a.subType=o.subType),a},e.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},e.prototype.addSentOrCopiedTextForFaqs=function(e,t,o,n){var s=t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE),a=t.querySelector("".concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_SENT_TEXT));if(!e.send&&!a){e.send=o;var i=ne(dt,{ansObj:e},n);s.append(i)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForFiles=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(dt,{file:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForArticle=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(dt,{article:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.addSentOrCopiedTextForSnippets=function(e,t,o,n){if(!e.send){e.send=o;var s=ne(dt,{snippet:e},n);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}t.querySelector(this.classConstants.SEND_TEXT).textContent=o},e.prototype.handleSendCopyButtonForFaq=function(e,t,o,n,s){t.sourceMsgId=n,t.sendContent=t.answer||t.ans;var a=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(a,s)},e.prototype.handleSendCopyButtonForSnippet=function(e,t,o,n){t.sendContent=t.sendCopyText;var s=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(s,n)},e.prototype.handleSendCopyButtonArticleOrFile=function(e,t,o,n){t.sendContent=t.content;var s=this.handleSendCopyButton(e,t,o);this.emitSendOrCopyEvent(s,n)},e.prototype.handleActionTemplateClickEventsForFAQ=function(e,t,o,n,s){var a,i,r=this;null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Oe.SEND,o,Oe.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(o,n,"Sent",s)}),e),null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Oe.COPY,o,Oe.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(o,n,"Copied",s)}),e)},e.prototype.emitSendOrCopyEvent=function(e,t){"send"===(null==e?void 0:e.usedType)?t.emit(Ue.AGENT_SEND_MESSAGE,e):t.emit(Ue.AGENT_COPY_MESSAGE,e),t.socketConnection.emitEvents(Fe.agent_send_or_copy,e)},e.prototype.handleFaqExpandCloseBtnClickEvents=function(e,t,o,n,s){var a,i,r=this,l=e.querySelector(this.classConstants.SUGGESTION_FAQ_EXPAND),c=e.querySelector(this.classConstants.SUGGESTION_FAQ_CLOSE),d=null==n?void 0:n.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LENGTH));null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_FAQ_EXPAND,"click",(function(){var e,n,s,a,i,p,u,h;(null===(e=null==c?void 0:c.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==c?void 0:c.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==l?void 0:l.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var o,n;(null===(o=null==e?void 0:e.classList)||void 0===o?void 0:o.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT))})),null===(a=null==d?void 0:d.classList)||void 0===a||a.add(r.classConstants.HIDE_ELEMENT),null===(i=null==o?void 0:o.classList)||void 0===i||i.add(r.classConstants.HIDE_ELEMENT);var g=null===(p=t[0])||void 0===p?void 0:p.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);(null===(u=null==g?void 0:g.classList)||void 0===u?void 0:u.contains(r.classConstants.HIDE_ELEMENT))&&(null===(h=null==g?void 0:g.classList)||void 0===h||h.remove(r.classConstants.HIDE_ELEMENT))}),e),null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_FAQ_CLOSE,"click",(function(){var e,n,s,a,i,p,u,h,g;(null===(e=null==l?void 0:l.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(n=null==l?void 0:l.classList)||void 0===n||n.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==c?void 0:c.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var o;0!=t&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.add(r.classConstants.HIDE_ELEMENT))})),(null===(a=null==d?void 0:d.classList)||void 0===a?void 0:a.contains(r.classConstants.HIDE_ELEMENT))&&(null===(i=null==d?void 0:d.classList)||void 0===i||i.remove(r.classConstants.HIDE_ELEMENT)),(null===(p=null==o?void 0:o.classList)||void 0===p?void 0:p.contains(r.classConstants.HIDE_ELEMENT))&&(null===(u=null==o?void 0:o.classList)||void 0===u||u.remove(r.classConstants.HIDE_ELEMENT));var v=null===(h=t[0])||void 0===h?void 0:h.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);null===(g=null==v?void 0:v.classList)||void 0===g||g.add(r.classConstants.HIDE_ELEMENT)}),e)},e.prototype.handleActionTemplateClickEventsForSnippet=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonForSnippet(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForSnippets(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonForSnippet(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForSnippets(t,o,"Copied",n)}),e)},e.prototype.handleActionTemplateClickEventsForArticle=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForArticle(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForArticle(t,o,"Copied",n)}),e)},e.prototype.handleActionTemplateClickEventsForFile=function(e,t,o,n){var s,a,i=this;null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.SEND,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForFiles(t,o,"Sent",n)}),e),null===(a=n.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){i.handleSendCopyButtonArticleOrFile(Oe.COPY,t,Oe.ARTICLE,n),i.addSentOrCopiedTextForFiles(t,o,"Copied",n)}),e)},e.prototype.handleSuggestionLessClickEvent=function(e,t,o,n){var s,a=this,i=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_MORE_LINK,"click",(function(){var e,t,n;(null===(e=null==r?void 0:r.classList)||void 0===e?void 0:e.contains(a.classConstants.HIDE_ELEMENT))&&(null===(t=null==r?void 0:r.classList)||void 0===t||t.remove(a.classConstants.HIDE_ELEMENT)),null===(n=null==i?void 0:i.classList)||void 0===n||n.add(a.classConstants.HIDE_ELEMENT),o.forEach((function(e){var t,o;(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(a.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(a.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.handleSuggestionMoreClickEvent=function(e,t,o,n){var s,a=this,i=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=null==n?void 0:n.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_LESS_LINK,"click",(function(){var e,t,n;(null===(e=null==i?void 0:i.classList)||void 0===e?void 0:e.contains(a.classConstants.HIDE_ELEMENT))&&(null===(t=null==i?void 0:i.classList)||void 0===t||t.remove(a.classConstants.HIDE_ELEMENT)),null===(n=null==r?void 0:r.classList)||void 0===n||n.add(a.classConstants.HIDE_ELEMENT),o.forEach((function(e,t){var o;t>=2&&e&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.add(a.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.setFaqIndividualLoader=function(e,t,o){var n,s,a,i,r=this;void 0===t&&(t=!1);var l=document.getElementById(o),c=null===(n=(null==l?void 0:l.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===n?void 0:n.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LOADER));t&&c?null===(s=null==c?void 0:c.classList)||void 0===s||s.add(this.classConstants.HIDE_ELEMENT):c&&((null===(a=null==c?void 0:c.classList)||void 0===a?void 0:a.contains(this.classConstants.HIDE_ELEMENT))&&(null===(i=null==c?void 0:c.classList)||void 0===i||i.remove(this.classConstants.HIDE_ELEMENT)),setTimeout((function(){var e;null===(e=null==c?void 0:c.classList)||void 0===e||e.add(r.classConstants.HIDE_ELEMENT)}),1e4))},e.prototype.addOrHideFAQArrows=function(e,t,o){var n,s,a,i,r,l;"up"===o?((null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains(this.classConstants.HIDE_ELEMENT))&&(null===(s=null==t?void 0:t.classList)||void 0===s||s.remove(this.classConstants.HIDE_ELEMENT)),null===(a=null==e?void 0:e.classList)||void 0===a||a.add(this.classConstants.HIDE_ELEMENT)):((null===(i=null==e?void 0:e.classList)||void 0===i?void 0:i.contains(this.classConstants.HIDE_ELEMENT))&&(null===(r=null==e?void 0:e.classList)||void 0===r||r.remove(this.classConstants.HIDE_ELEMENT)),null===(l=null==t?void 0:t.classList)||void 0===l||l.add(this.classConstants.HIDE_ELEMENT))},e.prototype.toggleArrows=function(e,t){var o,n=document.getElementById(t),s=null===(o=(null==n?void 0:n.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===o?void 0:o.querySelector(this.classConstants.SUGGESTION_EACH_HEADER),a=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_UP_ARROW),i=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_DOWN_ARROW);this.addOrHideFAQArrows(a,i,"down")},e.prototype.openLinksInBrowser=function(e){this.openurlInBrowser(e)},e.prototype.openurlInBrowserForSnippet=function(e,t,o){this.openurlInBrowser(e),this.handleUrlClickEvent(e,t,o)},e.prototype.handleUrlClickEvent=function(e,t,o){var n=this.commonRequestParamsForActivity(t);n.eventType="url_clicked",n.url=e,o.socketConnection.emitEvents(Fe.agent_activity_request,n)},e.prototype.commonRequestParamsForActivity=function(e){var t=this.connectionDetails,o=t.botId,n=t.conversationId;t.channel;return{botId:o,conversationId:n,event:"clicked",sourceMsgId:e.sourceMsgId,dataSource:"snippet",positionId:e.positionId}},e.prototype.emitSearchRequestForAssistSuggestions=function(e,t,o,n){var s=Object.assign({},this.connectionDetails);s.value=e,s.isSearch=t,s.interactiveLanguage&&"string"==typeof s.interactiveLanguage&&"''"!=s.interactiveLanguage&&(s.language=s.interactiveLanguage),o.sourceMsgId&&(s.sourceMsgId=o.sourceMsgId);var a=n.prepareAgentAssistRequestParams(s);o.ambiguityToken&&(a.uiunqref=o.ambiguityToken),n.socketConnection.emitEvents(Fe.agent_assist_request,a)},e.prototype.emitSearchRequestForSearch=function(e,t,o,n){var s,a;void 0===o&&(o={});var i=null==e?void 0:e.value,r=yn(yn({},null===(a=null===(s=null==n?void 0:n.socketConnection)||void 0===s?void 0:s.configOptions)||void 0===a?void 0:a.connectionDetails),{value:i,isSearch:t});r.interactiveLanguage&&"string"==typeof r.interactiveLanguage&&"''"!==r.interactiveLanguage&&(r.language=r.interactiveLanguage),o&&o.sourceMsgId&&(r.sourceMsgId=o.sourceMsgId);var l=n.prepareAgentAssistAgentRequestParams(r);t&&(l.startTime=null==e?void 0:e.stTime,l.endTime=null==e?void 0:e.edTime),o.ambiguityToken&&(l.uiunqref=o.ambiguityToken),n.socketConnection.emitEvents(Fe.agent_assist_agent_request,l)},e.prototype.handleFaqAmbiguityDescElement=function(e,t,o,n){var s,a,i,r=document.getElementById(e),l=null==r?void 0:r.querySelectorAll(this.classConstants.SUGGESTION_EACH),c=null==t?void 0:t.index,d=o[c];this.setFaqIndividualLoader(c,!0,e),d&&(null===(s=null==d?void 0:d.answer)||void 0===s?void 0:s.length)>0&&l[c]&&(i=ne(Xe,{faq:d},n),n.emit(Ue.BEFORE_VIEW_INIT,i,{event:Ue.FAQ_ANSWER_AFTER_TOGGLE,data:o}),i&&(l[c].append(i),this.handleSeeMoreButtonsForFaq(r,Pe.DESC_TEXT_SUGGESTION,Pe.MORE_BTN_CONTAINER,n,c)));var p=null===(a=l[c])||void 0===a?void 0:a.querySelector(this.classConstants.SUGGESTION_EACH_HEADER);this.addOrHideFAQActionExpandCloseElements(d,p,l,c,n)},e.prototype.handleFaqToggle=function(e,t,o,n,s,a,i){var r,l=this;e.toggle=!e.toggle,e.seeMoreWrapper=!1;var c=null===(r=n[t])||void 0===r?void 0:r.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);"down"!=o||e.answer?"down"==o&&e.answer?c.forEach((function(e,t){var o,n;(null===(o=null==e?void 0:e.classList)||void 0===o?void 0:o.contains(l.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(l.classConstants.HIDE_ELEMENT))})):"up"==o&&c.forEach((function(e,t){var o;null===(o=null==e?void 0:e.classList)||void 0===o||o.add(l.classConstants.HIDE_ELEMENT)})):a?this.checkAnswerAndToggleForAssist(e,t,s,i):this.checkAnswerAndToggleForSearch(e,t,s)},e.prototype.checkAnswerAndToggleForAssist=function(e,t,o,n){if(!e.answer&&e.toggle){e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t,assistSuggestion:n.suggestionIndex})),this.emitSearchRequestForAssistSuggestions(e.displayName,!1,e,o);var s=this.idConstants.ASSIST_FAQ_SUGGESTION+n.suggestionIndex;this.setFaqIndividualLoader(t,!1,s)}},e.prototype.checkAnswerAndToggleForSearch=function(e,t,o){!e.answer&&e.toggle&&(e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t})),this.emitSearchRequestForSearch({value:e.displayName},!1,e,o),this.setFaqIndividualLoader(t,!1,this.idConstants.SEARCH_FAQ_SUGGESTION))},e.prototype.renderEachFaqInSuggestionList=function(e,t,o,n,s){var a,i=this;null===(a=null==e?void 0:e.faqs)||void 0===a||a.forEach((function(e,a){var r,l,c,d,p=null===(r=t[a])||void 0===r?void 0:r.querySelector(i.classConstants.SUGGESTION_EACH_HEADER),u=null==p?void 0:p.querySelector(i.classConstants.SUGGESTION_FAQ_UP_ARROW),h=null==p?void 0:p.querySelector(i.classConstants.SUGGESTION_FAQ_DOWN_ARROW);null===(l=o.eventManager)||void 0===l||l.addEventListener(i.classConstants.SUGGESTION_FAQ_UP_ARROW,"click",(function(){i.addOrHideFAQArrows(u,h,"up"),i.handleFaqToggle(e,a,"up",t,o,n,s)}),p),null===(c=o.eventManager)||void 0===c||c.addEventListener(i.classConstants.SUGGESTION_FAQ_DOWN_ARROW,"click",(function(){i.addOrHideFAQArrows(u,h,"down"),i.handleFaqToggle(e,a,"down",t,o,n,s)}),p),e.answer&&(null===(d=null==e?void 0:e.answer)||void 0===d?void 0:d.length)>0&&!i.hideActionButtons&&i.addOrHideFAQActionExpandCloseElements(e,p,t,a,o)}))},e.prototype.renderEachSnippetInSuggestionList=function(e,t,o){var n,s=this;null===(n=null==e?void 0:e.snippets)||void 0===n||n.forEach((function(e,n){var a,i;if(e.contentArray.length>0){var r=ne(ct,{snippet:e,hostInstance:o,rootServiceInstance:o.rootService},o);r&&"#text"!=(null==r?void 0:r.nodeName)&&(null===(a=t[n])||void 0===a||a.querySelector(s.classConstants.SUGGESTION_EACH_HEADER).append(r),s.handleActionTemplateClickEventsForSnippet(r,e,t[n],o))}var l=t[n].querySelectorAll(s.classConstants.SUGGESTION_SNIPPET_SOURCE_TAG);null===(i=e.sources)||void 0===i||i.forEach((function(t,n){var a;null===(a=o.eventManager)||void 0===a||a.addEventListener(s.classConstants.SUGGESTION_SNIPPET_LINK,"click",(function(){s.openurlInBrowserForSnippet(t.url,e,o)}),l[n])}))}))},e.prototype.renderEachArticleInSuggestionList=function(e,t,o){var n,s=this;null===(n=null==e?void 0:e.articles)||void 0===n||n.forEach((function(e,n){var a,i;if((null==e?void 0:e.content)&&!(null==e?void 0:e.internalFlag)){var r=ne(ct,{article:e,hostInstance:o,rootServiceInstance:o.rootService},o);r&&"#text"!=(null==r?void 0:r.nodeName)&&(null===(a=t[n])||void 0===a||a.querySelector(s.classConstants.SUGGESTION_EACH_HEADER).append(r),s.handleActionTemplateClickEventsForArticle(r,e,t[n],o))}null===(i=o.eventManager)||void 0===i||i.addEventListener(s.classConstants.SUGGESTION_ARTICLE_LINK,"click",(function(){s.openLinksInBrowser(e.link)}),t[n])}))},e.prototype.renderEachFileInSuggestionList=function(e,t,o){var n,s=this;null===(n=null==e?void 0:e.files)||void 0===n||n.forEach((function(e,n){var a,i;if((null==e?void 0:e.content)&&!(null==e?void 0:e.internalFlag)){var r=ne(ct,{file:e,hostInstance:o,rootServiceInstance:o.rootService},o);r&&"#text"!=(null==r?void 0:r.nodeName)&&(null===(a=t[n])||void 0===a||a.querySelector(s.classConstants.SUGGESTION_EACH_HEADER).append(r),s.handleActionTemplateClickEventsForFile(r,e,t[n],o))}null===(i=o.eventManager)||void 0===i||i.addEventListener(s.classConstants.SUGGESTION_FILE_LINK,"click",(function(){s.openLinksInBrowser(e.link)}),t[n])}))},e.prototype.handleSearchText=function(e,t){var o,n;e.isEntered&&this.emitSearchRequestForSearch(e,!0,{},t);var s=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector(this.classConstants.SEARCH_INPUT_BLOCK),a=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector("#".concat(this.idConstants.SEARCH_INPUT));if(s){var i=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_ICON),r=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_CLOSE);e.value?(i.classList.add(this.classConstants.HIDE_ELEMENT),r.classList.remove(this.classConstants.HIDE_ELEMENT)):(r.classList.add(this.classConstants.HIDE_ELEMENT),i.classList.remove(this.classConstants.HIDE_ELEMENT)),a.value=e.value}},e.prototype.addOrHideFAQActionExpandCloseElements=function(e,t,o,n,s){var a,i,r,l,c,d=this,p=ne(ct,{ansObj:e.answer[0],hostInstance:s,addHideClass:!1,rootServiceInstance:s.rootService},s);if(t&&p&&"#text"!=(null==p?void 0:p.nodeName)&&(t.append(p),this.handleActionTemplateClickEventsForFAQ(p,e,e.answer[0],o[n],s)),(null===(a=e.answer)||void 0===a?void 0:a.length)>1){var u=null===(i=o[n])||void 0===i?void 0:i.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);null===(r=e.answer)||void 0===r||r.forEach((function(t,a){var i=ne(ct,{ansObj:t,hostInstance:s,addHideClass:0==a,rootServiceInstance:s.rootService},s);i&&"#text"!=(null==i?void 0:i.nodeName)&&u&&(null==u?void 0:u.length)>0&&(u[a].prepend(i),d.handleActionTemplateClickEventsForFAQ(i,e,t,o[n],s))}));var h=ne(Je,{},s);null===(l=o[n])||void 0===l||l.append(h);var g=null===(c=o[n])||void 0===c?void 0:c.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_SENDCPY_ACTION));this.handleFaqExpandCloseBtnClickEvents(h,u,g,o[n],s)}},e.prototype.handleSeeMoreButtonsForSearchAssist=function(e,t,o,n){var s=this,a=null==e?void 0:e.querySelectorAll(".suggestion-item-card .suggestion-body-faq");null==a||a.forEach((function(e,a){var i,r=e.querySelector(t);if(r){var l=null==e?void 0:e.querySelector(o),c=null==l?void 0:l.querySelector(s.classConstants.MORE_BUTTON);r.scrollHeight>r.clientHeight&&(l.classList.remove(s.classConstants.HIDE_ELEMENT),null===(i=n.eventManager)||void 0===i||i.addEventListener(s.classConstants.MORE_BUTTON,"click",(function(e){r.classList.toggle(s.classConstants.SUGGESTION_EXPANDED),c.textContent=r.classList.contains(s.classConstants.SUGGESTION_EXPANDED)?Oe.READ_LESS:Oe.READ_MORE}),l))}}))},e.prototype.handleSeeMoreButtonsForFaq=function(e,t,o,n,s){var a=this;void 0===s&&(s=-1);var i=null==e?void 0:e.querySelectorAll(this.classConstants.SUGGESTION_EACH);null==i||i.forEach((function(e,i){var r;-1!=s&&s!==i||null===(r=e.querySelectorAll(a.classConstants.SUGGESTION_EACH_BODY))||void 0===r||r.forEach((function(e,s){var i,r=e.querySelector(t);if(r){var l=null==e?void 0:e.querySelector(o),c=null==l?void 0:l.querySelector(a.classConstants.MORE_BUTTON);r.scrollHeight>r.clientHeight&&(l.classList.remove(a.classConstants.HIDE_ELEMENT),null===(i=n.eventManager)||void 0===i||i.addEventListener(a.classConstants.MORE_BUTTON,"click",(function(e){r.classList.toggle(a.classConstants.SUGGESTION_EXPANDED),c.textContent=r.classList.contains(a.classConstants.SUGGESTION_EXPANDED)?Oe.READ_LESS:Oe.READ_MORE}),l)),s>0&&e.classList.add(a.classConstants.HIDE_ELEMENT)}}))}))},e.prototype.prepareChecklistPayload=function(e,t,o,n){var s,a,i;void 0===n&&(n=!1);var r={payload:{event:e,conversationId:this.connectionDetails.conversationId,ccVersion:null==t?void 0:t.ccVersion,accountId:null==t?void 0:t.accountId,botId:(null===(s=this.connectionDetails)||void 0===s?void 0:s.fromSAT)?null===(a=this.connectionDetails)||void 0===a?void 0:a.instanceBotId:null===(i=this.connectionDetails)||void 0===i?void 0:i.botId,agentInfo:{agentId:""},timestamp:0,context:{}}};return n?r.payload.checklistStep=o:r.payload.checklist=o,r},e.prototype.sendAndCopyForPlaybook=function(e,t,o,n){var s={method:e==Oe.SEND_METHOD?Oe.SEND_METHOD:Oe.COPY_METHOD,name:e==Oe.SEND_METHOD?Oe.SENDMSG:Oe.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t};e==Oe.SEND_METHOD?n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.PLAYBOOK_SEND_EVENT,data:{message:s}}):e==Oe.COPY_METHOD&&n.emit(Ue.BEFORE_VIEW_INIT,o,{event:Ue.PLAYBOOK_COPY_EVENT,data:{message:s}})},e.prototype.sendCheckListCompleteEvent=function(e,t,o){var n=this.prepareChecklistPayload("checklist_closed",e,{id:t});o.socketConnection.emitEvents(Fe.checklist_closed,n)},e.prototype.checkAllStagesCompleted=function(e,t,o){var n,s,a,i,r,l,c,d=e.checklists,p=!1,u=(d||[]).findIndex((function(e){return e._id===t}));if("primary"!==(null===(n=d[u])||void 0===n?void 0:n.type))(p=((null===(s=d[u].stages[0])||void 0===s?void 0:s.steps)||[]).every((function(e){return e.complete})))&&(d[u].completed=!0,this.sendCheckListCompleteEvent(e,t,o));else{var h=((null===(a=d[u].stages[0])||void 0===a?void 0:a.steps)||[]).every((function(e){return e.complete})),g=((null===(i=d[u].stages[1])||void 0===i?void 0:i.steps)||[]).every((function(e){return e.complete}));g&&(null===(c=null===(l=null===(r=null==o?void 0:o.chatEle)||void 0===r?void 0:r.querySelector(Pe.PROCEEDTOCLOSE_BTN))||void 0===l?void 0:l.classList)||void 0===c||c.add(Pe.CHECKLIST_DISABLE_MSG)),h&&g&&(d[u].completed=!0,p=!0),p&&this.sendCheckListCompleteEvent(e,t,o)}},e.prototype.updateStepTemplate=function(e,t){var o,n;null===(n=null===(o=e.checklists[this.selCLInx])||void 0===o?void 0:o.stages)||void 0===n||n.map((function(e,o){var n;null===(n=null==e?void 0:e.steps)||void 0===n||n.map((function(e,n){var s,a,i,r,l,c,d,p,u,h,g,v,f,m,b,_=null===(s=null==t?void 0:t.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.CHECKLIST_EACH_STEP).concat(o,"-").concat(n)),E=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_COMPLETE_BTN).concat(o,"-").concat(n));_&&(!1===e.ongoing&&(null===(a=null==_?void 0:_.classList)||void 0===a||a.remove(Pe.CHECKLIST_STEP_ONGOING),null===(r=null===(i=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP)))||void 0===i?void 0:i.classList)||void 0===r||r.add(Pe.CHECKLIST_DISABLE_MSG),null===(l=null==E?void 0:E.classList)||void 0===l||l.add(Pe.HIDE_ELEMENT),null===(d=null===(c=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_SEND_BLOCK)))||void 0===c?void 0:c.classList)||void 0===d||d.add(Pe.HIDE_ELEMENT)),!0===e.complete&&(null===(u=null===(p=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP_NAME)))||void 0===p?void 0:p.classList)||void 0===u||u.add(Pe.CHECKLIST_STRIKE)),!0===e.ongoing&&(null===(h=null==_?void 0:_.classList)||void 0===h||h.add(Pe.CHECKLIST_STEP_ONGOING),null===(v=null===(g=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_HEADER_STEP)))||void 0===g?void 0:g.classList)||void 0===v||v.remove(Pe.CHECKLIST_DISABLE_MSG),null===(f=null==E?void 0:E.classList)||void 0===f||f.remove(Pe.HIDE_ELEMENT),null===(b=null===(m=null==_?void 0:_.querySelector("".concat(Pe.CHECKLIST_STEP_SEND_BLOCK)))||void 0===m?void 0:m.classList)||void 0===b||b.remove(Pe.HIDE_ELEMENT)))}))}))},e.prototype.selectNextStep=function(e,t,o,n){var s,a,i=!0,r=0;this.closeAllStepsInStage(e,t,o);for(var l=0,c=null===(a=null===(s=e.checklists[t])||void 0===s?void 0:s.stages[o])||void 0===a?void 0:a.steps;l<c.length;l++){var d=c[l];if(!d.complete){d.ongoing=!0,i=!1,this.selSpInx=r,this.scrollView(d._id,n);break}r++}return i},e.prototype.closeAllStepsInStage=function(e,t,o){var n;null===(n=e.checklists[t])||void 0===n||n.stages.forEach((function(e){null==e||e.steps.forEach((function(e){e.ongoing=!1}))}))},e.prototype.selectStepForRandom=function(e,t,o,n){this.selStInx=e,this.selSpInx=o,t.ongoing=!0;var s=t._id;this.scrollView(s,n)},e.prototype.selectStage=function(e,t,o,n){this.selStInx=o,this.selectNextStep(e,t,o,n),this.updateStepTemplate(e,n)},e.prototype.scrollView=function(e,t){t.chatEle.querySelector("#".concat(e))&&t.chatEle.querySelector("#".concat(e)).scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},e.prototype.showProceedToCloseBtn=function(e){var t;(null===(t=null==e?void 0:e.chatEle)||void 0===t?void 0:t.querySelector("".concat(Pe.PROCEEDTOCLOSE_BTN))).classList.remove(Pe.HIDE_ELEMENT)},e.prototype.clickStep=function(e,t,o,n,s){var a=this.selCLInx,i=this.selStInx,r=this.selSpInx,l=e.checklists,c=l[a];(null==o?void 0:o.complete)||(null==o?void 0:o.ongoing)||"random"===(null==c?void 0:c.order)&&(l[a].stages[i].steps[r].ongoing=!1,this.selectStepForRandom(t,o,n,s),this.updateStepTemplate(e,s))},e.prototype.getNumberstepCompInStage=function(e){for(var t,o,n=0,s=0,a=null===(o=null===(t=e.checklists[this.selCLInx])||void 0===t?void 0:t.stages[this.selStInx])||void 0===o?void 0:o.steps;s<a.length;s++){a[s].complete&&(n+=1)}return n},e.prototype.handleStageCheck=function(e,t,o,n){var s,a,i=null===(s=null==n?void 0:n.chatEle)||void 0===s?void 0:s.querySelector("".concat(Pe.SELECTED_STAGE));i&&(i.innerText=null===(a=o[t])||void 0===a?void 0:a.name),null==o||o.map((function(o,n){var s,a,i=null==e?void 0:e.querySelector("".concat(Pe.CHECKLIST_SELECTED_STAGE_CHECK).concat(n));n===t?null===(s=null==i?void 0:i.classList)||void 0===s||s.remove(Pe.HIDE_ELEMENT):null===(a=null==i?void 0:i.classList)||void 0===a||a.add(Pe.HIDE_ELEMENT)}))},e.prototype.selectNextStage=function(e,t,o,n){var s,a,i,r;if(this.selectNextStep(e,t,o,n)&&(null===(s=e.checklists[t])||void 0===s?void 0:s.stages[o+1])&&("Close"!=(null===(a=e.checklists[t])||void 0===a?void 0:a.stages[o+1].name)||this.isProceedToClose)){var l=null===(i=null==n?void 0:n.chatEle)||void 0===i?void 0:i.querySelector("".concat(Pe.STAGE_DROPDOWN));this.handleStageCheck(l,o+1,null===(r=e.checklists[t])||void 0===r?void 0:r.stages,n),this.selectStage(e,t,o+1,n)}this.updateStepTemplate(e,n)},e.prototype.confirmationBtnForPlaybook=function(e,t,o){var n="yes"===e.title?Ue.PLAYBOOK_CONFIRMATION_YES:Ue.PLAYBOOK_CONFIRMATION_NO;o.emit(Ue.BEFORE_VIEW_INIT,t,{event:n,data:{btn:e}})},e}();const An=xn;const Sn=function(){function e(e){this.eventMapper=[],this.hostInstance=e}return e.prototype.addEventListener=function(e,t,o,n){var s;!n&&this.eventMapper.filter((function(o){return o.querySelector===e&&o.event==t})).length||(this.eventMapper.push({querySelector:e,event:t,cb:o}),null===(s=(n||this.hostInstance.chatEle).querySelector(e))||void 0===s||s.addEventListener(t,o))},e.prototype.removeEventListener=function(e,t,o){var n,s,a=this.eventMapper.filter((function(o){return o.querySelector==e&&o.event==t}));null===(n=(o||this.hostInstance.chatEle).querySelector(e))||void 0===n||n.removeEventListener(t,null===(s=a[0])||void 0===s?void 0:s.cb),this.eventMapper.splice(this.eventMapper.findIndex((function(o){return o.querySelector==e&&o.event==t})),1)},e}();var Cn,Tn=(Cn=function(e,t){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},Cn(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}Cn(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),kn=function(e){function t(){var t=e.call(this)||this;return t.handleOverrideMode=function(e,o){var n,s=t.rootService.connectionDetails,a={agentId:"",botId:s.botId,conversationId:s.conversationId,query:"",enable_override_userinput:e,experience:null===(n=t.rootService.connectionDetails)||void 0===n?void 0:n.channel,positionId:o};t.rootService.proactiveMode=!e,t.socketConnection.emitEvents(Fe.enable_override_userinput,a),t.rootService.OverRideMode=e},t}return Tn(t,e),t.prototype.show=function(e){var t;this.config=e,this.applyBranding(null===(t=e.branding)||void 0===t?void 0:t.colors),this.initShow(e),this.eventManager=new Sn(this)},t.prototype.sendUserMessage=function(e){var t,o,n,s,a,i,r;if(e.message&&"user"===(null===(o=null===(t=e.author)||void 0===t?void 0:t.type)||void 0===o?void 0:o.toLowerCase())){var l=null===(n=this.rootService.connectionDetails)||void 0===n?void 0:n.conversationId,c=null===(s=this.rootService.connectionDetails)||void 0===s?void 0:s.botId,d={author:e.author,type:null===(i=null===(a=e.author)||void 0===a?void 0:a.type)||void 0===i?void 0:i.toUpperCase(),conversationId:l,message:e.message,botId:c};if(this.emit(Ke.USER_TRANSCRIPT_MSG,d),this.socketConnection.emitEvents(Fe.user_sent_message,d),this.rootService.proactiveMode){var p={author:e.author,botId:c,conversationId:l,experience:null===(r=this.rootService.connectionDetails)||void 0===r?void 0:r.channel,query:e.message,positionId:this.rootService.isAutomationOnGoing?this.rootService.currentPositionId:null};(null==e?void 0:e.customData)&&(p.customData=JSON.parse(JSON.stringify(null==e?void 0:e.customData))),(null==e?void 0:e.secureCustomData)&&(p.secureCustomData=null==e?void 0:e.secureCustomData),this.socketConnection.emitEvents(Fe.agent_assist_request,p)}}else this.emit(Ue.ON_ERROR,{message:"Missing required fields to send user message"})},t.prototype.sendAgentMessage=function(e){var t,o,n,s,a,i;if(e.message&&"agent"===(null===(o=null===(t=e.author)||void 0===t?void 0:t.type)||void 0===o?void 0:o.toLowerCase())){var r=null===(n=this.rootService.connectionDetails)||void 0===n?void 0:n.conversationId,l=null===(s=this.rootService.connectionDetails)||void 0===s?void 0:s.botId,c={author:e.author,type:null===(i=null===(a=e.author)||void 0===a?void 0:a.type)||void 0===i?void 0:i.toUpperCase(),conversationId:r,message:e.message,botId:l};this.emit(Ke.AGENT_TRANSCRIPT_MSG,c),(null==e?void 0:e.customData)&&(c.customData=JSON.parse(JSON.stringify(null==e?void 0:e.customData))),(null==e?void 0:e.secureCustomData)&&(c.secureCustomData=null==e?void 0:e.secureCustomData),this.socketConnection.emitEvents(Fe.agent_sent_message,c)}else this.emit(Ue.ON_ERROR,{message:"Missing required fields to send agent message"})},t.prototype.initShow=function(e){var t=this;this.renderLoader(),this.socketConnection=new En(this),this.rootService=new An,this.rootService.connectionDetails=e.connectionDetails,this.JWTSetup(e).then((function(o){t.rootService.grantResponseObj=o,e.JWT_RESP=o,t.socketConnection.configOptions=e;var n=e.connectionDetails.botId;t.getAASettings(n).then((function(o){var n;t.rootService.aaSettings=(null==o?void 0:o.agentAssistSettings)||{},t.socketConnection.socketConnection(e),n=ne(zt,{},t),t.chatEle=n,t.render(n),t.bindEvents(),t.hideSendAndCopy()}))})).catch((function(e){}))},t.prototype.hideSendAndCopy=function(){var e,t,o,n;this.rootService.hideActionButtons=this.rootService.connectionDetails.channel===Oe.VOICE,!1===(null===(t=null===(e=this.rootService)||void 0===e?void 0:e.settingsData)||void 0===t?void 0:t.isAgentResponseEnabled)&&(this.rootService.hideSendButton=!0),!1===(null===(n=null===(o=this.rootService)||void 0===o?void 0:o.settingsData)||void 0===n?void 0:n.isAgentResponseCopyEnabled)&&(this.rootService.hideCopyButton=!0),this.rootService.hideSendButton&&this.rootService.hideCopyButton&&(this.rootService.hideActionButtons=!0)},t.prototype.getAASettings=function(e){var t=this.rootService.connectionDetails.channel;return wt("get_aa_settings",{method:"GET",headers:{"Content-Type":"application/json"}},this,{botId:e,channel:t})},t.prototype.JWTSetup=function(e){var t=e.connectionDetails||{},o={assertion:t.token,botInfo:{taskBotId:t.botId,chatBot:"Sample Bot"},token:{}};return wt("jwt_grant",{method:"POST",body:JSON.stringify(o)},this)},t.prototype.render=function(e){this.clearContainer(),document.getElementsByClassName(this.config.container)[0].append(e)},t.prototype.clearContainer=function(){for(var e=document.getElementsByClassName(this.config.container),t=0;t<e.length;t++)for(;e[t].firstChild;)e[t].removeChild(e[t].firstChild)},t.prototype.renderLoader=function(){var e=ne(Wt,{},this);document.getElementsByClassName(this.config.container)[0].append(e)},t.prototype.bindEvents=function(){var e=this;this.on("ON_SOCKET_CONNECTION",(function(t){e.commonEmitEvents(t)}))},t.prototype.commonEmitEvents=function(e){var t,o,n=null==e?void 0:e.connectionDetails,s=n.botId,a=n.conversationId,i=n.autoBotId,r=n.interactiveLanguage,l=n.userName,c=n.customData,d=n.token,p=n.channel,u="",h="",g="";c&&(null===(t=Object.keys(c))||void 0===t?void 0:t.length)>0&&"smartassist-color-scheme"!==(null===(o=null==e?void 0:e.connectionDetails)||void 0===o?void 0:o.source)&&(u=c),null!=r&&"''"!==r&&(h=r),i&&"undefined"!==i&&(g=i);var v={waitTime:2e3,userName:l,id:a,isSendWelcomeMessage:!0,agentassistInfo:{},botId:s,sendMenuRequest:!0,uId:"",sId:"",experience:p,jToken:d,conversationId:a,autoBotId:g,language:h,allQueryParams:null==e?void 0:e.connectionDetials,customData:u};this.welComeMsgReq(v),this.handleOverrideMode(!1,null);var f={botId:s,conversationId:a,experience:p,autoBotId:g,language:h};this.menuReq(f)},t.prototype.prepareAgentAssistRequestParams=function(e){var t,o,n,s,a,i,r,l,c=null===(o=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===o?void 0:o.connectionDetails,d={conversationId:e.conversationId,query:e.value,botId:e.botId,agentId:"",experience:null==c?void 0:c.channel,positionId:e.positionId,intType:"assist"};return e.intentName&&(d.intentName=e.value),e.entities?d.entities=e.entities:d.entities=[],e.childBotId&&(d.childBotId=e.childBotId),e.childBotName&&(d.childBotName=e.childBotName),(null==c?void 0:c.autoBotId)&&"undefined"!==(null==c?void 0:c.autoBotId)?d.autoBotId=c.autoBotId:d.autoBotId="",e.intentName&&e.userInput&&(d.query=e.userInput),this.rootService.isAutomationOnGoing&&(d.positionId=this.rootService.currentPositionId),Array.isArray(e.traits)&&(null===(n=null==e?void 0:e.traits)||void 0===n?void 0:n.length)&&(d.traits=e.traits),e.taskRefId&&(d.taskRefId=e.taskRefId),e.dialogId&&(d.dialogId=e.dialogId),e.isDiscard&&(d.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(d.query=(null===(a=null===(s=null==e?void 0:e.attachments[0])||void 0===s?void 0:s.url)||void 0===a?void 0:a.fileUrl)||"",d.attachments=null==e?void 0:e.attachments),(null==e?void 0:e.author)&&(d.firstName=(null===(i=null==e?void 0:e.author)||void 0===i?void 0:i.firstName)||"",d.lastName=(null===(r=null==e?void 0:e.author)||void 0===r?void 0:r.lastName)||"",d.type=(null===(l=null==e?void 0:e.author)||void 0===l?void 0:l.type)||""),d=this.addSourceMsgIdToRequestParams(e,d)},t.prototype.prepareAgentAssistAgentRequestParams=function(e){var t,o,n,s,a,i=null===(o=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===o?void 0:o.connectionDetails,r={isSearch:e.isSearch,conversationId:e.conversationId,query:e.value,botId:e.botId,experience:null==i?void 0:i.channel,positionId:null==e?void 0:e.positionId,childBotId:(null==e?void 0:e.childBotId)||"",childBotName:(null==e?void 0:e.childBotName)||"",intType:"myBot"};return e.intentName&&(r.intentName=e.intentName),(null==i?void 0:i.autoBotId)&&"undefined"!==(null==i?void 0:i.autoBotId)?r.autoBotId=i.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),Array.isArray(e.traits)&&(null===(n=null==e?void 0:e.traits)||void 0===n?void 0:n.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.query=(null===(a=null===(s=null==e?void 0:e.attachments[0])||void 0===s?void 0:s.url)||void 0===a?void 0:a.fileUrl)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},t.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},t.prototype.welComeMsgReq=function(e){this.socketConnection.emitEvents(Fe.welcome_message_request,e)},t.prototype.menuReq=function(e){this.socketConnection.emitEvents(Fe.agent_menu_request,e)},t.prototype.openAssistTab=function(e,t){this.emit(Ye.UPDATE_ACTIVE_TAB,{activeTab:"ast",isActive:t,footerTag:e})},t.prototype.openTranscriptTab=function(e,t){this.emit(Ye.UPDATE_ACTIVE_TAB,{activeTab:"trnspt",isActive:t,footerTag:e})},t.prototype.openSearchTab=function(e,t){this.emit(Ye.UPDATE_ACTIVE_TAB,{activeTab:"srch",isActive:t,footerTag:e})},t.prototype.openMybotTab=function(e,t){this.emit(Ye.UPDATE_ACTIVE_TAB,{activeTab:"mB",isActive:t,footerTag:e})},t.prototype.openPlaybookTab=function(e,t){this.emit(Ye.UPDATE_ACTIVE_TAB,{activeTab:"playbook",isActive:t,footerTag:e})},t.prototype.sendChecklistOpenedEvent=function(e){this.emit(Ye.CHECKLIST_OPEN,e)},t.prototype.sendChecklistResumeEvent=function(e){this.emit(Ye.CHECLIST_RESUME,e)},t.prototype.sendChecklistStepCloseEvent=function(e){this.emit(Ye.CHECKLIST_STEP_CLOSE,e)},t.prototype.sendChecklistProceedToCloseEvent=function(e){this.emit(Ye.CHECKLIST_PROCEED_TO_CLOSE,e)},t.prototype.endOfConversation=function(){this.emit(Ke.END_OF_CONVERSATION)},t.prototype.applyBranding=function(e){var t={primay:"--AA-primary-color",secondary:"--AA-secondary-color",primaryText:"--AA-primary-text",secondaryText:"--AA-secondary-text",bodyBackground:"--AA-body-background",warningColor:"--AA-warning-color"};if(t)for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var n=t[o];document.documentElement.style.setProperty(n,e[o])}},t}(T);const wn=kn;const In={connectionDetails:{},container:"aa-web-sdk-window",branding:{colors:{primay:"#2970FF",secondary:"#EAECF0",primaryText:"#101828",secondaryText:"#FFFFFF",bodyBackground:"#FFFFFF",warningColor:"#D92D20"}}};var Nn=n.h,On=n.d;export{Nn as AAConfig,On as AAWindow};
|