PageSourceSearch

https://www.setel.com/PETRONAS-Shop/_next/static/chunks/6193.ecb4d0c29567325b.js

js setel.com collected 2026-10-02 04:03:46 UTC 4,452 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6193],{38782:e=>{e.exports={triangle:"order-tracking_triangle__jPwjA"}},56193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OrderTopIcon:()=>R});var l=n(28888),r=n(37876),s=n(15039),a=n.n(s),i=n(65212),o=n(14232),c=n(77185),d=n(20562),u=n(48230),x=n.n(u),m=n(89099),f=n(66196),p=n(20339),h=n(28440),g=n(635),y=n(34064),j=n(87710),v=n(52289),N=n(38782),b=n.n(N);function k(){let e=(0,l._)(["order.track-orders.view-all"]);return k=function(){return e},e}function w(){let e=(0,l._)(["order.track-orders.empty"]);return w=function(){return e},e}function C(){let e=(0,l._)(["order.track-orders.empty-message"]);return C=function(){return e},e}function _(e){let{isOpen:t,onClose:n}=e;(0,h.Ls)(n);let{merchant:l}=o.useContext(p.BR),[s,i]=o.useState();o.useEffect(()=>{(async function(){var e;let n=l.tenantId;if(!n||!t)return;let r=await (0,y.Gb)(n,{page:1,perPage:3});i(null!=(e=null==r?void 0:r.items)?e:[])})().catch(e=>{console.log(e)})},[t,l]);let c=o.useMemo(()=>s&&0===s.length,[s]);return t?(0,r.jsxs)("div",{role:"dialog",children:[(0,r.jsx)("div",{role:"presentation",className:b().triangle}),(0,r.jsxs)("div",{className:a()("absolute top-12 rounded-lg bg-white z-10 overscroll-contain"),style:{width:304,minHeight:300,right:-102,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04), 0 0 20px 0 rgba(0, 0, 0, 0.1)"},onClick:S,children:[c&&(0,r.jsx)(P,{}),s&&s.length>0&&(0,r.jsx)(B,{onClose:n,orders:s,className:"w-full relative py-2"})]})]}):null}function S(e){e.stopPropagation()}function B(e){let{onClose:t,orders:n,className:l,...s}=e,{t:o}=(0,i.Bd)(),d=(0,m.useRouter)();return(0,r.jsxs)("div",{className:a()(l,"flex flex-col"),...s,children:[(0,r.jsx)("div",{className:"px-5",children:n.map(e=>(0,r.jsx)(M,{order:e,onClose:t},e._id))}),(0,r.jsx)(c.Hr,{className:"w-full my-2 border-gray-athens"}),(0,r.jsx)("div",{className:"px-5",style:{paddingTop:12,paddingBottom:12},children:(0,r.jsx)(x(),{passHref:!0,href:(0,f.AsH)(d),legacyBehavior:!0,children:(0,r.jsx)(c.vxq,{className:"w-full lg:w-auto border-primary text-primary my-4 lg:my-0 py-3 px-6 rounded-sm uppercase font-bold text-sm tracking-wider",variant:"outline",onClick:t,children:o(k())})})})]})}function M(e){let{order:t,onClose:n}=e,l=(0,m.useRouter)();return(0,r.jsx)(x(),{passHref:!0,href:(0,f.APU)(l,t._id),onClick:n,children:(0,r.jsx)(H,{order:t})})}function H(e){var t,n;let{order:l}=e;return(0,r.jsxs)("div",{className:"flex flex-col",style:{paddingTop:10,paddingBottom:10},children:[(0,r.jsxs)("div",{className:a()("flex items-center"),children:[(0,r.jsx)("div",{className:"font-medium text-black-light",children:l.orderCode}),(null==l?void 0:l.paymentStatus)&&(0,r.jsx)(v.n,{className:a()({"lg:ml-0":l.paymentStatus===g.dX.PENDING&&(null==(t=l.paymentMethod)?void 0:t.type)===g.eq.BACK_CHARGE}),paymentStatus:l.paymentStatus,fulfilmentStatus:null!=(n=l.fulfilmentStatus)?n:l.shippingStatus,paymentMethod:l.paymentMethod})]}),(0,r.jsx)("div",{className:"text-xs text-gray-trout",children:(0,d.A)(new Date(l.createdOn||""),"dd MMM yyyy")})]})}function P(){let{t:e}=(0,i.Bd)();return(0,r.jsx)("div",{className:"flex flex-wrap flex-auto justify-center items-center",style:{minHeight:180},children:(0,r.jsxs)("div",{className:"w-full flex flex-col items-center px-5 py-2",children:[(0,r.jsx)(j.Fw,{className:"mt-10 mb-5",width:120,height:120}),(0,r.jsx)("div",{className:"text-xl text-black-light font-medium text-center",children:e(w())}),(0,r.jsx)("div",{className:"text-gray-trout text-center mt-1",children:e(C())})]})})}function A(){let e=(0,l._)(["common.location"]);return A=function(){return e},e}function E(){let e=(0,l._)(["order.track-orders.title"]);return E=function(){return e},e}function R(e){let{modalType:t,currentModal:n,setCurrentModal:l}=e,[s,a]=(0,o.useState)(!1),i=(0,o.useCallback)(e=>{e.stopPropagation(),a(e=>!e),l&&t&&l(t)},[l,t]),c=(0,o.useCallback)(()=>a(!1),[]);(0,o.useEffect)(()=>{t&&n&&t!==n&&a(!1)},[c,n,t]);let d=(0,o.useMemo)(()=>t&&n?s&&t===n:s,[n,s,t]);return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(G,{onClick:i}),(0,r.jsx)(_,{isOpen:d,onClose:c})]})}function G(e){let{onClick:t,className:n}=e,{t:l}=(0,i.Bd)();return(0,r.jsx)(c.jbV,{className:a()("text-gray-trout relative focus:ring-none w-full",n),label:l(A()),iconProps:{size:1,path:c.Jdy},onClick:t,children:(0,r.jsx)("span",{className:"flex-1 ml-2 text-black-light",children:l(E())})})}}}]);

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.