PageSourceSearch

https://patron.theateralliance.org/_next/static/chunks/28035.bc08a9355af8da16.js

js theateralliance.org collected 2026-10-10 00:36:10 UTC 4,979 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28035],{35743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RosterPdfExport:()=>g});var o=r(95155),a=r(81056),n=r(12115),d=r(18720),l=r(46512),s=r(80587),i=r.n(s);a.KQ.registerHyphenationCallback(e=>[e]);let c=a.vv.create({page:{padding:36,fontSize:9,fontFamily:"Helvetica",color:"#1a1a1a"},header:{marginBottom:10,paddingBottom:8,borderBottomWidth:2,borderBottomColor:"#2563eb"},className:{fontSize:18,fontFamily:"Helvetica-Bold",color:"#111827",marginBottom:2},subtitle:{fontSize:10,color:"#6b7280"},headerRow:{flexDirection:"row",backgroundColor:"#f3f4f6",borderBottomWidth:1,borderBottomColor:"#9ca3af",borderTopWidth:1,borderTopColor:"#9ca3af"},nameHeaderCell:{width:170,paddingVertical:4,paddingRight:6,paddingLeft:4,borderRightWidth:.5,borderRightColor:"#d1d5db",justifyContent:"center"},nameHeaderText:{fontFamily:"Helvetica-Bold",fontSize:9,color:"#374151"},dateHeaderCell:{alignItems:"center",justifyContent:"center",paddingVertical:3,borderRightWidth:.5,borderRightColor:"#d1d5db"},dateHeaderLine1:{fontFamily:"Helvetica-Bold",fontSize:7,color:"#374151"},dateHeaderLine2:{fontSize:6,color:"#6b7280"},studentRow:{flexDirection:"row",borderBottomWidth:.5,borderBottomColor:"#e5e7eb"},nameCell:{width:170,paddingVertical:5,paddingRight:6,paddingLeft:4,borderRightWidth:.5,borderRightColor:"#e5e7eb",justifyContent:"center"},nameText:{fontSize:9,color:"#1f2937"},checkCell:{alignItems:"center",justifyContent:"center",paddingVertical:5,borderRightWidth:.5,borderRightColor:"#e5e7eb"},checkBox:{width:11,height:11,borderWidth:1,borderColor:"#374151",borderRadius:2},emptyText:{fontSize:10,color:"#9ca3af",fontStyle:"italic",marginTop:8},footer:{position:"absolute",bottom:12,left:36,right:36,flexDirection:"row",justifyContent:"space-between",fontSize:8,color:"#9ca3af"}});function h(e){let{roster:t,sortBy:r,rangeLabel:n,pageIndex:d,totalPages:l,orientation:s}=e,h=Math.min(40,Math.max(22,(("landscape"===s?792:612)-72-170)/t.dates.length)),f=t.students.map(e=>new Set(e.enrolled_datetime_ids));return(0,o.jsxs)(a.YW,{size:"LETTER",orientation:s,style:c.page,children:[(0,o.jsxs)(a.Ss,{style:c.header,children:[(0,o.jsx)(a.EY,{style:c.className,children:t.class_name}),(0,o.jsxs)(a.EY,{style:c.subtitle,children:["Season ",t.season," \xb7 ",t.students.length," student",1===t.students.length?"":"s"," \xb7 ",n]})]}),(0,o.jsxs)(a.Ss,{style:c.headerRow,fixed:!0,children:[(0,o.jsx)(a.Ss,{style:c.nameHeaderCell,children:(0,o.jsx)(a.EY,{style:c.nameHeaderText,children:"Student"})}),t.dates.map(e=>(0,o.jsxs)(a.Ss,{style:{...c.dateHeaderCell,width:h},children:[(0,o.jsx)(a.EY,{style:c.dateHeaderLine1,children:i().tz(e.timestamp,e.timezone||"UTC").format("M/D")}),(0,o.jsx)(a.EY,{style:c.dateHeaderLine2,children:i().tz(e.timestamp,e.timezone||"UTC").format("ddd")})]},e.datetime_id))]}),t.students.map((e,n)=>(0,o.jsxs)(a.Ss,{style:c.studentRow,wrap:!1,children:[(0,o.jsx)(a.Ss,{style:c.nameCell,children:(0,o.jsx)(a.EY,{style:c.nameText,children:"first"===r?"".concat(e.firstname," ").concat(e.lastname).trim():"".concat(e.lastname,", ").concat(e.firstname).replace(/^,\s*/,"").replace(/,\s*$/,"")})}),t.dates.map(e=>(0,o.jsx)(a.Ss,{style:{...c.checkCell,width:h},children:f[n].has(e.datetime_id)?(0,o.jsx)(a.Ss,{style:c.checkBox}):null},e.datetime_id))]},e.contact_id)),(0,o.jsxs)(a.Ss,{style:c.footer,fixed:!0,children:[(0,o.jsxs)(a.EY,{children:[t.class_name," \xb7 Page ",d+1," of ",l]}),(0,o.jsxs)(a.EY,{children:["Generated ",i()().format("MMM D, YYYY [at] h:mm A")]})]})]})}function f(e){let{rosters:t,sortBy:r,startDate:n,endDate:d,orientation:l="landscape"}=e,s="".concat(i()(n).format("MMM D, YYYY")," – ").concat(i()(d).format("MMM D, YYYY"));return(0,o.jsx)(a.yo,{children:t.map((e,a)=>(0,o.jsx)(h,{roster:e,sortBy:r,rangeLabel:s,pageIndex:a,totalPages:t.length,orientation:l},e.class_id))})}var m=r(30926);let u=(0,m.createServerReference)("4017b922a3d851c51597d4913ddc84a43e2c96eb5c",m.callServer,void 0,m.findSourceMapURL,"getAllClassRostersForExport");function g(e){let{startDate:t,endDate:r,sortBy:s,orientation:i,selectedClassIds:c,onDone:h}=e,m=(0,n.useRef)(!1),{data:g,error:p}=(0,l.Ay)(["getAllClassRostersForExport",t,r,s,...null!=c?c:[]],async()=>await u({startDate:t,endDate:r,sortBy:s,selectedClassIds:c}));return((0,n.useEffect)(()=>{p&&(d.oR.error("Failed to fetch rosters"),h())},[p,h]),(0,n.useEffect)(()=>{g&&0===g.length&&(d.oR.error(c&&c.length>0?"No enrolled students found in the selected classes for that date range.":"No enrolled students found in that date range."),h())},[g,h,c]),g&&0!==g.length)?(0,o.jsx)(a.lp,{document:(0,o.jsx)(f,{rosters:g,
1sortBy:s,startDate:t,endDate:r,orientation:i}),children:e=>{let{blob:t,url:r,loading:o,error:a}=e;if(a)return d.oR.error("Failed to generate PDF"),h(),null;if(!o&&t&&r&&!m.current){m.current=!0;let e=document.createElement("a");e.href=r,e.download="class-rosters.pdf",e.click(),setTimeout(()=>h(),500)}return null}}):null}},50477:()=>{}}]);

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.