1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d8b21140-dc97-5729-bb7d-bd2bdd7a5269")}catch(e){}}(); 3(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[24424],{21667:function(e,r,t){t.d(r,{k:function(){return d}});t(91662),t(2350),t(30782);var n=t(40458),l=t(89456),s=t(1066),a=t(71759),o=t(88718),i=t(16326),c=t(80980),d=function(e){var r,t,d,f,u,p,m,h,x,b,j,v=(0,n.c)(22),g=e.error,y=e.resetError,w=e.onClose,O=(0,i.Yl)(g)?g:void 0;return v[0]!==w?(r=function(){w()},v[0]=w,v[1]=r):r=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,c.jsx)(l.A,{className:"size-6"}),v[2]=t):t=v[2],v[3]!==r?(d=(0,c.jsx)(o.$n,{className:"absolute right-2 top-[9px] rounded-full px-2",variant:"subtle",onClick:r,children:t}),v[3]=r,v[4]=d):d=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,c.jsxs)("div",{className:"flex items-center gap-2 text-sm text-subtle",children:[(0,c.jsx)(a.A,{className:"size-4 fill-subtle"}),"Something went wrong."]}),v[5]=f):f=v[5],v[6]!==(null==O?void 0:O.code)?(u="usage_limit_exceeded"===(null==O?void 0:O.code)&&(0,c.jsx)("div",{className:"px-4 text-center text-sm text-subtle",children:"Daily AI usage limit exceeded. Please try again later."}),v[6]=null==O?void 0:O.code,v[7]=u):u=v[7],v[8]!==(null==O?void 0:O.code)?(p=("unauthorized"===(null==O?void 0:O.code)||"feature_disabled"===(null==O?void 0:O.code))&&(0,c.jsx)("div",{className:"px-4 text-center text-sm text-subtle",children:"AI Chat is inaccessible or not currently enabled for your account."}),v[8]=null==O?void 0:O.code,v[9]=p):p=v[9],v[10]!==u||v[11]!==p?(m=(0,c.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[f,u,p]}),v[10]=u,v[11]=p,v[12]=m):m=v[12],v[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,c.jsx)(s.A,{className:"size-4"}),v[13]=h):h=v[13],v[14]!==y?(x=(0,c.jsxs)(o.$n,{variant:"secondary",onClick:y,children:[h," Reload"]}),v[14]=y,v[15]=x):x=v[15],v[16]!==m||v[17]!==x?(b=(0,c.jsx)("div",{className:"scrollbar grow overflow-y-auto px-2 py-4 [scrollbar-gutter:stable_both-edges]",children:(0,c.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-8",children:[m,x]})}),v[16]=m,v[17]=x,v[18]=b):b=v[18],v[19]!==b||v[20]!==d?(j=(0,c.jsxs)("div",{className:"relative flex h-full flex-col",children:[d,b]}),v[19]=b,v[20]=d,v[21]=j):j=v[21],j}},24424:function(e,r,t){t.r(r),t.d(r,{VibeChat:function(){return O}});var n=t(26199),l=t.n(n),s=(t(48937),t(93656),t(15209),t(30782),t(51305),t(28379),t(2730),t(91662),t(2350),t(40458)),a=t(83406),o=t(52371),i=t(88718),c=t(53539),d=t(91880),f=t(4627),u=t(76676),p=t(89456),m=t(46312),h=t(80980),x=function(e){var r,t,n,l,a,o,c,d,f,x,b,j,v,g,y,w,O,_,N=(0,s.c)(35),C=e.onEnable,k=e.onClose,P=(0,m.Bd)();return N[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)(p.A,{className:"size-6"}),N[0]=r):r=N[0],N[1]!==k?(t=(0,h.jsx)(i.$n,{variant:"subtle",className:"absolute right-5 top-5",onClick:k,children:r}),N[1]=k,N[2]=t):t=N[2],N[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsxs)("div",{className:"flex shrink-0 items-center gap-3 p-6 pb-5",children:[(0,h.jsxs)("h3",{className:"m-0 flex items-center font-serif font-normal text-solid",children:[(0,h.jsx)(u.A,{className:"mr-1 size-6 fill-brand-01 pt-px"}),"Ask Charlie"]}),(0,h.jsx)(i.Ex,{tone:"attention",children:"Beta"})]}),N[3]=n):n=N[3],N[4]!==P?(l=P("app.user.profile.askCharlie.intro"),N[4]=P,N[5]=l):l=N[5],N[6]!==l?(a=(0,h.jsx)("p",{className:"m-0",children:l}),N[6]=l,N[7]=a):a=N[7],N[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsx)(m.wD,{i18nKey:"app.user.profile.askCharlie.disclaimerIntro",components:[(0,h.jsx)("a",{href:"/ai-terms",target:"_blank",rel:"noreferrer",className:"underline"},"ai-terms")],children:""}),N[8]=o):o=N[8],N[9]!==P?(c=P("app.user.profile.askCharlie.disclaimerDataProcessing"),N[9]=P,N[10]=c):c=N[10],N[11]!==c?(d=(0,h.jsx)("li",{children:c}),N[11]=c,N[12]=d):d=N[12],N[13]===Symbol.for("react.memo_cache_sentinel")?(f=(0,h.jsx)("li",{children:(0,h.jsx)(m.wD,{i18nKey:"app.user.profile.askCharlie.disclaimerFinancialAdvice",components:[(0,h.jsx)("a",{href:"https://media.simplywall.st/site/financials/Financial_Services_Guide_-_Simply_Wall_St_V2.0_dated_20_Jan_23.pdf",target:"_blank",rel:"noreferrer",className:"underline"},"financial-services-guide")],children:""})}),N[13]=f):f=N[13],N[14]===Symbol.for("react.memo_cache_sentinel")?(x=(0,h.jsx)("li",{children:(0,h.jsx)(m.wD,{i18nKey:"app.user.profile.askCharlie.disclaimerDataRetention",components:[(0,h.jsx)("a",{href:"https://simplywall.st/privacy-policy",target:"_blank",rel:"noreferrer",className:"underline"},"privacy-policy")],children:""})}),N[14]=x):x=N[14],N[15]!==P?(b=P("app.user.profile.askCharlie.disclaimerFeatureChanges"),N[15]=P,N[16]=b):b=N[16],N[17]!==b?(j=(0,h.jsx)("li",{children:b}),N[17]=b,N[18]=j):j=N[18],N[19]!==j||N[20]!==d?(v=(0,h.jsxs)("div",{className:"m-0",children:[o,(0,h.jsxs)("ul",{className:"mt-4 list-disc pl-4 [&_li]:mt-2",children:[d,f,x,j]})]}),N[19]=j,N[20]=d,N[21]=v):v=N[21],N[22]===Symbol.for("react.memo_cache_sentinel")?(g=(0,h.jsx)("p",{className:"text-sm text-soft",children:(0,h.jsx)(m.wD,{i18nKey:"app.user.profile.askCharlie.disclaimerFeedback",components:[(0,h.jsx)("a",{href:"https://support.simplywall.st/hc/en-us/requests/new",target:"_blank",rel:"noreferrer",className:"underline"},"support")],children:""})}),N[22]=g):g=N[22],N[23]!==v||N[24]!==a?(y=(0,h.jsxs)("div",{className:"scrollbar flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto px-6 text-sm","data-testid":"enable-modal-terms",children:[a,v,g]}),N[23]=v,N[24]=a,N[25]=y):y=N[25],N[26]!==C?(w=(0,h.jsx)("div",{className:"flex shrink-0 justify-end p-6 pt-5",children:(0,h.jsx)(i.$n,{variant:"primary",onClick:C,children:"Enable"})}),N[26]=C,N[27]=w):w=N[27],N[28]!==y||N[29]!==w||N[30]!==t?(O=(0,h.jsx)(i.a
3F.Body,{className:"!overflow-y-hidden !p-0 lg:max-h-[700px]",children:(0,h.jsx)("div",{className:"flex min-h-0 flex-1 rounded-md border-subtle p-px",children:(0,h.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col rounded-md bg-surface-2",children:[t,n,y,w]})})}),N[28]=y,N[29]=w,N[30]=t,N[31]=O):O=N[31],N[32]!==k||N[33]!==O?(_=(0,h.jsx)(i.aF,{isOpen:!0,onClose:k,isDismissable:!1,className:"max-w-[600px]",children:O}),N[32]=k,N[33]=O,N[34]=_):_=N[34],_},b=t(21667),j=t(51556),v=t(32059),g=t(16123),y=(0,a.RZ)((function(){return t.e(34110).then(t.bind(t,96646)).then((function(e){return{default:e.VibeSidePanel}}))})),w=(0,a.RZ)((function(){return t.e(36687).then(t.bind(t,71552))})),O=function(){var e,r=(0,s.c)(32);r[0]===Symbol.for("react.memo_cache_sentinel")?(e={type:"track",page:"vibe-chat"},r[0]=e):e=r[0];var t,n,a,u,p,m=(0,f.z1)(e).trackEvent,O=(t=(0,d.useRef)(null),(0,d.useEffect)((function(){}),[]),{elementRef:t}).elementRef,_=(0,v.C)(),N=(0,d.useState)(!1),C=l()(N,2),k=C[0],P=C[1];r[1]!==_.modal.isExpanded?(n=function(){if(_.modal.isExpanded){var e=window.scrollY,r=document.documentElement,t=document.body,n=document.querySelector("#desktop-topbar-wrapper"),l=window.innerWidth-document.documentElement.clientWidth;return r.style.overflow="hidden",t.style.overflow="hidden",l>0&&(t.style.paddingRight="".concat(l,"px"),n&&(n.style.paddingRight="".concat(l,"px"))),function(){r.style.overflow="",t.style.overflow="",t.style.paddingRight="",n&&(n.style.paddingRight=""),window.scrollTo(0,e)}}},a=[_.modal.isExpanded],r[1]=_.modal.isExpanded,r[2]=n,r[3]=a):(n=r[2],a=r[3]),(0,d.useEffect)(n,a),r[4]!==k?(u=k&&(0,h.jsxs)(w,{onClose:function(){return P(!1)},children:[(0,h.jsx)("p",{children:"AI Chat is only available on paid plans."}),(0,h.jsx)("h2",{children:"Upgrade to unlock AI Chat"})]}),r[4]=k,r[5]=u):u=r[5],r[6]!==m||r[7]!==_.beta||r[8]!==_.feature||r[9]!==_.modal?(p="enable-modal"===_.modal.open&&(0,h.jsx)(x,{onEnable:function(){_.beta.setHasUserAccepted(!0),_.modal.setOpen("chat-side-panel"),_.feature.setIsLoaded(!0),m({action:"click",subject:"enable-modal",modifier:"enable"})},onClose:function(){_.modal.setOpen("none"),g.KB.clear(),m({action:"click",subject:"enable-modal",modifier:"cancel"})}}),r[6]=m,r[7]=_.beta,r[8]=_.feature,r[9]=_.modal,r[10]=p):p=r[10];var D,E=_.modal.isExpanded?"lg:left-1/2 lg:right-auto lg:h-[calc(100vh-env(safe-area-inset-top)-64px-env(safe-area-inset-bottom))] lg:w-full lg:max-w-screen-xl lg:-translate-x-1/2":"lg:right-[max(calc(50vw-1090px-72px),theme(space.x2))] lg:w-[25vw] lg:min-w-[400px] lg:max-w-[550px]",S="chat-side-panel"!==_.modal.open&&"hidden";r[11]!==E||r[12]!==S?(D=(0,i.cn)("fixed right-0 top-x8 z-sticky flex h-[calc(100vh-env(safe-area-inset-top)-56px-64px-env(safe-area-inset-bottom))] w-svw grid-rows-[1fr_max-content] transition-all duration-200 lg:h-[calc(100vh-env(safe-area-inset-top))] lg:py-4",E,S),r[11]=E,r[12]=S,r[13]=D):D=r[13];var A,R,L,z,B,F,K=_.modal.isExpanded?"lg:h-full lg:max-h-none":"lg:h-[calc(100%-120px)] lg:max-h-[90vh]";return r[14]!==K?(A=(0,i.cn)("flex size-full rounded-lg bg-surface-1/75 shadow-crisp backdrop-blur-xl",K),r[14]=K,r[15]=A):A=r[15],r[16]!==_.feature.isLoaded||r[17]!==_.modal?(R=_.feature.isLoaded&&(0,h.jsx)(c.Ul,{children:function(e){var r=e.reset;return(0,h.jsx)(o.ErrorBoundary,{fallback:function(e){var t=e.error,n=e.resetError;return(0,h.jsx)(b.k,{error:t,resetError:function(){r(),n()},onClose:function(){return _.modal.setOpen("none")}})},children:(0,h.jsx)(d.Suspense,{fallback:(0,h.jsx)(j.v,{onClose:function(){return _.modal.setOpen("none")}}),children:(0,h.jsx)(y,{onUpgrade:function(){_.modal.setOpen("none"),P(!0)},onClose:function(){_.modal.setOpen("none"),g.KB.clear()}})})})}}),r[16]=_.feature.isLoaded,r[17]=_.modal,r[18]=R):R=r[18],r[19]!==R?(L=(0,h.jsx)("aside",{className:"flex size-full flex-col",children:R}),r[19]=R,r[20]=L):L=r[20],r[21]!==L||r[22]!==A?(z=(0,h.jsx)("div",{className:A,children:L}),r[21]=L,r[22]=A,r[23]=z):z=r[23],r[24]!==z||r[25]!==D||r[26]!==O?(B=(0,h.jsx)("div",{ref:O,className:D,children:z}),r[24]=z,r[25]=D,r[26]=O,r[27]=B):B=r[27],r[28]!==B||r[29]!==u||r[30]!==p?(F=(0,h.jsxs)(h.Fragment,{children:[u,p,B]}),r[28]=B,r[29]=u,r[30]=p,r[31]=F):F=r[31],F}},51556:function(e,r,t){t.d(r,{v:function(){return o}});t(91662),t(2350),t(30782);var n=t(40458),l=t(88718),s=t(89456),a=t(80980),o=function(e){var r,t,o,i,c,d,f=(0,n.c)(9),u=e.onClose;return f[0]!==u?(r=function(){u()},f[0]=u,f[1]=r):r=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(s.A,{className:"size-6"}),f[2]=t):t=f[2],f[3]!==r?(o=(0,a.jsx)(l.$n,{className:"absolute right-2 top-[9px] rounded-full px-2",variant:"subtle",onClick:r,children:t}),f[3]=r,f[4]=o):o=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)("div",{className:"scrollbar grow overflow-y-auto px-2 py-4 [scrollbar-gutter:stable_both-edges]"}),f[5]=i):i=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsxs)("div",{className:"grid h-[81px] grid-cols-[1fr_max-content] items-center gap-5 border-0 border-t border-solid border-t-subtle p-x2",children:[(0,a.jsx)("div",{className:"bones h-6 w-full animate-pulse rounded-sm"}),(0,a.jsx)("div",{className:"bones mr-2 h-10 w-11 animate-pulse rounded-sm"})]}),f[6]=c):c=f[6],f[7]!==o?(d=(0,a.jsxs)("div",{className:"relative flex h-full flex-col",children:[o,i,c]}),f[7]=o,f[8]=d):d=f[8],d}},76676:function(e,r,t){t.d(r,{A:function(){return u}});t(315),t(91662),t(28593),t(30782),t(12726),t(55303),t(55020),t(30155),t(73117),t(43948),t(67084);var n=t(56945),l=t.n(n),s=t(80980),a=t(91880);function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
3r%2?o(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var c=function(e,r){return(0,s.jsx)("svg",i(i({fill:"#2394DF",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",ref:r},e),{},{children:(0,s.jsx)("path",{fill:"inherit",fillRule:"evenodd",d:"M8.85 1c0 1.183-.97 3.953-4.85 5.575h4.85zm0 11.15c0-1.183.97-3.954 4.851-5.575C9.821 4.953 8.851 2.183 8.851 1v11.149m0 0c0-1.183-.97-3.954-4.85-5.575h4.85zM7 11.873C5 11.037 4.5 9.61 4.5 9v2.873zm-5 0c2 .836 2.5 2.264 2.5 2.873V9c0 .61-.5 2.037-2.5 2.873m2.5 2.873c0-.61.5-2.037 2.5-2.873H4.5z",clipRule:"evenodd"})}))},d=(0,a.forwardRef)(c);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var u=(0,a.forwardRef)((function(e,r){return(0,s.jsx)(d,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({ref:r},e))}))},89456:function(e,r,t){t.d(r,{A:function(){return u}});t(315),t(91662),t(28593),t(30782),t(12726),t(55303),t(55020),t(30155),t(73117),t(43948),t(67084);var n=t(56945),l=t.n(n),s=t(80980),a=t(91880);function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var c=function(e,r){return(0,s.jsx)("svg",i(i({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:r},e),{},{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75886 6.34273C7.36834 5.9522 6.73518 5.9522 6.34465 6.34273C5.95413 6.73325 5.95413 7.36642 6.34465 7.75694L10.5869 11.9992L6.34359 16.2426C5.95307 16.6331 5.95307 17.2663 6.34359 17.6568C6.73412 18.0473 7.36728 18.0473 7.75781 17.6568L12.0012 13.4134L16.2441 17.6564C16.6347 18.047 17.2678 18.047 17.6584 17.6564C18.0489 17.2659 18.0489 16.6327 17.6584 16.2422L13.4154 11.9992L17.6573 7.75731C18.0478 7.36678 18.0478 6.73362 17.6573 6.34309C17.2668 5.95257 16.6336 5.95257 16.2431 6.34309L12.0012 10.585L7.75886 6.34273Z"})}))},d=(0,a.forwardRef)(c);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var u=(0,a.forwardRef)((function(e,r){return(0,s.jsx)(d,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({ref:r},e))}))}}]); 4//# sourceMappingURL=24424.modern.82df876b.js.map 5//# debugId=d8b21140-dc97-5729-bb7d-bd2bdd7a5269
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.