PageSourceSearch

https://www.pizzahut.com.sv/assets/OrderTrackingStepper-gdeJUPr_.js

js pizzahut.com.sv collected 2026-10-03 00:13:40 UTC 2,296 bytes, 1 lines download raw bytes

1import{c as y,j as e,i as R,B as P,T as b,o as v,f8 as o,es as j,r as m,ct as i}from"./index-Dt5EksZL.js";var c={},N=R;Object.defineProperty(c,"__esModule",{value:!0});var E=c.default=void 0,T=N(y()),D=e;E=c.default=(0,T.default)((0,D.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function l({isActive:s,isPassed:r,children:n}){const a=t=>r||s?t.palette.DarkRedPH.main:t.palette.BlackPH40.main;return e.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",color:t=>a(t)},children:[s&&e.jsx(E,{}),e.jsx(b,{sx:{fontWeight:s?600:400},children:n})]})}const _=j("span")({position:"relative",overflow:"hidden",display:"block",zIndex:"0",height:"16px",borderRadius:"8px",margin:"8px 0 16px"}),d=j("span")({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform .4s linear",transformOrigin:"left",borderRadius:"8px"});function I({trackingStep:s}){var n,a,t,u,p,x,f,g;const r=v();return e.jsxs(_,{className:"MultiLinearProgressBar",role:"progressbar",style:{backgroundColor:(a=(n=r==null?void 0:r.palette)==null?void 0:n.BlackPH10)==null?void 0:a.main},children:[e.jsx(d,{className:"MultiLinearProgress",style:{transform:"translateX(0.0000%)",backgroundColor:(u=(t=r==null?void 0:r.palette)==null?void 0:t.RedPH20)==null?void 0:u.main,opacity:s>=o.DELIVERED?1:0}}),e.jsx(d,{className:"MultiLinearProgress",style:{transform:"translateX(-33.3334%)",backgroundColor:(x=(p=r==null?void 0:r.palette)==null?void 0:p.RedPH30)==null?void 0:x.main,opacity:s>=o.ON_THE_WAY?1:0}}),e.jsx(d,{className:"MultiLinearProgress",style:{transform:"translateX(-66.6667%)",backgroundColor:(g=(f=r==null?void 0:r.palette)==null?void 0:f.RedPH)==null?void 0:g.main,opacity:s>=o.PREPARING?1:0}})]})}function C({isDeliveryShop:s,orderNumber:r,statusTracker:n}){const[a,t]=m.useState(-1);return m.useEffect(()=>{t(i(n))},[n]),s?e.jsx(e.Fragment,{}):e.jsxs(e.Fragment,{children:[e.jsxs(P,{sx:{display:"flex",alignItems:"end",justifyContent:"space-evenly"},children:[e.jsx(l,{isPassed:i("PEN")<a,isActive:a===o.PREPARING,children:"Preparando"}),e.jsx(l,{isPassed:i("DES")<a,isActive:a===o.ON_THE_WAY,children:"En Camino"}),e.jsx(l,{isPassed:i("ENT")<a,isActive:a===o.DELIVERED,children:"Entregado"})]}),e.jsx(I,{trackingStep:a})]})}export{C as default};

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.