1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5746],{15746:(e,r,t)=>{t.r(r),t.d(r,{LocalShipment:()=>y});var i=t(94750),l=t(97070),d=t(71370),a=t(8372),s=t(46830),n=t(93942),o=t(79996),c=t(44235),p=t(17256),g=t(28432),m=t(42307),u=t(3030),h=t(18976),x=t(57184);let y=({shipment:e,slotTo:r,deliveryTimeLabel:t,displayEstimatedTimeDelivery:y,isMultipleShipment:f,language:b,region:_})=>{let S=(0,g.Ub)(g.Gx),[w,C]=(0,l.useState)(!1),{ts:N}=(0,h.B)((0,x.sz)(b,_),"order-tracker"),D=e.Order_Status.toLowerCase().trim(),L=[c.wy.ACCEPTED,c.wy.DISPATCHED,c.wy.SORTING_FACILITY,c.wy.INTRANSIT,c.wy.GUEST_UNREACHABLE,c.wy.HAL,c.wy.PARTIALLY_FULFILLED].includes(D),k=e?.Delivery_Method==="HOME_DELIVERY",E=[c.wy.CANCELED,c.wy.REFUNDED,c.wy.RTS].includes(D),I=[{id:"firstStep",title:"Order placed",description:"Your order is placed successfully",defaultImg:"step-1gif.gif"},{id:"secondStep",title:"Order Prepared",description:"Our team has prepared the order",defaultImg:"step-2grey.png"},{id:"thirdStep",title:"Handed to the carrier",description:"Delivered to the shipping company",defaultImg:"additional-stepgrey.png",children:(0,i.jsx)(i.Fragment,{children:e.Tracking_URL&&L&&(0,i.jsx)("a",{target:"_blank",className:"mt-1 text-custom-sm font-bold text-blue-secondary",href:e.Tracking_URL,children:N("Track order by SMSA")})})},{id:"forthStep",title:"Out for delivery",description:"Your order is on its way to you",defaultImg:"step-3grey.png"},{id:"fifthStep",title:"Order delivered",description:"Your order has been delivered",defaultImg:"step-4grey.png"}];return(0,i.jsxs)("div",{className:(0,m.cn)(f?"border-b lg:border-none":""),children:[(0,i.jsxs)("h3",{className:"mb-4 flex cursor-pointer items-center justify-center gap-1 p-2 text-center text-xl font-bold text-[#1e90ff] lg:cursor-default lg:text-2xl",onClick:()=>{f&&S&&C(e=>!e)},children:[N("Local Delivery"),(0,i.jsxs)("span",{className:"hidden font-normal text-[#36366B] md:block",children:["(",N(t||"Within 48 hours"),")"]}),f&&(0,i.jsx)(u.D3,{className:(0,m.cn)("h-6 w-8 text-blue-secondary lg:hidden",w?"rotate-180":"rotate-0")})]}),(0,i.jsxs)("div",{className:(0,m.cn)("bg-white px-2 py-6",w&&f?"block":"hidden lg:block",f?"":"block"),children:[(0,i.jsxs)(n.a,{orderNumber:e.Order_Number,orderDate:e.Order_Date,isOrderCanceled:E,delivery_method:k?"Local Shipping":"Other",language:b,region:_,children:[y&&(0,i.jsx)(a.C,{slotFrom:e.Delivery_Slot_From,slotTo:r||e.Delivery_Slot_To,language:b,region:_}),(0,i.jsx)(d.x,{shippingCarrier:e.Shipping_Carrier,airwayBillNumber:e.Airway_bill_number,language:b,region:_})]}),!E&&(0,i.jsx)("ul",{className:"mx-auto flex max-w-[400px] flex-col justify-between md:mx-0 md:max-w-none md:flex-row",children:I.map((e,r)=>{let t=(0,p.fp)({dataSrcFunc:p.rL,defaultImg:e.defaultImg,orderStatus:D,step:e.id});return(0,i.jsx)(o.r,{isChecked:0===r||t.isChecked,imgSrc:t.imgSrc,title:e.title,description:e.description,isCompleted:t.isCompleted,language:b,region:_,children:e.children},r)})}),(0,i.jsx)(s.N,{orderDate:e.Order_Date,delivery_method:k?"Local Shipping":"Other",language:b,region:_})]})]})}}}]);
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.