PageSourceSearch

https://murf.ai/static/js/2749.f35fb65e.chunk.js

js murf.ai collected 2026-09-24 08:26:40 UTC 4,119 bytes, 5 lines download raw bytes

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]="f3e98cb1-f60d-50b0-bd2d-7cd363d098ad")}catch(e){}}();
3(self.webpackChunkmurf_web=self.webpackChunkmurf_web||[]).push([[2749],{72749:(e,n,i)=>{i.r(n),i.d(n,{default:()=>f});var a=i(65043),l=i(57546),o=i(24682),s=i(38846),t=i(9743),r=i(16160),d=i(14556),c=i(37939),u=i(91688),v=i(80495),p=i(96679),h=i(79358),m=i(52348),_=i(93076),x=i(70579);const f=()=>{const{logoutUser:e}=(0,v.Ay)({}),{query:n}=(0,l.A)(),i=(0,u.useHistory)(),f=(0,a.useContext)(c.l7),j=(0,d.d4)((e=>e.userState)),[N,w]=(0,a.useState)(!1),C=n.get("prepare_id"),g=n.get("plugin")||"canva";(0,a.useEffect)((()=>{null===f&&i.replace(`/studio/login${window.location.search}`,{from:window.location.pathname+window.location.search})}),[null===f||void 0===f?void 0:f.uid,i,n]);return C?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t.A,{children:(0,x.jsx)("div",{className:"h-100 d-flex justify-content-end w-100 align-items-center",children:(0,x.jsx)("div",{children:(0,x.jsx)(o.$n,{outlined:!0,minimal:!0,small:!0,onClick:()=>(0,p.ooL)(i,"/studio","","/studio/oauth/consent")(),children:"Studio Home"})})})}),(0,x.jsx)("div",{className:"connect-page__wrapper",children:null!==j&&void 0!==j&&j.emailId?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("h4",{className:"connect-page__wrapper__title",children:"Connect Murf AI with Canva"}),(0,x.jsx)("p",{className:"connect-page__wrapper__text-muted mt-2",children:"Allow Canva to use your Murf account for studio-quality voiceovers."}),(0,x.jsxs)("div",{className:"connect-page__wrapper__user-info",children:[(0,x.jsxs)("div",{className:"user-details",children:[(0,x.jsx)(r.A,{url:null===j||void 0===j?void 0:j.profileImageUrl,displayName:`${(null===j||void 0===j?void 0:j.firstName)||""} ${(null===j||void 0===j?void 0:j.lastName)||""}`,size:48}),(0,x.jsxs)("div",{children:[(0,x.jsxs)("p",{children:[(null===j||void 0===j?void 0:j.firstName)||""," ",(null===j||void 0===j?void 0:j.lastName)||""]}),(0,x.jsx)("p",{children:(null===j||void 0===j?void 0:j.emailId)||""})]})]}),(0,x.jsx)("div",{children:(0,x.jsx)(o.$n,{minimal:!0,outlined:!0,onClick:()=>{(0,p.ENR)(_.No.CANVA_CONNECT_SWITCH_ACCOUNT,{source:g,medium:"oauth"}),e()},children:"Use different account"})})]}),(0,x.jsxs)("div",{className:"mt-10 d-flex justify-content-end gap-4",children:[(0,x.jsx)(o.$n,{intent:s.J.NONE,onClick:async()=>{if(C){try{var e;const n=await h.JM.oauthConsentDeny(C),i=null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.redirect_uri;if(i)return void window.location.replace(i)}catch(n){console.error("OAuth deny failed",n)}i.replace("/studio")}else i.replace("/studio")},children:"Cancel"}),(0,x.jsx)(o.$n,{intent:s.J.PRIMARY,onClick:async()=>{if(C&&null!==f&&void 0!==f&&f.uid){w(!0);try{var e;const n=await h.JM.oauthConsentApprove(f,C),i=null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.redirect_uri;if(i)return(0,p.ENR)(_.No.CANVA_CONNECT_SUCCESS,{source:g,medium:"oauth"}),void window.location.replace(i);(0,m.Qg)("Unable to complete authorization")}catch(a){var n,i;console.error("OAuth approve ERROR",a),(0,m.Qg)((null===a||void 0===a||null===(n=a.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error_description)||(null===a||void 0===a?void 0:a.message)||"Unable to connect your account")}finally{w(!1)}}else(0,m.Qg)("Missing OAuth session. Please try connecting again from Canva.")},disabled:N,children:"Allow"})]})]}):(0,x.jsx)("div",{children:(0,x.jsx)(o.y$,{size:16})})})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t.A,{}),(0,x.jsxs)("div",{className:"connect-page__wrapper",children:[(0,x.jsx)("h4",{className:"connect-page__wrapper__title",children:"Authorization expired"}),(0,x.jsx)("p",{className:"connect-page__wrapper__text-muted mt-2",children:"Please start Connect again from the Canva app."})]})]})}}}]);
4//# sourceMappingURL=2749.f35fb65e.chunk.js.map
5//# debugId=f3e98cb1-f60d-50b0-bd2d-7cd363d098ad

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.