1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92c25a9f-cd2e-4107-974b-09241be831b3",e._sentryDebugIdIdentifier="sentry-dbid-92c25a9f-cd2e-4107-974b-09241be831b3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{4143:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(1521),o=r(1702);let l=()=>{let e=(0,o.usePathname)(),t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")},[]),(0,n.useEffect)(()=>{if(t.current===e)return;t.current=e;let r=()=>{window.scrollTo(0,0),document.documentElement&&(document.documentElement.scrollTop=0),document.body&&(document.body.scrollTop=0)};requestAnimationFrame(()=>{r(),setTimeout(r,0)})},[e]),null}},15329:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,h:()=>i});var n=r(1521);let o={state:r(43986).u,dispatch:()=>{}},l=n.createContext(o);function i(){return n.useContext(l)}let a=l},21592:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(73365);function o(e,t){switch(t.type){case"SET_LANG_CODE":return{...e,langCode:t.payload};case"DATA_FETCHING":return{...e,dataFetching:!0,dataFetched:!1};case"DATA_FETCHED":return{...e,...t.payload,dataFetching:!1,dataFetched:!0};case"ARTICLE_DETAIL_FETCHING":return{...e,articleDetailFetching:!0,articleDetailFetched:!1};case"ARTICLE_DETAIL_FETCHED":return{...e,articleDetail:t.payload,articleDetailFetching:!1,articleDetailFetched:!0};case"LEAVE_ARTICLE_PAGE":return{...e,articleDetail:null,articleDetailFetching:!1,articleDetailFetched:!1};case"SUBSCRIBED_TO_EVENTS":return{...e,subscribedToEvents:!0};case"SEARCH_RESULTS":return{...e,searchResults:t.payload};case"SEARCH_RESULTS_FETCHING":return{...e,searchResultsFetching:t.payload};case"SCROLL_DIRECTION":return{...e,scrollDirection:t.payload};case"IS_LOGGED_IN":return{...e,isLoggedIn:t.payload};default:return e}}var l=r(1521),i=r(15329),a=r(43986),c=r(35340);let s=e=>{let{children:t,initialServerState:r}=e,s=r?{...a.u,...r}:a.u,[d,u]=(0,l.useReducer)(o,s),p=(0,l.useMemo)(()=>({state:d,dispatch:u}),[d,u]),{customFontUrl:g}=(null==d?void 0:d.page)||{};return(0,l.useEffect)(()=>{(0,c.jy)(g)},[g]),(0,n.jsx)(i.A.Provider,{value:p,children:t})}},26673:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(73365),o=r(25427),l=r(71194);let i={colorPalette:{orangeDark:"#F75C3D",orange:"#FF9681",orangeLight:"#FFDAD3",blueDark:"#058ED9",blue:"#5FC3FA",blueLight:"#BBE4FA",blueSaas:"#5478F0",blueSaasHover:"#2755EC",blueWhitest:"#FAFBFF",blueLightSaas:"#E3E9FD",indigoDark:"#1E0D3E",indigo:"#442D80",indigoLight:"#BFB6D6",black:"#333333",blackDark:"#000000",grayDark:"#666666",gray:"#666666",grayLight:"#E6E6E6",whiteLight:"#F8F8F8",white:"#FFFFFF",whiteDark:"#F2F2F2",menuActive:"rgba(213, 213, 213, 0.2)",menuPassive:"rgba(213, 213, 213, 0.03)",green:"#00c48c",greenLight:"#7ddfc3",greenDark:"#1B393A",greenNewLight:"#E0F9F2",red:"#ff647c",redDark:"#8b0000",redNew:"#FF5959",pinkLight:"#f2f2f2",yellowNew:"#F2D85D",yellowNewLight:"#F9FDDA"},spaces:{halfSpace:4,monoSpace:8,oneAndHalfSpace:12,doubleSpace:16,tripleSpace:24,quadSpace:32,doubleTripleSpace:48,doubleQuadSpace:64,contentMarginTop:32},boxShadow:{default:"0 0 10px 0 rgba(0, 0, 0, 0.15)"},goldenRatio:1.618},a=e=>{let{children:t}=e,r={...i,...l.w};return(0,n.jsx)(o.NP,{theme:r,children:t})}},29293:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(73365),o=r(15329);let l=()=>{let{state:{page:e}}=(0,o.h)(),t=null==e?void 0:e.customCss;return t?(0,n.jsx)("style",{id:"ug-kb-custom-css",children:t}):null}},29374:(e,t,r)=>{"use strict";r.d(t,{default:()=>em});var n=r(73365),o=r(1521),l=r(75928),i=r(90041),a=r(15329),c=r(86445),s=r(27361),d=r(61114),u=r(18197),p=r.n(u),g=r(13252),h=r(53411),f=r(90129),x=r(25427),m=r(71009),y=r(72666);let b=(0,x.Ay)(y.fI).withConfig({componentId:"sc-22b02946-0"})(["align-items:center;justify-content:center;flex-direction:",";flex-shrink:0;gap:8px;"],e=>{let{isRtl:t}=e;return t?"row-reverse":"row"}),w=x.Ay.button.withConfig({componentId:"sc-22b02946-1"})(["all:unset;width:","px;height:","px;display:flex;align-items:center;justify-content:center;padding:4px;box-sizing:border-box;border-radius:8px;",""],32,32,e=>{let{theme:t}=e;return(0,x.AH)(["border:1px solid ",";color:",";background-color:",";&:hover:enabled{border:unset;background:linear-gradient( 225deg,"," 0%,"," 50%,"," 100% );cursor:pointer;}&:active:enabled{border:unset;color:",";background:linear-gradient( 225deg,"," 0%,"," 100% );}&[data-selected='true']{border:unset;color:",";background:linear-gradient( 225deg,"," 0%,"," 100% );cursor:not-allowed;}&&[disabled]{border:1px solid ",";color:",";background-color:",";cursor:not-allowed;}"],t.colorPalette.grey500,t.colorPalette.white900,t.colorPalette.grey100,t.colorPalette.purple200,t.colorPalette.purple700,t.colorPalette.blue900,t.colorPalette.white900,t.colorPalette.purple700,t.colorPalette.blue900,t.colorPalette.white900,t.colorPalette.purple700,t.colorPalette.blue900,t.colorPalette.grey500,t.colorPalette.white900,t.colorPalette.grey100)}),v=x.Ay.span.withConfig({componentId:"sc-22b02946-2"})(["width:100%;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"," ",";"],e=>{let{theme:t}=e;return t.typography.p14_500},m.sM),k=e=>{let{disabled:t=!1,isRtl:r=!1,value:l,onSelect:i}=e,a="like"===l,c="dislike"===l,s=a||c,d=(0,o.useCallback)(e=>r=>{r.preventDefault(),t||s||i(e)},[t,s,i]);return(0,n.jsxs)(b,{isRtl:r,children:[!c&&(0,n.jsx)(w,{disabled:s||t,"data-selected":a,onClick:d("like"),children:(0,n.jsx)(v,{children:"\uD83D\uDC4D"})}),!a&&(0,n.jsx)(w,{disabled:s||t,"data-selected":c,onClick:d("dislike"),children:(0,n.jsx)(v,{children:"\uD83D\uDC4E"})})]})};
1var C=r(6603);let A=x.Ay.div.withConfig({componentId:"sc-471e8957-0"})(["display:none;@media (max-width:","px){display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.4);z-index:9;opacity:",";pointer-events:",";transition:opacity 0.3s ease-in-out;}"],C.bm,e=>{let{$isOpen:t}=e;return+!!t},e=>{let{$isOpen:t}=e;return t?"auto":"none"}),E=x.Ay.div.withConfig({componentId:"sc-471e8957-1"})(["position:fixed;top:0;right:0;width:","px;height:100vh;background:",";box-shadow:-2px 0 16px rgba(0,0,0,0.08);z-index:10;display:flex;flex-direction:column;transform:translateX(",");visibility:",";transition:transform 0.3s ease-in-out,width 0.3s ease-in-out,visibility 0s ",";@media (max-width:","px){width:100vw;top:auto;bottom:0;left:0;right:0;height:85vh;border-radius:16px 16px 0 0;box-shadow:0 -4px 20px rgba(0,0,0,0.12);transform:translateX(0) translateY(",");}"],e=>{let{$isExpanded:t}=e;return t?700:400},e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{$isOpen:t}=e;return t?"0":"100%"},e=>{let{$isOpen:t}=e;return t?"visible":"hidden"},e=>{let{$isOpen:t}=e;return t?"0s":"0.3s"},C.bm,e=>{let{$isOpen:t}=e;return t?"0":"100%"}),P=x.Ay.div.withConfig({componentId:"sc-471e8957-2"})(["display:none;@media (max-width:","px){display:flex;justify-content:center;padding:8px 0 0;flex-shrink:0;&::after{content:'';width:36px;height:4px;border-radius:2px;background:",";}}"],C.bm,e=>{let{theme:t}=e;return t.colorPalette.grey400}),I=x.Ay.div.withConfig({componentId:"sc-471e8957-3"})(["display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;border-bottom:1px solid ",";flex-shrink:0;"],e=>{let{theme:t}=e;return t.colorPalette.grey300}),j=x.Ay.div.withConfig({componentId:"sc-471e8957-4"})(["display:flex;align-items:center;gap:8px;",";color:",";svg{color:",";}"],e=>{let{theme:t}=e;return t.typography.p16_600},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>{let{theme:t}=e;return t.colorPalette.purple700}),_=x.Ay.div.withConfig({componentId:"sc-471e8957-5"})(["display:flex;align-items:center;gap:4px;"]),D=x.Ay.button.withConfig({componentId:"sc-471e8957-6"})(["all:unset;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:",";transition:background 0.15s ease;&:hover{background:",";color:",";}@media (max-width:","px){display:none;}"],e=>{let{theme:t}=e;return t.colorPalette.grey700},e=>{let{theme:t}=e;return t.colorPalette.grey200},e=>{let{theme:t}=e;return t.colorPalette.grey900},C.bm),F=x.Ay.button.withConfig({componentId:"sc-471e8957-7"})(["all:unset;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:",";font-size:20px;transition:background 0.15s ease;&:hover{background:",";color:",";}"],e=>{let{theme:t}=e;return t.colorPalette.grey700},e=>{let{theme:t}=e;return t.colorPalette.grey200},e=>{let{theme:t}=e;return t.colorPalette.grey900}),T=x.Ay.div.withConfig({componentId:"sc-471e8957-8"})(["padding:8px 16px;text-align:center;",";color:",";flex-shrink:0;"],e=>{let{theme:t}=e;return t.typography.p12_400},e=>{let{theme:t}=e;return t.colorPalette.grey600}),S=x.Ay.div.withConfig({componentId:"sc-471e8957-9"})(["flex:1;position:relative;overflow:hidden;"]),L=x.Ay.div.withConfig({componentId:"sc-471e8957-10"})(["height:100%;overflow-y:auto;padding:16px;&::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background:",";border-radius:4px;}"],e=>{let{theme:t}=e;return t.colorPalette.grey400}),R=x.Ay.button.withConfig({componentId:"sc-471e8957-11"})(["all:unset;position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:32px;height:32px;border-radius:50%;background:",";box-shadow:0px 2px 8px 0px rgba(0,0,0,0.3);display:flex;align-items:center;justify-content:center;color:",";cursor:pointer;z-index:1;opacity:",";pointer-events:",";transition:opacity 0.2s ease-in-out;"],e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{theme:t}=e;return t.colorPalette.grey600},e=>{let{$hidden:t}=e;return+!t},e=>{let{$hidden:t}=e;return t?"none":"auto"}),M=x.Ay.div.withConfig({componentId:"sc-471e8957-12"})(["display:flex;flex-direction:column;align-items:center;padding:40px 16px 16px;gap:12px;"]);x.Ay.div.withConfig({componentId:"sc-471e8957-13"})(["width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:linear-gradient( 135deg,"," 0%,"," 100% );color:",";"],e=>{let{theme:t}=e;return t.colorPalette.blue900},e=>{let{theme:t}=e;return t.colorPalette.purple700},e=>{let{theme:t}=e;return t.colorPalette.white900});let H=x.Ay.div.withConfig({componentId:"sc-471e8957-14"})(["",";color:",";text-align:center;"],e=>{let{theme:t}=e;return t.typography.h4_600},e=>{let{theme:t}=e;return t.colorPalette.grey900}),N=x.Ay.div.withConfig({componentId:"sc-471e8957-15"})(["",";color:",";text-align:center;max-width:300px;line-height:1.5;"],e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.grey600}),O=x.Ay.div.withConfig({componentId:"sc-471e8957-16"})(["display:flex;flex-direction:column;gap:8px;width:100%;margin-top:8px;"]),z=x.Ay.button.withConfig({componentId:"sc-471e8957-17"})(["all:unset;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:8px;border:1px solid ",";background:",";cursor:pointer;transition:all 0.2s ease;",";color:",";&:hover{border-color:",";background:linear-gradient( 90deg,"," 0%,"," 100% );color:",";}"],e=>{let{theme:t}=e;return t.colorPalette.grey400},e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>{let{theme:t}=e;return t.colorPalette.blue900},e=>{let{theme:t}=e;return t.colorPalette.blue900},e=>{let{theme:t}=e;return t.colorPalette.purple700},e=>{let{theme:t}=e;return t.colorPalette.white900}),B=x.Ay.span.withConfig({componentId:"sc-471e8957-18"})(["display:inline-flex;align-items:center;flex-shrink:0;color:",";"],e=>{let{theme:t}=e;return t.colorPalette.grey900}),G=x.Ay.span.withConfig({componentId:"sc-471e8957-19"})(["flex:1;"]),K=x.Ay.div.withConfig({componentId:"sc-471e8957-20"})(["display:flex;align-items:center;justify-content:center;width:100%;padding:8px;",";color:",";text-align:center;"],e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.grey600}),W=x.Ay.div.withConfig({componentId:"sc-471e8957-21"})(["margin-bottom:8px;"]),Y=x.Ay.div.withConfig({componentId:"sc-471e8957-22"})(["max-width:85%;margin-left:auto;padding:12px 16px;border-radius:12px 12px 0 12px;background:linear-gradient( 45deg,"," 0%,"," 100% );color:",";",";line-height:1.5;word-break:break-word;"],e=>{let{theme:t}=e;return t.colorPalette.blue900},e=>{let{theme:t}=e;return t.colorPalette.purple700},e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{theme:t}=e;return t.typography.p14_400}),$=x.Ay.div.withConfig({componentId:"sc-471e8957-23"})(["max-width:95%;padding:12px 16px;border-radius:12px 12px 12px 0;background:",";color:",";",";"],e=>{let{theme:t}=e;return t.colorPalette.grey100},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>{let{theme:t}=e;return t.typography.p14_400}),X=x.Ay.div.withConfig({componentId:"sc-471e8957-24"})(["line-height:1.6;overflow-wrap:break-word;word-break:break-word;p{margin:0 0 8px;&:last-child{margin-bottom:0;}}strong{font-weight:600;}ul,ol{padding-left:20px;margin:4px 0 8px;}li{margin-bottom:4px;}h3{",";margin:12px 0 6px;}code{padding:2px 6px;border-radius:4px;background:",";",";font-family:'Roboto Mono',monospace;}pre{padding:8px;border-radius:6px;background:",";overflow-x:auto;margin:8px 0;}table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:8px 0;",";}th,td{padding:4px 8px;border-bottom:1px solid ",";text-align:left;vertical-align:top;}th{font-weight:600;color:",";background:",";white-space:nowrap;}"],e=>{let{theme:t}=e;return t.typography.p14_600},e=>{let{theme:t}=e;return t.colorPalette.grey200},e=>{let{theme:t}=e;return t.typography.p12_400},e=>{let{theme:t}=e;return t.colorPalette.grey200},e=>{let{theme:t}=e;return t.typography.p12_400},e=>{let{theme:t}=e;return t.colorPalette.grey300},e=>{let{theme:t}=e;return t.colorPalette.grey700},e=>{let{theme:t}=e;return t.colorPalette.grey200}),U=x.Ay.div.withConfig({componentId:"sc-471e8957-25"})(["width:100%;margin-top:8px;"]),q=x.Ay.div.withConfig({componentId:"sc-471e8957-26"})(["width:100%;",";margin-bottom:4px;"],e=>{let{theme:t}=e;return t.typography.p14_600}),Q=x.Ay.a.withConfig({componentId:"sc-471e8957-27"})(["width:100%;display:flex;align-items:center;justify-content:space-between;padding:4px 0;",";color:",";text-decoration:underline;cursor:pointer;&:hover{opacity:0.8;}"],e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.purple700}),V=x.Ay.div.withConfig({componentId:"sc-471e8957-28"})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;color:",";"],e=>{let{theme:t}=e;return t.colorPalette.purple700}),J=x.Ay.div.withConfig({componentId:"sc-471e8957-29"})(["display:flex;margin-top:8px;padding-left:4px;"]),Z=(0,x.i7)(["0%,32%,100%{transform:translateY(0);}16%{transform:translateY(-6px);}
1"]),ee=x.Ay.div.withConfig({componentId:"sc-471e8957-30"})(["display:flex;align-items:center;gap:4px;height:20px;padding:2px 0;"]),et=x.Ay.div.withConfig({componentId:"sc-471e8957-31"})(["width:5px;height:5px;border-radius:50%;background:",";animation:"," 1.5s infinite ease-in-out;&:nth-child(2){animation-delay:0.15s;background:",";}&:nth-child(3){animation-delay:0.3s;}"],e=>{let{theme:t}=e;return t.colorPalette.grey600},Z,e=>{let{theme:t}=e;return t.colorPalette.grey900}),er=x.Ay.div.withConfig({componentId:"sc-471e8957-32"})(["padding:12px 16px;border-top:1px solid ",";flex-shrink:0;"],e=>{let{theme:t}=e;return t.colorPalette.grey300}),en=x.Ay.div.withConfig({componentId:"sc-471e8957-33"})(["position:relative;display:flex;align-items:flex-end;"]),eo=x.Ay.textarea.withConfig({componentId:"sc-471e8957-34"})(["width:100%;min-height:40px;max-height:120px;padding:10px 40px 10px 14px;box-sizing:border-box;border-radius:8px;border:1px solid ",";background:",";",";color:",";resize:none;outline:none;transition:border-color 0.2s ease,box-shadow 0.2s ease;overflow-y:auto;&::placeholder{color:",";}&:focus{border-color:",";box-shadow:0 0 0 2px ","20;}&::-webkit-scrollbar{width:3px;}&::-webkit-scrollbar-thumb{background:",";border-radius:3px;}"],e=>{let{theme:t}=e;return t.colorPalette.grey400},e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>{let{theme:t}=e;return t.colorPalette.grey500},e=>{let{theme:t}=e;return t.colorPalette.purple700},e=>{let{theme:t}=e;return t.colorPalette.purple700},e=>{let{theme:t}=e;return t.colorPalette.grey400}),el=x.Ay.button.withConfig({componentId:"sc-471e8957-35"})(["all:unset;position:absolute;right:10px;bottom:10px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:",";font-size:16px;transition:color 0.15s ease;&:hover{color:",";}"],e=>{let{$hasText:t,theme:r}=e;return t?r.colorPalette.purple700:r.colorPalette.grey400},e=>{let{theme:t}=e;return t.colorPalette.purple700}),ei=()=>{let{isOpen:e,isExpanded:t,messages:r,inputText:l,config:i,texts:a,closePanel:c,toggleExpand:s,sendMessage:u,setInputText:x,setFeedback:m,clearChat:y}=(0,d.ND)(),b=a.suggestedQuestions.split("\n").filter(e=>e.trim()),w=(0,o.useRef)(null),v=(0,o.useRef)(null),C=(0,o.useRef)(null),[Z,ei]=(0,o.useState)(!1),ea=(0,o.useCallback)(()=>{let e=v.current;e&&ei(e.scrollHeight-e.scrollTop-e.clientHeight>10)},[]);(0,o.useEffect)(()=>{w.current&&w.current.scrollIntoView({behavior:"smooth"})},[r]),(0,o.useEffect)(()=>{let e=v.current;if(e)return ea(),e.addEventListener("scroll",ea,{passive:!0}),()=>e.removeEventListener("scroll",ea)},[ea,r]);let ec=(0,o.useCallback)(()=>{var e;null==(e=v.current)||e.scrollTo({top:v.current.scrollHeight,behavior:"smooth"})},[]);(0,o.useEffect)(()=>{e&&setTimeout(()=>{var e;null==(e=C.current)||e.focus({preventScroll:!0})},400)},[e]),(0,o.useEffect)(()=>{C.current&&(C.current.style.height="0px",C.current.style.height="".concat(Math.max(40,Math.min(C.current.scrollHeight,120)),"px"))},[l]);let es=(0,o.useCallback)(()=>{l.trim()&&u(l)},[l,u]),ed=(0,o.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),es())},[es]),eu=(0,o.useCallback)(e=>{u(e)},[u]),ep=r.length>0,eg=(0,o.useRef)(null),eh=(0,o.useRef)(0),ef=(0,o.useRef)(0),ex=(0,o.useRef)(!1),em=(0,o.useCallback)(e=>{let t=e.target;if(t.closest("textarea, input, button, a"))return;let r=t.closest("[data-messages-area]");r&&r.scrollTop>0||(eh.current=e.touches[0].clientY,ef.current=0,ex.current=!0,eg.current&&(eg.current.style.transition="none"))},[]),ey=(0,o.useCallback)(e=>{ex.current&&(ef.current=Math.max(0,e.touches[0].clientY-eh.current),eg.current&&(eg.current.style.transform="translateX(0) translateY(".concat(ef.current,"px)")))},[]),eb=(0,o.useCallback)(()=>{ex.current&&(ex.current=!1,eg.current&&(eg.current.style.transition="",eg.current.style.transform=""),ef.current>100&&c(),ef.current=0)},[c]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A,{$isOpen:e,onClick:c}),(0,n.jsxs)(E,{ref:eg,"data-drag-handle":!0,$isOpen:e,$isExpanded:t,onTouchStart:em,onTouchMove:ey,onTouchEnd:eb,children:[(0,n.jsx)(P,{}),(0,n.jsxs)(I,{children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(g.M5s,{size:20}),a.askAiTitle]}),(0,n.jsxs)(_,{children:[ep&&(0,n.jsx)(F,{onClick:y,"aria-label":"Clear chat",title:"Clear chat",children:(0,n.jsx)(g.WFf,{size:18})}),(0,n.jsx)(D,{onClick:s,"aria-label":t?"Shrink panel":"Expand panel",title:t?"Shrink panel":"Expand panel",children:t?(0,n.jsx)(g.oLO,{size:18}):(0,n.jsx)(g.LWW,{size:18})}),(0,n.jsx)(F,{onClick:c,"aria-label":"Close panel",children:"\xd7"})]})]}),(0,n.jsx)(T,{children:a.disclaimerText}),(0,n.jsxs)(S,{children:[(0,n.jsxs)(L,{ref:v,"data-messages-area":!0,children:[ep?r.map((e,t)=>(0,n.jsxs)(W,{children:[e.timestamp&&!e.loading&&(0,n.jsxs)(K,{children:[new Date(e.timestamp).toLocaleDateString("en",{year:"numeric",month:"long",day:"numeric"})," - ",new Date(e.timestamp).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"})]}),e.fromAI?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($,{children:e.loading?(0,n.jsxs)(ee,{children:[(0,n.jsx)(et,{}),(0,n.jsx)(et,{}),(0,n.jsx)(et,{})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{children:(0,n.jsx)(h.o,{remarkPlugins:[f.A],children:e.message})}),i.showSourceLinks&&e.sources&&e.sources.length>0&&(0,n.jsxs)(U,{children:[(0,n.jsx)(q,{children:a.sourcesLabel}),e.sources.map(e=>(0,n.jsx)(p(),{href:e.articleHref,passHref:!0,legacyBehavior:!0,children:(0,n.jsxs)(Q,{children:[e.articleName,(0,n.jsx)(V,{children:(0,n.jsx)(g.ye6,{size:20})})]})},e.articleId))]})]})}),!e.loading&&i.showFeedbackButtons&&!e.isLimitExceeded&&t===r.length-1&&(0,n.jsx)(J,{children:(0,n.jsx)(k,{value:e.feedback,onSelect:t=>m(e.id,t)}
1)})]}):(0,n.jsx)(Y,{children:e.message})]},e.id)):(0,n.jsxs)(M,{children:[(0,n.jsx)(H,{children:a.welcomeMessage}),(0,n.jsx)(N,{children:a.welcomeSubtitle}),i.showSuggestedQuestions&&b.length>0&&(0,n.jsx)(O,{children:b.map(e=>(0,n.jsxs)(z,{onClick:()=>eu(e),children:[(0,n.jsx)(B,{children:(0,n.jsx)(g.$Yr,{size:20})}),(0,n.jsx)(G,{children:e})]},e))})]}),(0,n.jsx)("div",{ref:w})]}),(0,n.jsx)(R,{$hidden:!Z,onClick:ec,children:(0,n.jsx)(g.eQr,{size:20})})]}),(0,n.jsx)(er,{children:(0,n.jsxs)(en,{children:[(0,n.jsx)(eo,{ref:C,value:l,onChange:e=>x(e.target.value),onKeyDown:ed,placeholder:a.inputPlaceholder,rows:1,maxLength:1e3}),(0,n.jsx)(el,{onClick:es,$hasText:l.trim().length>0,"aria-label":"Send message",children:"â¤"})]})})]})]})},ea=x.Ay.div.withConfig({componentId:"sc-10fdf712-0"})(["display:none;@media (max-width:","px){display:block;position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:calc(100vw - 32px);height:48px;background:",";border:1px solid ",";border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,0.1);z-index:5;cursor:pointer;transition:all 0.25s ease;opacity:",";pointer-events:",";&:hover{border-color:",";box-shadow:0 4px 24px rgba(0,0,0,0.15);}}"],C.bm,e=>{let{theme:t}=e;return t.colorPalette.white900},e=>{let{theme:t}=e;return t.colorPalette.grey400},e=>{let{$isOpen:t}=e;return+!t},e=>{let{$isOpen:t}=e;return t?"none":"auto"},e=>{let{theme:t}=e;return t.colorPalette.purple700}),ec=x.Ay.div.withConfig({componentId:"sc-10fdf712-1"})(["display:flex;align-items:center;height:100%;padding:0 16px;gap:10px;"]),es=x.Ay.div.withConfig({componentId:"sc-10fdf712-2"})(["display:flex;align-items:center;justify-content:center;color:",";flex-shrink:0;"],e=>{let{theme:t}=e;return t.colorPalette.purple700}),ed=x.Ay.span.withConfig({componentId:"sc-10fdf712-3"})(["flex:1;",";color:",";"],e=>{let{theme:t}=e;return t.typography.p14_400},e=>{let{theme:t}=e;return t.colorPalette.grey500}),eu=x.Ay.span.withConfig({componentId:"sc-10fdf712-4"})(["padding:2px 8px;border-radius:4px;background:",";",";color:",";flex-shrink:0;@media (max-width:","px){display:none;}"],e=>{let{theme:t}=e;return t.colorPalette.grey200},e=>{let{theme:t}=e;return t.typography.p12_400},e=>{let{theme:t}=e;return t.colorPalette.grey600},C.bm),ep=()=>{let{isOpen:e,openPanel:t,texts:r}=(0,d.ND)(),l=(0,o.useMemo)(()=>{var e;return null==(e=navigator.platform)?void 0:e.toUpperCase().includes("MAC")},[]);return(0,n.jsx)(ea,{$isOpen:e,onClick:()=>t(),children:(0,n.jsxs)(ec,{children:[(0,n.jsx)(es,{children:(0,n.jsx)(g.M5s,{size:18})}),(0,n.jsx)(ed,{children:r.inputPlaceholder}),(0,n.jsx)(eu,{children:l?"âI":"Ctrl+I"})]})})},eg=x.Ay.div.withConfig({componentId:"sc-7f9bb624-0"})(["min-height:100vh;margin-right:var(--ask-ai-panel-width,0px);transition:margin-right 0.3s ease-in-out;"]),eh={showSourceLinks:!0,showFeedbackButtons:!0,showSuggestedQuestions:!0,texts:{en:d.Mp}},ef=0,ex=()=>(ef+=1,"msg-".concat(ef)),em=e=>{var t,r,u;let{children:p}=e,{state:{page:g,langCode:h}}=(0,a.h)(),f=!!(null==g||null==(t=g.ask_ai)?void 0:t.is_active)&&!(null==g||null==(r=g.ask_ai)?void 0:r.monthly_limit_exceeded)&&!(null==g||null==(u=g.ask_ai)?void 0:u.free_credits_finished),x=(0,o.useMemo)(()=>{var e;return{...eh,...(null==g||null==(e=g.ask_ai)?void 0:e.data)||{}}},[g]),m=(0,o.useMemo)(()=>{var e,t;return(null==(e=x.texts)?void 0:e[h])||(null==(t=x.texts)?void 0:t.en)||d.Mp},[x,h]),[y,b]=(0,o.useState)(!1),[w,v]=(0,o.useState)(!1),[k,C]=(0,o.useState)([]),[A,E]=(0,o.useState)(""),P=(0,o.useRef)(null),I=(0,o.useRef)("thread-".concat(Date.now())),j=(0,o.useRef)(null),_=(0,o.useCallback)(()=>{b(e=>!e)},[]),D=(0,o.useCallback)(()=>{b(!1),v(!1)},[]),F=(0,o.useCallback)(()=>{v(e=>!e)},[]),T=(0,o.useCallback)(async e=>{let t=e.trim();if(!t)return;0===k.length&&(0,c.El)(s.C7,{threadId:I.current}),(0,c.El)(s.N_,{threadId:I.current,message:t});let r={id:ex(),fromAI:!1,message:t,timestamp:new Date().toISOString()},n={id:ex(),fromAI:!0,message:"",loading:!0,timestamp:new Date().toISOString()};C(e=>[...e,r,n]),E("");try{let e=await fetch("/api/ask-ai/message",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({knowledge_base_id:String(null==g?void 0:g.id),account_id:String(null==g?void 0:g.account_id),content:t,lang_code:h,...j.current?{thread_id:j.
1current}:{}})}),r=await e.json().catch(()=>null);if(r&&r.kb_ask_ai_limit_exceeded)return void C(e=>e.map(e=>e.id===n.id?{...e,message:"This feature is not available at the moment. Please contact the platform for more information.",loading:!1,isLimitExceeded:!0}:e));if(!e.ok)throw Error("HTTP ".concat(e.status));let o=(Array.isArray(r)?r:[]).find(e=>"assistant"===e.role);if(!o)return void C(e=>e.map(e=>e.id===n.id?{...e,message:m.fallbackMessage,loading:!1}:e));!j.current&&o.thread_id&&(j.current=o.thread_id);let i=o.is_fallback?s.tm:s.O0;(0,c.El)(i,{threadId:I.current,message:o.content}),C(e=>e.map(e=>e.id===n.id?{...e,id:o.id,message:o.is_fallback?m.fallbackMessage:o.content,sources:((e,t)=>{if(!e)return;let r=e.filter(e=>"knowledge_base"===e.type&&e.article_id).map(e=>{let r=e.title||"",n=(0,l.k)(r);return{articleId:String(e.article_id),articleName:r,articleHref:"/".concat(t,"/articles/").concat(e.article_id).concat(n?"-".concat(n):"")}});return r.length?r:void 0})(o.answer_sources,h),loading:!1}:e))}catch(e){C(e=>e.map(e=>e.id===n.id?{...e,message:m.fallbackMessage,loading:!1}:e))}},[k.length,g,h,m.fallbackMessage]),S=(0,o.useCallback)(e=>{b(!0),(null==e?void 0:e.trim())&&(P.current=e.trim())},[]);(0,o.useEffect)(()=>{if(y&&P.current){let e=P.current;P.current=null,E(e)}},[y]);let L=(0,o.useCallback)((e,t)=>{C(r=>r.map(r=>r.id===e?{...r,feedback:r.feedback===t?null:t}:r)),fetch("/api/ask-ai/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({knowledge_base_id:String(null==g?void 0:g.id),account_id:String(null==g?void 0:g.account_id),message_id:e,user_feedback:t}),credentials:"include"}).catch(()=>{})},[g]),R=(0,o.useCallback)(()=>{C([]),E(""),I.current="thread-".concat(Date.now()),j.current=null},[]);(0,o.useEffect)(()=>{let e=e=>{if((e.metaKey||e.ctrlKey)&&"i"===e.key){e.preventDefault(),_();return}if((e.metaKey||e.ctrlKey)&&"k"===e.key){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"});let t=document.querySelector("#".concat(i.n.searchInput," input"));t&&setTimeout(()=>t.focus(),100);return}"Escape"===e.key&&y&&D()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[_,y,D]),(0,o.useEffect)(()=>{let e=document.documentElement,t=window.matchMedia("(max-width: 768px)"),r=()=>{let r=w?700:400,n=y&&!t.matches?r:0;e.style.setProperty("--ask-ai-panel-width","".concat(n,"px"))};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r),e.style.removeProperty("--ask-ai-panel-width")}},[y,w]);let M=(0,o.useMemo)(()=>({isActive:f,isOpen:y,isExpanded:w,messages:k,inputText:A,config:x,texts:m,togglePanel:_,openPanel:S,closePanel:D,toggleExpand:F,sendMessage:T,setInputText:E,setFeedback:L,clearChat:R}),[f,y,w,k,A,x,m,_,S,D,F,T,E,L,R]);return(0,n.jsxs)(d.nI.Provider,{value:M,children:[(0,n.jsx)(eg,{children:p}),f&&(0,n.jsx)(ei,{}),f&&(0,n.jsx)(ep,{})]})}},34080:(e,t,r)=>{"use strict";r.d(t,{default:()=>i}),r(73365);var n=r(1521),o=r(1702),l=r(25427);let i=e=>{let{children:t}=e,[r]=(0,n.useState)(()=>new l.E);return(0,o.useServerInsertedHTML)(()=>{let e=r.getStyleElement();return r.instance.clearTag(),e}),t}},35340:(e,t,r)=>{"use strict";r.d(t,{Yp:()=>c,jy:()=>a});let n=new WeakMap,o={LOADING:"1",LOADED:"2"},l=[[".woff2","woff2"],[".woff","woff"],[".otf","opentype"],[".ttf","truetype"],[".eot","embedded-opentype"]],i=e=>{var t,r;return e&&e.includes("font-family:")&&(null==(r=e.split("font-family:")[1])||null==(t=r.split(",")[0])?void 0:t.replace(/['";]/g,"").trim())||null},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3?arguments[3]:void 0,c=()=>null==a?void 0:a(),s=()=>{let e=i(r),n=t.fonts;e&&n&&"function"==typeof n.load?n.load('1em "'.concat(e,'"')).then(c,c):c()};if("system"===e)return void c();let d=(n.get(t)||n.set(t,{}),n.get(t));if(!e||"string"!=typeof e)return void c();if(d[e]){a&&s();return}let u=(e=>{let t=e.toLowerCase().split("?")[0].split("#")[0],r=l.find(e=>{let[r]=e;return t.endsWith(r)});return r?r[1]:null})(e);if(u){let n=i(r);return n?(((e,t,r,n)=>{let o="ug_font_face_".concat(t.replace(/\s+/g,"_"));if(n.getElementById(o))return;let l=n.createElement("style");l.setAttribute("id",o),l.appendChild(n.createTextNode("@font-face{font-family:'".concat(t,"';src:url('").concat(e,"') format('").concat(r,"');font-display:swap;}"))),n.head.appendChild(l)})(e,n,u,t),d[e]=o.LOADED,void(a&&s())):void c()}let p=Array.from(t.querySelectorAll('link[rel="stylesheet"]')).find(t=>t.getAttribute("href")===e);if(p){d[e]=o.LOADED,a&&(p.sheet?s():(p.addEventListener("load",s,{once:!0}),p.addEventListener("error",c,{once:!0})));return}d[e]=o.LOADING;let g=t.createElement("link");g.setAttribute("href",e),g.setAttribute("rel","stylesheet"),g.onload=()=>{d[e]=o.LOADED,a&&s()},g.onerror=()=>{delete d[e],a&&c()},t.head.appendChild(g)},c=e=>{let{customFontCss:t=""}=e;try{if(null==t?void 0:t.includes("font-family:")){let e=t.trim(),r
1=";"===e[e.length-1],n=e.includes("!important")?";":" !important;";if(r)return e.replace(";",n);return"".concat(e).concat(n)}}catch(e){}return t}},43986:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});let n={langCode:"",articles:[],categories:[],subCategories:[],orders:{},dataFetching:!1,dataFetched:!1,articleDetail:{},articleDetailFetching:!1,articleDetailFetched:!1,faqItems:[],page:{},languages:[],subscribedToEvents:!1,searchResults:[],searchResultsFetching:!1,scrollDirection:"up",isLoggedIn:!1}},54496:()=>{},57738:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,54496,23)),Promise.resolve().then(r.bind(r,29374)),Promise.resolve().then(r.bind(r,29293)),Promise.resolve().then(r.bind(r,4143)),Promise.resolve().then(r.bind(r,34080)),Promise.resolve().then(r.bind(r,21592)),Promise.resolve().then(r.bind(r,75506)),Promise.resolve().then(r.bind(r,58833)),Promise.resolve().then(r.bind(r,26673)),Promise.resolve().then(r.bind(r,81305))},58833:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(73365),o=r(1521),l=r(37907),i=r(54266),a=r(70941);let c=()=>{let{shouldVerifyIdentity:e,shouldEmbedContainer:t,containerUrl:r}=function(){let{hostname:e}=window.location,[t,r]=(0,o.useState)(!1),[n,l]=(0,o.useState)(!1),[i,c]=(0,o.useState)("");return(0,o.useEffect)(()=>{(0,a.KX)({hostname:e}).then(e=>{r(e.shouldVerifyIdentity),l(e.shouldEmbedContainer),c(e.containerUrl)}).catch(()=>{r(!1),l(!1),c("")})},[e]),{shouldVerifyIdentity:t,shouldEmbedContainer:n,containerUrl:i}}(),c=()=>{var t;let r=localStorage.getItem(i.j),n=null==window||null==(t=window.userGuiding)?void 0:t.identify;if(!r||"function"!=typeof n)return void setTimeout(()=>c(),250);if(e){let e=(e=>{let t=document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"=")));return t?decodeURIComponent(t.split("=")[1]):void 0})("_ugeuh");if(!e)return;n(r,{user_hash:e});return}n(r)};return t?(0,n.jsx)(l.default,{id:"userguiding-container",strategy:"lazyOnload",src:r,onReady:c}):null};var s=r(66642);let d=e=>{let{children:t}=e,[r,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>
1{l(!0)},[]);let i=r&&!(0,s.$)();return(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsx)(c,{}),t]})}},70941:(e,t,r)=>{"use strict";function n(e){let t=window.location.hostname,r=window.location.pathname.split("/")[1];e({type:"DATA_FETCHING"}),fetch("/api/knowledge-base?hostname=".concat(t,"&langCode=").concat(r,"&articleId=").concat((()=>{try{return window.location.pathname.split("/articles/")[1].split("-")[0]}catch(e){return""}})())).then(e=>e.json()).then(t=>{e({type:"DATA_FETCHED",payload:{...t,langCode:r}})})}function o(e){let t=window.location.hostname;e({type:"DATA_FETCHING"}),fetch("/api/page?hostname=".concat(t)).then(e=>e.json()).then(t=>{e({type:"DATA_FETCHED",payload:t})})}function l(e,t,r){if(!r)return;let n=window.location.pathname.split("/")[1];e({type:"ARTICLE_DETAIL_FETCHING"}),fetch("/api/article-detail?knowledgeBasePageId=".concat(r,"&langCode=").concat(n,"&articleId=").concat(t)).then(e=>e.json()).then(t=>{e({type:"ARTICLE_DETAIL_FETCHED",payload:t})})}r.d(t,{Fd:()=>n,KX:()=>i,O8:()=>o,m3:()=>l});let i=e=>{let{hostname:t}=e;return fetch("/api/container?hostname=".concat(t.trim())).then(e=>e.json()).catch(e=>Error(e))}},72666:(e,t,r)=>{"use strict";r.d(t,{VP:()=>g,fI:()=>p});var n=r(25427);let o=(e,t)=>e?"first"===t?"last":"first":t,l=e=>{let{gap:t,elementsMarginRight:r,marginTop:n,marginBottom:l,marginLeft:i,marginRight:a,paddingTop:c,absoluteMargin:s,elementsMarginLeft:d,elementsMarginTop:u,allElementsMarginTop:p,theme:g,isRtl:h}=e,f="";return t&&(f+="\n gap: ".concat(g.spacing[t],"px;\n ")),r&&(f+="\n > * {\n &:not(:".concat(o(h,"last"),"-child) {\n margin-right: ").concat(g.spacing[r],"px;\n }\n }\n ")),n&&(f+="\n margin-top: ".concat(g.spacing[n],"px; \n ")),l&&(f+="\n margin-bottom: ".concat(g.spacing[l],"px; \n ")),i&&(f+="\n margin-left: ".concat(g.spacing[i],"px;\n ")),a&&(f+="\n margin-right: ".concat(g.spacing[a],"px;\n ")),c&&(f+="\n padding-top: ".concat(g.spacing[c],"px;\n ")),s&&(f+="\n margin: ".concat(s,";\n ")),d&&(f+="\n > * {\n &:not(:".concat(o(h,"first"),"-child) {\n margin-left: ").concat(g.spacing[d],"px;\n }\n }\n ")),u&&(f+="\n > * {\n &:not(:first-child) {\n margin-top: ".concat(g.spacing[u],"px;\n }\n }\n ")),p&&(f+="\n > * {\n margin-top: ".concat(g.spacing[p],"px;\n }\n ")),f},i=e=>{let{align:t,justify:r}=e;return(0,n.AH)([""," ",""],t&&"align-items: ".concat(t,";"),r&&"justify-content: ".concat(r,";"))},a=e=>{let{fullWidth:t,customWidth:r}=e;return t?"width: 100%;":r?"width: ".concat(r,";"):""},c=e=>{let{fullHeight:t}=e;return t?"height: 100%;":""},s=e=>{let{wrap:t}=e;return t?(0,n.AH)(["flex-wrap:",";"],t):""},d=new Set(["gap","marginTop","marginBottom","marginLeft","marginRight","paddingTop","elementsMarginRight","elementsMarginTop","elementsMarginLeft","allElementsMarginTop","absoluteMargin","isRtl","justify","align","fullWidth","customWidth","fullHeight","wrap"]),u=e=>!d.has(e),p=n.Ay.div.withConfig({shouldForwardProp:u}).withConfig({componentId:"sc-e4a2283b-0"})(["display:flex;flex-direction:row;"," "," "," "," ",""],l,i,a,c,s),g=n.Ay.div.withConfig({shouldForwardProp:u}).withConfig({componentId:"sc-e4a2283b-1"})(["display:flex;flex-direction:column;"," "," "," "," ",""],l,i,a,c,s)},75506:(e,t,r)=>{"use strict";r.d(t,{KnowledgeBaseFontProvider:()=>d});var n=r(73365),o=r(1521),l=r(15329),i=r(35340),a=r(25427),c=r(71009);let s=a.Ay.div.withConfig({componentId:"sc-9a68505a-0"})(["",""],e=>{let{customFontCss:t}=e;return(0,i.Yp)({customFontCss:t})}),d=e=>{let{children:t}=e,{state:r}=(0,l.h)(),{customFontUrl:a=c.sM,customFontCss:d=c.mc}=(null==r?void 0:r.page)||{};return(0,o.useEffect)(()=>{(0,i.jy)(a)},[a]),(0,n.jsx)(s,{customFontCss:d,children:t})}}},e=>{e.O(0,[2621,5571,5427,1755,5633,1368,6562,2347,3215,7358],()=>e(e.s=57738)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.