File: //opt/netdata/usr/local/local/share/netdata/web/v3/8399.8019b74f81165e12e122.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"24dad2414db89a9e2209703b6e48226fc420eca1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f764ddc2-8fb1-4884-9d3e-5b69b7570365",e._sentryDebugIdIdentifier="sentry-dbid-f764ddc2-8fb1-4884-9d3e-5b69b7570365")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8399],{80590(e,t,n){n.d(t,{A:()=>u});n(98992),n(54520),n(3949);var r=n(64467),a=n(80045),c=n(96540),o=n(3319),i=n(74848);const s=["callback","feature","isStart","isSuccess","isFailure","eventReason","payload"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u=e=>t=>{let{callback:n,feature:r,isStart:l,isSuccess:u,isFailure:b,eventReason:f,payload:p={}}=t,y=(0,a.A)(t,s);const{sendLog:g,isReady:h}=(0,o.A)(),j=(0,c.useCallback)((e=>{const t=y[n],a=d(d(d(d(d(d(d(d(d(d({},r?{feature:r}:{}),void 0!==l?{isStart:l}:{}),void 0!==u?{isSuccess:u}:{}),void 0!==b?{isFailure:b}:{}),f?{eventReason:f}:{}),p),y["data-ga"]?{dataGa:y["data-ga"]}:{}),y.dataGa?{dataGa:y.dataGa}:{}),y["data-track"]?{dataTrack:y["data-track"]}:{}),y.label?{label:y.label}:{});"function"===typeof t&&t(e),g(a,!0)}),[n,g,h,p,y]),O=(0,c.useMemo)((()=>d(d({},y),{},{[n]:j})),[y,n,j]);return(0,i.jsx)(e,d({},O))}},94404(e,t,n){n.d(t,{A:()=>u});n(98992),n(54520),n(3949);var r=n(64467),a=n(80045),c=n(80590),o=n(81691),i=n(74848);const s=["payload"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u=e=>t=>{let{payload:n={}}=t,r=(0,a.A)(t,s);const l=(0,c.A)(e);return(0,i.jsx)(l,d(d({},r),{},{callback:"onClick",payload:d(d({},n),{},{action:o.o1.buttonClicked})}))}},8399(e,t,n){n.r(t),n.d(t,{MagicLinkSent:()=>j,default:()=>O});n(27495),n(62953),n(3296),n(27208),n(48408);var r=n(96540),a=n(51510),c=n(41344),o=n(42358),i=n(42660),s=n(27606),l=n(87875),d=n(3575),u=n(23947),b=n(10444),f=n(60908),p=n(94404),y=n(74848);const g=(0,a.default)(o.Text).attrs({role:"button"}).withConfig({displayName:"magicLinkSent__ButtonText",componentId:"sc-ua6kmo-0"})(["cursor:pointer;"]),h=(0,p.A)(g),j=()=>{const{searchParams:e}=new URL(window.location.href),t=null===e||void 0===e?void 0:e.get("email"),{search:n,state:a={}}=(0,c.zy)(),{email:i}=a||{},p=t||i,g=window.location.hash,j=(0,u.Js)(),O=(0,b.J)(),m=(0,r.useCallback)((()=>{const e=encodeURIComponent((0,d.V)("/sign-in".concat(n),g)),t=encodeURIComponent((0,d.V)("/sign-up/verify".concat(n),g));j({email:p,redirectURI:e,registerURI:t,resend:!0})}),[p]);return(0,y.jsx)(f.Ay,{feature:"MagicLinkSent",email:p,children:(0,y.jsx)(s.A,{"data-testid":"magicLinkSent",isScreenSmall:O,children:(0,y.jsxs)(o.Flex,{column:!0,gap:4,children:[(0,y.jsx)(l.D7,{children:"Check your email!"}),(0,y.jsxs)(o.Flex,{column:!0,padding:[0,0,8,0],gap:8,justifyContent:"between",alignItems:"center",children:[(0,y.jsxs)(o.Flex,{column:!0,gap:1,alignItems:"center",children:[(0,y.jsxs)(l.D7,{children:["We have sent an email to ",(0,y.jsx)(l.D7,{children:!!p&&p}),"."]}),(0,y.jsx)(l.D7,{children:"Please find this email (check your spam folder too) and click the button there to continue."})]}),(0,y.jsxs)(o.Text,{color:"bright",children:["Didn't receive it?"," ",(0,y.jsx)(h,{onClick:m,color:"primary","data-ga":"magicLikSent::click-resent::check-email-view",children:"Click here to resend it."})]})]})]})})})},O=(0,i.g)(j,"dark")}}]);