"use strict";(self.webpackChunkscreenity=self.webpackChunkscreenity||[]).push([[759],{3464(e,t,n){n.d(t,{A:()=>r});var o=n(1601),s=n.n(o),i=n(6314),a=n.n(i)()(s());a.push([e.id,'@font-face{font-family:"Satoshi-Light";src:url("chrome-extension://__MSG_@@extension_id__/assets/fonts/Satoshi-Light.ttf") format("truetype");font-weight:normal;font-style:normal}@font-face{font-family:"Satoshi-Medium";src:url("chrome-extension://__MSG_@@extension_id__/assets/fonts/Satoshi-Medium.ttf") format("truetype");font-weight:normal;font-style:normal}@font-face{font-family:"Satoshi-Bold";src:url("chrome-extension://__MSG_@@extension_id__/assets/fonts/Satoshi-Bold.ttf") format("truetype");font-weight:normal;font-style:normal}.Qt_UGSdzWUvRdgPqruVW{width:100%;margin:auto;height:80px;left:0px;top:0px;position:fixed;z-index:999999999999;background-color:#fff;border-bottom:1px solid #e8e8e8}.rlIsKsAVcTg6nXPJbQoS{margin:auto;display:flex;justify-content:space-between;align-items:center;height:100%;width:95%}.dxDnE928m67WgfweVslA{position:absolute;left:0px;right:0px;margin:auto;width:fit-content;display:flex;align-items:center;gap:8px}.kaf9ynAsnIeIbXw3KHkB{font-size:14px;color:#29292f;font-weight:600;text-align:center;margin:auto}.kaf9ynAsnIeIbXw3KHkB span{margin-left:4px;font-weight:400;font-size:12px;color:#fff;background-color:#3080f8;border-radius:30px;padding:4px 8px}.VgmZBOB_6iU0mBMlK73D{display:flex;height:fit-content;align-items:center;gap:8px}.hSnwxlR3oy43Iorl64DI{display:flex;align-items:center;cursor:pointer}.hSnwxlR3oy43Iorl64DI img{height:30px}@media(max-width: 1000px){.dxDnE928m67WgfweVslA{display:none}}',""]),a.locals={editorNav:"Qt_UGSdzWUvRdgPqruVW",navWrap:"rlIsKsAVcTg6nXPJbQoS",editorNavCenter:"dxDnE928m67WgfweVslA",editorNavTitle:"kaf9ynAsnIeIbXw3KHkB",editorNavRight:"VgmZBOB_6iU0mBMlK73D",editorNavLeft:"hSnwxlR3oy43Iorl64DI"};const r=a},8759(e,t,n){n.r(t),n.d(t,{default:()=>r});var o=n(6540),s=n(1303),i=n(543),a=n(4848);const r=()=>{const[e,t]=(0,o.useContext)(i.U);return(0,a.jsx)("div",{className:s.A.editorNav,children:(0,a.jsxs)("div",{className:s.A.navWrap,children:[(0,a.jsx)("div",{className:s.A.editorNavLeft,onClick:()=>chrome.runtime.sendMessage({type:"open-home"}),children:(0,a.jsx)("img",{src:"/assets/editor/logo.svg",alt:"Logo"})}),(0,a.jsx)("div",{className:s.A.editorNavCenter,children:(0,a.jsxs)("div",{className:s.A.editorNavTitle,children:[chrome.i18n.getMessage("sandboxEditorMainTitle")," ",(0,a.jsx)("span",{className:s.A.beta,children:"BETA"})]})}),(0,a.jsxs)("div",{className:s.A.editorNavRight,children:[(0,a.jsx)("button",{className:"button simpleButton blackButton",onClick:()=>{e.cancelEditOp(),t(e=>({...e,mode:"player",start:0,end:1,pendingAudio:null})),e.restoreBackup()},children:chrome.i18n.getMessage("sandboxEditorCancelButton")}),(0,a.jsx)("button",{className:"button secondaryButton",onClick:()=>{const n={blob:e.blob,start:e.start,end:e.end,pendingAudio:e.pendingAudio};t(t=>({...t,blob:e.originalBlob,start:0,end:1,pendingAudio:null})),e.openToast?.(chrome.i18n.getMessage("sandboxToastReverted"),()=>{t(e=>({...e,...n}))})},disabled:e.isFfmpegRunning,children:chrome.i18n.getMessage("sandboxEditorRevertButton")}),(0,a.jsx)("button",{className:"button primaryButton",onClick:async()=>{const{pendingAudio:n,volume:o}=e,s=e.blob;t(e=>({...e,isFfmpegRunning:!0,processingProgress:0,fromAudio:!0})),n?e.addAudio(s,n,o):e.handleReencode(!0),await(e.waitForUpdatedBlob?.()),e.clearBackup(),e.openToast?.(chrome.i18n.getMessage("sandboxToastSaved"),()=>e.undo?.())},disabled:e.isFfmpegRunning,children:e.isFfmpegRunning?e.processingProgress>0?(0,a.jsxs)(a.Fragment,{children:[chrome.i18n.getMessage("sandboxEditorSaveProgressButton")||"Saving"," ",Math.round(e.processingProgress),"%"]}):chrome.i18n.getMessage("sandboxEditorSaveProgressButton")||"Saving...":chrome.i18n.getMessage("sandboxEditorSaveButton")||"Save changes"})]})]})})}},1303(e,t,n){n.d(t,{A:()=>x});var o=n(5072),s=n.n(o),i=n(7825),a=n.n(i),r=n(7659),d=n.n(r),l=n(5056),c=n.n(l),g=n(540),m=n.n(g),f=n(1113),u=n.n(f),h=n(3464),p={};p.styleTagTransform=u(),p.setAttributes=c(),p.insert=d().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=m(),s()(h.A,p);const x=h.A&&h.A.locals?h.A.locals:void 0}}]);