1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4757],{5894:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(37876),l=t(59742);function i(e){let{checked:n,onChange:t,size:i="md",disabled:r,startDecorator:s,endDecorator:d,children:a,sx:c,color:u="neutral"}=e;return(0,o.jsx)(l.A,{color:u,variant:n?"solid":"outlined",onClick:()=>t(!n),size:i,disabled:r,startDecorator:s,endDecorator:d,sx:{whiteSpace:"nowrap",...c},children:a})}},13832:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(31011);let l={Character:"Characters",Location:"Locations",Prop:"Props"};function i(e){let{requestNavigation:n,queryParams:t,projectId:i,projectName:r,assetsHubForKind:s}=e,d={...t,[o.B.project]:i};delete d[o.B.episode],delete d[o.B.scene];let a=[{kindLabel:"Projects",valueLabel:"",labelOnly:!0,onNavigate:()=>n({pathname:"/projects",query:t})},{kindLabel:"Project",valueLabel:r,onNavigate:()=>n({pathname:"/episodes",query:d})}];if(!s)return a;let c="Character"===s?"/project-characters":"Location"===s?"/project-locations":"/project-props";return[...a,{kindLabel:l[s],valueLabel:"",labelOnly:!0,onNavigate:()=>n({pathname:c,query:{[o.B.project]:i}})}]}},18045:(e,n,t)=>{"use strict";t.d(n,{h:()=>g});var o=t(37876),l=t(26091),i=t(83388),r=t(93813),s=t(65941),d=t(82295),a=t(28742),c=t(83859),u=t(11314),p=t(73616),h=t(49384),x=t(13306),m=t(24086),f=t(77744),v=t(87165);function g(e){return"Project"===e?(0,o.jsx)(s.A,{}):"Asset"===e?(0,o.jsx)(r.A,{}):"Episode"===e?(0,o.jsx)(d.A,{}):"Scene"===e?(0,o.jsx)(a.A,{}):"Panel"===e||"Shot"===e?(0,o.jsx)(f.A,{}):"Character"===e?(0,o.jsx)(c.A,{}):"Expression"===e?(0,o.jsx)(u.A,{}):"Animation"===e?(0,o.jsx)(p.A,{}):"Set"===e?(0,o.jsx)(i.A,{}):"Location"===e?(0,o.jsx)(h.A,{}):"Prop"===e||"Model"===e?(0,o.jsx)(x.A,{}):"Audio"===e?(0,o.jsx)(m.A,{}):"Gallery"===e?(0,o.jsx)(l.A,{}):"Template"===e?(0,o.jsx)(v.az,{sx:{width:"24px",height:"24px",borderRadius:"4px",border:"1.5px solid",borderColor:"primary.500",backgroundColor:"primary.50",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.75rem",fontWeight:"bold",color:"primary.600",fontFamily:"monospace"},children:"T"}):null}},19377:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>S});var o=t(37876),l=t(14232),i=t(56595),r=t(65782),s=t(66178),d=t(31011),a=t(6415),c=t(1426),u=t(52980),p=t(29122),h=t(21132),x=t(32986),m=t(36118),f=t(12599),v=t(31435),g=t(62759),j=t(32721),b=t(3686),y=t(72145),k=t(50697);let A={character:"Characters",location:"Locations",prop:"Props"},w="episode";function C(e){return{phaseId:e,state:"none",done:0,total:0,idPath:null,openCriterionIds:[]}}function z(e,n){return(null==e?void 0:e[n])||n}function S(){var e,n,t,S,I;let{projectDetails:P,projectMetadata:D,queryParams:B}=(0,a.t)(),{requestNavigation:L}=(0,c.z)(),{stops:O,projectId:W,episodeId:N,episodeDetails:E}=(0,j.j)(),M=null!==(S=null!==(t=null==P?void 0:null===(n=P.episodeList)||void 0===n?void 0:null===(e=n[null!=N?N:""])||void 0===e?void 0:e.name)&&void 0!==t?t:N)&&void 0!==S?S:"",T=(0,l.useMemo)(()=>{var e;let n=null==P?void 0:P.characterList,t=null==P?void 0:P.locationList,o=null==P?void 0:P.propList,l=e=>{let n={};for(let t of Object.keys(null!=e?e:{}))t.startsWith("_")||(n[t]=(0,f.Kd)(t,e));return n},i={},r={},s={},d=null!==(e=null==E?void 0:E.sceneList)&&void 0!==e?e:{};return(0,v.bD)(d).forEach(e=>{let n=d[e];if(!n||"object"!=typeof n||n._deleted)return;i[e]=(0,g.hz)(e,n.name);let t=Number(n.plannedShotCount);Number.isFinite(t)&&t>
10&&(s[e]=t),(0,v.jY)(n).forEach((t,o)=>{var l;let i=null===(l=n.shotList)||void 0===l?void 0:l[t];i&&!i._deleted&&(r["".concat(e,"/").concat(t)]=i.name||"Shot ".concat(o+1))})}),{character:l(n),location:l(t),prop:l(o),scene:i,shot:r,plannedShotCount:s}},[P,E]),_=(0,l.useMemo)(()=>(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.Lg.phases.map(e=>({id:e.id,label:e.label})),o=new Map(t.map((e,n)=>[e.id,n])),l=[],i=new Map,r=new Map;for(let n of e){let e=(0,y.kf)(n.idPath).phaseId;if(null==e)continue;let s=o.get(e);if(null==s)continue;let d=function(e){let n=e.entityType,t=e.entityId;return t?"character"===n||"location"===n||"prop"===n?{key:"".concat(n,":").concat(t),kind:n,id:t,sceneId:null}:"scene"===n?{key:"scene:".concat(t),kind:"scene",id:t,sceneId:t}:"shot"===n?{key:"shot:".concat(t),kind:"shot",id:t,sceneId:t.split("/")[0]}:{key:w,kind:"episode",id:"",sceneId:null}:{key:w,kind:"episode",id:"",sceneId:null}}(n);i.has(d.key)||(i.set(d.key,d),l.push(d.key),r.set(d.key,t.map(()=>({done:0,total:0,idPath:null,openIdPath:null,openIds:[]}))));let a=r.get(d.key)[s];a.total+=1,null==a.idPath&&(a.idPath=n.idPath),n.checked?a.done+=1:(a.openIds.push(n.criterionId),null==a.openIdPath&&(a.openIdPath=n.idPath))}let s=e=>{var n;return(null!==(n=r.get(e))&&void 0!==n?n:[]).map((e,n)=>{var o;return{phaseId:t[n].id,state:0===e.total?"none":e.done===e.total?"complete":"open",done:e.done,total:e.total,idPath:null!==(o=e.openIdPath)&&void 0!==o?o:e.idPath,openCriterionIds:e.openIds}})},d=e=>l.filter(n=>i.get(n).kind===e),a=[];i.has(w)&&a.push({key:w,kind:"episode",label:"Episode",indent:!1,cells:s(w)});let c=e=>{let o=d(e);if(0!==o.length)for(let l of(a.push({key:"".concat(e,":heading"),kind:"heading",label:A[e],indent:!1,section:!0,cells:t.map(e=>C(e.id))}),o)){let t=i.get(l);a.push({key:l,kind:e,label:z(n[e],t.id),indent:!1,cells:s(l)})}};c("character"),c("location"),c("prop");let u=[],p=new Map;for(let e of l){let n=i.get(e);if("scene"!==n.kind&&"shot"!==n.kind)continue;let t=n.sceneId;p.has(t)||(p.set(t,[]),u.push(t)),"shot"===n.kind&&p.get(t).push(e)}u.length>0&&a.push({key:"scene:heading",kind:"heading",label:"Scenes",indent:!1,section:!0,cells:t.map(e=>C(e.id))}),u.forEach(e=>{var o,l,r;let d="scene:".concat(e);a.push({key:d,kind:"scene",label:z(n.scene,e),indent:!1,cells:i.has(d)?s(d):t.map(e=>C(e.id))});let c=null!==(o=p.get(e))&&void 0!==o?o:[];for(let e of c)a.push({key:e,kind:"shot",label:z(n.shot,i.get(e).id),indent:!0,cells:s(e)});if(0===c.length){let o=null!==(r=null===(l=n.plannedShotCount)||void 0===l?void 0:l[e])&&void 0!==r?r:0;for(let e=1;e<=o;e+=1)a.push({key:"".concat(d,"/planned-").concat(e),kind:"placeholder",label:"Shot ".concat(e),indent:!0,cells:t.map(e=>C(e.id))})}});let h=t.map((e,n)=>{let t=0,o=0,l=!1;for(let e of a){let i=e.cells[n];i&&0!==i.total&&(o+=1,"complete"===i.state&&(t+=1),"open"===i.state&&(l=!0))}return{id:e.id,label:e.label,done:t,total:o,complete:o>0&&!l}}),x=0,m=0;for(let e of a)for(let n of e.cells)x+=n.total,m+=n.done;return{columns:h,rows:a,done:m,total:x}})(O,T),[O,T]),R=(0,l.useMemo)(()=>(function(){let e=new Map;for(let n of(0,k.Ol)())e.set(n.criterionId,n.label);return e})(),[]),H=(0,l.useCallback)(e=>{var n;return null!==(n=R.get(e))&&void 0!==n?n:"Confirm this group is not needed"},[R]),q=(0,l.useCallback)(e=>{var n;if(!e||!W||!N)return;let t={pathname:"/episode-guide",query:{[d.B.plan]:e,[d.B.project]:W,[d.B.episode]:N}},o=null!==(n=(0,b.Y9)(t))&&void 0!==n?n:t;L({pathname:o.pathname,query:{...B,...o.query}})},[W,N,B,L]),G=(0,l.useMemo)(()=>_.columns.map(e=>({key:e.id,label:e.label,caption:e.total>0?"".concat(e.done," of ").concat(e.total):"nothing to do",progress:e.total>0?e.done/e.total:void 0,complete:e.complete})),[_]),F=(0,l.useMemo)(()=>_.rows.map(e=>({key:e.key,label:e.label,indent:e.indent,heading:"episode"===e.kind||"scene"===e.kind,section:e.section,sectionHeading:"heading"===e.kind,muted:"placeholder"===e.kind,cells:e.cells.map(e=>({state:e.state,tip:function(e,n){if(0===e.total)return"Nothing to do here in this phase.";if("complete"===e.state)return"Done ".concat(m.l.emDash," all ").concat(e.total," checked.");let t=e.openCriterionIds.slice(0,8).map(e=>"- ".concat(n(e))),o=e.openCriterionIds.length-t.length;return["".concat(e.done," of ").concat(e.total," done. Still open:"),...t,...o>0?["- and ".concat(o," more")]:[]].join("\n")}(e,H),onClick:e.idPath?()=>q(e.idPath):void 0}))})),[_,H,q]),Y=!!W&&!!N;return(0,o.jsx)(i.A,{requireAuth:!0,children:(0,o.jsxs)(p.VP,{fullHeight:!0,id:"episode-progress-page",children:[(0,o.jsx)(r.A,{fill:Y?(0,o.jsx)(s.A,{projectId:W,episodeId:N,episodeTitle:M,projectName:null!==(I=null==D?void 0:D.name)&&void 0!==I?I:W,episodeList:null==P?void 0:P.episodeList,queryParams:B}):null,title:"Progress"}),Y?0===_.total?(0,o.jsx)(p.ov,{grow:!0,children:(0,o.jsx)(x.pp,{title:"Nothing to show yet",description:"Progress appears once the episode has a plan ".concat(m.l.emDash," open the Guide to start it.")})}):(0,o.jsxs)(p.Gv,{pad:"md",column:!0,children:[(0,o.jsx)(p.uh,{side:"bottom",size:"md",children:(0,o.jsxs)(p.fI,{gap:2,align:"baseline",wrap:!0,children:[(0,o.jsx)(h.Av,{children:"Progress"}),(0,o.jsxs)(h.HL,{children:[_.done," of ",_.total," checked ",m.l.middleDot," phases run left to right, the episode runs down the page"]})]})}),(0,o.jsx)(u.EJ,{children:(0,o.jsx)(u.FK,{direction:"both",children:(0,o.jsx)(x.B3,{id:"episode-progress-grid",rowHeaderLabel:"In this episode",columns:G,rows:F})})})]}):(0,o.jsx)(p.ov,{grow:!0,children:(0,o.jsx)(h.a3,{muted:!0,children:"Open a project and episode to see its progress."})})]})})}},43990:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/episode-progress",function(){return t(19377)}])},45145:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(37876),l=t(87165),i=t(21132);function r(e){let{children:n,id:t}=e;return(0,o.jsx)(l.az,{id:t,sx:{px:1.5,py:1.25,borderRadius:"sm",bgcolor:"background.level1",border:"1px solid",borderColor:"divider"},children:(0,o.jsx)(i.a3,{size:"sm",muted:!0,children:n})})}},52980:(e,n,t)=>{"use strict";t.d(n,{vx:()=>Y,iV:()=>W,bQ:()=>x,ur:()=>B.A,EJ:()=>D,TN:()=>m.T,DG:()=>C,FK:()=>P,iv:()=>A,fm:()=>j,ui:()=>c});var o=t(37876),l=t(14232),i=t(87165);let r={none:0,sm:1,snug:1.5,md:2,lg:3},s={none:0,sm:"sm",md:"md"},d={page:"background.body",surface:"background.surface",raised:"background.level1"},a={neutral:"neutral",info:"primary",warning:"warning",success:"success",danger:"danger"};
1function c(e){let{children:n,padding:t="none",radius:l="none",level:c="surface",tint:u="none",bordered:p=!1,scroll:h=!1,noShrink:x=!1,fullWidth:m=!1,id:f}=e,v="none"===u?null:a[u];return(0,o.jsx)(i.az,{id:f,sx:{bgcolor:v?"".concat(v,".softBg"):d[c],...v?{color:"".concat(v,".softColor")}:null,p:r[t],borderRadius:s[l],...p?{border:"1px solid",borderColor:"divider"}:null,...h?{overflow:"auto"}:null,...x?{flexShrink:0}:null,...m?{width:"100%"}:null},children:n})}var u=t(35492);let p={tight:{},compact:{"--TableCell-paddingY":"4px","--TableCell-paddingX":"8px"},roomy:{"--TableCell-paddingY":"8px","--TableCell-paddingX":"12px"}},h={"--TableCell-headBackground":"var(--joy-palette-background-level1)","--TableRow-hoverBackground":"var(--joy-palette-background-level1)",borderCollapse:"separate",borderSpacing:0,"& thead th":{position:"sticky",top:0,zIndex:2,backgroundColor:"var(--joy-palette-background-level1)",boxShadow:"inset 0 -1px 0 var(--joy-palette-divider)"}};function x(e){let{children:n,density:t="tight",header:l="plain",hoverRow:i=!1,layout:r,fullWidth:s=!1,id:d}=e;return(0,o.jsx)(u.A,{id:d,size:"tight"===t?"sm":void 0,stickyHeader:"sticky"===l,hoverRow:i,sx:{...p[t],..."sticky-raised"===l?h:null,...r?{tableLayout:r}:null,..."fixed"===r?{minWidth:0}:null,...s?{width:"100%"}:null},children:n})}var m=t(88772),f=t(54322);let v={none:0,sm:1,md:2,lg:3},g={neutral:"neutral",info:"primary",warning:"warning",success:"success",danger:"danger"};function j(e){let{children:n,padding:t="none",intent:l="neutral",id:i}=e;return(0,o.jsx)(f.A,{id:i,variant:"soft",color:g[l],sx:{p:v[t]},children:n})}var b=t(10524),y=t(90332),k=t(65756);function A(e){let{title:n,children:t,defaultOpen:r=!0,action:s,helperText:d,expandOnActionClick:a,id:c}=e,[u,p]=(0,l.useState)(r);return(0,o.jsxs)(f.A,{variant:"outlined",id:c,children:[(0,o.jsxs)(i.az,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>p(e=>!e),children:[(0,o.jsxs)(i.az,{sx:{flex:1},children:[(0,o.jsx)(i.o5,{level:"title-sm",children:n}),d&&(0,o.jsx)(i.o5,{level:"body-xs",sx:{color:"text.secondary"},children:d})]}),s&&(0,o.jsx)(i.az,{sx:{display:"flex",alignItems:"center"},onClick:e=>{e.stopPropagation(),a&&p(!0)},children:s}),(0,o.jsx)(b.Ay,{variant:"plain",size:"sm",children:u?(0,o.jsx)(y.A,{}):(0,o.jsx)(k.A,{})})]}),u&&(0,o.jsx)(i.az,{sx:{pt:1.5},children:t})]})}let w={none:0,sm:1,md:2,lg:3};function C(e){let{children:n,header:t,footer:l,headerPadding:r="md",bodyPadding:s="md",footerPadding:d="sm",id:a}=e;return(0,o.jsxs)(i.az,{id:a,sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[t&&(0,o.jsx)(i.az,{sx:{p:w[r],borderBottom:"1px solid",borderColor:"divider",bgcolor:"background.surface",flexShrink:0,position:"sticky",top:0,zIndex:10},children:t}),(0,o.jsx)(i.az,{sx:{flex:1,minHeight:0,overflow:"auto",p:w[s]},children:n}),l&&(0,o.jsx)(i.az,{sx:{p:w[d],borderTop:"1px solid",borderColor:"divider",bgcolor:"background.surface",flexShrink:0,position:"sticky",bottom:0,zIndex:10},children:l})]})}let z={none:0,sm:1,md:2},S={vertical:{overflowY:"auto",overflowX:"hidden"},horizontal:{overflowX:"auto",overflowY:"hidden"},both:{overflow:"auto"}},I={"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"};function P(e){let{children:n,direction:t="vertical",hideScrollbar:l=!1,pad:r="none",padX:s="none",id:d}=e;return(0,o.jsx)(i.az,{id:d,sx:{flex:1,minHeight:0,py:z[r],px:z[s],...S[t],...l&&I},children:n})}function D(e){let{children:n,id:t}=e;return(0,o.jsx)(i.az,{id:t,sx:{flexGrow:1,flexShrink:1,minHeight:0,display:"flex",flexDirection:"column",border:"1px solid",borderColor:"divider",borderRadius:"sm",overflow:"hidden"},children:n})}var B=t(45145),L=t(9299),O=t(27269);function W(e){let{summary:n,children:t,defaultOpen:r=!1,open:s,onOpenChange:d,trailing:a,id:c}=e,u=void 0!==s,[p,h]=l.useState(r),x=u?s:p,m=()=>{let e=!x;u||h(e),null==d||d(e)};return(0,o.jsxs)(i.az,{id:c,sx:{width:"100%"},children:[(0,o.jsxs)(i.az,{role:"button",tabIndex:0,"aria-expanded":x,onClick:m,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m())},sx:{display:"flex",alignItems:"center",gap:.75,cursor:"pointer",borderRadius:"sm",py:.5,userSelect:"none","&:hover":{bgcolor:"background.level1"}
1,"&:focus-visible":{outline:"2px solid",outlineColor:"primary.outlinedBorder",outlineOffset:2}},children:[x?(0,o.jsx)(O.A,{sx:{fontSize:20,color:"text.tertiary",flexShrink:0}}):(0,o.jsx)(L.A,{sx:{fontSize:20,color:"text.tertiary",flexShrink:0}}),(0,o.jsx)(i.az,{sx:{flex:1,minWidth:0},children:n}),null!=a&&(0,o.jsx)(i.az,{sx:{flexShrink:0},children:a})]}),x&&(0,o.jsx)(i.az,{sx:{pl:3.5,pb:.5},children:t})]})}var N=t(80939),E=t(47692),M=t(15741),T=t(17085),_=t(5767),R=t(81339),H=t(31807);let q=M.A,G={starred:"Remove from favorites",unstarred:"Add to favorites"};function F(e,n){return{...e.selected&&("list"===n?{borderColor:"primary.solidBg",borderWidth:"2px",borderStyle:"solid"}:{borderColor:"primary.500",borderWidth:"1px",borderStyle:"solid"}),...e.accent&&{borderColor:"strong"===e.accent?"success.solidBg":"success.outlinedBorder",borderWidth:"2px",borderStyle:"solid"},...e.dimmed&&{opacity:.6,filter:"grayscale(0.8)",backgroundColor:"background.level1"},...e.marked&&{outline:"2px dashed var(--joy-palette-primary-solidBg)",outlineOffset:"-2px"},...e.multiSelected&&{outline:"2px solid var(--joy-palette-primary-solidBg)",outlineOffset:"-1px",backgroundColor:"var(--joy-palette-primary-softBg)"},...e.highlighted&&{outline:"2px solid var(--joy-palette-primary-solidBg)",outlineOffset:"-1px"}}}function Y(e){let{children:n,layout:t="grid",id:l,showStar:i=!1,starred:r=!1,onStarToggle:s,starTooltips:d=G,starInset:a="default",leadingExtra:c,leadingChromeId:u,showMenu:p=!1,menuItems:h,menuOpen:x,onMenuOpenChange:m,menuTooltip:v="More actions",trailingBefore:g,trailingAfter:j,trailingChromeId:b,accentTooltip:y,onClick:k,onDoubleClick:A,onContextMenu:w,draggable:C,onDragStart:z,onMouseDown:S,onMouseUp:I}=e,P=(0,o.jsxs)(H.lk,{side:"right",id:b,children:[g,p&&(0,o.jsxs)(E.m,{...void 0!==x?{open:x}:{},onOpenChange:(e,n)=>null==m?void 0:m(n),children:[(0,o.jsx)(H.Io,{title:v}),(0,o.jsx)(q,{sx:{zIndex:R.Mu.DROPDOWN},children:h})]}),j]}),D=(0,o.jsxs)(H.lk,{side:"left",inset:"wide"===a?40:void 0,id:u,children:[i&&s&&(0,o.jsx)(H.Si,{onClick:e=>{e.stopPropagation(),s()},title:r?d.starred:d.unstarred,children:r?(0,o.jsx)(T.A,{}):(0,o.jsx)(_.A,{})}),c]}),B={id:l,title:y,draggable:C,onMouseDown:S,onMouseUp:I,onDragStart:z,onContextMenu:w,onClick:k,onDoubleClick:A};return"list"===t?(0,o.jsxs)(f.A,{...B,variant:"outlined",sx:{cursor:"pointer","&:hover":{boxShadow:"md"},...F(e,"list"),position:"relative"},children:[P,D,n]}):(0,o.jsxs)(N.A,{...B,variant:"outlined",sx:{borderRadius:"md",overflow:"hidden",transition:"all 0.2s ease-in-out",height:"100%",display:"flex",flexDirection:"column",position:"relative",cursor:"pointer","&:hover":{boxShadow:"md"},...F(e,"grid")},children:[P,D,n]})}t(50046)},59161:(e,n,t)=>{"use strict";t.d(n,{A:()=>k});var o=t(37876),l=t(14232),i=t(55529),r=t(71610),s=t(99876),d=t(25889),a=t(47692),c=t(55564),u=t(34418),p=t(47812),h=t(87165),x=t(8213),m=t(60579),f=t(81339),v=t(18045);function g(e){return null==e?"(none)":String(e).trim().length>0?String(e):"(none)"}function j(e){return null==e?"(none)":"string"==typeof e?g(e):"number"!=typeof e||Number.isNaN(e)?e:String(e)}let b={display:"flex",alignItems:"center",color:"text.secondary",flexShrink:0,"& svg":{fontSize:"1.35rem"}};function y(e){let{entityType:n}=e;if(!n)return null;let t=(0,v.h)(n);return t?(0,o.jsx)(h.az,{component:"span",sx:b,"aria-hidden":!0,children:t}):null}function k(e){let{readOnly:n=!1,linearOrder:t=!1,onPrev:v,onNext:b,prevDisabled:k,nextDisabled:A,titleMenuLabel:w,titleMenuEntityType:C,menuOpen:z,onMenuOpenChange:S,ancestryItems:I=[],siblingItems:P,menuFooter:D}=e,[B,L]=(0,l.useState)(!1),O=void 0!==z&&void 0!==S,W=O?S:L;return n?(0,o.jsxs)(h.BJ,{direction:"row",alignItems:"center",spacing:.5,sx:{minWidth:0,flexGrow:1,flexShrink:1,px:1,py:.25,maxWidth:"100%"},children:[(0,o.jsx)(y,{entityType:C}),(0,o.jsx)(h.az,{sx:{minWidth:0,flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--joy-fontSize-title-md)",fontWeight:"var(--joy-fontWeight-md)"},children:j(w)})]}):(0,o.jsxs)(h.BJ,{direction:"row",alignItems:"center",spacing:0,sx:{minWidth:0,flexGrow:1,flexShrink:1},children:[t?(0,o.jsx)(m.EO,{size:"sm",tooltip:"Previous",disabled:k,onClick:()=>null==v?void 0:v(),sx:{ml:.5},children:(0,o.jsx)(i.A,{})}):null,(0,o.jsxs)(a.m,{open:O?z:B,onOpenChange:(e,n)=>W(n),children:[(0,o.jsx)(c.A,{variant:"plain",sx:{px:1,py:.25,minHeight:"auto",maxWidth:"100%",color:"inherit",curs
1or:"pointer",overflow:"hidden","&:hover":{backgroundColor:"transparent"}},children:(0,o.jsxs)(h.BJ,{direction:"row",alignItems:"center",spacing:.5,sx:{minWidth:0,maxWidth:"100%"},children:[(0,o.jsx)(y,{entityType:C}),(0,o.jsx)(h.az,{sx:{minWidth:0,flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--joy-fontSize-title-md)",fontWeight:"var(--joy-fontWeight-md)"},children:j(w)}),t?null:(0,o.jsx)(d.A,{"aria-hidden":!0,sx:{fontSize:"1.35rem",flexShrink:0,opacity:.75,color:"text.secondary"}})]})}),(0,o.jsxs)(h.W1,{style:f.kD,sx:{...f.ct,maxHeight:"60vh",overflowY:"auto"},onKeyDown:e=>e.stopPropagation(),children:[I.map((e,n)=>(0,o.jsx)(h.Dr,{onClick:()=>{W(!1),e.onNavigate()},children:(0,o.jsx)(u.Ay,{level:"title-sm",sx:{minWidth:0,maxWidth:"min(90vw, 360px)"},noWrap:!0,children:e.labelOnly?e.kindLabel:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(h.az,{component:"span",sx:{color:"text.secondary"},children:[e.kindLabel,":"]})," ",g(e.valueLabel)]})})},"".concat(e.kindLabel,"-").concat(n))),I.length>0&&P.length>0?(0,o.jsx)(p.A,{}):null,P.map(e=>{var n,t;return(0,o.jsxs)(l.Fragment,{children:[e.dividerBefore?(0,o.jsx)(p.A,{}):null,(0,o.jsxs)(h.Dr,{selected:e.selected,color:e.menuItemColor,onClick:()=>{W(!1),e.onSelect()},sx:e.indent?{pl:6,pr:e.onDelete?.5:void 0}:e.onDelete?{pr:.5}:void 0,children:[(0,o.jsx)(x.A,{children:e.selected?(0,o.jsx)(r.A,{sx:{fontSize:"16px"}}):null!==(n=e.startDecorator)&&void 0!==n?n:null}),(0,o.jsx)(h.az,{sx:{flexGrow:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:"string"==typeof(t=e.label)?g(t):t}),e.onDelete?(0,o.jsx)(m.EO,{size:"sm",tooltip:"",onClick:n=>{n.stopPropagation(),W(!1),e.onDelete()},sx:{color:"danger.400","&:hover":{color:"danger.600",bgcolor:"danger.softBg"},flexShrink:0},children:(0,o.jsx)(s.A,{sx:{fontSize:16}})}):null]})]},e.key)}),D]})]}),t?(0,o.jsx)(m.EO,{size:"sm",tooltip:"Next",disabled:A,onClick:()=>null==b?void 0:b(),sx:{mr:.5},children:(0,o.jsx)(r.A,{})}):null]})}},60579:(e,n,t)=>{"use strict";t.d(n,{Qi:()=>i.A,dF:()=>a,jn:()=>o.A,tA:()=>l.A,EO:()=>c,k7:()=>u});var o=t(66044),l=t(83528),i=t(76991);t(5894);var r=t(37876),s=t(78590),d=t(10524);function a(e){let{onClick:n,tooltip:t,stale:o=!1,staleTooltip:l,size:i="md",disabled:a,loading:c,children:u,sx:p}=e;return(0,r.jsx)(s.A,{title:o&&l?l:t,children:(0,r.jsx)(d.Ay,{color:o?"warning":"neutral",variant:o?"solid":"soft",onClick:n,size:i,disabled:a,loading:c,sx:p,children:u})})}function c(e){let{onClick:n,tooltip:t,size:o="md",disabled:l,loading:i,children:a,sx:c}=e;return(0,r.jsx)(s.A,{title:t,children:(0,r.jsx)(d.Ay,{color:"neutral",variant:"plain",onClick:n,size:o,disabled:l,loading:i,sx:c,children:a})})}function u(e){let{checked:n,onChange:t,tooltip:o,tooltipChecked:l,tooltipUnchecked:i,size:a="md",disabled:c,color:u="neutral",alwaysSoft:p=!1,alwaysSolid:h=!1,children:x,sx:m,tooltipSx:f}=e,v=o;return n&&l?v=l:!n&&i&&(v=i),(0,r.jsx)(s.A,{title:v,sx:f,children:(0,r.jsx)(d.Ay,{color:u,variant:p?"soft":h?"solid":n?"solid":"soft",onClick:()=>t(!n),size:a,disabled:c,sx:m,children:x})})}},66044:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(37876),l=t(59742);function i(e){let{onClick:n,size:t="md",disabled:i,loading:r,sx:s,startDecorator:d,endDecorator:a,title:c,children:u}=e;return(0,o.jsx)(l.A,{color:"primary",variant:"solid",onClick:n,size:t,disabled:i,loading:r,title:c,startDecorator:d,endDecorator:a,sx:{whiteSpace:"nowrap",...s},children:u})}},66178:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(37876),l=t(14232),i=t(89099),r=t(59161),s=t(42154),d=t(1426),a=t(13832),c=t(31011);function u(e){let{projectId:n,episodeId:t,episodeTitle:u,projectName:p,episodeList:h,queryParams:x={},menuOpen:m,onMenuOpenChange:f,scheduleEntry:v=!1}=e,{requestNavigation:g}=(0,d.z)(),j=(0,i.useRouter)().pathname.replace(/^\//,"")||"screenplay",b=(0,l.useMemo)(()=>(0,s.QM)(h),[h]),y=(0,l.useMemo)(()=>b.map(e=>e.id),[b]),{prevId:k,nextId:A}=(0,l.useMemo)(()=>(0,s.z3)(y,t),[y,t]),w=e=>{g({pathname:"/".concat(j),query:{...x,[c.B.project]:n,[c.B.episode]:e}})},C=v?[{key:"__schedule__",label:"Schedule",onSelect:()=>g({pathname:"/project-schedule",query:{...x,[c.B.project]:n}}),dividerBefore:!1}]:[],z=b.map((e,n)=>({key:e.id,selected:e.id===t,label:"".concat(e.name),onSelect:()=>w(e.id),dividerBefore:v&&0===n}));return(0,o.jsx)(r.A,{readOnly:!0,linearOrder:!0,prevDisabled:!k,nextDisabled:!A,onPrev:()=>k&&w(k),onNext:()=>A&&w(A),titleMenuLabel:u,titleMenuEntityType:"Episode",menuOpen:m,onMenuOpenChange:f,ancestryItems:v?[]:(0,a.A)({requestNavigation:g,queryParams:x,projectId:n,projectName:p}),siblingItems:[...C,...z]})}},76991:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(37876),l=t(59742);function i(e){let{onClick:n,size:t="md",disabled:i,loading:r,sx:s,startDecorator:d,endDecorator:a,children:c}=e;return(0,o.jsx)(l.A,{color:"danger",variant:"solid",onClick:n,size:t,disabled:i,loading:r,startDecorator:d,endDecorator:a,sx:s,children:c})}},83528:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(37876),l=t(59742);function i(e){let{onClick:n,size:t="md",disabled:i,loading:r,sx:s,startDecorator:d,endDecorator:a,children:c}=e;return(0,o.jsx)(l.A,{color:"neutral",variant:"outlined",onClick:n,size:t,disabled:i,loading:r,startDecorator:d,endDecorator:a,sx:s,children:c})}},88772:(e,n,t)=>{"use strict";t.d(n,{T:()=>s});var o=t(37876);t(14232);
1var l=t(54322);let i={none:0,sm:1,md:2,lg:3},r={none:0,sm:"sm",md:"md"};function s(e){let{children:n,padding:t="none",radius:s="sm",interactive:d=!1,onClick:a,id:c}=e;return(0,o.jsx)(l.A,{id:c,variant:"outlined",onClick:a,sx:{p:i[t],borderRadius:r[s],...(d||void 0!==a)&&{cursor:"pointer","&:hover":{bgcolor:"background.level1"},"&:active":{bgcolor:"background.level2"}}},children:n})}}},e=>{var n=n=>e(e.s=n);e.O(0,[3007,6699,7391,3791,9963,3623,2519,4492,7129,7504,992,1331,2343,9552,9338,3493,1404,2774,1890,3494,9107,4526,6595,2226,2986,7172,9517,5782,636,6593,8792],()=>n(43990)),_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.