PageSourceSearch

https://app.arrivy.com/dist/gen/tracker-api.js

js arrivy.com collected 2026-10-02 04:33:30 UTC 37,781 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["customer-portal-booking.ByTd3cur.js","ReactToastify.9_1RY8v_.js","header.mD9Yvl8r.js","quote-pdf-generator.Bh5EAows.js","calendar.BJK9aL6B.js","map.y38U2uys.js","react-datepicker.DmRl4pbx.js","dropdown-filter-v2.DtFQg_W_.js","footer.ChcW8Fy6.js","booking-routes.BeaVNwVF.js","index.b5cXg9T3.js","clone.DSM14ZgL.js","customer-portal-calendar.udWHAN5A.js","calendar-fix.BImnQw-R.js","_flatRest.DxwnTcmO.js","omit.DLQ4R0B1.js","contact-object-filters.BVmmUzR4.js","pagination.CCacdbEV.js","welcome-message.C6HSUQuS.js","customer-template.KHQ3_X87.js","customer-portal-dashboard.DpXODh3H.js","customer-portal-users.jBGyEJSC.js","container-context.B7daHiU3.js","users-manager.Cbh81UpS.js","pagination.D5eO_peh.js","create-user-modal.CbrXA9H8.js","address.BBUY85q_.js","customer-portal-shippers.C-j2-vOi.js","customer-portal-carriers.DylfAF_i.js","customer-portal-customers.DfuC2U0F.js","customer-portal-profile.CD7n9p1q.js","customer-portal-projects.CdNQfMkT.js","customer-portal-live-track.O3Ik0CDK.js","customer-portal-live-track-project.B0PUW9Cd.js","customer-portal-quotes.COAO3zpJ.js","customer-portal-quote-filling.CUialIbO.js"])))=>i.map(i=>d[i]);
2import{r as m,d as u,h as q,g as k,e as re,j as e,f as d,F as _,S as ie,L as T,w as le,b as ce,C as E,B as pe,i as R,k as f,O as se,T as te,l as me,y as he,x as D,m as w,n as de,H as ue,R as xe,a as s,P as je,u as _e,c as ge}from"./ReactToastify.9_1RY8v_.js";/* empty css                  *//* empty css              */import{s as j,D as ae,S as fe,A as be,U as ve,a as ye,l as Ce,T as I,O as ke,b as Ae,L as Se,c as A,d as Pe,e as Ne,f as qe,I as Re,g as we,E as Te,h as L,i as M,j as O,C as B,k as Ee,m as De,n as Ie,o as Le,p as Me,q as Oe,r as Be,t as Ue,u as U,V as ze,v,R as z,w as Fe,x as $e,W as S,F as Ve,y as We,z as Je,B as He,P as Ge,H as Qe,G as Ye,J as Ke,K as Xe,M as Ze,N as es,Q as ss,X as ts,Y as as,Z as os,_ as ns,$ as rs,a0 as is,a1 as ls,a2 as cs,a3 as ps,a4 as ms,a5 as hs,a6 as ds,a7 as us,a8 as xs,a9 as F,aa as js,ab as _s,ac as $,ad as gs,ae as fs,af as bs,ag as vs,ah as ys,ai as V,aj as Cs,ak as ks,al as W,am as J,an as As,ao as Ss,ap as Ps,aq as P,ar as y,as as Ns,at as qs,au as Rs,av as ws,aw as Ts,ax as Es,ay as Ds,az as H,aA as Is,aB as Ls,aC as Ms,aD as Os,aE as G,aF as Bs,aG as Us,aH as zs,aI as Fs,aJ as $s,aK as Vs,aL as Ws,aM as Js,aN as Hs,aO as Gs,aP as Qs,aQ as Ys,aR as Ks,aS as Xs,aT as Zs,aU as et,aV as st,aW as tt}from"./index.b5cXg9T3.js";import{A as at,E as ot,P as nt,C as rt,f as it,a as lt,b as ct,c as pt,_ as x}from"./map.y38U2uys.js";/* empty css             *//* empty css               */import{S as mt}from"./scroll-top.BtT1YEan.js";import{L as Q,a as ht,b as dt}from"./quote-pdf-generator.Bh5EAows.js";import"./calendar.BJK9aL6B.js";import"./react-datepicker.DmRl4pbx.js";import{M as ut,R as Y,C as N,L as xt}from"./live-track-quote.BDxYSZk4.js";import jt from"./revenue.kyljp2r_.js";import{r as _t}from"./dropdown-filter-v2.DtFQg_W_.js";import{F as gt}from"./footer3v.DOw1aZGn.js";import"./clone.DSM14ZgL.js";import"./billing-actions.D5qqC-VF.js";class ft extends m.Component{constructor(t,a){super(t,a),this.emailRef=u.createRef(),this.phoneRef=u.createRef(),this.getSubdomainProfileInfo=this.getSubdomainProfileInfo.bind(this),this.state={errorText:null,serverActionPending:!1,email:null,phone:!1,phoneNumber:null,isCustomerPortal:window.location.origin.indexOf(".myarrivy.com")!==-1||window.location.origin.indexOf(".haramtracker.com")!==-1,subDomainProfile:{}}}componentDidMount(){this.getSubdomainProfileInfo(),this.emailRef.current.focus()}reset(t){this.setState({serverActionPending:!0}),t.preventDefault();const a=this.emailRef.current&&this.emailRef.current.value.trim(),o=this.state.phoneNumber&&this.state.phoneNumber.trim();if(!a&&!o){this.setState({errorText:"No Email or Phone Number provided",serverActionPending:!1});return}_t({email:a,phone:o}).then(r=>{const i=JSON.parse(r);q.push(`/login?ref=forgot-password&msg=${i.message}`)}).catch(r=>{const i=JSON.parse(r.responseText);if(r.status===400)this.setState({errorText:k(i,"Email address or Phone number not found"),serverActionPending:!1});else if(r.status===401){localStorage.removeItem("logged_in");try{localStorage.setItem("logged_out","true")}catch(h){console.log("LocalStorage Not Available"),console.log(h)}this.setState({errorText:k(i,"Email address or Phone number not found"),serverActionPending:!1})}else r.status===429?this.setState({errorText:k(i,"Too many reset attempts. Please wait and try again later."),serverActionPending:!1}):this.setState({errorText:"Unable to complete the operation at this time.",serverActionPending:!1})})}handleChange(t){let a=t.target.value,o=a?a.trim():"";o.length===1&&(parseInt(o)||o==="+"||o==="(")?this.setState({phone:!0,email:null}):o.length>1&&o[0]==="+"&&parseInt(o[1])||parseInt(o[0])?this.setState({phone:!0,email:null,phoneNumber:o}):this.setState({phone:!1,email:o})}handlePhone(t){typeof t>"u"||!t||t.trim()===""?this.setState({phone:!1,phoneNumber:null,email:""},()=>{this.emailRef.current&&this.emailRef.current.focus()}):this.setState({email:null,phoneNumber:t})}getSubdomainProfileInfo(){this.state.isCustomerPortal&&(this.setState({loadingDomainProfile:!0}),re().then(t=>{const a=JSON.parse(t);this.setState({subDomainProfile:a,loadingDomainProfile:!1})}).catch(t=>{console.log(t),this.setState({loadingDomainProfile:!1})}
2))}render(){let t=null;return this.state.errorText&&(t=e.jsx(at,{variant:"danger",children:e.jsx("p",{children:this.state.errorText})})),e.jsx(ot,{component_name:"ForgotPasswordPage",children:e.jsxs("div",{className:j.authWrapper,children:[e.jsx(ae,{}),!this.state.isCustomerPortal&&e.jsx(fe,{}),e.jsx("div",{className:d(j.authContainer),children:e.jsxs("div",{className:d(j.authContent,this.state.isCustomerPortal?j["has-profile-info"]:""),children:[e.jsxs("div",{className:d(j.title),children:[e.jsx("h1",{children:"Forgot Password"}),e.jsx("p",{children:this.state.isCustomerPortal?e.jsxs(e.Fragment,{children:["Please enter your email or phone number to get reset password instructions for ",e.jsx("span",{children:this.state.subDomainProfile?.fullname})," Portal."]}):"Please enter your email or phone number to get reset password instructions."})]}),e.jsxs("div",{className:d(j.authInner),children:[this.state.isCustomerPortal&&e.jsx("div",{className:d(j.profileImage),children:e.jsx("img",{src:this.state.subDomainProfile?.image_path||"/images/user-default.svg",alt:this.state.subDomainProfile?.fullname})}),t,e.jsxs("form",{onSubmit:this.reset.bind(this),children:[e.jsxs(_.Group,{className:"form-group",children:[e.jsx(_.Label,{children:"Email or Mobile Number"}),!this.state.phone&&e.jsx(_.Control,{type:"email",ref:this.emailRef,value:this.state.email,onChange:a=>this.handleChange(a),autoComplete:"email",placeholder:"E.g. [email protected]"}),this.state.phone&&e.jsx(nt,{autoComplete:"phone",autoFocus:"autoFocus",value:this.state.phoneNumber,className:d(j["input-phone"]),placeholder:"Mobile Phone Number",ref:this.phoneRef,onChange:a=>this.handlePhone(a)})]}),e.jsx("button",{type:"submit",className:d(j.btn,j["btn-secondary"]),disabled:this.state.serverActionPending,children:this.state.serverActionPending?e.jsx(ie,{borderStyle:"none"}):"Reset"})]})]}),e.jsxs("div",{className:d(j.links),children:[e.jsx(T,{to:"/login",children:"Log into an Existing Account"}),!this.state.isCustomerPortal&&e.jsx(T,{to:"/signup",children:"Sign up for a New Account"})]})]})}),!this.state.isCustomerPortal&&e.jsx(be,{})]})})}}const bt="_btn_ikbmk_10",vt="_steps_ikbmk_32",yt="_videoContainer_ikbmk_42",Ct="_videoWrapper_ikbmk_46",kt="_container_ikbmk_62",At="_teampic_ikbmk_102",St="_contentSection_ikbmk_124",Pt="_stepdetail_ikbmk_152",p={"marketing-page-wrap":"_marketing-page-wrap_ikbmk_1",btn:bt,steps:vt,videoContainer:yt,videoWrapper:Ct,container:kt,"btn-blue":"_btn-blue_ikbmk_85",teampic:At,"welcome-section":"_welcome-section_ikbmk_116",contentSection:St,"case-study-section":"_case-study-section_ikbmk_140",stepdetail:Pt};class Nt extends m.Component{constructor(t,a){super(t,a),this.openSubscribeModal=this.openSubscribeModal.bind(this),this.closeSubscribeModal=this.closeSubscribeModal.bind(this),this.state={showSubscribeModal:!1,company_name:"there",video_url:"https://player.vimeo.com/video/199490948"}}openSubscribeModal=()=>{this.setState({showSubscribeModal:!0})};closeSubscribeModal=()=>this.setState({showSubscribeModal:!1});componentDidMount(){const t=ce(this.props.location.search);let a=this.state.company_name,o=this.state.video_url;t&&t.company_name&&(a=t.company_name),t&&t.video_url&&(o=t.video_url),this.setState({company_name:a,video_url:o})}render(){return e.jsxs("div",{className:p["full-height"],children:[e.jsx(ae,{}),e.jsxs("div",{className:d(p["page-wrap"],p["marketing-page-wrap"]),children:[e.jsx(ve,{router:{history:this.props.history,location:this.props.location,match:this.props.match},hideOptions:!0}),e.jsx(ye,{showModal:this.state.showSubscribeModal,closeModal:this.closeSubscribeModal}),e.jsx("section",{className:p["welcome-section"],children:e.jsxs("div",{className:p.container,children:[e.jsxs("p",{className:p.steps,children:[e.jsx("strong",{children:"Step 1:"})," Hi ",this.state.company_name,", watch this demo to learn how Arrivy works"]}),e.jsx("div",{className:p.videoContainer,children:e.jsx("div",{className:p.videoWrapper,children:e.jsx("iframe",{src:this.state.video_url,width:"560",height:"315",frameBorder:"0",allow:"autoplay;",allowFullScreen:!0})})})]})}),e.jsx("section",{className:p.contentSection,children:e.jsxs("div",{className:p.container,children:[e.jsxs("p",{className:p.steps,children:[e.jsx("strong",{children:"Step 2:"})," Talk to Us!"]}),e.jsxs(rt,{children:[e.jsx(E,{md:2,children:e.jsx("img",{className:p.teampic,src:"/images/ash.png",alt:"Arrivy Team"})}),e.jsxs(E,{md:10,children:[e.jsx("p",{className:p.stepdetail,children:"Now that you've watched the demo, find time for a discovery call with Arrivy team. We'll cover your pain-points and possible solutions based on our experience working with businesses like yours."}),e.jsxs(pe,{onClick:this.openSubscribeModal,className:d(p.btn,p["btn-blue"]),children:["Learn More ",e.jsx(R,{icon:it})]})]})]})]})}),e.jsx("section",{className:p["case-study-section"],children:e.jsxs("div",{className:p.container,children:[e.jsx("h4",{children:"Outcomes from other business who spoke with us in past"})," ",e.jsx("div",{className:p.videoContainer,children:e.jsx("div",{className:p.videoWrapper,children:e.jsx("iframe",{src:"https://www.youtube.com/embed/-0kXYANBndc",width:"560",height:"315",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})]})}),e.jsx(gt,{data:Ce})]})]})}}const qt=le(Nt),Rt="_wrapper_isxsp_1",wt="_sidebar_isxsp_8",Tt="_sidebarTitle_isxsp_15",Et="_navList_isxsp_21",Dt="_navItem_isxsp_30",It="_mainContent_isxsp_42",Lt="_forms_isxsp_50",Mt="_container_isxsp_53",Ot="_title_isxsp_61",Bt="_field_isxsp_66",Ut="_typeAheadWrapper_isxsp_126",zt="_typeAhead_isxsp_126",Ft="_boxTitle_isxsp_185",$t="_requestTable_isxsp_234",Vt="_noRequestsMessage_isxsp_273",Wt="_toastSuccessAlert_isxsp_288",Jt="_toastErrorAlert_isxsp_300",Ht="_actionbtns_isxsp_324",Gt="_modalOverlay_isxsp_331",Qt="_modalContent_isxsp_344",Yt="_modalTextarea_isxsp_356",Kt="_modalActionbtns_isxsp_372",Xt="_iconButton_isxsp_378",Zt="_modalButton_isxsp_391",ea="_approveBtn_isxsp_404",sa="_rejectBtn_isxsp_412",ta="_iconReload_isxsp_420",n={wrapper:Rt,sidebar:wt,sidebarTitle:Tt,navList:Et,navItem:Dt,mainContent:It,forms:Lt,container:Mt,title:Ot,field:Bt,typeAheadWrapper:Ut,typeAhead:zt,boxTitle:Ft,"input-text":"_input-text_isxsp_193",requestTable:$t,noRequestsMessage:Vt,toastSuccessAlert:Wt,toastErrorAlert:Jt,actionbtns:Ht,modalOverlay:Gt,modalContent:Qt,modalTextarea:Yt,modalActionbtns:Kt,iconButton:Xt,modalButton:Zt,a
2pproveBtn:ea,rejectBtn:sa,iconReload:ta},aa=()=>f({url:"/api/auth-requests/access",type:"GET"}),oa=()=>f({url:"/api/auth-requests/companies",type:"GET"}),na=c=>f({url:`/api/auth-requests/company_users?company_id=${c}`,type:"GET"}),ra=()=>f({url:"/api/auth-requests/pending",type:"GET"}),ia=c=>f({url:"api/auth-requests/update",type:"POST",data:c}),la=c=>f({url:"api/auth-requests/new",type:"POST",data:{requested_for_company_id:c.requested_for_company_id,requested_for_company_name:c.requested_for_company_name,requested_for_id:c.requested_for_id,requested_for_name:c.requested_for_name,request_reason:c.request_reason,status:c.status,requested_access:c.requested_access}});class ca extends m.Component{constructor(t){super(t),this.state={selectedCompany:t.selectedCompany,reason:t.reason,selectedUser:[],users:[],requested_access:{can_view:!0,can_upsert:!1,can_delete:!1}}}handleChange=t=>{this.setState({[t.target.name]:t.target.value})};handleCompanyChange=t=>{t[0]?(this.setState({selectedCompany:t[0]}),this.getSingleCompanyInfo(t[0].id)):this.setState({selectedCompany:t[0],users:[],selectedUser:[]})};handleUserChange=t=>{if(t[0]){const a=t[0].id,o=t[0].label.split(" (")[0],r=[{id:a,label:o}];this.setState({selectedUser:r})}else this.setState({selectedUser:[]})};handlePermissionsChange=(t,a)=>{this.setState(o=>({requested_access:{...o.requested_access,[t]:a}}))};getSingleCompanyInfo=t=>{na(t).then(a=>{const r=JSON.parse(a).users.map(i=>({id:i.id,label:`${i.name} ( ${i.permission_role} - ${i.email} - ${i.phone})`}));this.setState({users:r})}).catch(a=>console.error("Failed to fetch companies",a))};handleSubmit=t=>{t.preventDefault();const{reason:a,selectedCompany:o,selectedUser:r}=this.state;let i="";if(!a&&!o?i="Please provide a reason and a valid company for your request":o?a?(!r[0]?.id||!r[0]?.label)&&(i="Please Select a User"):i="Please provide a reason for your request":i="Please select a company for your request",i){const h={text:i,options:{type:"error",position:"bottom-left",className:n.toastErrorAlert,autoClose:4e3}};this.props.createToastAlert(h);return}this.props.onSubmit({requested_for_company_id:o.id,requested_for_company_name:o.label,requested_for_id:r[0]?.id,requested_for_name:r[0]?.label,request_reason:a,status:"PENDING",requested_access:JSON.stringify(this.state.requested_access)}),this.setState({reason:"",selectedCompany:null,submitted:!0,users:[],selectedUser:[],requested_access:{can_view:!0,can_upsert:!1,can_delete:!1}})};render(){const{companies:t}=this.props,{selectedCompany:a,reason:o}=this.state;return e.jsxs(e.Fragment,{children:[e.jsxs("h2",{className:n.title,children:["Request Company Authorization",e.jsx(se,{placement:"top",overlay:e.jsx(te,{id:"tooltip-refresh-companies",children:"Refresh Companies"}),children:e.jsx("i",{className:n.iconReload,onClick:this.props.onRefresh})})]}),e.jsxs("form",{className:n.forms,onSubmit:this.handleSubmit,children:[e.jsxs("div",{className:d(n.container,"ar-d-flex"),children:[e.jsxs("div",{className:n.field,children:[e.jsx("h3",{className:n.boxTitle,children:"Company Name"}),e.jsx(_.Group,{className:n.typeAheadWrapper,children:e.jsx(I,{id:"company-typeahead",placeholder:"Search Company",labelKey:"label",options:t,selected:a?[a]:[],onChange:this.handleCompanyChange,className:n.typeAhead})})]}),e.jsxs("div",{className:d(n["styles.field"],"ar-ml-1"),children:[e.jsx("h3",{className:n.boxTitle,children:"Users"}),e.jsx(_.Group,{className:n.typeAheadWrapper,children:e.jsx(I,{id:"user-typeahead",placeholder:"Search User",labelKey:"label",options:this.state.users,selected:this.state.selectedUser||[],onChange:this.handleUserChange,className:n.typeAhead})})]})]}),e.jsxs("div",{className:"ar-d-felx ar-pb-2",children:[e.jsx("h3",{className:n.boxTitle,children:"Access Levels"}),e.jsx(_.Check,{type:"checkbox",className:"ar-checkbox-inline",name:"allow_read_access",checked:!0,onChange:()=>{},disabled:!0,inline:!0,label:e.jsx("span",{children:"Read"})}),e.jsx(_.Check,{type:"checkbox",className:"ar-checkbox-inline",name:"allow_add_update_access",checked:this.state.requested_access.can_upsert,onChange:r=>this.handlePermissionsChange("can_upsert",r.target.checked),disabled:!1,inline:!0,label:e.jsx("span",{children:"Create/Update"})}),e.jsx(_.Check,{type:"checkbox",className:"ar-checkbox-inline",name:"allow_delete_access",checked:this.state.requested_access.can_delete,onChange:r=>this.handlePermissionsChange("can_delete",r.target.checked),disabled:!1,inline:!0,label:e.jsx("span",{children:"Delete"})})]}),e.jsxs("div",{className:n.field,children:[e.jsx("h3",{className:n.boxTitle,children:"Reason"}),e.jsx("textarea",{name:"reason",className:n["input-text"],placeholder:"Type your reason here ...",value:o,onChange:this.handleChange})]}),e.jsx("button",{type:"submit",className:d(n["btn-outline"],"ar-btn ar-btn-secondary"),children:"Submit Request"})]})]})}}class pa extends m.Component{constructor(t){super(t),this.state={pendingRequests:[],approvalReasons:{},showModal:!1,selectedRequestId:null,selectedAction:"",approvedAccess:{can_view:!1,can_upsert:!1,can_delete:!1}}}componentDidMount(){this.loadPendingRequests()}formatDateTime=t=>{const a=t.split(".")[0];return me.utc(a).local().format("DD/MM/YYYY hh:mm A")};handleApprovedAccessChange=(t,a)=>{this.setState(o=>({approvedAccess:{...o.approvedAccess,[t]:a}}))};handleReasonChange=(t,a)=>{this.setState(o=>({approvalReasons:{...o.approvalReasons,[t]:a}}))};loadPendingRequests=()=>{ra().then(t=>{const{pending:a}=JSON.parse(t);
2this.setState({pendingRequests:a||[]})}).catch(t=>{console.error("Failed to fetch pending requests",t)})};handleAction=(t,a)=>{const o=this.state.approvalReasons[t]||"";if(!this.state.pendingRequests.find(h=>h.id===t))return;if(!o.trim()){const h={text:"Please provide a reason before approving/rejecting.",options:{type:"error",position:"bottom-left",className:n.toastErrorAlert,autoClose:4e3}};this.props.createToastAlert(h);return}const i={request_id:t,approver:this.props.userEmail,approval_reason:o,status:a};a==="approved"&&(i.approved_access=JSON.stringify(this.state.approvedAccess)),ia(i).then(()=>{this.props.createToastAlert({text:`Request ${a} against request ID: ${t}`,options:{type:"success",position:"bottom-left",className:n.toastSuccessAlert,autoClose:4e3}}),this.setState(h=>({approvalReasons:{...h.approvalReasons,[t]:""},showModal:!1,selectedRequestId:null,selectedAction:"",approvedAccess:{can_view:!1,can_upsert:!1,can_delete:!1}})),this.loadPendingRequests()}).catch(h=>{const l=JSON.parse(h.responseText);this.props.createToastAlert({text:`${l?.description}`,options:{type:"error",position:"bottom-left",className:n.toastErrorAlert,autoClose:4e3}})})};renderAccessCheckboxes=(t,a,o,r,i="vertical")=>{const h=[{key:"can_view",label:"View",alwaysDisabled:!0},{key:"can_upsert",label:"Create/Update"},{key:"can_delete",label:"Delete"}],l=i==="horizontal",C=l?"ar-d-flex ar-pb-1 ar-justify-center ar-align-center":"",oe=l?"ar-pl-1":"ar-pt-1";return e.jsx("div",{className:C,children:h.map((g,ne)=>e.jsxs("div",{className:d("ar-d-flex ar-align-center",ne>0&&oe),children:[e.jsx(lt,{className:"ar-custom-table-checkbox",id:`${a}-${g.key}`,isSelected:t?.[g.key]||!1,isDisabled:g.alwaysDisabled||o,controlled:!0,onChangeCheckbox:r?()=>r(g.key,!t?.[g.key]):void 0}),e.jsx("span",{children:g.label})]},`${a}-${g.key}`))})};render(){const{pendingRequests:t,approvalReasons:a,showModal:o,selectedRequestId:r,selectedAction:i,approvedAccess:h}=this.state;return e.jsxs("div",{children:[e.jsxs("h2",{className:n.title,children:["Pending Approvals",e.jsx(se,{placement:"top",overlay:e.jsx(te,{id:"tooltip-refresh-requests",children:"Refresh Requests"}),children:e.jsx("i",{className:n.iconReload,onClick:this.loadPendingRequests})})]}),e.jsx("div",{className:n.requestsContainer,children:t.length===0?e.jsx("p",{className:n.noRequestsMessage,children:"No pending approval requests."}):e.jsxs("table",{className:n.requestTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"ID"}),e.jsx("th",{children:"Requester Name"}),e.jsx("th",{children:"Requester Email"}),e.jsx("th",{children:"Requested Company ID"}),e.jsx("th",{children:"Requested Company Name"}),e.jsx("th",{children:"Requested User ID"}),e.jsx("th",{children:"Requested User Name"}),e.jsx("th",{children:"Reason"}),e.jsx("th",{children:"Requested Access"}),e.jsx("th",{children:"Requested At"}),e.jsx("th",{children:"Actions"})]})}),e.jsx("tbody",{children:t.map(l=>e.jsxs("tr",{children:[e.jsx("td",{children:l.id}),e.jsx("td",{children:l.requester_name}),e.jsx("td",{children:l.requester_email}),e.jsx("td",{children:l.requested_for_company_id}),e.jsx("td",{children:l.requested_for_company_name}),e.jsx("td",{children:l.requested_for_id}),e.jsx("td",{children:l.requested_for_name}),e.jsx("td",{children:l.request_reason}),e.jsx("td",{children:this.renderAccessCheckboxes(l.requested_access,`table-${l.id}`,!0,null,"vertical")}),e.jsx("td",{children:this.formatDateTime(l.requested_at)}),e.jsxs("td",{className:n.actionbtns,children:[e.jsx("button",{className:`${n.iconButton} ${n.approveBtn}`,onClick:()=>this.setState({showModal:!0,selectedRequestId:l.id,selectedAction:"approved",approvedAccess:l.requested_access?{...l.requested_access}:{can_view:!1,can_upsert:!1,can_delete:!1}}),title:"Approve",children:e.jsx(R,{icon:ct})}),e.jsx("button",{className:`${n.iconButton} ${n.rejectBtn}`,onClick:()=>this.setState({showModal:!0,selectedRequestId:l.id,selectedAction:"rejected",approvedAccess:l.requested_access?{...l.requested_access}:{can_view:!1,can_upsert:!1,can_delete:!1}}),title:"Reject",children:e.jsx(R,{icon:pt})})]})]},l.id))})]})}),o&&e.jsx("div",{className:n.modalOverlay,children:e.jsxs("div",{className:n.modalContent,children:[e.jsx("textarea",{className:n.modalTextarea,placeholder:"Enter reason...",value:a[r]||"",onChange:l=>this.handleReasonChange(r,l.target.value)}),i==="approved"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"ar-m-0 ar-p-0",children:"Update Access Level If Required"}),this.renderAccessCheckboxes(h,"modal",!1,this.handleApprovedAccessChange,"horizontal")]}),e.jsxs("div",{className:n.modalActionbtns,children:[e.jsx("button",{className:`${n.modalButton} ${n.approveBtn}`,onClick:()=>this.handleAction(r,i),title:"Submit",children:"Submit"}),e.jsx("button",{className:`${n.modalButton} ${n.rejectBtn}`,onClick:()=>this.setState({showModal:!1,selectedRequestId:null,selectedAction:""}),title:"Cancel",children:"Cancel"})]})]})})]})}}class ma extends m.Component{constructor(t){super(t),this.state={companies:[],selectedCompany:null,reason:"",requests:[],userEmail:"",userName:"",canRequest:!1,canApprove:!1,activeTab:null}}createToastAlert=t=>{he(t.text,t.options)};componentDidMount(){aa().then(t=>{const{email:a,name:o,can_request:r,can_approve:i}=JSON.parse(t);this.setState({userEmail:a,userName:o,canRequest:r,canApprove:i,activeTab:r?"requests":i?"approvals":null},()=>{if(!this.state.canRequest&&!this.state.canApprove)return window.location.href="/invalid_path",null;this.state.canRequest&&this.fetchCompanies()})}).catch(t=>{const a={text:`${t.responseJSON.description}`,options:{type:"error",position:"bottom-left",className:n.toastErrorAlert,autoClose:4e3}};this.createToastAlert(a)})}fetchCompanies(){oa().then(t=>{const{companies:a}=JSON.parse(t),o=Object.entries(a).map(([r,i])=>({id:r,label:i}));this.setState({companies:o})}).catch(t=>console.error("Failed to fetch companies",t))}handleTabClick=t=>{this.setState({activeTab:t},()=>{t==="requests"&&this.state.canRequest&&this.state.companies.length===0&&this.fetchCompanies()})};handleSubmitRequest=t=>{la(t).then(a=>{const{message:o}=JSON.parse(a),r={text:"Request submitted successfully",options:{type:"success",position:"bottom-left",className:n.toastSuccessAlert,autoClose:4e3}};this.createToastAlert(r),this.setState({reason:"",selectedCompany:null,activeTab:"requests"})}).catch(a=>{const r={text:`${JSON.parse(a.responseText)?.description}`,options:{type:"error",position:"bottom-left",className:n.toastErrorAlert,autoClose:4e3}};this.createToastAlert(r)})};render(){const{canRequest:t,canApprove:a,activeTab:o,userEmail:r,userName:i,companies:h,selectedCompany:l,reason:C}=this.state;return!t&&!a?e.jsx("div",{}):e.jsxs("div",{className:n.wrapper,children:[e.jsxs("div",{className:n.sidebar,children:[e.jsx("h3",{className:n.sidebarTitle,children:"Authorization"}),e.jsxs("ul",{className:n.navList,children:[t&&e.jsx("li",{className:n.navItem,onClick:()=>this.handleTabClick("requests"),children:"Requests"}),a&&e.jsx("li",{className:n.navItem,onClick:()=>this.handleTabClick("approvals"),children:"Approvals"})]})]}),e.jsxs("div",{className:n.mainContent,children:[o==="requests"&&t&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"toast-container",progressClassName:"toast-progress",autoClose:1}),e.jsx(ca,{companies:h,selectedCompany:l,reason:C,userEmail:r,userName:i,onSubmit:this.handleSubmitRequest,createToastAlert:this.createToastAlert,onRefresh:()=>this.fetchCompanies()})]}),o==="approvals"&&a&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"toast-container",progressClassName:"toast-progress",autoClose:1}),e.jsx(pa,{userEmail:r,userName:i,createToastAlert:this.createToastAlert})]})]})]})}}w(self).env;const b=m.lazy(()=>x(()=>import("./customer-portal-booking.ByTd3cur.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),ha=m.lazy(()=>x(()=>import("./customer-portal-calendar.udWHAN5A.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,13,14,15,10,11,16,17,18,19]))),K=m.lazy(()=>x(()=>import("./customer-portal-dashboard.DpXODh3H.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,18,16,17,19,10,11]))),da=m.lazy(()=>x(()=>import("./customer-portal-users.jBGyEJSC.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,23,24,25,26,10,11]))),ua=m.lazy(()=>x(()=>import("./customer-portal-shippers.C-j2-vOi.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,22,23,24,25,26,10,11]))),xa=m.lazy(()=>x(()=>import("./customer-portal-carriers.DylfAF_i.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,22,23,24,25,26,10,11]))),ja=m.lazy(()=>x(()=>import("./customer-portal-customers.DfuC2U0F.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,22,23,24,25,26,10,11]))),_a=m.lazy(()=>x(()=>import("./customer-portal-profile.CD7n9p1q.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,10,11]))),ga=m.lazy(()=>x(()=>import("./customer-portal-projects.CdNQfMkT.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,10,11]))),X=m.lazy(()=>x(()=>import("./customer-portal-live-track.O3Ik0CDK.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,10,11]))),Z=m.lazy(()=>x(()=>import("./customer-portal-live-track-project.B0PUW9Cd.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,10,11]))),fa=m.lazy(()=>x(()=>import("./customer-portal-quotes.COAO3zpJ.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,17,10,11]))),ee=m.lazy(()=>x(()=>import("./customer-portal-quote-filling.CUialIbO.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,10,11])));function ba(){const{company_name:c}=_e();return(c||"").startsWith("experience-")?e.jsx(ht,{}):e.jsx(dt,{})}const va=new ke({issuer:w(self).issuer,clientId:w(self).clientId,redirectUri:window.location.origin+"/login/callback"});function ya(){const c=new de,t=async(r,i)=>{q.replace(tt(c&&c.get("redirect")?c.get("redirect"):"/",window.location.origin)),c&&c.get("redirect")&&c.remove("redirect")},o=window.location.href.indexOf("/booking-experience/")>-1;return e.jsx(ue,{history:q,children:e.jsx(mt,{children:e.jsx(Ae,{oktaAuth:va,restoreOriginalUri:t,children:e.jsx(m.Suspense,{fallback:e.jsxs("div",{className:"page-loader-wrapper",children:[!
2o&&e.jsx("img",{src:"/images/arrivy-logos/logo.svg",alt:"Arrivy Logo"}),e.jsxs("div",{className:"page-loader",children:["Loading ",e.jsx(je,{color:"#008BF8",size:10})]})]}),children:e.jsxs(xe,{children:[e.jsx(s,{path:"/login/callback",element:e.jsx(Se,{})}),e.jsx(s,{path:"/",element:e.jsx(A,{})}),e.jsx(s,{path:"/admin_tasks_runner",element:e.jsx(Pe,{})}),e.jsx(s,{path:"/assets",element:e.jsx(Ne,{})}),e.jsx(s,{path:"/assets/archive",element:e.jsx(qe,{})}),e.jsx(s,{path:"/items",element:e.jsx(Re,{})}),e.jsx(s,{path:"/api_info",element:e.jsx(we,{})}),e.jsx(s,{path:"/customer-portal/",element:e.jsx(K,{})}),e.jsx(s,{path:"/customer-portal/users",element:e.jsx(da,{})}),e.jsx(s,{path:"/customer-portal/shippers",element:e.jsx(ua,{})}),e.jsx(s,{path:"/customer-portal/carriers",element:e.jsx(xa,{})}),e.jsx(s,{path:"/customer-portal/customers",element:e.jsx(ja,{})}),e.jsx(s,{path:"/customer-portal/profile",element:e.jsx(_a,{})}),e.jsx(s,{path:"/customer-portal/booking",element:e.jsx(b,{})}),e.jsx(s,{path:"/customer-portal/booking/:booking_url",element:e.jsx(b,{})}),e.jsx(s,{path:"/customer-portal/booking/route/:booking_route_url",element:e.jsx(b,{})}),e.jsx(s,{path:"/customer-portal/booking/route-experience/:booking_route_url",element:e.jsx(b,{})}),e.jsx(s,{path:"/customer-portal/calendar",element:e.jsx(ha,{})}),e.jsx(s,{path:"/customer-portal/dashboard",element:e.jsx(K,{})}),e.jsx(s,{path:"/customer-portal/projects",element:e.jsx(ga,{})}),e.jsx(s,{path:"/customer-portal/quotes",element:e.jsx(fa,{})}),e.jsx(s,{path:"/customer-portal/experience-:company_name/quote/:quote_id",element:e.jsx(ee,{})}),e.jsx(s,{path:"/customer-portal/:company_name/quote/:quote_id",element:e.jsx(ee,{})}),e.jsx(s,{path:"/customer-portal/experience-:company_name/tasks/:task_id",element:e.jsx(X,{})}),e.jsx(s,{path:"/customer-portal/:company_name/tasks/:task_id",element:e.jsx(X,{})}),e.jsx(s,{path:"/customer-portal/experience-:company_name/project/:project_id",element:e.jsx(Z,{})}),e.jsx(s,{path:"/customer-portal/:company_name/project/:project_id",element:e.jsx(Z,{})}),e.jsx(s,{path:"/entity_location",element:e.jsx(Te,{})}),e.jsx(s,{path:"/dashboard",element:e.jsx(L,{})}),e.jsx(s,{path:"/dashboard/:page_id",element:e.jsx(L,{})}),e.jsx(s,{path:"/forms",element:e.jsx(M,{})}),e.jsx(s,{path:"/forms/:form_id",element:e.jsx(M,{})}),e.jsx(s,{path:"/tasks/:task_id/forms/:form_id",element:e.jsx(O,{})}),e.jsx(s,{path:"/customers",element:e.jsx(B,{})}),e.jsx(s,{path:"/customers/companies",element:e.jsx(Ee,{})}),e.jsx(s,{path:"/customers/users",element:e.jsx(B,{})}),e.jsx(s,{path:"/customers/:customer_id",element:e.jsx(De,{})}),e.jsx(s,{path:"/crew",element:e.jsx(Ie,{})}),e.jsx(s,{path:"/crews",element:e.jsx(Le,{})}),e.jsx(s,{path:"/carriers/companies",element:e.jsx(Me,{})}),e.jsx(s,{path:"/carriers/users",element:e.jsx(Oe,{})}),e.jsx(s,{path:"/shippers/companies",element:e.jsx(Be,{})}),e.jsx(s,{path:"/shippers/users",element:e.jsx(Ue,{})}),e.jsx(s,{path:"/equipment",element:e.jsx(U,{})}),e.jsx(s,{path:"/resource",element:e.jsx(U,{})}),e.jsx(s,{path:"/login",element:e.jsx(A,{})}),e.jsx(s,{path:"/login/:error",element:e.jsx(A,{})}),e.jsx(s,{path:"/verify",element:e.jsx(ze,{})}),e.jsx(s,{path:"/settings",element:e.jsx(v,{})}),e.jsx(s,{path:"/settings/:page_id",element:e.jsx(v,{})}),e.jsx(s,{path:"/settings/:page_id/:part_id",element:e.jsx(v,{})}),e.jsx(s,{path:"/settings/:page_id/:part_id/:webhook_id/:log_id",element:e.jsx(v,{})}),e.jsx(s,{path:"/forgot-password",element:e.jsx(ft,{})}),e.jsx(s,{path:"/reset-password/:user_id/:signup_token",element:e.jsx(z,{})}),e.jsx(s,{path:"/force-change-password",element:e.jsx(z,{})}),e.jsx(s,{path:"/signup",element:e.jsx(Fe,{})}),e.jsx(s,{path:"/tasks",element:e.jsx($e,{})}),e.jsx(s,{path:"/work-flow",element:e.jsx(S,{})}),e.jsx(s,{path:"/work-flow/:page_id",element:e.jsx(S,{})}),e.jsx(s,{path:"/work-flow/:page_id/:part_id",element:e.jsx(S,{})}),e.jsx(s,{path:"/tasks/fetch",element:e.jsx(Ve,{})}),e.jsx(s,{path:"/recurring/tasks/fetch",element:e.jsx(We,{})}),e.jsx(s,{path:"/tasks/:task_id",element:e.jsx(Je,{})}),e.jsx(s,{path:"/oauth2/consent",element:e.jsx(He,{})}),e.jsx(s,{path:"/pipedrive/install",element:e.jsx(Ge,{})}),e.jsx(s,{path:"/hubspot/install",element:e.jsx(Qe,{})}),e.jsx(s,{path:"/zoho/install",element:u.createElement(Ye)}),e.jsx(s,{path:"/podio/install",element:u.createElement(Ke)}),e.jsx(s,{path:"/archibus/install",element:u.createElement(Xe)}),e.jsx(s,{path:"/zoho_books/install",element:u.createElement(Ze)}),e.jsx(s,{path:"/zoho_inventory/install",element:u.createElement(es)}),e.jsx(s,{path:"/salesforce/install",element:e.jsx(ss,{})}),e.jsx(s,{path:"/infusionsoft/install",element:e.jsx(ts,{})}),e.jsx(s,{path:"/square/install",element:e.jsx(as,{})}),e.jsx(s,{path:"/googledrive/install",element:e.jsx(os,{})}),e.jsx(s,{path:"/googlecalendar/install",element:e.jsx(ns,{})}),e.jsx(s,{path:"/intercom/install",element:e.jsx(rs,{})}),e.jsx(s,{path:"/app-install",element:e.jsx(is,{})}),e.jsx(s,{path:"/quickbooks/install",element:e.jsx(ls,{})}),e.jsx(s,{path:"/egnyte/install",element:e.jsx(cs,{})}),e.jsx(s,{path:"/microsoft_dynamics/install",element:e.jsx(ps,{})}),e.jsx(s,{path:"/microsoft_dynamics_sales/install",element:e.jsx(ms,{})}),e.jsx(s,{path:"/auth/moverssuite/consent",element:e.jsx(hs,{})}),e.jsx(s,{path:"/transactions",element:e.jsx(ds,{})}),e.jsx(s,{path:"/braintree/subscriptions",element:e.jsx(us,{})}),e.jsx(s,{path:"/payment_setup",element:e.jsx(xs,{})}),e.jsx(s,{path:"/profile/:company_url",element:e.jsx(F,{})}),e.jsx(s,{path:"/profile/:company_url/rating/:task_url",element:e.jsx(F,{})}
2),e.jsx(s,{path:"/personalized-live-demo/:company_name?/:company_type?/:phone?/:email?/:address?",element:e.jsx(js,{})}),e.jsx(s,{path:"/pipelines",element:e.jsx(_s,{})}),e.jsx(s,{path:"/projects/:project_id",element:e.jsx($,{})}),e.jsx(s,{path:"/customer/project/:project_id",element:e.jsx($,{})}),e.jsx(s,{path:"/quotes",element:e.jsx(gs,{})}),e.jsx(s,{path:"/reviews",element:e.jsx(fs,{})}),e.jsx(s,{path:"/availability",element:e.jsx(bs,{})}),e.jsx(s,{path:"/mobile-availability",element:e.jsx(vs,{})}),e.jsx(s,{path:"/authlogin",element:e.jsx(ys,{})}),e.jsx(s,{path:"/reporting",element:e.jsx(V,{})}),e.jsx(s,{path:"/reporting/:page_id",element:e.jsx(V,{})}),e.jsx(s,{path:"/task/confirmation/:entity_url_safe_id?",element:e.jsx(Cs,{})}),e.jsx(s,{path:"/worker_requests/confirmation/:entity_url_safe_id?",element:e.jsx(ks,{})}),e.jsx(s,{path:"/developer-portal",element:e.jsx(W,{})}),e.jsx(s,{path:"/developer-portal/:doc_id",element:e.jsx(W,{})}),e.jsx(s,{path:"/api-reference",element:e.jsx(J,{})}),e.jsx(s,{path:"/api-reference/:doc_id",element:e.jsx(J,{})}),e.jsx(s,{path:"/rh_demo",element:e.jsx(As,{})}),e.jsx(s,{path:"/recon",element:e.jsx(Ss,{})}),e.jsx(s,{path:"/invite/:invitation_id?",element:e.jsx(Ps,{})}),e.jsx(s,{path:"/go/:company_name?/:video_url?/",element:e.jsx(qt,{})}),e.jsx(s,{path:"/live/track/mila/:task_url",element:e.jsx(ut,{})}),e.jsx(s,{path:"/live/track/rh/:task_url",element:e.jsx(Y,{})}),e.jsx(s,{path:"/live/track/Restoration%20Hardware/:task_url",element:e.jsx(Y,{})}),e.jsx(s,{path:"/live/track/Complete%20Solar/:task_url",element:e.jsx(N,{})}),e.jsx(s,{path:"/live/track/Complete Solar/:task_url",element:e.jsx(N,{})}),e.jsx(s,{path:"/live/track/CS/:task_url",element:e.jsx(N,{})}),e.jsx(s,{path:"/live-track/quote/:company_name/:quote_url",element:e.jsx(xt,{})}),e.jsx(s,{path:"/live/track/:company_name/:task_url",element:e.jsx(ba,{})}),e.jsx(s,{path:"/live-track/project/experience-:company_name/:project_url",element:e.jsx(Q,{})}),e.jsx(s,{path:"/live-track/project/:company_name/:project_url",element:e.jsx(Q,{})}),e.jsx(s,{path:"/live/track/:task_url/forms/:form_id",element:e.jsx(O,{})}),e.jsx(s,{path:"/booking/route/:booking_route_url",element:e.jsx(P,{})}),e.jsx(s,{path:"/booking/route",element:e.jsx(P,{})}),e.jsx(s,{path:"/booking/:booking_url",element:e.jsx(y,{})}),e.jsx(s,{path:"/booking-experience/:booking_url",element:e.jsx(y,{})}),e.jsx(s,{path:"/booking/route-experience/:booking_route_url",element:e.jsx(P,{})}),e.jsx(s,{path:"/easybook/calendars",element:e.jsx(Ns,{})}),e.jsx(s,{path:"/route/form",element:e.jsx(y,{})}),e.jsx(s,{path:"/easybook",element:e.jsx(y,{})}),e.jsx(s,{path:"/verification",element:e.jsx(qs,{})}),e.jsx(s,{path:"/user-verification",element:e.jsx(Rs,{})}),e.jsx(s,{path:"/payment-required",element:e.jsx(ws,{})}),e.jsx(s,{path:"/test",element:e.jsx(Ts,{})}),e.jsx(s,{path:"/white-labeling-configuration",element:e.jsx(Es,{})}),e.jsx(s,{path:"/shopify/install",element:e.jsx(Ds,{})}),e.jsx(s,{path:"/documentations",element:e.jsx(H,{})}),e.jsx(s,{path:"/documentations/:page_id",element:e.jsx(H,{})}),e.jsx(s,{path:"/xero/install",element:e.jsx(Is,{})}),e.jsx(s,{path:"/xero_payroll/install",element:e.jsx(Ls,{})}),e.jsx(s,{path:"/sign-pdf",element:e.jsx(Ms,{})}),e.jsx(s,{path:"/onedrive/install",element:e.jsx(Os,{})}),e.jsx(s,{path:"/projects/:project_id/forms/:form_id",element:e.jsx(G,{})}),e.jsx(s,{path:"/live-track/project/:project_url/forms/:form_id",element:e.jsx(G,{})}),e.jsx(s,{path:"/account-configuration",element:e.jsx(Bs,{})}),e.jsx(s,{path:"/motive/install",element:u.createElement(Us)}),e.jsx(s,{path:"/zendesk/install",element:u.createElement(zs)}),e.jsx(s,{path:"/sharepoint/install",element:e.jsx(Fs,{})}),e.jsx(s,{path:"/netsuite/install",element:u.createElement($s)}),!1,e.jsx(s,{path:"/nimble/install",element:u.createElement(Vs)}),e.jsx(s,{path:"/microsoft_365_calendars/install",element:e.jsx(Ws,{})}),e.jsx(s,{path:"/:integrationType/install",element:u.createElement(Js)}),e.jsx(s,{path:"/:integrationType/disconnect",element:u.createElement(Hs)}),e.jsx(s,{path:"/company-usage",element:e.jsx(Gs,{})}),e.jsx(s,{path:"/revenue",element:e.jsx(jt,{})}),e.jsx(s,{path:"/auth-request",element:e.jsx(ma,{})}),e.jsx(s,{path:"/revenue-stats",element:e.jsx(Qs,{})}),e.jsx(s,{path:"/donate-for-causes",element:e.jsx(Ys,{})}),e.jsx(s,{path:"/customer-portal/booking-experience/:booking_url",element:e.jsx(b,{})}),e.jsx(s,{path:"/quotes/:quote_id",element:e.jsx(Ks,{})}),e.jsx(s,{path:"/quote/new",element:e.jsx(Xs,{})}),e.jsx(s,{path:"/quotes/list/mobile",element:e.jsx(Zs,{})}),e.jsx(s,{path:"/photo-gallery/:page_id",element:e.jsx(et,{})}),e.jsx(s,{path:"*",element:e.jsx(st,{})})]})})})})})}const Ca=document.getElementById("app-container"),ka=ge.createRoot(Ca);ka.render(e.jsx(ya,{}));

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.