PageSourceSearch

https://patron.theateralliance.org/_next/static/chunks/59552-3dd83658183f1b8a.js

js theateralliance.org collected 2026-10-10 00:35:59 UTC 18,054 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59552],{11634:(e,t,i)=>{"use strict";i.d(t,{Wx:()=>o,hI:()=>n,oi:()=>l,sE:()=>r,xw:()=>s});let n=[{id:"classic",label:"Classic 1",description:"Event, holder and seat across the body, with a tear-off stub on the right. Carries a second QR code in the bottom-left corner, so a tear or a thermal streak that ruins the stub does not take the only code with it.",usesTicketLogo:!1},{id:"logo_stub",label:"Classic 2",description:"A 1 inch logo column on the left, event detail in the middle, and the same tear-off stub on the right. A smaller backup QR code sits in the bottom-right corner of the ticket details.",usesTicketLogo:!0}],l="classic",s=n.map(e=>e.id);function o(e){return n.some(t=>t.id===e)?e:l}function r(e){var t;return null!=(t=n.find(t=>t.id===e))?t:n[0]}},18924:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RenderPDF:()=>S,TICKET_LOGO_ASPECT:()=>f,default:()=>x,get_render:()=>j,ticketLayoutFromOrganization:()=>g});var n=i(95155),l=i(11634),s=i(25016),o=i(81056),r=i(97003),a=i(309),c=i(39867),d=i(71770),m=i.n(d);i(12115);var h=i(78328);function x(e){let{organization:t,ticket_sales:i,concerts:l,seats:s,orgLogoUrl:d,onDownload:m,filename:x="tickets"}=e,f={top:parseFloat(t.ticket_margin_top)||0,right:parseFloat(t.ticket_margin_right)||0,bottom:parseFloat(t.ticket_margin_bottom)||0,left:parseFloat(t.ticket_margin_left)||0};return(0,n.jsxs)("div",{className:"flex flex-row items-center justify-center flex-wrap gap-3",children:[(0,n.jsx)(o.lp,{document:(0,n.jsx)(S,{organization:t,ticket_sales:i,concerts:l,seats:s,orgLogoUrl:d,page:"ticket",ticketMargins:f}),children:e=>{let{blob:t,url:i,loading:l,error:s}=e;return(0,n.jsxs)("div",{className:"flex justify-center shadow-sm rounded-md",children:[(0,n.jsx)(r.$n,{variant:"primary",disabled:l,className:"custom-org-submit-button rounded-r-none border-r border-white/20",onClick:()=>{(0,h.g6)(t,i,"".concat(x,".pdf")),null==m||m()},children:l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin mr-2"}),"Generating..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{className:"w-4 h-4 mr-2"}),'Print Tickets (2"x5.5")']})}),(0,n.jsx)(r.$n,{variant:"primary",disabled:l,className:"custom-org-submit-button rounded-l-none px-3",title:"Download Ticket Size","aria-label":"Download Ticket Size",onClick:()=>{(0,h.Ru)(t,i,"".concat(x,".pdf")),null==m||m()},children:l?(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,n.jsx)(c.A,{className:"w-4 h-4"})})]})}}),(0,n.jsx)(o.lp,{document:(0,n.jsx)(S,{organization:t,ticket_sales:i,concerts:l,seats:s,orgLogoUrl:d,page:"letter"}),children:e=>{let{blob:t,url:i,loading:l,error:s}=e;return(0,n.jsxs)("div",{className:"flex justify-center shadow-sm rounded-md",children:[(0,n.jsx)(r.$n,{variant:"primary",disabled:l,className:"custom-org-submit-button rounded-r-none border-r border-white/20",onClick:()=>{(0,h.g6)(t,i,"".concat(x,"-letter.pdf")),null==m||m()},children:l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin mr-2"}),"Generating..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{className:"w-4 h-4 mr-2"}),"Print Tickets (Letter)"]})}),(0,n.jsx)(r.$n,{variant:"primary",disabled:l,className:"custom-org-submit-button rounded-l-none px-3",title:"Download Letter Size","aria-label":"Download Letter Size",onClick:()=>{(0,h.Ru)(t,i,"".concat(x,"-letter.pdf")),null==m||m()},children:l?(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,n.jsx)(c.A,{className:"w-4 h-4"})})]})}})]})}o.KQ.registerHyphenationCallback(e=>[e]);let f=.5;function g(e){return{layout:(0,l.Wx)(e.ticket_layout),ticketLogoUrl:e.ticket_logo_url}}let u={layout:l.oi,ticketLogoUrl:null},p={classic:function(e){var t,i,l;let{sale:r,concerts:a,org_name:c,orgLogoUrl:d,seats:h,scale:x=1,showPrices:f=!1}=e,g=Object.fromEntries(a.map(e=>[e.concertDatetimeId,e])),u=Object.fromEntries(h.map(e=>[e.id,e])),p=g[r.concert_to_datetime_id],j=r.seat_id?u[r.seat_id]:null,S=e=>e*x,_="TICKETSALE!!!".concat(r.id),b=new(m())({value:_,size:600}).toDataURL(),E=(0,s.Yq)(p.concertDatetime,p.concertTimezone,p.concertTimezone),w=r.seat_price_name||r.ticket_section_group_name||r.subscription_price_option_spec_name||"General Admission";return[(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",backgroundColor:"#ffffff",borderRadius:S(8),overflow:"hidden",height:"100%"},children:[(0,n.jsxs)(o.Ss,{style:{flex:1,flexDirection:"row",padding:S(12)},children:[(0,n.jsxs)(o.Ss,{style:{flex:3,paddingRight:S(10),justifyContent:"space-between"},children:[(0,n.jsxs)(o.Ss,{style:{marginBottom:S(4)},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(13),fontFamily:"Helvetica-Bold",color:"#000000",lineHeight:1.2},children:p.concertName}),(0,n.jsx)(o.EY,{style:{fontSize:S(8),color:"#000000",marginTop:S(2),fontFamily:"Helvetica-Bold"},children:E}),(0,n.jsx)(o.EY,{style:{fontSize:S(8),color:"#000000",fontWeight:"bold"},children:c})]}),(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.EY,{style:{fontSize:S(9.5),color:"#000000",fontWeight:"bold"},children:p.venueName}),(0,n.jsx)(o.EY,{style:{fontSize:S(8.5),color:"#000000",maxLines:1,textOverflow:"ellipsis"},children:p.venueAddress})]}),(0,n.jsx)(o.Ss,{style:{marginTop:S(3)},children:(0,n.jsx)(o._V,{src:b,style:{width:S(34),height:S(34)}})})]}),(0,n.jsxs)(o.Ss,{style:{flex:1.8,paddingHorizontal:S(12)},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),fontWeight:"bold",color:"#000000",marginBottom:S(2)},children:"TICKET HOLDER"}),(0,n.jsxs)(o.EY,{style:{fontSize:S(10),fontWeight:"bold",color:"#000000",marginBottom:S(12)},children:[r.firstname," ",r.lastname]}),r.seat_id?(0,n.jsxs)(o.Ss,{children:[(0,n.jsxs)(o.Ss,{style:{marginBottom:S(8)},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000"},children:"SECTION"}),(0,n.jsx)(o.EY,{style:{fontSize:S(12),fontWeight:"bold",color:"#000000"},children:u[r.seat_id].section})]}),(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",marginBottom:S(8)},children:[(0,n.jsxs)(o.Ss,{style:{flex:1},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000"},children:"ROW"}),(0,n.jsx)(o.EY,{style:{fontSize:S(12),fontWeight:"bold",color:"#000000"},children:u[r.seat_id].row})]}),(0,n.jsxs)(o.Ss,{style:{flex:1},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000"},children:"SEAT"}),(0,n.jsx)(o.EY,{style:{fontSize:S(12),fontWeight:"bold",color:"#000000"},children:u[r.seat_id].seat})]}),u[r.seat_id].door?(0,n.jsxs)(o.Ss,{style:{flex:1},children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000"},children:"DOOR"}),(0,n.jsx)(o.EY,{style:{fontSize:S(12),fontWeight:"bold",color:"#000000"},children:u[r.seat_id].door})]}):null]}),(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000",marginBottom:S(2)},children:"TICKET TYPE"}),(0,n.jsxs)(o.EY,{style:{fontSize:S(10),fontWeight:"bold",color:"#000000"},children:[r.seat_price_name||r.ticket_section_group_name||r.subscription_price_option_spec_name,f&&null!=r.total_paid?" — $".concat(parseFloat(String(r.total_paid)).toFixed(2)):""]})]})]}):(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.EY,{style:{fontSize:S(7),color:"#000000",marginBottom:S(2)},children:"TICKET TYPE"}),(0,n.jsxs)(o.EY,{style:{fontSize:S(10),fontWeight:"bold",color:"#000000"},children:[r.ticket_section_group_name||r.subscription_price_option_spec_name,f&&null!=r.total_paid?" — $".concat(parseFloat(String(r.total_paid)).toFixed(2)):""]})]})]})]}),y({qrcode:b,concertName:p.concertName,dateLabel:E,seatLabel:j?"".concat(null!=(t=j.section)?t:""," ").concat(null!=(i=j.row)?i:"","-").concat(null!=(l=j.seat)?l:"").trim():w,sc:S})]},r.id)]},logo_stub:function(e){var t,i,l,r,a,c,d,h;let{sale:x,concerts:f,org_name:g,orgLogoUrl:u,seats:p,scale:j=1,showPrices:S=!1,layout:_}=e,b=Object.fromEntries(f.map(e=>[e.concertDatetimeId,e])),E=Object.fromEntries(p.map(e=>[e.id,e])),w=b[x.concert_to_datetime_id],z=x.seat_id?E[x.seat_id]:null,Y=e=>e*j,k=e=>Y(72*e),T="TICKETSALE!!!".concat(x.id),v=new(m())({value:T,size:600}).toDataURL(),C=null!=(t=_.ticketLogoUrl)?t:u,F=k(1),L=k(2),N=!_.ticketLogoUrl&&!!u,D=Y(6),O=(0,s.Yq)(w.concertDatetime,w.concertTimezone,w.concertTimezone),A=x.seat_price_name||x.ticket_section_group_name||x.subscription_price_option_spec_name||"General Admission",R=S&&null!=x.total_paid?" — $".concat(parseFloat(String(x.total_paid)).toFixed(2)):"",B={fontSize:Y(6),color:"#000000"},W="Helvetica-Bold",I=z?[["SECTION",String(null!=(i=z.section)?i:"")],["ROW",String(null!=(l=z.row)?l:"")],["SEAT",String(null!=(r=z.seat)?r:"")],...z.door?[["DOOR",String(z.door)]]:[]]:[],H=(0,n.jsx)(o.Ss,{style:{width:F,alignItems:"center",justifyContent:"center"},children:C?(0,n.jsx)(o._V,{src:C,style:{width:N?L-2*D:F,height:N?F:L,objectFit:"contain",...N?{flexShrink:0,transform:"rotate(-90deg)"}:{}}}):(0,n.jsx)(o.EY,{style:{fontSize:Y(7),fontFamily:W,color:"#000000",textAlign:"center"},children:g})},"logo"),V=(0,n.jsxs)(o.Ss,{style:{flex:1,paddingHorizontal:Y(8)},children:[(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.EY,{style:{fontSize:Y(12),fontFamily:W,color:"#000000",lineHeight:1.15,maxLines:2,textOverflow:"ellipsis"}
1,children:w.concertName}),(0,n.jsx)(o.EY,{style:{fontSize:Y(8.5),fontFamily:W,color:"#000000",marginTop:Y(2)},children:O}),(0,n.jsx)(o.EY,{style:{fontSize:Y(9),color:"#000000",marginTop:Y(2)},children:w.venueName}),(0,n.jsx)(o.EY,{style:{fontSize:Y(8),color:"#000000",maxLines:1,textOverflow:"ellipsis"},children:null!=(a=w.venueAddress)?a:""})]}),(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",alignItems:"flex-end",marginTop:Y(12)},children:[(0,n.jsxs)(o.Ss,{style:{flex:1},children:[I.length>0?(0,n.jsx)(o.Ss,{style:{flexDirection:"row",marginBottom:Y(3)},children:I.map(e=>{let[t,i]=e;return(0,n.jsxs)(o.Ss,{style:{flex:1},children:[(0,n.jsx)(o.EY,{style:B,children:t}),(0,n.jsx)(o.EY,{style:{fontSize:Y(10),fontFamily:W,color:"#000000"},children:i})]},t)})}):null,(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.EY,{style:B,children:"TICKET TYPE"}),(0,n.jsxs)(o.EY,{style:{fontSize:Y(9),fontFamily:W,color:"#000000",maxLines:1,textOverflow:"ellipsis"},children:[A,R]})]}),(0,n.jsxs)(o.Ss,{style:{marginTop:Y(3)},children:[(0,n.jsx)(o.EY,{style:B,children:"TICKET HOLDER"}),(0,n.jsxs)(o.EY,{style:{fontSize:Y(9),fontFamily:W,color:"#000000",maxLines:1,textOverflow:"ellipsis"},children:[x.firstname," ",x.lastname]})]})]}),(0,n.jsx)(o._V,{src:v,style:{width:Y(34),height:Y(34),marginLeft:Y(6)}})]})]},"center"),K=y({qrcode:v,concertName:w.concertName,dateLabel:O,seatLabel:z?"".concat(null!=(c=z.section)?c:""," ").concat(null!=(d=z.row)?d:"","-").concat(null!=(h=z.seat)?h:"").trim():A,sc:Y});return[(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",backgroundColor:"#ffffff",width:"100%",height:"100%",paddingVertical:D},children:[H,V,K]},x.id)]}};function j(e){var t;let i=null!=(t=e.layout)?t:u;return p[i.layout]({...e,layout:i})}function y(e){let{qrcode:t,concertName:i,dateLabel:l,seatLabel:s,sc:r}=e,a=e=>r(72*e),c="Helvetica-Bold",d=a(1),m=a(.25),h=r(8),x=Math.max(r(24),Math.min(d-m-h,r(60)));return(0,n.jsxs)(o.Ss,{style:{width:d,paddingLeft:m,paddingRight:h,alignItems:"stretch",justifyContent:"center",paddingVertical:r(4)},children:[(0,n.jsx)(o._V,{src:t,style:{width:x,height:x}}),(0,n.jsx)(o.EY,{style:{fontSize:r(6.5),fontFamily:c,color:"#000000",textAlign:"left",marginTop:r(3),maxLines:2,textOverflow:"ellipsis"},children:i}),(0,n.jsx)(o.EY,{style:{fontSize:r(6),color:"#000000",textAlign:"left"},children:l}),(0,n.jsx)(o.EY,{style:{fontSize:r(7),fontFamily:c,color:"#000000",textAlign:"left",marginTop:r(2),maxLines:2,textOverflow:"ellipsis"},children:s})]},"stub")}function S(e){var t,i,l,r;let{organization:a,ticket_sales:c,concerts:d,seats:h,orgLogoUrl:x,page:f,ticketMargins:u}=e,p=a.ticketing_show_prices_on_tickets,y=Object.fromEntries(d.map(e=>[e.concertDatetimeId,e])),S="ticket"===f?4:1,_=396*S,b=144*S;if("letter"===f){let e=c.filter(e=>{var t;return null==(t=y[e.concert_to_datetime_id])?void 0:t.issue_tickets}).map((e,t)=>(0,n.jsx)(o.YW,{size:[612,792],style:{backgroundColor:"white"},children:function(e){let{sale:t,concerts:i,org_name:l,orgLogoUrl:r,seats:a,showPrices:c=!1}=e,d=Object.fromEntries(i.map(e=>[e.concertDatetimeId,e])),h=Object.fromEntries(a.map(e=>[e.id,e])),x=d[t.concert_to_datetime_id],[f,...g]=x.venueAddress.split(", "),u="TICKETSALE!!!".concat(t.id),p=new(m())({value:u,size:600}).toDataURL(),j=t.seat_price_name||t.ticket_section_group_name||t.subscription_price_option_spec_name||"General Admission",y=t.seat_id&&h[t.seat_id],S={height:.75,backgroundColor:"#1a1a1a"},_={height:.5,backgroundColor:"#d1d5db"},b={fontSize:8,color:"#888888",textTransform:"uppercase",letterSpacing:2.5,marginBottom:5},E={fontSize:13,color:"#1a1a1a"};return(0,n.jsxs)(o.Ss,{style:{flex:1,margin:36,borderWidth:.75,borderColor:"#1a1a1a",paddingHorizontal:48,paddingVertical:42,justifyContent:"space-between"},children:[(0,n.jsxs)(o.Ss,{children:[r&&(0,n.jsx)(o.Ss,{style:{alignItems:"center",marginBottom:20},children:(0,n.jsx)(o._V,{src:r,style:{maxWidth:160,maxHeight:50,objectFit:"contain"}})}),!r&&(0,n.jsx)(o.EY,{style:{fontSize:11,color:"#888888",textTransform:"uppercase",letterSpacing:4,textAlign:"center",marginBottom:20},children:l}),(0,n.jsx)(o.Ss,{style:S})]}),(0,n.jsxs)(o.Ss,{style:{alignItems:"center"},children:[(0,n.jsx)(o.EY,{style:{fontSize:28,fontFamily:"Helvetica-Bold",color:"#1a1a1a",textAlign:"center",lineHeight:1.3,marginBottom:10},children:x.concertName}),(0,n.jsx)(o.EY,{style:{fontSize:13,color:"#1a1a1a",textAlign:"center",letterSpacing:.5,marginBottom:6,fontFamily:"Helvetica-Bold"},children:(0,s.Yq)(x.concertDatetime,x.concertTimezone,x.concertTimezone)}),(0,n.jsx)(o.EY,{style:{fontSize:11,color:"#777777",textAlign:"center",marginBottom:2},children:x.venueName}
1),(0,n.jsxs)(o.EY,{style:{fontSize:10,color:"#999999",textAlign:"center",marginBottom:28},children:[f,", ",g.join(", ")]}),(0,n.jsx)(o.Ss,{style:{borderWidth:.75,borderColor:"#1a1a1a",padding:12,marginBottom:8},children:(0,n.jsx)(o._V,{src:p,style:{width:150,height:150}})}),(0,n.jsx)(o.EY,{style:{fontSize:7,color:"#aaaaaa",textTransform:"uppercase",letterSpacing:3},children:"Scan at entry"})]}),(0,n.jsxs)(o.Ss,{children:[(0,n.jsx)(o.Ss,{style:S}),(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",paddingVertical:16},children:[(0,n.jsxs)(o.Ss,{style:{flex:1,paddingRight:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Ticket Holder"}),(0,n.jsxs)(o.EY,{style:E,children:[t.firstname," ",t.lastname]})]}),(0,n.jsx)(o.Ss,{style:{width:.5,backgroundColor:"#d1d5db",marginVertical:2}}),(0,n.jsxs)(o.Ss,{style:{flex:1,paddingHorizontal:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Type"}),(0,n.jsxs)(o.EY,{style:E,children:[j,c&&null!=t.total_paid?" — $".concat(parseFloat(String(t.total_paid)).toFixed(2)):""]})]}),(0,n.jsx)(o.Ss,{style:{width:.5,backgroundColor:"#d1d5db",marginVertical:2}}),(0,n.jsxs)(o.Ss,{style:{flex:1,paddingLeft:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Presented By"}),(0,n.jsx)(o.EY,{style:E,children:l})]})]}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Ss,{style:_}),(0,n.jsxs)(o.Ss,{style:{flexDirection:"row",paddingVertical:14},children:[(0,n.jsxs)(o.Ss,{style:{flex:1,paddingRight:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Section"}),(0,n.jsx)(o.EY,{style:{...E,fontSize:18},children:h[t.seat_id].section})]}),(0,n.jsx)(o.Ss,{style:{width:.5,backgroundColor:"#d1d5db",marginVertical:2}}),(0,n.jsxs)(o.Ss,{style:{flex:1,paddingHorizontal:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Row"}),(0,n.jsx)(o.EY,{style:{...E,fontSize:18},children:h[t.seat_id].row})]}),(0,n.jsx)(o.Ss,{style:{width:.5,backgroundColor:"#d1d5db",marginVertical:2}}),(0,n.jsxs)(o.Ss,{style:{flex:1,paddingLeft:12},children:[(0,n.jsx)(o.EY,{style:b,children:"Seat"}),(0,n.jsx)(o.EY,{style:{...E,fontSize:18},children:h[t.seat_id].seat})]})]}),h[t.seat_id].door?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Ss,{style:_}),(0,n.jsxs)(o.Ss,{style:{paddingVertical:14},children:[(0,n.jsx)(o.EY,{style:b,children:"Door"}),(0,n.jsx)(o.EY,{style:E,children:h[t.seat_id].door})]})]}):null]}),(0,n.jsx)(o.Ss,{style:S})]})]},t.id)}({sale:e,concerts:d,org_name:a.name,orgLogoUrl:x,seats:h,showPrices:p})},"letter-page-".concat(t)));return(0,n.jsx)(o.yo,{children:e})}let E=[_,b],w=(null!=(t=null==u?void 0:u.top)?t:0)*72*S,z=(null!=(i=null==u?void 0:u.right)?i:0)*72*S,Y=(null!=(l=null==u?void 0:u.bottom)?l:0)*72*S,k=(null!=(r=null==u?void 0:u.left)?r:0)*72*S,T=_-k-z,v=b-w-Y,C=T>0&&v>0?Math.min(T/396,v/144):S,F=g(a),L=c.flatMap(e=>y[e.concert_to_datetime_id].issue_tickets?j({sale:e,org_name:a.name,concerts:d,seats:h,orgLogoUrl:x,scale:C,showPrices:p,layout:F}):[]).map((e,t)=>(0,n.jsx)(o.YW,{size:E,style:{backgroundColor:"white"},children:(0,n.jsx)(o.Ss,{style:{width:_,height:b,paddingTop:w,paddingRight:z,paddingBottom:Y,paddingLeft:k},children:e})},"ticket-page-".concat(t)));return(0,n.jsx)(o.yo,{children:L})}},50477:()=>{},78328:(e,t,i)=>{"use strict";function n(e){return new Promise((t,i)=>{let n=new FileReader;n.onloadend=()=>{let e=n.result;t(e.split(",")[1]||e)},n.onerror=i,n.readAsDataURL(e)})}function l(){return!!window.ReactNativeWebView}async function s(e,t,i){if(e||t){if(e&&l())try{let t=await n(e);window.ReactNativeWebView.postMessage(JSON.stringify({type:"downloadFile",data:t,filename:i,mimeType:"application/pdf"}));return}catch(e){}if(t){let e=document.createElement("a");e.href=t,e.download=i,e.style.display="none",document.body.appendChild(e),e.click(),setTimeout(()=>document.body.removeChild(e),1e3)}}}async function o(e,t,i){if(t||e){if(e&&l())try{let t=await n(e);window.ReactNativeWebView.postMessage(JSON.stringify({type:"printFile",data:t,filename:i,mimeType:"application/pdf"}));return}catch(n){s(e,t,i);return}if(t)try{let e=window.open(t,"_blank");if(e){e.addEventListener("load",()=>{e.focus(),e.print()}),setTimeout(()=>{e.focus(),e.print()},1e3);return}}catch(e){}s(e,t,i)}}i.d(t,{Ru:()=>s,g6:()=>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.