PageSourceSearch

https://shipfare-staging-client-yv5jc.ondigitalocean.app/static/js/8424.24e574e4.chunk.js

js shipfare-staging-client-yv5jc.ondigitalocean.app collected 2026-10-03 14:56:17 UTC 4,957 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_vndr_ship_client=self.webpackChunk_vndr_ship_client||[]).push([[8424],{48424(t,e,a){a.r(e),a.d(e,{default:()=>k});var i=a(98477),n=a(39698),o=a(64419),l=a(78270),s=a(1739),r=a(18103),c=a(20910),d=a(82391),u=a(6601),v=a(92011),m=a(40754),p=a(71889),g=a(81926),h=a(38935),w=a(82458),b=a(63203);const k=()=>{var t,e,a,k,y;const f=(0,l.useParams)().id,x=(0,l.useHistory)(),A=(0,c.Ay)({history:x}),j=A.email,_=A.tracking,C=(0,o.useState)({}),N=(0,n.A)(C,2),S=N[0],D=N[1],U=(0,o.useState)({}),L=(0,n.A)(U,2),P=L[0],M=L[1];(0,o.useEffect)(()=>{document.title="Track Your Order";const t=document.querySelector('meta[property="og:title"]');if(t&&t.setAttribute("content","Track Your Order"),!t){const t=document.createElement("meta");t.setAttribute("property","og:title"),t.setAttribute("content","Track Your Order"),document.head.appendChild(t)}},[]),(0,o.useEffect)(()=>{document.body.classList.add(r.A.pageBody);return(async()=>{try{var t,e,a,n,o,l,r;const c=null===(t=window)||void 0===t||null===(e=t.location)||void 0===e||null===(a=e.hostname)||void 0===a||null===(n=a.split("."))||void 0===n||null===(o=n.filter(t=>!["www","http","https"].includes(t)))||void 0===o?void 0:o.shift(),u=window.location.origin,v=(await s.Km.post("/tracking-pages?queryValue=".concat(f).concat(j?"&email=".concat(j):"","&tracking=").concat("false"!==_),{subDomain:c,origin:u})).data;if(null!==v&&void 0!==v&&v.redirectURI)return void window.open("".concat(d.GG),"_self");D(null!==v&&void 0!==v?v:{}),M(null!==(l=null===(r=v.templateData)||void 0===r?void 0:r[0])&&void 0!==l?l:(0,i.A)((0,i.A)({},m.Hk),{},{isActive:!0,type:"tracking"}))}catch(p){var c,u,v;const t=null!==(c=null===(u=p.response)||void 0===u||null===(v=u.data)||void 0===v?void 0:v.message)&&void 0!==c?c:"Unexpected error, please try again";x.push({pathname:"/tracking",search:"error=".concat(encodeURIComponent(t),"&").concat("false"===_?"order":"tracking","=").concat(f).concat(j?"&email=".concat(j):"")})}})(),()=>{document.body.classList.remove(r.A.pageBody)}},[]);const V="".concat(d.nv,"/Assets/tracking_default_bg.jpg"),Y=null===S||void 0===S||null===(t=S.templateData)||void 0===t||null===(e=t[0])||void 0===e||null===(a=e.user)||void 0===a||null===(k=a.logo)||void 0===k?void 0:k.src;return(0,b.jsxs)(b.Fragment,{children:[(null===S||void 0===S||null===(y=S.templateData)||void 0===y?void 0:y.length)>1?(0,b.jsx)("section",{className:"tw-bg-center tw-bg-cover tw-relative tw-flex tw-items-center",children:(0,b.jsx)("div",{className:"tw-py-4 tw-px-4 tw-max-w-3xl tw-mx-auto tw-rounded-lg",children:(0,b.jsx)("div",{className:"tw-w-full tw-flex tw-gap-2",children:null===S||void 0===S?void 0:S.templateData.map((t,e)=>(0,b.jsxs)(u.$n,{variant:t.id===(null===P||void 0===P?void 0:P.id)?"contained":"outlined",color:t.id===(null===P||void 0===P?void 0:P.id)?"secondary":"inherit",onClick:()=>M(t),children:["Shipment #",e+1]},e))})})}):null,null!==S&&void 0!==S&&S.settings?(0,b.jsx)(u.l1,{initialValues:{contactUs:{emailSent:!1,fields:{message:"",subject:""}}},onSubmit:async(t,e)=>{let a=e.setFieldValue;try{await s.Km.post("/template-settings/send-contact-email",{trackingCode:P.trackingNumber,message:t.contactUs.fields.message,subject:t.contactUs.fields.subject}),a("contactUs.emailSent",!0)}catch(i){console.log(i)}},validationSchema:w.Kq,children:t=>{var e,a,i,n,o;let l=t.isSubmitting,s=t.values;return(0,b.jsx)(u.lV,{className:"tw-w-full",children:(0,b.jsx)(v.A,{settings:null!==(e=null===S||void 0===S?void 0:S.settings)&&void 0!==e?e:{},isSubmitting:l,values:s,data:P?{coverImage:V,companyLogo:Y,orderNumber:P.orderNumber,user:P.user,warehouse:null===S||void 0===S||null===(a=S.templateData)||void 0===a||null===(i=a[0])||void 0===i||null===(n=i.user)||void 0===n?void 0:n.warehouse,date:P.deliveryDate,carrier:P.carrier,service:P.service,carrierLink:P.carrierLink,trackingNumber:P.trackingNumber,recipientAddress:P.recipientAddress,trackingHistory:null===(o=P.trackingDetails)||void 0===o?void 0:o.map(t=>{var e,a,i;return{status:((0,p.startCase)(null===(e=t.message)||void 0===e||null===(a=e.toLowerCase)||void 0===a?void 0:a.call(e))||"").replace(/\bUps\b/g,g.Vg.ups).replace(/\bUsps\b/g,g.Vg.usps).replace(/\bFedex\b/g,g.Vg.fedex),date:(0,h.Ay)(t.datetime).utc().format("MMM D, YYYY - h:mm A"),location:null!==t&&void 0!==t&&null!==(i=t.tracking_location)&&void 0!==i&&i.city?"".concat(t.tracking_location.city,", ").concat(t.tracking_location.state,", ").concat(t.tracking_location.country):""}}),statusType:P.status,statusColor:P.statusColor,hasOrderProtection:P.hasOrderProtection,claimPortalLink:P.claimPortalLink,products:P.products,subtotal:P.subtotal,discount:P.discount,tax:P.tax,shippingCost:P.shippingCost,total:P.total,currentTotalPrice:P.currentTotalPrice,statusMilestones:P.statusMilestones,paymentMethod:P.paymentMethod}:{}})})}}):(0,b.jsx)("div",{className:"tw-h-dvh tw-w-full tw-grid tw-place-items-center",children:(0,b.jsx)(u.P,{})})]})}}}]);

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.