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]="50a10a0d-9b3d-5ec0-a092-5d95c729bffb")}catch(e){}}(); 3(self.webpackChunkmurf_web=self.webpackChunkmurf_web||[]).push([[9083],{108:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(96679),i=n(55293),a=n(91688),r=n(9001),o=n(70579);const l=()=>{const e=(0,a.useHistory)();return(0,o.jsxs)(r.A,{cornerRadius:[60],className:"login-page__logo-section",children:[(0,o.jsx)("img",{className:"auth-bg",src:(0,s.Ul6)("v2-assets/rebranding/auth-bg.svg"),alt:""}),(0,o.jsxs)("a",{href:"/",onClick:(0,s.ooL)(e,"/"),className:"text-white font-16 back-to-home d-flex align-items-center mb-2 font-inter",children:[(0,o.jsx)("span",{className:"material-icons-outlined",children:"chevron_left"}),"Back to Homepage"]}),(0,o.jsxs)("div",{className:"d-flex flex-column justify-content-between align-items-center w-100 h-100",children:[(0,o.jsxs)("div",{className:"d-flex flex-column align-items-center justify-content-between murf-info",children:[(0,o.jsx)("img",{src:(0,s.er1)("murf-icon.svg"),alt:"murf-logo",className:"auth-murf-logo"}),(0,o.jsxs)("div",{className:"murf-achievement",children:[(0,o.jsx)(i.A,{tag:"span",fontSize:20,font:"inter",weight:400,lineHeight:28,className:"text-center text-rb-light-pink1",children:"Trusted by 8 Million users from 100+ countries"}),(0,o.jsxs)("div",{className:"murf-certification",children:[(0,o.jsx)("img",{src:(0,s.Ul6)("v2-assets/rebranding/award-leader.svg"),alt:"murf-award-leadership"}),(0,o.jsx)("img",{className:"award-growth",src:(0,s.Ul6)("v2-assets/rebranding/award-growth.svg"),alt:"murf-award-fastest-growth"}),(0,o.jsx)("img",{src:(0,s.Ul6)("v2-assets/rebranding/award-momentum-leader.svg"),alt:"murf-award-momentum-leader"})]})]})]}),(0,o.jsxs)("div",{className:"d-flex certification-section",children:[(0,o.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,o.jsx)("img",{src:(0,s.Ul6)("v2-assets/rebranding/certification-soc.svg"),className:"certification-image",alt:"SOC type 2 certification"}),(0,o.jsxs)(i.A,{className:"text-white opacity-75 w-100 soc-text",weight:400,font:"inter",children:["SOC 2 Type II ",(0,o.jsx)("br",{})," Certification"]})]}),(0,o.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,o.jsx)("img",{src:(0,s.Ul6)("v2-assets/rebranding/certification-iso.svg"),className:"certification-image",alt:"ISO 27001 Certification"}),(0,o.jsxs)(i.A,{className:"text-white opacity-75 text-center",weight:400,font:"inter",children:["ISO 27001 ",(0,o.jsx)("br",{})," Certification"]})]}),(0,o.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,o.jsx)("img",{src:(0,s.Ul6)("v2-assets/rebranding/certification-gdpr.svg"),className:"certification-image",alt:"GDPR Compliant"}),(0,o.jsxs)(i.A,{className:"text-white opacity-75 text-center",weight:400,font:"inter",children:["GDPR ",(0,o.jsx)("br",{})," Compliant"]})]})]})]})]})}},9001:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(65043),i=n(39832),a=n(96679),r=n(70579);const o=e=>{let{cornerRadius:t,smoothing:n=.8,className:o,children:l,style:c,...d}=e;const u=window.innerWidth<=a.LOf.MD?.5:1,m=(0,s.useRef)(null),g=(0,i.A)(),h=(0,s.useCallback)((()=>{const[e,n=e,s=n,i=s]=t;return{tl:e,tr:n,br:s,bl:i}}),[t]),f=(0,s.useCallback)((()=>{const{tl:e,tr:t,br:n,bl:s}=h();return{topLeft:(e||0)*u,topRight:(t||0)*u,bottomRight:(n||0)*u,bottomLeft:(s||0)*u}}),[u,h]),p=(0,s.useCallback)((e=>{if(!e)return"";let{width:t,height:s}=e;t=Math.ceil(t),s=Math.ceil(s);const{topLeft:i,topRight:a,bottomLeft:r,bottomRight:o}=f(),l=e=>Number(e.toFixed(1)),c=Number((1-n).toFixed(1)),d=l(i*c),u=l(a*c),m=l(o*c),g=l(r*c);let h=`M ${i},0`;return h+=`L ${l(t-a)},0`,h+=`C ${l(t-u)},0 ${t},${l(u)} ${t},${a}`,h+=`L ${t},${l(s-o)}`,h+=`C ${t},${l(s-m)} ${l(t-m)},${s} ${l(t-o)},${s}`,h+=`L ${l(r)},${s}`,h+=`C ${l(g)},${s} 0,${l(s-g)} 0,${l(s-r)}`,h+=`L 0,${i}`,h+=`C 0,${d} ${d},0 ${i},0`,h+" Z"}),[f,n]);return(0,s.useEffect)((()=>{var e,t;const n=null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e),s=p(n);m.current&&s&&(m.current.style.clipPath=`path('${s}')`)}),[p,g]),(0,r.jsx)("div",{className:o,style:c,ref:m,...d,children:l})}}
3,55799:(e,t,n)=>{n.d(t,{A:()=>a});n(65043);var s=n(24682),i=n(70579);const a=e=>{let{password:t}=e;const n=e=>(null===e||void 0===e?void 0:e.length)>=8,a=e=>!!e&&/[$&+,:;=?@#|'<>.^*()%!-]/.test(e),r=e=>!!e&&/[0-9]/.test(e),o=e=>!!e&&/[A-Za-z]/.test(e),l=e=>!!e&&/^\S*$/.test(e);return(0,i.jsxs)("div",{style:{padding:"1rem",width:"262px"},children:[(0,i.jsx)("div",{className:"mb-2",children:"Password must"}),(0,i.jsxs)("div",{className:"d-flex mb-2",children:[(0,i.jsx)(s.In,{icon:n(t)?"tick-circle":"circle",size:13,className:"mr-2 mt-1 "+(n(t)?"text-green5":"text-gray5")}),(0,i.jsx)("div",{children:" Be atleast 8 characters "})]}),(0,i.jsxs)("div",{className:"d-flex mb-2",children:[(0,i.jsx)(s.In,{icon:a(t)?"tick-circle":"circle",size:13,className:"mr-2 mt-1 "+(a(t)?"text-green5":"text-gray5")}),(0,i.jsx)("div",{children:" Have atleast one special character "})]}),(0,i.jsxs)("div",{className:"d-flex mb-2",children:[(0,i.jsx)(s.In,{icon:r(t)?"tick-circle":"circle",size:13,className:"mr-2 mt-1 "+(r(t)?"text-green5":"text-gray5")}),(0,i.jsx)("div",{children:" Have atleast one number "})]}),(0,i.jsxs)("div",{className:"d-flex mb-2",children:[(0,i.jsx)(s.In,{icon:o(t)?"tick-circle":"circle",size:13,className:"mr-2 mt-1 "+(o(t)?"text-green5":"text-gray5")}),(0,i.jsx)("div",{children:" Have atleast one alphabet "})]}),(0,i.jsxs)("div",{className:"d-flex mb-2",children:[(0,i.jsx)(s.In,{icon:l(t)?"tick-circle":"circle",size:13,className:"mr-2 mt-1 "+(l(t)?"text-green5":"text-gray5")}),(0,i.jsx)("div",{children:" No whitespaces "})]})]})}},79083:(e,t,n)=>{n.r(t),n.d(t,{default:()=>E});var s=n(65043),i=n(24682),a=n(91688),r=n(96679),o=n(57546),l=n(37939),c=n(53519),d=n(61072),u=n(38846),m=n(25078),g=n(95827),h=n(55799),f=n(80495),p=n(55293),x=n(28017),v=n(93076),N=n(98139),w=n.n(N),b=n(70579);const j=e=>{let{googleLogin:t,microsoftLogin:n,slackLogin:s,isLogin:a,isUserInvitePending:o}=e;const l=[{label:`Sign ${a?"In":"Up"} with Google`,src:(0,r.LYF)("google-color.svg"),value:"google"},{label:`Sign ${a?"In":"Up"} with Microsoft`,src:(0,r.LYF)("microsoft-logo.svg"),value:"microsoft"},{label:`Sign ${a?"In":"Up"} with Slack`,src:(0,r.LYF)("slack-logo.svg"),value:"slack"}];return(0,b.jsx)(b.Fragment,{children:l.map(((e,c)=>(0,b.jsx)(i.$n,{fill:!0,icon:(0,b.jsx)("img",{src:e.src,alt:"",className:"m-0"}),onClick:()=>(e=>{let i={};switch(new URLSearchParams(window.location.search).get(v.U0.CANVA_USER_TOKEN)&&(i={source:"canva",medium:"app store"}),e){case"google":(0,r.ENR)(a?v.No.LOGIN_START:v.No.SIGNUP_START,{...a?{"Sign In Method":f.eC.GOGL_LOGIN}:{"Sign Up Method":f.eC.GOGL_SIGNUP},Invited:!(null===o||void 0===o||!o.inviteLink),"One Tap":!1,...i},(()=>{}),!0),t();break;case"slack":(0,r.ENR)(a?v.No.LOGIN_START:v.No.SIGNUP_START,{...a?{"Sign In Method":f.eC.SLACK_LOGIN}:{"Sign Up Method":f.eC.SLACK_SIGNUP},Invited:!(null===o||void 0===o||!o.inviteLink),"One Tap":!1,...i},(()=>{}),!0),s();break;case"microsoft":(0,r.ENR)(a?v.No.LOGIN_START:v.No.SIGNUP_START,{...a?{"Sign In Method":f.eC.MICROSOFT_LOGIN}:{"Sign Up Method":f.eC.MICROSOFT_SIGNUP},Invited:!(null===o||void 0===o||!o.inviteLink),"One Tap":!1,...i},(()=>{}),!0),n()}})(e.value),className:w()("w-auto auth-options",{"mb-0":c===l.length-1,"mb-2":c!==l.length-1}),children:(0,b.jsx)(p.A,{className:"font-inter ml-2 pl-1 signup-options",children:e.label})},c)))})};var S=n(20566),y=n(14556),k=n(29313),C=n(52348);const A=e=>{var t,n;let{authUser:a,passwordLogin:l,googleLogin:N,slackLogin:A,createAccount:I,resetPassword:_,signInWithSSO:L,loginErrorMessage:O,resetLoginError:P,firebaseActionStatus:E,newsLetterCheckbox:T,setNewsLetterCheckbox:R,formState:$,setFormState:G,defaultUserEmail:U,defaultAction:M,resetFormCounter:F,microsoftLogin:D,isOpenedByWindowsPlugin:z,isOpenedByPptPlugin:B}=e;const[W,H]=(0,s.useState)(U||null),[J,K]=(0,s.useState)(),[Y,V]=(0,s.useState)("EMAIL"),[X,q]=(0,s.useState)(),[Z,Q]=(0,s.use
3State)(r.dOd.idle),ee="PROCESSING"===E,[te,ne]=(0,s.useState)(!1),[se,ie]=(0,s.useState)(!1),ae=(0,y.wA)(),{countryCode:re,regionCode:oe}=(0,y.d4)((e=>e.globalState)),le="US"===re&&"CA"===oe,[ce,de]=(0,s.useState)(!1),ue=null!==(t=JSON.parse(localStorage.getItem(r.wIh)))&&void 0!==t?t:void 0,{width:me}=(0,S.A)(),ge=(0,s.useMemo)((()=>new URLSearchParams(window.location.search).get(v.U0.CANVA_USER_TOKEN)),[]),he=(0,s.useMemo)((()=>{var e;return null!==(e=z||B||ge)&&void 0!==e&&e}),[z,B,ge]),{query:fe}=(0,o.A)(),pe="SESSION_EXPIRED"===fe.get("error");(0,s.useEffect)((()=>{xe()}),[F,$]),(0,s.useEffect)((()=>{ae((0,k.jC)())}),[ae]);const xe=()=>{V(void 0),q(void 0)},ve=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(xe(),W&&W.length)return(0,r.DTn)(W)?!e||J&&null!==J&&void 0!==J&&J.length?"resetPassword"!==$&&"signInWithSSO"!==$&&e&&(!J||J.length<8)?(q("Password must contain at least 8 characters"),!1):!e||null!==J&&void 0!==J&&J.match(/^(?=.*?[A-Za-z])(?=.*?[0-9])(?=.*?[$&+,:;=?@#|'<>.^*()%!-]).{8,}$/g)?!(e&&(null===J||void 0===J||!J.match(/^\S*$/)))||(q("Password should not contain any whitespaces"),!1):(q("Password should contain atleast one alphabet, one number, and one special character"),!1):(q("Enter a password to continue"),!1):(V("Invalid email"),!1);V("Enter an email to continue")}),[$,W,J]),Ne=(0,s.useCallback)((async e=>{ve()&&L(W).then((()=>{Q(r.dOd.success),G(f.z_.LOGIN)})).catch((()=>Q(r.dOd.error))),null===e||void 0===e||e.stopPropagation(),null===e||void 0===e||e.preventDefault()}),[L,W,ve,G]);(0,s.useEffect)((()=>{null===a&&Z===r.dOd.idle&&"IDLE"===E&&U&&$===f.bf.SIGN_IN_WITH_SSO&&(Q(r.dOd.loading),Ne())}),[a,M,U,Z,Ne,E,$]);let we=null,be=O.message;return null!==(n=O.message)&&void 0!==n&&n.helpArticle&&(be=O.message.message,we=(0,b.jsx)("a",{href:O.message.link.url,rel:"noreferrer",target:"_blank",children:O.message.link.text})),(0,b.jsx)("div",{className:"w-100 login-page__form__actual",children:(0,b.jsxs)(s.Fragment,{children:[ue?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p.A,{center:!0,color:x.T.grey[2],font:"roboto-flex",fontWidth:150,children:"You have been invited to join a workspace."}),(0,b.jsx)(p.A,{className:"my-3",font:"roboto-flex",weight:"800",center:!0,tag:"h2",children:"Create an account or login to access your invited workspace."})]}):ge?(0,b.jsxs)(p.A,{tag:"h4",className:"text-center font-roboto-flex auth-heading",children:["Connect"," ",(0,b.jsx)("span",{className:"auth-heading-linear-gradient",children:"Murf AI"})," with Canva"]}):(0,b.jsx)(p.A,{tag:"h4",className:"text-center text-rb-purple1 font-roboto-flex auth-heading",children:"createAccount"===$?(0,b.jsxs)(b.Fragment,{children:["Create an"," ",(0,b.jsx)("span",{className:"auth-heading-linear-gradient",children:"Account"}),(0,b.jsx)("br",{}),(0,b.jsx)(p.A,{tag:"span",font:"inter",className:"rb-purple1 auth-sub-heading font-weight-400 font-muted",children:"You are few moments away from getting started!"})]}):"login"===$?(0,b.jsxs)(b.Fragment,{children:["Login to"," ",(0,b.jsx)("span",{className:"auth-heading-linear-gradient",children:"Murf"})]}):"resetPassword"===$?"Reset password":"Log in with Enterprise SSO"}),"createAccount"!==$||ue||pe||!he?(0,b.jsx)(s.Fragment,{children:pe?(0,b.jsx)(i.Pq,{intent:u.J.DANGER,children:"Session Terminated: Your account has exceeded the maximum number of concurrent logins. Please log in again to continue."}):""}):(0,b.jsx)(p.A,{center:!0,tag:"h4",color:x.T.grey[2],className:"auth-heading font-roboto-flex",children:ge?"Login or Create account to get started":z||B?`Get started with ${z?"Murf Voices Installer":"Murf Add-in for Microsoft Powerpoint"} here`:""}),"login"===$&&(z||B)?(0,b.jsxs)(p.A,{center:!0,tag:"p",color:x.T.grey[2],weight:400,children:["Enter your credentials now to start using"," ",(0,b.jsx)("b",{children:z?"Murf Voices for Windows":"Murf Add-in for Microsoft Powerpoint"})]}):null,(0,b.jsx)("div",{className:"d-flex flex-column login-options",children:"createAccount"===$&&(0,b.jsx)(i.Sc,{className:"mb-4 font-12 checkbox-border-fix mf-black-text promotional-checkbox text-center font-inter text-rb-purple1",checked:T,label:"Send me tips, updates and offers",onChange:e=>{R(e.target.checked)},onKeyDown:e=>{(0,r.gJ$)(e)&&R((e=>!e))}})}),(0,b.jsx)(i.MG,{id:"loginEmailTextField",placeholder:"Your Work Email",type:"Text",className:w()("font-inter font-16 mb-3",{"login-input-error":Y,"login-input":!Y}),onChange:e=>{H(e.target.value),V(void 0)},rightElement:Y&&(0,b.jsx)(i.m_,{content:Y,popoverClassName:[m.KJG,"murf-tooltip"],intent:u.J.DANGER,position:g.yX.TOP,usePortal:!0,children:(0,b.jsx)("span",{className:"material-icons-round md-18 p-1 bg-rb-pink7 text-white rounded-circle",children:"priority_high"})}),autoComplete:"email"}),"resetPassword"!==$&&"signInWithSSO"!==$&&(0,b.jsx)(i.AM,{content:(0,b.jsx)(h.A,{password:J}),position:me<500?g.yX.TOP:g.yX.RIGHT,autoFocus:!1,disabled:"createAccount"!==$,targetTagName:"div",fill:!0,isOpen:se,boundary:"viewport",className:"password-popover",children:(0,b.jsx)(i.m_,{content:X,position:"createAccount"===$?g.yX.LEFT:g.yX.RIGHT,isOpen:X,fill:!0,intent:u.J.DANGER,popoverClassName:[m.KJG,"murf-tooltip h-100"],className:"h-100",children:(0,b.jsx)(i.MG,{id:"loginPasswordField",placeholder:"Password",rightElement:(0,b.jsx)(i.$n,{className:"button-icon-center p-0 password-visibility mr-2",onClick:()=>ne(!te),"aria-label":te?"Hide password":"Show password",children:(0,b.jsx)("span",{className:"material-icons-round md-18 text-gray5",children:te?"visibility":"visibility_off"})}),type:te?"text":"Password",fill:!0,className:"font-inter login-input mb-3",onFocus:()=>ie(!0),onBlur:()=>ie(!1),onChange:e=>{K(e.target.value),X&&q(void 0)},autoComplete:"current-password"})})}),!!le&&"createAccount"===$&&(0,b.jsx)(i.Sc,{checked:ce,onChange:e=>de(e.target.checked),className:"d-flex align-items-center checkbox-border-fix promotional-checkbox",label:(0,b.jsxs)("div",{className:"policy-text",children:["By signing up, you acknowledge and accept Murf's"," ",(0,b.jsx)("a",{href:"/resources/privacy_policy/",target:"_blank",rel:"no-follow noreferrer",className:"policy-link",children:"privacy policy"}),",",(0,b.jsx)("a",{href:"/resources/terms_of_service/",target:"_blank",rel:"no-follow noreferrer",className:"ml-1 policy-link",children:"terms of service"})," ","and"," ",(0,b.jsx)("a",{href:"/resources/privacy_notice_ccpa/",target:"_blank",rel:"no-follow noreferrer",className:"policy-link",children:"CCPA"})," ","privacy notice."]})}),(0,b.jsx)("input",{type:"submit",value:"submit",hidden:!0}),"login"===$&&(0,b.jsx)(i.$n,{id:"emailPassLoginButton",className:"w-100 my-3 font-inter auth-button",intent:x.y["Brand-Gradient-Primary"],type:"button",disabled:ee||!W||!J,loading:ee,onClick:e=>{if(ve()){const e={};ge&&(e.source="canva",e.medium="app store"),(0,r.ENR)(v.No.LOGIN_START,{"Sign In Method":f.eC.EMAIL_LOGIN,Invited:!(null===ue||void 0===ue||!ue.inviteLink),...e},(()=>{}),!0),l(W,J)}e.stopPropagation(),e.preventDefault()},children:!ee&&"Login"}),"createAccount"===$&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.$n,{className:"w-100 my-3 font-inter auth-button",type:"button",disabled:ee||!W||!J,onClick:async e=>{if(le&&!ce)return(0,C.Qg)("Please accept the terms and conditions to continue."),!1;if(ve(!0)){const e={};ge&&(e.source="canva",e.medium="app store"),(0,r.ENR)(v.No.SIGNUP_START,{"Sign Up Method":f.eC.EMAIL_SIGNUP,Invited:!(null===ue||void 0===ue||!ue.inviteLink),...e},(()=>{}),!0),I(W,J)}e.stopPropagation(),e.preventDefault()},loading:ee,intent:x.y["Brand-Gradient-Primary"],children:!ee&&"Sign Up"}),!le&&(0,b.jsx)(i.EY,{className:"w-100 font-14 font-inter text-left mb-4",children:(0,b.jsxs)("div",{className:"policy-text",children:["By signing up, you accept Murf's"," ",(0,b.jsx)("a",{href:"/resources/privacy_policy/",target:"_blank",rel:"no-follow noreferrer",className:"mr-1 policy-link",children:"privacy policy"})," ","and"," ",(0,b.jsx)("a",{href:"/resources/terms_of_service/",target:"_blank",rel:"no-follow noreferrer",className:"ml-1 policy-link",children:"terms of service"}),"."]})})]}),"resetPassword"===$&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.$n,{intent:x.y["Brand-Gradient-Primary"],loading:ee,style:{display:"flex",justifyContent:"center",textTransform:"capitalize"},onClick:e=>{ve()&&((0,r.ENR)(v.No.CHANGE_PASSWORD_START,{"Entry Point":"Signup Screen"}),_(W).then((()=>{G(f.z_.LOGIN)}))),e.stopPropagation(),e.preventDefault()},disabled:ee,className:"auth-button font-inter mt-3 mb-2",fill:!0,children:"Reset Password"}),(0,b.jsx)(i.$n,{className:"auth-button-hollow font-inter",type:"button",onClick:()=>{G(f.z_.LOGIN),V(void 0)},intent:"primary",fill:!0,children:"Cancel"})]}),"signInWithSSO"===$&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.$n,{intent:x.y["Brand-Gradient-Primary"],fill:!0,loading:ee||Z===r.dOd.loading,style:{display:"flex",justifyContent:"center",textTransform:"capitalize"},onClick:Ne,disabled:ee,className:"text-uppercase auth-button mt-4 mb-2 font-inter",children:"Login"}),(0,b.jsx)(i.$n,{intent:u.J.PRIMARY,className:"w-100 auth-button-hollow font-inter",type:"button",onClick:()=>{G(f.z_.LOGIN),V(void 0)},children:"Cancel"})]}),"login"===$&&(0,b.jsxs)("div",{className:"mx-1 text-center mb-5 d-flex flex-column mt-1",children:[(0,b.jsx)("span",{type:"button",onClick:()=>{P(),G(f.z_.RESET_PASSWORD),V(void 0)},onKeyDown:e=>{(0,r.gJ$)(e)&&(P(),G(f.z_.RESET_PASSWORD),V(void 0))},className:"mb-3 font-inter",children:(0,b.jsx)(p.A,{className:"font-inter underline text-rb-purple1",center:!0,weight:600,tag:"span",tabIndex:0,children:"Forgot Password ?"})}),(0,b.jsx)("span",{type:"button",onClick:()=>{P(),G(f.z_.SIGN_IN_WITH_SSO),V(void 0)},onKeyDown:e=>{(0,r.gJ$)(e)&&(P(),G(f.z_.SIGN_IN_WITH_SSO),V(void 0))},children:(0,b.jsx)(p.A,{className:"underline font-inter text-rb-purple1",center:!0,weight:600,tag:"span",tabIndex:0,children:"Log in with Enterprise SSO"})})]}),Object.keys(O).length&&"resetPassword"!==$?(0,b.jsx)(c.A,{className:"p-0",children:(0,b.jsx)(d.A,{className:"my-2 m-0 w-100",children:(0,b.jsx)(i.Pq,{icon:O.icon,intent:O.intent,className:"password-error-callout",children:(0,b.jsxs)(i.EY,{style:{wordBreak:"break-word"},className:"small font-inter",children:[`${be}`," ",we]})})})}):"","resetPassword"===$||"signInWithSSO"===$?"":(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"alternate-styles-2 my-3",children:[(0,b.jsx)(i.cG,{className:"w-full m-0"}),(0,b.jsx)("div",{className:"text-center font-inter text-muted font-14 w-100 w-full mb-1",children:$===f.bf.CREATE_ACCOUNT?(0,b.jsx)("span",{className:"font-rubik font-14 font-muted",children:"Already have an account?"}):(0,b.jsx)("span",{className:"font-rubik font-14 font-muted",children:"Don't have an account?"})}),(0,b.jsx)(i.cG,{className:"w-full m-0"})]}),(0,b.jsxs)(i.$n,{fill:!0,intent:u.J.PRIMARY,className:"flex-1 auth-button-hollow font-inter alternate-auth",onClick:()=>{P(),$===f.bf.LOGIN?G(f.z_.CREATE_ACCOUNT):G(f.z_.LOGIN)},children:[(0,b.jsx)("span",{className:"material-icons-round md-16 auth-arrow",children:"north_east"}),$===f.bf.CREATE_ACCOUNT?(0,b.jsx)("span",{className:"font-rubik font-weight-500",children:"Log In"}):(0,b.jsx)("span",{className:"font-rubik font-weight-500",children:"Create an Account"})]})]}),["login","createAccount"].includes($)?(0,b.jsxs)("div",{className:"d-flex flex-column login-options mt-1",children:[(0,b.jsxs)("div",{className:"alternate-styles my-3",children:[(0,b.jsx)(i.cG,{className:"w-full m-0"}),(0,b.jsx)("div",{className:"text-center font-inter text-muted font-14 w-100 w-full mb-1",children:"or"}),(0,b.jsx)(i.cG,{className:"w-full m-0"})]}),(0,b.jsx)(j,{isLogin:"login"===$,microsoftLogin:D,googleLogin:N,slackLogin:A,isUserInvitePending:ue}),le&&(0,b.jsxs)("div",{className:"policy-text ml-2 pl-1 mt-4",children:["By signing up with above options, you acknowledge and accept Murf's"," ",(0,b.jsx)("a",{href:"/resources/privacy_policy/",target:"_blank",rel:"no-follow noreferrer",className:"policy-link",children:"privacy policy"}),",",(0,b.jsx)("a",{href:"/resources/terms_of_service/",target:"_blank",rel:"no-follow noreferrer",className:"ml-1 policy-link",children:"terms of service"})," ","and"," ",(0,b.jsx)("a",{href:"/resources/privacy_notice_ccpa/",target:"_blank",rel:"no-follow noreferrer",className:"policy-link",children:"CCPA"})," ","privacy notice."]})]}):""]})})};var I=n(52777),_=n(32943),L=n(41591),O=n(33312),P=n(108);const E=(0,s.forwardRef)(((e,t)=>{let{setSignupOpenState:n=()=>{},defaultLoginState:c,defaultUserEmail:d,defaultAction:u,shouldRedirect:m=!0}=e;const{query:g}=(0,o.A)(),h=f.z_.CREATE_ACCOUNT,p=(0,s.useContext)(l.l7),[x,N]=(0,s.use
3State)(c||h),[w,j]=(0,s.useState)(r.dOd.idle),[S,y]=(0,s.useState)("IDLE"),[k,C]=(0,s.useState)({}),E=(0,a.useHistory)();(0,s.useImperativeHandle)(t,(()=>({setLoginState:N})));const[T,R]=(0,s.useState)(!1),[$,G]=(0,s.useState)(!0),[U]=(0,s.useState)(0);let M=(0,s.useMemo)((()=>{var e;return null!==(e=JSON.parse(localStorage.getItem(r.wIh)))&&void 0!==e?e:{}}),[]),F=(0,s.useMemo)((()=>{var e;return(null===(e=new URLSearchParams(window.location.search))||void 0===e?void 0:e.get(v.U0.CANVA_USER_TOKEN))||(0,_.qg)(v.BD.USER_TOKEN)}),[]);const{googleLogin:D,redirect:z,fbLogin:B,microsoftLogin:W,signInWithSSO:H,resetPassword:J,createAccount:K,passwordLogin:Y,slackLogin:V,cancelAuthPageRedirect:X}=(0,f.Ay)({setFirebaseActionStatus:y,newsLetterCheckbox:$,setNewsLetterCheckbox:G,authUser:p,setLoginErrorMessage:C}),q=window.location.pathname.includes("/studio/login")&&window.opener&&g.get("id"),Z=window.location.pathname.includes("/studio/login")&&F,Q=g.get("source"),ee=g.get("port"),{isOpenedByWindowsPlugin:te,isOpenedByPptPlugin:ne}=(0,s.useMemo)((()=>{const e=(0,r.$TG)(Q);return{isOpenedByWindowsPlugin:window.location.pathname.includes("/studio/login")&&e===v.CN.WINDOWS_PLUGIN,isOpenedByPptPlugin:window.location.pathname.includes("/studio/login")&&e===v.CN.PPT_PLUGIN}}),[Q]);(0,s.useEffect)((()=>{X||p&&p.getIdToken&&(Object.keys(M).length?E.push(null===M||void 0===M?void 0:M.inviteLink):m&&z())}),[p,m]),(0,s.useEffect)((()=>{const e=g.get("type");e&&Object.values(f.z_).includes(e)&&x!==e&&w===r.dOd.idle?(N(e),j(r.dOd.success)):e&&x===e&&j(r.dOd.error)}),[g,x,w]),(0,s.useEffect)((()=>{if(q&&p&&p.getIdToken){R(!0),window.onbeforeunload=function(){se("error")};let e=g.get("id");I.r.createCustomToken(p,e).then((e=>{R(!1),"SUCCESS"===e.data.responseCode?(se(e.data.extra),window.close()):(se("error"),window.close())}))}}),[p]),(0,s.useEffect)((()=>{Z&&null!==p&&void 0!==p&&p.getIdToken&&(R(!0),p&&E.replace("/studio/canva-connect"))}),[p,Z,E]),(0,s.useEffect)((()=>{if(null!==p&&void 0!==p&&p.getIdToken&&(te||ne)&&ee)if(R(!0),te)E.replace(`/studio/windows-plugin-login/?source=${Q}&port=${ee}`);else if(ne)if(null!==p&&void 0!==p&&p.emailVerified)E.replace(`/studio/ppt-plugin-login/?source=${Q}&port=${ee}`);else{p.providerData.some((e=>{var t;return null===e||void 0===e||null===(t=e.providerId)||void 0===t?void 0:t.includes("microsoft.com")}))?E.replace(`/studio/ppt-plugin-login/?source=${Q}&port=${ee}`):(0,O.ZB)(v.iE.PPT_PLUGIN_AUTH,{source:Q,port:ee})}}),[null===p||void 0===p?void 0:p.getIdToken,null===p||void 0===p?void 0:p.emailVerified,null===p||void 0===p?void 0:p.providerData,E,te,ne,ee,Q]);const se=e=>{window.opener.postMessage(e,"*")};if(T){if(q)return(0,b.jsx)("div",{className:"full-viewport flex-center",children:(0,b.jsx)(i.y$,{size:32})});if(Z||te||ne)return(0,b.jsx)("div",{className:"full-viewport flex-center",children:(0,b.jsx)(i.y$,{size:32})})}return(0,b.jsxs)("div",{className:"overflow-hidden",children:[(0,b.jsx)(L.m,{children:(0,b.jsx)("link",{rel:"canonical",href:"https://murf.ai/studio/login"})}),(0,b.jsxs)("div",{className:"d-flex justify-content-center align-items-stretch full-viewport signup-page p-3 gap-16",children:[(0,b.jsx)(P.A,{}),(0,b.jsx)("div",{className:"flex-center login-page__content-section",children:(0,b.jsx)(A,{authUser:p,firebaseActionStatus:S,passwordLogin:Y,fbLogin:B,googleLogin:D,microsoftLogin:W,slackLogin:V,loginErrorMessage:k,createAccount:K,resetPassword:J,signInWithSSO:H,resetLoginError:()=>C({}),newsLetterCheckbox:$,setNewsLetterCheckbox:G,formState:f.bf[x],setFormState:N,defaultUserEmail:d,resetFormCounter:U,FORM_STATES_VALUES:f.bf,userInvitePending:M,isOpenedByWindowsPlugin:te,isOpenedByPptPlugin:ne})})]})]})}))}}]); 4//# sourceMappingURL=9083.c6b45ef5.chunk.js.map 5//# debugId=50a10a0d-9b3d-5ec0-a092-5d95c729bffb
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.