PageSourceSearch

https://murf.ai/static/js/4396.ee7fa64f.chunk.js

js murf.ai collected 2026-09-24 08:26:46 UTC 3,730 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]="99dbb970-c444-5398-b7d9-0d61f5efd12c")}catch(e){}}();
3(self.webpackChunkmurf_web=self.webpackChunkmurf_web||[]).push([[4396],{54396:(e,t,i)=>{i.r(t),i.d(t,{default:()=>y});var a=i(65043),o=i(14556),l=i(37939),n=i(34805),c=i(96679),s=i(42283),d=i(29313),r=i(53428),u=i(98829),v=i(70579);const A="SET_LANGUAGE",S="VOICE_SELECTOR_CLOSED",p={name:"English - US & Canada",value:{language:"English",accent:"US & Canada",locale:"en_US"}},y=()=>{const e=(0,o.d4)((e=>{var t;return null===(t=e.projectv2Utility)||void 0===t?void 0:t.voiceSelectorOpen})),[t,i]=(0,a.useState)(p),y=(0,a.useContext)(l.l7),g=(0,o.d4)((e=>e.voiceSelectorState.isApi)),E=(0,o.d4)((e=>e.voiceSelectorState.language)),h=(0,o.d4)((e=>{var t;return null===(t=e.voiceSelectorState)||void 0===t?void 0:t.audioPlayerState})),f=(0,o.d4)((e=>{var t;return null===(t=e.userVoices)||void 0===t?void 0:t.allLocaleData})),w=(0,o.wA)(),O=(0,o.d4)((e=>e.voiceSelectorState.activeApiType)),I=(0,o.d4)((e=>e.voiceSelectorState.apiStates[O].scriptText)),L=(0,o.d4)((e=>{var t,i;return null===(t=e.voiceSelectorState)||void 0===t||null===(i=t.apiStates[s.Dn.GEN2_API])||void 0===i?void 0:i.voicesApiStatus})),T=(0,o.d4)((e=>{var t,i;return null===(t=e.voiceSelectorState)||void 0===t||null===(i=t.apiStates[s.Dn.FALCON_API])||void 0===i?void 0:i.voicesApiStatus}));return(0,a.useEffect)((()=>{const e=e=>{const{data:t}=e;if(!t||"object"!==typeof t)return;const{type:a,payload:l,hideUseVoiceButton:n,apiType:d,entryPoint:u}=t;switch(a){case A:i({name:`${null===l||void 0===l?void 0:l.language}${null!==l&&void 0!==l&&l.accent?` - ${l.accent}`:""}`,value:{language:null===l||void 0===l?void 0:l.language,locale:null===l||void 0===l?void 0:l.locale,accent:null===l||void 0===l?void 0:l.accent}}),w(s.Ay.actions.setApiVoiceSelectorUseAudioVisibility(n)),w(s.Ay.actions.setApiVoiceSelectorEntryPoint(u||s.Zr.DASHBOARD)),w(s.Ay.actions.setActiveApiType(d||s.Dn.GEN2_API));break;case S:w(s.Ay.actions.setAudioPlayerState(s.z0.IDLE)),(0,c.dYV)((()=>{(0,o.vA)((()=>{w(s.Ay.actions.resetFilters()),w((0,r.Ks)({voice:{},authUser:y})),w(s.Ay.actions.setActiveStyle("")),w(s.Ay.actions.setScriptText(""))}))}),100)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),[h,y,w]),(0,a.useEffect)((()=>{var e;g||w(s.Ay.actions.setIsApi(!0)),null!==E&&void 0!==E&&null!==(e=E.value)&&void 0!==e&&e.locale||w(s.Ay.actions.setLanguage(t))}),[t,w,g,E]),(0,a.useEffect)((()=>{y&&y.getIdToken&&g&&(L===c.dOd.idle||T===c.dOd.idle)&&(L===c.dOd.idle&&w((0,d.je)({authUser:y})),T===c.dOd.idle&&w((0,d.VY)({authUser:y})),w(n.A.actions.toggleVoiceSelector(!0)))}),[y,w,g,L,T]),(0,a.useEffect)((()=>{if(y&&y.getIdToken&&g){(O===s.Dn.GEN2_API?L:T)===c.dOd.success&&w(s.Ay.actions.setLanguage(t))}}),[y,t,w,g,O,L,T]),(0,v.jsx)(v.Fragment,{children:e?(0,v.jsx)("div",{style:{height:"100vh"},children:(0,v.jsx)(u.A,{isOpenedForBulkImport:!1,handleVoiceSelectApi:(e,t)=>{var i;window.parent.postMessage({type:"VOICE_SELECTED",payload:{voice:e,language:f[null===E||void 0===E||null===(i=E.value)||void 0===i?void 0:i.locale],style:t,scriptText:I}},window.location.origin),w(s.Ay.actions.setAudioPlayerState(s.z0.IDLE)),(0,c.dYV)((()=>{(0,o.vA)((()=>{w(s.Ay.actions.resetFilters()),w((0,r.Ks)({voice:{},authUser:y})),w(s.Ay.actions.setActiveStyle("")),w(s.Ay.actions.setScriptText(""))}))}),100)}})}):null})}}}]);
4//# sourceMappingURL=4396.ee7fa64f.chunk.js.map
5//# debugId=99dbb970-c444-5398-b7d9-0d61f5efd12c

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.