widget-chatbot 2.0.0 → 2.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- .w-modal-container-feedback{width:100%}.w-modal-container-feedback .ant-modal-content{background-image:url(https://res.cloudinary.com/dcvolkyfb/image/upload/v1740108579/svg/modal_feedback_image_smgsc0.svg);background-repeat:no-repeat;background-size:cover}.w-list-feedback-suggestion{display:flex!important;flex-wrap:wrap;gap:8px!important}.w-list-feedback-suggestion .ant-radio-button-wrapper{border-width:1px;border-radius:10px!important;font-size:10px!important}.w-list-feedback-suggestion .ant-radio-button-wrapper:before{content:none}.lds-ellipsis,.lds-ellipsis div{box-sizing:border-box}.lds-ellipsis{display:inline-block;position:relative;width:48px;height:70px}.lds-ellipsis div{position:absolute;top:33.33333px;width:8px;height:8px;border-radius:50%;background:#00000080;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:22px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:37px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(13px)}}.w-bubble-chat-container{display:flex;flex-direction:column;gap:18px}.w-bubble-chat{padding:11px 15px;box-shadow:0 2px 8px #00000026}.w-bubble-chat-regenerate{width:100%;max-width:250px!important}.w-bubble-chat-regenerate-expand{width:100%;max-width:750px!important}.w-response{background-color:#fff;border-radius:0 15px 15px;width:fit-content;max-width:calc(100% - 20px);overflow-wrap:break-word}.w-client{background-color:var(--ant-primary-1, #ebeff8);align-self:flex-end;border-radius:15px 0 15px 15px;max-width:250px}.w-regenerate-chat-last{padding:1px;background:linear-gradient(71.62deg,#395ebc 24.16%,#a8d8f3 76.78%);border-radius:0 15px 15px;animation:gradient 5s ease infinite;background-size:400% 400%;max-width:300px;margin-bottom:10px;transition:all .3s}.w-regenerate-chat-last-expand{max-width:100%}.w-bubble-chat .ant-table-content{max-width:100%!important}.w-link-path{color:var(--primary-color, #395ebc);cursor:pointer}.w-link-path :hover{color:var(--ant-primary-color-hover, #40a9ff)}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.w-input-container{border:1px solid rgba(217,217,217,1);border-radius:8px;display:flex;justify-content:space-between;align-items:flex-end;padding:10px 5px 5px;margin:0 10px}.w-input-widget,.w-input-helpdesk{overflow:auto;resize:none!important;width:100%;border:none}.w-input-widget.ant-input,.w-input-widget.ant-input-focused,.w-input-widget.ant-input:focus,.w-input-widget.ant-input-outlined:focus,.w-input-widget.ant-input-outlined:focus-within{box-shadow:none;border:none!important}.w-input-helpdesk.ant-mentions,.w-input-helpdesk.ant-mentions-focused,.w-input-helpdesk.ant-mentions:hover{border:none!important;box-shadow:none}.w-input-helpdesk.ant-mentions-outlined:focus,.w-input-helpdesk.ant-mentions-outlined:focus-within{box-shadow:none}.w-send-btn{background-color:var(--primary-color, #395ebc)}.w-send-btn-disabled{background-color:#0006!important}.w-list-ticket-container{display:flex;flex-direction:column;gap:12px;height:calc(100dvh - 320px);overflow-y:auto;position:relative}.w-list-ticket-container-sf{height:calc(100dvh - 250px)}.w-list-ticket-container-mobile{height:calc(100dvh - 190px)}.w-ticket-card-container{box-shadow:0 0 8px #a8d8f34d;padding:8px 12px;border-radius:10px;cursor:pointer;transition:all .3s}.w-ticket-card-container:hover{box-shadow:0 3px 6px -4px #a8d8f31a,0 6px 16px #a8d8f330,0 9px 28px 8px #a8d8f32b;border:none}.w-ticket-card-content-container{display:flex;justify-content:space-between}.w-ticket-card-cat-code{display:flex;flex-direction:column}.w-ticket-card-status-date{display:flex;flex-direction:column;align-items:flex-end}.w-ticket-list-advance-filter-form-container{overflow-y:auto;height:calc(100% - 50px);padding:18px 12px}.w-ticket-list-advance-filter-footer{display:flex;gap:8px;align-items:flex-end;justify-content:flex-end;flex:auto}.w-drawer-container{background-color:#fff;height:100%;right:0;bottom:0;left:0;position:absolute;z-index:1;top:62px;padding:15px 12px 12px;display:flex;flex-direction:column}.w-show-animate{animation:show .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-close-animate{animation:close .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-slide-left-animate{animation:slide_left .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-slide-right-animate{animation:slide_right .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-fade-in-animate{animation:fade-in .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-fade-out-animate{animation:fade-out .3s cubic-bezier(.4,0,.2,1) 0ms 1;height:0;visibility:hidden;padding:0;margin:0}.w-slide-up-animate{animation:slide-up .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-spin-animate{animation:spin 1s infinite forwards}@keyframes show{0%{transform:scale(0);overflow:hidden;transform-origin:right}to{transform:scale(1);overflow:visible}}@keyframes close{0%{transform:scale(1);overflow:visible}to{transform:scale(0);overflow:hidden;transform-origin:right}}@keyframes slide_left{0%{transform:translate(-500px);overflow:hidden}to{transform:translate(0);overflow:visible}}@keyframes slide_right{0%{transform:translate(500px);overflow:hidden}to{transform:translate(0);overflow:visible}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes slide-up{0%{transform:translateY(500px)}to{transform:translateY(-100px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.w-wrapper-body-helpdesk{padding:24px 12px;position:relative;overflow:hidden;height:calc(100dvh - 230px)}.w-wrapper-body-helpdesk-sf{height:calc(100dvh - 190px)}.w-wrapper-body-helpdesk-mobile,.w-wrapper-body-helpdesk-sf-mobile{height:calc(100dvh - 115px)}.w-wrapper-body-helpdesk .ant-drawer{position:absolute!important;height:100%}.w-wrapper-body-helpdesk .ant-drawer-content-wrapper{height:100%!important}.w-wrapper-body-helpdesk .ant-drawer-body{overflow:hidden;padding:12px 0 0!important}.w-ticket-detail-content-container{height:calc(100% - 130px);overflow-y:auto;padding:0 24px 20px;position:relative}.w-ticket-detail-content-container-sf-mobile{height:calc(100% - 110px)}.w-ticket-detail-content-container-mobile{height:calc(100% - 120px);padding:0 12px 20px}.w-datekey-chats{color:gray;border-bottom:1px solid rgb(221,221,221);background-color:#fff;border-radius:8px;margin:24px auto 12px;text-align:center;padding:5px 15px;width:fit-content;position:sticky;top:10px;z-index:1}.w-ticket-info-chat-container{display:flex;flex-direction:column;-webkit-box-align:center;align-items:center;text-align:center;margin:auto;padding:4px;background:#fafafa;border:1px solid rgb(217,217,217);border-radius:8px;width:80%;font-size:14px}.w-ticket-detail-header-container{display:flex;gap:8px;border-bottom:1px solid rgba(0,0,0,.05);align-items:center;justify-content:space-between}.w-ticket-detail-header-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.w-ticket-detail-loading-chats{display:flex;flex-direction:column;gap:24px;padding:0}.w-banner-container{position:absolute;top:0;left:0;right:0;background-color:#00000080;width:100%;padding:8px 0;border-radius:0 0 8px 8px}.w-banner-container span{color:#fff}.w-banner-container .w-reconnect-manual{color:var(--link-color, #69b1ff)!important}.w-banner-container .w-banner-content{position:relative;display:flex;gap:4px;text-align:center;flex-direction:column}.w-banner-container .w-banner-subtitle{display:flex;gap:8px;justify-content:center}.w-banner-container .w-banner-close-btn{position:absolute;top:10px;right:10px}.w-launcher-container{cursor:pointer;display:flex;position:fixed;right:0;top:30%;gap:8px;align-items:center;transform:rotate(-90deg);transform-origin:bottom right;background-color:var(--primary-color, #395ebc);color:#fff;padding:15px;border-radius:8px 8px 0 0;transition:all .3s}@media (max-width: 575.98px){body.w-container-open{overflow:hidden}}.w-container-widget{position:fixed;right:2%;top:60px;width:360px;border-radius:8px;box-shadow:0 1px 1.5px -1px #0000000c,0 2.5px 3.7px -1px #00000012,0 5px 7px -1px #00000016,0 9.7px 12.5px -1px #0000001a,0 19.7px 23.4px -1px #0000001f,0 54px 56px -1px #0000002b;z-index:999;transition:all .25s}.w-container-widget-mobile{width:100vw;border-radius:0;top:0;right:0;bottom:0;left:0}.w-container-widget.w-container-widget-expand{width:800px}#w-widget-content .ant-modal-mask,#w-widget-content .ant-modal-wrap{position:absolute}.w-widget-content-container{position:relative;height:100%;background-color:#fff;overflow:hidden}.w-widget-content-container-mobile,.w-widget-content-container-sf-mobile{height:calc(100dvh - 120px)}.w-wrapper-body{overflow-y:auto;height:calc(100dvh - 300px);padding:24px 12px;position:relative}.w-wrapper-body-sf{height:calc(100dvh - 260px)}.w-wrapper-body-sf-mobile{height:calc(100dvh - 190px)}.w-wrapper-body-mobile{height:calc(100dvh - 12rem)}.w-widget-tab-footer-container{width:100%;background-color:#fff;border-radius:0 0 8px 8px}.w-widget-tab-footer-container .ant-tabs-nav{width:100%!important;margin:0}.w-widget-tab-footer-container .ant-tabs-nav>div:nth-of-type(1){display:unset!important;width:100%!important}.w-widget-tab-footer-container .ant-tabs-tab{display:block;flex:1;text-align:center}.w-widget-tab-footer-container .ant-tabs-nav-operations{display:none!important}.w-header-container{display:flex;justify-content:space-between;padding:0 15px;border-radius:8px 8px 0 0;align-items:center;background-color:var(--primary-color, #395ebc);color:#fff}.w-header-text{display:flex;flex-direction:column;gap:8px;padding:12px 0}.w-header-title{font-size:14px;font-weight:600;margin:0!important;color:#fff}.w-header-subtitle{font-size:12px;color:#fff}.w-header-action{display:flex;gap:12px}.w-widget-content-container .ant-notification{position:absolute!important}.w-widget-content-container .w-notification-content{width:300px!important}
1
+ .w-modal-container-feedback{width:100%}.w-modal-container-feedback .ant-modal-content{background-image:url(https://res.cloudinary.com/dcvolkyfb/image/upload/v1740108579/svg/modal_feedback_image_smgsc0.svg);background-repeat:no-repeat;background-size:cover}.w-list-feedback-suggestion{display:flex!important;flex-wrap:wrap;gap:8px!important}.w-list-feedback-suggestion .ant-radio-button-wrapper{border-width:1px;border-radius:10px!important;font-size:10px!important}.w-list-feedback-suggestion .ant-radio-button-wrapper:before{content:none}.lds-ellipsis,.lds-ellipsis div{box-sizing:border-box}.lds-ellipsis{display:inline-block;position:relative;width:48px;height:70px}.lds-ellipsis div{position:absolute;top:33.33333px;width:8px;height:8px;border-radius:50%;background:var(--text-color-secondary);animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:22px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:37px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(13px)}}.w-bubble-chat-container{display:flex;flex-direction:column;gap:18px}.w-bubble-chat{padding:11px 15px;box-shadow:0 2px 8px #00000026}.w-bubble-chat-regenerate{width:100%;max-width:250px!important}.w-bubble-chat-regenerate-expand{width:100%;max-width:750px!important}.w-response{background-color:var(--btn-default-background, #fff);border-radius:0 15px 15px;width:fit-content;max-width:calc(100% - 20px);overflow-wrap:break-word}.w-client{color:rgba(var(--invert-color-rgb),1);background-color:var(--ant-primary-4, #ebeff8);align-self:flex-end;border-radius:15px 0 15px 15px;max-width:250px}.w-regenerate-chat-last{padding:1px;background:linear-gradient(71.62deg,var(--primary-color, #395ebc) 24.16%,var(--link-color, #a8d8f3) 76.78%);border-radius:0 15px 15px;animation:gradient 5s ease infinite;background-size:400% 400%;max-width:300px;margin-bottom:10px;transition:all .3s}.w-regenerate-chat-last-expand{max-width:100%}.w-bubble-chat .ant-table-content{max-width:100%!important}.w-link-path{color:var(--primary-color, #395ebc);cursor:pointer}.w-link-path :hover{color:var(--ant-primary-color-hover, #40a9ff)}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.w-input-container{border:1px solid rgba(217,217,217,1);border-radius:8px;display:flex;justify-content:space-between;align-items:flex-end;padding:10px 5px 5px;margin:0 10px}.w-input-widget,.w-input-helpdesk{overflow:auto;resize:none!important;width:100%;border:none}.w-input-widget.ant-input,.w-input-widget.ant-input-focused,.w-input-widget.ant-input:focus,.w-input-widget.ant-input-outlined:focus,.w-input-widget.ant-input-outlined:focus-within{box-shadow:none;border:none!important}.w-input-helpdesk.ant-mentions,.w-input-helpdesk.ant-mentions-focused,.w-input-helpdesk.ant-mentions:hover{border:none!important;box-shadow:none}.w-input-helpdesk.ant-mentions-outlined:focus,.w-input-helpdesk.ant-mentions-outlined:focus-within{box-shadow:none}.w-send-btn{background-color:var(--primary-color, #395ebc)}.w-send-btn-disabled{background-color:var(--text-color-secondary)!important}.w-list-ticket-container{display:flex;flex-direction:column;gap:12px;height:calc(100dvh - 320px);overflow-y:auto;position:relative}.w-list-ticket-container-sf{height:calc(100dvh - 250px)}.w-list-ticket-container-mobile{height:calc(100dvh - 190px)}.w-ticket-card-container{box-shadow:0 0 8px var(--box-shadow-color);padding:8px 12px;border-radius:10px;cursor:pointer;transition:all .3s}.w-ticket-card-container:hover{box-shadow:0 3px 6px -4px #a8d8f31a,0 6px 16px #a8d8f330,0 9px 28px 8px #a8d8f32b;border:none}.w-ticket-card-content-container{display:flex;justify-content:space-between}.w-ticket-card-cat-code{display:flex;flex-direction:column}.w-ticket-card-status-date{display:flex;flex-direction:column;align-items:flex-end}.w-ticket-list-advance-filter-form-container{overflow-y:auto;height:calc(100% - 50px);padding:18px 12px}.w-ticket-list-advance-filter-footer{display:flex;gap:8px;align-items:flex-end;justify-content:flex-end;flex:auto}.w-drawer-container{background-color:#fff;height:100%;right:0;bottom:0;left:0;position:absolute;z-index:1;top:62px;padding:15px 12px 12px;display:flex;flex-direction:column}.w-show-animate{animation:show .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-close-animate{animation:close .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-slide-left-animate{animation:slide_left .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-slide-right-animate{animation:slide_right .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-fade-in-animate{animation:fade-in .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-fade-out-animate{animation:fade-out .3s cubic-bezier(.4,0,.2,1) 0ms 1;height:0;visibility:hidden;padding:0;margin:0}.w-slide-up-animate{animation:slide-up .3s cubic-bezier(.4,0,.2,1) 0ms 1}.w-spin-animate{animation:spin 1s infinite forwards}@keyframes show{0%{transform:scale(0);overflow:hidden;transform-origin:right}to{transform:scale(1);overflow:visible}}@keyframes close{0%{transform:scale(1);overflow:visible}to{transform:scale(0);overflow:hidden;transform-origin:right}}@keyframes slide_left{0%{transform:translate(-500px);overflow:hidden}to{transform:translate(0);overflow:visible}}@keyframes slide_right{0%{transform:translate(500px);overflow:hidden}to{transform:translate(0);overflow:visible}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes slide-up{0%{transform:translateY(500px)}to{transform:translateY(-100px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.w-wrapper-body-helpdesk{padding:24px 12px;position:relative;overflow:hidden;height:calc(100dvh - 230px)}.w-wrapper-body-helpdesk-sf{height:calc(100dvh - 190px)}.w-wrapper-body-helpdesk-mobile,.w-wrapper-body-helpdesk-sf-mobile{height:calc(100dvh - 115px)}.w-wrapper-body-helpdesk .ant-drawer{position:absolute!important;height:100%}.w-wrapper-body-helpdesk .ant-drawer-content-wrapper{height:100%!important}.w-wrapper-body-helpdesk .ant-drawer-body{overflow:hidden;padding:12px 0 0!important}.w-ticket-detail-content-container{height:calc(100% - 130px);overflow-y:auto;padding:0 24px 20px;position:relative}.w-ticket-detail-content-container-sf-mobile{height:calc(100% - 110px)}.w-ticket-detail-content-container-mobile{height:calc(100% - 120px);padding:0 12px 20px}.w-datekey-chats{color:var(--ant-neutral-5);background-color:var(--btn-default-background, #fff);border-radius:8px;margin:24px auto 12px;text-align:center;padding:5px 15px;width:fit-content;position:sticky;top:10px;z-index:1}.w-ticket-info-chat-container{display:flex;flex-direction:column;-webkit-box-align:center;align-items:center;text-align:center;margin:auto;padding:4px;background:var(--ant-neutral-1, rgb(250, 250, 250));border:1px solid var(--border-color-base, rgb(217, 217, 217));border-radius:8px;width:80%;font-size:14px;color:var(--text-color, black)}.w-ticket-detail-header-container{display:flex;gap:8px;border-bottom:1px solid rgba(0,0,0,.05);align-items:center;justify-content:space-between}.w-ticket-detail-header-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.w-ticket-detail-loading-chats{display:flex;flex-direction:column;gap:24px;padding:0}.w-banner-container{position:absolute;top:0;left:0;right:0;background-color:#00000080;width:100%;padding:8px 0;border-radius:0 0 8px 8px}.w-banner-container span{color:#fff}.w-banner-container .w-reconnect-manual{color:var(--primary-color, #69b1ff)!important}.w-banner-container .w-banner-content{position:relative;display:flex;gap:4px;text-align:center;flex-direction:column}.w-banner-container .w-banner-subtitle{display:flex;gap:8px;justify-content:center}.w-banner-container .w-banner-close-btn{position:absolute;top:10px;right:10px}.w-launcher-container{cursor:pointer;display:flex;position:fixed;right:0;top:30%;gap:8px;align-items:center;transform:rotate(-90deg);transform-origin:bottom right;background-color:var(--primary-color, #395ebc);color:#fff;padding:15px;border-radius:8px 8px 0 0;transition:all .3s}@media (max-width: 575.98px){body.w-container-open{overflow:hidden}}.w-container-widget{position:fixed;right:2%;top:60px;width:360px;border-radius:8px;box-shadow:0 1px 1.5px -1px #0000000c,0 2.5px 3.7px -1px #00000012,0 5px 7px -1px #00000016,0 9.7px 12.5px -1px #0000001a,0 19.7px 23.4px -1px #0000001f,0 54px 56px -1px #0000002b;z-index:999;transition:all .25s}.w-container-widget-mobile{width:100vw;border-radius:0;top:0;right:0;bottom:0;left:0}.w-container-widget.w-container-widget-expand{width:800px}#w-widget-content .ant-modal-mask,#w-widget-content .ant-modal-wrap{position:absolute}.w-widget-content-container{position:relative;height:100%;background-color:var(--component-background, #fff);overflow:hidden}.w-widget-content-container-mobile,.w-widget-content-container-sf-mobile{height:calc(100dvh - 120px)}.w-wrapper-body{overflow-y:auto;height:calc(100dvh - 300px);padding:24px 12px;position:relative}.w-wrapper-body-sf{height:calc(100dvh - 260px)}.w-wrapper-body-sf-mobile{height:calc(100dvh - 190px)}.w-wrapper-body-mobile{height:calc(100dvh - 12rem)}.w-widget-tab-footer-container{width:100%;background-color:var(--component-background, #fff);border-radius:0 0 8px 8px}.w-widget-tab-footer-container .ant-tabs-nav{width:100%!important;margin:0}.w-widget-tab-footer-container .ant-tabs-nav>div:nth-of-type(1){display:unset!important;width:100%!important}.w-widget-tab-footer-container .ant-tabs-tab{display:block;flex:1;text-align:center}.w-widget-tab-footer-container .ant-tabs-nav-operations{display:none!important}.w-header-container{display:flex;justify-content:space-between;padding:0 15px;border-radius:8px 8px 0 0;align-items:center;background-color:var(--primary-color, #395ebc);color:#fff}.w-header-text{display:flex;flex-direction:column;gap:8px;padding:12px 0}.w-header-title{font-size:14px;font-weight:600;margin:0!important;color:#fff}.w-header-subtitle{font-size:12px;color:#fff}.w-header-action{display:flex;gap:12px}.w-widget-content-container .ant-notification{position:absolute!important}.w-widget-content-container .w-notification-content{width:300px!important}
@@ -10,7 +10,7 @@ import cs from "@ant-design/icons";
10
10
  import { Pie as is } from "@ant-design/charts";
11
11
  import ke from "crypto-js";
12
12
  import { Picker as ls } from "emoji-mart";
13
- var Je = { exports: {} }, pe = {};
13
+ var Je = { exports: {} }, _e = {};
14
14
  /*
15
15
  object-assign
16
16
  (c) Sindre Sorhus
@@ -72,12 +72,12 @@ function nt() {
72
72
  */
73
73
  var zn;
74
74
  function as() {
75
- if (zn) return pe;
75
+ if (zn) return _e;
76
76
  zn = 1, nt();
77
77
  var e = bn, t = 60103;
78
- if (pe.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
78
+ if (_e.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
79
79
  var r = Symbol.for;
80
- t = r("react.element"), pe.Fragment = r("react.fragment");
80
+ t = r("react.element"), _e.Fragment = r("react.fragment");
81
81
  }
82
82
  var s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = Object.prototype.hasOwnProperty, i = { key: !0, ref: !0, __self: !0, __source: !0 };
83
83
  function o(d, c, u) {
@@ -87,7 +87,7 @@ function as() {
87
87
  if (d && d.defaultProps) for (f in c = d.defaultProps, c) x[f] === void 0 && (x[f] = c[f]);
88
88
  return { $$typeof: t, type: d, key: g, ref: m, props: x, _owner: s.current };
89
89
  }
90
- return pe.jsx = o, pe.jsxs = o, pe;
90
+ return _e.jsx = o, _e.jsxs = o, _e;
91
91
  }
92
92
  var an = {};
93
93
  /** @license React v17.0.2
@@ -104,10 +104,10 @@ function ds() {
104
104
  process.env.NODE_ENV !== "production" && function() {
105
105
  var t = bn, r = nt(), s = 60103, l = 60106;
106
106
  e.Fragment = 60107;
107
- var i = 60108, o = 60114, d = 60109, c = 60110, u = 60112, f = 60113, x = 60120, g = 60115, m = 60116, T = 60121, w = 60122, _ = 60117, j = 60129, v = 60131;
107
+ var i = 60108, o = 60114, d = 60109, c = 60110, u = 60112, f = 60113, x = 60120, g = 60115, m = 60116, T = 60121, w = 60122, p = 60117, j = 60129, v = 60131;
108
108
  if (typeof Symbol == "function" && Symbol.for) {
109
109
  var h = Symbol.for;
110
- s = h("react.element"), l = h("react.portal"), e.Fragment = h("react.fragment"), i = h("react.strict_mode"), o = h("react.profiler"), d = h("react.provider"), c = h("react.context"), u = h("react.forward_ref"), f = h("react.suspense"), x = h("react.suspense_list"), g = h("react.memo"), m = h("react.lazy"), T = h("react.block"), w = h("react.server.block"), _ = h("react.fundamental"), h("react.scope"), h("react.opaque.id"), j = h("react.debug_trace_mode"), h("react.offscreen"), v = h("react.legacy_hidden");
110
+ s = h("react.element"), l = h("react.portal"), e.Fragment = h("react.fragment"), i = h("react.strict_mode"), o = h("react.profiler"), d = h("react.provider"), c = h("react.context"), u = h("react.forward_ref"), f = h("react.suspense"), x = h("react.suspense_list"), g = h("react.memo"), m = h("react.lazy"), T = h("react.block"), w = h("react.server.block"), p = h("react.fundamental"), h("react.scope"), h("react.opaque.id"), j = h("react.debug_trace_mode"), h("react.offscreen"), v = h("react.legacy_hidden");
111
111
  }
112
112
  var b = typeof Symbol == "function" && Symbol.iterator, E = "@@iterator";
113
113
  function C(a) {
@@ -136,7 +136,7 @@ function ds() {
136
136
  }
137
137
  var B = !1;
138
138
  function M(a) {
139
- return !!(typeof a == "string" || typeof a == "function" || a === e.Fragment || a === o || a === j || a === i || a === f || a === x || a === v || B || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === g || a.$$typeof === d || a.$$typeof === c || a.$$typeof === u || a.$$typeof === _ || a.$$typeof === T || a[0] === w));
139
+ return !!(typeof a == "string" || typeof a == "function" || a === e.Fragment || a === o || a === j || a === i || a === f || a === x || a === v || B || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === g || a.$$typeof === d || a.$$typeof === c || a.$$typeof === u || a.$$typeof === p || a.$$typeof === T || a[0] === w));
140
140
  }
141
141
  function L(a, y, A) {
142
142
  var N = y.displayName || y.name || "";
@@ -272,7 +272,7 @@ function ds() {
272
272
  var jt = typeof WeakMap == "function" ? WeakMap : Map;
273
273
  Ye = new jt();
274
274
  }
275
- function _n(a, y) {
275
+ function pn(a, y) {
276
276
  if (!a || nn)
277
277
  return "";
278
278
  {
@@ -344,7 +344,7 @@ function ds() {
344
344
  return typeof a == "function" && Ye.set(a, Bn), Bn;
345
345
  }
346
346
  function An(a, y, A) {
347
- return _n(a, !1);
347
+ return pn(a, !1);
348
348
  }
349
349
  function wt(a) {
350
350
  var y = a.prototype;
@@ -354,7 +354,7 @@ function ds() {
354
354
  if (a == null)
355
355
  return "";
356
356
  if (typeof a == "function")
357
- return _n(a, wt(a));
357
+ return pn(a, wt(a));
358
358
  if (typeof a == "string")
359
359
  return ze(a);
360
360
  switch (a) {
@@ -408,13 +408,13 @@ function ds() {
408
408
  }
409
409
  }
410
410
  }
411
- var Rn = k.ReactCurrentOwner, tn = Object.prototype.hasOwnProperty, pt = {
411
+ var Rn = k.ReactCurrentOwner, tn = Object.prototype.hasOwnProperty, _t = {
412
412
  key: !0,
413
413
  ref: !0,
414
414
  __self: !0,
415
415
  __source: !0
416
416
  }, On, Dn;
417
- function _t(a) {
417
+ function pt(a) {
418
418
  if (tn.call(a, "ref")) {
419
419
  var y = Object.getOwnPropertyDescriptor(a, "ref").get;
420
420
  if (y && y.isReactWarning)
@@ -487,9 +487,9 @@ function ds() {
487
487
  function Dt(a, y, A, N, Z) {
488
488
  {
489
489
  var Q, V = {}, U = null, re = null;
490
- A !== void 0 && (U = "" + A), At(y) && (U = "" + y.key), _t(y) && (re = y.ref, St(y, Z));
490
+ A !== void 0 && (U = "" + A), At(y) && (U = "" + y.key), pt(y) && (re = y.ref, St(y, Z));
491
491
  for (Q in y)
492
- tn.call(y, Q) && !pt.hasOwnProperty(Q) && (V[Q] = y[Q]);
492
+ tn.call(y, Q) && !_t.hasOwnProperty(Q) && (V[Q] = y[Q]);
493
493
  if (a && a.defaultProps) {
494
494
  var ne = a.defaultProps;
495
495
  for (Q in ne)
@@ -658,7 +658,7 @@ function us() {
658
658
  return Kn || (Kn = 1, process.env.NODE_ENV === "production" ? Je.exports = as() : Je.exports = ds()), Je.exports;
659
659
  }
660
660
  var n = us();
661
- const fs = "2.0.0-alpha.21", tt = "chat_session", xs = "user_uttered", gs = "bot_uttered", ms = "ehelp_bot_uttered", Cs = "https://sfchatbot.dataon.com", bs = [
661
+ const fs = "2.0.0", tt = "chat_session", xs = "user_uttered", gs = "bot_uttered", ms = "ehelp_bot_uttered", Cs = "https://sfchatbot.dataon.com", bs = [
662
662
  {
663
663
  label: "Didn’t address my question",
664
664
  value: "Didn’t address my question"
@@ -703,7 +703,7 @@ const fs = "2.0.0-alpha.21", tt = "chat_session", xs = "user_uttered", gs = "bot
703
703
  ".xcf"
704
704
  ], un = "w-widget-content-container", fn = "w-ticket-detail-content-container", Es = "w-wrapper-body", Ts = "w-wrapper-body-helpdesk", He = "w-header", xn = {
705
705
  FADE_IN: "w-fade-in-animate"
706
- }, ys = "https://placehold.co/600x400?text=No+Image", Ie = 3, js = "GoHRDev2025WorkPlazeDataOnDotCom", _e = "(Helpdesk Widget Chatbot)", ws = (e) => JSON.parse((e == null ? void 0 : e.replaceAll("/get_started", "")) || "{}"), st = (e) => {
706
+ }, ys = "https://placehold.co/600x400?text=No+Image", Ie = 3, js = "GoHRDev2025WorkPlazeDataOnDotCom", pe = "(Helpdesk Widget Chatbot)", ws = (e) => JSON.parse((e == null ? void 0 : e.replaceAll("/get_started", "")) || "{}"), st = (e) => {
707
707
  var t;
708
708
  try {
709
709
  return (t = new URL(e)) == null ? void 0 : t.host;
@@ -757,7 +757,7 @@ const fs = "2.0.0-alpha.21", tt = "chat_session", xs = "user_uttered", gs = "bot
757
757
  ];
758
758
  })
759
759
  ).values()
760
- ] : [], ps = (e = []) => {
760
+ ] : [], _s = (e = []) => {
761
761
  const t = {}, r = [], s = [];
762
762
  e == null || e.forEach((i) => {
763
763
  var o;
@@ -802,7 +802,7 @@ const fs = "2.0.0-alpha.21", tt = "chat_session", xs = "user_uttered", gs = "bot
802
802
  }, ot = () => {
803
803
  const e = localStorage == null ? void 0 : localStorage.getItem(tt);
804
804
  return JSON.parse(e || "{}");
805
- }, _s = (e = "") => {
805
+ }, ps = (e = "") => {
806
806
  var t;
807
807
  try {
808
808
  const r = new URL(e);
@@ -884,7 +884,7 @@ const Ce = (e = ".w-wrapper-body") => {
884
884
  modelName: u,
885
885
  isSF: f
886
886
  }) => {
887
- const [x, g] = D(!1), [m, T] = D("va"), [w, _] = D(!1), [j, v] = D({}), [h, b] = D(!1), [E, C] = D(!1), k = K(!1), S = R(() => ({
887
+ const [x, g] = D(!1), [m, T] = D("va"), [w, p] = D(!1), [j, v] = D({}), [h, b] = D(!1), [E, C] = D(!1), k = K(!1), S = R(() => ({
888
888
  getStartedPayload: t,
889
889
  socketURL: r,
890
890
  socketPath: s,
@@ -923,7 +923,7 @@ const Ce = (e = ".w-wrapper-body") => {
923
923
  activeTab: m,
924
924
  setActiveTab: T,
925
925
  isExpand: w,
926
- setExpand: _,
926
+ setExpand: p,
927
927
  setObjInitPayload: v,
928
928
  parsedJWT: F,
929
929
  widgetProps: S,
@@ -982,7 +982,7 @@ const Ce = (e = ".w-wrapper-body") => {
982
982
  objInitPayload: m,
983
983
  widgetProps: T,
984
984
  setOpenWidget: w,
985
- setFirstOpenWidget: _,
985
+ setFirstOpenWidget: p,
986
986
  isFirstRenderHelpdesk: j
987
987
  } = q(), v = K(null), h = K(""), b = K(""), E = (L) => {
988
988
  var $;
@@ -999,7 +999,7 @@ const Ce = (e = ".w-wrapper-body") => {
999
999
  sender: "response"
1000
1000
  }
1001
1001
  ];
1002
- return ps(z);
1002
+ return _s(z);
1003
1003
  });
1004
1004
  }
1005
1005
  l(!1), o(!1), Ce();
@@ -1014,7 +1014,7 @@ const Ce = (e = ".w-wrapper-body") => {
1014
1014
  }), (I = v == null ? void 0 : v.current) == null || I.on(gs, E), (J = v == null ? void 0 : v.current) == null || J.on(ms, (z) => {
1015
1015
  const W = JSON.parse(z || "{}");
1016
1016
  le(W, "iswidget") && g(W == null ? void 0 : W.iswidget);
1017
- }), u || f(!0), _(!1);
1017
+ }), u || f(!0), p(!1);
1018
1018
  }, k = ({
1019
1019
  msg: L,
1020
1020
  additionalConfig: H = {},
@@ -1033,7 +1033,7 @@ const Ce = (e = ".w-wrapper-body") => {
1033
1033
  var $, I;
1034
1034
  v.current && (($ = v == null ? void 0 : v.current) == null || $.off(), (I = v == null ? void 0 : v.current) == null || I.disconnect(), v.current = null), j.current = !1;
1035
1035
  const H = ts(
1036
- `${_s(T == null ? void 0 : T.socketURL)}://${st(
1036
+ `${ps(T == null ? void 0 : T.socketURL)}://${st(
1037
1037
  T == null ? void 0 : T.socketURL
1038
1038
  )}`,
1039
1039
  {
@@ -1372,7 +1372,7 @@ const Ce = (e = ".w-wrapper-body") => {
1372
1372
  boxShadow: "inset 5px 0 0 #f7d87c",
1373
1373
  zIndex: "0"
1374
1374
  }
1375
- }, Ms = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(), p = (e = "", t) => {
1375
+ }, Ms = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(), _ = (e = "", t) => {
1376
1376
  var o;
1377
1377
  const { langDatas: r } = Rs(), s = localStorage == null ? void 0 : localStorage.getItem("show_text_id"), l = Ms(String(e)), i = (r == null ? void 0 : r[l == null ? void 0 : l.toUpperCase()]) || t;
1378
1378
  return ((o = Object.keys(r || {})) == null ? void 0 : o.length) > 0 ? s ? `WPUI_${l}` : i : t;
@@ -1468,10 +1468,10 @@ const Ce = (e = ".w-wrapper-body") => {
1468
1468
  }
1469
1469
  ) }) }) });
1470
1470
  }, Hs = ({ children: e }) => {
1471
- const t = p(
1471
+ const t = _(
1472
1472
  "OpenDetailTable",
1473
1473
  "Open Detail Table"
1474
- ), r = p("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: l } = q(), [i, o] = D(!1), d = {
1474
+ ), r = _("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: l } = q(), [i, o] = D(!1), d = {
1475
1475
  table: ({ ...c }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1476
1476
  /* @__PURE__ */ n.jsx(Zn, { props: c }),
1477
1477
  /* @__PURE__ */ n.jsx(
@@ -1522,12 +1522,12 @@ const Ce = (e = ".w-wrapper-body") => {
1522
1522
  ) : /* @__PURE__ */ n.jsx(G.Text, { code: !0, children: c == null ? void 0 : c.children });
1523
1523
  },
1524
1524
  a: ({ ...c }) => {
1525
- var m, T, w, _;
1525
+ var m, T, w, p;
1526
1526
  const u = c == null ? void 0 : c.href, f = (m = c == null ? void 0 : c.children) == null ? void 0 : m[0], x = Qn(u), g = Qn(l == null ? void 0 : l.uriBackend);
1527
1527
  if (x && g) {
1528
1528
  const j = (T = gn(u)) == null ? void 0 : T.origin, v = (w = gn(l == null ? void 0 : l.uriBackend)) == null ? void 0 : w.origin;
1529
1529
  if ((j == null ? void 0 : j.toLowerCase()) === (v == null ? void 0 : v.toLowerCase())) {
1530
- const h = (_ = gn(u)) == null ? void 0 : _.pathname;
1530
+ const h = (p = gn(u)) == null ? void 0 : p.pathname;
1531
1531
  return /* @__PURE__ */ n.jsx(
1532
1532
  "span",
1533
1533
  {
@@ -1873,16 +1873,16 @@ const Ce = (e = ".w-wrapper-body") => {
1873
1873
  }
1874
1874
  );
1875
1875
  }, rr = ({ ...e }) => {
1876
- const t = p(
1876
+ const t = _(
1877
1877
  "WeLoveToHearAboutYourExperienceWithTheSunfishChatbot",
1878
1878
  "We'd love to hear about your experience with the Sunfish chatbot"
1879
- ), r = p(
1879
+ ), r = _(
1880
1880
  "ShareAnyCommentsOrSuggestionsToHelpUsImprove",
1881
1881
  "Share any comments or suggestions to help us improve"
1882
- ), s = p("Submit", "Submit"), l = p(
1882
+ ), s = _("Submit", "Submit"), l = _(
1883
1883
  "ThankFeedback",
1884
1884
  "Thank You for your feedback"
1885
- ), i = p(
1885
+ ), i = _(
1886
1886
  "AdditionalFeedback",
1887
1887
  "Additional Feedback"
1888
1888
  ), [o] = oe.useForm(), [d, c] = D(!1), [u, f] = D(""), { setChats: x } = fe(), { objInitPayload: g } = q(), { activeTab: m } = be(), T = R(() => {
@@ -1893,7 +1893,7 @@ const Ce = (e = ".w-wrapper-body") => {
1893
1893
  var h;
1894
1894
  const v = le(e, "feedback") ? (e == null ? void 0 : e.feedback) === "dislike" || (e == null ? void 0 : e.feedback) === "" : !0;
1895
1895
  return typeof (e == null ? void 0 : e.text_thumbsdown_link) == "string" && ((h = e == null ? void 0 : e.text_thumbsdown_link) == null ? void 0 : h.trim()) !== "" && v;
1896
- }, [e]), _ = R(() => {
1896
+ }, [e]), p = R(() => {
1897
1897
  if (g != null && g.uriBackend)
1898
1898
  try {
1899
1899
  return new URL(g.uriBackend).origin;
@@ -1928,7 +1928,7 @@ const Ce = (e = ".w-wrapper-body") => {
1928
1928
  "company-id": `${C}`,
1929
1929
  uriBackend: `${k}`,
1930
1930
  uriBackendEnt: `${S}`,
1931
- "custom-origin": `${_}`,
1931
+ "custom-origin": `${p}`,
1932
1932
  "Acc-Name": `${E.toUpperCase()}`,
1933
1933
  Language: `${F}`
1934
1934
  }
@@ -2031,7 +2031,7 @@ const Ce = (e = ".w-wrapper-body") => {
2031
2031
  position: r = "left",
2032
2032
  ...s
2033
2033
  }) => {
2034
- const l = ks(), { chats: i, onSendMsg: o, setChats: d, loadingRegenerate: c, currRegenerateId: u } = fe(), f = R(() => s == null ? void 0 : s.sender, [s]), x = R(() => i == null ? void 0 : i.filter((_) => (_ == null ? void 0 : _.sender) === "client"), [i]), g = R(() => t && f === "response" && (x == null ? void 0 : x.length) > 0 && (s == null ? void 0 : s.indexChat) === (i == null ? void 0 : i.length) - 1, [f, x, i, s == null ? void 0 : s.indexChat, t]), m = R(() => {
2034
+ const l = ks(), { chats: i, onSendMsg: o, setChats: d, loadingRegenerate: c, currRegenerateId: u } = fe(), f = R(() => s == null ? void 0 : s.sender, [s]), x = R(() => i == null ? void 0 : i.filter((p) => (p == null ? void 0 : p.sender) === "client"), [i]), g = R(() => t && f === "response" && (x == null ? void 0 : x.length) > 0 && (s == null ? void 0 : s.indexChat) === (i == null ? void 0 : i.length) - 1, [f, x, i, s == null ? void 0 : s.indexChat, t]), m = R(() => {
2035
2035
  switch (r) {
2036
2036
  case "left":
2037
2037
  return "flex-start";
@@ -2041,7 +2041,7 @@ const Ce = (e = ".w-wrapper-body") => {
2041
2041
  return "flex-end";
2042
2042
  }
2043
2043
  }, [r]), T = R(() => e && (s == null ? void 0 : s.text_FeedbackIcons) === "hidup", [s, e]), w = () => {
2044
- const _ = x == null ? void 0 : x[(x == null ? void 0 : x.length) - 1], j = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1];
2044
+ const p = x == null ? void 0 : x[(x == null ? void 0 : x.length) - 1], j = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1];
2045
2045
  d(
2046
2046
  (v = []) => v == null ? void 0 : v.map((h, b) => b === (v == null ? void 0 : v.length) - 1 && (h == null ? void 0 : h.sender) === "response" ? {
2047
2047
  ...h,
@@ -2049,7 +2049,7 @@ const Ce = (e = ".w-wrapper-body") => {
2049
2049
  // adjust with response
2050
2050
  } : h)
2051
2051
  ), u.current = (j == null ? void 0 : j.generated_id) ?? l, o({
2052
- msg: _ == null ? void 0 : _.text,
2052
+ msg: p == null ? void 0 : p.text,
2053
2053
  additionalConfig: {
2054
2054
  generate_id: (j == null ? void 0 : j.generated_id) ?? l
2055
2055
  },
@@ -2122,7 +2122,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2122
2122
  /* @__PURE__ */ n.jsx(Ee, { src: Ze, nameFallback: e == null ? void 0 : e.title }),
2123
2123
  /* @__PURE__ */ n.jsx(gt, {})
2124
2124
  ] });
2125
- }, pn = O(dr), ur = ({ src: e, name: t }) => /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2125
+ }, _n = O(dr), ur = ({ src: e, name: t }) => /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2126
2126
  /* @__PURE__ */ n.jsx(Ee, { src: e, preview: !1, nameFallback: t }),
2127
2127
  /* @__PURE__ */ n.jsx(G.Text, { children: t })
2128
2128
  ] }), Ue = O(ur), fr = ({ ...e }) => {
@@ -2133,11 +2133,11 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2133
2133
  }, [c, e, l.current]);
2134
2134
  return X(() => {
2135
2135
  !s && (c == null ? void 0 : c.length) > 0 && (r(c == null ? void 0 : c.length), Ce());
2136
- }, [s]), s && u ? /* @__PURE__ */ n.jsx(pn, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2136
+ }, [s]), s && u ? /* @__PURE__ */ n.jsx(_n, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2137
2137
  d === "response" && /* @__PURE__ */ n.jsx(Ue, { name: o == null ? void 0 : o.title, src: Ze }),
2138
2138
  /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 8 }, children: c == null ? void 0 : c.map((g, m) => {
2139
- var _;
2140
- const T = m === ((_ = e == null ? void 0 : e.chats) == null ? void 0 : _.length) - 1, w = t === m + 1;
2139
+ var p;
2140
+ const T = m === ((p = e == null ? void 0 : e.chats) == null ? void 0 : p.length) - 1, w = t === m + 1;
2141
2141
  return /* @__PURE__ */ n.jsxs(
2142
2142
  "div",
2143
2143
  {
@@ -2245,7 +2245,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2245
2245
  }, We = O(gr), mr = ({ showResponseInfo: e = !0, ...t }) => {
2246
2246
  var d;
2247
2247
  const { loadingRegenerate: r, chats: s } = fe(), { widgetProps: l } = q(), i = R(() => (s == null ? void 0 : s.length) - 1 === (t == null ? void 0 : t.indexChat), [s]), o = R(() => t == null ? void 0 : t.sender, [t]);
2248
- return ((d = t == null ? void 0 : t.chats) == null ? void 0 : d.length) > 0 ? /* @__PURE__ */ n.jsx(xr, { ...t }) : r && i ? /* @__PURE__ */ n.jsx(pn, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2248
+ return ((d = t == null ? void 0 : t.chats) == null ? void 0 : d.length) > 0 ? /* @__PURE__ */ n.jsx(xr, { ...t }) : r && i ? /* @__PURE__ */ n.jsx(_n, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2249
2249
  o === "response" && e && /* @__PURE__ */ n.jsx(Ue, { name: l == null ? void 0 : l.title, src: Ze }),
2250
2250
  /* @__PURE__ */ n.jsxs("div", { className: `w-bubble-chat ${`w-${o}`}`, children: [
2251
2251
  /* @__PURE__ */ n.jsx(ft, { children: t == null ? void 0 : t.text }),
@@ -2254,10 +2254,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2254
2254
  /* @__PURE__ */ n.jsx(Cn, { ...t })
2255
2255
  ] });
2256
2256
  }, $e = O(mr), Cr = () => {
2257
- const e = p(
2257
+ const e = _(
2258
2258
  "PleaseUploadFile",
2259
2259
  "Please upload specify file that needed to complete your request"
2260
- ), t = p("ClickToUpload", "Click to upload"), r = p(
2260
+ ), t = _("ClickToUpload", "Click to upload"), r = _(
2261
2261
  "ContinueWithoutUpload",
2262
2262
  "Continue without upload"
2263
2263
  ), { onSendMsg: s, setFile: l } = fe(), i = () => {
@@ -2304,28 +2304,28 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2304
2304
  );
2305
2305
  }, br = O(Cr), vr = () => {
2306
2306
  const [e, t] = D(!1), [r, s] = D(!1), [l, i] = D(!1), [o, d] = D(3), [c, u] = D(!1), [f, x] = D(""), { widgetProps: g } = q(), { onSendMsg: m, chats: T } = fe(), { onSubmitPYPwd: w = () => {
2307
- }, onCheckPYAccess: _ = () => {
2308
- } } = (g == null ? void 0 : g.onPayslipFn) || {}, j = p(
2307
+ }, onCheckPYAccess: p = () => {
2308
+ } } = (g == null ? void 0 : g.onPayslipFn) || {}, j = _(
2309
2309
  "ProvidePasswordPayslip",
2310
2310
  "Please provide your password account to access the download"
2311
- ), v = p("Cancel", "Cancel"), h = p("Submit", "Submit"), b = p("Password", "Password"), E = p("IsRequired", "Is Required"), C = p(
2311
+ ), v = _("Cancel", "Cancel"), h = _("Submit", "Submit"), b = _("Password", "Password"), E = _("IsRequired", "Is Required"), C = _(
2312
2312
  "PrepareTheFiles",
2313
2313
  "Prepare the files"
2314
- ), k = p(
2314
+ ), k = _(
2315
2315
  "AttemptPasswordExceeded",
2316
2316
  "Your attempt to enter the password exceeded the limit"
2317
- ), S = p(
2317
+ ), S = _(
2318
2318
  "VerifyAccessPayslip",
2319
2319
  "Please wait, verifying access to your payslip"
2320
- ), F = p(
2320
+ ), F = _(
2321
2321
  "WrongPwdPayslip",
2322
2322
  "The password you entered is incorrect. Please try again or contact support if you need assistance"
2323
- ), B = p(
2323
+ ), B = _(
2324
2324
  "SessionExpired",
2325
2325
  "Session expired. Please log in again to continue"
2326
2326
  ), [M] = oe.useForm(), L = () => {
2327
2327
  var I, J, z;
2328
- i(!0), u(!0), (z = (J = (I = _()) == null ? void 0 : I.then((W) => {
2328
+ i(!0), u(!0), (z = (J = (I = p()) == null ? void 0 : I.then((W) => {
2329
2329
  var ee, de;
2330
2330
  const te = (de = (ee = W == null ? void 0 : W.data) == null ? void 0 : ee.DATA) == null ? void 0 : de.RESULT;
2331
2331
  te && m({ msg: "Valid" }), t(te), x("");
@@ -2426,7 +2426,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2426
2426
  ) : null;
2427
2427
  }, hr = O(vr), Er = ({ ...e }) => {
2428
2428
  var d;
2429
- const { objInitPayload: t } = q(), [r, s] = D(!1), l = p("Error", "Error"), i = R(() => rt(t == null ? void 0 : t.access_token), [t]), o = () => {
2429
+ const { objInitPayload: t } = q(), [r, s] = D(!1), l = _("Error", "Error"), i = R(() => rt(t == null ? void 0 : t.access_token), [t]), o = () => {
2430
2430
  var u, f, x, g;
2431
2431
  s(!0);
2432
2432
  const c = e == null ? void 0 : e.attachment;
@@ -2444,12 +2444,12 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2444
2444
  responseType: "blob"
2445
2445
  })) == null ? void 0 : f.then((m) => {
2446
2446
  var v;
2447
- const T = (v = c == null ? void 0 : c.body) == null ? void 0 : v.media, w = `${c == null ? void 0 : c.filename}.${T}`, _ = new Blob([m == null ? void 0 : m.data]), j = URL == null ? void 0 : URL.createObjectURL(_);
2447
+ const T = (v = c == null ? void 0 : c.body) == null ? void 0 : v.media, w = `${c == null ? void 0 : c.filename}.${T}`, p = new Blob([m == null ? void 0 : m.data]), j = URL == null ? void 0 : URL.createObjectURL(p);
2448
2448
  Tn({ downloadURL: j, fileName: w }), URL.revokeObjectURL(j);
2449
2449
  })) == null ? void 0 : x.catch((m) => {
2450
- var w, _, j;
2450
+ var w, p, j;
2451
2451
  const T = m == null ? void 0 : m.message;
2452
- (w = ie) == null || w.destroy(), (_ = ie) == null || _.config({
2452
+ (w = ie) == null || w.destroy(), (p = ie) == null || p.config({
2453
2453
  getContainer: () => document.querySelector(".w-widget-content-container"),
2454
2454
  top: 28,
2455
2455
  placement: "top"
@@ -2488,7 +2488,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2488
2488
  }
2489
2489
  );
2490
2490
  }, Tr = O(Er), yr = ({ ...e }) => {
2491
- const t = K(), r = p("DownloadChart", "Download Chart"), s = R(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), l = R(() => {
2491
+ const t = K(), r = _("DownloadChart", "Download Chart"), s = R(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), l = R(() => {
2492
2492
  var o;
2493
2493
  return (o = s == null ? void 0 : s.data) == null ? void 0 : o.map((d, c) => {
2494
2494
  var u, f;
@@ -2553,7 +2553,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2553
2553
  default:
2554
2554
  return null;
2555
2555
  }
2556
- }, kr = O(wr), pr = () => {
2556
+ }, kr = O(wr), _r = () => {
2557
2557
  const { isOpenWidget: e, widgetProps: t } = q(), { chats: r, isWaitResponse: s } = fe(), { activeTab: l } = be();
2558
2558
  return X(() => {
2559
2559
  Ce();
@@ -2572,11 +2572,11 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2572
2572
  /* @__PURE__ */ n.jsx(kr, { indexChat: o, ...i })
2573
2573
  ] }, o);
2574
2574
  }) }),
2575
- s && /* @__PURE__ */ n.jsx(pn, {})
2575
+ s && /* @__PURE__ */ n.jsx(_n, {})
2576
2576
  ] }) : null;
2577
- }, _r = O(pr), Ar = () => {
2577
+ }, pr = O(_r), Ar = () => {
2578
2578
  var h;
2579
- const e = p(
2579
+ const e = _(
2580
2580
  "ContinueWithoutUpload",
2581
2581
  "Continue without Upload"
2582
2582
  ), {
@@ -2592,7 +2592,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2592
2592
  var E;
2593
2593
  const b = d == null ? void 0 : d[(d == null ? void 0 : d.length) - 1];
2594
2594
  return (b == null ? void 0 : b.sender) === "response" && ((E = b == null ? void 0 : b.attachment) == null ? void 0 : E.type) === "fileuploader";
2595
- }, [d]), x = K(), [g, m] = D(!1), [T, w] = D(!1), _ = R(() => s || !T, [T, s]), j = () => {
2595
+ }, [d]), x = K(), [g, m] = D(!1), [T, w] = D(!1), p = R(() => s || !T, [T, s]), j = () => {
2596
2596
  var C, k, S, F;
2597
2597
  const b = (S = (k = (C = x == null ? void 0 : x.current) == null ? void 0 : C.resizableTextArea) == null ? void 0 : k.textArea) == null ? void 0 : S.value;
2598
2598
  if (!(b != null && b.trim()) || s) return;
@@ -2676,8 +2676,8 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2676
2676
  ) : /* @__PURE__ */ n.jsx(
2677
2677
  Y,
2678
2678
  {
2679
- className: `w-send-btn ${_ ? "w-send-btn-disabled" : ""}`,
2680
- disabled: _,
2679
+ className: `w-send-btn ${p ? "w-send-btn-disabled" : ""}`,
2680
+ disabled: p,
2681
2681
  style: { backgroundColor: "var(--primary-color, #395ebc)" },
2682
2682
  icon: /* @__PURE__ */ n.jsx(P, { type: "send" }),
2683
2683
  shape: "circle",
@@ -2686,7 +2686,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2686
2686
  )
2687
2687
  ] });
2688
2688
  }, Sr = O(Ar), Lr = ({ taskStatus: e }) => {
2689
- const t = p("InProgress", "In Progress"), r = p("New", "New"), s = p("Closed", "Closed"), l = p("Done", "Done"), i = p("HDCancelled", "Cancelled"), o = {
2689
+ const t = _("InProgress", "In Progress"), r = _("New", "New"), s = _("Closed", "Closed"), l = _("Done", "Done"), i = _("HDCancelled", "Cancelled"), o = {
2690
2690
  "In Progress": t,
2691
2691
  Open: r,
2692
2692
  New: r,
@@ -2816,7 +2816,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2816
2816
  headers: f,
2817
2817
  ...x
2818
2818
  }) => {
2819
- var w, _, j, v, h, b;
2819
+ var w, p, j, v, h, b;
2820
2820
  const g = {
2821
2821
  url: d || `${t == null ? void 0 : t.uriBackendHRMGO}${c}`,
2822
2822
  ...e.current && {
@@ -2829,7 +2829,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2829
2829
  },
2830
2830
  method: u,
2831
2831
  ...x
2832
- }, m = (_ = Oe) == null ? void 0 : _.create(g);
2832
+ }, m = (p = Oe) == null ? void 0 : p.create(g);
2833
2833
  return (v = (j = m == null ? void 0 : m.interceptors) == null ? void 0 : j.request) == null || v.use(
2834
2834
  (E) => (t != null && t.access_token && (E.headers.Authorization = `Bearer ${t == null ? void 0 : t.access_token}`), E),
2835
2835
  (E) => {
@@ -2854,8 +2854,8 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2854
2854
  }, X(() => () => i.abort(), []), i;
2855
2855
  }, bt = Te({}), ve = () => ye(bt), Dr = ({ children: e }) => {
2856
2856
  const t = en(), [r, s] = D([]), [l, i] = D(""), [o, d] = D(!1), [c, u] = D(!0), [f, x] = D(0), g = (m) => {
2857
- var T, w, _, j;
2858
- u(!0), (j = (_ = t({
2857
+ var T, w, p, j;
2858
+ u(!0), (j = (p = t({
2859
2859
  endpoint: "/helpdesk/myticket/ticket-list",
2860
2860
  method: "POST",
2861
2861
  data: {
@@ -2876,7 +2876,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2876
2876
  ORDER: "DESC"
2877
2877
  }
2878
2878
  }
2879
- })) == null ? void 0 : _.then((v) => {
2879
+ })) == null ? void 0 : p.then((v) => {
2880
2880
  var h, b, E;
2881
2881
  (h = v == null ? void 0 : v.data) != null && h.DATA && s((E = (b = v == null ? void 0 : v.data) == null ? void 0 : b.DATA) == null ? void 0 : E.LIST);
2882
2882
  })) == null || j.finally(() => {
@@ -2903,7 +2903,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2903
2903
  }
2904
2904
  );
2905
2905
  }, Nr = () => {
2906
- const e = p("SubjectSearch", "Subject Search"), t = p("AdvanceFilter", "Advance Filter"), r = K(null), { getListTicket: s, setOpenFilter: l, loadingListTicket: i, countFilters: o } = ve();
2906
+ const e = _("SubjectSearch", "Subject Search"), t = _("AdvanceFilter", "Advance Filter"), r = K(null), { getListTicket: s, setOpenFilter: l, loadingListTicket: i, countFilters: o } = ve();
2907
2907
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 12 }, children: [
2908
2908
  /* @__PURE__ */ n.jsx(
2909
2909
  Be,
@@ -2931,15 +2931,15 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2931
2931
  ) }) })
2932
2932
  ] }) });
2933
2933
  }, Mr = O(Nr), vt = Te({}), he = () => ye(vt), Fr = ({ children: e }) => {
2934
- const t = K(null), r = K(0), s = K(!1), l = K(null), [i, o] = D([]), [d, c] = D(0), [u, f] = D(!1), { objInitPayload: x, parsedJWT: g, isFirstRenderHelpdesk: m, setShowReadyWSHD: T } = q(), w = Ct(), _ = (b) => {
2934
+ const t = K(null), r = K(0), s = K(!1), l = K(null), [i, o] = D([]), [d, c] = D(0), [u, f] = D(!1), { objInitPayload: x, parsedJWT: g, isFirstRenderHelpdesk: m, setShowReadyWSHD: T } = q(), w = Ct(), p = (b) => {
2935
2935
  const E = new WebSocket(b);
2936
2936
  E.onopen = () => {
2937
2937
  s.current = !0, r.current = 0, c(0), T(!0);
2938
2938
  }, E.onerror = (C) => {
2939
- T(!1), console.error(`${_e} - WebSocket error:`, C);
2939
+ T(!1), console.error(`${pe} - WebSocket error:`, C);
2940
2940
  }, E.onclose = (C) => {
2941
2941
  console.warn(
2942
- `${_e} - WebSocket disconnected:`,
2942
+ `${pe} - WebSocket disconnected:`,
2943
2943
  C
2944
2944
  ), s.current = !1, T(!1), !(C != null && C.wasClean) && (r == null ? void 0 : r.current) < Ie && (r.current += 1, c((k) => k + 1), clearTimeout(l.current), l.current = setTimeout(j, 2e3));
2945
2945
  }, E.onmessage = v(E), t.current = E;
@@ -2955,7 +2955,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2955
2955
  } = x ?? {};
2956
2956
  if (!b || !E || !C) {
2957
2957
  console.warn(
2958
- `${_e} - Missing required WebSocket credentials.`
2958
+ `${pe} - Missing required WebSocket credentials.`
2959
2959
  );
2960
2960
  return;
2961
2961
  }
@@ -2973,14 +2973,14 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2973
2973
  );
2974
2974
  if (!I || s.current || (r == null ? void 0 : r.current) >= Ie) {
2975
2975
  console.warn(
2976
- `${_e} - Skipping WebSocket connection attempt.`
2976
+ `${pe} - Skipping WebSocket connection attempt.`
2977
2977
  );
2978
2978
  return;
2979
2979
  }
2980
- t.current && t.current.close(), _(`${B}?t=${I}`);
2980
+ t.current && t.current.close(), p(`${B}?t=${I}`);
2981
2981
  } catch (I) {
2982
2982
  console.error(
2983
- `${_e} - Failed to encrypt token:`,
2983
+ `${pe} - Failed to encrypt token:`,
2984
2984
  I
2985
2985
  );
2986
2986
  }
@@ -2999,7 +2999,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
2999
2999
  }
3000
3000
  } catch {
3001
3001
  console.error(
3002
- `${_e} - Invalid WebSocket message:`,
3002
+ `${pe} - Invalid WebSocket message:`,
3003
3003
  E.data
3004
3004
  );
3005
3005
  }
@@ -3122,7 +3122,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3122
3122
  return ((B = Object.keys(F || {})) == null ? void 0 : B.length) > 0;
3123
3123
  });
3124
3124
  return yn({ ArrObj: k, key: "EMP_ID" });
3125
- }, [s]), _ = () => {
3125
+ }, [s]), p = () => {
3126
3126
  var b, E;
3127
3127
  o(!0), (E = (b = f({
3128
3128
  endpoint: "/helpdesk/chat/list",
@@ -3179,7 +3179,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3179
3179
  (k === "RECEIVE_MESSAGE" || k === "RECEIVE_ANOTHER_MESSAGE") && v(C);
3180
3180
  }
3181
3181
  };
3182
- return X(() => (x && (_(), j()), g && x && (g == null || g.addEventListener("message", h)), () => {
3182
+ return X(() => (x && (p(), j()), g && x && (g == null || g.addEventListener("message", h)), () => {
3183
3183
  g && x && (g == null || g.removeEventListener("message", h));
3184
3184
  }), [x]), /* @__PURE__ */ n.jsx(
3185
3185
  Et.Provider,
@@ -3299,7 +3299,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3299
3299
  )
3300
3300
  ] });
3301
3301
  }, Gr = O(Vr), zr = ({ ...e }) => {
3302
- const t = p("Download", "Download"), r = R(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), s = R(() => {
3302
+ const t = _("Download", "Download"), r = R(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), s = R(() => {
3303
3303
  var c;
3304
3304
  const d = e == null ? void 0 : e.ATTACHMENT;
3305
3305
  if (d)
@@ -3408,10 +3408,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3408
3408
  encrypt: l
3409
3409
  };
3410
3410
  }, Jr = ({ ...e }) => {
3411
- const t = p("ViewFAQ", "View FAQ"), r = p(
3411
+ const t = _("ViewFAQ", "View FAQ"), r = _(
3412
3412
  "FAQUnavailable",
3413
3413
  "FAQ unavailable"
3414
- ), s = p(
3414
+ ), s = _(
3415
3415
  "ThisFAQIsUnavailable",
3416
3416
  "This FAQ is unavailable"
3417
3417
  ), { paramsEncrypt: l } = Tt(), { widgetProps: i } = q(), o = R(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), d = R(() => e == null ? void 0 : e.FAQ_ID, [e]);
@@ -3465,16 +3465,16 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3465
3465
  }
3466
3466
  }, Xr = O(Zr), Pr = () => {
3467
3467
  var T;
3468
- const [e, t] = D([]), r = p("And", "and"), s = p("IsTyping", "Is Typing"), l = p("People", "People"), { employees: i, setTypingOtherEmp: o, objTypingOtherEmp: d } = De(), { ws: c, setGetResponse: u } = he(), { parsedJWT: f } = q(), x = R(() => e == null ? void 0 : e.filter((w) => d == null ? void 0 : d[w == null ? void 0 : w.EMP_ID]), [d, e]), g = R(() => {
3469
- const w = x == null ? void 0 : x.map((_) => _ == null ? void 0 : _.FULL_NAME);
3468
+ const [e, t] = D([]), r = _("And", "and"), s = _("IsTyping", "Is Typing"), l = _("People", "People"), { employees: i, setTypingOtherEmp: o, objTypingOtherEmp: d } = De(), { ws: c, setGetResponse: u } = he(), { parsedJWT: f } = q(), x = R(() => e == null ? void 0 : e.filter((w) => d == null ? void 0 : d[w == null ? void 0 : w.EMP_ID]), [d, e]), g = R(() => {
3469
+ const w = x == null ? void 0 : x.map((p) => p == null ? void 0 : p.FULL_NAME);
3470
3470
  if ((x == null ? void 0 : x.length) > 2) {
3471
- const _ = w == null ? void 0 : w.filter((v, h) => h <= 1), j = w == null ? void 0 : w.filter((v, h) => h > 1);
3472
- return `${_ == null ? void 0 : _.join(", ")}, ${r} ${j == null ? void 0 : j.length} ${l} ${s}`;
3471
+ const p = w == null ? void 0 : w.filter((v, h) => h <= 1), j = w == null ? void 0 : w.filter((v, h) => h > 1);
3472
+ return `${p == null ? void 0 : p.join(", ")}, ${r} ${j == null ? void 0 : j.length} ${l} ${s}`;
3473
3473
  }
3474
3474
  return `${w == null ? void 0 : w.join(", ")} ${s}`;
3475
3475
  }, [e, x]), m = (w) => {
3476
3476
  if ((w == null ? void 0 : w.data) !== "PING") {
3477
- const _ = JSON.parse((w == null ? void 0 : w.data) || "{}"), { DATA: j = {}, EVENT: v = "" } = _ ?? {}, h = j == null ? void 0 : j.EMPLOYEE_ID, b = f == null ? void 0 : f.EMP_ID;
3477
+ const p = JSON.parse((w == null ? void 0 : w.data) || "{}"), { DATA: j = {}, EVENT: v = "" } = p ?? {}, h = j == null ? void 0 : j.EMPLOYEE_ID, b = f == null ? void 0 : f.EMP_ID;
3478
3478
  if (v === "TYPING") {
3479
3479
  h === b ? u(!1) : o((k) => ({
3480
3480
  ...k,
@@ -3517,7 +3517,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3517
3517
  backgroundColor: "#fde3cf",
3518
3518
  cursor: "pointer"
3519
3519
  },
3520
- children: x == null ? void 0 : x.map((w, _) => /* @__PURE__ */ n.jsx(Se, { title: w == null ? void 0 : w.FULL_NAME, children: /* @__PURE__ */ n.jsx(Ee, { src: w == null ? void 0 : w.PHOTO, nameFallback: w == null ? void 0 : w.FULL_NAME }) }, _))
3520
+ children: x == null ? void 0 : x.map((w, p) => /* @__PURE__ */ n.jsx(Se, { title: w == null ? void 0 : w.FULL_NAME, children: /* @__PURE__ */ n.jsx(Ee, { src: w == null ? void 0 : w.PHOTO, nameFallback: w == null ? void 0 : w.FULL_NAME }) }, p))
3521
3521
  }
3522
3522
  ),
3523
3523
  /* @__PURE__ */ n.jsx(G.Text, { children: g }),
@@ -3663,10 +3663,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3663
3663
  );
3664
3664
  }, co = O(oo), io = ({ setLoadingUpload: e, isLoadingUpload: t }) => {
3665
3665
  var j, v;
3666
- const r = en(), [s, l] = D({}), i = K(null), o = p(
3666
+ const r = en(), [s, l] = D({}), i = K(null), o = _(
3667
3667
  "ImageMustSmallerThan",
3668
3668
  "Image must smaller than"
3669
- ), d = p(
3669
+ ), d = _(
3670
3670
  "MaximumFileSizeExceeded",
3671
3671
  "Maximum file size exceeded"
3672
3672
  ), { onSendMsg: c } = he(), { employees: u, setChats: f, isFromSelf: x } = De(), { ticketId: g } = ve(), { activeTab: m } = be(), T = () => {
@@ -3700,7 +3700,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3700
3700
  className: "w-notification-content",
3701
3701
  duration: 3
3702
3702
  })), !1;
3703
- }, _ = (h) => {
3703
+ }, p = (h) => {
3704
3704
  var E, C;
3705
3705
  e(!0);
3706
3706
  const b = new FormData();
@@ -3753,7 +3753,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3753
3753
  fileList: [],
3754
3754
  accept: (v = (j = s == null ? void 0 : s.EXT_LIST) == null ? void 0 : j.split(",")) == null ? void 0 : v.map((h) => `.${h}`),
3755
3755
  onChange: (h) => {
3756
- _(h == null ? void 0 : h.file);
3756
+ p(h == null ? void 0 : h.file);
3757
3757
  },
3758
3758
  children: /* @__PURE__ */ n.jsx(
3759
3759
  Y,
@@ -3816,10 +3816,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3816
3816
  }
3817
3817
  );
3818
3818
  }, fo = O(uo), xo = () => {
3819
- const [e, t] = D(0), [r, s] = D(!1), l = K(null), i = K(null), o = K(!1), d = K(null), { onSendMsg: c, setGetResponse: u, isGetResponse: f } = he(), { ticketId: x } = ve(), { isActiveTabVA: g } = be(), { employees: m, setChats: T, isFromSelf: w, detailTicket: _ } = De(), j = R(() => r || !f, [r, f]), v = R(() => {
3819
+ const [e, t] = D(0), [r, s] = D(!1), l = K(null), i = K(null), o = K(!1), d = K(null), { onSendMsg: c, setGetResponse: u, isGetResponse: f } = he(), { ticketId: x } = ve(), { isActiveTabVA: g } = be(), { employees: m, setChats: T, isFromSelf: w, detailTicket: p } = De(), j = R(() => r || !f, [r, f]), v = R(() => {
3820
3820
  var C;
3821
- return ((C = _ == null ? void 0 : _.STATUS) == null ? void 0 : C.toString().toLowerCase()) === "closed";
3822
- }, [_ == null ? void 0 : _.STATUS]), h = R(() => m == null ? void 0 : m.map((C) => ({
3821
+ return ((C = p == null ? void 0 : p.STATUS) == null ? void 0 : C.toString().toLowerCase()) === "closed";
3822
+ }, [p == null ? void 0 : p.STATUS]), h = R(() => m == null ? void 0 : m.map((C) => ({
3823
3823
  ...C,
3824
3824
  label: /* @__PURE__ */ n.jsx(
3825
3825
  hn,
@@ -3962,10 +3962,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3962
3962
  }
3963
3963
  ) : null;
3964
3964
  }, yt = O(mo), Co = () => {
3965
- const e = p(
3965
+ const e = _(
3966
3966
  "ForMoreInformationOfThisTicket",
3967
3967
  "For more information of this ticket"
3968
- ), t = p("ClickHere", "Click here"), { ticketId: r } = ve(), { widgetProps: s } = q(), { encrypt: l } = Tt();
3968
+ ), t = _("ClickHere", "Click here"), { ticketId: r } = ve(), { widgetProps: s } = q(), { encrypt: l } = Tt();
3969
3969
  return /* @__PURE__ */ n.jsx(
3970
3970
  yt,
3971
3971
  {
@@ -3998,10 +3998,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
3998
3998
  /* @__PURE__ */ n.jsx(ro, {}),
3999
3999
  /* @__PURE__ */ n.jsx(go, {})
4000
4000
  ] }) }), ho = O(vo), Eo = () => {
4001
- const e = p("AdvanceFilter", "Advance Filter"), t = p("Subject", "Subject"), r = p(
4001
+ const e = _("AdvanceFilter", "Advance Filter"), t = _("Subject", "Subject"), r = _(
4002
4002
  "TicketCategory",
4003
4003
  "Ticket Category"
4004
- ), s = p("TicketStatus", "Ticket Status"), l = p("CreatedDate", "Created Date"), i = p("New", "New"), o = p("Open", "Open"), d = p("Reopen", "Reopen"), c = p("InProgress", "In Progress"), u = p("Responded", "Responded"), f = p("Fixed", "Fixed"), x = p("Done", "Done"), g = p("Closed", "Closed"), m = p("HDCancelled", "Cancelled"), T = p("Clear", "Clear"), w = p("Filter", "Filter"), _ = en(), [j] = oe.useForm(), { openFilter: v, setOpenFilter: h, getListTicket: b, setCountFilters: E } = ve(), [C, k] = D([]), S = R(() => {
4004
+ ), s = _("TicketStatus", "Ticket Status"), l = _("CreatedDate", "Created Date"), i = _("New", "New"), o = _("Open", "Open"), d = _("Reopen", "Reopen"), c = _("InProgress", "In Progress"), u = _("Responded", "Responded"), f = _("Fixed", "Fixed"), x = _("Done", "Done"), g = _("Closed", "Closed"), m = _("HDCancelled", "Cancelled"), T = _("Clear", "Clear"), w = _("Filter", "Filter"), p = en(), [j] = oe.useForm(), { openFilter: v, setOpenFilter: h, getListTicket: b, setCountFilters: E } = ve(), [C, k] = D([]), S = R(() => {
4005
4005
  const M = `${i}/${o}/${d}`, L = `${c}/${u}`, H = `${f}/${x}`;
4006
4006
  return [
4007
4007
  { value: 3, label: M },
@@ -4012,7 +4012,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4012
4012
  ];
4013
4013
  }, []), F = () => {
4014
4014
  var M;
4015
- (M = _({
4015
+ (M = p({
4016
4016
  endpoint: "/helpdesk/category/list",
4017
4017
  data: {
4018
4018
  LIMIT: 999999,
@@ -4095,13 +4095,13 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4095
4095
  }
4096
4096
  );
4097
4097
  }, To = O(Eo), yo = () => {
4098
- const e = p(
4098
+ const e = _(
4099
4099
  "ReconnectManually",
4100
4100
  "Reconnect Manually"
4101
- ), t = p(
4101
+ ), t = _(
4102
4102
  "HelpdeskWebsocket",
4103
4103
  "Helpdesk Websocket"
4104
- ), r = p("NotConnected", "Not Connected"), s = p("Connecting", "Connecting"), {
4104
+ ), r = _("NotConnected", "Not Connected"), s = _("Connecting", "Connecting"), {
4105
4105
  connectWebSocket: l,
4106
4106
  retryCountState: i,
4107
4107
  setRetryCountState: o,
@@ -4168,8 +4168,8 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4168
4168
  /* @__PURE__ */ n.jsx("div", { style: { display: !t && !r ? "block" : "none" }, children: /* @__PURE__ */ n.jsx(Ir, {}) }),
4169
4169
  /* @__PURE__ */ n.jsx(To, {})
4170
4170
  ] }) : /* @__PURE__ */ n.jsx(jo, {});
4171
- }, ko = O(wo), po = ({ children: e, usePopover: t, ...r }) => t ? /* @__PURE__ */ n.jsx(hn, { ...r, visible: r == null ? void 0 : r.open, children: e }) : e, _o = () => {
4172
- const e = p("NeedHelp", "Need Help"), t = p(
4171
+ }, ko = O(wo), _o = ({ children: e, usePopover: t, ...r }) => t ? /* @__PURE__ */ n.jsx(hn, { ...r, visible: r == null ? void 0 : r.open, children: e }) : e, po = () => {
4172
+ const e = _("NeedHelp", "Need Help"), t = _(
4173
4173
  "WidgetDisconnected",
4174
4174
  "Widget Disconnected"
4175
4175
  ), [r, s] = D(!0), l = K(), { widgetProps: i, setOpenWidget: o, isFirstOpenWidget: d, setFirstOpenWidget: c } = q(), { onSendMsg: u, connected: f, isHandshakeWidget: x } = fe(), g = () => {
@@ -4180,7 +4180,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4180
4180
  s(!1);
4181
4181
  }, 3e3);
4182
4182
  }, [f]), /* @__PURE__ */ n.jsx(
4183
- po,
4183
+ _o,
4184
4184
  {
4185
4185
  usePopover: r && x === "show",
4186
4186
  open: r && x === "show",
@@ -4213,11 +4213,11 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4213
4213
  )
4214
4214
  }
4215
4215
  );
4216
- }, Ao = O(_o), So = () => {
4217
- const e = p("NotConnected", "Not Connected"), t = p(
4216
+ }, Ao = O(po), So = () => {
4217
+ const e = _("NotConnected", "Not Connected"), t = _(
4218
4218
  "CannotAutoReconnect",
4219
4219
  "Cannot auto reconnect"
4220
- ), r = p(
4220
+ ), r = _(
4221
4221
  "ReconnectManually",
4222
4222
  "Reconnect Manually"
4223
4223
  ), [s, l] = D(!1), { connected: i, createSocket: o } = fe(), { widgetProps: d } = q();
@@ -4269,7 +4269,7 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4269
4269
  }, 250);
4270
4270
  }, [s]), t ? /* @__PURE__ */ n.jsxs("div", { className: d, children: [
4271
4271
  /* @__PURE__ */ n.jsxs("div", { style: { display: i ? "block" : "none" }, children: [
4272
- /* @__PURE__ */ n.jsx("div", { className: c(Es), children: /* @__PURE__ */ n.jsx(_r, {}) }),
4272
+ /* @__PURE__ */ n.jsx("div", { className: c(Es), children: /* @__PURE__ */ n.jsx(pr, {}) }),
4273
4273
  /* @__PURE__ */ n.jsx(Sr, {})
4274
4274
  ] }),
4275
4275
  /* @__PURE__ */ n.jsx("div", { style: { display: i ? "none" : "block" }, children: /* @__PURE__ */ n.jsx("div", { className: c(Ts), children: /* @__PURE__ */ n.jsx(Fr, { children: /* @__PURE__ */ n.jsx(Dr, { children: /* @__PURE__ */ n.jsx(ko, {}) }) }) }) }),
@@ -4283,10 +4283,10 @@ const ar = () => /* @__PURE__ */ n.jsxs("div", { className: "lds-ellipsis", chil
4283
4283
  tab: r == null ? void 0 : r.label
4284
4284
  }
4285
4285
  )) }), No = O(Do), Mo = () => {
4286
- const { isOpenWidget: e } = q(), { setActiveTab: t, activeTab: r } = be(), s = p(
4286
+ const { isOpenWidget: e } = q(), { setActiveTab: t, activeTab: r } = be(), s = _(
4287
4287
  "VirtualAssistant",
4288
4288
  "Virtual Assistant"
4289
- ), l = p("Helpdesk", "Helpdesk"), { xs: i } = me.useBreakpoint();
4289
+ ), l = _("Helpdesk", "Helpdesk"), { xs: i } = me.useBreakpoint();
4290
4290
  return X(() => {
4291
4291
  const o = ot();
4292
4292
  t((o == null ? void 0 : o.activeTab) ?? r);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "widget-chatbot",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-alpha.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "files": [