1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[935],{795:(e,t,n)=>{"use strict";n.d(t,{Zq:()=>a,qW:()=>i});let s={},l=e=>200===e.status?e.json():void 0,i=e=>e.blob(),a=async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,a=await fetch(e,{...n,headers:{...s,...null!=(t=n.headers)?t:{}}});return a.ok?i(a):Promise.reject(a)}},1192:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tickets/[ticketId]",function(){return n(20265)}])},20265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>y,default:()=>w,getTicketType:()=>j});var s=n(37876),l=n(14232),i=n(89099),a=n(77328),o=n.n(a),d=n(70713),r=n(46041),c=n(795),u=n(58604),h=n(27127),x=n(25925),m=n(72541),f=n(28419),p=n.n(f),v=n(61675),b=n(35831),g=n(65132),y=!0;let j=(e,t)=>p()(e,"MONTHLY")?(0,v.iP)((0,v.Fd)(t)):e,w=()=>{var e,t,n,a;let f=(0,g.uM)(),p=null!=(a=null==f?void 0:f.companyName)?a:"Coach USA",{query:{ticketId:v}}=(0,i.useRouter)(),[y,w]=(0,l.useState)(),[N,k]=(0,l.useState)(!1),{t:_}=(0,b.Bd)(["common","home","header","footer","billing","profile"]),E=(0,l.useRef)();return(0,l.useEffect)(()=>(document.addEventListener("gesturestart",function(e){e.preventDefault(),document.body.style.zoom=1}),document.addEventListener("gesturechange",function(e){e.preventDefault(),document.body.style.zoom=1}),document.addEventListener("gestureend",function(e){e.preventDefault(),document.body.style.zoom=1}),(0,c.Zq)("".concat(d.uv,"ticket/").concat(v)).then(e=>{w(e)}),()=>{}),[v]),(0,l.useEffect)(()=>((async e=>{if(y){var t;let n=null==y||null==(t=y.barcode)?void 0:t.value,s=null==y?void 0:y.status,l=E;if(l){k(!1);let t=l.getContext("2d");null==t||t.clearRect(0,0,l.width,l.height),r.Ay.toCanvas(l,{bcid:e,text:n,scale:4,height:30})}else"rejected"===s&&k(!0)}})("azteccode"),()=>{if(E){let e=E.getContext("2d");null==e||e.clearRect(0,0,E.width,E.height)}}),[y]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:"Ticket Page"}),(0,s.jsx)("meta",{name:"title",property:"og:title",content:"View Your Bus Ticket | ".concat(p)},"title"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"})]}),(0,s.jsxs)("div",{className:"container mx-auto pt-0 lg:py-11 md:px-4 font-lato",children:[(0,s.jsxs)(u.A,{styles:"font-bold text-base items-center space-x-5 text-base text-lochmara flex justify-end px-3 py-2 cursor-pointer",onClick:()=>{history.back()},children:[(0,s.jsx)(h.A,{name:"ArrowLeft",height:16,width:16,styles:"pt-0.5 mr-1 text-white"})," Go Back"]}),(0,s.jsx)(x.A,{styles:"flex-col-reverse lg:flex-col",children:N?(0,s.jsx)("h4",{className:"font-normal text-xl text-daintree my-2 md:mt-6 md:mb-4","data-testid":"barcode-failure-text",children:"Ticket Barcode has failed to load."}):(0,s.jsx)("canvas",{ref:e=>E=e,className:"w-full h-full p-2","data-testid":"ticket-canvas"})}),(null==y||null==(e=y.origin)?void 0:e.fareZone)&&(null==y||null==(t=y.destination)?void 0:t.fareZone)?(0,s.jsx)("div",{className:"bg-[#1981c6] m-2 lg:bg-transparent px-4 lg:pl-14 lg:pr-12 space-y-11 lg:space-y-7 rounded-xl lg:rou
1nded-none pb-4 lg:pb-0 pt-2 lg:pt-0 order-2 lg:order-none",children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"border-b border-white py-2",children:[(0,s.jsx)("div",{className:"font-normal text-base text-white",children:_("origin")}),(0,s.jsx)(m.A,{styles:"justify-between items-center",children:(0,s.jsxs)("div",{className:"text-white text-2xl font-bold",children:[y.origin.fareZone.id," - ",y.origin.fareZone.name]})})]}),(0,s.jsxs)("div",{className:"border-b border-white py-2",children:[(0,s.jsx)("div",{className:"font-normal text-base text-white",children:_("destination")}),(0,s.jsx)(m.A,{styles:"justify-between items-center",children:(0,s.jsxs)("div",{className:"text-white text-2xl font-bold",children:[y.destination.fareZone.id," - ",y.destination.fareZone.name]})})]}),(0,s.jsxs)("div",{className:"font-bold text-xl text-white",children:[(0,s.jsx)("span",{className:"uppercase",children:j(y.type,null==(n=y.validity)?void 0:n.to)})," ",y.passenger_type]})]})}):(0,s.jsx)("div",{})]})]})}}},e=>{e.O(0,[7457,3316,636,6593,8792],()=>e(e.s=1192)),_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.