1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="8abb26fc-7ed1-4d1d-943c-147fc0f7919d",e._sentryDebugIdIdentifier="sentry-dbid-8abb26fc-7ed1-4d1d-943c-147fc0f7919d")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4884],{12255:(e,l,t)=>{t.d(l,{A:()=>i});var s=t(80263),a=t(96342),d=t(39039),n=t.n(d);let i=(0,t(53239).memo)(e=>{let{className:l,icon:t,size:d,disabled:i,isActive:r}=e;return(0,s.jsx)(n(),{className:(0,a.A)("duration-500",{"opacity-30 grayscale":i,"rotate-0":r,"rotate-180":!r,["".concat(l)]:!!l}),src:t||"/icons/icon-chevron-up.svg",width:d||14,height:d||14,alt:r?"close":"open"})})},74884:(e,l,t)=>{t.r(l),t.d(l,{default:()=>v});var s=t(80263),a=t(22267),d=t(95961),n=t(29519),i=t(22110),r=t(96297),o=t(96342),c=t(53239),u=t(210),m=t(12255);let x=(0,c.memo)(e=>{let{className:l,departure:t,arrival:a,price:d}=e,{t:n}=(0,u.Bd)();return(0,s.jsxs)("div",{className:l,children:[(0,s.jsxs)("div",{className:"mb-2 flex flex-row justify-between text-neutral-900",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:n("Departure")}),(0,s.jsx)("span",{className:"text-sm text-neutral-500",children:t?t.slice(0,-3):"N/A"})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-row justify-between",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:n("Arrival")}),(0,s.jsx)("span",{className:"text-sm text-neutral-500",children:a?a.slice(0,-3):"N/A"})]}),(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:n("Price")}),(0,s.jsx)("span",{className:"text-sm text-neutral-500",children:d?"".concat(d," THB"):"N/A"})]})]})}),h=(0,c.memo)(e=>{let{data:l,scheduleList:t,isThai:r,t:c}=e,u=[{title:c("Destination"),dataIndex:["to","engName"],width:250,key:"engName",render:(e,l)=>{var t,a;return(0,s.jsxs)("span",{className:"text-sm text-neutral-900",children:[r?null===(t=l.to)||void 0===t?void 0:t.thName:(0,d.l2)(null===(a=l.to)||void 0===a?void 0:a.engName)," "]})}},{title:c("Dep."),dataIndex:"dep",key:"dep",render:(e,l)=>{var t,a;return(0,s.jsx)("span",{className:"text-sm text-neutral-900",children:(null==l?void 0:null===(t=l.schedule)||void 0===t?void 0:t.departureTime)?null==l?void 0:null===(a=l.schedule)||void 0===a?void 0:a.departureTime.slice(0,-3):"N/A"})}},{title:c("Arr."),dataIndex:"arr",key:"arr",render:(e,l)=>{var t,a;return(0,s.jsx)("span",{className:"text-sm text-neutral-900",children:(null==l?void 0:null===(t=l.schedule)||void 0===t?void 0:t.arrivalTime)?null==l?void 0:null===(a=l.schedule)||void 0===a?void 0:a.arrivalTime.slice(0,-3):"N/A"})}},{title:c("Price"),dataIndex:"price",key:"price",render:(e,l)=>{var t,a;return(0,s.jsx)("span",{className:"text-sm text-neutral-900",children:(null==l?void 0:null===(t=l.schedule)||void 0===t?void 0:t.adultPrice)?"".concat(null==l?void 0:null===(a=l.schedule)||void 0===a?void 0:a.adultPrice.toLocaleString()," THB"):"N/A"})}}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X8,{children:(0,s.jsx)(n.A,{rowKey:"id",dataSource:t,columns:u,pagination:!1})}),(0,s.jsx)(a.Jl,{children:l.length>0&&l.map((e,t)=>{var a,n,u;let m=l.length-1;return(0,s.jsxs)("div",{className:"flex flex-col text-neutral-900",children:[(0,s.jsxs)("div",{className:"mb-2 flex flex-row justify-between",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:c("Destination")}),(0,s.jsx)("span",{className:"text-sm text-neutral-500",children:null!==(u=r?null===(a=e.to)||void 0===a?void 0:a.thName:(0,d.l2)(null===(n=e.to)||void 0===n?void 0:n.engName))&&void 0!==u?u:"N/A"})]}),e.scheduleList.length>0?e.scheduleList.map((e,l)=>(0,s.jsx)(x,{className:(0,o.A)({"mt-4":l>0}),departure:e.departureTime,arrival:e.arrivalTime,price:e.adultPrice},e.id)):(0,s.jsx)(x,{}),(0,s.jsx)(i.A,{className:(0,o.A)({"mx-0 my-5":t!==m},{"mx-0 mb-0 mt-5":t===m})})]},e.id)})})]})});
1x.displayName="Timetable",h.displayName="CardTableContent";let v=(0,c.memo)(e=>{var l,t,n,i,o;let{data:x,sequence:v}=e,[f,p]=(0,c.useState)([]),{t:N,i18n:j}=(0,u.Bd)(),b="th-TH"===j.language;(0,c.useEffect)(()=>{if(x.length>0){let e=[];for(let l of x)if(l.scheduleList.length>0)for(let t of l.scheduleList)e.push({...l,id:t.subRouteScheduleId,schedule:t});else e.push({...l});e.sort((e,l)=>{var t,s;let a=(null===(t=e.schedule)||void 0===t?void 0:t.departureTime)||"",d=(null===(s=l.schedule)||void 0===s?void 0:s.departureTime)||"";return a.localeCompare(d)}),p(e)}},[x]);let g=[{key:v,label:(0,s.jsxs)("span",{className:"text-lg font-semibold text-neutral-900",children:[(0,s.jsx)(a.X8,{children:(0,s.jsxs)("span",{children:[N("Departure"),": "]})}),null!==(o=b?null===(t=x[0])||void 0===t?void 0:null===(l=t.from)||void 0===l?void 0:l.thName:(0,d.l2)(null===(i=x[0])||void 0===i?void 0:null===(n=i.from)||void 0===n?void 0:n.engName))&&void 0!==o?o:"N/A"," "]}),children:(0,s.jsx)(h,{data:x,scheduleList:f,isThai:b,t:N})}];return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.A,{accordion:!0,size:"large",className:"border-1 border-neutral-200 bg-white",defaultActiveKey:"1",expandIconPosition:"end",expandIcon:e=>{let{isActive:l}=e;return(0,s.jsx)(m.A,{isActive:!!l})},items:g})})})}}]);
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.