1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4093],{8760:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var i=r(37876),n=r(33752),s=r(79021),a=r(74188),l=r(8291),o=r(45050),d=r(56956),c=r(20784),u=r(64319),h=r.n(u);function m(e){let{title:t,description:r,headerRight:u,maxWidth:m=700,children:p}=e;return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.A,{}),(0,i.jsx)(n.m,{size:m,className:h().container,children:(0,i.jsxs)(s.B,{gap:"lg",children:[(t||r||u)&&(0,i.jsxs)(a.Y,{justify:"space-between",align:"flex-start",wrap:"nowrap",children:[(0,i.jsxs)("div",{children:[t&&(0,i.jsx)(l.h,{order:2,children:t}),r&&(0,i.jsx)(o.E,{c:"dimmed",mt:6,className:h().description,children:r})]}),u&&(0,i.jsx)("div",{className:h().headerRight,children:u})]}),p]})})]})}},11751:(e,t,r)=>{"use strict";function i(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw Error(t);return`${e}-${r}`}}r.d(t,{r:()=>i})},18919:e=>{e.exports={icon:"DarkModeToggle_icon__H4DmF",dark:"DarkModeToggle_dark__myZYT",light:"DarkModeToggle_light__KgjIJ"}},20784:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(37876),n=r(87242),s=r(74188),a=r(58922),l=r(91561),o=r.n(l),d=r(12312),c=r(84034);function u(){let e=(0,d.U)("(max-width: 768px)");return(0,i.jsx)(n.a,{children:(0,i.jsx)("header",{className:o().header,children:(0,i.jsxs)(s.Y,{justify:e?"space-between":"flex-end",style:{height:"100%"},children:[e&&(0,i.jsx)(c.A,{}),(0,i.jsx)(a.u,{})]})})})}},23917:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var i=(0,r(38308).A)("download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},29244:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let i=/^https?:\/\/ui-avatars\.com\//i;function n(e){if("string"==typeof e&&e.trim()&&!i.test(e.trim()))return e}},32698:(e,t,r)=>{"use strict";r.d(t,{n:()=>_});var i=r(37876),n=r(36385),s=r(19848),a=r(63108);r(14232);var l=r(11751),o=r(46249),d=r(1609),c=r(99545),u=r(88791),h=r(87242),m=r(80385),p=r(98671);let[g,x]=(0,p.F)("Accordion component was not found in the tree");var j=r(11195),f=r(31215),v=r(30958);let[b,w]=(0,p.F)("Accordion.Item component was not found in the tree");var y={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};let C=(0,m.P9)((e,t)=>{let{classNames:r,className:n,style:s,styles:a,vars:l,chevron:o,icon:d,onClick:u,onKeyDown:m,children:p,disabled:g,mod:j,...b}=(0,c.Y)("AccordionControl",null,e),{value:y}=w(),C=x(),k=C.isItemActive(y),z="number"==typeof C.order,P=`h${C.order}`,E=(0,i.jsxs)(v.N,{...b,...C.getStyles("control",{className:n,classNames:r,style:s,styles:a,variant:C.variant}),unstyled:C.unstyled,mod:["accordion-control",{active:k,"chevron-position":C.chevronPosition,disabled:g},j],ref:t,onClick:e=>{u?.(e),C.onChange(y)},type:"button",disabled:g,"aria-expanded":k,"aria-controls":C.getRegionId(y),id:C.getControlId(y),onKeyDown:(0,f.Y)({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:C.loop,orientation:"vertical",onKeyDown:m}),children:[(0,i.jsx)(h.a,{component:"span",mod:{rotate:!C.disableChevronRotation&&k,position:C.chevronPosition},...C.getStyles("chevron",{classNames:r,styles:a}),children:o||C.chevron}),(0,i.jsx)("span",{...C.getStyles("label",{classNames:r,styles:a}),children:p}),d&&(0,i.jsx)(h.a,{component:"span",mod:{"chevron-position":C.chevronPosition},...C.getStyles("icon",{classNames:r,styles:a}),children:d})]});return z?(0,i.jsx)(P,{...C.getStyles("itemTitle",{classNames:r,styles:a}),children:E}):E});C.displayName="@mantine/core/AccordionControl",C.classes=y;let k=(0,m.P9)((e,t)=>{let{classNames:r,className:n,style:s,styles:a,vars:l,value:o,mod:d,...u}=(0,c.Y)("AccordionItem",null,e),m=x();return(0,i.jsx)(b,{value:{value:o},children:(0,i.jsx)(h.a,{ref:t,mod:[{active:m.isItemActive(o)},d],...m.getStyles("item",{className:n,classNames:r,styles:a,style:s,variant:m.variant}),...u})})});k.displayName="@mantine/core/AccordionItem",k.classes=y;var z=r(98268);let P=(0,m.P9)((e,t)=>{let{classNames:r,className:n,style:s,styles:a,vars:l,children:o,...d}=(0,c.Y)("AccordionPanel",null,e),{value:u}=w(),h=x();return(0,i.jsx)(z.S,{ref:t,...h.getStyles("panel",{className:n,classNames:r,style:s,styles:a}),...d,in:h.isItemActive(u),transitionDuration:h.transitionDuration??200,role:"region",id:h.getRegionId(u),"aria-labelledby":h.getControlId(u),children:(0,i.jsx)("div",{...h.getStyles("content",{classNames:r,styles:a}),children:o})})});P.displayName="@mantine/core/AccordionPanel",P.classes=y;let E={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},S=(0,d.V)((e,{transitionDuration:t,chevronSize:r,radius:i}
1)=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===r?void 0:(0,a.D)(r),"--accordion-radius":void 0===i?void 0:(0,o.nJ)(i)}}));function _(e){let t=(0,c.Y)("Accordion",E,e),{classNames:r,className:a,style:o,styles:d,unstyled:m,vars:p,children:x,multiple:f,value:v,defaultValue:b,onChange:w,id:C,loop:k,transitionDuration:z,disableChevronRotation:P,chevronPosition:_,chevronSize:A,order:Y,chevron:I,variant:N,radius:T,chevronIconSize:D,attributes:M,...B}=t,L=(0,n.B)(C),[O,R]=(0,s.Z)({value:v,defaultValue:b,finalValue:f?[]:null,onChange:w}),F=(0,u.I)({name:"Accordion",classes:y,props:t,className:a,style:o,classNames:r,styles:d,unstyled:m,attributes:M,vars:p,varsResolver:S});return(0,i.jsx)(g,{value:{isItemActive:e=>Array.isArray(O)?O.includes(e):e===O,onChange:e=>{R(Array.isArray(O)?O.includes(e)?O.filter(t=>t!==e):[...O,e]:e===O?null:e)},getControlId:(0,l.r)(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:(0,l.r)(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:null===I?null:I||(0,i.jsx)(j.U,{size:D}),transitionDuration:z,disableChevronRotation:P,chevronPosition:_,order:Y,loop:k,getStyles:F,variant:N,unstyled:m},children:(0,i.jsx)(h.a,{...F("root"),id:L,...B,variant:N,"data-accordion":!0,children:x})})}_.extend=e=>e,_.withProps=(0,m.LE)(_),_.classes=y,_.displayName="@mantine/core/Accordion",_.Item=k,_.Panel=P,_.Control=C,_.Chevron=j.U},33752:(e,t,r)=>{"use strict";r.d(t,{m:()=>h});var i=r(37876);r(14232);var n=r(46249),s=r(1609),a=r(99545),l=r(88791),o=r(87242),d=r(80385),c={root:"m_7485cace"};let u=(0,s.V)((e,{size:t,fluid:r})=>({root:{"--container-size":r?void 0:(0,n.YC)(t,"container-size")}})),h=(0,d.P9)((e,t)=>{let r=(0,a.Y)("Container",null,e),{classNames:n,className:s,style:d,styles:h,unstyled:m,vars:p,fluid:g,mod:x,attributes:j,strategy:f,...v}=r,b=(0,l.I)({name:"Container",classes:c,props:r,className:s,style:d,classNames:n,styles:h,unstyled:m,attributes:j,vars:p,varsResolver:u});return(0,i.jsx)(o.a,{ref:t,mod:[{fluid:g,strategy:f||"block"},x],...b("root"),...v})});h.classes=c,h.displayName="@mantine/core/Container"},52764:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var i=(0,r(38308).A)("refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]])},57828:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var i=(0,r(38308).A)("video","IconVideo",[["path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z",key:"svg-0"}],["path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]])},58922:(e,t,r)=>{"use strict";r.d(t,{u:()=>Y});var i=r(37876),n=r(20562),s=r(30958),a=r(74188),l=r(26644),o=r(3079),d=r(63108),c=r(23883),u=r(89804),h=r(52820),m=r(10427),p=r(67117),g=r.n(p),x=r(14232),j=r(89099),f=r(69241),v=r(4843),b=r(12614),w=r(11210),y=r(84713),C=r(85136),k=r(18919),z=r.n(k);function P(){let{setColorScheme:e}=(0,v.C)(),t=(0,b.l)("light",{getInitialValueInEffect:!0});return(0,i.jsx)(a.Y,{justify:"center",visibleFrom:"md",children:(0,i.jsxs)(w.M,{onClick:()=>e("light"===t?"dark":"light"),variant:"default",style:{border:"none"},size:"lg","aria-label":"Toggle color scheme",children:[(0,i.jsx)(y.A,{className:(0,f.A)(z().icon,z().light),stroke:1.5}),(0,i.jsx)(C.A,{className:(0,f.A)(z().icon,z().dark),stroke:1.5})]})})}var E=r(10553),S=r(51455),_=r(493),A=r(29244);function Y(){var e,t;let{data:r,status:p,update:f}=(0,E.useSession)(),v=null!=(e=null==r?void 0:r.user)?e:null,{organization:b,isSubscribed:w,durationLeftInSeconds:y}=(0,S.Z)(),[C,k]=(0,x.useState)(!1),z=(0,j.useRouter)();return(0,i.jsxs)(n.s,{children:[(0,i.jsx)(P,{}),(0,i.jsx)(s.N,{className:g().user,children:(0,i.jsx)(a.Y,{children:(0,i.jsxs)(l.W,{onOpen:()=>k(!0),onClose:()=>k(!1),radius:"md",width:"full",withinPortal:!0,position:"bottom-end",withArrow:!0,children:[(0,i.jsx)(l.W.Target,{children:(0,i.jsx)(o.e,{src:(0,A.L)(null==v?void 0:v.image),name:null!=(t=null==v?void 0:v.name)?t:void 0,color:"initials",radius:"xl"})}),(0,i.jsxs)(l.W.Dropdown,{children:[w?(0,i.jsx)(l.W.Item,{leftSection:(0,i.jsx)(c.A,{style:{width:(0,d.D)(14),height:(0,d.D)(14)},stroke:1.5}),onClick:()=>z.push("/organization"),children:"Premium"}):(0,i.jsxs)(l.W.Item,{leftSection:(0,i.jsx)(u.A,{style:{width:(0,d.D)(14),height:(0,d.D)(14)},stroke:1.5}),onClick:()=>z.push("/organization"),children:[(0,_.Ku)(y||0)," minutes"]}),(0,i.jsx)(l.W.Item,{leftSection:(0,i.jsx)(h.A,{style:{width:(0,d.D)(14),height:(0,d.D)(14)},stroke:1.5}),onClick:()=>z.push("/profile"),children:"Settings"}),(0,i.jsx)(l.W.Item,{leftSection:(0,i.jsx)(m.A,{style:{width:(0,d.D)(14),height:(0,d.D)(14)},stroke:1.5}),onClick:()=>{(0,E.signOut)({callbackUrl:"https://scribewave.com"})},children:"Logout"})]})]})})})]})}},64319:e=>{e.exports={container:"OrganizationPageLayout_container__C059P",description:"OrganizationPageLayout_description__KOFeH",headerRight:"OrganizationPageLayout_headerRight__WaiZ0"}},67117:e=>{e.exports={user:"UserButton_user__dKvmy"}},71910:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/organization/exports",function(){return r(75788)}])},75788:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>M});var i=r(37876),n=r(79021),s=r(77328),a=r.n(s),l=r(61342),o=r(74188),d=r(45050),c=r(44193),u=r(61226),h=r(8291),m=r(80322),p=r(68755),g=r(34826),x=r(52764),j=r(13601),f=r(23917),v=r(57828),b=r(14232),w=r(5068);
1function y(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function C(e){switch(e){case"completed":case"done":return"green";case"processing":return"blue";case"pending":return"yellow";case"failed":case"error":return"red";default:return"gray"}}function k(){let[e,t]=(0,b.useState)([]),[r,s]=(0,b.useState)([]),[a,k]=(0,b.useState)(!0),[z,P]=(0,b.useState)(!0),[E,S]=(0,b.useState)(null),[_,A]=(0,b.useState)(null),Y=async()=>{k(!0),S(null);try{let e=await w.A.get("/api/export/bulk/list");t(e.data.exports||[])}catch(e){console.error("Error fetching exports:",e),S("Failed to load exports")}finally{k(!1)}},I=async()=>{P(!0),A(null);try{let e=await w.A.get("/api/export/renders/list");s(e.data.renders||[])}catch(e){console.error("Error fetching renders:",e),A("Failed to load video renders")}finally{P(!1)}},N=()=>{Y(),I()};return(0,b.useEffect)(()=>{N();let e=setInterval(N,3e4);return()=>clearInterval(e)},[]),(0,i.jsxs)(n.B,{maw:600,children:[(0,i.jsx)(l.c,{label:"Your Exports"}),(0,i.jsxs)(o.Y,{justify:"space-between",children:[(0,i.jsx)(d.E,{size:"sm",c:"dimmed",children:"View your bulk exports and video renders from the last 12 hours."}),(0,i.jsx)(c.$,{variant:"subtle",size:"xs",leftSection:(0,i.jsx)(x.A,{size:14}),onClick:N,loading:a||z,children:"Refresh"})]}),(0,i.jsxs)(u.Z,{withBorder:!0,radius:"md",p:"lg",mt:"md",children:[(0,i.jsxs)(o.Y,{gap:"xs",mb:"md",children:[(0,i.jsx)(j.A,{size:20}),(0,i.jsx)(h.h,{order:4,children:"Bulk Exports"})]}),(0,i.jsx)(d.E,{size:"sm",c:"dimmed",mb:"md",children:"Bulk exports with more than 7 projects are processed in the background. Download links are available for 12 hours."}),a&&0===e.length?(0,i.jsx)(m.o,{py:"xl",children:(0,i.jsx)(p.a,{size:"sm"})}):E?(0,i.jsx)(d.E,{c:"red",size:"sm",children:E}):0===e.length?(0,i.jsx)(d.E,{c:"dimmed",size:"sm",ta:"center",py:"md",children:"No bulk exports in the last 12 hours"}):(0,i.jsx)(n.B,{gap:"sm",children:e.map(e=>
1(0,i.jsx)(u.Z,{withBorder:!0,p:"sm",radius:"sm",children:(0,i.jsxs)(o.Y,{justify:"space-between",wrap:"nowrap",children:[(0,i.jsxs)(n.B,{gap:4,children:[(0,i.jsxs)(o.Y,{gap:"xs",children:[(0,i.jsxs)(d.E,{size:"sm",fw:500,children:[e.projectsCount," projects"]}),(0,i.jsx)(g.E,{size:"xs",variant:"light",children:function(e){switch(e){case"srt":return"SRT";case"docx":return"DOCX";case"docx-merged":return"DOCX (merged)";case"txt":return"TXT";case"pdf":return"PDF";case"pdf-merged":return"PDF (merged)";default:return e.toUpperCase()}}(e.type)}),(0,i.jsx)(g.E,{size:"xs",color:C(e.status),variant:"filled",children:e.status||"unknown"})]}),(0,i.jsxs)(d.E,{size:"xs",c:"dimmed",children:[y(e.createdAt),e.completedAt&&" ⢠Completed ".concat(y(e.completedAt))]})]}),"completed"===e.status&&e.downloadUrl?(0,i.jsx)(c.$,{size:"xs",variant:"light",leftSection:(0,i.jsx)(f.A,{size:14}),component:"a",href:e.downloadUrl,target:"_blank",children:"Download"}):"pending"===e.status||"processing"===e.status?(0,i.jsx)(p.a,{size:"xs"}):null]})},e.id))})]}),(0,i.jsxs)(u.Z,{withBorder:!0,radius:"md",p:"lg",mt:"md",children:[(0,i.jsxs)(o.Y,{gap:"xs",mb:"md",children:[(0,i.jsx)(v.A,{size:20}),(0,i.jsx)(h.h,{order:4,children:"Video Renders"})]}),(0,i.jsx)(d.E,{size:"sm",c:"dimmed",mb:"md",children:"Your video exports from the last 48 hours."}),z&&0===r.length?(0,i.jsx)(m.o,{py:"xl",children:(0,i.jsx)(p.a,{size:"sm"})}):_?(0,i.jsx)(d.E,{c:"red",size:"sm",children:_}):0===r.length?(0,i.jsx)(d.E,{c:"dimmed",size:"sm",ta:"center",py:"md",children:"No video renders in the last 12 hours"}):(0,i.jsx)(n.B,{gap:"sm",children:r.map(e=>
1(0,i.jsx)(u.Z,{withBorder:!0,p:"sm",radius:"sm",children:(0,i.jsxs)(o.Y,{justify:"space-between",wrap:"nowrap",children:[(0,i.jsxs)(n.B,{gap:4,children:[(0,i.jsxs)(o.Y,{gap:"xs",children:[(0,i.jsx)(d.E,{size:"sm",fw:500,children:e.projectName||"Unknown project"}),(0,i.jsx)(g.E,{size:"xs",variant:"light",children:e.language.toUpperCase()}),(0,i.jsx)(g.E,{size:"xs",color:C(e.status),variant:"filled",children:e.status})]}),(0,i.jsxs)(d.E,{size:"xs",c:"dimmed",children:[y(e.createdAt),e.error&&" ⢠Error: ".concat(e.error)]})]}),"done"===e.status&&e.url?(0,i.jsx)(c.$,{size:"xs",variant:"light",leftSection:(0,i.jsx)(f.A,{size:14}),component:"a",href:e.url,target:"_blank",children:"Download"}):"processing"===e.status?(0,i.jsx)(p.a,{size:"xs"}):null]})},e.id))})]})]})}var z=r(8760),P=r(32698),E=r(19453),S=r(87473),_=r(1762),A=r(86463),Y=r(51455),I=r(44390);let N={font:"Arial",fontSize:11,spacing:1,documentLanguage:void 0,paragraphNumbering:!1,aiPrompt:"",isTabular:!1,subtitleMaxCharsPerLine:42,subtitleNrOfLines:2,subtitleSplitAtComma:!1,subtitleMinDurationMs:1e3,premierePro:{showOnlyHighlights:!1,rippleEdit:!0,clipPerParagraph:!1,includeClips:!0,includeClipMarkers:!0,includeTimelineMarkers:!0},avid:{showOnlyHighlights:!1,rippleEdit:!0,clipPerParagraph:!1}},T=[{value:"auto",label:"Use file language"},{value:"en-GB",label:"English (UK)"},{value:"en-US",label:"English (US)"},{value:"nl-NL",label:"Dutch (Netherlands)"},{value:"nl-BE",label:"Flemish (Belgium)"},{value:"fr-FR",label:"French (France)"},{value:"de-DE",label:"German (Germany)"},{value:"es-ES",label:"Spanish (Spain)"},{value:"pt-PT",label:"Portuguese (Portugal)"},{value:"it-IT",label:"Italian (Italy)"}];function D(){let{organization:e}=(0,Y.Z)(),t=e=>{var t,r;return{...N,...null!=e?e:{},premierePro:{...N.premierePro,...null!=(t=null==e?void 0:e.premierePro)?t:{}},avid:{...N.avid,...null!=(r=null==e?void 0:e.avid)?r:{}}}},[r,s]=(0,b.useState)(()=>{var r;return t(null==e||null==(r=e.settings)?void 0:r.exportSettings)}),[a,l]=(0,b.useState)(!1);(0,b.useEffect)(()=>{var r;s(t(null==e||null==(r=e.settings)?void 0:r.exportSettings))},[e]);let u=(0,b.useMemo)(()=>{var r;return t(null==e||null==(r=e.settings)?void 0:r.exportSettings)},[e]),h=(0,b.useMemo)(()=>JSON.stringify(r)!==JSON.stringify(u),[r,u]);if(!e||"admin"!==e.role)return null;let m=(e,t)=>{s(r=>({...r,[e]:t}))},p=(e,t,r)=>{s(i=>({...i,[e]:{...i[e],[t]:r}}))},g=async()=>{l(!0);try{var t,i,n,s,a,o,d,c,u,h;await w.A.post("/api/organization/update-settings",{defaultPublicLevel:null!=(c=null==(t=e.settings)?void 0:t.defaultPublicLevel)?c:"private",nonCreatorPermission:null!=(u=null==(i=e.settings)?void 0:i.nonCreatorPermission)?u:"read",defaultLanguage:(null==(s=e.settings)||null==(n=s.languageSettings)?void 0:n.defaultLanguage)||"auto",autoVocabulary:(null==(o=e.settings)||null==(a=o.languageSettings)?void 0:a.autoVocabulary)||!1,billingSettings:null!=(h=null==(d=e.settings)?void 0:d.billingSettings)?h:{},exportSettings:r}),I.$e.show({title:"Export settings updated",message:"Your export settings have been updated",color:"teal",radius:"lg",autoClose:3e3}),window.location.reload()}catch(e){I.$e.show({title:"Error updating export settings",message:"Please try again.",color:"red",radius:"lg",autoClose:5e3}),console.error(e)}finally{l(!1)}};return(0,i.jsxs)(n.B,{maw:600,children:[(0,i.jsxs)(P.n,{multiple:!0,variant:"separated",children:[(0,i.jsxs)(P.n.Item,{value:"transcript",children:[(0,i.jsx)(P.n.Control,{children:(0,i.jsx)(d.E,{fw:600,children:"Transcript defaults"})}),(0,i.jsx)(P.n.Panel,{children:(0,i.jsxs)(n.B,{children:[(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsx)(E.l,{label:"Default font",data:[{value:"Arial",label:"Arial"},{value:"Calibri",label:"Calibri"},{value:"Times New Roman",label:"Times New Roman"},{value:"Courier New",label:"Courier New"},{value:"Aptos",label:"Aptos"}],value:r.font,onChange:e=>m("font",e||N.font)}),(0,i.jsx)(E.l,{label:"Default text export format",data:[{value:"text",label:"Text"},{value:"table",label:"Table"}],value:r.isTabular?"table":"text",onChange:e=>m("isTabular","table"===e)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsx)(E.l,{label:"Default font size",data:[{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"14",label:"14"},{value:"16",label:"16"}],value:String(r.fontSize),onChange:e=>m("fontSize",Number(e||N.fontSize))}),(0,i.jsx)(E.l,{label:"Default line spacing",data:[{value:"1",label:"1"},{value:"1.5",label:"1.5"},{value:"2",label:"2"}],value:String(r.spacing),onChange:e=>m("spacing",Number(e||N.spacing))})]}),(0,i.jsx)(E.l,{label:"Default document language",description:"Sets the proofing language in exported Word documents.",data:T,value:r.documentLanguage||"auto",onChange:e=>m("documentLanguage","auto"===e?void 0:e||void 0)}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Paragraph numbering"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Number each paragraph in text exports"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.paragraphNumbering,onChange:e=>m("paragraphNumbering",e.currentTarget.checked)})]}),(0,i.jsx)(_.T,{label:"Default AI export prompt",description:"Used by AI to add custom fields or footer text during export.",minRows:4,autosize:!0,value:r.aiPrompt,placeholder:"e.g. Add an overview of the speakers at the top of the transcript",onChange:e=>m("aiPrompt",e.currentTarget.value)})]})})]}),(0,i.jsxs)(P.n.Item,{value:"subtitles",children:[(0,i.jsx)(P.n.Control,{children:(0,i.jsx)(d.E,{fw:600,children:"Subtitle defaults"})}),(0,i.jsx)(P.n.Panel,{children:(0,i.jsxs)(n.B,{children:[(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsx)(A.Q,{label:"Max characters per line",value:r.subtitleMaxCharsPer
1Line,min:24,max:100,onChange:e=>m("subtitleMaxCharsPerLine","number"==typeof e?e:N.subtitleMaxCharsPerLine)}),(0,i.jsx)(E.l,{label:"Lines per subtitle",data:[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}],value:String(r.subtitleNrOfLines),onChange:e=>m("subtitleNrOfLines",Number(e||N.subtitleNrOfLines))})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Split at comma"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Prefer shorter subtitle lines"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.subtitleSplitAtComma,onChange:e=>m("subtitleSplitAtComma",e.currentTarget.checked)})]}),(0,i.jsx)(A.Q,{label:"Minimum subtitle duration",value:r.subtitleMinDurationMs,min:0,max:25e3,suffix:"ms",onChange:e=>m("subtitleMinDurationMs","number"==typeof e?e:N.subtitleMinDurationMs)})]})})]}),(0,i.jsxs)(P.n.Item,{value:"editing-apps",children:[(0,i.jsx)(P.n.Control,{children:(0,i.jsx)(d.E,{fw:600,children:"Editing app defaults"})}),(0,i.jsx)(P.n.Panel,{children:(0,i.jsxs)(n.B,{children:[(0,i.jsx)(d.E,{size:"sm",c:"dimmed",children:"These defaults are used for Premiere Pro and Avid exports in the download modal."}),(0,i.jsxs)(n.B,{gap:"xs",children:[(0,i.jsx)(d.E,{fw:600,children:"Premiere Pro"}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Highlight-based editing"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Start Premiere exports in highlight-only mode"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.showOnlyHighlights,onChange:e=>p("premierePro","showOnlyHighlights",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Ripple edit"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Place exported clips back-to-back by default"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.rippleEdit,onChange:e=>p("premierePro","rippleEdit",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Clip per paragraph"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Create a separate clip for each paragraph"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.clipPerParagraph,onChange:e=>p("premierePro","clipPerParagraph",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Include media clips"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Start Premiere exports with media clip items"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.includeClips,onChange:e=>{let t=e.currentTarget.checked;s(e=>({...e,premierePro:{...e.premierePro,includeClips:t,includeClipMarkers:!!t&&e.premierePro.includeClipMarkers}}))}})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Include clip markers"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Add transcript markers to exported clips by default"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.includeClips&&r.premierePro.includeClipMarkers,disabled:!r.premierePro.includeClips,onChange:e=>p("premierePro","includeClipMarkers",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Include timeline markers"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Add transcript markers to the sequence by default"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.premierePro.includeTimelineMarkers,onChange:e=>p("premierePro","includeTimelineMarkers",e.currentTarget.checked)})]})]}),(0,i.jsxs)(n.B,{gap:"xs",children:[(0,i.jsx)(d.E,{fw:600,children:"Avid Media Composer"}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Highlight-based editing"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Start Avid exp
1orts in highlight-only mode"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.avid.showOnlyHighlights,onChange:e=>p("avid","showOnlyHighlights",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Ripple edit"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Place exported clips back-to-back by default"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.avid.rippleEdit,onChange:e=>p("avid","rippleEdit",e.currentTarget.checked)})]}),(0,i.jsxs)(o.Y,{justify:"space-between",w:"100%",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.E,{fz:"sm",fw:500,children:"Clip per paragraph"}),(0,i.jsx)(d.E,{mt:1,fz:"xs",c:"dimmed",children:"Create a separate clip for each paragraph"})]}),(0,i.jsx)(S.d,{size:"md",checked:r.avid.clipPerParagraph,onChange:e=>p("avid","clipPerParagraph",e.currentTarget.checked)})]})]})]})})]})]}),h&&(0,i.jsx)(o.Y,{justify:"flex-end",mt:"sm",children:(0,i.jsx)(c.$,{onClick:g,loading:a,children:"Save export settings"})})]})}function M(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a(),{children:(0,i.jsx)("title",{children:"Exports | Scribewave"})}),(0,i.jsx)(z.A,{title:"Exports",description:"Download and manage your organization exports.",maxWidth:700,children:(0,i.jsxs)(n.B,{gap:"lg",children:[(0,i.jsx)(k,{}),(0,i.jsx)(D,{})]})})]})}},80322:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var i=r(37876);r(14232);var n=r(99545),s=r(88791),a=r(87242),l=r(75754),o={root:"m_4451eb3a"};let d=(0,l.v)((e,t)=>{let r=(0,n.Y)("Center",null,e),{classNames:l,className:d,style:c,styles:u,unstyled:h,vars:m,inline:p,mod:g,attributes:x,...j}=r,f=(0,s.I)({name:"Center",props:r,classes:o,className:d,style:c,classNames:l,styles:u,unstyled:h,attributes:x,vars:m});return(0,i.jsx)(a.a,{ref:t,mod:[{inline:p},g],...f("root"),...j})});d.classes=o,d.displayName="@mantine/core/Center"},83249:(e,t,r)=>{"use strict";r.d(t,{w:()=>g});var i=r(37876),n=r(63108);r(14232);var s=r(46249),a=r(1609),l=r(64453),o=r(99545),d=r(88791),c=r(87242),u=r(80385),h=r(30958),m={root:"m_fea6bf1a",burger:"m_d4fb9cad"};let p=(0,a.V)((e,{color:t,size:r,lineSize:i,transitionDuration:a,transitionTimingFunction:o})=>({root:{"--burger-color":t?(0,l.r)(t,e):void 0,"--burger-size":(0,s.YC)(r,"burger-size"),"--burger-line-size":i?(0,n.D)(i):void 0,"--burger-transition-duration":void 0===a?void 0:`${a}ms`,"--burger-transition-timing-function":o}})),g=(0,u.P9)((e,t)=>{let r=(0,o.Y)("Burger",null,e),{classNames:n,className:s,style:a,styles:l,unstyled:u,vars:g,opened:x,children:j,transitionDuration:f,transitionTimingFunction:v,lineSize:b,attributes:w,...y}=r,C=(0,d.I)({name:"Burger",classes:m,props:r,className:s,style:a,classNames:n,styles:l,unstyled:u,attributes:w,vars:g,varsResolver:p});return(0,i.jsxs)(h.N,{...C("root"),ref:t,...y,children:[(0,i.jsx)(c.a,{mod:["reduce-motion",{opened:x}],...C("burger")}),j]})});g.classes=m,g.displayName="@mantine/core/Burger"},84034:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(37876),n=r(83249),s=r(85845),a=r(2888),l=r(89099),o=r(14232),d=r(26572);function c(){let e=(0,l.useRouter)(),[t,{close:r,toggle:c}]=(0,a.j)(!1);return(0,o.useEffect)(()=>{r()},[e.asPath,r]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.w,{opened:t,onClick:c,size:"sm","aria-label":"Open navigation menu"}),(0,i.jsx)(s._,{opened:t,onClose:r,size:300,padding:0,withCloseButton:!1,styles:{body:{padding:0}},children:(0,i.jsx)(d.F,{})})]})}},87473:(e,t,r)=>{"use strict";r.d(t,{d:()=>k});var i=r(37876),n=r(36385),s=r(19848),a=r(14232),l=r(46249),o=r(1609),d=r(64453),c=r(99545),u=r(88791),h=r(5412),m=r(87242),p=r(80385),g=r(69136);let x=(0,a.createContext)(null),j=x.Provider;var f=r(61661),v=r(55888);let b=(0,p.P9)((e,t)=>{let{value:r,defaultValue:n,onChange:a,size:l,wrapperProps:o,children:d,readOnly:u,disabled:h,...m}=(0,c.Y)("SwitchGroup",null,e),[p,g]=(0,s.Z)({value:r,defaultValue:n,finalValue:[],onChange:a});return(0,i.jsx)(j,{value:{value:p,onChange:e=>{let t=e.currentTarget.value;u||g(p.includes(t)?p.filter(e=>e!==t):[...p,t])},size:l,disabled:h},children:(0,i.jsx)(v.p.Wrapper,{size:l,ref:t,...o,...m,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,i.jsx)(f.F,{role:"group",children:d})})})});b.classes=v.p.Wrapper.classes,b.displayName="@mantine/core/SwitchGroup";var w={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let y={labelPosition:"right",withThumbIndicator:!0},C=(0,o.V)((e,{radius:t,color:r,size:i})=>({root:{"--switch-radius":void 0===t?void 0:(0,l.nJ)(t),"--switch-height":(0,l.YC)(i,"switch-height"),"--switch-width":(0,l.YC)(i,"switch-width"),"
1--switch-thumb-size":(0,l.YC)(i,"switch-thumb-size"),"--switch-label-font-size":(0,l.YC)(i,"switch-label-font-size"),"--switch-track-label-padding":(0,l.YC)(i,"switch-track-label-padding"),"--switch-color":r?(0,d.r)(r,e):void 0}})),k=(0,p.P9)((e,t)=>{let r=(0,c.Y)("Switch",y,e),{classNames:l,className:o,style:d,styles:p,unstyled:j,vars:f,color:v,label:b,offLabel:k,onLabel:z,id:P,size:E,radius:S,wrapperProps:_,thumbIcon:A,checked:Y,defaultChecked:I,onChange:N,labelPosition:T,description:D,error:M,disabled:B,variant:L,rootRef:O,mod:R,withThumbIndicator:F,attributes:$,...H}=r,U=(0,a.useContext)(x),V=E||U?.size,W=(0,u.I)({name:"Switch",props:r,classes:w,className:o,style:d,classNames:l,styles:p,unstyled:j,attributes:$,vars:f,varsResolver:C}),{styleProps:Z,rest:G}=(0,h.j)(H),X=(0,n.B)(P),K={checked:U?.value.includes(G.value)??Y,onChange:e=>{U?.onChange(e),N?.(e)},disabled:U?.disabled??B},[J,q]=(0,s.Z)({value:K.checked??Y,defaultValue:I,finalValue:!1});return(0,i.jsxs)(g.I,{...W("root"),__staticSelector:"Switch",__stylesApiProps:r,id:X,size:V,labelPosition:T,label:b,description:D,error:M,disabled:K.disabled,bodyElement:"label",labelElement:"span",classNames:l,styles:p,unstyled:j,"data-checked":K.checked,variant:L,ref:O,mod:R,...Z,..._,children:[(0,i.jsx)("input",{...G,...K,checked:J,"data-checked":K.checked,onChange:e=>{K.onChange?.(e),q(e.currentTarget.checked)},id:X,ref:t,type:"checkbox",role:"switch",...W("input")}),(0,i.jsxs)(m.a,{"aria-hidden":"true",component:"span",mod:{error:M,"label-position":T,"without-labels":!z&&!k},...W("track"),children:[(0,i.jsx)(m.a,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":F&&!A},...W("thumb"),children:A}),(0,i.jsx)("span",{...W("trackLabel"),children:J?z:k})]})]})});k.classes={...w,...g.M},k.displayName="@mantine/core/Switch",k.Group=b},91561:e=>{e.exports={header:"Header_header__Az9w5",search:"Header_search__XuFj7",buttonsGroup:"Header_buttonsGroup__FDLR9",searchMobile:"Header_searchMobile__4AYo4"}},98268:(e,t,r)=>{"use strict";r.d(t,{S:()=>j});var i=r(37876),n=r(64412),s=r(14232),a=r(74533),l=r(99545),o=r(13329),d=r(87242),c=r(80385),u=r(98477),h=r(27984),m=r(55962);function p(e){return e?.current?e.current.scrollHeight:"auto"}let g="undefined"!=typeof window&&window.requestAnimationFrame,x={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},j=(0,c.P9)((e,t)=>{let{children:r,in:c,transitionDuration:j,transitionTimingFunction:f,style:v,onTransitionEnd:b,animateOpacity:w,keepMounted:y,...C}=(0,l.Y)("Collapse",x,e),k=(0,a.xd)(),z=(0,n.I)(),P=k.respectReducedMotion&&z?0:j,E=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:i,keepMounted:n=!1}){let a=(0,s.useRef)(null),l={height:0,overflow:"hidden",...n?{}:{display:"none"}},[o,d]=(0,s.useState)(i?{}:l),c=e=>{(0,u.flushSync)(()=>d(e))},x=e=>{c(t=>({...t,...e}))};function j(r){let i=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${i}ms ${t}, opacity ${i}ms ${t}`}}(0,h.C)(()=>{"function"==typeof g&&(i?g(()=>{x({willChange:"height",display:"block",overflow:"hidden"}),g(()=>{let e=p(a);x({...j(e),height:e})})}):g(()=>{let e=p(a);x({...j(e),willChange:"height",height:e}),g(()=>x({height:0,overflow:"hidden"}))}))},[i]);let f=e=>{if(e.target===a.current&&"height"===e.propertyName)if(i){let e=p(a);e===o.height?c({}):x({height:e}),r()}else 0===o.height&&(c(l),r())};return function({style:e={},refKey:t="ref",...r}={}){let n=r[t],l={"aria-hidden":!i,...r,[t]:(0,m.Px)(a,n),onTransitionEnd:f,style:{boxSizing:"border-box",...e,...o}};return s.version.startsWith("18")?i||(l.inert=""):l.inert=!i,l}}({opened:c,transitionDuration:P,transitionTimingFunction:f,onTransitionEnd:b,keepMounted:y});return 0===P?c?(0,i.jsx)(d.a,{...C,children:r}):null:(0,i.jsx)(d.a,{...E({style:{opacity:c||!w?1:0,transition:w?`opacity ${P}ms ${f}`:"none",...(0,o.X)(v,k)},ref:t,...C}),children:r})});j.displayName="@mantine/core/Collapse"}},e=>{e.O(0,[978,5888,2274,6982,8948,3979,661,5585,6463,5742,6956,636,6593,8792],()=>e(e.s=71910)),_N_E=e.O()}]);
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.