ed-widget 1.51.1-alpha.3 → 1.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ed-widget.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-16{margin-left:4rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1{margin-top:.25rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[65\\%\\]{max-width:65%!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-blue-100{--tw-border-opacity: 1 !important;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pl-16{padding-left:4rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}.ed-tiptap{--ghq-checklist-bg-color: rgba(15, 22, 36, .05);--ghq-checklist-bg-active-color: rgba(29, 30, 32, .98);--ghq-checklist-border-color: rgba(37, 39, 45, .1);--ghq-checklist-border-active-color: rgba(29, 30, 32, .98);--ghq-checklist-check-icon-color: rgba(255, 255, 255, 1);--ghq-checklist-text-active: rgba(52, 55, 60, .64)}.dark .ed-tiptap{--ghq-checklist-bg-color: rgba(231, 231, 243, .07);--ghq-checklist-bg-active-color: rgba(255, 255, 255, .96);--ghq-checklist-border-color: rgba(238, 238, 246, .11);--ghq-checklist-border-active-color: rgba(255, 255, 255, .96);--ghq-checklist-check-icon-color: rgba(0, 0, 0, 1);--ghq-checklist-text-active: rgba(251, 251, 254, .75)}.ed-tiptap:first-child{margin-top:0}.ed-tiptap table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.ed-tiptap table td,.ed-tiptap table th{border:1px solid rgba(61,37,20,.12);box-sizing:border-box;min-width:1em;padding:6px 8px;position:relative;vertical-align:top}.ed-tiptap table td>*,.ed-tiptap table th>*{margin-bottom:0}.ed-tiptap table th{background-color:#3d25140d;font-weight:700;text-align:left}.ed-tiptap table th[data-background-color]{background-color:inherit}.ed-tiptap table .selectedCell:after{background:#3d251414;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.ed-tiptap table .column-resize-handle{background-color:var(--brand-color);bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.ed-tiptap .tableWrapper{margin:1.5rem 0;overflow-x:auto}.ed-tiptap.resize-cursor{cursor:ew-resize;cursor:col-resize}.ed-tiptap ol,.ed-tiptap ul{margin-top:1.5em;margin-bottom:1.5em;padding-left:1.5em}.ed-tiptap ol:first-child,.ed-tiptap ul:first-child{margin-top:0}.ed-tiptap ol:last-child,.ed-tiptap ul:last-child{margin-bottom:0}.ed-tiptap ol ol,.ed-tiptap ol ul,.ed-tiptap ul ol,.ed-tiptap ul ul{margin-top:0;margin-bottom:0}.ed-tiptap li p{margin-top:0;line-height:1.6}.ed-tiptap ol{list-style:decimal}.ed-tiptap ol ol{list-style:lower-alpha}.ed-tiptap ol ol ol{list-style:lower-roman}.ed-tiptap ul:not([data-type=taskList]){list-style:disc}.ed-tiptap ul:not([data-type=taskList]) ul{list-style:square}.ed-tiptap ul:not([data-type=taskList]) ul ul{list-style:square}.ed-tiptap ul[data-type=taskList]{padding-left:.25em}.ed-tiptap ul[data-type=taskList] li{display:flex;flex-direction:row;align-items:flex-start}.ed-tiptap ul[data-type=taskList] li:not(:has(>p:first-child)){list-style-type:none}.ed-tiptap ul[data-type=taskList] li[data-checked=true]>div>p{opacity:.5;text-decoration:line-through}.ed-tiptap ul[data-type=taskList] li[data-checked=true]>div>p span{text-decoration:line-through}.ed-tiptap ul[data-type=taskList] li label{position:relative;padding-top:.375rem;padding-right:.5rem}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}.ed-tiptap ul[data-type=taskList] li label span{display:block;width:1em;height:1em;border:1px solid var(--ghq-checklist-border-color);border-radius:var(--ghq-radius-xs, .25rem);position:relative;cursor:pointer;background-color:var(--ghq-checklist-bg-color);transition:background-color 80ms ease-out,border-color 80ms ease-out}.ed-tiptap ul[data-type=taskList] li label span:before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:.75em;height:.75em;background-color:var(--ghq-checklist-check-icon-color);opacity:0;-webkit-mask:url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000/svg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center/contain no-repeat;mask:url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000/svg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center/contain no-repeat}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]:checked+span{background:var(--ghq-checklist-bg-active-color);border-color:var(--ghq-checklist-border-active-color)}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]:checked+span:before{opacity:1}.ed-tiptap ul[data-type=taskList] li div{flex:1 1 0%;min-width:0}.ed-tiptap.ProseMirror blockquote{position:relative;padding-left:1em;padding-top:.375em;padding-bottom:.375em;margin:1.5rem 0}.ed-tiptap.ProseMirror blockquote p{margin-top:0}.ed-tiptap.ProseMirror blockquote:before,.ed-tiptap.ProseMirror blockquote.is-empty:before{position:absolute;bottom:0;left:0;top:0;height:100%;width:.25em;background-color:#222325;content:"";border-radius:0}.ed-tiptap.ProseMirror code{background-color:#0f16240d;color:#404145;border:1px solid rgba(37,39,45,.1);font-family:JetBrains Mono NL,monospace;font-size:.875em;line-height:1.4;border-radius:6px;padding:.1em .2em}.ed-tiptap.ProseMirror pre{background-color:#3838380a;color:#2c2d30;border:1px solid rgba(37,39,45,.1);margin-top:1.5em;margin-bottom:1.5em;padding:1em;font-size:1rem;border-radius:6px}.ed-tiptap.ProseMirror pre code{background-color:transparent;border:none;border-radius:0;-webkit-text-fill-color:inherit;color:inherit}.ed-tiptap.ProseMirror h1,.ed-tiptap.ProseMirror h2,.ed-tiptap.ProseMirror h3,.ed-tiptap.ProseMirror h4{position:relative;color:inherit;font-style:inherit}.ed-tiptap.ProseMirror h1:first-child,.ed-tiptap.ProseMirror h2:first-child,.ed-tiptap.ProseMirror h3:first-child,.ed-tiptap.ProseMirror h4:first-child{margin-top:0}.ed-tiptap.ProseMirror h1{font-size:1.5em;font-weight:700}.ed-tiptap.ProseMirror h2{font-size:1.25em;font-weight:700}.ed-tiptap.ProseMirror h3{font-size:1.125em;font-weight:600}.ed-tiptap.ProseMirror h4{font-size:1em;font-weight:600}.ed-tiptap.ProseMirror hr{border:none;height:1px;background-color:#25272d1a}.ed-tiptap.ProseMirror [data-type=horizontalRule]{margin-top:2.25em;margin-bottom:2.25em;padding-top:.75rem;padding-bottom:.75rem}.ed-tiptap.ProseMirror>*{position:relative}.ed-tiptap.ProseMirror p{font-size:1rem;line-height:1.25;font-weight:400}.ed-tiptap.ProseMirror span{font-size:inherit}.ed-tiptap.ProseMirror a{color:var(--brand-color)!important}.ed-tiptap.ProseMirror a{color:var(--brand-color);text-decoration:underline}.ed-tiptap.ProseMirror s,.ed-tiptap.ProseMirror s span{text-decoration:line-through}.ed-tiptap.ProseMirror u,.ed-tiptap.ProseMirror u span{text-decoration:underline}.ed-tiptap.ProseMirror [data-type=emoji] img{display:inline-block;width:1.25em;height:1.25em;cursor:text}.ed-tiptap.ProseMirror [data-type=mention]{display:inline-block}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--unresolved.ed-tiptap-thread--inline{transition:color .2s ease-in-out,background-color .2s ease-in-out;color:#34373c;border-bottom:2px dashed #fcd34d;font-weight:600}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--unresolved.ed-tiptap-thread--block:not(:has(img)){border-radius:.25rem;border-bottom:.125rem dashed #fcd34d;padding-bottom:.5rem;outline:.25rem solid transparent}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--resolved.ed-tiptap-thread--inline.ed-tiptap-thread--selected{background-color:#fcd34d;border-color:transparent;opacity:.5}.ed-tiptap.ProseMirror p.is-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ed-tiptap.ProseMirror .prosemirror-dropcursor-block,.ed-tiptap.ProseMirror .prosemirror-dropcursor-inline{background:var(--brand-color);border-radius:.25rem;margin-left:-1px;margin-right:-1px;width:100%;height:.188rem;cursor:grabbing}.ed-tiptap.ProseMirror .image-component img{max-width:300px!important;width:auto!important;height:auto!important;-o-object-fit:contain!important;object-fit:contain!important}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-16{margin-left:4rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1{margin-top:.25rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[65\\%\\]{max-width:65%!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-blue-100{--tw-border-opacity: 1 !important;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pl-16{padding-left:4rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  (function(co,Mo){typeof exports=="object"&&typeof module<"u"?Mo(exports):typeof define=="function"&&define.amd?define(["exports"],Mo):(co=typeof globalThis<"u"?globalThis:co||self,Mo(co.EasyDeskChatWidget={}))})(this,(function(co){"use strict";var Vde=Object.defineProperty;var Ude=(co,Mo,tu)=>Mo in co?Vde(co,Mo,{enumerable:!0,configurable:!0,writable:!0,value:tu}):co[Mo]=tu;var Te=(co,Mo,tu)=>Ude(co,typeof Mo!="symbol"?Mo+"":Mo,tu);var Gj;function Mo(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var tu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var T_={exports:{}},R_={exports:{}},tv={exports:{}};tv.exports;var UO;function tH(){return UO||(UO=1,(function(t,e){/**
3
3
  * @license React
4
4
  * react.development.js
@@ -760,7 +760,7 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
760
760
  id
761
761
  }
762
762
  }
763
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sb(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Sb(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Sb(r,e)}),t.definitions&&t.definitions.forEach(function(r){Sb(r,e)})}var oT={};(function(){aT.definitions.forEach(function(e){if(e.name){var n=new Set;Sb(e,n),oT[e.name.value]=n}})})();function mP(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function hte(t,e){var n={kind:t.kind,definitions:[mP(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=oT[e]||new Set,i=new Set,s=new Set;for(r.forEach(function(u){s.add(u)});s.size>0;){var l=s;s=new Set,l.forEach(function(u){if(!i.has(u)){i.add(u);var d=oT[u]||new Set;d.forEach(function(h){s.add(h)})}})}return i.forEach(function(u){var d=mP(t,u);d&&n.definitions.push(d)}),n}const pte=hte(aT,"CREATE_AN_ARTICLE_ANALYTIC"),mte=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var N,R,I,P,H,z,G,Z,ee,ne;const{custom_domain:i,sub_domain:s}=(r==null?void 0:r.brand)||{},l=f0("cdnDomain").split("-")[1],u=i||`${s}.portal.${l&&l!=="prod"?`${l}.easydesk`:"easydesk"}.app`,{t:d}=Gh(),[h,v]=L.useState({}),[g,S]=L.useState(!0),[b,E]=L.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[w]=_v(dte,{errorPolicy:"all",fetchPolicy:"no-cache"}),_=async()=>{var Q;try{const{data:$}=await w({variables:{queryData:{entity_id:t}}});if($!=null&&$.getAnArticle){const Y=await dG(((Q=$.getAnArticle)==null?void 0:Q.content)||"");v({...$.getAnArticle,content:Y}),S(!1)}}catch($){console.error($),S(!1)}},[O,{loading:k}]=Mf(pte),D=async Q=>{try{await O({variables:{inputData:{article_id:t,action_type:Q}}}),Q==="like"&&E({isHelpful:!0})}catch($){console.error($)}};return L.useEffect(()=>{_(),D("view")},[t]),g||k?T.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:T.jsx(Hf,{})}):T.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!b.notHelpfulModal&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:T.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:T.jsx(bl,{className:"ed-text-border-regular ed-size-5"})})}),T.jsxs("div",{className:"ed-px-5",children:[T.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:T.jsxs(dP,{href:`https://${u}/solutions/articles/${h==null?void 0:h.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:Gv((h==null?void 0:h.title)||"")}),T.jsx("span",{className:"ed-shrink-0",children:T.jsx(M2,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4 ",children:[T.jsx(Io,{alt:`${(R=(N=h==null?void 0:h.author)==null?void 0:N.avatar_file)==null?void 0:R.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(P=(I=h==null?void 0:h.author)==null?void 0:I.avatar_file)==null?void 0:P.key,defaultImageName:gl((H=h==null?void 0:h.author)==null?void 0:H.first_name,(z=h==null?void 0:h.author)==null?void 0:z.last_name,(G=h==null?void 0:h.author)==null?void 0:G.email)}),T.jsxs("div",{children:[T.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",h0((Z=h==null?void 0:h.author)==null?void 0:Z.first_name,(ee=h==null?void 0:h.author)==null?void 0:ee.last_name,(ne=h==null?void 0:h.author)==null?void 0:ne.email)]}),T.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:du(h==null?void 0:h.published_at).format("DD MMMM, YYYY")})]})]}),T.jsx("div",{className:"ed-tiptap ProseMirror",children:h!=null&&h.content?Gv(h.content):null}),T.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!b.isHelpful&&!(b!=null&&b.isNotHelpful)&&T.jsxs("div",{children:[T.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),T.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[T.jsx(Yh,{title:"Helpful",Icon:$2,btnType:"btn_bordered",fullWidthBtn:!0,loader:k,callBack:()=>D("like")}),T.jsx(Yh,{title:"Not helpful",Icon:q2,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>E({...b,notHelpfulModal:!0})})]})]}),(b.isHelpful||(b==null?void 0:b.isNotHelpful))&&T.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[T.jsx(_ee,{width:"105",height:"80"}),T.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:d("widget.label.thank_you_for_your_feedback")})]})]})]})]}),b.notHelpfulModal&&T.jsx(hP,{setFeedbackForTheArticle:E,reqId:{article_id:t},isAuthenticated:n})]})};var sT={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};sT.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
763
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sb(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Sb(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Sb(r,e)}),t.definitions&&t.definitions.forEach(function(r){Sb(r,e)})}var oT={};(function(){aT.definitions.forEach(function(e){if(e.name){var n=new Set;Sb(e,n),oT[e.name.value]=n}})})();function mP(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function hte(t,e){var n={kind:t.kind,definitions:[mP(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=oT[e]||new Set,i=new Set,s=new Set;for(r.forEach(function(u){s.add(u)});s.size>0;){var l=s;s=new Set,l.forEach(function(u){if(!i.has(u)){i.add(u);var d=oT[u]||new Set;d.forEach(function(h){s.add(h)})}})}return i.forEach(function(u){var d=mP(t,u);d&&n.definitions.push(d)}),n}const pte=hte(aT,"CREATE_AN_ARTICLE_ANALYTIC"),mte=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var N,R,I,P,H,z,G,Z,ee,ne;const{custom_domain:i,sub_domain:s}=(r==null?void 0:r.brand)||{},l=f0("cdnDomain").split("-")[1],u=i||`${s}.portal.${l&&l!=="prod"?`${l}.easydesk`:"easydesk"}.app`,{t:d}=Gh(),[h,v]=L.useState({}),[g,S]=L.useState(!0),[b,E]=L.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[w]=_v(dte,{errorPolicy:"all",fetchPolicy:"no-cache"}),_=async()=>{var Q;try{const{data:$}=await w({variables:{queryData:{entity_id:t}}});if($!=null&&$.getAnArticle){const Y=await dG(((Q=$.getAnArticle)==null?void 0:Q.content)||"");v({...$.getAnArticle,content:Y}),S(!1)}}catch($){console.error($),S(!1)}},[O,{loading:k}]=Mf(pte),D=async Q=>{try{await O({variables:{inputData:{article_id:t,action_type:Q}}}),Q==="like"&&E({isHelpful:!0})}catch($){console.error($)}};return L.useEffect(()=>{_(),D("view")},[t]),g?T.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:T.jsx(Hf,{})}):T.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!b.notHelpfulModal&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:T.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:T.jsx(bl,{className:"ed-text-border-regular ed-size-5"})})}),T.jsxs("div",{className:"ed-px-5",children:[T.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:T.jsxs(dP,{href:`https://${u}/solutions/articles/${h==null?void 0:h.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:Gv((h==null?void 0:h.title)||"")}),T.jsx("span",{className:"ed-shrink-0",children:T.jsx(M2,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[T.jsx(Io,{alt:`${(R=(N=h==null?void 0:h.author)==null?void 0:N.avatar_file)==null?void 0:R.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(P=(I=h==null?void 0:h.author)==null?void 0:I.avatar_file)==null?void 0:P.key,defaultImageName:gl((H=h==null?void 0:h.author)==null?void 0:H.first_name,(z=h==null?void 0:h.author)==null?void 0:z.last_name,(G=h==null?void 0:h.author)==null?void 0:G.email)}),T.jsxs("div",{children:[T.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",h0((Z=h==null?void 0:h.author)==null?void 0:Z.first_name,(ee=h==null?void 0:h.author)==null?void 0:ee.last_name,(ne=h==null?void 0:h.author)==null?void 0:ne.email)]}),T.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:du(h==null?void 0:h.published_at).format("DD MMMM, YYYY")})]})]}),T.jsx("div",{className:"tiptap ProseMirror",children:h!=null&&h.content?Gv(h.content):null}),T.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!b.isHelpful&&!(b!=null&&b.isNotHelpful)&&T.jsxs("div",{children:[T.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),T.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[T.jsx(Yh,{title:"Helpful",Icon:$2,btnType:"btn_bordered",fullWidthBtn:!0,loader:k,callBack:()=>D("like")}),T.jsx(Yh,{title:"Not helpful",Icon:q2,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>E({...b,notHelpfulModal:!0})})]})]}),(b.isHelpful||(b==null?void 0:b.isNotHelpful))&&T.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[T.jsx(_ee,{width:"105",height:"80"}),T.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:d("widget.label.thank_you_for_your_feedback")})]})]})]})]}),b.notHelpfulModal&&T.jsx(hP,{setFeedbackForTheArticle:E,reqId:{article_id:t},isAuthenticated:n})]})};var sT={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};sT.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
764
764
  getSectionsWithArticles(queryData: $queryData, optionData: $optionData) {
765
765
  data {
766
766
  id
@@ -887,7 +887,7 @@ If anything else comes up, I'm just one message away. 👋`,channelConnecting:"P
887
887
  title="${_==null?void 0:_.contact_person_email}"
888
888
  >${_==null?void 0:_.contact_person_email}</p>
889
889
  </div>
890
- </div>`,is_customer_reply:!0},{message:$,is_auto_response:!0,current_stage:Y}];await K5(600,1e3);const{data:X}=await k({variables:{inputData:{type:"chat",contact_person_name:_==null?void 0:_.contact_person_name,contact_person_email:_==null?void 0:_.contact_person_email,conversation_activities:J,is_initiated_with_ai:E}}}),ce=X==null?void 0:X.createAConversationForPortal;ce!=null&&ce.id&&(n(ce==null?void 0:ce.id),ow("easydesk_chat_widget_conversation_id",ce==null?void 0:ce.id,{expires:30}),t==null||t({contact_person_name:_==null?void 0:_.contact_person_name,contact_person_email:_==null?void 0:_.contact_person_email}))}catch(ne){const{message:Q,response:$}=ne;Wi("error",((ee=$==null?void 0:$.data)==null?void 0:ee.message)||Q,"top-left"),b(!1)}finally{N(!1)}},H=G=>{const{name:Z,value:ee}=G.target;O(ne=>({...ne,[Z]:ee}))},z=L.useMemo(()=>!(_!=null&&_.contact_person_name)||!(_!=null&&_.contact_person_email)||!sw(_==null?void 0:_.contact_person_email)||D,[_,D]);return T.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[v&&!S&&T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Easy AI Bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-py-4",children:T.jsx(Qh,{})})]})]}),l&&!S&&T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeInUp",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Easy AI Bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:T.jsx("p",{className:"ed-text-border-dark",children:I?Nr.initial.greetingOnline:Nr.initial.greetingOffline})})]})]}),d&&!S&&T.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:T.jsxs("form",{onSubmit:P,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[T.jsxs("div",{className:"ed-space-y-2",children:[T.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",T.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),T.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:_==null?void 0:_.contact_person_name,onChange:H,disabled:s,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),T.jsxs("div",{className:"ed-space-y-2",children:[T.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",T.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),T.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:_==null?void 0:_.contact_person_email,onChange:H,disabled:s,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),T.jsx("div",{className:"ed-flex ed-justify-end",children:T.jsx(Yh,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:z,loader:D,callBack:P})})]})}),S&&T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:T.jsx("p",{className:"ed-text-border-dark",children:I?Nr.initial.greetingOnline:Nr.initial.greetingOffline})})]})]}),T.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:T.jsxs("div",{className:"ed-p-5 ed-rounded-[20px] ed-bg-blue-50 ed-border ed-border-blue-100",style:{borderRadius:"20px",border:"1px solid #e3f2fd",backgroundColor:"#e3f2fd",padding:"20px"},children:[T.jsxs("div",{style:{marginBottom:"20px"},children:[T.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Name"}),T.jsx("p",{style:{fontSize:"13px",color:"#797979"},children:_==null?void 0:_.contact_person_name})]}),T.jsxs("div",{children:[T.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Email"}),T.jsx("p",{style:{fontSize:"13px",color:"#797979",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_==null?void 0:_.contact_person_email})]})]})}),T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeIn",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-py-4",children:T.jsx(Qh,{})})]})]})]})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Tj,setPrototypeOf:Rj,isFrozen:Bse,getPrototypeOf:qse,getOwnPropertyDescriptor:Wse}=Object;let{freeze:$a,seal:ds,create:uS}=Object,{apply:Q5,construct:Z5}=typeof Reflect<"u"&&Reflect;$a||($a=function(e){return e}),ds||(ds=function(e){return e}),Q5||(Q5=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return e.apply(n,i)}),Z5||(Z5=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const cS=Ya(Array.prototype.forEach),$se=Ya(Array.prototype.lastIndexOf),Aj=Ya(Array.prototype.pop),_g=Ya(Array.prototype.push),Gse=Ya(Array.prototype.splice),fS=Ya(String.prototype.toLowerCase),X5=Ya(String.prototype.toString),J5=Ya(String.prototype.match),xg=Ya(String.prototype.replace),Yse=Ya(String.prototype.indexOf),Kse=Ya(String.prototype.trim),zo=Ya(Object.prototype.hasOwnProperty),Ga=Ya(RegExp.prototype.test),wg=Qse(TypeError);function Ya(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Q5(t,e,r)}}function Qse(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Z5(t,n)}}function Un(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fS;Rj&&Rj(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const s=n(i);s!==i&&(Bse(e)||(e[r]=s),i=s)}t[i]=!0}return t}function Zse(t){for(let e=0;e<t.length;e++)zo(t,e)||(t[e]=null);return t}function xl(t){const e=uS(null);for(const[n,r]of Tj(t))zo(t,n)&&(Array.isArray(r)?e[n]=Zse(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=xl(r):e[n]=r);return e}function Tg(t,e){for(;t!==null;){const r=Wse(t,e);if(r){if(r.get)return Ya(r.get);if(typeof r.value=="function")return Ya(r.value)}t=qse(t)}function n(){return null}return n}const kj=$a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eR=$a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tR=$a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xse=$a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nR=$a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jse=$a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oj=$a(["#text"]),Nj=$a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),rR=$a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Mj=$a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),dS=$a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ele=ds(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tle=ds(/<%[\w\W]*|[\w\W]*%>/gm),nle=ds(/\$\{[\w\W]*/gm),rle=ds(/^data-[\-\w.\u00B7-\uFFFF]+$/),ile=ds(/^aria-[\-\w]+$/),Lj=ds(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ale=ds(/^(?:\w+script|data):/i),ole=ds(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dj=ds(/^html$/i),sle=ds(/^[a-z][.\w]*(-[.\w]+)+$/i);var Pj=Object.freeze({__proto__:null,ARIA_ATTR:ile,ATTR_WHITESPACE:ole,CUSTOM_ELEMENT:sle,DATA_ATTR:rle,DOCTYPE_NAME:Dj,ERB_EXPR:tle,IS_ALLOWED_URI:Lj,IS_SCRIPT_OR_DATA:ale,MUSTACHE_EXPR:ele,TMPLIT_EXPR:nle});const Rg={element:1,text:3,progressingInstruction:7,comment:8,document:9},lle=function(){return typeof window>"u"?null:window},ule=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Ij=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Fj(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lle();const e=Xe=>Fj(Xe);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Rg.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:u,Element:d,NodeFilter:h,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:g,DOMParser:S,trustedTypes:b}=t,E=d.prototype,w=Tg(E,"cloneNode"),_=Tg(E,"remove"),O=Tg(E,"nextSibling"),k=Tg(E,"childNodes"),D=Tg(E,"parentNode");if(typeof l=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let N,R="";const{implementation:I,createNodeIterator:P,createDocumentFragment:H,getElementsByTagName:z}=n,{importNode:G}=r;let Z=Ij();e.isSupported=typeof Tj=="function"&&typeof D=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ee,ERB_EXPR:ne,TMPLIT_EXPR:Q,DATA_ATTR:$,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:ce}=Pj;let{IS_ALLOWED_URI:ie}=Pj,le=null;const de=Un({},[...kj,...eR,...tR,...nR,...Oj]);let ge=null;const xe=Un({},[...Nj,...rR,...Mj,...dS]);let ye=Object.seal(uS(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Oe=null;const We=Object.seal(uS(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Le=!0,qe=!0,ve=!1,oe=!0,Ye=!1,Ue=!0,et=!1,gt=!1,yt=!1,zt=!1,st=!1,Kt=!1,Ct=!0,xt=!1;const fn="user-content-";let tt=!0,Dt=!1,Xt={},or=null;const cr=Un({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fr=null;const Je=Un({},["audio","video","img","source","image","track"]);let it=null;const dt=Un({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",rn="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let Cn=Qt,On=!1,_n=null;const Gn=Un({},[Wt,rn,Qt],X5);let Pn=Un({},["mi","mo","mn","ms","mtext"]),di=Un({},["annotation-xml"]);const hi=Un({},["title","style","font","a","script"]);let zr=null;const Zr=["application/xhtml+xml","text/html"],jr="text/html";let Jt=null,$r=null;const Vr=n.createElement("form"),Rn=function(ae){return ae instanceof RegExp||ae instanceof Function},un=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($r&&$r===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=xl(ae),zr=Zr.indexOf(ae.PARSER_MEDIA_TYPE)===-1?jr:ae.PARSER_MEDIA_TYPE,Jt=zr==="application/xhtml+xml"?X5:fS,le=zo(ae,"ALLOWED_TAGS")?Un({},ae.ALLOWED_TAGS,Jt):de,ge=zo(ae,"ALLOWED_ATTR")?Un({},ae.ALLOWED_ATTR,Jt):xe,_n=zo(ae,"ALLOWED_NAMESPACES")?Un({},ae.ALLOWED_NAMESPACES,X5):Gn,it=zo(ae,"ADD_URI_SAFE_ATTR")?Un(xl(dt),ae.ADD_URI_SAFE_ATTR,Jt):dt,fr=zo(ae,"ADD_DATA_URI_TAGS")?Un(xl(Je),ae.ADD_DATA_URI_TAGS,Jt):Je,or=zo(ae,"FORBID_CONTENTS")?Un({},ae.FORBID_CONTENTS,Jt):cr,Ne=zo(ae,"FORBID_TAGS")?Un({},ae.FORBID_TAGS,Jt):xl({}),Oe=zo(ae,"FORBID_ATTR")?Un({},ae.FORBID_ATTR,Jt):xl({}),Xt=zo(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,Le=ae.ALLOW_ARIA_ATTR!==!1,qe=ae.ALLOW_DATA_ATTR!==!1,ve=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ye=ae.SAFE_FOR_TEMPLATES||!1,Ue=ae.SAFE_FOR_XML!==!1,et=ae.WHOLE_DOCUMENT||!1,zt=ae.RETURN_DOM||!1,st=ae.RETURN_DOM_FRAGMENT||!1,Kt=ae.RETURN_TRUSTED_TYPE||!1,yt=ae.FORCE_BODY||!1,Ct=ae.SANITIZE_DOM!==!1,xt=ae.SANITIZE_NAMED_PROPS||!1,tt=ae.KEEP_CONTENT!==!1,Dt=ae.IN_PLACE||!1,ie=ae.ALLOWED_URI_REGEXP||Lj,Cn=ae.NAMESPACE||Qt,Pn=ae.MATHML_TEXT_INTEGRATION_POINTS||Pn,di=ae.HTML_INTEGRATION_POINTS||di,ye=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&Rn(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&Rn(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ye.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ye&&(qe=!1),st&&(zt=!0),Xt&&(le=Un({},Oj),ge=uS(null),Xt.html===!0&&(Un(le,kj),Un(ge,Nj)),Xt.svg===!0&&(Un(le,eR),Un(ge,rR),Un(ge,dS)),Xt.svgFilters===!0&&(Un(le,tR),Un(ge,rR),Un(ge,dS)),Xt.mathMl===!0&&(Un(le,nR),Un(ge,Mj),Un(ge,dS))),zo(ae,"ADD_TAGS")||(We.tagCheck=null),zo(ae,"ADD_ATTR")||(We.attributeCheck=null),ae.ADD_TAGS&&(typeof ae.ADD_TAGS=="function"?We.tagCheck=ae.ADD_TAGS:(le===de&&(le=xl(le)),Un(le,ae.ADD_TAGS,Jt))),ae.ADD_ATTR&&(typeof ae.ADD_ATTR=="function"?We.attributeCheck=ae.ADD_ATTR:(ge===xe&&(ge=xl(ge)),Un(ge,ae.ADD_ATTR,Jt))),ae.ADD_URI_SAFE_ATTR&&Un(it,ae.ADD_URI_SAFE_ATTR,Jt),ae.FORBID_CONTENTS&&(or===cr&&(or=xl(or)),Un(or,ae.FORBID_CONTENTS,Jt)),ae.ADD_FORBID_CONTENTS&&(or===cr&&(or=xl(or)),Un(or,ae.ADD_FORBID_CONTENTS,Jt)),tt&&(le["#text"]=!0),et&&Un(le,["html","head","body"]),le.table&&(Un(le,["tbody"]),delete Ne.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw wg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=ae.TRUSTED_TYPES_POLICY,R=N.createHTML("")}else N===void 0&&(N=ule(b,i)),N!==null&&typeof R=="string"&&(R=N.createHTML(""));$a&&$a(ae),$r=ae}},Hn=Un({},[...eR,...tR,...Xse]),pr=Un({},[...nR,...Jse]),Mr=function(ae){let Me=D(ae);(!Me||!Me.tagName)&&(Me={namespaceURI:Cn,tagName:"template"});const ot=fS(ae.tagName),pn=fS(Me.tagName);return _n[ae.namespaceURI]?ae.namespaceURI===rn?Me.namespaceURI===Qt?ot==="svg":Me.namespaceURI===Wt?ot==="svg"&&(pn==="annotation-xml"||Pn[pn]):!!Hn[ot]:ae.namespaceURI===Wt?Me.namespaceURI===Qt?ot==="math":Me.namespaceURI===rn?ot==="math"&&di[pn]:!!pr[ot]:ae.namespaceURI===Qt?Me.namespaceURI===rn&&!di[pn]||Me.namespaceURI===Wt&&!Pn[pn]?!1:!pr[ot]&&(hi[ot]||!Hn[ot]):!!(zr==="application/xhtml+xml"&&_n[ae.namespaceURI]):!1},vn=function(ae){_g(e.removed,{element:ae});try{D(ae).removeChild(ae)}catch{_(ae)}},Gr=function(ae,Me){try{_g(e.removed,{attribute:Me.getAttributeNode(ae),from:Me})}catch{_g(e.removed,{attribute:null,from:Me})}if(Me.removeAttribute(ae),ae==="is")if(zt||st)try{vn(Me)}catch{}else try{Me.setAttribute(ae,"")}catch{}},pi=function(ae){let Me=null,ot=null;if(yt)ae="<remove></remove>"+ae;else{const ct=J5(ae,/^[\r\n\t ]+/);ot=ct&&ct[0]}zr==="application/xhtml+xml"&&Cn===Qt&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const pn=N?N.createHTML(ae):ae;if(Cn===Qt)try{Me=new S().parseFromString(pn,zr)}catch{}if(!Me||!Me.documentElement){Me=I.createDocument(Cn,"template",null);try{Me.documentElement.innerHTML=On?R:pn}catch{}}const dn=Me.body||Me.documentElement;return ae&&ot&&dn.insertBefore(n.createTextNode(ot),dn.childNodes[0]||null),Cn===Qt?z.call(Me,et?"html":"body")[0]:et?Me.documentElement:dn},te=function(ae){return P.call(ae.ownerDocument||ae,ae,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},De=function(ae){return ae instanceof g&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof v)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},Ze=function(ae){return typeof u=="function"&&ae instanceof u};function Ke(Xe,ae,Me){cS(Xe,ot=>{ot.call(e,ae,Me,$r)})}const Ht=function(ae){let Me=null;if(Ke(Z.beforeSanitizeElements,ae,null),De(ae))return vn(ae),!0;const ot=Jt(ae.nodeName);if(Ke(Z.uponSanitizeElement,ae,{tagName:ot,allowedTags:le}),Ue&&ae.hasChildNodes()&&!Ze(ae.firstElementChild)&&Ga(/<[/\w!]/g,ae.innerHTML)&&Ga(/<[/\w!]/g,ae.textContent)||ae.nodeType===Rg.progressingInstruction||Ue&&ae.nodeType===Rg.comment&&Ga(/<[/\w]/g,ae.data))return vn(ae),!0;if(!(We.tagCheck instanceof Function&&We.tagCheck(ot))&&(!le[ot]||Ne[ot])){if(!Ne[ot]&&jt(ot)&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ot)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ot)))return!1;if(tt&&!or[ot]){const pn=D(ae)||ae.parentNode,dn=k(ae)||ae.childNodes;if(dn&&pn){const ct=dn.length;for(let mr=ct-1;mr>=0;--mr){const mi=w(dn[mr],!0);mi.__removalCount=(ae.__removalCount||0)+1,pn.insertBefore(mi,O(ae))}}}return vn(ae),!0}return ae instanceof d&&!Mr(ae)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&Ga(/<\/no(script|embed|frames)/i,ae.innerHTML)?(vn(ae),!0):(Ye&&ae.nodeType===Rg.text&&(Me=ae.textContent,cS([ee,ne,Q],pn=>{Me=xg(Me,pn," ")}),ae.textContent!==Me&&(_g(e.removed,{element:ae.cloneNode()}),ae.textContent=Me)),Ke(Z.afterSanitizeElements,ae,null),!1)},Pt=function(ae,Me,ot){if(Oe[Me]||Ct&&(Me==="id"||Me==="name")&&(ot in n||ot in Vr))return!1;if(!(qe&&!Oe[Me]&&Ga($,Me))){if(!(Le&&Ga(Y,Me))){if(!(We.attributeCheck instanceof Function&&We.attributeCheck(Me,ae))){if(!ge[Me]||Oe[Me]){if(!(jt(ae)&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ae)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ae))&&(ye.attributeNameCheck instanceof RegExp&&Ga(ye.attributeNameCheck,Me)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(Me,ae))||Me==="is"&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ot)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ot))))return!1}else if(!it[Me]){if(!Ga(ie,xg(ot,X,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&ae!=="script"&&Yse(ot,"data:")===0&&fr[ae])){if(!(ve&&!Ga(J,xg(ot,X,"")))){if(ot)return!1}}}}}}}return!0},jt=function(ae){return ae!=="annotation-xml"&&J5(ae,ce)},Nt=function(ae){Ke(Z.beforeSanitizeAttributes,ae,null);const{attributes:Me}=ae;if(!Me||De(ae))return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let pn=Me.length;for(;pn--;){const dn=Me[pn],{name:ct,namespaceURI:mr,value:mi}=dn,Qi=Jt(ct),_i=mi;let er=ct==="value"?_i:Kse(_i);if(ot.attrName=Qi,ot.attrValue=er,ot.keepAttr=!0,ot.forceKeepAttr=void 0,Ke(Z.uponSanitizeAttribute,ae,ot),er=ot.attrValue,xt&&(Qi==="id"||Qi==="name")&&(Gr(ct,ae),er=fn+er),Ue&&Ga(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,er)){Gr(ct,ae);continue}if(Qi==="attributename"&&J5(er,"href")){Gr(ct,ae);continue}if(ot.forceKeepAttr)continue;if(!ot.keepAttr){Gr(ct,ae);continue}if(!oe&&Ga(/\/>/i,er)){Gr(ct,ae);continue}Ye&&cS([ee,ne,Q],Na=>{er=xg(er,Na," ")});const Ai=Jt(ae.nodeName);if(!Pt(Ai,Qi,er)){Gr(ct,ae);continue}if(N&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!mr)switch(b.getAttributeType(Ai,Qi)){case"TrustedHTML":{er=N.createHTML(er);break}case"TrustedScriptURL":{er=N.createScriptURL(er);break}}if(er!==_i)try{mr?ae.setAttributeNS(mr,ct,er):ae.setAttribute(ct,er),De(ae)?vn(ae):Aj(e.removed)}catch{Gr(ct,ae)}}Ke(Z.afterSanitizeAttributes,ae,null)},Qn=function Xe(ae){let Me=null;const ot=te(ae);for(Ke(Z.beforeSanitizeShadowDOM,ae,null);Me=ot.nextNode();)Ke(Z.uponSanitizeShadowNode,Me,null),Ht(Me),Nt(Me),Me.content instanceof s&&Xe(Me.content);Ke(Z.afterSanitizeShadowDOM,ae,null)};return e.sanitize=function(Xe){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,ot=null,pn=null,dn=null;if(On=!Xe,On&&(Xe="<!-->"),typeof Xe!="string"&&!Ze(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw wg("dirty is not a string, aborting")}else throw wg("toString is not a function");if(!e.isSupported)return Xe;if(gt||un(ae),e.removed=[],typeof Xe=="string"&&(Dt=!1),Dt){if(Xe.nodeName){const mi=Jt(Xe.nodeName);if(!le[mi]||Ne[mi])throw wg("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof u)Me=pi("<!---->"),ot=Me.ownerDocument.importNode(Xe,!0),ot.nodeType===Rg.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Me=ot:Me.appendChild(ot);else{if(!zt&&!Ye&&!et&&Xe.indexOf("<")===-1)return N&&Kt?N.createHTML(Xe):Xe;if(Me=pi(Xe),!Me)return zt?null:Kt?R:""}Me&&yt&&vn(Me.firstChild);const ct=te(Dt?Xe:Me);for(;pn=ct.nextNode();)Ht(pn),Nt(pn),pn.content instanceof s&&Qn(pn.content);if(Dt)return Xe;if(zt){if(st)for(dn=H.call(Me.ownerDocument);Me.firstChild;)dn.appendChild(Me.firstChild);else dn=Me;return(ge.shadowroot||ge.shadowrootmode)&&(dn=G.call(r,dn,!0)),dn}let mr=et?Me.outerHTML:Me.innerHTML;return et&&le["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&Ga(Dj,Me.ownerDocument.doctype.name)&&(mr="<!DOCTYPE "+Me.ownerDocument.doctype.name+`>
890
+ </div>`,is_customer_reply:!0},{message:$,is_auto_response:!0,current_stage:Y}];await K5(600,1e3);const{data:X}=await k({variables:{inputData:{type:"chat",contact_person_name:_==null?void 0:_.contact_person_name,contact_person_email:_==null?void 0:_.contact_person_email,conversation_activities:J,is_initiated_with_ai:E}}}),ce=X==null?void 0:X.createAConversationForPortal;ce!=null&&ce.id&&(n(ce==null?void 0:ce.id),ow("easydesk_chat_widget_conversation_id",ce==null?void 0:ce.id,{expires:30}),t==null||t({contact_person_name:_==null?void 0:_.contact_person_name,contact_person_email:_==null?void 0:_.contact_person_email}))}catch(ne){const{message:Q,response:$}=ne;Wi("error",((ee=$==null?void 0:$.data)==null?void 0:ee.message)||Q,"top-left"),b(!1)}finally{N(!1)}},H=G=>{const{name:Z,value:ee}=G.target;O(ne=>({...ne,[Z]:ee}))},z=L.useMemo(()=>!(_!=null&&_.contact_person_name)||!(_!=null&&_.contact_person_email)||!sw(_==null?void 0:_.contact_person_email)||D,[_,D]);return T.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[v&&!S&&T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-py-4",children:T.jsx(Qh,{})})]})]}),l&&!S&&T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeInUp",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:T.jsx("p",{className:"ed-text-border-dark",children:I?Nr.initial.greetingOnline:Nr.initial.greetingOffline})})]})]}),d&&!S&&T.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:T.jsxs("form",{onSubmit:P,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[T.jsxs("div",{className:"ed-space-y-2",children:[T.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",T.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),T.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:_==null?void 0:_.contact_person_name,onChange:H,disabled:s,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),T.jsxs("div",{className:"ed-space-y-2",children:[T.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",T.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),T.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:_==null?void 0:_.contact_person_email,onChange:H,disabled:s,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),T.jsx("div",{className:"ed-flex ed-justify-end",children:T.jsx(Yh,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:z,loader:D,callBack:P})})]})}),S&&T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:T.jsx("p",{className:"ed-text-border-dark",children:I?Nr.initial.greetingOnline:Nr.initial.greetingOffline})})]})]}),T.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:T.jsxs("div",{className:"ed-p-5 ed-rounded-[20px] ed-bg-blue-50 ed-border ed-border-blue-100",style:{borderRadius:"20px",border:"1px solid #e3f2fd",backgroundColor:"#e3f2fd",padding:"20px"},children:[T.jsxs("div",{style:{marginBottom:"20px"},children:[T.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Name"}),T.jsx("p",{style:{fontSize:"13px",color:"#797979"},children:_==null?void 0:_.contact_person_name})]}),T.jsxs("div",{children:[T.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Email"}),T.jsx("p",{style:{fontSize:"13px",color:"#797979",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_==null?void 0:_.contact_person_email})]})]})}),T.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeIn",children:[E?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:gl(i==null?void 0:i.name)}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:E?"Eden AI bot":i==null?void 0:i.name}),T.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:du().format("HH:mm")})]}),T.jsx("div",{className:"ed-py-4",children:T.jsx(Qh,{})})]})]})]})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Tj,setPrototypeOf:Rj,isFrozen:Bse,getPrototypeOf:qse,getOwnPropertyDescriptor:Wse}=Object;let{freeze:$a,seal:ds,create:uS}=Object,{apply:Q5,construct:Z5}=typeof Reflect<"u"&&Reflect;$a||($a=function(e){return e}),ds||(ds=function(e){return e}),Q5||(Q5=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return e.apply(n,i)}),Z5||(Z5=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const cS=Ya(Array.prototype.forEach),$se=Ya(Array.prototype.lastIndexOf),Aj=Ya(Array.prototype.pop),_g=Ya(Array.prototype.push),Gse=Ya(Array.prototype.splice),fS=Ya(String.prototype.toLowerCase),X5=Ya(String.prototype.toString),J5=Ya(String.prototype.match),xg=Ya(String.prototype.replace),Yse=Ya(String.prototype.indexOf),Kse=Ya(String.prototype.trim),zo=Ya(Object.prototype.hasOwnProperty),Ga=Ya(RegExp.prototype.test),wg=Qse(TypeError);function Ya(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Q5(t,e,r)}}function Qse(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Z5(t,n)}}function Un(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fS;Rj&&Rj(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const s=n(i);s!==i&&(Bse(e)||(e[r]=s),i=s)}t[i]=!0}return t}function Zse(t){for(let e=0;e<t.length;e++)zo(t,e)||(t[e]=null);return t}function xl(t){const e=uS(null);for(const[n,r]of Tj(t))zo(t,n)&&(Array.isArray(r)?e[n]=Zse(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=xl(r):e[n]=r);return e}function Tg(t,e){for(;t!==null;){const r=Wse(t,e);if(r){if(r.get)return Ya(r.get);if(typeof r.value=="function")return Ya(r.value)}t=qse(t)}function n(){return null}return n}const kj=$a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eR=$a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tR=$a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xse=$a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nR=$a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jse=$a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oj=$a(["#text"]),Nj=$a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),rR=$a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Mj=$a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),dS=$a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ele=ds(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tle=ds(/<%[\w\W]*|[\w\W]*%>/gm),nle=ds(/\$\{[\w\W]*/gm),rle=ds(/^data-[\-\w.\u00B7-\uFFFF]+$/),ile=ds(/^aria-[\-\w]+$/),Lj=ds(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ale=ds(/^(?:\w+script|data):/i),ole=ds(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dj=ds(/^html$/i),sle=ds(/^[a-z][.\w]*(-[.\w]+)+$/i);var Pj=Object.freeze({__proto__:null,ARIA_ATTR:ile,ATTR_WHITESPACE:ole,CUSTOM_ELEMENT:sle,DATA_ATTR:rle,DOCTYPE_NAME:Dj,ERB_EXPR:tle,IS_ALLOWED_URI:Lj,IS_SCRIPT_OR_DATA:ale,MUSTACHE_EXPR:ele,TMPLIT_EXPR:nle});const Rg={element:1,text:3,progressingInstruction:7,comment:8,document:9},lle=function(){return typeof window>"u"?null:window},ule=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Ij=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Fj(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lle();const e=Xe=>Fj(Xe);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Rg.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:u,Element:d,NodeFilter:h,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:g,DOMParser:S,trustedTypes:b}=t,E=d.prototype,w=Tg(E,"cloneNode"),_=Tg(E,"remove"),O=Tg(E,"nextSibling"),k=Tg(E,"childNodes"),D=Tg(E,"parentNode");if(typeof l=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let N,R="";const{implementation:I,createNodeIterator:P,createDocumentFragment:H,getElementsByTagName:z}=n,{importNode:G}=r;let Z=Ij();e.isSupported=typeof Tj=="function"&&typeof D=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ee,ERB_EXPR:ne,TMPLIT_EXPR:Q,DATA_ATTR:$,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:ce}=Pj;let{IS_ALLOWED_URI:ie}=Pj,le=null;const de=Un({},[...kj,...eR,...tR,...nR,...Oj]);let ge=null;const xe=Un({},[...Nj,...rR,...Mj,...dS]);let ye=Object.seal(uS(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Oe=null;const We=Object.seal(uS(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Le=!0,qe=!0,ve=!1,oe=!0,Ye=!1,Ue=!0,et=!1,gt=!1,yt=!1,zt=!1,st=!1,Kt=!1,Ct=!0,xt=!1;const fn="user-content-";let tt=!0,Dt=!1,Xt={},or=null;const cr=Un({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fr=null;const Je=Un({},["audio","video","img","source","image","track"]);let it=null;const dt=Un({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",rn="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let Cn=Qt,On=!1,_n=null;const Gn=Un({},[Wt,rn,Qt],X5);let Pn=Un({},["mi","mo","mn","ms","mtext"]),di=Un({},["annotation-xml"]);const hi=Un({},["title","style","font","a","script"]);let zr=null;const Zr=["application/xhtml+xml","text/html"],jr="text/html";let Jt=null,$r=null;const Vr=n.createElement("form"),Rn=function(ae){return ae instanceof RegExp||ae instanceof Function},un=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($r&&$r===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=xl(ae),zr=Zr.indexOf(ae.PARSER_MEDIA_TYPE)===-1?jr:ae.PARSER_MEDIA_TYPE,Jt=zr==="application/xhtml+xml"?X5:fS,le=zo(ae,"ALLOWED_TAGS")?Un({},ae.ALLOWED_TAGS,Jt):de,ge=zo(ae,"ALLOWED_ATTR")?Un({},ae.ALLOWED_ATTR,Jt):xe,_n=zo(ae,"ALLOWED_NAMESPACES")?Un({},ae.ALLOWED_NAMESPACES,X5):Gn,it=zo(ae,"ADD_URI_SAFE_ATTR")?Un(xl(dt),ae.ADD_URI_SAFE_ATTR,Jt):dt,fr=zo(ae,"ADD_DATA_URI_TAGS")?Un(xl(Je),ae.ADD_DATA_URI_TAGS,Jt):Je,or=zo(ae,"FORBID_CONTENTS")?Un({},ae.FORBID_CONTENTS,Jt):cr,Ne=zo(ae,"FORBID_TAGS")?Un({},ae.FORBID_TAGS,Jt):xl({}),Oe=zo(ae,"FORBID_ATTR")?Un({},ae.FORBID_ATTR,Jt):xl({}),Xt=zo(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,Le=ae.ALLOW_ARIA_ATTR!==!1,qe=ae.ALLOW_DATA_ATTR!==!1,ve=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ye=ae.SAFE_FOR_TEMPLATES||!1,Ue=ae.SAFE_FOR_XML!==!1,et=ae.WHOLE_DOCUMENT||!1,zt=ae.RETURN_DOM||!1,st=ae.RETURN_DOM_FRAGMENT||!1,Kt=ae.RETURN_TRUSTED_TYPE||!1,yt=ae.FORCE_BODY||!1,Ct=ae.SANITIZE_DOM!==!1,xt=ae.SANITIZE_NAMED_PROPS||!1,tt=ae.KEEP_CONTENT!==!1,Dt=ae.IN_PLACE||!1,ie=ae.ALLOWED_URI_REGEXP||Lj,Cn=ae.NAMESPACE||Qt,Pn=ae.MATHML_TEXT_INTEGRATION_POINTS||Pn,di=ae.HTML_INTEGRATION_POINTS||di,ye=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&Rn(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&Rn(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ye.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ye&&(qe=!1),st&&(zt=!0),Xt&&(le=Un({},Oj),ge=uS(null),Xt.html===!0&&(Un(le,kj),Un(ge,Nj)),Xt.svg===!0&&(Un(le,eR),Un(ge,rR),Un(ge,dS)),Xt.svgFilters===!0&&(Un(le,tR),Un(ge,rR),Un(ge,dS)),Xt.mathMl===!0&&(Un(le,nR),Un(ge,Mj),Un(ge,dS))),zo(ae,"ADD_TAGS")||(We.tagCheck=null),zo(ae,"ADD_ATTR")||(We.attributeCheck=null),ae.ADD_TAGS&&(typeof ae.ADD_TAGS=="function"?We.tagCheck=ae.ADD_TAGS:(le===de&&(le=xl(le)),Un(le,ae.ADD_TAGS,Jt))),ae.ADD_ATTR&&(typeof ae.ADD_ATTR=="function"?We.attributeCheck=ae.ADD_ATTR:(ge===xe&&(ge=xl(ge)),Un(ge,ae.ADD_ATTR,Jt))),ae.ADD_URI_SAFE_ATTR&&Un(it,ae.ADD_URI_SAFE_ATTR,Jt),ae.FORBID_CONTENTS&&(or===cr&&(or=xl(or)),Un(or,ae.FORBID_CONTENTS,Jt)),ae.ADD_FORBID_CONTENTS&&(or===cr&&(or=xl(or)),Un(or,ae.ADD_FORBID_CONTENTS,Jt)),tt&&(le["#text"]=!0),et&&Un(le,["html","head","body"]),le.table&&(Un(le,["tbody"]),delete Ne.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw wg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=ae.TRUSTED_TYPES_POLICY,R=N.createHTML("")}else N===void 0&&(N=ule(b,i)),N!==null&&typeof R=="string"&&(R=N.createHTML(""));$a&&$a(ae),$r=ae}},Hn=Un({},[...eR,...tR,...Xse]),pr=Un({},[...nR,...Jse]),Mr=function(ae){let Me=D(ae);(!Me||!Me.tagName)&&(Me={namespaceURI:Cn,tagName:"template"});const ot=fS(ae.tagName),pn=fS(Me.tagName);return _n[ae.namespaceURI]?ae.namespaceURI===rn?Me.namespaceURI===Qt?ot==="svg":Me.namespaceURI===Wt?ot==="svg"&&(pn==="annotation-xml"||Pn[pn]):!!Hn[ot]:ae.namespaceURI===Wt?Me.namespaceURI===Qt?ot==="math":Me.namespaceURI===rn?ot==="math"&&di[pn]:!!pr[ot]:ae.namespaceURI===Qt?Me.namespaceURI===rn&&!di[pn]||Me.namespaceURI===Wt&&!Pn[pn]?!1:!pr[ot]&&(hi[ot]||!Hn[ot]):!!(zr==="application/xhtml+xml"&&_n[ae.namespaceURI]):!1},vn=function(ae){_g(e.removed,{element:ae});try{D(ae).removeChild(ae)}catch{_(ae)}},Gr=function(ae,Me){try{_g(e.removed,{attribute:Me.getAttributeNode(ae),from:Me})}catch{_g(e.removed,{attribute:null,from:Me})}if(Me.removeAttribute(ae),ae==="is")if(zt||st)try{vn(Me)}catch{}else try{Me.setAttribute(ae,"")}catch{}},pi=function(ae){let Me=null,ot=null;if(yt)ae="<remove></remove>"+ae;else{const ct=J5(ae,/^[\r\n\t ]+/);ot=ct&&ct[0]}zr==="application/xhtml+xml"&&Cn===Qt&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const pn=N?N.createHTML(ae):ae;if(Cn===Qt)try{Me=new S().parseFromString(pn,zr)}catch{}if(!Me||!Me.documentElement){Me=I.createDocument(Cn,"template",null);try{Me.documentElement.innerHTML=On?R:pn}catch{}}const dn=Me.body||Me.documentElement;return ae&&ot&&dn.insertBefore(n.createTextNode(ot),dn.childNodes[0]||null),Cn===Qt?z.call(Me,et?"html":"body")[0]:et?Me.documentElement:dn},te=function(ae){return P.call(ae.ownerDocument||ae,ae,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},De=function(ae){return ae instanceof g&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof v)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},Ze=function(ae){return typeof u=="function"&&ae instanceof u};function Ke(Xe,ae,Me){cS(Xe,ot=>{ot.call(e,ae,Me,$r)})}const Ht=function(ae){let Me=null;if(Ke(Z.beforeSanitizeElements,ae,null),De(ae))return vn(ae),!0;const ot=Jt(ae.nodeName);if(Ke(Z.uponSanitizeElement,ae,{tagName:ot,allowedTags:le}),Ue&&ae.hasChildNodes()&&!Ze(ae.firstElementChild)&&Ga(/<[/\w!]/g,ae.innerHTML)&&Ga(/<[/\w!]/g,ae.textContent)||ae.nodeType===Rg.progressingInstruction||Ue&&ae.nodeType===Rg.comment&&Ga(/<[/\w]/g,ae.data))return vn(ae),!0;if(!(We.tagCheck instanceof Function&&We.tagCheck(ot))&&(!le[ot]||Ne[ot])){if(!Ne[ot]&&jt(ot)&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ot)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ot)))return!1;if(tt&&!or[ot]){const pn=D(ae)||ae.parentNode,dn=k(ae)||ae.childNodes;if(dn&&pn){const ct=dn.length;for(let mr=ct-1;mr>=0;--mr){const mi=w(dn[mr],!0);mi.__removalCount=(ae.__removalCount||0)+1,pn.insertBefore(mi,O(ae))}}}return vn(ae),!0}return ae instanceof d&&!Mr(ae)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&Ga(/<\/no(script|embed|frames)/i,ae.innerHTML)?(vn(ae),!0):(Ye&&ae.nodeType===Rg.text&&(Me=ae.textContent,cS([ee,ne,Q],pn=>{Me=xg(Me,pn," ")}),ae.textContent!==Me&&(_g(e.removed,{element:ae.cloneNode()}),ae.textContent=Me)),Ke(Z.afterSanitizeElements,ae,null),!1)},Pt=function(ae,Me,ot){if(Oe[Me]||Ct&&(Me==="id"||Me==="name")&&(ot in n||ot in Vr))return!1;if(!(qe&&!Oe[Me]&&Ga($,Me))){if(!(Le&&Ga(Y,Me))){if(!(We.attributeCheck instanceof Function&&We.attributeCheck(Me,ae))){if(!ge[Me]||Oe[Me]){if(!(jt(ae)&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ae)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ae))&&(ye.attributeNameCheck instanceof RegExp&&Ga(ye.attributeNameCheck,Me)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(Me,ae))||Me==="is"&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&Ga(ye.tagNameCheck,ot)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(ot))))return!1}else if(!it[Me]){if(!Ga(ie,xg(ot,X,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&ae!=="script"&&Yse(ot,"data:")===0&&fr[ae])){if(!(ve&&!Ga(J,xg(ot,X,"")))){if(ot)return!1}}}}}}}return!0},jt=function(ae){return ae!=="annotation-xml"&&J5(ae,ce)},Nt=function(ae){Ke(Z.beforeSanitizeAttributes,ae,null);const{attributes:Me}=ae;if(!Me||De(ae))return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let pn=Me.length;for(;pn--;){const dn=Me[pn],{name:ct,namespaceURI:mr,value:mi}=dn,Qi=Jt(ct),_i=mi;let er=ct==="value"?_i:Kse(_i);if(ot.attrName=Qi,ot.attrValue=er,ot.keepAttr=!0,ot.forceKeepAttr=void 0,Ke(Z.uponSanitizeAttribute,ae,ot),er=ot.attrValue,xt&&(Qi==="id"||Qi==="name")&&(Gr(ct,ae),er=fn+er),Ue&&Ga(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,er)){Gr(ct,ae);continue}if(Qi==="attributename"&&J5(er,"href")){Gr(ct,ae);continue}if(ot.forceKeepAttr)continue;if(!ot.keepAttr){Gr(ct,ae);continue}if(!oe&&Ga(/\/>/i,er)){Gr(ct,ae);continue}Ye&&cS([ee,ne,Q],Na=>{er=xg(er,Na," ")});const Ai=Jt(ae.nodeName);if(!Pt(Ai,Qi,er)){Gr(ct,ae);continue}if(N&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!mr)switch(b.getAttributeType(Ai,Qi)){case"TrustedHTML":{er=N.createHTML(er);break}case"TrustedScriptURL":{er=N.createScriptURL(er);break}}if(er!==_i)try{mr?ae.setAttributeNS(mr,ct,er):ae.setAttribute(ct,er),De(ae)?vn(ae):Aj(e.removed)}catch{Gr(ct,ae)}}Ke(Z.afterSanitizeAttributes,ae,null)},Qn=function Xe(ae){let Me=null;const ot=te(ae);for(Ke(Z.beforeSanitizeShadowDOM,ae,null);Me=ot.nextNode();)Ke(Z.uponSanitizeShadowNode,Me,null),Ht(Me),Nt(Me),Me.content instanceof s&&Xe(Me.content);Ke(Z.afterSanitizeShadowDOM,ae,null)};return e.sanitize=function(Xe){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,ot=null,pn=null,dn=null;if(On=!Xe,On&&(Xe="<!-->"),typeof Xe!="string"&&!Ze(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw wg("dirty is not a string, aborting")}else throw wg("toString is not a function");if(!e.isSupported)return Xe;if(gt||un(ae),e.removed=[],typeof Xe=="string"&&(Dt=!1),Dt){if(Xe.nodeName){const mi=Jt(Xe.nodeName);if(!le[mi]||Ne[mi])throw wg("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof u)Me=pi("<!---->"),ot=Me.ownerDocument.importNode(Xe,!0),ot.nodeType===Rg.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Me=ot:Me.appendChild(ot);else{if(!zt&&!Ye&&!et&&Xe.indexOf("<")===-1)return N&&Kt?N.createHTML(Xe):Xe;if(Me=pi(Xe),!Me)return zt?null:Kt?R:""}Me&&yt&&vn(Me.firstChild);const ct=te(Dt?Xe:Me);for(;pn=ct.nextNode();)Ht(pn),Nt(pn),pn.content instanceof s&&Qn(pn.content);if(Dt)return Xe;if(zt){if(st)for(dn=H.call(Me.ownerDocument);Me.firstChild;)dn.appendChild(Me.firstChild);else dn=Me;return(ge.shadowroot||ge.shadowrootmode)&&(dn=G.call(r,dn,!0)),dn}let mr=et?Me.outerHTML:Me.innerHTML;return et&&le["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&Ga(Dj,Me.ownerDocument.doctype.name)&&(mr="<!DOCTYPE "+Me.ownerDocument.doctype.name+`>
891
891
  `+mr),Ye&&cS([ee,ne,Q],mi=>{mr=xg(mr,mi," ")}),N&&Kt?N.createHTML(mr):mr},e.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};un(Xe),gt=!0},e.clearConfig=function(){$r=null,gt=!1},e.isValidAttribute=function(Xe,ae,Me){$r||un({});const ot=Jt(Xe),pn=Jt(ae);return Pt(ot,pn,Me)},e.addHook=function(Xe,ae){typeof ae=="function"&&_g(Z[Xe],ae)},e.removeHook=function(Xe,ae){if(ae!==void 0){const Me=$se(Z[Xe],ae);return Me===-1?void 0:Gse(Z[Xe],Me,1)[0]}return Aj(Z[Xe])},e.removeHooks=function(Xe){Z[Xe]=[]},e.removeAllHooks=function(){Z=Ij()},e}var jj=Fj();const cle=({previewImageInfo:t,setPreviewImageInfo:e,isPrivate:n=!1})=>{const[r,i]=L.useState(1),s=L.useRef(null),l=()=>{e(lw),i(1)};L.useEffect(()=>{const w=_=>{_.key==="Escape"&&l()};return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[]);const{fileName:u,isOpen:d,loading:h,error:v,url:g,height:S,width:b}=t||{},E=L.useMemo(()=>g==null?void 0:g.split("?")[0].split("/").pop(),[g]);return T.jsx("div",{children:d&&T.jsxs("div",{className:"ed-overflow-hidden",children:[T.jsx("div",{className:"ed-h-full ed-w-full ed-z-[1000] ed-fixed ed-bg-black/80 ed-inset-0"}),T.jsxs("div",{className:"ed-size-full ed-flex items-center ed-w-full ed-h-full ed-justify-center ed-overflow-hidden ed-fixed ed-top-9 ed-left-0 ed-z-[1100]",children:[h?T.jsx(Qh,{}):!v&&g&&T.jsx("div",{ref:s,style:{transform:`scale(${r})`,transformOrigin:"center center",transition:"transform 0.2s ease-out"},children:T.jsx(Io,{alt:"Feedback attachment",className:"ed-max-w-[90vw] ed-max-h-[90vh] ed-object-contain ed-select-none",height:S,src:g,width:b,isPrivate:n})}),v&&T.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-red",children:v})]}),T.jsxs("div",{className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-16 ed-flex ed-items-center ed-gap-3",children:[T.jsx("a",{href:`${g}&dl=${u||E}`,className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",title:"Download",children:T.jsx(A2,{className:"ed-size-4",strokeWidth:"2"})}),T.jsx("button",{type:"button",className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-5 ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",onClick:l,title:"Close (Esc)",children:T.jsx(bl,{className:"ed-size-4",strokeWidth:"2"})})]}),!h&&!v&&T.jsx("div",{className:"ed-fixed ed-z-[1100] ed-bottom-5 ed-left-1/2 ed-transform -ed-translate-x-1/2",children:T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-bg-black/70 ed-rounded-lg ed-p-3",children:[T.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(w=>Math.max(w/1.5,.5)),disabled:r<=.5,title:"Zoom Out",children:T.jsx(a6,{className:"ed-size-5",strokeWidth:"2"})}),T.jsxs("span",{className:"ed-text-white ed-text-sm ed-min-w-[3rem] ed-text-center ed-font-medium",children:[Math.round(r*100),"%"]}),T.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(w=>Math.min(w*1.5,5)),disabled:r>=5,title:"Zoom In",children:T.jsx(r6,{className:"ed-size-5",strokeWidth:"2"})}),T.jsx("div",{className:"ed-w-px ed-h-5 ed-bg-white/30 ed-mx-1"}),T.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(1),title:"Reset",children:T.jsx(j2,{className:"ed-size-5",strokeWidth:"2"})})]})})]})})},fle=({filesData:t=[]})=>{var S;const[e,n]=L.useState(!1),[r,i]=L.useState(lw),s=t==null?void 0:t.filter(b=>/\.(jpg|jpeg|png|gif|webp)$/i.test(b.name)),l=t==null?void 0:t.filter(b=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(b.name)),u=()=>n(!0),d=e?s:s==null?void 0:s.slice(0,2),h=kt.size(s)-2,v=b=>{try{const E=`${cG()}?id=${b}&download=true`;E&&window.open(E,"_blank")}catch(E){console.error(E)}},g=async b=>{i(E=>({...E,loading:!0}));try{const E=await aN({fit:"scale",isPrivate:!1,needActualSize:!0,path:b==null?void 0:b.key,quality:100});if(E){const w=await hG(E);i(_=>({..._,isOpen:!0,url:E,fileName:b==null?void 0:b.title,image:E,loading:!1,height:w==null?void 0:w.height,width:w==null?void 0:w.width}))}}catch{i({...lw,error:"Failed to load image"})}};return T.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[kt.size(s)>0&&T.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[d.map(b=>T.jsx("div",{onClick:()=>g(b),role:"button",tabIndex:0,children:T.jsx(Io,{path:b.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"})},b==null?void 0:b.id)),!e&&h>0&&T.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:u,children:[T.jsx(Io,{path:(S=s[2])==null?void 0:S.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),T.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:T.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:T.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",h]})})})]})]}),kt.size(l)>0&&T.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:l.map(b=>T.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("div",{className:"ed-flex-shrink-0",children:T.jsx(Tee,{})}),T.jsx("p",{title:b.title,className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:uw(b.title,20)})]}),T.jsx("button",{className:"ed-flex-shrink-0",type:"button",onClick:()=>v(b==null?void 0:b.id),children:T.jsx(O2,{className:"ed-text-brand-link ed-size-5"})})]},b==null?void 0:b.id))}),(r==null?void 0:r.isOpen)&&T.jsx(cle,{previewImageInfo:r,setPreviewImageInfo:i})]})},iR=({context:t,emails:e})=>T.jsxs("div",{className:"ed-flex ed-items-start ed-gap-2 ",children:[T.jsxs("p",{className:"ed-text-dark",children:[t,":"]}),T.jsx("div",{className:"ed-flex ed-flex-wrap ed-gap-1",children:e.slice(0,3).map((n,r)=>T.jsxs("p",{className:"ed-text-regular ed-flex ed-items-center ed-gap-2",children:[uw(n,30),r===2&&kt.size(e)-3>0?T.jsx(B5,{classNames:{body:"ed-text-regular"},zIndex:99999999,placement:"top",title:e.join(", "),children:T.jsxs("span",{className:"ed-text-brand ed-cursor-pointer",children:["+",kt.size(e)-3," more"]})}):""]},n))})]});var hS={exports:{}},dle=hS.exports,Vj;function hle(){return Vj||(Vj=1,(function(t,e){(function(n,r){t.exports=r()})(dle,(function(){return function(n,r,i){n=n||{};var s=r.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(h,v,g,S){return s.fromToBase(h,v,g,S)}i.en.relativeTime=l,s.fromToBase=function(h,v,g,S,b){for(var E,w,_,O=g.$locale().relativeTime||l,k=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=k.length,N=0;N<D;N+=1){var R=k[N];R.d&&(E=S?i(h).diff(g,R.d,!0):g.diff(h,R.d,!0));var I=(n.rounding||Math.round)(Math.abs(E));if(_=E>0,I<=R.r||!R.r){I<=1&&N>0&&(R=k[N-1]);var P=O[R.l];b&&(I=b(""+I)),w=typeof P=="string"?P.replace("%d",I):P(I,v,R.l,_);break}}if(v)return w;var H=_?O.future:O.past;return typeof H=="function"?H(w):H.replace("%s",w)},s.to=function(h,v){return u(h,v,this,!0)},s.from=function(h,v){return u(h,v,this)};var d=function(h){return h.$u?i.utc():i()};s.toNow=function(h){return this.to(d(this),h)},s.fromNow=function(h){return this.from(d(this),h)}}}))})(hS)),hS.exports}var ple=hle();const mle=nu(ple);du.extend(mle);const vle=async(t,e)=>{const{policy:n,file:r}=t||{};return(await C6(n,r)).success?{name:t==null?void 0:t.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:e,type:"conversation_activity_attachment"}:{}},gle=async(t,e)=>{var r;const n=[];try{const i=[];for(let s=0;s<t.length;s+=1)(r=t[s])!=null&&r.id||i.push(vle(t[s],e));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),Wi("error","File upload fails","top-left")}return n};function yle(t){if(!t)return"";const e=du(t),n=du();return e.isValid()?n.diff(e,"minute")<1?"Just now":e.fromNow():""}const ble={open:{label:"Open",className:"ed-bg-[#DDF2FF] ed-text-[#1173C8] ed-border ed-border-[#A4D1F1] ed-rounded-full"},resolved:{label:"Resolved",className:"ed-bg-[#DBF8E2] ed-text-[#0E9342] ed-border ed-border-[#96D4AB] ed-rounded-full"}},Sle=t=>{if(!t)return"";if(typeof window>"u")return t;const e=jj.sanitize(t,{FORBID_TAGS:["script"],FORBID_ATTR:["style","class"]}),n=document.createElement("div");return n.innerHTML=e,n.textContent||n.innerText||""},Ele=(t=[],e=!1)=>{const n=[],r=[],i=[];return kt.forEach(t,s=>{(s==null?void 0:s.type)==="to_email"&&(e?!(s!=null&&s.is_channel)&&!n.includes(s==null?void 0:s.email)&&n.push(s==null?void 0:s.email):n.push(s==null?void 0:s.email)),(s==null?void 0:s.type)==="cc_email"&&(e?kt.some(r,{person_email:s==null?void 0:s.email})||r.push({person_email:s==null?void 0:s.email}):r.push(s==null?void 0:s.email)),(s==null?void 0:s.type)==="bcc_email"&&i.push(s==null?void 0:s.email)}),{toEmails:n,ccEmails:r,bccEmails:i}},Cle="hh:mm A",Uj=({activityMessage:t={},brand:e={},isReplying:n=!1,isInitiatedWithAi:r=!1})=>{const{id:i,analytics:s,emails:l=[],user:u,files:d,message:h,is_customer_reply:v,is_auto_response:g,is_ai_response:S,created_at:b,metadata:E={}}=t||{},[w,_]=L.useState(!1),O=()=>{_(!w)},{toEmails:k,ccEmails:D,bccEmails:N}=Ele(l),R=r&&(E==null?void 0:E.current_stage)!=="agent_chat"&&(S||g)||S,I=L.useMemo(()=>R?"Eden AI bot":u!=null&&u.id?h0(u==null?void 0:u.first_name,u==null?void 0:u.last_name,u==null?void 0:u.email):(e==null?void 0:e.name)||"",[u==null?void 0:u.id,S,g,r]),P=L.useMemo(()=>u!=null&&u.id?{...(u==null?void 0:u.avatar_file)||{},default_image_name:gl(u==null?void 0:u.first_name,u==null?void 0:u.last_name,u==null?void 0:u.email)}:{key:e==null?void 0:e.logo_icon_key,default_image_name:gl(e==null?void 0:e.name)},[u==null?void 0:u.id]),H=L.useMemo(()=>n||!h?"":jj.sanitize(h,{ADD_ATTR:["class","className","style","target","rel","href"],ADD_TAGS:["div","h6","p","span","a","ul","li"]}),[h,n]),z=!n&&Gv(H),G=Array.isArray(z)||L.isValidElement(z),Z=G?"div":"p",ee=L.useMemo(()=>G?(Array.isArray(z)?z:[z]).some(Y=>{var J,X;return(X=(J=Y==null?void 0:Y.props)==null?void 0:J.className)==null?void 0:X.includes("form-response")}):!1,[z,G]),ne=()=>z?T.jsxs("div",{className:`ed-p-2.5 ${v?"ed-bg-blue-light":"ed-bg-white-light"} ${ee?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[T.jsxs(Z,{className:`ed-text-border-dark ${ee||G?"":"ed-whitespace-pre-line ed-break-words"}`,children:[kt.size(l)>0&&T.jsxs("div",{className:"ed-border-b ed-pb-2",children:[T.jsxs("button",{type:"button",onClick:O,className:"ed-flex ed-gap-1 ed-text-regular ed-items-center",children:[T.jsx("span",{children:w?T.jsx(H0,{className:"ed-size-4"}):T.jsx(Vh,{className:"ed-size-4"})})," ",T.jsxs("span",{children:[w?"Hide":"View"," recipient"]})]}),w&&T.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-2 ed-mt-2",children:[kt.size(k)>0&&T.jsx(iR,{context:"To",emails:k}),kt.size(D)>0&&T.jsx(iR,{context:"CC",emails:D}),kt.size(N)>0&&T.jsx(iR,{context:"BCC",emails:N})]})]}),T.jsx("div",{className:"ed-mt-2 ed-text-dark",children:z})]}),T.jsx(fle,{filesData:d})]}):null,Q=s==null?void 0:s.some($=>($==null?void 0:$.status)!=="seen");return v?T.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:T.jsx(ne,{})}):T.jsxs("div",{...Q&&{"data-message-id":i},className:"ed-message ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[T.jsx("div",{className:"ed-size-7 ed-flex-shrink-0",children:R?T.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:T.jsx(Zv,{})}):T.jsx(Io,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:I,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:P==null?void 0:P.key,defaultImageName:P==null?void 0:P.default_image_name})}),T.jsxs("div",{children:[T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[T.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:I}),T.jsx("span",{className:"ed-text-border ed-text-[13px] ed-font-medium",children:du(b).format(Cle)})]}),n?T.jsx("div",{className:"ed-py-4",children:T.jsx(Qh,{})}):T.jsx(ne,{})]})]})},pS={recommend_from_knowledge_base:`<div>
892
892
  <div style="font-size: 14px; line-height: 1.6;">
893
893
  {{ai_summary}}
@@ -976,7 +976,7 @@ If anything else comes up, I'm just one message away. 👋`,channelConnecting:"P
976
976
  <p className="ed-text-border-regular ed-whitespace-pre-line">${e}</p>
977
977
  </div>
978
978
  ${r}
979
- </div>`},Mle=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var Ne,Oe,We,Le,qe;const{conversationData:i,initialStatesData:s,conversationState:l,inputFieldState:u,setInputFieldState:d,isAIThinking:h,setIsAIThinking:v,handleUpdateConversationActivityAnalytics:g,send:S}=jh(),{sendMessage:b}=h2(),E=L.useRef(null),w=L.useRef(null),_=L.useRef(!1),O=Do.get("easydesk_chat_widget_conversation_id"),{brand:k}=t,[D,N]=L.useState(null),[R,I]=L.useState(!1),[P,H]=L.useState([]),z=n||O,[G]=_v(Cg,{errorPolicy:"all",fetchPolicy:"no-cache"}),Z=async ve=>{var oe,Ye;try{const Ue=Nle({title:ve==null?void 0:ve.title,message:ve==null?void 0:ve.message,files:ve.conversation_activity_files}),et=await b({is_customer_reply:!0,message:Ue,conversation_id:z});if(et!=null&&et.id){d(yt=>({...yt,ticket_title:ve==null?void 0:ve.ticket_title,ticket_activity:ve==null?void 0:ve.ticket_activity,conversation_activity_files:ve==null?void 0:ve.conversation_activity_files}));const gt=lS(Nr.ticket.success,{ticket_id:(ve==null?void 0:ve.ticketId)||"N/A",customer_email:((oe=i==null?void 0:i.contact)==null?void 0:oe.person_email)||(u==null?void 0:u.contact_person_email)||"your email"});await b({is_auto_response:!0,message:gt,conversation_status:"closed",current_stage:"closed"},!0),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"closed"})}}catch(Ue){const{message:et,response:gt}=Ue;Wi("error",((Ye=gt==null?void 0:gt.data)==null?void 0:Ye.message)||et,"top-left")}},ee=async()=>{try{await b({conversation_id:z,message:Nr.ai.thanksFeedback,is_auto_response:!0,current_stage:"followup_feedback"})}catch(ve){console.error("Error creating follow-up message:",ve)}},ne=async()=>{var ve;try{const{data:oe}=await G({variables:{queryData:{is_live_chat_enabled:!0}}}),Ye=kt.size((ve=oe==null?void 0:oe.getChannelsForPortal)==null?void 0:ve.data)>0&&!(t!=null&&t.is_off_hour);I(Ye),await b({conversation_id:z,message:Nr.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(oe){console.error("Error handling initial no click:",oe)}},Q=async()=>{var ve;try{const{data:oe}=await G({variables:{queryData:{is_live_chat_enabled:!0}}}),Ye=kt.size((ve=oe==null?void 0:oe.getChannelsForPortal)==null?void 0:ve.data)>0&&!(t!=null&&t.is_off_hour);I(Ye),await b({conversation_id:z,message:Nr.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(oe){console.error("Error handling intermediate yes click:",oe)}},$=async()=>{var ve;try{const oe=((ve=i==null?void 0:i.contact)==null?void 0:ve.person_name)||"there",Ye=lS(Nr.ai.goodbye,{name:oe});await b({conversation_id:z,message:Ye,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"resolved"}),N("CONVERSATION_ENDED")}catch(oe){console.error("Error handling intermediate no click:",oe)}},Y=async()=>{try{await b({conversation_id:z,message:Nr.followUp.withAainAI,is_auto_response:!0,current_stage:"ai_available"})}catch(ve){console.error("Error restarting conversation:",ve)}},J=async()=>{var ve;try{const oe=((ve=i==null?void 0:i.contact)==null?void 0:ve.person_name)||"there",Ye=lS(Nr.ai.goodbye,{name:oe});await b({conversation_id:z,message:Ye,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"resolved"}),N("CONVERSATION_ENDED")}catch(oe){console.error("Error handling follow-up no click:",oe)}},X=async ve=>{try{await b({conversation_id:z,message:ve.message,is_customer_reply:ve.is_customer_reply,channel_id:ve.channel_id,current_stage:"agent_chat"}),H([]),await b({conversation_id:z,message:Nr.followUp.afterChannelSelection,is_auto_response:!0,is_customer_reply:!1,current_stage:"agent_chat"})}catch(oe){console.error("Error selecting channel:",oe)}},ce=()=>{S({type:Vn.CONVERSATION_CLOSED}),d(s.inputFieldState),N(!1),Do.remove("easydesk_chat_widget_conversation_id")},ie=((Ne=l==null?void 0:l.metaData)==null?void 0:Ne.filtered_rows)&&kt.size(l==null?void 0:l.messages)<((Oe=l==null?void 0:l.metaData)==null?void 0:Oe.filtered_rows),{loadMoreMessages:le}=h2(),de=le;L.useEffect(()=>{if(!w.current||_.current)return;const oe=setTimeout(()=>{const Ye=w.current;Ye&&requestAnimationFrame(()=>{Ye.scrollTop=Ye.scrollHeight})},100);return()=>clearTimeout(oe)},[kt.size(l==null?void 0:l.messages)]),L.useEffect(()=>{if(z&&w.current){const ve=setTimeout(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},300);return()=>clearTimeout(ve)}},[z]),L.useEffect(()=>{z&&(E.current=null)},[z]);const ge=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),xe=()=>{var oe;if(!(l!=null&&l.messages)||kt.size(l.messages)===0)return!1;const ve=l.messages[l.messages.length-1];return((oe=ve==null?void 0:ve.metadata)==null?void 0:oe.current_stage)==="agent_chat"||(i==null?void 0:i.assignee)},ye=()=>{if(h)return!0;if(!(l!=null&&l.messages)||kt.size(l.messages)===0)return!1;const ve=l.messages[l.messages.length-1],oe=ve==null?void 0:ve.metadata;return!oe||ve!=null&&ve.is_customer_reply?!1:!!(oe.current_stage&&!["agent_chat","ai_available","try_another_question"].includes(oe.current_stage)||oe.has_results===!0||oe.has_results===!1)};return L.useEffect(()=>{let ve=[];const oe=kt.debounce(async()=>{await g({seen_activity_ids:ve}),ve=[]},1e3),Ye=new IntersectionObserver(et=>{et.forEach(gt=>{if(gt.isIntersecting){const yt=gt.target.getAttribute("data-message-id");yt&&ve.push(yt)}}),kt.size(ve)&&oe()},{threshold:1}),Ue=document.querySelectorAll(".ed-message");return Ue.forEach(et=>Ye.observe(et)),()=>{oe.cancel(),Ue.forEach(et=>Ye.unobserve(et))}},[l==null?void 0:l.messages]),T.jsxs("div",{children:[T.jsx("div",{ref:w,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto ed-no-scrollbar",style:{scrollBehavior:"smooth"},children:T.jsx(T6,{dataLength:kt.size(l==null?void 0:l.messages),hasMore:ie,scrollableTarget:"activities-scroll-target",inverse:!0,next:()=>{_.current=!0,de(),setTimeout(()=>{_.current=!1},500)},children:T.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[kt.size(l==null?void 0:l.messages)?T.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&T.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[T.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),T.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(We=l==null?void 0:l.messages)==null?void 0:We.map(ve=>T.jsx("div",{className:"single-message ed-px-5 ed-pt-3 ed-animate-fadeInUp",children:["reply","file"].includes(ve==null?void 0:ve.type)?T.jsx(Uj,{activityMessage:ve,brand:k,isInitiatedWithAi:i==null?void 0:i.is_initiated_with_ai},ve==null?void 0:ve.id):T.jsx(jse,{log:ve==null?void 0:ve.log},ve==null?void 0:ve.id)},ve==null?void 0:ve.id))]}):T.jsx(Hse,{onSubmit:ve=>{d(oe=>({...oe,contact_person_name:ve==null?void 0:ve.contact_person_name,contact_person_email:ve==null?void 0:ve.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!h&&(l==null?void 0:l.messages)&&kt.size(l.messages)>0&&(()=>{const ve=l.messages[l.messages.length-1],{metadata:oe}=ve||{};if(oe&&!(ve!=null&&ve.is_customer_reply)){const{current_stage:Ye}=oe;if(!Ye&&oe.has_results===!0)return T.jsx(vS,{type:"initial",sendMessage:b,conversationId:z,onYes:ee,onNo:ne});if(Ye==="initial_feedback")return T.jsx(vS,{type:"initial",sendMessage:b,conversationId:z,onYes:ee,onNo:ne});if(Ye==="followup_feedback")return T.jsx(vS,{type:"followup",sendMessage:b,conversationId:z,onYes:Y,onNo:J});if(Ye==="intermediate_help")return T.jsx(vS,{type:"intermediate",sendMessage:b,conversationId:z,onYes:Q,onNo:$});if(Ye==="need_help")return T.jsx(Bj,{type:"need_help",sendMessage:b,conversationId:z,showChatButton:R,setIsAIThinking:v});if(!oe.has_results&&!Ye&&!(i!=null&&i.assignee))return T.jsx(Bj,{type:"no_results",sendMessage:b,conversationId:z,setIsAIThinking:v});if(Ye==="select_channel")return T.jsx(kle,{channels:P,onSubmit:X});if(Ye==="create_a_support_ticket")return T.jsx(hP,{from:"message",isAuthenticated:!0,onSubmit:Z,reqId:null,userData:u,metadata:oe})}return null})(),(((Le=l==null?void 0:l.writing_realtime_status)==null?void 0:Le.is_writing_reply)||h)&&T.jsx("div",{className:"single-message ed-px-5",children:T.jsx(Uj,{brand:k,activityMessage:{user:(qe=l==null?void 0:l.writing_realtime_status)==null?void 0:qe.author,is_customer_reply:!1,is_ai_response:h,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!ge&&kt.size(l==null?void 0:l.messages)>=3&&!D&&!ye()&&D!=="CONVERSATION_ENDED")&&T.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-pt-1 ed--mx-5 ed-px-5",children:T.jsx(Ale,{conversationId:z,handleCreateMessage:b,onAIThinkingChange:v,isAIThinking:h,useAITemplate:!xe()})}),(D&&D!=="CONVERSATION_ENDED"||ge)&&T.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:T.jsxs("p",{className:"ed-text-center ed-text-sm",children:["Your chat has ended. ",T.jsx("br",{}),"To start a new chat, ",T.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:ce,children:"click here"})]})})]})},Lle=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:s,last_conversation_activity:l,organization_brand:u,assignee:d}=t||{},{handleUpdateConversationActivityAnalytics:h}=cu(),{message:v,user:g,created_at:S,analytics:b}=l||{},{status:E}=(b==null?void 0:b[0])||{},{setting:w,name:_}=u||{},{first_name:O,last_name:k,email:D,avatar_file:N}=(d==null?void 0:d.user)||{},R=L.useMemo(()=>h0(O,k,D)||_||"Unknown User",[O,k,D,_]),I=N||(w==null?void 0:w.icon),P=(n==null?void 0:n.id)===(g==null?void 0:g.id),H=ne=>P?"ed-text-border-dark":ne?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",z=async()=>{E!=="seen"&&await h({seen_activity_ids:[l==null?void 0:l.id]}),e(r)},G=L.useMemo(()=>ble[s],[s]),Z=P&&E==="seen",ee=L.useMemo(()=>Sle(v),[v]);return T.jsxs("div",{role:"button",tabIndex:0,onClick:z,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[T.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:T.jsx(Io,{alt:R,path:I==null?void 0:I.key,defaultImageName:gl(D||_),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),T.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[T.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[T.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${H(Z)}`,children:v?ee:"[Attachment]"}),T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[T.jsx(aS,{content:T.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?T.jsx(hD,{}):T.jsx(dD,{})}),T.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),T.jsx("p",{className:`ed-text-12 ${H(Z)}`,children:uw(R,20)}),T.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),T.jsx("p",{className:"ed-text-12 ed-text-brand",children:yle(S)})]})]}),T.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!P&&E!=="seen"&&T.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),T.jsx("span",{className:"custom-children",children:T.jsx(fu,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(s)&&T.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${G==null?void 0:G.className}`,children:G==null?void 0:G.label})]})]})},Dle="easydesk_chat_widget_conversation_id",Ple=({setCurrentConversationID:t,userData:e})=>{const n=L.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:s,loadingStates:l,setOptionData:u,optionData:d}=cu(),{send:h,initialStatesData:v,setConversationState:g}=jh(),S=async()=>{h({type:Vn.CONVERSATION_CLOSED}),Do.remove(Dle),t(null),g(v.conversationState),r(!1)},b=w=>{w&&(t(w),r(!1))};L.useEffect(()=>{const w=setTimeout(()=>{var k;const _=(k=n.current)==null?void 0:k.querySelectorAll(".single-message-container"),O=_==null?void 0:_[kt.size(_)-1];O==null||O.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(w)},[kt.size(i)]);const E=(s==null?void 0:s.total_rows)>kt.size(i);return T.jsxs("div",{children:[T.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:T.jsx(T6,{dataLength:kt.size(i),hasMore:E,loader:l!=null&&l.fetchMoreLoading?T.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:T.jsx(Qh,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{u({...d,offset:d.offset+d.limit})},children:i==null?void 0:i.map(w=>T.jsx(Lle,{item:w,onSelect:b,userData:e},w.id))})}),T.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:T.jsxs("button",{onClick:S,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[T.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),T.jsx(fu,{size:16})]})})]})},Ile=()=>{const{setIsChatHistory:t}=cu();return T.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:T.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[T.jsx(Ree,{}),T.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[T.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",T.jsx(fu,{})]})]})})},Fle=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:s,isChatHistory:l,setIsChatHistory:u,setCurrentConversationID:d,currentConversationID:h}=cu(),v=L.useMemo(()=>l?kt.size(r)?T.jsx(Ple,{data:r,userData:n,setCurrentConversationID:d}):T.jsx(Ile,{}):T.jsx(Mle,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:h,setCurrentConversationID:d,refreshConversations:s}),[r,n,h,l,t,u,e]);return i!=null&&i.initialLoading?T.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:T.jsx(Qh,{})}):T.jsx("div",{children:v})};var sR={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};sR.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
979
+ </div>`},Mle=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var Ne,Oe,We,Le,qe;const{conversationData:i,initialStatesData:s,conversationState:l,inputFieldState:u,setInputFieldState:d,isAIThinking:h,setIsAIThinking:v,handleUpdateConversationActivityAnalytics:g,send:S}=jh(),{sendMessage:b}=h2();L.useRef(null);const E=L.useRef(null),w=L.useRef(null),_=L.useRef(!1),O=Do.get("easydesk_chat_widget_conversation_id"),{brand:k}=t,[D,N]=L.useState(null),[R,I]=L.useState(!1),[P,H]=L.useState([]),z=n||O,[G]=_v(Cg,{errorPolicy:"all",fetchPolicy:"no-cache"}),Z=async ve=>{var oe,Ye;try{const Ue=Nle({title:ve==null?void 0:ve.title,message:ve==null?void 0:ve.message,files:ve.conversation_activity_files}),et=await b({is_customer_reply:!0,message:Ue,conversation_id:z});if(et!=null&&et.id){d(yt=>({...yt,ticket_title:ve==null?void 0:ve.ticket_title,ticket_activity:ve==null?void 0:ve.ticket_activity,conversation_activity_files:ve==null?void 0:ve.conversation_activity_files}));const gt=lS(Nr.ticket.success,{ticket_id:(ve==null?void 0:ve.ticketId)||"N/A",customer_email:((oe=i==null?void 0:i.contact)==null?void 0:oe.person_email)||(u==null?void 0:u.contact_person_email)||"your email"});await b({is_auto_response:!0,message:gt,conversation_status:"closed",current_stage:"closed"},!0),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"closed"})}}catch(Ue){const{message:et,response:gt}=Ue;Wi("error",((Ye=gt==null?void 0:gt.data)==null?void 0:Ye.message)||et,"top-left")}},ee=async()=>{try{await b({conversation_id:z,message:Nr.ai.thanksFeedback,is_auto_response:!0,current_stage:"followup_feedback"})}catch(ve){console.error("Error creating follow-up message:",ve)}},ne=async()=>{var ve;try{const{data:oe}=await G({variables:{queryData:{is_live_chat_enabled:!0}}}),Ye=kt.size((ve=oe==null?void 0:oe.getChannelsForPortal)==null?void 0:ve.data)>0&&!(t!=null&&t.is_off_hour);I(Ye),await b({conversation_id:z,message:Nr.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(oe){console.error("Error handling initial no click:",oe)}},Q=async()=>{var ve;try{const{data:oe}=await G({variables:{queryData:{is_live_chat_enabled:!0}}}),Ye=kt.size((ve=oe==null?void 0:oe.getChannelsForPortal)==null?void 0:ve.data)>0&&!(t!=null&&t.is_off_hour);I(Ye),await b({conversation_id:z,message:Nr.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(oe){console.error("Error handling intermediate yes click:",oe)}},$=async()=>{var ve;try{const oe=((ve=i==null?void 0:i.contact)==null?void 0:ve.person_name)||"there",Ye=lS(Nr.ai.goodbye,{name:oe});await b({conversation_id:z,message:Ye,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"resolved"}),N("CONVERSATION_ENDED")}catch(oe){console.error("Error handling intermediate no click:",oe)}},Y=async()=>{try{await b({conversation_id:z,message:Nr.followUp.withAainAI,is_auto_response:!0,current_stage:"ai_available"})}catch(ve){console.error("Error restarting conversation:",ve)}},J=async()=>{var ve;try{const oe=((ve=i==null?void 0:i.contact)==null?void 0:ve.person_name)||"there",Ye=lS(Nr.ai.goodbye,{name:oe});await b({conversation_id:z,message:Ye,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),S({type:Vn.UPDATE_CONVERSATION_STATUS,status:"resolved"}),N("CONVERSATION_ENDED")}catch(oe){console.error("Error handling follow-up no click:",oe)}},X=async ve=>{try{await b({conversation_id:z,message:ve.message,is_customer_reply:ve.is_customer_reply,channel_id:ve.channel_id,current_stage:"agent_chat"}),H([]),await b({conversation_id:z,message:Nr.followUp.afterChannelSelection,is_auto_response:!0,is_customer_reply:!1,current_stage:"agent_chat"})}catch(oe){console.error("Error selecting channel:",oe)}},ce=()=>{S({type:Vn.CONVERSATION_CLOSED}),d(s.inputFieldState),N(!1),Do.remove("easydesk_chat_widget_conversation_id")},ie=((Ne=l==null?void 0:l.metaData)==null?void 0:Ne.filtered_rows)&&kt.size(l==null?void 0:l.messages)<((Oe=l==null?void 0:l.metaData)==null?void 0:Oe.filtered_rows),{loadMoreMessages:le}=h2(),de=le;L.useEffect(()=>{if(!w.current||_.current)return;const oe=setTimeout(()=>{const Ye=w.current;Ye&&requestAnimationFrame(()=>{Ye.scrollTop=Ye.scrollHeight})},100);return()=>clearTimeout(oe)},[kt.size(l==null?void 0:l.messages)]),L.useEffect(()=>{if(z&&w.current){const ve=setTimeout(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},300);return()=>clearTimeout(ve)}},[z]),L.useEffect(()=>{z&&(E.current=null)},[z]);const ge=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),xe=()=>{var oe;if(!(l!=null&&l.messages)||kt.size(l.messages)===0)return!1;const ve=l.messages[l.messages.length-1];return((oe=ve==null?void 0:ve.metadata)==null?void 0:oe.current_stage)==="agent_chat"||(i==null?void 0:i.assignee)},ye=()=>{if(h)return!0;if(!(l!=null&&l.messages)||kt.size(l.messages)===0)return!1;const ve=l.messages[l.messages.length-1],oe=ve==null?void 0:ve.metadata;return!oe||ve!=null&&ve.is_customer_reply?!1:!!(oe.current_stage&&!["agent_chat","ai_available","try_another_question"].includes(oe.current_stage)||oe.has_results===!0||oe.has_results===!1)};return L.useEffect(()=>{let ve=[];const oe=kt.debounce(async()=>{await g({seen_activity_ids:ve}),ve=[]},1e3),Ye=new IntersectionObserver(et=>{et.forEach(gt=>{if(gt.isIntersecting){const yt=gt.target.getAttribute("data-message-id");yt&&ve.push(yt)}}),kt.size(ve)&&oe()},{threshold:1}),Ue=document.querySelectorAll(".ed-message");return Ue.forEach(et=>Ye.observe(et)),()=>{oe.cancel(),Ue.forEach(et=>Ye.unobserve(et))}},[l==null?void 0:l.messages]),T.jsxs("div",{children:[T.jsx("div",{ref:w,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto ed-no-scrollbar",style:{scrollBehavior:"smooth"},children:T.jsx(T6,{dataLength:kt.size(l==null?void 0:l.messages),hasMore:ie,scrollableTarget:"activities-scroll-target",inverse:!0,next:()=>{_.current=!0,de(),setTimeout(()=>{_.current=!1},500)},children:T.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[kt.size(l==null?void 0:l.messages)?T.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&T.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[T.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),T.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(We=l==null?void 0:l.messages)==null?void 0:We.map(ve=>T.jsx("div",{className:"single-message ed-px-5 ed-pt-3 ed-animate-fadeInUp",children:["reply","file"].includes(ve==null?void 0:ve.type)?T.jsx(Uj,{activityMessage:ve,brand:k,isInitiatedWithAi:i==null?void 0:i.is_initiated_with_ai},ve==null?void 0:ve.id):T.jsx(jse,{log:ve==null?void 0:ve.log},ve==null?void 0:ve.id)},ve==null?void 0:ve.id))]}):T.jsx(Hse,{onSubmit:ve=>{d(oe=>({...oe,contact_person_name:ve==null?void 0:ve.contact_person_name,contact_person_email:ve==null?void 0:ve.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!h&&(l==null?void 0:l.messages)&&kt.size(l.messages)>0&&(()=>{const ve=l.messages[l.messages.length-1],{metadata:oe}=ve||{};if(oe&&!(ve!=null&&ve.is_customer_reply)){const{current_stage:Ye}=oe;if(!Ye&&oe.has_results===!0)return T.jsx(vS,{type:"initial",sendMessage:b,conversationId:z,onYes:ee,onNo:ne});if(Ye==="initial_feedback")return T.jsx(vS,{type:"initial",sendMessage:b,conversationId:z,onYes:ee,onNo:ne});if(Ye==="followup_feedback")return T.jsx(vS,{type:"followup",sendMessage:b,conversationId:z,onYes:Y,onNo:J});if(Ye==="intermediate_help")return T.jsx(vS,{type:"intermediate",sendMessage:b,conversationId:z,onYes:Q,onNo:$});if(Ye==="need_help")return T.jsx(Bj,{type:"need_help",sendMessage:b,conversationId:z,showChatButton:R,setIsAIThinking:v});if(!oe.has_results&&!Ye&&!(i!=null&&i.assignee))return T.jsx(Bj,{type:"no_results",sendMessage:b,conversationId:z,setIsAIThinking:v});if(Ye==="select_channel")return T.jsx(kle,{channels:P,onSubmit:X});if(Ye==="create_a_support_ticket")return T.jsx(hP,{from:"message",isAuthenticated:!0,onSubmit:Z,reqId:null,userData:u,metadata:oe})}return null})(),(((Le=l==null?void 0:l.writing_realtime_status)==null?void 0:Le.is_writing_reply)||h)&&T.jsx("div",{className:"single-message ed-px-5",children:T.jsx(Uj,{brand:k,activityMessage:{user:(qe=l==null?void 0:l.writing_realtime_status)==null?void 0:qe.author,is_customer_reply:!1,is_ai_response:h,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!ge&&kt.size(l==null?void 0:l.messages)>=3&&!D&&!ye()&&D!=="CONVERSATION_ENDED")&&T.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-pt-1 ed--mx-5 ed-px-5",children:T.jsx(Ale,{conversationId:z,handleCreateMessage:b,onAIThinkingChange:v,isAIThinking:h,useAITemplate:!xe()})}),(D&&D!=="CONVERSATION_ENDED"||ge)&&T.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:T.jsxs("p",{className:"ed-text-center ed-text-sm",children:["Your chat has ended. ",T.jsx("br",{}),"To start a new chat, ",T.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:ce,children:"click here"})]})})]})},Lle=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:s,last_conversation_activity:l,organization_brand:u,assignee:d}=t||{},{handleUpdateConversationActivityAnalytics:h}=cu(),{message:v,user:g,created_at:S,analytics:b}=l||{},{status:E}=(b==null?void 0:b[0])||{},{setting:w,name:_}=u||{},{first_name:O,last_name:k,email:D,avatar_file:N}=(d==null?void 0:d.user)||{},R=L.useMemo(()=>h0(O,k,D)||_||"Unknown User",[O,k,D,_]),I=N||(w==null?void 0:w.icon),P=(n==null?void 0:n.id)===(g==null?void 0:g.id),H=ne=>P?"ed-text-border-dark":ne?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",z=async()=>{E!=="seen"&&await h({seen_activity_ids:[l==null?void 0:l.id]}),e(r)},G=L.useMemo(()=>ble[s],[s]),Z=P&&E==="seen",ee=L.useMemo(()=>Sle(v),[v]);return T.jsxs("div",{role:"button",tabIndex:0,onClick:z,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[T.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:T.jsx(Io,{alt:R,path:I==null?void 0:I.key,defaultImageName:gl(D||_),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),T.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[T.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[T.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${H(Z)}`,children:v?ee:"[Attachment]"}),T.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[T.jsx(aS,{content:T.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?T.jsx(hD,{}):T.jsx(dD,{})}),T.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),T.jsx("p",{className:`ed-text-12 ${H(Z)}`,children:uw(R,20)}),T.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),T.jsx("p",{className:"ed-text-12 ed-text-brand",children:yle(S)})]})]}),T.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!P&&E!=="seen"&&T.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),T.jsx("span",{className:"custom-children",children:T.jsx(fu,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(s)&&T.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${G==null?void 0:G.className}`,children:G==null?void 0:G.label})]})]})},Dle="easydesk_chat_widget_conversation_id",Ple=({setCurrentConversationID:t,userData:e})=>{const n=L.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:s,loadingStates:l,setOptionData:u,optionData:d}=cu(),{send:h,initialStatesData:v,setConversationState:g}=jh(),S=async()=>{h({type:Vn.CONVERSATION_CLOSED}),Do.remove(Dle),t(null),g(v.conversationState),r(!1)},b=w=>{w&&(t(w),r(!1))};L.useEffect(()=>{const w=setTimeout(()=>{var k;const _=(k=n.current)==null?void 0:k.querySelectorAll(".single-message-container"),O=_==null?void 0:_[kt.size(_)-1];O==null||O.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(w)},[kt.size(i)]);const E=(s==null?void 0:s.total_rows)>kt.size(i);return T.jsxs("div",{children:[T.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:T.jsx(T6,{dataLength:kt.size(i),hasMore:E,loader:l!=null&&l.fetchMoreLoading?T.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:T.jsx(Qh,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{u({...d,offset:d.offset+d.limit})},children:i==null?void 0:i.map(w=>T.jsx(Lle,{item:w,onSelect:b,userData:e},w.id))})}),T.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:T.jsxs("button",{onClick:S,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[T.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),T.jsx(fu,{size:16})]})})]})},Ile=()=>{const{setIsChatHistory:t}=cu();return T.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:T.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[T.jsx(Ree,{}),T.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[T.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",T.jsx(fu,{})]})]})})},Fle=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:s,isChatHistory:l,setIsChatHistory:u,setCurrentConversationID:d,currentConversationID:h}=cu(),v=L.useMemo(()=>l?kt.size(r)?T.jsx(Ple,{data:r,userData:n,setCurrentConversationID:d}):T.jsx(Ile,{}):T.jsx(Mle,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:h,setCurrentConversationID:d,refreshConversations:s}),[r,n,h,l,t,u,e]);return i!=null&&i.initialLoading?T.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:T.jsx(Qh,{})}):T.jsx("div",{children:v})};var sR={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};sR.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
980
980
  getArticles(queryData: $queryData, optionData: $optionData) {
981
981
  data {
982
982
  id
package/npm/ed-widget.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-16{margin-left:4rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1{margin-top:.25rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[65\\%\\]{max-width:65%!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-blue-100{--tw-border-opacity: 1 !important;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pl-16{padding-left:4rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}.ed-tiptap{--ghq-checklist-bg-color: rgba(15, 22, 36, .05);--ghq-checklist-bg-active-color: rgba(29, 30, 32, .98);--ghq-checklist-border-color: rgba(37, 39, 45, .1);--ghq-checklist-border-active-color: rgba(29, 30, 32, .98);--ghq-checklist-check-icon-color: rgba(255, 255, 255, 1);--ghq-checklist-text-active: rgba(52, 55, 60, .64)}.dark .ed-tiptap{--ghq-checklist-bg-color: rgba(231, 231, 243, .07);--ghq-checklist-bg-active-color: rgba(255, 255, 255, .96);--ghq-checklist-border-color: rgba(238, 238, 246, .11);--ghq-checklist-border-active-color: rgba(255, 255, 255, .96);--ghq-checklist-check-icon-color: rgba(0, 0, 0, 1);--ghq-checklist-text-active: rgba(251, 251, 254, .75)}.ed-tiptap:first-child{margin-top:0}.ed-tiptap table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.ed-tiptap table td,.ed-tiptap table th{border:1px solid rgba(61,37,20,.12);box-sizing:border-box;min-width:1em;padding:6px 8px;position:relative;vertical-align:top}.ed-tiptap table td>*,.ed-tiptap table th>*{margin-bottom:0}.ed-tiptap table th{background-color:#3d25140d;font-weight:700;text-align:left}.ed-tiptap table th[data-background-color]{background-color:inherit}.ed-tiptap table .selectedCell:after{background:#3d251414;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.ed-tiptap table .column-resize-handle{background-color:var(--brand-color);bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.ed-tiptap .tableWrapper{margin:1.5rem 0;overflow-x:auto}.ed-tiptap.resize-cursor{cursor:ew-resize;cursor:col-resize}.ed-tiptap ol,.ed-tiptap ul{margin-top:1.5em;margin-bottom:1.5em;padding-left:1.5em}.ed-tiptap ol:first-child,.ed-tiptap ul:first-child{margin-top:0}.ed-tiptap ol:last-child,.ed-tiptap ul:last-child{margin-bottom:0}.ed-tiptap ol ol,.ed-tiptap ol ul,.ed-tiptap ul ol,.ed-tiptap ul ul{margin-top:0;margin-bottom:0}.ed-tiptap li p{margin-top:0;line-height:1.6}.ed-tiptap ol{list-style:decimal}.ed-tiptap ol ol{list-style:lower-alpha}.ed-tiptap ol ol ol{list-style:lower-roman}.ed-tiptap ul:not([data-type=taskList]){list-style:disc}.ed-tiptap ul:not([data-type=taskList]) ul{list-style:square}.ed-tiptap ul:not([data-type=taskList]) ul ul{list-style:square}.ed-tiptap ul[data-type=taskList]{padding-left:.25em}.ed-tiptap ul[data-type=taskList] li{display:flex;flex-direction:row;align-items:flex-start}.ed-tiptap ul[data-type=taskList] li:not(:has(>p:first-child)){list-style-type:none}.ed-tiptap ul[data-type=taskList] li[data-checked=true]>div>p{opacity:.5;text-decoration:line-through}.ed-tiptap ul[data-type=taskList] li[data-checked=true]>div>p span{text-decoration:line-through}.ed-tiptap ul[data-type=taskList] li label{position:relative;padding-top:.375rem;padding-right:.5rem}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}.ed-tiptap ul[data-type=taskList] li label span{display:block;width:1em;height:1em;border:1px solid var(--ghq-checklist-border-color);border-radius:var(--ghq-radius-xs, .25rem);position:relative;cursor:pointer;background-color:var(--ghq-checklist-bg-color);transition:background-color 80ms ease-out,border-color 80ms ease-out}.ed-tiptap ul[data-type=taskList] li label span:before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:.75em;height:.75em;background-color:var(--ghq-checklist-check-icon-color);opacity:0;-webkit-mask:url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000/svg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center/contain no-repeat;mask:url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000/svg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center/contain no-repeat}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]:checked+span{background:var(--ghq-checklist-bg-active-color);border-color:var(--ghq-checklist-border-active-color)}.ed-tiptap ul[data-type=taskList] li label input[type=checkbox]:checked+span:before{opacity:1}.ed-tiptap ul[data-type=taskList] li div{flex:1 1 0%;min-width:0}.ed-tiptap.ProseMirror blockquote{position:relative;padding-left:1em;padding-top:.375em;padding-bottom:.375em;margin:1.5rem 0}.ed-tiptap.ProseMirror blockquote p{margin-top:0}.ed-tiptap.ProseMirror blockquote:before,.ed-tiptap.ProseMirror blockquote.is-empty:before{position:absolute;bottom:0;left:0;top:0;height:100%;width:.25em;background-color:#222325;content:"";border-radius:0}.ed-tiptap.ProseMirror code{background-color:#0f16240d;color:#404145;border:1px solid rgba(37,39,45,.1);font-family:JetBrains Mono NL,monospace;font-size:.875em;line-height:1.4;border-radius:6px;padding:.1em .2em}.ed-tiptap.ProseMirror pre{background-color:#3838380a;color:#2c2d30;border:1px solid rgba(37,39,45,.1);margin-top:1.5em;margin-bottom:1.5em;padding:1em;font-size:1rem;border-radius:6px}.ed-tiptap.ProseMirror pre code{background-color:transparent;border:none;border-radius:0;-webkit-text-fill-color:inherit;color:inherit}.ed-tiptap.ProseMirror h1,.ed-tiptap.ProseMirror h2,.ed-tiptap.ProseMirror h3,.ed-tiptap.ProseMirror h4{position:relative;color:inherit;font-style:inherit}.ed-tiptap.ProseMirror h1:first-child,.ed-tiptap.ProseMirror h2:first-child,.ed-tiptap.ProseMirror h3:first-child,.ed-tiptap.ProseMirror h4:first-child{margin-top:0}.ed-tiptap.ProseMirror h1{font-size:1.5em;font-weight:700}.ed-tiptap.ProseMirror h2{font-size:1.25em;font-weight:700}.ed-tiptap.ProseMirror h3{font-size:1.125em;font-weight:600}.ed-tiptap.ProseMirror h4{font-size:1em;font-weight:600}.ed-tiptap.ProseMirror hr{border:none;height:1px;background-color:#25272d1a}.ed-tiptap.ProseMirror [data-type=horizontalRule]{margin-top:2.25em;margin-bottom:2.25em;padding-top:.75rem;padding-bottom:.75rem}.ed-tiptap.ProseMirror>*{position:relative}.ed-tiptap.ProseMirror p{font-size:1rem;line-height:1.25;font-weight:400}.ed-tiptap.ProseMirror span{font-size:inherit}.ed-tiptap.ProseMirror a{color:var(--brand-color)!important}.ed-tiptap.ProseMirror a{color:var(--brand-color);text-decoration:underline}.ed-tiptap.ProseMirror s,.ed-tiptap.ProseMirror s span{text-decoration:line-through}.ed-tiptap.ProseMirror u,.ed-tiptap.ProseMirror u span{text-decoration:underline}.ed-tiptap.ProseMirror [data-type=emoji] img{display:inline-block;width:1.25em;height:1.25em;cursor:text}.ed-tiptap.ProseMirror [data-type=mention]{display:inline-block}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--unresolved.ed-tiptap-thread--inline{transition:color .2s ease-in-out,background-color .2s ease-in-out;color:#34373c;border-bottom:2px dashed #fcd34d;font-weight:600}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--unresolved.ed-tiptap-thread--block:not(:has(img)){border-radius:.25rem;border-bottom:.125rem dashed #fcd34d;padding-bottom:.5rem;outline:.25rem solid transparent}.ed-tiptap.ProseMirror .ed-tiptap-thread.ed-tiptap-thread--resolved.ed-tiptap-thread--inline.ed-tiptap-thread--selected{background-color:#fcd34d;border-color:transparent;opacity:.5}.ed-tiptap.ProseMirror p.is-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ed-tiptap.ProseMirror .prosemirror-dropcursor-block,.ed-tiptap.ProseMirror .prosemirror-dropcursor-inline{background:var(--brand-color);border-radius:.25rem;margin-left:-1px;margin-right:-1px;width:100%;height:.188rem;cursor:grabbing}.ed-tiptap.ProseMirror .image-component img{max-width:300px!important;width:auto!important;height:auto!important;-o-object-fit:contain!important;object-fit:contain!important}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-16{margin-left:4rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1{margin-top:.25rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[65\\%\\]{max-width:65%!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-blue-100{--tw-border-opacity: 1 !important;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pl-16{padding-left:4rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  (function(xn,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react/jsx-runtime"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom/client","react-dom"],R):(xn=typeof globalThis<"u"?globalThis:xn||self,R(xn.EasyDeskChatWidget={},xn.React,xn.ReactJsxRuntime,xn.ReactDOMClient,xn.ReactDOM))})(this,(function(xn,R,_,bb,Ih){"use strict";var YJ=Object.defineProperty;var KJ=(xn,R,_)=>R in xn?YJ(xn,R,{enumerable:!0,configurable:!0,writable:!0,value:_}):xn[R]=_;var oe=(xn,R,_)=>KJ(xn,typeof R!="symbol"?R+"":R,_);var h4;function C3(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=C3(R),_b=!1;function fi(t){try{return t()}catch{}}const Ph=fi(()=>globalThis)||fi(()=>window)||fi(()=>self)||fi(()=>global)||fi(function(){return fi.constructor("return this")()}),Mh="4.1.6",Eb=new Map;function Sb(t){const e=Eb.get(t)||1;return Eb.set(t,e+1),`${t}:${e}:${Math.random().toString(36).slice(2)}`}function x3(t,e=0){const n=Sb("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?n:i,e).split(JSON.stringify(n)).join("<undefined>")}const wb="Invariant Violation";class Lh extends Error{constructor(e=wb){super(e),this.name=wb,Object.setPrototypeOf(this,Lh.prototype)}}const Cb=["debug","log","warn","error","silent"];let A3=Cb.indexOf("silent");function et(t,...e){if(!t)throw Yr(...e)}function cu(t){return function(e,...n){if(Cb.indexOf(t)>=A3){const r=console[t]||console.log;if(typeof e=="number"){const i=e;e=Ab(i),e||(e=kb(i,n),n=[])}r(e,...n)}}}et.debug=cu("debug"),et.log=cu("log"),et.warn=cu("warn"),et.error=cu("error");function Yr(t,...e){return new Lh(Ab(t,e)||kb(t,e))}const xb=Symbol.for("ApolloErrorMessageHandler_"+Mh);function Fh(t){if(typeof t=="string")return t;try{return x3(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Ab(t,e=[]){if(t)return Ph[xb]&&Ph[xb](t,e.map(Fh))}function kb(t,e=[]){if(t)return typeof t=="string"?e.reduce((n,r)=>n.replace(/%[sdfo]/,Fh(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Mh,message:t,args:e.map(Fh)}))}`}const Tb=Symbol.for("__APOLLO_CONTEXT__");function Dh(){et("createContext"in L,37);let t=L.createContext[Tb];return t||(Object.defineProperty(L.createContext,Tb,{value:t=L.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}const k3=({client:t,children:e})=>{const n=Dh(),r=L.useContext(n),i=L.useMemo(()=>({...r,client:t||r.client}),[r,t]);return et(i.client,38),L.createElement(n.Provider,{value:i},e)};function qo(t){const e=L.useContext(Dh()),n=t||e.client;return et(!!n,28),n}const{toString:Ob,hasOwnProperty:T3}=Object.prototype,Rb=Function.prototype.toString,jh=new Map;function mt(t,e){try{return Vh(t,e)}finally{jh.clear()}}function Vh(t,e){if(t===e)return!0;const n=Ob.call(t),r=Ob.call(e);if(n!==r)return!1;switch(n){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Ib(t,e))return!0;const i=Nb(t),o=Nb(e),a=i.length;if(a!==o.length)return!1;for(let s=0;s<a;++s)if(!T3.call(e,i[s]))return!1;for(let s=0;s<a;++s){const c=i[s];if(!Vh(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Ib(t,e))return!0;const i=t.entries(),o=n==="[object Map]";for(;;){const a=i.next();if(a.done)break;const[s,c]=a.value;if(!e.has(s)||o&&!Vh(c,e.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=Rb.call(t);return i!==Rb.call(e)?!1:!N3(i,R3)}}return!1}function Nb(t){return Object.keys(t).filter(O3,t)}function O3(t){return this[t]!==void 0}const R3="{ [native code] }";function N3(t,e){const n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}function Ib(t,e){let n=jh.get(t);if(n){if(n.has(e))return!0}else jh.set(t,n=new Set);return n.add(e),!1}function I3(t,e){if(!!!t)throw new Error(e)}const Pb={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},P3=new Set(Object.keys(Pb));function Mb(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&P3.has(e)}var Jo;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Jo||(Jo={}));var _t;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(_t||(_t={}));function Lb(t){return t===9||t===32}function M3(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(m=>m.length===0||Lb(m.charCodeAt(0))),a=n.endsWith('\\"""'),s=t.endsWith('"')&&!a,c=t.endsWith("\\"),u=s||c,d=!i||t.length>70||u||o||a;let h="";const p=i&&Lb(t.charCodeAt(0));return(d&&!p||o)&&(h+=`
3
3
  `),h+=n,(d||u)&&(h+=`
4
4
  `),'"""'+h+'"""'}const L3=10,Fb=2;function F3(t){return uu(t,[])}function uu(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return D3(t,e);default:return String(t)}}function D3(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(j3(t)){const r=t.toJSON();if(r!==t)return typeof r=="string"?r:uu(r,n)}else if(Array.isArray(t))return U3(t,n);return V3(t,n)}function j3(t){return typeof t.toJSON=="function"}function V3(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>Fb?"["+z3(t)+"]":"{ "+n.map(([i,o])=>i+": "+uu(o,e)).join(", ")+" }"}function U3(t,e){if(t.length===0)return"[]";if(e.length>Fb)return"[Array]";const n=Math.min(L3,t.length),r=t.length-n,i=[];for(let o=0;o<n;++o)i.push(uu(t[o],e));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function z3(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}function B3(t){return`"${t.replace(H3,W3)}"`}const H3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function W3(t){return G3[t.charCodeAt(0)]}const G3=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Uh=Object.freeze({});function Ri(t,e,n=Pb){const r=new Map;for(const S of Object.values(_t))r.set(S,Y3(e,S));let i,o=Array.isArray(t),a=[t],s=-1,c=[],u=t,d,h;const p=[],m=[];do{s++;const S=s===a.length,w=S&&c.length!==0;if(S){if(d=m.length===0?void 0:p[p.length-1],u=h,h=m.pop(),w)if(o){u=u.slice();let C=0;for(const[E,T]of c){const k=E-C;T===null?(u.splice(k,1),C++):u[k]=T}}else{u={...u};for(const[C,E]of c)u[C]=E}s=i.index,a=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(h){if(d=o?s:a[s],u=h[d],u==null)continue;p.push(d)}let A;if(!Array.isArray(u)){var v,b;Mb(u)||I3(!1,`Invalid AST Node: ${F3(u)}.`);const C=S?(v=r.get(u.kind))===null||v===void 0?void 0:v.leave:(b=r.get(u.kind))===null||b===void 0?void 0:b.enter;if(A=C==null?void 0:C.call(e,u,d,h,p,m),A===Uh)break;if(A===!1){if(!S){p.pop();continue}}else if(A!==void 0&&(c.push([d,A]),!S))if(Mb(A))u=A;else{p.pop();continue}}if(A===void 0&&w&&c.push([d,u]),S)p.pop();else{var y;i={inArray:o,index:s,keys:a,edits:c,prev:i},o=Array.isArray(u),a=o?u:(y=n[u.kind])!==null&&y!==void 0?y:[],s=-1,c=[],h&&m.push(h),h=u}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:t}function Y3(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function K3(t){return Ri(t,Q3)}const Z3=80,Q3={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Re(t.definitions,`
@@ -559,7 +559,7 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
559
559
  id
560
560
  }
561
561
  }
562
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Qf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Qf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Qf(r,e)})}var lv={};(function(){sv.definitions.forEach(function(e){if(e.name){var n=new Set;Qf(e,n),lv[e.name.value]=n}})})();function Dw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function ND(t,e){var n={kind:t.kind,definitions:[Dw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=lv[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=lv[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=Dw(t,s);c&&n.definitions.push(c)}),n}const ID=ND(sv,"CREATE_AN_ARTICLE_ANALYTIC"),PD=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var C,E,T,k,I,N,D,z,H,Z;const{custom_domain:i,sub_domain:o}=(r==null?void 0:r.brand)||{},a=Vu("cdnDomain").split("-")[1],s=i||`${o}.portal.${a&&a!=="prod"?`${a}.easydesk`:"easydesk"}.app`,{t:c}=ws(),[u,d]=R.useState({}),[h,p]=R.useState(!0),[m,v]=R.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[b]=Fl(RD,{errorPolicy:"all",fetchPolicy:"no-cache"}),y=async()=>{var V;try{const{data:F}=await b({variables:{queryData:{entity_id:t}}});if(F!=null&&F.getAnArticle){const j=await RO(((V=F.getAnArticle)==null?void 0:V.content)||"");d({...F.getAnArticle,content:j}),p(!1)}}catch(F){console.error(F),p(!1)}},[S,{loading:w}]=ra(ID),A=async V=>{try{await S({variables:{inputData:{article_id:t,action_type:V}}}),V==="like"&&v({isHelpful:!0})}catch(F){console.error(F)}};return R.useEffect(()=>{y(),A("view")},[t]),h||w?_.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:_.jsx(pa,{})}):_.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!m.notHelpfulModal&&_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:_.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:_.jsx(Li,{className:"ed-text-border-regular ed-size-5"})})}),_.jsxs("div",{className:"ed-px-5",children:[_.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:_.jsxs(Mw,{href:`https://${s}/solutions/articles/${u==null?void 0:u.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:ac((u==null?void 0:u.title)||"")}),_.jsx("span",{className:"ed-shrink-0",children:_.jsx(M1,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4 ",children:[_.jsx(Or,{alt:`${(E=(C=u==null?void 0:u.author)==null?void 0:C.avatar_file)==null?void 0:E.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(k=(T=u==null?void 0:u.author)==null?void 0:T.avatar_file)==null?void 0:k.key,defaultImageName:Pi((I=u==null?void 0:u.author)==null?void 0:I.first_name,(N=u==null?void 0:u.author)==null?void 0:N.last_name,(D=u==null?void 0:u.author)==null?void 0:D.email)}),_.jsxs("div",{children:[_.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",zu((z=u==null?void 0:u.author)==null?void 0:z.first_name,(H=u==null?void 0:u.author)==null?void 0:H.last_name,(Z=u==null?void 0:u.author)==null?void 0:Z.email)]}),_.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:ro(u==null?void 0:u.published_at).format("DD MMMM, YYYY")})]})]}),_.jsx("div",{className:"ed-tiptap ProseMirror",children:u!=null&&u.content?ac(u.content):null}),_.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!m.isHelpful&&!(m!=null&&m.isNotHelpful)&&_.jsxs("div",{children:[_.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),_.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[_.jsx(Cs,{title:"Helpful",Icon:Z1,btnType:"btn_bordered",fullWidthBtn:!0,loader:w,callBack:()=>A("like")}),_.jsx(Cs,{title:"Not helpful",Icon:Y1,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>v({...m,notHelpfulModal:!0})})]})]}),(m.isHelpful||(m==null?void 0:m.isNotHelpful))&&_.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[_.jsx(zF,{width:"105",height:"80"}),_.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:c("widget.label.thank_you_for_your_feedback")})]})]})]})]}),m.notHelpfulModal&&_.jsx(Lw,{setFeedbackForTheArticle:v,reqId:{article_id:t},isAuthenticated:n})]})};var cv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};cv.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
562
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Qf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Qf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Qf(r,e)})}var lv={};(function(){sv.definitions.forEach(function(e){if(e.name){var n=new Set;Qf(e,n),lv[e.name.value]=n}})})();function Dw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function ND(t,e){var n={kind:t.kind,definitions:[Dw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=lv[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=lv[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=Dw(t,s);c&&n.definitions.push(c)}),n}const ID=ND(sv,"CREATE_AN_ARTICLE_ANALYTIC"),PD=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var C,E,T,k,I,N,D,z,H,Z;const{custom_domain:i,sub_domain:o}=(r==null?void 0:r.brand)||{},a=Vu("cdnDomain").split("-")[1],s=i||`${o}.portal.${a&&a!=="prod"?`${a}.easydesk`:"easydesk"}.app`,{t:c}=ws(),[u,d]=R.useState({}),[h,p]=R.useState(!0),[m,v]=R.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[b]=Fl(RD,{errorPolicy:"all",fetchPolicy:"no-cache"}),y=async()=>{var V;try{const{data:F}=await b({variables:{queryData:{entity_id:t}}});if(F!=null&&F.getAnArticle){const j=await RO(((V=F.getAnArticle)==null?void 0:V.content)||"");d({...F.getAnArticle,content:j}),p(!1)}}catch(F){console.error(F),p(!1)}},[S,{loading:w}]=ra(ID),A=async V=>{try{await S({variables:{inputData:{article_id:t,action_type:V}}}),V==="like"&&v({isHelpful:!0})}catch(F){console.error(F)}};return R.useEffect(()=>{y(),A("view")},[t]),h?_.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:_.jsx(pa,{})}):_.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!m.notHelpfulModal&&_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:_.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:_.jsx(Li,{className:"ed-text-border-regular ed-size-5"})})}),_.jsxs("div",{className:"ed-px-5",children:[_.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:_.jsxs(Mw,{href:`https://${s}/solutions/articles/${u==null?void 0:u.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:ac((u==null?void 0:u.title)||"")}),_.jsx("span",{className:"ed-shrink-0",children:_.jsx(M1,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[_.jsx(Or,{alt:`${(E=(C=u==null?void 0:u.author)==null?void 0:C.avatar_file)==null?void 0:E.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(k=(T=u==null?void 0:u.author)==null?void 0:T.avatar_file)==null?void 0:k.key,defaultImageName:Pi((I=u==null?void 0:u.author)==null?void 0:I.first_name,(N=u==null?void 0:u.author)==null?void 0:N.last_name,(D=u==null?void 0:u.author)==null?void 0:D.email)}),_.jsxs("div",{children:[_.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",zu((z=u==null?void 0:u.author)==null?void 0:z.first_name,(H=u==null?void 0:u.author)==null?void 0:H.last_name,(Z=u==null?void 0:u.author)==null?void 0:Z.email)]}),_.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:ro(u==null?void 0:u.published_at).format("DD MMMM, YYYY")})]})]}),_.jsx("div",{className:"tiptap ProseMirror",children:u!=null&&u.content?ac(u.content):null}),_.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!m.isHelpful&&!(m!=null&&m.isNotHelpful)&&_.jsxs("div",{children:[_.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),_.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[_.jsx(Cs,{title:"Helpful",Icon:Z1,btnType:"btn_bordered",fullWidthBtn:!0,loader:w,callBack:()=>A("like")}),_.jsx(Cs,{title:"Not helpful",Icon:Y1,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>v({...m,notHelpfulModal:!0})})]})]}),(m.isHelpful||(m==null?void 0:m.isNotHelpful))&&_.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[_.jsx(zF,{width:"105",height:"80"}),_.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:c("widget.label.thank_you_for_your_feedback")})]})]})]})]}),m.notHelpfulModal&&_.jsx(Lw,{setFeedbackForTheArticle:v,reqId:{article_id:t},isAuthenticated:n})]})};var cv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};cv.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
563
563
  getSectionsWithArticles(queryData: $queryData, optionData: $optionData) {
564
564
  data {
565
565
  id
@@ -686,7 +686,7 @@ If anything else comes up, I'm just one message away. 👋`,channelConnecting:"P
686
686
  title="${y==null?void 0:y.contact_person_email}"
687
687
  >${y==null?void 0:y.contact_person_email}</p>
688
688
  </div>
689
- </div>`,is_customer_reply:!0},{message:F,is_auto_response:!0,current_stage:j}];await J0(600,1e3);const{data:U}=await w({variables:{inputData:{type:"chat",contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email,conversation_activities:G,is_initiated_with_ai:v}}}),J=U==null?void 0:U.createAConversationForPortal;J!=null&&J.id&&(n(J==null?void 0:J.id),lm("easydesk_chat_widget_conversation_id",J==null?void 0:J.id,{expires:30}),t==null||t({contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email}))}catch(Z){const{message:V,response:F}=Z;Tn("error",((H=F==null?void 0:F.data)==null?void 0:H.message)||V,"top-left"),m(!1)}finally{C(!1)}},I=D=>{const{name:z,value:H}=D.target;S(Z=>({...Z,[z]:H}))},N=R.useMemo(()=>!(y!=null&&y.contact_person_name)||!(y!=null&&y.contact_person_email)||!cm(y==null?void 0:y.contact_person_email)||A,[y,A]);return _.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[d&&!p&&_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Easy AI Bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-py-4",children:_.jsx(As,{})})]})]}),a&&!p&&_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeInUp",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Easy AI Bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:_.jsx("p",{className:"ed-text-border-dark",children:T?Dt.initial.greetingOnline:Dt.initial.greetingOffline})})]})]}),c&&!p&&_.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:_.jsxs("form",{onSubmit:k,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[_.jsxs("div",{className:"ed-space-y-2",children:[_.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",_.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),_.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:y==null?void 0:y.contact_person_name,onChange:I,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),_.jsxs("div",{className:"ed-space-y-2",children:[_.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",_.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),_.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:y==null?void 0:y.contact_person_email,onChange:I,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),_.jsx("div",{className:"ed-flex ed-justify-end",children:_.jsx(Cs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:N,loader:A,callBack:k})})]})}),p&&_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:_.jsx("p",{className:"ed-text-border-dark",children:T?Dt.initial.greetingOnline:Dt.initial.greetingOffline})})]})]}),_.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:_.jsxs("div",{className:"ed-p-5 ed-rounded-[20px] ed-bg-blue-50 ed-border ed-border-blue-100",style:{borderRadius:"20px",border:"1px solid #e3f2fd",backgroundColor:"#e3f2fd",padding:"20px"},children:[_.jsxs("div",{style:{marginBottom:"20px"},children:[_.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Name"}),_.jsx("p",{style:{fontSize:"13px",color:"#797979"},children:y==null?void 0:y.contact_person_name})]}),_.jsxs("div",{children:[_.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Email"}),_.jsx("p",{style:{fontSize:"13px",color:"#797979",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:y==null?void 0:y.contact_person_email})]})]})}),_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeIn",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-py-4",children:_.jsx(As,{})})]})]})]})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Y8,setPrototypeOf:K8,isFrozen:sW,getPrototypeOf:lW,getOwnPropertyDescriptor:cW}=Object;let{freeze:tr,seal:ti,create:jd}=Object,{apply:X0,construct:$0}=typeof Reflect<"u"&&Reflect;tr||(tr=function(e){return e}),ti||(ti=function(e){return e}),X0||(X0=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(n,i)}),$0||($0=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const Vd=rr(Array.prototype.forEach),uW=rr(Array.prototype.lastIndexOf),Z8=rr(Array.prototype.pop),Fc=rr(Array.prototype.push),fW=rr(Array.prototype.splice),Ud=rr(String.prototype.toLowerCase),ey=rr(String.prototype.toString),ty=rr(String.prototype.match),Dc=rr(String.prototype.replace),dW=rr(String.prototype.indexOf),hW=rr(String.prototype.trim),Mr=rr(Object.prototype.hasOwnProperty),nr=rr(RegExp.prototype.test),jc=pW(TypeError);function rr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return X0(t,e,r)}}function pW(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return $0(t,n)}}function st(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ud;K8&&K8(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(sW(e)||(e[r]=o),i=o)}t[i]=!0}return t}function mW(t){for(let e=0;e<t.length;e++)Mr(t,e)||(t[e]=null);return t}function Ui(t){const e=jd(null);for(const[n,r]of Y8(t))Mr(t,n)&&(Array.isArray(r)?e[n]=mW(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ui(r):e[n]=r);return e}function Vc(t,e){for(;t!==null;){const r=cW(t,e);if(r){if(r.get)return rr(r.get);if(typeof r.value=="function")return rr(r.value)}t=lW(t)}function n(){return null}return n}const Q8=tr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ny=tr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ry=tr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gW=tr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),iy=tr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vW=tr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q8=tr(["#text"]),J8=tr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),oy=tr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X8=tr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zd=tr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yW=ti(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bW=ti(/<%[\w\W]*|[\w\W]*%>/gm),_W=ti(/\$\{[\w\W]*/gm),EW=ti(/^data-[\-\w.\u00B7-\uFFFF]+$/),SW=ti(/^aria-[\-\w]+$/),$8=ti(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wW=ti(/^(?:\w+script|data):/i),CW=ti(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e4=ti(/^html$/i),xW=ti(/^[a-z][.\w]*(-[.\w]+)+$/i);var t4=Object.freeze({__proto__:null,ARIA_ATTR:SW,ATTR_WHITESPACE:CW,CUSTOM_ELEMENT:xW,DATA_ATTR:EW,DOCTYPE_NAME:e4,ERB_EXPR:bW,IS_ALLOWED_URI:$8,IS_SCRIPT_OR_DATA:wW,MUSTACHE_EXPR:yW,TMPLIT_EXPR:_W});const Uc={element:1,text:3,progressingInstruction:7,comment:8,document:9},AW=function(){return typeof window>"u"?null:window},kW=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},n4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function r4(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AW();const e=Oe=>r4(Oe);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Uc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:m}=t,v=c.prototype,b=Vc(v,"cloneNode"),y=Vc(v,"remove"),S=Vc(v,"nextSibling"),w=Vc(v,"childNodes"),A=Vc(v,"parentNode");if(typeof a=="function"){const Oe=n.createElement("template");Oe.content&&Oe.content.ownerDocument&&(n=Oe.content.ownerDocument)}let C,E="";const{implementation:T,createNodeIterator:k,createDocumentFragment:I,getElementsByTagName:N}=n,{importNode:D}=r;let z=n4();e.isSupported=typeof Y8=="function"&&typeof A=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:Z,TMPLIT_EXPR:V,DATA_ATTR:F,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:J}=t4;let{IS_ALLOWED_URI:W}=t4,K=null;const $=st({},[...Q8,...ny,...ry,...iy,...q8]);let ne=null;const le=st({},[...J8,...oy,...X8,...zd]);let ie=Object.seal(jd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,de=null;const _e=Object.seal(jd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let pe=!0,be=!0,te=!1,Y=!0,Se=!1,ve=!0,Ae=!1,Ve=!1,Le=!1,qe=!1,Te=!1,dt=!1,Ue=!0,We=!1;const xt="user-content-";let we=!0,lt=!1,vt={},fn=null;const Xt=st({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let on=null;const yr=st({},["audio","video","img","source","image","track"]);let Et=null;const St=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",$t="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Sn=zt,en=!1,Pn=null;const oo=st({},[an,$t,zt],ey);let ni=st({},["mi","mo","mn","ms","mtext"]),Lr=st({},["annotation-xml"]);const zi=st({},["title","style","font","a","script"]);let ir=null;const or=["application/xhtml+xml","text/html"],dn="text/html";let Xe=null,Mn=null;const hn=n.createElement("form"),yt=function(Q){return Q instanceof RegExp||Q instanceof Function},ht=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=Ui(Q),ir=or.indexOf(Q.PARSER_MEDIA_TYPE)===-1?dn:Q.PARSER_MEDIA_TYPE,Xe=ir==="application/xhtml+xml"?ey:Ud,K=Mr(Q,"ALLOWED_TAGS")?st({},Q.ALLOWED_TAGS,Xe):$,ne=Mr(Q,"ALLOWED_ATTR")?st({},Q.ALLOWED_ATTR,Xe):le,Pn=Mr(Q,"ALLOWED_NAMESPACES")?st({},Q.ALLOWED_NAMESPACES,ey):oo,Et=Mr(Q,"ADD_URI_SAFE_ATTR")?st(Ui(St),Q.ADD_URI_SAFE_ATTR,Xe):St,on=Mr(Q,"ADD_DATA_URI_TAGS")?st(Ui(yr),Q.ADD_DATA_URI_TAGS,Xe):yr,fn=Mr(Q,"FORBID_CONTENTS")?st({},Q.FORBID_CONTENTS,Xe):Xt,ue=Mr(Q,"FORBID_TAGS")?st({},Q.FORBID_TAGS,Xe):Ui({}),de=Mr(Q,"FORBID_ATTR")?st({},Q.FORBID_ATTR,Xe):Ui({}),vt=Mr(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,pe=Q.ALLOW_ARIA_ATTR!==!1,be=Q.ALLOW_DATA_ATTR!==!1,te=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=Q.SAFE_FOR_TEMPLATES||!1,ve=Q.SAFE_FOR_XML!==!1,Ae=Q.WHOLE_DOCUMENT||!1,qe=Q.RETURN_DOM||!1,Te=Q.RETURN_DOM_FRAGMENT||!1,dt=Q.RETURN_TRUSTED_TYPE||!1,Le=Q.FORCE_BODY||!1,Ue=Q.SANITIZE_DOM!==!1,We=Q.SANITIZE_NAMED_PROPS||!1,we=Q.KEEP_CONTENT!==!1,lt=Q.IN_PLACE||!1,W=Q.ALLOWED_URI_REGEXP||$8,Sn=Q.NAMESPACE||zt,ni=Q.MATHML_TEXT_INTEGRATION_POINTS||ni,Lr=Q.HTML_INTEGRATION_POINTS||Lr,ie=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&yt(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&yt(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(be=!1),Te&&(qe=!0),vt&&(K=st({},q8),ne=jd(null),vt.html===!0&&(st(K,Q8),st(ne,J8)),vt.svg===!0&&(st(K,ny),st(ne,oy),st(ne,zd)),vt.svgFilters===!0&&(st(K,ry),st(ne,oy),st(ne,zd)),vt.mathMl===!0&&(st(K,iy),st(ne,X8),st(ne,zd))),Mr(Q,"ADD_TAGS")||(_e.tagCheck=null),Mr(Q,"ADD_ATTR")||(_e.attributeCheck=null),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?_e.tagCheck=Q.ADD_TAGS:(K===$&&(K=Ui(K)),st(K,Q.ADD_TAGS,Xe))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?_e.attributeCheck=Q.ADD_ATTR:(ne===le&&(ne=Ui(ne)),st(ne,Q.ADD_ATTR,Xe))),Q.ADD_URI_SAFE_ATTR&&st(Et,Q.ADD_URI_SAFE_ATTR,Xe),Q.FORBID_CONTENTS&&(fn===Xt&&(fn=Ui(fn)),st(fn,Q.FORBID_CONTENTS,Xe)),Q.ADD_FORBID_CONTENTS&&(fn===Xt&&(fn=Ui(fn)),st(fn,Q.ADD_FORBID_CONTENTS,Xe)),we&&(K["#text"]=!0),Ae&&st(K,["html","head","body"]),K.table&&(st(K,["tbody"]),delete ue.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Q.TRUSTED_TYPES_POLICY,E=C.createHTML("")}else C===void 0&&(C=kW(m,i)),C!==null&&typeof E=="string"&&(E=C.createHTML(""));tr&&tr(Q),Mn=Q}},tn=st({},[...ny,...ry,...gW]),Un=st({},[...iy,...vW]),Ln=function(Q){let he=A(Q);(!he||!he.tagName)&&(he={namespaceURI:Sn,tagName:"template"});const ke=Ud(Q.tagName),bt=Ud(he.tagName);return Pn[Q.namespaceURI]?Q.namespaceURI===$t?he.namespaceURI===zt?ke==="svg":he.namespaceURI===an?ke==="svg"&&(bt==="annotation-xml"||ni[bt]):!!tn[ke]:Q.namespaceURI===an?he.namespaceURI===zt?ke==="math":he.namespaceURI===$t?ke==="math"&&Lr[bt]:!!Un[ke]:Q.namespaceURI===zt?he.namespaceURI===$t&&!Lr[bt]||he.namespaceURI===an&&!ni[bt]?!1:!Un[ke]&&(zi[ke]||!tn[ke]):!!(ir==="application/xhtml+xml"&&Pn[Q.namespaceURI]):!1},ct=function(Q){Fc(e.removed,{element:Q});try{A(Q).removeChild(Q)}catch{y(Q)}},Fn=function(Q,he){try{Fc(e.removed,{attribute:he.getAttributeNode(Q),from:he})}catch{Fc(e.removed,{attribute:null,from:he})}if(he.removeAttribute(Q),Q==="is")if(qe||Te)try{ct(he)}catch{}else try{he.setAttribute(Q,"")}catch{}},br=function(Q){let he=null,ke=null;if(Le)Q="<remove></remove>"+Q;else{const Ct=ty(Q,/^[\r\n\t ]+/);ke=Ct&&Ct[0]}ir==="application/xhtml+xml"&&Sn===zt&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const bt=C?C.createHTML(Q):Q;if(Sn===zt)try{he=new p().parseFromString(bt,ir)}catch{}if(!he||!he.documentElement){he=T.createDocument(Sn,"template",null);try{he.documentElement.innerHTML=en?E:bt}catch{}}const sn=he.body||he.documentElement;return Q&&ke&&sn.insertBefore(n.createTextNode(ke),sn.childNodes[0]||null),Sn===zt?N.call(he,Ae?"html":"body")[0]:Ae?he.documentElement:sn},wt=function(Q){return k.call(Q.ownerDocument||Q,Q,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof d)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},bn=function(Q){return typeof s=="function"&&Q instanceof s};function It(Oe,Q,he){Vd(Oe,ke=>{ke.call(e,Q,he,Mn)})}const ar=function(Q){let he=null;if(It(z.beforeSanitizeElements,Q,null),Bt(Q))return ct(Q),!0;const ke=Xe(Q.nodeName);if(It(z.uponSanitizeElement,Q,{tagName:ke,allowedTags:K}),ve&&Q.hasChildNodes()&&!bn(Q.firstElementChild)&&nr(/<[/\w!]/g,Q.innerHTML)&&nr(/<[/\w!]/g,Q.textContent)||Q.nodeType===Uc.progressingInstruction||ve&&Q.nodeType===Uc.comment&&nr(/<[/\w]/g,Q.data))return ct(Q),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(ke))&&(!K[ke]||ue[ke])){if(!ue[ke]&&zn(ke)&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,ke)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(ke)))return!1;if(we&&!fn[ke]){const bt=A(Q)||Q.parentNode,sn=w(Q)||Q.childNodes;if(sn&&bt){const Ct=sn.length;for(let pn=Ct-1;pn>=0;--pn){const sr=b(sn[pn],!0);sr.__removalCount=(Q.__removalCount||0)+1,bt.insertBefore(sr,S(Q))}}}return ct(Q),!0}return Q instanceof c&&!Ln(Q)||(ke==="noscript"||ke==="noembed"||ke==="noframes")&&nr(/<\/no(script|embed|frames)/i,Q.innerHTML)?(ct(Q),!0):(Se&&Q.nodeType===Uc.text&&(he=Q.textContent,Vd([H,Z,V],bt=>{he=Dc(he,bt," ")}),Q.textContent!==he&&(Fc(e.removed,{element:Q.cloneNode()}),Q.textContent=he)),It(z.afterSanitizeElements,Q,null),!1)},_i=function(Q,he,ke){if(de[he]||Ue&&(he==="id"||he==="name")&&(ke in n||ke in hn))return!1;if(!(be&&!de[he]&&nr(F,he))){if(!(pe&&nr(j,he))){if(!(_e.attributeCheck instanceof Function&&_e.attributeCheck(he,Q))){if(!ne[he]||de[he]){if(!(zn(Q)&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,Q)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Q))&&(ie.attributeNameCheck instanceof RegExp&&nr(ie.attributeNameCheck,he)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(he,Q))||he==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,ke)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(ke))))return!1}else if(!Et[he]){if(!nr(W,Dc(ke,U,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&Q!=="script"&&dW(ke,"data:")===0&&on[Q])){if(!(te&&!nr(G,Dc(ke,U,"")))){if(ke)return!1}}}}}}}return!0},zn=function(Q){return Q!=="annotation-xml"&&ty(Q,J)},Bn=function(Q){It(z.beforeSanitizeAttributes,Q,null);const{attributes:he}=Q;if(!he||Bt(Q))return;const ke={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let bt=he.length;for(;bt--;){const sn=he[bt],{name:Ct,namespaceURI:pn,value:sr}=sn,Fr=Xe(Ct),Ei=sr;let Vt=Ct==="value"?Ei:hW(Ei);if(ke.attrName=Fr,ke.attrValue=Vt,ke.keepAttr=!0,ke.forceKeepAttr=void 0,It(z.uponSanitizeAttribute,Q,ke),Vt=ke.attrValue,We&&(Fr==="id"||Fr==="name")&&(Fn(Ct,Q),Vt=xt+Vt),ve&&nr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Vt)){Fn(Ct,Q);continue}if(Fr==="attributename"&&ty(Vt,"href")){Fn(Ct,Q);continue}if(ke.forceKeepAttr)continue;if(!ke.keepAttr){Fn(Ct,Q);continue}if(!Y&&nr(/\/>/i,Vt)){Fn(Ct,Q);continue}Se&&Vd([H,Z,V],Bi=>{Vt=Dc(Vt,Bi," ")});const Dr=Xe(Q.nodeName);if(!_i(Dr,Fr,Vt)){Fn(Ct,Q);continue}if(C&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pn)switch(m.getAttributeType(Dr,Fr)){case"TrustedHTML":{Vt=C.createHTML(Vt);break}case"TrustedScriptURL":{Vt=C.createScriptURL(Vt);break}}if(Vt!==Ei)try{pn?Q.setAttributeNS(pn,Ct,Vt):Q.setAttribute(Ct,Vt),Bt(Q)?ct(Q):Z8(e.removed)}catch{Fn(Ct,Q)}}It(z.afterSanitizeAttributes,Q,null)},_r=function Oe(Q){let he=null;const ke=wt(Q);for(It(z.beforeSanitizeShadowDOM,Q,null);he=ke.nextNode();)It(z.uponSanitizeShadowNode,he,null),ar(he),Bn(he),he.content instanceof o&&Oe(he.content);It(z.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(Oe){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,ke=null,bt=null,sn=null;if(en=!Oe,en&&(Oe="<!-->"),typeof Oe!="string"&&!bn(Oe))if(typeof Oe.toString=="function"){if(Oe=Oe.toString(),typeof Oe!="string")throw jc("dirty is not a string, aborting")}else throw jc("toString is not a function");if(!e.isSupported)return Oe;if(Ve||ht(Q),e.removed=[],typeof Oe=="string"&&(lt=!1),lt){if(Oe.nodeName){const sr=Xe(Oe.nodeName);if(!K[sr]||ue[sr])throw jc("root node is forbidden and cannot be sanitized in-place")}}else if(Oe instanceof s)he=br("<!---->"),ke=he.ownerDocument.importNode(Oe,!0),ke.nodeType===Uc.element&&ke.nodeName==="BODY"||ke.nodeName==="HTML"?he=ke:he.appendChild(ke);else{if(!qe&&!Se&&!Ae&&Oe.indexOf("<")===-1)return C&&dt?C.createHTML(Oe):Oe;if(he=br(Oe),!he)return qe?null:dt?E:""}he&&Le&&ct(he.firstChild);const Ct=wt(lt?Oe:he);for(;bt=Ct.nextNode();)ar(bt),Bn(bt),bt.content instanceof o&&_r(bt.content);if(lt)return Oe;if(qe){if(Te)for(sn=I.call(he.ownerDocument);he.firstChild;)sn.appendChild(he.firstChild);else sn=he;return(ne.shadowroot||ne.shadowrootmode)&&(sn=D.call(r,sn,!0)),sn}let pn=Ae?he.outerHTML:he.innerHTML;return Ae&&K["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&nr(e4,he.ownerDocument.doctype.name)&&(pn="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
689
+ </div>`,is_customer_reply:!0},{message:F,is_auto_response:!0,current_stage:j}];await J0(600,1e3);const{data:U}=await w({variables:{inputData:{type:"chat",contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email,conversation_activities:G,is_initiated_with_ai:v}}}),J=U==null?void 0:U.createAConversationForPortal;J!=null&&J.id&&(n(J==null?void 0:J.id),lm("easydesk_chat_widget_conversation_id",J==null?void 0:J.id,{expires:30}),t==null||t({contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email}))}catch(Z){const{message:V,response:F}=Z;Tn("error",((H=F==null?void 0:F.data)==null?void 0:H.message)||V,"top-left"),m(!1)}finally{C(!1)}},I=D=>{const{name:z,value:H}=D.target;S(Z=>({...Z,[z]:H}))},N=R.useMemo(()=>!(y!=null&&y.contact_person_name)||!(y!=null&&y.contact_person_email)||!cm(y==null?void 0:y.contact_person_email)||A,[y,A]);return _.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[d&&!p&&_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-py-4",children:_.jsx(As,{})})]})]}),a&&!p&&_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeInUp",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:_.jsx("p",{className:"ed-text-border-dark",children:T?Dt.initial.greetingOnline:Dt.initial.greetingOffline})})]})]}),c&&!p&&_.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:_.jsxs("form",{onSubmit:k,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[_.jsxs("div",{className:"ed-space-y-2",children:[_.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",_.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),_.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:y==null?void 0:y.contact_person_name,onChange:I,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),_.jsxs("div",{className:"ed-space-y-2",children:[_.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",_.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),_.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:y==null?void 0:y.contact_person_email,onChange:I,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),_.jsx("div",{className:"ed-flex ed-justify-end",children:_.jsx(Cs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:N,loader:A,callBack:k})})]})}),p&&_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:_.jsx("p",{className:"ed-text-border-dark",children:T?Dt.initial.greetingOnline:Dt.initial.greetingOffline})})]})]}),_.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:_.jsxs("div",{className:"ed-p-5 ed-rounded-[20px] ed-bg-blue-50 ed-border ed-border-blue-100",style:{borderRadius:"20px",border:"1px solid #e3f2fd",backgroundColor:"#e3f2fd",padding:"20px"},children:[_.jsxs("div",{style:{marginBottom:"20px"},children:[_.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Name"}),_.jsx("p",{style:{fontSize:"13px",color:"#797979"},children:y==null?void 0:y.contact_person_name})]}),_.jsxs("div",{children:[_.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Email"}),_.jsx("p",{style:{fontSize:"13px",color:"#797979",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:y==null?void 0:y.contact_person_email})]})]})}),_.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeIn",children:[v?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Pi(i==null?void 0:i.name)}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:v?"Eden AI bot":i==null?void 0:i.name}),_.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:ro().format("HH:mm")})]}),_.jsx("div",{className:"ed-py-4",children:_.jsx(As,{})})]})]})]})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Y8,setPrototypeOf:K8,isFrozen:sW,getPrototypeOf:lW,getOwnPropertyDescriptor:cW}=Object;let{freeze:tr,seal:ti,create:jd}=Object,{apply:X0,construct:$0}=typeof Reflect<"u"&&Reflect;tr||(tr=function(e){return e}),ti||(ti=function(e){return e}),X0||(X0=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(n,i)}),$0||($0=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const Vd=rr(Array.prototype.forEach),uW=rr(Array.prototype.lastIndexOf),Z8=rr(Array.prototype.pop),Fc=rr(Array.prototype.push),fW=rr(Array.prototype.splice),Ud=rr(String.prototype.toLowerCase),ey=rr(String.prototype.toString),ty=rr(String.prototype.match),Dc=rr(String.prototype.replace),dW=rr(String.prototype.indexOf),hW=rr(String.prototype.trim),Mr=rr(Object.prototype.hasOwnProperty),nr=rr(RegExp.prototype.test),jc=pW(TypeError);function rr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return X0(t,e,r)}}function pW(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return $0(t,n)}}function st(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ud;K8&&K8(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(sW(e)||(e[r]=o),i=o)}t[i]=!0}return t}function mW(t){for(let e=0;e<t.length;e++)Mr(t,e)||(t[e]=null);return t}function Ui(t){const e=jd(null);for(const[n,r]of Y8(t))Mr(t,n)&&(Array.isArray(r)?e[n]=mW(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ui(r):e[n]=r);return e}function Vc(t,e){for(;t!==null;){const r=cW(t,e);if(r){if(r.get)return rr(r.get);if(typeof r.value=="function")return rr(r.value)}t=lW(t)}function n(){return null}return n}const Q8=tr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ny=tr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ry=tr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gW=tr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),iy=tr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vW=tr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q8=tr(["#text"]),J8=tr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),oy=tr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X8=tr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zd=tr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yW=ti(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bW=ti(/<%[\w\W]*|[\w\W]*%>/gm),_W=ti(/\$\{[\w\W]*/gm),EW=ti(/^data-[\-\w.\u00B7-\uFFFF]+$/),SW=ti(/^aria-[\-\w]+$/),$8=ti(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wW=ti(/^(?:\w+script|data):/i),CW=ti(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e4=ti(/^html$/i),xW=ti(/^[a-z][.\w]*(-[.\w]+)+$/i);var t4=Object.freeze({__proto__:null,ARIA_ATTR:SW,ATTR_WHITESPACE:CW,CUSTOM_ELEMENT:xW,DATA_ATTR:EW,DOCTYPE_NAME:e4,ERB_EXPR:bW,IS_ALLOWED_URI:$8,IS_SCRIPT_OR_DATA:wW,MUSTACHE_EXPR:yW,TMPLIT_EXPR:_W});const Uc={element:1,text:3,progressingInstruction:7,comment:8,document:9},AW=function(){return typeof window>"u"?null:window},kW=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},n4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function r4(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AW();const e=Oe=>r4(Oe);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Uc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:m}=t,v=c.prototype,b=Vc(v,"cloneNode"),y=Vc(v,"remove"),S=Vc(v,"nextSibling"),w=Vc(v,"childNodes"),A=Vc(v,"parentNode");if(typeof a=="function"){const Oe=n.createElement("template");Oe.content&&Oe.content.ownerDocument&&(n=Oe.content.ownerDocument)}let C,E="";const{implementation:T,createNodeIterator:k,createDocumentFragment:I,getElementsByTagName:N}=n,{importNode:D}=r;let z=n4();e.isSupported=typeof Y8=="function"&&typeof A=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:Z,TMPLIT_EXPR:V,DATA_ATTR:F,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:J}=t4;let{IS_ALLOWED_URI:W}=t4,K=null;const $=st({},[...Q8,...ny,...ry,...iy,...q8]);let ne=null;const le=st({},[...J8,...oy,...X8,...zd]);let ie=Object.seal(jd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,de=null;const _e=Object.seal(jd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let pe=!0,be=!0,te=!1,Y=!0,Se=!1,ve=!0,Ae=!1,Ve=!1,Le=!1,qe=!1,Te=!1,dt=!1,Ue=!0,We=!1;const xt="user-content-";let we=!0,lt=!1,vt={},fn=null;const Xt=st({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let on=null;const yr=st({},["audio","video","img","source","image","track"]);let Et=null;const St=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",$t="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Sn=zt,en=!1,Pn=null;const oo=st({},[an,$t,zt],ey);let ni=st({},["mi","mo","mn","ms","mtext"]),Lr=st({},["annotation-xml"]);const zi=st({},["title","style","font","a","script"]);let ir=null;const or=["application/xhtml+xml","text/html"],dn="text/html";let Xe=null,Mn=null;const hn=n.createElement("form"),yt=function(Q){return Q instanceof RegExp||Q instanceof Function},ht=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=Ui(Q),ir=or.indexOf(Q.PARSER_MEDIA_TYPE)===-1?dn:Q.PARSER_MEDIA_TYPE,Xe=ir==="application/xhtml+xml"?ey:Ud,K=Mr(Q,"ALLOWED_TAGS")?st({},Q.ALLOWED_TAGS,Xe):$,ne=Mr(Q,"ALLOWED_ATTR")?st({},Q.ALLOWED_ATTR,Xe):le,Pn=Mr(Q,"ALLOWED_NAMESPACES")?st({},Q.ALLOWED_NAMESPACES,ey):oo,Et=Mr(Q,"ADD_URI_SAFE_ATTR")?st(Ui(St),Q.ADD_URI_SAFE_ATTR,Xe):St,on=Mr(Q,"ADD_DATA_URI_TAGS")?st(Ui(yr),Q.ADD_DATA_URI_TAGS,Xe):yr,fn=Mr(Q,"FORBID_CONTENTS")?st({},Q.FORBID_CONTENTS,Xe):Xt,ue=Mr(Q,"FORBID_TAGS")?st({},Q.FORBID_TAGS,Xe):Ui({}),de=Mr(Q,"FORBID_ATTR")?st({},Q.FORBID_ATTR,Xe):Ui({}),vt=Mr(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,pe=Q.ALLOW_ARIA_ATTR!==!1,be=Q.ALLOW_DATA_ATTR!==!1,te=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=Q.SAFE_FOR_TEMPLATES||!1,ve=Q.SAFE_FOR_XML!==!1,Ae=Q.WHOLE_DOCUMENT||!1,qe=Q.RETURN_DOM||!1,Te=Q.RETURN_DOM_FRAGMENT||!1,dt=Q.RETURN_TRUSTED_TYPE||!1,Le=Q.FORCE_BODY||!1,Ue=Q.SANITIZE_DOM!==!1,We=Q.SANITIZE_NAMED_PROPS||!1,we=Q.KEEP_CONTENT!==!1,lt=Q.IN_PLACE||!1,W=Q.ALLOWED_URI_REGEXP||$8,Sn=Q.NAMESPACE||zt,ni=Q.MATHML_TEXT_INTEGRATION_POINTS||ni,Lr=Q.HTML_INTEGRATION_POINTS||Lr,ie=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&yt(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&yt(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(be=!1),Te&&(qe=!0),vt&&(K=st({},q8),ne=jd(null),vt.html===!0&&(st(K,Q8),st(ne,J8)),vt.svg===!0&&(st(K,ny),st(ne,oy),st(ne,zd)),vt.svgFilters===!0&&(st(K,ry),st(ne,oy),st(ne,zd)),vt.mathMl===!0&&(st(K,iy),st(ne,X8),st(ne,zd))),Mr(Q,"ADD_TAGS")||(_e.tagCheck=null),Mr(Q,"ADD_ATTR")||(_e.attributeCheck=null),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?_e.tagCheck=Q.ADD_TAGS:(K===$&&(K=Ui(K)),st(K,Q.ADD_TAGS,Xe))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?_e.attributeCheck=Q.ADD_ATTR:(ne===le&&(ne=Ui(ne)),st(ne,Q.ADD_ATTR,Xe))),Q.ADD_URI_SAFE_ATTR&&st(Et,Q.ADD_URI_SAFE_ATTR,Xe),Q.FORBID_CONTENTS&&(fn===Xt&&(fn=Ui(fn)),st(fn,Q.FORBID_CONTENTS,Xe)),Q.ADD_FORBID_CONTENTS&&(fn===Xt&&(fn=Ui(fn)),st(fn,Q.ADD_FORBID_CONTENTS,Xe)),we&&(K["#text"]=!0),Ae&&st(K,["html","head","body"]),K.table&&(st(K,["tbody"]),delete ue.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Q.TRUSTED_TYPES_POLICY,E=C.createHTML("")}else C===void 0&&(C=kW(m,i)),C!==null&&typeof E=="string"&&(E=C.createHTML(""));tr&&tr(Q),Mn=Q}},tn=st({},[...ny,...ry,...gW]),Un=st({},[...iy,...vW]),Ln=function(Q){let he=A(Q);(!he||!he.tagName)&&(he={namespaceURI:Sn,tagName:"template"});const ke=Ud(Q.tagName),bt=Ud(he.tagName);return Pn[Q.namespaceURI]?Q.namespaceURI===$t?he.namespaceURI===zt?ke==="svg":he.namespaceURI===an?ke==="svg"&&(bt==="annotation-xml"||ni[bt]):!!tn[ke]:Q.namespaceURI===an?he.namespaceURI===zt?ke==="math":he.namespaceURI===$t?ke==="math"&&Lr[bt]:!!Un[ke]:Q.namespaceURI===zt?he.namespaceURI===$t&&!Lr[bt]||he.namespaceURI===an&&!ni[bt]?!1:!Un[ke]&&(zi[ke]||!tn[ke]):!!(ir==="application/xhtml+xml"&&Pn[Q.namespaceURI]):!1},ct=function(Q){Fc(e.removed,{element:Q});try{A(Q).removeChild(Q)}catch{y(Q)}},Fn=function(Q,he){try{Fc(e.removed,{attribute:he.getAttributeNode(Q),from:he})}catch{Fc(e.removed,{attribute:null,from:he})}if(he.removeAttribute(Q),Q==="is")if(qe||Te)try{ct(he)}catch{}else try{he.setAttribute(Q,"")}catch{}},br=function(Q){let he=null,ke=null;if(Le)Q="<remove></remove>"+Q;else{const Ct=ty(Q,/^[\r\n\t ]+/);ke=Ct&&Ct[0]}ir==="application/xhtml+xml"&&Sn===zt&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const bt=C?C.createHTML(Q):Q;if(Sn===zt)try{he=new p().parseFromString(bt,ir)}catch{}if(!he||!he.documentElement){he=T.createDocument(Sn,"template",null);try{he.documentElement.innerHTML=en?E:bt}catch{}}const sn=he.body||he.documentElement;return Q&&ke&&sn.insertBefore(n.createTextNode(ke),sn.childNodes[0]||null),Sn===zt?N.call(he,Ae?"html":"body")[0]:Ae?he.documentElement:sn},wt=function(Q){return k.call(Q.ownerDocument||Q,Q,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof d)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},bn=function(Q){return typeof s=="function"&&Q instanceof s};function It(Oe,Q,he){Vd(Oe,ke=>{ke.call(e,Q,he,Mn)})}const ar=function(Q){let he=null;if(It(z.beforeSanitizeElements,Q,null),Bt(Q))return ct(Q),!0;const ke=Xe(Q.nodeName);if(It(z.uponSanitizeElement,Q,{tagName:ke,allowedTags:K}),ve&&Q.hasChildNodes()&&!bn(Q.firstElementChild)&&nr(/<[/\w!]/g,Q.innerHTML)&&nr(/<[/\w!]/g,Q.textContent)||Q.nodeType===Uc.progressingInstruction||ve&&Q.nodeType===Uc.comment&&nr(/<[/\w]/g,Q.data))return ct(Q),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(ke))&&(!K[ke]||ue[ke])){if(!ue[ke]&&zn(ke)&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,ke)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(ke)))return!1;if(we&&!fn[ke]){const bt=A(Q)||Q.parentNode,sn=w(Q)||Q.childNodes;if(sn&&bt){const Ct=sn.length;for(let pn=Ct-1;pn>=0;--pn){const sr=b(sn[pn],!0);sr.__removalCount=(Q.__removalCount||0)+1,bt.insertBefore(sr,S(Q))}}}return ct(Q),!0}return Q instanceof c&&!Ln(Q)||(ke==="noscript"||ke==="noembed"||ke==="noframes")&&nr(/<\/no(script|embed|frames)/i,Q.innerHTML)?(ct(Q),!0):(Se&&Q.nodeType===Uc.text&&(he=Q.textContent,Vd([H,Z,V],bt=>{he=Dc(he,bt," ")}),Q.textContent!==he&&(Fc(e.removed,{element:Q.cloneNode()}),Q.textContent=he)),It(z.afterSanitizeElements,Q,null),!1)},_i=function(Q,he,ke){if(de[he]||Ue&&(he==="id"||he==="name")&&(ke in n||ke in hn))return!1;if(!(be&&!de[he]&&nr(F,he))){if(!(pe&&nr(j,he))){if(!(_e.attributeCheck instanceof Function&&_e.attributeCheck(he,Q))){if(!ne[he]||de[he]){if(!(zn(Q)&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,Q)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Q))&&(ie.attributeNameCheck instanceof RegExp&&nr(ie.attributeNameCheck,he)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(he,Q))||he==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&nr(ie.tagNameCheck,ke)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(ke))))return!1}else if(!Et[he]){if(!nr(W,Dc(ke,U,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&Q!=="script"&&dW(ke,"data:")===0&&on[Q])){if(!(te&&!nr(G,Dc(ke,U,"")))){if(ke)return!1}}}}}}}return!0},zn=function(Q){return Q!=="annotation-xml"&&ty(Q,J)},Bn=function(Q){It(z.beforeSanitizeAttributes,Q,null);const{attributes:he}=Q;if(!he||Bt(Q))return;const ke={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let bt=he.length;for(;bt--;){const sn=he[bt],{name:Ct,namespaceURI:pn,value:sr}=sn,Fr=Xe(Ct),Ei=sr;let Vt=Ct==="value"?Ei:hW(Ei);if(ke.attrName=Fr,ke.attrValue=Vt,ke.keepAttr=!0,ke.forceKeepAttr=void 0,It(z.uponSanitizeAttribute,Q,ke),Vt=ke.attrValue,We&&(Fr==="id"||Fr==="name")&&(Fn(Ct,Q),Vt=xt+Vt),ve&&nr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Vt)){Fn(Ct,Q);continue}if(Fr==="attributename"&&ty(Vt,"href")){Fn(Ct,Q);continue}if(ke.forceKeepAttr)continue;if(!ke.keepAttr){Fn(Ct,Q);continue}if(!Y&&nr(/\/>/i,Vt)){Fn(Ct,Q);continue}Se&&Vd([H,Z,V],Bi=>{Vt=Dc(Vt,Bi," ")});const Dr=Xe(Q.nodeName);if(!_i(Dr,Fr,Vt)){Fn(Ct,Q);continue}if(C&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pn)switch(m.getAttributeType(Dr,Fr)){case"TrustedHTML":{Vt=C.createHTML(Vt);break}case"TrustedScriptURL":{Vt=C.createScriptURL(Vt);break}}if(Vt!==Ei)try{pn?Q.setAttributeNS(pn,Ct,Vt):Q.setAttribute(Ct,Vt),Bt(Q)?ct(Q):Z8(e.removed)}catch{Fn(Ct,Q)}}It(z.afterSanitizeAttributes,Q,null)},_r=function Oe(Q){let he=null;const ke=wt(Q);for(It(z.beforeSanitizeShadowDOM,Q,null);he=ke.nextNode();)It(z.uponSanitizeShadowNode,he,null),ar(he),Bn(he),he.content instanceof o&&Oe(he.content);It(z.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(Oe){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,ke=null,bt=null,sn=null;if(en=!Oe,en&&(Oe="<!-->"),typeof Oe!="string"&&!bn(Oe))if(typeof Oe.toString=="function"){if(Oe=Oe.toString(),typeof Oe!="string")throw jc("dirty is not a string, aborting")}else throw jc("toString is not a function");if(!e.isSupported)return Oe;if(Ve||ht(Q),e.removed=[],typeof Oe=="string"&&(lt=!1),lt){if(Oe.nodeName){const sr=Xe(Oe.nodeName);if(!K[sr]||ue[sr])throw jc("root node is forbidden and cannot be sanitized in-place")}}else if(Oe instanceof s)he=br("<!---->"),ke=he.ownerDocument.importNode(Oe,!0),ke.nodeType===Uc.element&&ke.nodeName==="BODY"||ke.nodeName==="HTML"?he=ke:he.appendChild(ke);else{if(!qe&&!Se&&!Ae&&Oe.indexOf("<")===-1)return C&&dt?C.createHTML(Oe):Oe;if(he=br(Oe),!he)return qe?null:dt?E:""}he&&Le&&ct(he.firstChild);const Ct=wt(lt?Oe:he);for(;bt=Ct.nextNode();)ar(bt),Bn(bt),bt.content instanceof o&&_r(bt.content);if(lt)return Oe;if(qe){if(Te)for(sn=I.call(he.ownerDocument);he.firstChild;)sn.appendChild(he.firstChild);else sn=he;return(ne.shadowroot||ne.shadowrootmode)&&(sn=D.call(r,sn,!0)),sn}let pn=Ae?he.outerHTML:he.innerHTML;return Ae&&K["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&nr(e4,he.ownerDocument.doctype.name)&&(pn="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
690
690
  `+pn),Se&&Vd([H,Z,V],sr=>{pn=Dc(pn,sr," ")}),C&&dt?C.createHTML(pn):pn},e.setConfig=function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ht(Oe),Ve=!0},e.clearConfig=function(){Mn=null,Ve=!1},e.isValidAttribute=function(Oe,Q,he){Mn||ht({});const ke=Xe(Oe),bt=Xe(Q);return _i(ke,bt,he)},e.addHook=function(Oe,Q){typeof Q=="function"&&Fc(z[Oe],Q)},e.removeHook=function(Oe,Q){if(Q!==void 0){const he=uW(z[Oe],Q);return he===-1?void 0:fW(z[Oe],he,1)[0]}return Z8(z[Oe])},e.removeHooks=function(Oe){z[Oe]=[]},e.removeAllHooks=function(){z=n4()},e}var i4=r4();const TW=({previewImageInfo:t,setPreviewImageInfo:e,isPrivate:n=!1})=>{const[r,i]=R.useState(1),o=R.useRef(null),a=()=>{e(um),i(1)};R.useEffect(()=>{const b=y=>{y.key==="Escape"&&a()};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[]);const{fileName:s,isOpen:c,loading:u,error:d,url:h,height:p,width:m}=t||{},v=R.useMemo(()=>h==null?void 0:h.split("?")[0].split("/").pop(),[h]);return _.jsx("div",{children:c&&_.jsxs("div",{className:"ed-overflow-hidden",children:[_.jsx("div",{className:"ed-h-full ed-w-full ed-z-[1000] ed-fixed ed-bg-black/80 ed-inset-0"}),_.jsxs("div",{className:"ed-size-full ed-flex items-center ed-w-full ed-h-full ed-justify-center ed-overflow-hidden ed-fixed ed-top-9 ed-left-0 ed-z-[1100]",children:[u?_.jsx(As,{}):!d&&h&&_.jsx("div",{ref:o,style:{transform:`scale(${r})`,transformOrigin:"center center",transition:"transform 0.2s ease-out"},children:_.jsx(Or,{alt:"Feedback attachment",className:"ed-max-w-[90vw] ed-max-h-[90vh] ed-object-contain ed-select-none",height:p,src:h,width:m,isPrivate:n})}),d&&_.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-red",children:d})]}),_.jsxs("div",{className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-16 ed-flex ed-items-center ed-gap-3",children:[_.jsx("a",{href:`${h}&dl=${s||v}`,className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",title:"Download",children:_.jsx(R1,{className:"ed-size-4",strokeWidth:"2"})}),_.jsx("button",{type:"button",className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-5 ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",onClick:a,title:"Close (Esc)",children:_.jsx(Li,{className:"ed-size-4",strokeWidth:"2"})})]}),!u&&!d&&_.jsx("div",{className:"ed-fixed ed-z-[1100] ed-bottom-5 ed-left-1/2 ed-transform -ed-translate-x-1/2",children:_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-bg-black/70 ed-rounded-lg ed-p-3",children:[_.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.max(b/1.5,.5)),disabled:r<=.5,title:"Zoom Out",children:_.jsx(sg,{className:"ed-size-5",strokeWidth:"2"})}),_.jsxs("span",{className:"ed-text-white ed-text-sm ed-min-w-[3rem] ed-text-center ed-font-medium",children:[Math.round(r*100),"%"]}),_.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.min(b*1.5,5)),disabled:r>=5,title:"Zoom In",children:_.jsx(og,{className:"ed-size-5",strokeWidth:"2"})}),_.jsx("div",{className:"ed-w-px ed-h-5 ed-bg-white/30 ed-mx-1"}),_.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(1),title:"Reset",children:_.jsx(U1,{className:"ed-size-5",strokeWidth:"2"})})]})})]})})},OW=({filesData:t=[]})=>{var p;const[e,n]=R.useState(!1),[r,i]=R.useState(um),o=t==null?void 0:t.filter(m=>/\.(jpg|jpeg|png|gif|webp)$/i.test(m.name)),a=t==null?void 0:t.filter(m=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(m.name)),s=()=>n(!0),c=e?o:o==null?void 0:o.slice(0,2),u=Pe.size(o)-2,d=m=>{try{const v=`${TO()}?id=${m}&download=true`;v&&window.open(v,"_blank")}catch(v){console.error(v)}},h=async m=>{i(v=>({...v,loading:!0}));try{const v=await k_({fit:"scale",isPrivate:!1,needActualSize:!0,path:m==null?void 0:m.key,quality:100});if(v){const b=await NO(v);i(y=>({...y,isOpen:!0,url:v,fileName:m==null?void 0:m.title,image:v,loading:!1,height:b==null?void 0:b.height,width:b==null?void 0:b.width}))}}catch{i({...um,error:"Failed to load image"})}};return _.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[Pe.size(o)>0&&_.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[c.map(m=>_.jsx("div",{onClick:()=>h(m),role:"button",tabIndex:0,children:_.jsx(Or,{path:m.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"})},m==null?void 0:m.id)),!e&&u>0&&_.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:s,children:[_.jsx(Or,{path:(p=o[2])==null?void 0:p.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),_.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:_.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:_.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),Pe.size(a)>0&&_.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:a.map(m=>_.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("div",{className:"ed-flex-shrink-0",children:_.jsx(WF,{})}),_.jsx("p",{title:m.title,className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:fm(m.title,20)})]}),_.jsx("button",{className:"ed-flex-shrink-0",type:"button",onClick:()=>d(m==null?void 0:m.id),children:_.jsx(I1,{className:"ed-text-brand-link ed-size-5"})})]},m==null?void 0:m.id))}),(r==null?void 0:r.isOpen)&&_.jsx(TW,{previewImageInfo:r,setPreviewImageInfo:i})]})},ay=({context:t,emails:e})=>_.jsxs("div",{className:"ed-flex ed-items-start ed-gap-2 ",children:[_.jsxs("p",{className:"ed-text-dark",children:[t,":"]}),_.jsx("div",{className:"ed-flex ed-flex-wrap ed-gap-1",children:e.slice(0,3).map((n,r)=>_.jsxs("p",{className:"ed-text-regular ed-flex ed-items-center ed-gap-2",children:[fm(n,30),r===2&&Pe.size(e)-3>0?_.jsx(G0,{classNames:{body:"ed-text-regular"},zIndex:99999999,placement:"top",title:e.join(", "),children:_.jsxs("span",{className:"ed-text-brand ed-cursor-pointer",children:["+",Pe.size(e)-3," more"]})}):""]},n))})]});var Bd={exports:{}},RW=Bd.exports,o4;function NW(){return o4||(o4=1,(function(t,e){(function(n,r){t.exports=r()})(RW,(function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,d,h,p){return o.fromToBase(u,d,h,p)}i.en.relativeTime=a,o.fromToBase=function(u,d,h,p,m){for(var v,b,y,S=h.$locale().relativeTime||a,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],A=w.length,C=0;C<A;C+=1){var E=w[C];E.d&&(v=p?i(u).diff(h,E.d,!0):h.diff(u,E.d,!0));var T=(n.rounding||Math.round)(Math.abs(v));if(y=v>0,T<=E.r||!E.r){T<=1&&C>0&&(E=w[C-1]);var k=S[E.l];m&&(T=m(""+T)),b=typeof k=="string"?k.replace("%d",T):k(T,d,E.l,y);break}}if(d)return b;var I=y?S.future:S.past;return typeof I=="function"?I(b):I.replace("%s",b)},o.to=function(u,d){return s(u,d,this,!0)},o.from=function(u,d){return s(u,d,this)};var c=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}}))})(Bd)),Bd.exports}var IW=NW();const PW=aa(IW);ro.extend(PW);const MW=async(t,e)=>{const{policy:n,file:r}=t||{};return(await Cg(n,r)).success?{name:t==null?void 0:t.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:e,type:"conversation_activity_attachment"}:{}},LW=async(t,e)=>{var r;const n=[];try{const i=[];for(let o=0;o<t.length;o+=1)(r=t[o])!=null&&r.id||i.push(MW(t[o],e));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),Tn("error","File upload fails","top-left")}return n};function FW(t){if(!t)return"";const e=ro(t),n=ro();return e.isValid()?n.diff(e,"minute")<1?"Just now":e.fromNow():""}const DW={open:{label:"Open",className:"ed-bg-[#DDF2FF] ed-text-[#1173C8] ed-border ed-border-[#A4D1F1] ed-rounded-full"},resolved:{label:"Resolved",className:"ed-bg-[#DBF8E2] ed-text-[#0E9342] ed-border ed-border-[#96D4AB] ed-rounded-full"}},jW=t=>{if(!t)return"";if(typeof window>"u")return t;const e=i4.sanitize(t,{FORBID_TAGS:["script"],FORBID_ATTR:["style","class"]}),n=document.createElement("div");return n.innerHTML=e,n.textContent||n.innerText||""},VW=(t=[],e=!1)=>{const n=[],r=[],i=[];return Pe.forEach(t,o=>{(o==null?void 0:o.type)==="to_email"&&(e?!(o!=null&&o.is_channel)&&!n.includes(o==null?void 0:o.email)&&n.push(o==null?void 0:o.email):n.push(o==null?void 0:o.email)),(o==null?void 0:o.type)==="cc_email"&&(e?Pe.some(r,{person_email:o==null?void 0:o.email})||r.push({person_email:o==null?void 0:o.email}):r.push(o==null?void 0:o.email)),(o==null?void 0:o.type)==="bcc_email"&&i.push(o==null?void 0:o.email)}),{toEmails:n,ccEmails:r,bccEmails:i}},UW="hh:mm A",a4=({activityMessage:t={},brand:e={},isReplying:n=!1,isInitiatedWithAi:r=!1})=>{const{id:i,analytics:o,emails:a=[],user:s,files:c,message:u,is_customer_reply:d,is_auto_response:h,is_ai_response:p,created_at:m,metadata:v={}}=t||{},[b,y]=R.useState(!1),S=()=>{y(!b)},{toEmails:w,ccEmails:A,bccEmails:C}=VW(a),E=r&&(v==null?void 0:v.current_stage)!=="agent_chat"&&(p||h)||p,T=R.useMemo(()=>E?"Eden AI bot":s!=null&&s.id?zu(s==null?void 0:s.first_name,s==null?void 0:s.last_name,s==null?void 0:s.email):(e==null?void 0:e.name)||"",[s==null?void 0:s.id,p,h,r]),k=R.useMemo(()=>s!=null&&s.id?{...(s==null?void 0:s.avatar_file)||{},default_image_name:Pi(s==null?void 0:s.first_name,s==null?void 0:s.last_name,s==null?void 0:s.email)}:{key:e==null?void 0:e.logo_icon_key,default_image_name:Pi(e==null?void 0:e.name)},[s==null?void 0:s.id]),I=R.useMemo(()=>n||!u?"":i4.sanitize(u,{ADD_ATTR:["class","className","style","target","rel","href"],ADD_TAGS:["div","h6","p","span","a","ul","li"]}),[u,n]),N=!n&&ac(I),D=Array.isArray(N)||R.isValidElement(N),z=D?"div":"p",H=R.useMemo(()=>D?(Array.isArray(N)?N:[N]).some(j=>{var G,U;return(U=(G=j==null?void 0:j.props)==null?void 0:G.className)==null?void 0:U.includes("form-response")}):!1,[N,D]),Z=()=>N?_.jsxs("div",{className:`ed-p-2.5 ${d?"ed-bg-blue-light":"ed-bg-white-light"} ${H?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[_.jsxs(z,{className:`ed-text-border-dark ${H||D?"":"ed-whitespace-pre-line ed-break-words"}`,children:[Pe.size(a)>0&&_.jsxs("div",{className:"ed-border-b ed-pb-2",children:[_.jsxs("button",{type:"button",onClick:S,className:"ed-flex ed-gap-1 ed-text-regular ed-items-center",children:[_.jsx("span",{children:b?_.jsx(vf,{className:"ed-size-4"}):_.jsx(ms,{className:"ed-size-4"})})," ",_.jsxs("span",{children:[b?"Hide":"View"," recipient"]})]}),b&&_.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-2 ed-mt-2",children:[Pe.size(w)>0&&_.jsx(ay,{context:"To",emails:w}),Pe.size(A)>0&&_.jsx(ay,{context:"CC",emails:A}),Pe.size(C)>0&&_.jsx(ay,{context:"BCC",emails:C})]})]}),_.jsx("div",{className:"ed-mt-2 ed-text-dark",children:N})]}),_.jsx(OW,{filesData:c})]}):null,V=o==null?void 0:o.some(F=>(F==null?void 0:F.status)!=="seen");return d?_.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:_.jsx(Z,{})}):_.jsxs("div",{...V&&{"data-message-id":i},className:"ed-message ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[_.jsx("div",{className:"ed-size-7 ed-flex-shrink-0",children:E?_.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:_.jsx(uc,{})}):_.jsx(Or,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:T,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:k==null?void 0:k.key,defaultImageName:k==null?void 0:k.default_image_name})}),_.jsxs("div",{children:[_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[_.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:T}),_.jsx("span",{className:"ed-text-border ed-text-[13px] ed-font-medium",children:ro(m).format(UW)})]}),n?_.jsx("div",{className:"ed-py-4",children:_.jsx(As,{})}):_.jsx(Z,{})]})]})},Hd={recommend_from_knowledge_base:`<div>
691
691
  <div style="font-size: 14px; line-height: 1.6;">
692
692
  {{ai_summary}}
@@ -775,7 +775,7 @@ If anything else comes up, I'm just one message away. 👋`,channelConnecting:"P
775
775
  <p className="ed-text-border-regular ed-whitespace-pre-line">${e}</p>
776
776
  </div>
777
777
  ${r}
778
- </div>`},qW=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var ue,de,_e,pe,be;const{conversationData:i,initialStatesData:o,conversationState:a,inputFieldState:s,setInputFieldState:c,isAIThinking:u,setIsAIThinking:d,handleUpdateConversationActivityAnalytics:h,send:p}=ps(),{sendMessage:m}=m1(),v=R.useRef(null),b=R.useRef(null),y=R.useRef(!1),S=kr.get("easydesk_chat_widget_conversation_id"),{brand:w}=t,[A,C]=R.useState(null),[E,T]=R.useState(!1),[k,I]=R.useState([]),N=n||S,[D]=Fl(Lc,{errorPolicy:"all",fetchPolicy:"no-cache"}),z=async te=>{var Y,Se;try{const ve=QW({title:te==null?void 0:te.title,message:te==null?void 0:te.message,files:te.conversation_activity_files}),Ae=await m({is_customer_reply:!0,message:ve,conversation_id:N});if(Ae!=null&&Ae.id){c(Le=>({...Le,ticket_title:te==null?void 0:te.ticket_title,ticket_activity:te==null?void 0:te.ticket_activity,conversation_activity_files:te==null?void 0:te.conversation_activity_files}));const Ve=Dd(Dt.ticket.success,{ticket_id:(te==null?void 0:te.ticketId)||"N/A",customer_email:((Y=i==null?void 0:i.contact)==null?void 0:Y.person_email)||(s==null?void 0:s.contact_person_email)||"your email"});await m({is_auto_response:!0,message:Ve,conversation_status:"closed",current_stage:"closed"},!0),p({type:at.UPDATE_CONVERSATION_STATUS,status:"closed"})}}catch(ve){const{message:Ae,response:Ve}=ve;Tn("error",((Se=Ve==null?void 0:Ve.data)==null?void 0:Se.message)||Ae,"top-left")}},H=async()=>{try{await m({conversation_id:N,message:Dt.ai.thanksFeedback,is_auto_response:!0,current_stage:"followup_feedback"})}catch(te){console.error("Error creating follow-up message:",te)}},Z=async()=>{var te;try{const{data:Y}=await D({variables:{queryData:{is_live_chat_enabled:!0}}}),Se=Pe.size((te=Y==null?void 0:Y.getChannelsForPortal)==null?void 0:te.data)>0&&!(t!=null&&t.is_off_hour);T(Se),await m({conversation_id:N,message:Dt.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(Y){console.error("Error handling initial no click:",Y)}},V=async()=>{var te;try{const{data:Y}=await D({variables:{queryData:{is_live_chat_enabled:!0}}}),Se=Pe.size((te=Y==null?void 0:Y.getChannelsForPortal)==null?void 0:te.data)>0&&!(t!=null&&t.is_off_hour);T(Se),await m({conversation_id:N,message:Dt.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(Y){console.error("Error handling intermediate yes click:",Y)}},F=async()=>{var te;try{const Y=((te=i==null?void 0:i.contact)==null?void 0:te.person_name)||"there",Se=Dd(Dt.ai.goodbye,{name:Y});await m({conversation_id:N,message:Se,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),p({type:at.UPDATE_CONVERSATION_STATUS,status:"resolved"}),C("CONVERSATION_ENDED")}catch(Y){console.error("Error handling intermediate no click:",Y)}},j=async()=>{try{await m({conversation_id:N,message:Dt.followUp.withAainAI,is_auto_response:!0,current_stage:"ai_available"})}catch(te){console.error("Error restarting conversation:",te)}},G=async()=>{var te;try{const Y=((te=i==null?void 0:i.contact)==null?void 0:te.person_name)||"there",Se=Dd(Dt.ai.goodbye,{name:Y});await m({conversation_id:N,message:Se,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),p({type:at.UPDATE_CONVERSATION_STATUS,status:"resolved"}),C("CONVERSATION_ENDED")}catch(Y){console.error("Error handling follow-up no click:",Y)}},U=async te=>{try{await m({conversation_id:N,message:te.message,is_customer_reply:te.is_customer_reply,channel_id:te.channel_id,current_stage:"agent_chat"}),I([]),await m({conversation_id:N,message:Dt.followUp.afterChannelSelection,is_auto_response:!0,is_customer_reply:!1,current_stage:"agent_chat"})}catch(Y){console.error("Error selecting channel:",Y)}},J=()=>{p({type:at.CONVERSATION_CLOSED}),c(o.inputFieldState),C(!1),kr.remove("easydesk_chat_widget_conversation_id")},W=((ue=a==null?void 0:a.metaData)==null?void 0:ue.filtered_rows)&&Pe.size(a==null?void 0:a.messages)<((de=a==null?void 0:a.metaData)==null?void 0:de.filtered_rows),{loadMoreMessages:K}=m1(),$=K;R.useEffect(()=>{if(!b.current||y.current)return;const Y=setTimeout(()=>{const Se=b.current;Se&&requestAnimationFrame(()=>{Se.scrollTop=Se.scrollHeight})},100);return()=>clearTimeout(Y)},[Pe.size(a==null?void 0:a.messages)]),R.useEffect(()=>{if(N&&b.current){const te=setTimeout(()=>{b.current&&(b.current.scrollTop=b.current.scrollHeight)},300);return()=>clearTimeout(te)}},[N]),R.useEffect(()=>{N&&(v.current=null)},[N]);const ne=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),le=()=>{var Y;if(!(a!=null&&a.messages)||Pe.size(a.messages)===0)return!1;const te=a.messages[a.messages.length-1];return((Y=te==null?void 0:te.metadata)==null?void 0:Y.current_stage)==="agent_chat"||(i==null?void 0:i.assignee)},ie=()=>{if(u)return!0;if(!(a!=null&&a.messages)||Pe.size(a.messages)===0)return!1;const te=a.messages[a.messages.length-1],Y=te==null?void 0:te.metadata;return!Y||te!=null&&te.is_customer_reply?!1:!!(Y.current_stage&&!["agent_chat","ai_available","try_another_question"].includes(Y.current_stage)||Y.has_results===!0||Y.has_results===!1)};return R.useEffect(()=>{let te=[];const Y=Pe.debounce(async()=>{await h({seen_activity_ids:te}),te=[]},1e3),Se=new IntersectionObserver(Ae=>{Ae.forEach(Ve=>{if(Ve.isIntersecting){const Le=Ve.target.getAttribute("data-message-id");Le&&te.push(Le)}}),Pe.size(te)&&Y()},{threshold:1}),ve=document.querySelectorAll(".ed-message");return ve.forEach(Ae=>Se.observe(Ae)),()=>{Y.cancel(),ve.forEach(Ae=>Se.unobserve(Ae))}},[a==null?void 0:a.messages]),_.jsxs("div",{children:[_.jsx("div",{ref:b,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto ed-no-scrollbar",style:{scrollBehavior:"smooth"},children:_.jsx(Tg,{dataLength:Pe.size(a==null?void 0:a.messages),hasMore:W,scrollableTarget:"activities-scroll-target",inverse:!0,next:()=>{y.current=!0,$(),setTimeout(()=>{y.current=!1},500)},children:_.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[Pe.size(a==null?void 0:a.messages)?_.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&_.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[_.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),_.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(_e=a==null?void 0:a.messages)==null?void 0:_e.map(te=>_.jsx("div",{className:"single-message ed-px-5 ed-pt-3 ed-animate-fadeInUp",children:["reply","file"].includes(te==null?void 0:te.type)?_.jsx(a4,{activityMessage:te,brand:w,isInitiatedWithAi:i==null?void 0:i.is_initiated_with_ai},te==null?void 0:te.id):_.jsx(nW,{log:te==null?void 0:te.log},te==null?void 0:te.id)},te==null?void 0:te.id))]}):_.jsx(aW,{onSubmit:te=>{c(Y=>({...Y,contact_person_name:te==null?void 0:te.contact_person_name,contact_person_email:te==null?void 0:te.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!u&&(a==null?void 0:a.messages)&&Pe.size(a.messages)>0&&(()=>{const te=a.messages[a.messages.length-1],{metadata:Y}=te||{};if(Y&&!(te!=null&&te.is_customer_reply)){const{current_stage:Se}=Y;if(!Se&&Y.has_results===!0)return _.jsx(Gd,{type:"initial",sendMessage:m,conversationId:N,onYes:H,onNo:Z});if(Se==="initial_feedback")return _.jsx(Gd,{type:"initial",sendMessage:m,conversationId:N,onYes:H,onNo:Z});if(Se==="followup_feedback")return _.jsx(Gd,{type:"followup",sendMessage:m,conversationId:N,onYes:j,onNo:G});if(Se==="intermediate_help")return _.jsx(Gd,{type:"intermediate",sendMessage:m,conversationId:N,onYes:V,onNo:F});if(Se==="need_help")return _.jsx(c4,{type:"need_help",sendMessage:m,conversationId:N,showChatButton:E,setIsAIThinking:d});if(!Y.has_results&&!Se&&!(i!=null&&i.assignee))return _.jsx(c4,{type:"no_results",sendMessage:m,conversationId:N,setIsAIThinking:d});if(Se==="select_channel")return _.jsx(KW,{channels:k,onSubmit:U});if(Se==="create_a_support_ticket")return _.jsx(Lw,{from:"message",isAuthenticated:!0,onSubmit:z,reqId:null,userData:s,metadata:Y})}return null})(),(((pe=a==null?void 0:a.writing_realtime_status)==null?void 0:pe.is_writing_reply)||u)&&_.jsx("div",{className:"single-message ed-px-5",children:_.jsx(a4,{brand:w,activityMessage:{user:(be=a==null?void 0:a.writing_realtime_status)==null?void 0:be.author,is_customer_reply:!1,is_ai_response:u,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!ne&&Pe.size(a==null?void 0:a.messages)>=3&&!A&&!ie()&&A!=="CONVERSATION_ENDED")&&_.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-pt-1 ed--mx-5 ed-px-5",children:_.jsx(YW,{conversationId:N,handleCreateMessage:m,onAIThinkingChange:d,isAIThinking:u,useAITemplate:!le()})}),(A&&A!=="CONVERSATION_ENDED"||ne)&&_.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:_.jsxs("p",{className:"ed-text-center ed-text-sm",children:["Your chat has ended. ",_.jsx("br",{}),"To start a new chat, ",_.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:J,children:"click here"})]})})]})},JW=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:o,last_conversation_activity:a,organization_brand:s,assignee:c}=t||{},{handleUpdateConversationActivityAnalytics:u}=to(),{message:d,user:h,created_at:p,analytics:m}=a||{},{status:v}=(m==null?void 0:m[0])||{},{setting:b,name:y}=s||{},{first_name:S,last_name:w,email:A,avatar_file:C}=(c==null?void 0:c.user)||{},E=R.useMemo(()=>zu(S,w,A)||y||"Unknown User",[S,w,A,y]),T=C||(b==null?void 0:b.icon),k=(n==null?void 0:n.id)===(h==null?void 0:h.id),I=Z=>k?"ed-text-border-dark":Z?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",N=async()=>{v!=="seen"&&await u({seen_activity_ids:[a==null?void 0:a.id]}),e(r)},D=R.useMemo(()=>DW[o],[o]),z=k&&v==="seen",H=R.useMemo(()=>jW(d),[d]);return _.jsxs("div",{role:"button",tabIndex:0,onClick:N,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[_.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:_.jsx(Or,{alt:E,path:T==null?void 0:T.key,defaultImageName:Pi(A||y),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),_.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[_.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[_.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${I(z)}`,children:d?H:"[Attachment]"}),_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[_.jsx(Md,{content:_.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?_.jsx(L5,{}):_.jsx(M5,{})}),_.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),_.jsx("p",{className:`ed-text-12 ${I(z)}`,children:fm(E,20)}),_.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),_.jsx("p",{className:"ed-text-12 ed-text-brand",children:FW(p)})]})]}),_.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!k&&v!=="seen"&&_.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),_.jsx("span",{className:"custom-children",children:_.jsx(no,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(o)&&_.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${D==null?void 0:D.className}`,children:D==null?void 0:D.label})]})]})},XW="easydesk_chat_widget_conversation_id",$W=({setCurrentConversationID:t,userData:e})=>{const n=R.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:o,loadingStates:a,setOptionData:s,optionData:c}=to(),{send:u,initialStatesData:d,setConversationState:h}=ps(),p=async()=>{u({type:at.CONVERSATION_CLOSED}),kr.remove(XW),t(null),h(d.conversationState),r(!1)},m=b=>{b&&(t(b),r(!1))};R.useEffect(()=>{const b=setTimeout(()=>{var w;const y=(w=n.current)==null?void 0:w.querySelectorAll(".single-message-container"),S=y==null?void 0:y[Pe.size(y)-1];S==null||S.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(b)},[Pe.size(i)]);const v=(o==null?void 0:o.total_rows)>Pe.size(i);return _.jsxs("div",{children:[_.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:_.jsx(Tg,{dataLength:Pe.size(i),hasMore:v,loader:a!=null&&a.fetchMoreLoading?_.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:_.jsx(As,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{s({...c,offset:c.offset+c.limit})},children:i==null?void 0:i.map(b=>_.jsx(JW,{item:b,onSelect:m,userData:e},b.id))})}),_.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:_.jsxs("button",{onClick:p,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[_.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),_.jsx(no,{size:16})]})})]})},eG=()=>{const{setIsChatHistory:t}=to();return _.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:_.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[_.jsx(GF,{}),_.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[_.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",_.jsx(no,{})]})]})})},tG=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:o,isChatHistory:a,setIsChatHistory:s,setCurrentConversationID:c,currentConversationID:u}=to(),d=R.useMemo(()=>a?Pe.size(r)?_.jsx($W,{data:r,userData:n,setCurrentConversationID:c}):_.jsx(eG,{}):_.jsx(qW,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:u,setCurrentConversationID:c,refreshConversations:o}),[r,n,u,a,t,s,e]);return i!=null&&i.initialLoading?_.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:_.jsx(As,{})}):_.jsx("div",{children:d})};var cy={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};cy.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
778
+ </div>`},qW=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var ue,de,_e,pe,be;const{conversationData:i,initialStatesData:o,conversationState:a,inputFieldState:s,setInputFieldState:c,isAIThinking:u,setIsAIThinking:d,handleUpdateConversationActivityAnalytics:h,send:p}=ps(),{sendMessage:m}=m1();R.useRef(null);const v=R.useRef(null),b=R.useRef(null),y=R.useRef(!1),S=kr.get("easydesk_chat_widget_conversation_id"),{brand:w}=t,[A,C]=R.useState(null),[E,T]=R.useState(!1),[k,I]=R.useState([]),N=n||S,[D]=Fl(Lc,{errorPolicy:"all",fetchPolicy:"no-cache"}),z=async te=>{var Y,Se;try{const ve=QW({title:te==null?void 0:te.title,message:te==null?void 0:te.message,files:te.conversation_activity_files}),Ae=await m({is_customer_reply:!0,message:ve,conversation_id:N});if(Ae!=null&&Ae.id){c(Le=>({...Le,ticket_title:te==null?void 0:te.ticket_title,ticket_activity:te==null?void 0:te.ticket_activity,conversation_activity_files:te==null?void 0:te.conversation_activity_files}));const Ve=Dd(Dt.ticket.success,{ticket_id:(te==null?void 0:te.ticketId)||"N/A",customer_email:((Y=i==null?void 0:i.contact)==null?void 0:Y.person_email)||(s==null?void 0:s.contact_person_email)||"your email"});await m({is_auto_response:!0,message:Ve,conversation_status:"closed",current_stage:"closed"},!0),p({type:at.UPDATE_CONVERSATION_STATUS,status:"closed"})}}catch(ve){const{message:Ae,response:Ve}=ve;Tn("error",((Se=Ve==null?void 0:Ve.data)==null?void 0:Se.message)||Ae,"top-left")}},H=async()=>{try{await m({conversation_id:N,message:Dt.ai.thanksFeedback,is_auto_response:!0,current_stage:"followup_feedback"})}catch(te){console.error("Error creating follow-up message:",te)}},Z=async()=>{var te;try{const{data:Y}=await D({variables:{queryData:{is_live_chat_enabled:!0}}}),Se=Pe.size((te=Y==null?void 0:Y.getChannelsForPortal)==null?void 0:te.data)>0&&!(t!=null&&t.is_off_hour);T(Se),await m({conversation_id:N,message:Dt.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(Y){console.error("Error handling initial no click:",Y)}},V=async()=>{var te;try{const{data:Y}=await D({variables:{queryData:{is_live_chat_enabled:!0}}}),Se=Pe.size((te=Y==null?void 0:Y.getChannelsForPortal)==null?void 0:te.data)>0&&!(t!=null&&t.is_off_hour);T(Se),await m({conversation_id:N,message:Dt.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(Y){console.error("Error handling intermediate yes click:",Y)}},F=async()=>{var te;try{const Y=((te=i==null?void 0:i.contact)==null?void 0:te.person_name)||"there",Se=Dd(Dt.ai.goodbye,{name:Y});await m({conversation_id:N,message:Se,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),p({type:at.UPDATE_CONVERSATION_STATUS,status:"resolved"}),C("CONVERSATION_ENDED")}catch(Y){console.error("Error handling intermediate no click:",Y)}},j=async()=>{try{await m({conversation_id:N,message:Dt.followUp.withAainAI,is_auto_response:!0,current_stage:"ai_available"})}catch(te){console.error("Error restarting conversation:",te)}},G=async()=>{var te;try{const Y=((te=i==null?void 0:i.contact)==null?void 0:te.person_name)||"there",Se=Dd(Dt.ai.goodbye,{name:Y});await m({conversation_id:N,message:Se,is_auto_response:!0,conversation_status:"resolved",current_stage:"closed"}),p({type:at.UPDATE_CONVERSATION_STATUS,status:"resolved"}),C("CONVERSATION_ENDED")}catch(Y){console.error("Error handling follow-up no click:",Y)}},U=async te=>{try{await m({conversation_id:N,message:te.message,is_customer_reply:te.is_customer_reply,channel_id:te.channel_id,current_stage:"agent_chat"}),I([]),await m({conversation_id:N,message:Dt.followUp.afterChannelSelection,is_auto_response:!0,is_customer_reply:!1,current_stage:"agent_chat"})}catch(Y){console.error("Error selecting channel:",Y)}},J=()=>{p({type:at.CONVERSATION_CLOSED}),c(o.inputFieldState),C(!1),kr.remove("easydesk_chat_widget_conversation_id")},W=((ue=a==null?void 0:a.metaData)==null?void 0:ue.filtered_rows)&&Pe.size(a==null?void 0:a.messages)<((de=a==null?void 0:a.metaData)==null?void 0:de.filtered_rows),{loadMoreMessages:K}=m1(),$=K;R.useEffect(()=>{if(!b.current||y.current)return;const Y=setTimeout(()=>{const Se=b.current;Se&&requestAnimationFrame(()=>{Se.scrollTop=Se.scrollHeight})},100);return()=>clearTimeout(Y)},[Pe.size(a==null?void 0:a.messages)]),R.useEffect(()=>{if(N&&b.current){const te=setTimeout(()=>{b.current&&(b.current.scrollTop=b.current.scrollHeight)},300);return()=>clearTimeout(te)}},[N]),R.useEffect(()=>{N&&(v.current=null)},[N]);const ne=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),le=()=>{var Y;if(!(a!=null&&a.messages)||Pe.size(a.messages)===0)return!1;const te=a.messages[a.messages.length-1];return((Y=te==null?void 0:te.metadata)==null?void 0:Y.current_stage)==="agent_chat"||(i==null?void 0:i.assignee)},ie=()=>{if(u)return!0;if(!(a!=null&&a.messages)||Pe.size(a.messages)===0)return!1;const te=a.messages[a.messages.length-1],Y=te==null?void 0:te.metadata;return!Y||te!=null&&te.is_customer_reply?!1:!!(Y.current_stage&&!["agent_chat","ai_available","try_another_question"].includes(Y.current_stage)||Y.has_results===!0||Y.has_results===!1)};return R.useEffect(()=>{let te=[];const Y=Pe.debounce(async()=>{await h({seen_activity_ids:te}),te=[]},1e3),Se=new IntersectionObserver(Ae=>{Ae.forEach(Ve=>{if(Ve.isIntersecting){const Le=Ve.target.getAttribute("data-message-id");Le&&te.push(Le)}}),Pe.size(te)&&Y()},{threshold:1}),ve=document.querySelectorAll(".ed-message");return ve.forEach(Ae=>Se.observe(Ae)),()=>{Y.cancel(),ve.forEach(Ae=>Se.unobserve(Ae))}},[a==null?void 0:a.messages]),_.jsxs("div",{children:[_.jsx("div",{ref:b,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto ed-no-scrollbar",style:{scrollBehavior:"smooth"},children:_.jsx(Tg,{dataLength:Pe.size(a==null?void 0:a.messages),hasMore:W,scrollableTarget:"activities-scroll-target",inverse:!0,next:()=>{y.current=!0,$(),setTimeout(()=>{y.current=!1},500)},children:_.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[Pe.size(a==null?void 0:a.messages)?_.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&_.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[_.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),_.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(_e=a==null?void 0:a.messages)==null?void 0:_e.map(te=>_.jsx("div",{className:"single-message ed-px-5 ed-pt-3 ed-animate-fadeInUp",children:["reply","file"].includes(te==null?void 0:te.type)?_.jsx(a4,{activityMessage:te,brand:w,isInitiatedWithAi:i==null?void 0:i.is_initiated_with_ai},te==null?void 0:te.id):_.jsx(nW,{log:te==null?void 0:te.log},te==null?void 0:te.id)},te==null?void 0:te.id))]}):_.jsx(aW,{onSubmit:te=>{c(Y=>({...Y,contact_person_name:te==null?void 0:te.contact_person_name,contact_person_email:te==null?void 0:te.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!u&&(a==null?void 0:a.messages)&&Pe.size(a.messages)>0&&(()=>{const te=a.messages[a.messages.length-1],{metadata:Y}=te||{};if(Y&&!(te!=null&&te.is_customer_reply)){const{current_stage:Se}=Y;if(!Se&&Y.has_results===!0)return _.jsx(Gd,{type:"initial",sendMessage:m,conversationId:N,onYes:H,onNo:Z});if(Se==="initial_feedback")return _.jsx(Gd,{type:"initial",sendMessage:m,conversationId:N,onYes:H,onNo:Z});if(Se==="followup_feedback")return _.jsx(Gd,{type:"followup",sendMessage:m,conversationId:N,onYes:j,onNo:G});if(Se==="intermediate_help")return _.jsx(Gd,{type:"intermediate",sendMessage:m,conversationId:N,onYes:V,onNo:F});if(Se==="need_help")return _.jsx(c4,{type:"need_help",sendMessage:m,conversationId:N,showChatButton:E,setIsAIThinking:d});if(!Y.has_results&&!Se&&!(i!=null&&i.assignee))return _.jsx(c4,{type:"no_results",sendMessage:m,conversationId:N,setIsAIThinking:d});if(Se==="select_channel")return _.jsx(KW,{channels:k,onSubmit:U});if(Se==="create_a_support_ticket")return _.jsx(Lw,{from:"message",isAuthenticated:!0,onSubmit:z,reqId:null,userData:s,metadata:Y})}return null})(),(((pe=a==null?void 0:a.writing_realtime_status)==null?void 0:pe.is_writing_reply)||u)&&_.jsx("div",{className:"single-message ed-px-5",children:_.jsx(a4,{brand:w,activityMessage:{user:(be=a==null?void 0:a.writing_realtime_status)==null?void 0:be.author,is_customer_reply:!1,is_ai_response:u,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!ne&&Pe.size(a==null?void 0:a.messages)>=3&&!A&&!ie()&&A!=="CONVERSATION_ENDED")&&_.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-pt-1 ed--mx-5 ed-px-5",children:_.jsx(YW,{conversationId:N,handleCreateMessage:m,onAIThinkingChange:d,isAIThinking:u,useAITemplate:!le()})}),(A&&A!=="CONVERSATION_ENDED"||ne)&&_.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:_.jsxs("p",{className:"ed-text-center ed-text-sm",children:["Your chat has ended. ",_.jsx("br",{}),"To start a new chat, ",_.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:J,children:"click here"})]})})]})},JW=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:o,last_conversation_activity:a,organization_brand:s,assignee:c}=t||{},{handleUpdateConversationActivityAnalytics:u}=to(),{message:d,user:h,created_at:p,analytics:m}=a||{},{status:v}=(m==null?void 0:m[0])||{},{setting:b,name:y}=s||{},{first_name:S,last_name:w,email:A,avatar_file:C}=(c==null?void 0:c.user)||{},E=R.useMemo(()=>zu(S,w,A)||y||"Unknown User",[S,w,A,y]),T=C||(b==null?void 0:b.icon),k=(n==null?void 0:n.id)===(h==null?void 0:h.id),I=Z=>k?"ed-text-border-dark":Z?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",N=async()=>{v!=="seen"&&await u({seen_activity_ids:[a==null?void 0:a.id]}),e(r)},D=R.useMemo(()=>DW[o],[o]),z=k&&v==="seen",H=R.useMemo(()=>jW(d),[d]);return _.jsxs("div",{role:"button",tabIndex:0,onClick:N,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[_.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:_.jsx(Or,{alt:E,path:T==null?void 0:T.key,defaultImageName:Pi(A||y),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),_.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[_.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[_.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${I(z)}`,children:d?H:"[Attachment]"}),_.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[_.jsx(Md,{content:_.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?_.jsx(L5,{}):_.jsx(M5,{})}),_.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),_.jsx("p",{className:`ed-text-12 ${I(z)}`,children:fm(E,20)}),_.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),_.jsx("p",{className:"ed-text-12 ed-text-brand",children:FW(p)})]})]}),_.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!k&&v!=="seen"&&_.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),_.jsx("span",{className:"custom-children",children:_.jsx(no,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(o)&&_.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${D==null?void 0:D.className}`,children:D==null?void 0:D.label})]})]})},XW="easydesk_chat_widget_conversation_id",$W=({setCurrentConversationID:t,userData:e})=>{const n=R.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:o,loadingStates:a,setOptionData:s,optionData:c}=to(),{send:u,initialStatesData:d,setConversationState:h}=ps(),p=async()=>{u({type:at.CONVERSATION_CLOSED}),kr.remove(XW),t(null),h(d.conversationState),r(!1)},m=b=>{b&&(t(b),r(!1))};R.useEffect(()=>{const b=setTimeout(()=>{var w;const y=(w=n.current)==null?void 0:w.querySelectorAll(".single-message-container"),S=y==null?void 0:y[Pe.size(y)-1];S==null||S.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(b)},[Pe.size(i)]);const v=(o==null?void 0:o.total_rows)>Pe.size(i);return _.jsxs("div",{children:[_.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:_.jsx(Tg,{dataLength:Pe.size(i),hasMore:v,loader:a!=null&&a.fetchMoreLoading?_.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:_.jsx(As,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{s({...c,offset:c.offset+c.limit})},children:i==null?void 0:i.map(b=>_.jsx(JW,{item:b,onSelect:m,userData:e},b.id))})}),_.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:_.jsxs("button",{onClick:p,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[_.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),_.jsx(no,{size:16})]})})]})},eG=()=>{const{setIsChatHistory:t}=to();return _.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:_.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[_.jsx(GF,{}),_.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[_.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",_.jsx(no,{})]})]})})},tG=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:o,isChatHistory:a,setIsChatHistory:s,setCurrentConversationID:c,currentConversationID:u}=to(),d=R.useMemo(()=>a?Pe.size(r)?_.jsx($W,{data:r,userData:n,setCurrentConversationID:c}):_.jsx(eG,{}):_.jsx(qW,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:u,setCurrentConversationID:c,refreshConversations:o}),[r,n,u,a,t,s,e]);return i!=null&&i.initialLoading?_.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:_.jsx(As,{})}):_.jsx("div",{children:d})};var cy={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};cy.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
779
779
  getArticles(queryData: $queryData, optionData: $optionData) {
780
780
  data {
781
781
  id
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ed-widget",
3
3
  "description": "A flexible and lightweight EasyDesk chat widget for React apps and websites. Supports both React integration and CDN-based embedding for fast, real-time customer support.",
4
- "version": "1.51.1-alpha.3",
4
+ "version": "1.51.1",
5
5
  "private": false,
6
6
  "author": "Gain Solutions AS",
7
7
  "license": "MIT",