1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6130],{56426:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var r=t(59499);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var o=function(e,n){window.parent.postMessage(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({type:e},n),"*")}},19750:function(e,n,t){"use strict";var r;!function(e){e.DashboardSettings="DashboardSettings",e.Footer="Footer",e.HomePage="HomePage",e.MobileMenu="MobileMenu",e.OnboardingTutorial="OnboardingTutorial",e.OnboardingAccount="OnboardingAccount",e.OnboardingBanner="OnboardingBanner",e.OnboardingCard="OnboardingCard",e.OnboardingOverview="OnboardingOverview",e.OnboardingSnoozingModal="OnboardingSnoozingModal",e.RedeemPageCannotSelfRedeem="RedeemPageCannotSelfRedeem",e.RedeemPageFormerSubscriber="RedeemPageFormerSubscriber",e.RedeemPageKeyClaimed="RedeemPageKeyClaimed",e.SettingsHighlightToTranslate="SettingsHighlightToTranslate",e.SettingsPage="SettingsPage",e.PremiumPromo="PremiumPromo"}(r||(r={})),n.Z=r},4184:function(e,n,t){"use strict";var r;t.d(n,{e:function(){return r}}),function(e){e.ClickPause="click-pause",e.FocusTranslation="focus-translation",e.BlurTranslation="blur-translation",e.ClickSaveWord="click-save-word",e.ClickOpenSettings="click-open-settings",e.ClickIKnowThis="click-i-know-this",e.QuizEnter="quiz-enter",e.QuizExit="quiz-exit",e.PinTranslation="pin-translation",e.MountTranslation="mount-translation",e.CloseHover="close-hover",e.RemoveTranslations="remove-translations",e.CrawlPage="crawl-page",e.ReactivateTranslations="reactivate-translations",e.ChangeLanguage="change-language",e.UpdateDifficultyTier="update-difficulty-tier",e.SupportsDifficulty="supports-difficulty",e.MessageListenerReady="message-listener-ready",e.ExtensionInformationRequest="extension-information-request",e.ExtensionInformationResponse="extension-information-response"}(r||(r={}))},86974:function(e,n,t){"use strict";t.d(n,{D:function(){return a}});var r=t(67294),s=t(56426),o=t(4184),i=t(43110),a=function(){var e=(0,r.useRef)(!1),n=(0,r.useState)(!1),t=n[0],a=n[1],c=(0,r.useState)(!1),l=c[0],d=c[1],u=(0,r.useState)(!1),p=u[0],g=u[1],h=(0,r.useState)(),m=h[0],f=h[1],x=(0,r.useState)(),b=x[0],v=x[1],j=(0,r.useState)(),y=j[0],w=j[1],C=(0,r.useState)(),O=C[0],P=C[1];return(0,r.useEffect)((function(){l&&!e.current&&(e.current=!0,(0,s.e)(o.e.ExtensionInformationRequest,{}),a(!0))})),(0,i.U)((function(e){var n=e.data,t=null===n||void 0===n?void 0:n.type;if(t&&(t===o.e.MessageListenerReady&&d(!0),t===o.e.ExtensionInformationResponse)){var r=n.browser,s=null!==r&&void 0!==r?r:{},i=s.manifest,c=s.permissions;null!==i&&void 0!==i&&i.name&&f(i.name),null!==i&&void 0!==i&&i.version&&v(i.version),"boolean"===typeof c&&g(c),n.me&&w(n.me),n.dictionary&&P(n.dictionary),a(!1)}}),[d,g,a]),{dictionary:O,isInstalledInFirefox:l,hasGlobalPermissionsInFirefox:!!p,loading:t,name:m,refetch:function(){(0,s.e)(o.e.ExtensionInformationRequest,{})},userInfo:y,version:b}}},2382:function(e,n,t){"use strict";t.d(n,{K:function(){return o}});var r=t(67294),s=t(81502),o=function(){return(0,r.useContext)(s.ZP).isMobileDevice}},43110:function(e,n,t){"use strict";t.d(n,{U:function(){return s}});var r=t(67294),s=function(e,n){var t=(0,r.useCallback)(e,n);(0,r.useEffect)((function(){return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[t])}},27995:function(e,n,t){"use strict";t.d(n,{_:function(){return d}});var r=t(16835),s=t(67294),o=t(68806),i=t(76880),a=t(93736),c=t(97600),l=t(64711),d=function(e){var n=e.pinchpoint,t=(0,c.By)(o.Z.REFERRAL_UTM_MEDIUM),d=(0,r.Z)(t,1)[0],u=(0,c.By)(o.Z.REFERRAL_UTM_SOURCE),p=(0,r.Z)(u,1)[0],g=(0,l.q)().loggedInUser;return(0,s.useEffect)((function(){g&&d&&p&&((0,a.$A)(g.id,{utm_medium:d,utm_source:p}),(0,a.L9)({name:i.zW.SiteVisitedWithReferralRedeemCode,properties:{pinchpointLocation:n}}),(0,c.eS)({name:o.Z.REFERRAL_UTM_MEDIUM}),(0,c.eS)({name:o.Z.REFERRAL_UTM_SOURCE}))}),[d,p,g]),null}},44454:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return mn},default:function(){return fn}});var r=t(67294),s=t(9008),o=t.n(s),i=t(70917),a=t(97262),c=t(2734),l=t(90955),d=t(1691),u=t(28723),p=t(4090),g=t(39859),h=t(35944),m=function(e){var n=e.className,t=(0,c.Z)(),r=(0,p.B)(),s=r.browserName,o=r.storeUrl,a=(0,l.$G)().t;return(0,h.jsxs)(d.Z,{severity:"info",className:n,css:(0,i.css)("margin-bottom:",t.spacing(4),";",""),children:[(0,h.jsx)(u.Z,{children:a("sharedInstallExtensionTitle")}),a("sharedInstallExtensionCopy"),(0,h.jsx)(g.Z,{href:o,css:(0,i.css)("margin-top:",t.spacing(1),";display:block;width:fit-content;",""),children:a("sharedInstallExtensionLink",{browserName:s})})]})},f=t(76880),x=t(40118),b=t(23194),v=t(86974),j=t(2382),y=t(74425),w=t(93146),C=t(11436),O=t(98083);var P=a.ToucanComponents.Typography,S={name:"36bnqj",styles:"display:flex;flex:1"},T=function(e){var n=e.children,t=e.title,r=e.contentMaxWidth,s=void 0===r?768:r,o=(0,c.Z)();return(0,h.jsx)("main",{css:S,children:(0,h.jsxs)("div",{css:(0,i.css)("overflow-y:auto;padding:",o.spacing(4)," ",o.spacing(2),";width:100%;",o.breakpoints.up("sm"),"{padding:",o.spacing(4),";}",""),children:[t&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(P,{variant:"lg",font:"secondary",css:(0,i.css)("margin-bottom:",o.spacing(2),";",""),children:t}),(0,h.jsx)(O.Z,{css:(0,i.css)("width:100%;margin-bottom:",o.spacing(4),";","")})]}),(0,h.jsx)("div",{css:(0,i.css)("width:100%;max-width:",s,"px;display:flex;flex-direction:column;",""),children:n})]})})},E=function(e){var n=e.menu,t=(0,c.Z)();return(0,h.jsx)("aside",{css:(0,i.css)("border-right:1px solid ",a.ToucanColors.gray[200],";display:none;",t.breakpoints.up("sm"),"{display:flex;}",""),children:(0,h.jsx)("div",{css:(0,i.css)("overflow-y:auto;padding:",t.spacing(4),";",""),children:n})})};var k={name:"zjik7",styles:"display:flex"},Z=function(e){var n=e.children,t=e.title,r=e.pageError,s=e.menu,o=e.contentMaxWidth;return(0,h.jsx)(w.Z,{isContained:!1,pageError:r,hasFooter:!1,customNavbar:(0,h.jsx)(C.Z,{isLoggedInOutContentVisible:!1,toucanLogoUrl:"/?noDashboardRedirect=true",customMobileMenuContent:s,isContainerMaxWidthApplied:!1}),children:(0,h.jsxs)("div",{css:k,children:[(0,h.jsx)(E,{menu:s}),(0,h.jsx)(T,{title:t,contentMaxWidth:o,children:n})]})})},I=t(50029),M=t(16835),R=t(87794),D=t.n(R),N=t(11163),A=t(68806),F=t(25425),L=t(8469),B=t(97600),U=t(64711),_=t(22054),q=t(12336);var G,W={name:"1puidsk",styles:"& .MuiSkeleton-root{border-radius:4px;}"},z=function(){return(0,h.jsxs)(q.xu,{css:W,children:[(0,h.jsx)(q.xu,{pb:1,width:"45%",children:(0,h.jsx)(_.Z,{variant:"rectangular",height:"24px"})}),(0,h.jsx)(q.xu,{pb:1,children:(0,h.jsx)(_.Z,{variant:"rectangular",height:"16px"})}),(0,h.jsx)(q.xu,{pb:2,width:"33%",children:(0,h.jsx)(_.Z,{variant:"rectangular",height:"16px"})})]})},$=a.ToucanComponents.Typography,K=a.ToucanComponents.Button,V=function(e){var n=e.email,t=e.onConfirm,r=e.name,s=(0,l.$G)("dashboard").t;return(0,h.jsxs)(q.xu,{children:[(0,h.jsx)(q.xu,{mb:1,children:(0,h.jsx)($,{font:"secondary",variant:"md",children:s("verifyYourInformation")})}),(0,h.jsx)($,{variant:"sm",children:s("toKeepYourAccountSecure")}),(0,h.jsxs)(q.xu,{my:2,border:"1px solid ".concat(a.ToucanColors.gray[200]),p:2,borderRadius:"4px",children:[(0,h.jsxs)(q.xu,{mb:1,display:"flex",alignItems:"center",children:[(0,h.jsxs)($,{variant:"sm",isBold:!0,children:[s("sharedEmailField"),":"]}),(0,h.jsx)(q.xu,{ml:1,children:(0,h.jsx)($,{variant:"sm",children:n})})]}),r&&(0,h.jsxs)(q.xu,{display:"flex",alignItems:"center",children:[(0,h.jsxs)($,{variant:"sm",isBold:!0,children:[s("sharedNameField"),":"]}),(0,h.jsx)(q.xu,{ml:1,children:(0,h.jsx)($,{variant:"sm",children:r})})]})]}),(0,h.jsx)(K,{type:"utility",onClick:t,children:s("confirm")})]})},H=function(e){var n,t,s=e.children,o=(0,U.q)(),i=o.loggedInAsRegistered,a=o.refreshUser,c=o.isLoggedIn,l=o.isLoggedInUserLoading,d=(0,N.useRouter)(),u=(0,p.B)().browserName,g=(0,b.M)({pollForConnection:u===y.MX.Firefox||u===y.MX.Safari,attemptPollAmount:5}),m=g.loading,f=g.isInstalled,x=m||!f,v=(0,F.pQ)({skip:x}),j=v.data,w=v.loading,C=(0,F.Vf)(),O=(0,M.Z)(C,2),P=O[0],S=O[1].loading,T=null!==j&&void 0!==j&&null!==(n=j.me)&&void 0!==n&&n.email?{email:j.me.email,name:j.me.name}:null,E=m||w&&!x||l,k=(0,B.By)(A.Z.TOKEN),Z=(0,M.Z)(k,2)[1],R=function(){var e=(0,I.Z)(D().mark((function e(){var n,t,r,s;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,P({});case 4:return r=e.sent,(s=null===(n=r.data)||void 0===n||null===(t=n.requestAuthorization)||void 0===t?void 0:t.token)&&Z({value:s,numDaysActive:L.C}),e.next=9,a();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){i||c||E||T||d.push("/log-in")}),[E,d,i,T,c]),E?(0,h.jsx)(z,{}):!i&&T?(0,h.jsx)(V,{email:T.email,name:null!==(t=T.name)&&void 0!==t?t:void 0,onConfirm:R}):i||c?(0,h.jsx)(h.Fragment,{children:s}):(0,h.jsx)(z,{})},X=t(87357),Y=t(2196);!function(e){e[e.Beanie=0]="Beanie",e[e.Cap=1]="Cap",e[e.Crown=2]="Crown",e[e.Party=3]="Party",e[e.Scarf=4]="Scarf",e[e.Space=5]="Space",e[e.Sunglasses=6]="Sunglasses",e[e.Sunhat=7]="Sunhat"}(G||(G={}));var Q=function(e){var n,t=e.className,r=e.userEmail,s=e.language,o="anonymous",a=(0,c.Z)(),d=(0,l.$G)("onboarding").t,u=(0,F._w)().data,p=(null!==(n=null===u||void 0===u?void 0:u.settings)&&void 0!==n&&n).isSnoozedForNewLanguage;
1if(r){var g,m=function(e,n){var t,r,s=e.toLowerCase().charCodeAt(0),o=97,i=122;return s>=48&&s<=57&&(o=48,i=57),Math.max(Math.floor((s-(t=o))/(i-t)*(n-1-(r=0))+r),0)}(r,7);o=(null!==(g=G[m])&&void 0!==g?g:"").toLowerCase()}return(0,h.jsx)(X.Z,{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",className:t,mb:.5,css:(0,i.css)("background-image:url(/images/dashboard/avatar/",o,".svg);background-position:center center;background-repeat:no-repeat;width:64px;height:64px;",""),children:s&&!p&&(0,h.jsx)("img",{src:"/images/flags/round/".concat(s,".svg"),width:"20",height:"20",alt:d("onboardingLanguageFlag"),css:(0,i.css)("margin-bottom:",a.spacing(.4),";","")})})},J=t(59499),ee=t(4730),ne=["iconName","children","id"];function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,J.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=a.ToucanComponents.Typography,oe=a.ToucanComponents.ToucanIcon,ie=a.ToucanComponents.TransparentButton,ae=function(e){return void 0!==e.href||void 0!==e.isExternalUrl},ce={name:"opde7s",styles:"color:inherit"},le={name:"1rqeef7",styles:"color:inherit;&:hover{text-decoration:none;}"},de={name:"opde7s",styles:"color:inherit"},ue=function(e){var n=(0,c.Z)(),t=(0,N.useRouter)(),r=e.iconName,s=e.children,o=e.id,l=(0,ee.Z)(e,ne),d=ae(e)&&(null===t||void 0===t?void 0:t.pathname.startsWith(e.href)),u=(0,h.jsxs)("div",{css:(0,i.css)("display:flex;align-items:center;color:",d?a.ToucanColors.blue[300]:a.ToucanColors.gray[500],";&:hover{color:",a.ToucanColors.blue[300],";}",""),children:[(0,h.jsx)(oe,{icon:r,css:(0,i.css)("color:inherit;margin-right:",n.spacing(2),";width:12px;height:12px;","")}),(0,h.jsx)(se,{variant:"sm",isBold:!0,css:de,children:s})]});return(0,h.jsxs)("div",{css:(0,i.css)("position:relative;display:flex;align-items:center;margin-bottom:",n.spacing(2),";transition:all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;",n.breakpoints.up("sm"),"{margin-right:-",n.spacing(4),";padding-right:",n.spacing(4),";}",""),children:[ae(e)?(0,h.jsx)(g.Z,re(re({id:o,href:e.href,isExternalUrl:e.isExternalUrl,css:le},l),{},{children:u})):(0,h.jsx)(ie,re(re({id:o,onClick:e.onClick,css:ce},l),{},{children:u})),(0,h.jsx)("div",{css:(0,i.css)("position:absolute;right:0;width:4px;height:16px;background-color:",a.ToucanColors.blue[300],";opacity:",d?1:0,";","")})]})},pe=a.ToucanComponents.Typography,ge=function(e){var n,t=e.links,r=(0,c.Z)(),s=(0,U.q)(),o=s.loggedInUser,d=s.selectedLanguage,u=s.isLoggedIn,p=(0,l.$G)().t;return o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{css:(0,i.css)("display:flex;margin-bottom:",r.spacing(3),";",r.breakpoints.up("sm"),"{flex-direction:column;align-items:center;}",""),children:[(0,h.jsx)(Q,{userEmail:null!==(n=o.email)&&void 0!==n?n:void 0,language:d,css:(0,i.css)("margin-right:",r.spacing(2),";",r.breakpoints.up("sm"),"{margin-right:0;}","")}),(0,h.jsx)(pe,{variant:"md",font:"secondary",color:a.ToucanColors.gray[600],css:(0,i.css)(r.breakpoints.up("sm"),"{text-align:center;}",""),children:(0,Y.S4)(o.name)})]}),(0,h.jsx)(O.Z,{css:(0,i.css)("margin-bottom:",r.spacing(2),";","")}),t.map((function(e){var n=e.url,t=e.iconName,r=e.text,s=e.isVisible,o=void 0===s||s,i=e.isExternalUrl,a=void 0!==i&&i;return o?(0,h.jsx)(ue,{href:n,iconName:t,isExternalUrl:a,children:r},r):null})),u&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(O.Z,{css:(0,i.css)("margin-bottom:",r.spacing(2),";","")}),(0,h.jsx)(ue,{href:"/sign-out",iconName:"times","data-testid":"dashboard-menu-logout-button",children:p("sharedNavLogOut")})]})]}):(0,h.jsxs)(X.Z,{width:250,children:[(0,h.jsx)(_.Z,{animation:"wave",width:"100%",height:60}),(0,h.jsx)(_.Z,{animation:"wave",width:"100%",height:60}),(0,h.jsx)(_.Z,{animation:"wave",width:"100%",height:60})]})},he=t(93061),me=function(){var e=(0,l.$G)("dashboard").t;return(0,h.jsx)(ge,{links:[{url:"/dashboard/settings",iconName:"
1cog",text:e("dashboardNavAccountSettings")},{url:he.tf,iconName:"question",text:e("dashboardNavHelp"),isExternalUrl:!0}]})},fe=function(e){var n=e.children,t=e.title,r=e.pageError,s=e.contentMaxWidth;return(0,h.jsx)(Z,{title:t,pageError:r,menu:(0,h.jsx)(me,{}),contentMaxWidth:s,children:(0,h.jsx)(H,{children:n})})},xe=a.ToucanComponents.Typography,be=function(e){var n=e.information,t=e.subInformation,r=e.children,s=e.isStacked,o=e.maxWidth,l=(0,c.Z)();return(0,h.jsxs)(q.xu,{children:[(0,h.jsxs)(q.xu,{display:"inline-flex",flexDirection:s?"column":"row",flex:1,css:(0,i.css)(l.breakpoints.up("sm"),"{margin-right:",l.spacing(3),";}",""),children:[(0,h.jsx)(xe,{variant:"sm",isBold:!0,color:a.ToucanColors.gray[500],css:(0,i.css)("margin-right:",l.spacing(1),";",""),children:r}),(0,h.jsx)(xe,{variant:"sm",color:a.ToucanColors.gray[500],css:(0,i.css)("margin-top:",s?l.spacing(.5):0,";max-width:","".concat(o,"px")||0,";",""),children:n})]}),t&&(0,h.jsx)(xe,{variant:"xs",color:a.ToucanColors.gray[400],css:(0,i.css)("margin-right:",l.spacing(1),";",""),children:t})]})},ve=["header","information","informationMaxWidth","subInformation","buttonText","buttonType","onClickButton","className","isInformationStacked","extraContent"];function je(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?je(Object(t),!0).forEach((function(n){(0,J.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var we=a.ToucanComponents.Button,Ce=function(e){var n=e.header,t=e.information,r=e.informationMaxWidth,s=e.subInformation,o=e.buttonText,a=e.buttonType,l=void 0===a?"text":a,d=e.onClickButton,u=e.className,p=e.isInformationStacked,g=void 0!==p&&p,m=e.extraContent,f=(0,ee.Z)(e,ve),x=(0,c.Z)();return(0,h.jsxs)(q.xu,ye(ye({className:u,display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",css:(0,i.css)(x.breakpoints.up("sm"),"{flex-direction:row;justify-content:space-between;align-items:center;}","")},f),{},{children:[(0,h.jsx)(be,{information:t,subInformation:s,isStacked:g,maxWidth:r,children:n}),m||o&&d&&(0,h.jsx)(we,{type:l,onClick:d,css:(0,i.css)("margin-top:",x.spacing("text"===l?.5:2),";",x.breakpoints.up("sm"),"{margin-top:0;}",""),children:o})]}))},Oe=function(e){var n=e.children,t=e.className,r=(0,c.Z)();return(0,h.jsx)("div",{className:t,css:(0,i.css)("padding:",r.spacing(2),";border-radius:4px;border:1px solid ",a.ToucanColors.gray[200],";",""),children:n})},Pe=["title","tooltip","children","alert","className"];function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Te(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(t),!0).forEach((function(n){(0,J.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee,ke=a.ToucanComponents.Typography,Ze=a.ToucanComponents.Tooltip,Ie=a.ToucanComponents.ToucanIcon,Me=a.ToucanComponents.useColorScheme,Re=function(e){var n=e.title,t=e.tooltip,r=e.children,s=e.alert,o=e.className,l=(0,ee.Z)(e,Pe),d=(0,c.Z)(),u=Me().uiSecondary;return(0,h.jsxs)(q.xu,Te(Te({className:o},l),{},{children:[(0,h.jsxs)(ke,{variant:"md",font:"secondary",color:a.ToucanColors.gray[600],css:(0,i.css)("margin-bottom:",d.spacing(2),";",""),children:[n,t&&(0,h.jsx)(Ze,{title:t,placement:"top",width:300,children:(0,h.jsx)(Ie,{icon:"info-circle",css:(0,i.css)("color:",u,";width:16px;margin-left:",d.spacing(1),";","")})})]}),(0,h.jsx)(q.xu,{children:s}),(0,h.jsx)(Oe,{children:r})]}))};!function(e){e.name="name",e.password="password"}(Ee||(Ee={}));var De=t(20281),Ne=t(29981),Ae=t(31273),Fe=function(e){var n=e.onLoginSignup,t=void 0===n?function(){}:n,s=e.header,o=e.externalAuthRedirectPath,i=(0,r.useContext)(De.Z).modal,c=(0,l.$G)("dashboard").t,d=function(){var e=(0,I.Z)(D().mark((function e(){return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.closeModal(),t();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=(0,Ne.Z)({modalPropsForAllModals:{isCloseButtonVisible:!0,closeButtonColor:a.ToucanColors.gray[300]},onLoginComplete:d,onSignupComplete:d,externalAuthRedirectPath:o}).showSignupSelectionModal;return(0,h.jsx)(Ce,{header:null!==s&&void 0!==s?s:c("dashboardSignupDontHaveAccountYet"),information:c("dashboardCreateAccountSavePersonalizeLearningProgress"),informationMaxWidth:4
112,isInformationStacked:!0,buttonText:c("dashboardSignUp"),buttonType:Ae.L$.Primary,onClickButton:u})},Le=t(50319),Be=t(92876),Ue=t(87536),_e=t(78782),qe=t(28623);function Ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function We(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(t),!0).forEach((function(n){(0,J.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ze=a.ToucanComponents.TextField,$e=a.ToucanComponents.Checkbox,Ke=function(e){var n=e.register,t=e.errors,s=e.hasErrorWithCurrentPassword,o=e.editType,a=e.passwordLength,d=(0,r.useState)(!0),u=d[0],p=d[1],g=(0,c.Z)(),m=(0,l.$G)("dashboard").t;return(0,h.jsx)(h.Fragment,{children:function(e){switch(e){case Ee.name:return(0,h.jsx)(ze,We({label:m("name"),name:"name",hasError:!!t.name,helperText:t.name&&t.name.message},n("name",{required:"".concat(m("pleaseIncludeYourName"))})));case Ee.password:return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ze,We(We({label:m("currentPassword"),hasError:s,helperText:s?m("passwordDoesntMatch"):""},n("currentPassword")),{},{type:u?"text":"password",hideCta:m("hide"),showCta:m("show")})),(0,h.jsx)(ze,We(We({label:m("newPassword"),hasError:!!t.newPassword,helperText:t.newPassword?t.newPassword.message:(0,h.jsx)(qe.Z,{passwordLength:a})},n("newPassword",{required:m("passwordAtleastNumCharacters",{numCharacters:8}),minLength:{value:8,message:m("passwordAtleastNumCharacters",{numCharacters:8})}})),{},{type:u?"text":"password",css:(0,i.css)("margin-top:",g.spacing(1),";",""),hideCta:m("hide"),showCta:m("show")})),(0,h.jsx)("div",{css:(0,i.css)("margin-top:",g.spacing(2),";",""),children:(0,h.jsx)($e,{isChecked:u,label:m("showPassword"),value:"show/hide password",onChange:function(){return p((function(e){return!e}))}})})]});default:return null}}(o)})};var Ve=a.ToucanComponents.Typography,He=a.ToucanComponents.Button,Xe=a.ToucanComponents.ToucanIcon,Ye={name:"zzk296",styles:"display:flex;width:100%;justify-content:flex-end"},Qe={name:"1d3w5wq",styles:"width:100%"},Je=function(e){var n,t,s=e.onClose,o=e.editType,a=e.setIsEditAccountInfoForMobileShown,d=(0,c.Z)(),u=(0,U.q)(),p=u.loggedInUser,g=u.refreshUser,m=(0,r.useState)(!1),f=m[0],x=m[1],b=(0,Ue.cI)({defaultValues:{name:p&&p.name?p.name:""}}),v=b.register,y=b.handleSubmit,w=b.watch,C=b.formState.errors,O=(0,Le.D)(_e.Z.UPDATE_USERS_NAME),P=(0,M.Z)(O,1)[0],S=(0,Le.D)(_e.Z.UPDATE_USER_PASSWORD_V2),T=(0,M.Z)(S,1)[0],E=(0,j.K)(),k=(0,r.useState)(!1),Z=k[0],R=k[1],N=(0,l.$G)("dashboard").t,A=null!==(n=null===(t=w("newPassword"))||void 0===t?void 0:t.length)&&void 0!==n?n:0,F=function(){E&&a?a(!1):s&&s()},L=function(){var e=(0,I.Z)(D().mark((function e(n){var t,r,s;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(!0),R(!1),t=n.name,r=n.currentPassword,s=n.newPassword,e.prev=3,o!==Ee.password){e.next=7;break}return e.next=7,T({variables:{currentPassword:r,newPassword:s}});case 7:if(o!==Ee.name){e.next=10;break}return e.next=10,P({variables:{name:t}});case 10:g(),F(),e.next=22;break;case 14:if(e.prev=14,e.t0=e.catch(3),Be.v("Edit ".concat(o," submission error"),{error:e.t0}),o!==Ee.password){e.next=21;break}return R(!0),x(!1),e.abrupt("return");case 21:F();case 22:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(n){return e.apply(this,arguments)}}();return(0,h.jsx)("div",{css:Qe,children:(0,h.jsxs)("div",{children:[E&&(0,h.jsx)("div",{css:Ye,children:(0,h.jsx)("div",{onClick:function(){return F()},role:"button",onKeyPress:function(){return F()},tabIndex:0,children:(0,h.jsx)(Xe,{icon:"times"})})}),(0,h.jsx)(Ve,{variant:"lg",font:"secondary",isBold:!0,css:(0,i.css)("padding-top:",d.spacing(2),";margin-bottom:",d.spacing(2),";",""),children:o===Ee.name?N("editName"):N("changePassword")}),(0,h.jsx)(Ke,{register:v,errors:C,hasErrorWithCurrentPassword:Z,passwordLength:A,editType:
1o}),(0,h.jsx)(He,{onClick:y(L),type:"utility",isDisabled:f,css:(0,i.css)("width:100%;margin-top:",d.spacing(2),";",""),children:N("saveChanges")}),(0,h.jsx)(He,{onClick:function(){return F()},type:"secondary",isDisabled:f,css:(0,i.css)("width:100%;margin-top:",d.spacing(1),";",""),children:N("cancel")})]})})};var en=a.ToucanComponents.Typography,nn={name:"s5xdrg",styles:"display:flex;align-items:center"},tn=function(e){var n=e.onLoginSignup,t=e.setIsEditAccountInfoForMobileShown,s=e.setEditFieldType,o=(0,c.Z)(),d=(0,U.q)(),u=d.loggedInUser,p=d.loggedInAsRegistered,g=(0,r.useContext)(De.Z).modal,m=(0,j.K)(),f=(0,l.$G)("dashboard").t,x=function(e){m?(s(e),t(!0)):function(e){g.showModal({ContentComponent:Je,disableBackdropClick:!1,isCloseButtonVisible:!0,contentProps:{editType:e,onClose:function(){return g.closeModal()}}})}(e)};return(0,h.jsx)(Re,{title:f("dashboardAccountInformation"),css:(0,i.css)("margin-bottom:",o.spacing(4),";",""),children:p?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Ce,{header:f("email"),information:u&&u.email?u.email:"",extraContent:u&&u.isExternallyAuthed&&(0,h.jsxs)("div",{css:nn,children:[(0,h.jsx)("img",{src:"/images/dashboard/google.svg",width:"12px",height:"12px",alt:f("sharedGoogleLogo"),css:(0,i.css)("margin-right:",o.spacing(1),";","")}),(0,h.jsx)(en,{variant:"xs",isBold:!0,color:a.ToucanColors.gray[300],children:f("googleSignOn")})]})}),(0,h.jsx)(Ce,{header:f("name"),information:u&&u.name?u.name:"",buttonText:f("editName"),onClickButton:function(){return x(Ee.name)},css:(0,i.css)("margin-top:",o.spacing(2),";","")}),u&&!u.isExternallyAuthed&&(0,h.jsx)(Ce,{header:f("password"),information:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",buttonText:f("editPassword"),onClickButton:function(){return x(Ee.password)},css:(0,i.css)("margin-top:",o.spacing(2),";","")})]}):(0,h.jsx)(Fe,{onLoginSignup:n,externalAuthRedirectPath:"/dashboard/settings"})})},rn=t(12509);var sn=a.ToucanComponents.Button,on=function(e){var n=e.hasGlobalPermissions,t=e.onRequestGlobalPermissions,r=(0,c.Z)(),s=(0,j.K)(),o=(0,p.B)().browserName,a=(0,l.$G)("dashboard").t,g=!0!==n&&null!==n&&!s;return(0,h.jsx)(rn.Z,{in:g&&"Safari"!==o,css:(0,i.css)("margin-bottom:",g?r.spacing(4):0,";",""),children:(0,h.jsxs)(d.Z,{severity:"info",children:[(0,h.jsx)(u.Z,{children:a("allowAccessAdditionalPermissionsNeeded")}),a("allowAccessCheckAnyOpenWindows"),(0,h.jsx)(sn,{onClick:t,type:"text",css:(0,i.css)("margin-top:",r.spacing(1),";",""),children:a("allowAccess")})]})})},an={name:"pwe9qt",styles:"vertical-align:middle;overflow:hidden;width:24px;height:24px;display:inline-block"},cn=function(){var e=(0,c.Z)(),n=(0,l.$G)("dashboard").t;return(0,h.jsx)(rn.Z,{in:!0,sx:{marginBottom:e.spacing(4)},children:(0,h.jsxs)(d.Z,{severity:"info",children:[(0,h.jsx)(u.Z,{children:n("allowAccessAdditionalPermissionsNeeded")}),(0,h.jsx)(l.cC,{i18nKey:"clickIconInBrowserBar",ns:"dashboard",components:[(0,h.jsx)("img",{src:"/images/onboarding/extension-icon.svg",alt:n("onboardingExtensionIcon"),css:an})]})]})})},ln=function(){var e=(0,b.M)(),n=e.isInstalled,t=e.hasGlobalPermissions,r=e.requestGlobalPermissions;return n?(0,h.jsx)(on,{hasGlobalPermissions:t,onRequestGlobalPermissions:function(){return r(f.aP.Dashboard)}}):(0,h.jsx)(m,{})},dn=function(){var e=(0,v.D)(),n=e.isInstalledInFirefox,t=e.hasGlobalPermissionsInFirefox,s=e.refetch,o=(0,r.useRef)();return(0,r.useEffect)((function(){return!t&&s&&(o.current=window.setInterval(s,1e3)),function(){window.clearInterval(o.current)}}),[t,s]),n?t?null:(0,h.jsx)(cn,{}):(0,h.jsx)(m,{})},un=function(){var e=(0,r.useState)(!0),n=(0,c.Z)(),t=(0,j.K)(),s=(0,r.useState)(!1),o=s[0],d=s[1],u=(0,r.useState)(null),g=u[0],m=u[1],f=(0,p.B)().browserName,b=(0,l.$G)("dashboard").t,v=f===y.MX.Firefox;return t&&o?(0,h.jsx)(fe,{title:b("dashboardSettings"),pageError:x.ZP.UserDashboardSettingsPageError,children:(0,h.jsx)("div",{css:(0,i.css)("background:",a.ToucanColors.white,";position:absolute;top:0;left:0;padding-top:",n.spacing(11),";padding-left:",n.spacing(2),";padding-right:",n.spacing(2),";width:100%;",""),children:(0,h.jsx)(Je,{editType:null!==g&&void 0!==g?g:"",setIsEditAccountInfoForMobileShown:d})})}):(0,h.jsx)(fe,{title:b("dashboardSettings"),pageError:x.ZP.UserDashboardSettingsPageError,children:e&&(0,h.jsxs)(h.Fragment,{children:[v?(0,h.jsx)(dn,{}):(0,h.jsx)(ln,{}),(0,h.jsx)(tn,{onLoginSignup:function(){},setIsEditAccountInfoForMobileShown:d,setEditFieldType:m})]})})},pn=t(19750),gn=t(93736),hn=t(27995),mn=!0,fn=function(){return(0,hn._)({pinchpoint:pn.Z.DashboardSettings}),(0,r.useEffect)((function(){(0,gn.L9)({name:f.zW.DashboardPageVisited,properties:{dashboardPageName:f.Yv.Settings}})}),[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o(),{children:(0,h.jsx)("meta",{name:"toucanbot",content:"noindex"})}),(0,h.jsx)(un,{})]})}},20473:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/settings",function(){return t(44454)}])}},function(e){e.O(0,[4885,5016,5425,8070,3146,9774,2888,179],(function(){return n=20473,e(e.s=n);var n}));var n=e.O();_N_E=n}]); 2//# sourceMappingURL=settings-05f2966331d6e537.js.map
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.