1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6260],{25408:e=>{e.exports={newtext:"index_newtext___H2F8",features:"index_features___1jbH",smallbanner:"index_smallbanner__6mvh8",overlay:"index_overlay__pWi0R",content:"index_content__bfP4T",searchBar:"index_searchBar__n7jfp",error:"index_error__DFhhX"}},26704:e=>{e.exports={modalOverlay:"cargo-status-modal_modalOverlay__7WLwy",modalContent:"cargo-status-modal_modalContent__4DqZo",closeButton:"cargo-status-modal_closeButton__zh4CR",title:"cargo-status-modal_title__GRjsS",orderInfo:"cargo-status-modal_orderInfo__tMcS1",statusSteps:"cargo-status-modal_statusSteps__ohMFJ",step:"cargo-status-modal_step__J9FAe",completed:"cargo-status-modal_completed__7d5KQ",stepIcon:"cargo-status-modal_stepIcon__lvuPC",stepInfo:"cargo-status-modal_stepInfo__UHNC_",currentStatus:"cargo-status-modal_currentStatus__U_qzL",detailsLink:"cargo-status-modal_detailsLink__a1auq",link:"cargo-status-modal_link__dxeEX",noData:"cargo-status-modal_noData__BInoW"}},33349:(e,s,t)=>{"use strict";t.d(s,{A:()=>_});var a=t(37876);t(87936);var r=t(14232),i=t(57713),n=t(37399),o=t.n(n);t(54587),t(15039);var l=t(43011),c=t.n(l),d=t(85664);t(89099);
1let _=({t:e,disableButtons:s,carouselItems:t,disableDotsControls:n=!1,defaultResponsive:l,autoPlay:_=!0,animationDuration:u=2e3,showArrows:m=!1,arrowColor:h="#000",arrowSize:p="24px",arrowPosition:g="center"})=>{let x=(0,d.vc)(i.Q),v=t?.map((e,s)=>{let t="object"==typeof e&&null!==e,r=t?e.url:e,i=t?e.link:null,n=t?e.title:null,o=(0,a.jsx)("img",{src:r,alt:`Slide ${s}`,style:{width:"100%",height:"auto",display:"block",borderRadius:"8px"}});return(0,a.jsxs)("div",{style:{position:"relative",width:"100%"},children:[i?(0,a.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:o}):o,n&&(0,a.jsx)("div",{style:{position:"absolute",bottom:15,left:15,color:"#fff",padding:"6px 12px",borderRadius:"6px",fontSize:"20px",fontWeight:"700"},children:n})]},s)}),[j,b]=(0,r.useState)(null),[f,y]=(0,r.useState)(_),[N,I]=(0,r.useState)(null);(0,r.useEffect)(()=>{y(_)},[_]);let w=e=>{j&&(N&&clearTimeout(N),y(!1),"prev"===e?j.slidePrev():j.slideNext(),_&&I(setTimeout(()=>{y(!0)},3e3)))};return(0,a.jsx)("div",{className:c().home_services_main,children:(0,a.jsx)("div",{className:"content-container",children:(0,a.jsxs)("div",{className:c().home_services_body,style:{position:"relative"},children:[(0,a.jsx)(o(),{ref:b,responsive:{0:{items:l||1},600:{items:l||2},1024:{items:l||4}}
1,infinite:!0,disableDotsControls:n,disableButtonsControls:s,autoPlay:f,animationDuration:u,items:v,renderDotsItem:({isActive:e})=>(0,a.jsx)("div",{style:{width:10,height:10,margin:"0 5px",borderRadius:"50%",backgroundColor:e?x?.color_codes?.secondary_color||"#000":"#ccc"}})}),(0,a.jsx)(()=>m?(0,a.jsx)("div",{style:(()=>{let e={position:"absolute",left:"-60px",zIndex:10,cursor:"pointer",borderRadius:"50%",width:"50px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"};switch(g){case"top":return{...e,top:"10px"};case"bottom":return{...e,bottom:"10px"};default:return{...e,top:"50%",transform:"translateY(-50%)"}}})(),onClick:()=>w("prev"),children:(0,a.jsx)("svg",{width:p,height:p,viewBox:"0 0 20 20",fill:h,children:(0,a.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}):null,{}),(0,a.jsx)(()=>m?(0,a.jsx)("div",{style:(()=>{let e={position:"absolute",right:"-60px",zIndex:10,cursor:"pointer",borderRadius:"50%",width:"50px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"};switch(g){case"top":return{...e,top:"10px"};case"bottom":return{...e,bottom:"10px"};default:return{...e,top:"50%",transform:"translateY(-50%)"}}})(),onClick:()=>w("next"),children:(0,a.jsx)("svg",{width:p,height:p,viewBox:"0 0 20 20",fill:h,children:(0,a.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})}):null,{})]})})})}},38699:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cargo",function(){return t(85080)}])},43011:e=>{e.exports={home_services_main:"home-services_home_services_main__fPwuA",home_services_head:"home-services_home_services_head__cE00F",home_services_text:"home-services_home_services_text__pXQCA",home_services_body:"home-services_home_services_body__FWjsm",home_destination_item:"home-services_home_destination_item__dLj14",home_destination_img:"home-services_home_destination_img__TdaQu",icon:"home-services_icon__0UiYw",icon_hover:"home-services_icon_hover__v4QFL",title:"home-services_title__ubdzB",text_hover:"home-services_text_hover__Uwih_",title_hover:"home-services_title_hover__OyBYX",on_hover:"home-services_on_hover__G6OyZ"}},85080:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>j,default:()=>b});var a=t(37876),r=t(57713),i=t(14232),n=t(26704),o=t.n(n);let l=({isOpen:e,onClose:s,orderNumber:t,searchResult:r})=>{if(!e)return null;let i=r?.details?.[0]?.tracking||[],n=e=>{if(!e)return new Date(0);try{let[s,t,a]=e.split(" "),[r,i,n]=s.split("-"),[o,l]=t.split(":");return o=parseInt(o,10),"PM"===a&&12!==o&&(o+=12),"AM"===a&&12===o&&(o=0),new Date(n,i-1,r,o,l)}catch(e){return new Date(0)}},l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],c=[...i].sort((e,s)=>n(e.dateTracking)-n(s.dateTracking)),d=c[c.length-1]||{},_=["IN_OFFICE","IN_ROUTE_BUS","RECEIVED_OFFICE","DELIVERED"].indexOf(d?.statusTracking),u=e=>{let s=c.filter(s=>s.statusTracking===e);return s[s.length-1]||{}},m=[{baseIcon:"/images/allinbus/cargo/pack",title:"En preparaci\xf3n",date:u("IN_OFFICE")?.dateTracking||""},{baseIcon:"/images/allinbus/cargo/ship",title:"En ruta",date:u("IN_ROUTE_BUS")?.dateTracking||""},{baseIcon:"/images/allinbus/cargo/received",title:"Recibido",date:u("RECEIVED_OFFICE")?.dateTracking||""},{baseIcon:"/images/allinbus/cargo/delivered",title:"Entregado",date:u("DELIVERED")?.dateTracking||""}],h=c.length>0;return(0,a.jsx)("div",{className:o().modalOverlay,onClick:s,children:(0,a.jsxs)("div",{className:o().modalContent,onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{className:o().closeButton,onClick:s,children:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)("h2",{className:o().title,children:"Tu encomienda."}),(0,a.jsx)("div",{className:o().orderInfo,children:(0,a.jsxs)("p",{children:["Informaci\xf3n de tu env\xedo: "," ",(0,a.jsx)("span",{className:"bold-text",children:t})]})}),h?(0,a.jsx)("div",{className:o().statusSteps,children:m.map((e,s)=>{let t=s<_,r=s===_;return(0,a.jsxs)("div",{className:`${o().step} ${t?o().completed:""}`,children:[(0,a.jsx)("div",{className:o().stepInfo,children:(0,a.jsx)("h3",{className:r?o().currentStatus:"",children:e.title})}),(0,a.jsx)("div",{className:o().stepIcon,children:(0,a.jsx)("img",{src:s<_?`${e.baseIcon}2.svg`:s===_?`${e.baseIcon}3.svg`:`${e.baseIcon}1.svg`,alt:e.title})}),(0,a.jsx)("div",{className:o().stepInfo,children:(0,a.jsx)("h3",{className:r?o().currentStatus:"",children:(e=>{if(!e)return"";let s=n(e);if(!s||0===s.getTime())return"";let t=s.getDate(),a=l[s.getMonth()],r=String(s.getHours()).padStart(2,"0"),i=String(s.getMinutes()).padStart(2,"0");return`${t} de ${a} - ${r}:${i}`})(e.date)})})]},s)})}
1):(0,a.jsx)("div",{className:o().noData,children:(0,a.jsx)("p",{children:"No hay informaci\xf3n de seguimiento disponible."})}),(0,a.jsx)("div",{className:o().detailsLink,children:"Detalles de envio"})]})})};var c=t(78474),d=t(56601),_=t(34231),u=t(31288),m=t(25408),h=t.n(m),p=t(85664),g=t(24755),x=t(49830),v=t(33349),j=!0;let b=()=>{let{t:e}=(0,g.Bd)("common"),s=(0,p.vc)(r.Q),t=(0,x.$f)(),[n,o]=(0,i.useState)(""),[m,j]=(0,i.useState)(null),[b,f]=(0,i.useState)(!1),[y,N]=(0,i.useState)(!1),[I,w]=(0,i.useState)("");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(_.A,{t:e,navbarType:1,headerFixed:!0,children:[(0,a.jsx)(d.A,{type:"cargo"}),(0,a.jsx)(u.A,{title:"Conoce nuestros envios"}),(0,a.jsx)(c.A,{}),s?.operator_name==="allinbus"&&(0,a.jsxs)("div",{className:"content-container mb-70",children:[(0,a.jsxs)("div",{className:h().newtext,children:[(0,a.jsx)("p",{children:"AllinCargo es el servicio de carga de Allinbus, dise\xf1ado para ofrecer env\xedos r\xe1pidos y seguros a los diferentes destinos donde opera la empresa, brindando una soluci\xf3n confiable para el transporte de encomiendas y paquetes. Conectamos tus env\xedos a todo el Per\xfa, tu encomienda llega segura y a tiempo a los principales destinos del norte y centro del pa\xeds. Encuentra nuestras agencias y elige la m\xe1s cercana para realizar tus env\xedos."}),(0,a.jsxs)("div",{className:h().features,children:[(0,a.jsxs)("div",{children:["Env\xeda tu encomienda ",(0,a.jsx)("span",{children:"con los mejores"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"/images/allinbus/cargo/deliver.svg",alt:"deliver"}),(0,a.jsxs)("span",{children:["Servicios puerta",(0,a.jsx)("br",{})," a puerta."]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"/images/allinbus/cargo/truck.svg",alt:"truck"}),(0,a.jsxs)("span",{children:["Transporte de carga",(0,a.jsx)("br",{})," y encomiendas."]})]})]})]}),(0,a.jsxs)("div",{className:h().smallbanner,children:[(0,a.jsx)("img",{src:"/images/allinbus/cargo/cargo.webp",alt:"cargo"}),(0,a.jsx)("div",{className:h().overlay,children:(0,a.jsxs)("div",{className:h().content,children:[(0,a.jsxs)("p",{children:["Conoce el estado ",(0,a.jsx)("br",{}),"de ",(0,a.jsx)("span",{children:"tu encomienda."})]}),(0,a.jsxs)("div",{className:h().searchBar,children:[(0,a.jsx)("input",{type:"text",placeholder:"Ingresa tu n\xb0 de seguimiento",value:n,onChange:e=>{o(e.target.value),w("")}}),I&&(0,a.jsx)("p",{className:h().error,children:I}),(0,a.jsx)("button",{onClick:()=>{n.trim()&&(f(!0),t({data:{alias_code:n,travel_id:String(s?.operator_id)},callback:e=>{e?.success===!0&&e?.data?.data?.length>0?(j(e?.data?.data?.[0]),N(!0)):(console.error("API returned non-success:",e),w("N\xfamero de seguimiento inv\xe1lido")),f(!1)},error:e=>{console.error("Error searching cargo:",e),f(!1)},finally:()=>{f(!1)}}))},disabled:b,children:b?"Buscando...":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/images/allinbus/cargo/search.png",alt:"search",style:{width:16,height:"auto",marginRight:10}}),"Buscar"]})})]})]})})]}),(0,a.jsx)(u.A,{title:"Galeria"}),(0,a.jsx)("div",{children:(0,a.jsx)(v.A,{disableButtons:!0,disableDotsControl
1s:!0,carouselItems:["/images/allinbus/cargo/gallery1.webp","/images/allinbus/cargo/gallery2.webp","/images/allinbus/cargo/gallery3.webp","/images/allinbus/cargo/gallery4.webp"],showArrows:!1,autoPlay:!1})})]})]}),(0,a.jsx)(l,{isOpen:y,onClose:()=>{N(!1)},orderNumber:n,searchResult:m})]})}}},e=>{e.O(0,[7950,2748,4938,7653,5183,8474,636,6593,8792],()=>e(e.s=38699)),_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.