PageSourceSearch

https://app.arrivy.com/dist/gen/customer-portal-live-track-project.BDvczCks.js

js arrivy.com collected 2026-09-24 18:40:12 UTC 2,262 bytes, 1 lines download raw bytes

1import{w as p,r as u,bd as h,be as _,j as o,bc as j,P as w}from"./ReactToastify.CBzBkeYa.js";import{H as P}from"./header.BIDifK82.js";import{F as x}from"./footer.Du8krQ_1.js";import{E as S}from"./map.DcnUoseG.js";import{b as C,s as I,c as E,r as y}from"./calendar.Dx3LyFfq.js";import{aY as L}from"./index.zqlVuLiK.js";import{L as v}from"./quote-pdf-generator.CG5v8RMG.js";import"./dropdown-filter-v2.CdDsQ7GO.js";import"./react-datepicker.Drt99mtT.js";function N(t){const[a,m]=u.useState({loading:!0,shouldShowPage:!0});u.useEffect(()=>{d()},[]);const d=()=>{let s=localStorage.getItem("accountConfiguration")?JSON.parse(localStorage.getItem("accountConfiguration")):"";Promise.all([h(),_()]).then(([c,l])=>{const e=JSON.parse(c),i=JSON.parse(l);if((!e?.account_type||!e?.account_configuration)&&(e.account_type="FIELD_SERVICE",e.account_configuration=C.FIELD_SERVICE),s=e?.account_configuration,I(s),typeof window<"u"&&i&&i.customer_id){const r=new URLSearchParams(window.location.search);if(!r.get("acting_contact_customer_id")){r.set("acting_contact_customer_id",String(i.customer_id));const g=window.location.pathname+"?"+r.toString()+window.location.hash;window.history.replaceState(null,"",g)}}const f=E(s,"pipelines");m(r=>({...r,companyProfile:e,profile:i,shouldShowPage:f,loading:!1}))}).catch(c=>{c.status===0&&m(l=>({...l,internetIssue:!0,loading:!1}))})};let n=null;return t.project_url?n=t.project_url:t.match.params&&t.match.params.project_id&&(n=t.match.params.project_id),t.match.url.indexOf("/experience-")>-1,o.jsxs(S,{component_name:"CustomerPortalLiveTrack",children:[o.jsx(L,{errorText:"No Internet Connection Available...",showError:a.internetIssue}),o.jsx(j,{className:"customer-portal hide-intercom"}),a.loading&&o.jsxs("div",{className:"page-loader-wrapper",children:[o.jsx("img",{src:"/images/arrivy-logos/logo.svg",alt:"Arrivy Logo"}),o.jsxs("div",{className:"page-loader",children:["Loading ",o.jsx(w,{color:"#008BF8",size:10})]})]}),!a.loading&&o.jsx(P,{companyProfile:a.companyProfile,profile:a.profile}),o.jsx("main",{id:"main",className:"position-relative",children:!a.loading&&a.shouldShowPage?o.jsx(v,{isCustomerPortal:!0,location:t.location,match:t.match,project_url:n}):y()}),o.jsx(x,{})]})}const D=p(N);export{D 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.