const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/Tooltip.BqbyDd-I.js","chunks/vendor.DgLAwKg5.js","chunks/shared.niSuaOjC.js","chunks/vendor-alpha.Dt9jan33.js"])))=>i.map(i=>d[i]);
import{aM as D,j as e,aN as F,ad as L,aO as y,r as u,aP as j,aQ as H,aL as q,aR as _}from"./chunks/vendor.DgLAwKg5.js";import{p as U,dn as Y,dp as G,dq as V,dr as g,ds as z,dt as I,cs as h,du as P,u as T,j as m,a2 as J,y as W,dv as $,dw as K,aP as Q,a as f,R as Z,d6 as X,dx as ee}from"./chunks/shared.niSuaOjC.js";import{Z as S,_ as R,$ as N,a0 as te,a1 as ae,W as ne,X as oe,a2 as ie}from"./chunks/vendor-alpha.Dt9jan33.js";const re="modulepreload",se=function(a){return"https://rental-web.equipmentshare.com/"+a},v={},le=function(o,n,l){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.allSettled(n.map(i=>{if(i=se(i),i in v)return;v[i]=!0;const p=i.endsWith(".css"),O=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${O}`))return;const d=document.createElement("link");if(d.rel=p?"stylesheet":re,p||(d.as="script"),d.crossOrigin="",d.href=i,r&&d.setAttribute("nonce",r),document.head.appendChild(d),p)return new Promise((k,B)=>{d.addEventListener("load",k),d.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${i}`)))})}))}function c(t){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=t,window.dispatchEvent(r),!r.defaultPrevented)throw t}return s.then(t=>{for(const r of t||[])r.status==="rejected"&&c(r.reason);return o().catch(c)})};function x({children:a}){const o=D({palette:U,typography:Y,breakpoints:G,zIndex:V});return e.jsx(F,{theme:o,children:a})}const ce={back:"Back",edit:"Edit",rentNow:"Rent Now",rentEquipment:"Rent Equipment",redirecting:"Redirecting...",locationHelperTexts:{default:"Enter city or zip code",invalidLocation:"Please enter a valid city or zip code"},upload:{labelStart:"Drag & drop or",labelMid:"Choose File",labelEnd:"to upload",label:"Drag & drop or {chooseFile} to upload",maxFileSize:"Maximum file size is {maxFileSize}",invalidError:"No document uploaded",uploading:"Uploading...",uploadComplete:"Upload complete",unsupportedFile:"Unsupported file type. Upload a {fileTypes}",fileTooLarge:"File to large. Maximum file size is {filesize}",uploadError:"Error during file upload."},noMatchingResultsFound:"No matching results found.",addressCouldNotBeValidated:"The address you entered could not be validated. Please check the address and try again.",unresolvedCoordinatesError:"The selected address could not be resolved to valid coordinates. Please choose an address from the dropdown or enter a different address."},de={signInContent:"Already have an account?",signInLink:"Sign in",signUpContent:"New to EquipmentShare?",signUpLink:"Create account"},ue={haveQuestions:"Have questions? ",phoneText:"Talk with your local branch "},me={setLocation:"Set location for accurate pricing"},pe={continueAsGuest:"Checkout as guest",continueToCheckout:"Continue to checkout",branchDetailsLeftHeader:"ORDERING FROM",cartModal:{dateNotification:"All the equipment in your cart will follow the selected dates. To rent for a different timeframe, please place a separate order.",locationRequired:"Location required",selectFutureDates:"Your selected rental dates have already passed. Please select future dates to move forward with your reservation."},salesStaffEmailOption:{label:"Are you currently working with an EquipmentShare Account Manager or have you worked with one in the past?",selected:{value:"Yes",description:"I will provide my Account Manager’s email address or contact information.",emailInputLabel:"Account Manager’s Email Address (recommended for fastest response)",incorrectEmailMessage:"Enter Valid Equipmentshare Email",alternateDataLabel:"Alternative Account Manager Contact Details",alternateDataPlaceholder:"John Account Manager from KC branch"},notSelected:{value:"No",description:"Assign me an Account Manager"}}},he={priceMismatchMessage:{title:"Cart Prices Updated",description:"Some equipment prices in your cart have changed since you added them. Please review the updated pricing to continue with your order.",confirmButtonLabel:"REVIEW CART",cancelButton:"Cancel"}},fe={all:"All",seeAll:"See All",seeMore:"See More",showing:"Showing",of:"of",filters:{titleDesktop:"Filters",titleMobile:"Filter By Specs",bottomSheetTitle:"Specs Filters",clearFiltersLabelDesktop:"Clear all filters",clearFiltersLabelMobile:"Clear",applyFiltersLabel:"Apply filters"}},be={message:"Coming soon: {name} page"},ye={myAccount:"My account",createAccount:"Create account",alreadyHaveAnAccount:"Already have an account? ",signIn:"Sign in"},ge={locationLabel:"Where’s your jobsite",locationDefaultPlaceholder:"City or zip code",dateLabel:"Dates",submitButton:"Rent Equipment",form:{startDateLabel:"Start date",endDateLabel:"End date"}},Ee={label:"Where is your jobsite?",nolocationsFound:"No locations found",noAddressFoundHelperText:"Don't have an address? Enter jobsite coordinates (or select on map)",noAddressText:"No addresses available",invalidAddress:"Invalid jobsite address. Please enter in valid latitude and longitude or select on map."},ve={findOnMapButton:"Find on map",helperText:"Place a pin on your jobsite location",drawerHeader:"Place Jobsite Location Pin",saveLocationButton:"Save Location"},Ae={selectedAddressMissing:"Selected address is missing",please:"please",myProfile:'access "my profile" to edit'},Ce={sectionTitles:{rentalAccount:"Your Rental Account",t3Tech:"Your T3 Tech"},cards:{orders:{title:"Order history",description:"View a detailed record of your previous and ongoing orders"},rentalManagement:{title:"Rental Management",description:"View and manage rentals, reservations and request equipment service"},invoices:{title:"Invoices & Payments",description:"View all transactions, manage payments and settings"},profile:{title:"Profile",description:"Edit name, contact info, company and default branch"},rentalAgreements:{title:"Rental Agreements",description:"Confirm and electronically sign rental agreements tied to your orders"},analytics:{title:"Analytics",description:"Access rental insights on your equipment's history, usage and spend"},rentalInsurance:{title:"Rental Insurance (COI)",description:"Upload / update your Certificate of Insurance for a quicker rental process"},fleetMap:{title:"Fleet Map",description:"Monitor activity and utilization for all your rentals from EquipmentShare"},affiliateCompaniesReport:{title:"Affiliate Companies Report",description:"Explore rental data on affiliate companies and download the On Rent Report"},emissionsReport:{title:"Emissions Report",description:"Explore fuel consumption and emissions data for your rentals"},creditAccount:{title:"Apply & Manage Credit Account",description:"Set up your account with us so you can pay with monthly invoices."},cameras:{title:"Cameras",description:"Monitor video feeds for your project cameras"},p66:{title:"Phillips 66 Rental Request",description:"Submit equipment rental requests for Phillips 66 facilities and projects"}},requestService:"Request Service"},Le={labels:{accountHolder:"Account holder",signIn:"Sign In",welcome:"Welcome"},subtitles:{t3Tech:"Your T3 Tech",rentalAccount:"Your Rental Account"},signUp:{newCustomer:"New customer?",startHere:"Start here."},links:{manageProfile:"Manage Profile",fleetMap:"Fleet Map",account:"Account",orders:"Orders & Quotes",invoices:"Invoices & Payments",profile:"Profile",myProfile:"My Profile",notifications:"Notifications",helpCenter:"Help Center",logout:"Logout"}},Ie={signupTermsText:"By continuing, you agree to EquipmentShare’s",signupTermsLink:"Conditions of Use",getStarted:{title:"Get Started",pageTitle:"Get Started",emailInputLabel:"Enter your email address",submitButtonLabel:"Continue",footerText:"Already have an account?",footerLink:"Sign in.",form:{email:{invalidEmailErrorMessage:"Please enter a valid email address.",maxLengthErrorMessage:"Exceeded maximum limit of 50 characters"}}},verifyEmail:{title:"Check your Email",pageTitle:"Check Email",subtitle:"Please check your inbox to proceed",descriptionPart1:"We've just sent an email to",descriptionPart2:"with a link to continue.",footerText:"Didn’t receive: check spam or ",footerLink:"click to resend."},createAccount:{title:"Create your account",pageTitle:"Create Account",companyTitle:"Create your company account",form:{firstName:{label:"First name",requiredErrorMessage:"First Name is required"},lastName:{label:"Last name",requiredErrorMessage:"Last Name is required"},companyName:{label:"Company name",maxLengthErrorMessage:"Exceeded maximum limit of 50 characters"},password:{label:"Password",minLengthHelperText:"Minimum 8 characters",matchCaseHelperText:"Both upper and lowercase letters",matchNumberHelperText:"A number",matchSpecialCaseHelperText:"A symbol"},confirmPassword:{label:"Confirm password",mustMatchHelperText:"passwords must match"},applyCredit:{heading:"Interested in applying for a credit account?",yes:{title:"Yes",description:"Credit application to follow"},no:{title:"No",description:"I plan to pay by card or bank account only"}},alertsLabel:"Receive text alerts and notifications",phone:{label:"Phone number",requiredErrorMessage:"Phone number is required",invalidErrorMessage:"Invalid phone number"}},terms:{description:"By clicking 'Create Account', you are creating an account, and you agree to our",and:"and",termsOfService:"Terms of Service",privacyPolicy:"Privacy Policy"},signInLink:"Back to sign in"},createCompanyAccount:{pageTitle:"Create Company Account"},linkExpiredOnSelfSignup:{title:"My Account",subtitle:"Link has expired or has already been used",emailInputLabel:"Re-enter your email address",submitButtonLabel:"Resend Email Verification",footerText:"Need help?",footerLink:"Connect with support."},linkExpiredOnInviteSignup:{title:"Invite expired",subtitle:"Please contact your company admin",description:"Link expired. Please contact your company Admin for a new invite to this company account.",footerText:"Need help?",footerLink:"Connect with support."},companyExistsOnSelfSignup:{title:"Company exists",subtitle:"Please contact your company admin",description:"Company with name matching your email domain exists. Please contact your company admin to get an invite to this company account.",footerText:"Need help?",footerLink:"Connect with support."},confirmAccount:{title:"Account Confirmed",pageTitle:"Account Confirmed",subtitle:"Thank you!",description:"Your account has been successfully created! You are now being redirected.",footerText:"Not redirected?",footerLink:"Click here to continue."},inviteTeam:{title:"Invite your team",pageTitle:"Invite Team",subtitle:"Thank you!",inputLabel:"Email address",inputPlaceHolder:"Email, comma separated",helperText:"Maximum 10 entries*",description:"Your account has been successfully created! You are now being redirected.",addButtonLabel:"Add",removeButtonLabel:"Remove",submitButtonLabel:"Invite Teammates",footerText:"I would like to",footerLink:"skip and do this later"},inviteConfirmation:{title:"Invitations sent!",footerLink:"Continue To My Account"}},Pe={fullAccess:{label:"Full Access",description:"Grants comprehensive control over the rental platform, including managing rentals, billing, and team members."},manager:{label:"Manager",description:"Allows oversight and management of rental operations, including inviting team members at the User role."},user:{label:"User",description:"Enables renting equipment and managing personal transactions with limited access to other features. Users can also invite team members at the User role."},admin:{label:"Admin"},salesPerson:{label:"Sales Person"},operations:{label:"Operations"},driver:{label:"Driver"},pending:{label:"Pending"}},Te={message:"Redirecting..."},Se={preferredLabel:"Preferred",backendError:"Failed to update information, please try again",backButtonLabel:"Back",closeButtonLabel:"Close",editButtonLabel:"Edit",mobileViewSectionLabels:{personalInfo:"Personal Info",companyInfo:"Company info",billingInfo:"Billing info",manageTeam:"Manage team",manageJobsites:"Manage jobsites",notifications:"Notifications"},pageHeader:{manageYourProfile:"Manage Your Profile",manageYourOrdersAndRentals:"Your Orders & Rentals"},breadcrumbLinks:{yourAccount:"YOUR ACCOUNT",yourProfile:"YOUR PROFILE",yourOrders:"YOUR ORDERS",yourRentals:"ACTIVE RENTALS"},addressForm:{addressLabel:"Address",coordinatesLabel:"Coordinates",noAddress:"No address?",enterJobsiteCoordinates:"Enter jobsite coordinates",enterJobsiteAddress:"Enter jobsite address instead"},mobileLabel:"Mobile Number",emailLabel:"Email",updateEmailTextSubLabel:"Request email update",smsLabel:"SMS",firstNameLabel:"First Name",lastNameLabel:"Last Name",cityLabel:"City",stateLabel:"State",zipCodeLabel:"Zip Code",changeRemoveButton:"Change / Remove",updateModal:{description:"Changes made to here will be made across your account."},personalInfo:{header:"Personal Info",nameLabel:"Account Holder"},companyInfo:{header:"Company Info",companyNameLabel:"Company Name",companyAddressLabel:"Company Address",companyPhoneLabel:"Company Phone"},billingInfo:{header:"Billing Info",pointOfContactNameLabel:"Point of Contact",billingPointOfContactLabel:"Billing Point of Contact",billingPhoneLabel:"Billing Phone",billingAddressLabel:"Billing Address",billingEmailLabel:"Billing Email"},jobsiteInfo:{header:"Your Jobsites",addNewJobsiteButton:"Add new jobsite",addJobsiteLabel:"Add jobsite",emptyListLabel:"To add jobsites, select “Add new jobsite” below.",emptyListLabelForUserRole:"Your company admin has not added any jobsites yet.",jobsiteNameLabel:"Jobsite Name",updateButton:"UPDATE JOBSITE",removeButton:"REMOVE JOBSITE",deleteJobsiteButton:"DELETE JOBSITE",setPreferredJobsiteLabel:"Set as preferred jobsite",jobsiteAddressLabel:"Jobsite address",jobsiteCoordinatesLabel:"Jobsite coordinates",enterJobsiteCoordinatesText:"Don’t have an address? Enter jobsite coordinates (or select on map)",enterJobsiteAddressText:"Enter jobsite address instead",addressLine1Label:"Address Line 1"},manageTeam:{header:"Manage Your Team",mobileHeader:"My Team",changeRemoveButton:"Change / Remove",modal:{addTeamHeader:"Add team member(s)",editTeamHeader:"Edit team member",teamInvitationStatusHeader:"Invitation(s) sent!",newMembersInvited:"new members invited",membersInviteFailed:"invite failed",inviteSuccess:"Invite sent",inviteFailed:"Invite failed"},addButton:"add new team member",userRoleLabel:"User Role",deleteUserButton:"DELETE USER",pendingInvitesTitle:"Pending Invites",activeMembersTitle:"Active Team Members",filterByRole:{filterButtonLabel:"Filter by role",menuTitle:"Select Roles To Filter By",allRoles:"All Roles",submitButtonLabel:"Apply filter"}},notificationInfo:{header:"Notifications",emailNotificationsLabel:"Email notifications ",emailNotificationsOn:"(on)",emailNotificationsOff:"(off)",smsNotificationsLabel:"SMS notifications ",smsNotificationsOn:"(on)",smsNotificationsOff:"(off)",consentMessage:"By opting into text messages, you agree to receive automated messages from EquipmentShare. To receive messages at a different number, ",consentMessagePhoneNumberUpdate:"update your phone number",consentMessageSuffix:" on your profile page above. ",primaryEmailLabel:"Current primary email:",primaryPhoneLabel:"Current primary phone number:",rentalNotificationHeader:"Rental Notifications",marketingNotificationsHeader:"Get the Latest",rentalNotificationModalHeader:"Rental notifications",marketingNotificationsModalHeader:"Get the latest notifications"},updateForm:{saveButtonLabel:"Save",savingButtonLabel:"Saving",saveChangesButtonLabel:"SAVE CHANGES",updatingButtonLabel:"Updating",addingButtonLabel:"Adding",removingButtonLabel:"Removing",deletingButtonLabel:"Deleting",invalidPhone:"Please provide a valid phone number",invalidAddress:"Please provide a valid address"}},Re={orderHistory:"Your Order History",yourActiveRentalsLabel:"Your Active Rentals",assetIdLabel:"Asset:",rentalLabel:"Rental",startDateLabel:"Start Date",endDateLabel:"Est End Date",endDateLabelMobile:"End Date",backendError:"Failed to update information, please try again",backButtonLabel:"Back",tableHeaders:{orders:"ORDERS",active:"ACTIVE"},details:"Details",close:"Close",equipment:"Equipment",noOrderMessage:"No orders yet...",noActiveRentalsMessage:"No active rentals yet...",pageHeader:{manageYourOrdersAndRentals:"Your Order History",activeRentalsHeader:"Rental Management"},breadcrumbLinks:{yourAccount:"YOUR ACCOUNT",yourOrders:"YOUR ORDERS"},orderTableHeaders:{orderPlaced:"Order Placed",equipment:"Equipment",quantity:"Quantity",startAndEndDate:"Start / End Date",jobsite:"Jobsite",status:"Status"},activeTableHeaders:{equipment:"Equipment",startDate:"Start Date",endDate:"End Date",jobsite:"Jobsite",rentalId:"Rental #",actions:"Actions"},activeRentals:"ACTIVE RENTALS",active:"Active",bulkItem:"Bulk Item",notApplicable:"NA",updateInDesktopFormLabels:{modalHeader:"Add or Edit Purchase Order",orderNumber:" ",purchaseOrder:"Purchase Order",startDate:"Start Date",endDate:"End Date",amount:"Budget Amount (USD)",saveButtonLabel:"Save Changes",savingButtonLabel:"Saving"},scheduleOffRentModal:{pickUpDateLable:"Schedule Your Pick Up Date",notes:"Notes:",saveButtonLabel:"Schedule Pick Up",savingButtonLabel:"Scheduling",placeholders:{notes:"This is a space for a user note"},modal:{scheduleHeader:"Reschedule Pick Up",rescheduleHeader:"Schedule Pick Up"}},purchaseOrderExistsErrorMessage:"Purchase Order already exists."},Ne={pageHeader:{manageYourCreditAccount:"Manage Your credit account"},actions:{applyForCredit:"Apply for credit",returnToApplication:"Return to application",getCreditHelp:"Get credit help",viewApplication:"View application",reapplyForCredit:"Reapply for credit"},creditInfo:{header:"Credit Info & Status",status:"Completed Steps",limit:"Credit Limit",itemTitle:"Item Title"},breadcrumbLinks:{yourAccount:"YOUR ACCOUNT",manageCreditAccount:"Apply & manage Credit account"},companyDetails:{title:"Company details",company:"Company",businessLegalName:"Business Legal Name",dba:"DBA",address:"Address",city:"city",state:"state",email:"email",phone:"phone",contactName:"Contact Name",zipCode:"zip code",federalTaxID:"Federal Tax ID",taxID:"Tax ID",taxExempt:"Tax Exempt",bankruptcy:"Bankruptcy",natureOfBusiness:"Nature of Business",stateOfOrganization:"State of Organization",isSalesTaxExempt:"Sales Tax Exempt?",hasFiledBankruptcy:"Has this Company, it’s Owners or Officers Filed for Bankruptcy?",salesTaxExemptOptions:{yes:{title:"yes",content:"Document required for exemption"},no:{title:"no",content:"Will be charged sales tax"}},hasFiledBankruptcyOptions:{yes:{title:"yes"},no:{title:"no"}},salesContactOptions:{yes:{title:"yes"},no:{title:"no"}},salesContact:{subFormTitle:"Sales Member Details",summaryLabel:"Sales Member",hasSalesContact:"Are You Working With A Member Of Our Sales Staff?",firstName:"First Name",lastName:"Last Name",email:"Email"}},billingDetails:{title:"Billing details",invite:"Invite new contact",invited:"Invite sent to: ",inviteTeamMember:"Add team member(s)",selectInviteLabel:"Select an existing user or invite a new one",accountPayableInfo:"Accounts Payable Information",accountPayableContact:"Accounts Payable Contact",accountsPayableFirstName:"First Name ",accountsPayableLastName:"Last Name",billingAddress:"Billing Address",address:"Address",city:"city",state:"state",email:"Email",phone:"Phone",zip:"zip code",invoiceMethod:"Invoice Method",emailAndPaperCopy:"Email + Paper Copy",poRequired:"PO Required",preferredMethodOfInvoicing:"Preferred Method for Invoicing",isPORequired:"PO Required?",monthlyInvoices:"Monthly Invoices",isMonthlyStatementsRequired:"Monthly Statements Required?",preferredMethodOfInvoicingOptions:{mail:{title:"Email",content:"Electronic billing notification only"}},isPORequiredOptions:{yes:{title:"yes"},no:{title:"no"}},isMonthlyStatementsRequiredOptions:{yes:{title:"yes"},no:{title:"no"}}},insuranceDetails:{title:"Insurance details",helperText:"What is RPP?",haveMyOwnRentalInsurance:"I Have My Own Rental Insurance",insuranceCompany:"Insurance Company",insuranceContactLabel:"Insurance Contact",insuranceContactTitle:"Insurance Point of Contact",insuranceContactMessage:"We will reach out for insurance information when needed",firstName:"First Name",lastName:"Last Name",email:"email",phone:"phone",haveMyOwnRentalInsuranceOptions:{yes:{title:"yes",content:"I can provide my own COI"},no:{title:"no",content:"I accept EquipmentShare",rpperms:"RPP terms"}},insurance:"Insurance",hasOwnInsurance:"Yes (use my own)",acceptedRPPTerms:"No (accepted RPP terms)"},branchDetails:{title:"Branch Information",yourBranch:"Your Branch"},increaseCredit:{title:"Credit increase request",currentLimit:"Current Credit Limit",requestedLimit:"Current Credit Limit",reason:"Current Credit Limit",submit:"Submit request"},review:{form:{fullNameFieldLabel:"First & Last Name"}},yearsInBusiness:"Years in Business",yearsInBusinessOptions:{upto5:{label:"0-5 years",value:"0-5"},"6plus":{label:"6+ years",value:"6+"}},termsAndConditionsConsent:"By entering my name, I acknowledge that I have read and agree to the {termsAndConditions}.",personalGuaranteeConsent:"By entering my name, I acknowledge that I have read and agree to the {personalGuarantee}, and I am authorized to submit this application.",isPaperCopy:"Include paper copies",backToAccount:"Back to my account",termsAndConditions:"Terms and Conditions",personalGuarantee:"Personal Guarantee",notApplied:"Not Applied",inProgress:"In Progress",denied:"Denied",approved:"approved",deniedTooltip:"Your application has been denied. Please contact the Credit Team for more information.",ES:"ES",termsHelperText:"go here. Following the short terms can be a link to the full terms with underlined",termsHelperTextBold:"text or a small button.",submissionHelperText:"You submitted this application on",submitMyApplication:"Submit my application",yes:"Yes",no:"No",applyNow:"Apply Now",applyCreditTitle:"Get Commercial Credit Fast!",applyCreditDescription:"Apply easily online with EquipmentShare and unlock the power to rent now, pay later. Just follow the link to our quick application form."},xe={generic:ce,authenticationLinks:de,branch:ue,navbar:me,cart:pe,checkout:he,categories:fe,comingSoon:be,doMoreWithRentalAccount:ye,locationAndDateSelector:ge,locationDropdown:Ee,coordinatePicker:ve,checkoutFlowValidations:Ae,userDashboard:Ce,userDropdown:Le,signup:Ie,userRoles:Pe,loginRedirect:Te,myProfile:Se,myOrders:Re,creditApplication:Ne},we=[g.ENGLISH_US],A=window.navigator.language,E=we.includes(A)?A:g.ENGLISH_US,Me={[g.ENGLISH_US]:xe},w=z(Me[E]);var Oe={REACT_APP_CI_COMMIT_REF_SLUG:"main",REACT_APP_USE_MOCK_API:"true",REACT_APP_ENV_ENABLE_LOGGING:"1",REACT_APP_LOG_LEVEL:"debug",ESLINT_NO_DEV_ERRORS:"true",NODE_ENV:"production"};function ke(){return e.jsx(L.StrictMode,{children:e.jsx(I,{children:e.jsx(S,{store:h,children:e.jsx(R,{loading:null,persistor:P,children:e.jsx(N,{locale:E,messages:w,children:e.jsx(x,{children:e.jsxs("div",{children:[e.jsxs("div",{className:"App","data-testid":"app-container",children:["Environment: ","production"]}),e.jsxs("div",{className:"App","data-testid":"app-container1",children:["REACT_APP_CI_COMMIT_REF_SLUG: ",Oe.REACT_APP_CI_COMMIT_REF_SLUG]})]})})})})})})})}const M="rental-web-components-root",Be=document.getElementById(M);if(!Be){const a=document.createElement("div");a.id=M,document.body.appendChild(a);const o=y.createRoot(a),n=u.lazy(()=>le(()=>import("./chunks/Tooltip.BqbyDd-I.js").then(l=>l.M),__vite__mapDeps([0,1,2,3])));o.render(e.jsx(n,{}))}const C=document.getElementById("esr-root");C&&y.createRoot(C).render(e.jsx(ke,{}));const De=()=>{const[a,o]=u.useState(null),[n,l]=u.useState(null),s=T(t=>t.auth.authContext),c=t=>ae[t];return u.useEffect(()=>{var t,r;if(o((t=s==null?void 0:s.accessToken)!=null?t:null),l((r=s==null?void 0:s.idToken)!=null?r:null),s!=null&&s.accessToken){const i=document.createElement("script");return i.type="text/javascript",i.async=!0,i.innerHTML=`
        window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};

        heap.load("${c(m.HEAPER_ENV)}");
      `,document.head.appendChild(i),()=>{document.head.removeChild(i)}}else{const i=document.querySelector('script[src*="heap"]');i&&document.head.removeChild(i)}},[s]),e.jsxs(e.Fragment,{children:[e.jsx(j,{}),a&&n?e.jsx(Fe,{accessToken:a,idToken:n}):null]})},Fe=({accessToken:a,idToken:o})=>{const n=m.HEAPER_ENV;return te("EquipmentShare.com",n,{accessToken:a,idToken:o,heap:!1,intercom:!0,silent:!1}),null};function je({children:a}){const o=H(),n=J();return u.useEffect(()=>{W.setAuth0(o),n($())},[o]),u.useEffect(()=>{K()},[]),e.jsx(e.Fragment,{children:a})}function He(){const a=ne(),o=oe(),n=T(l=>l.auth.authContext);return u.useEffect(()=>{Q.setFlags(a)},[a]),u.useEffect(()=>{n&&n.email&&o&&o.identify({key:n.userId,email:n.email,companyId:n.companyId,userId:n.userId})},[o,n]),e.jsx(e.Fragment,{})}const qe=()=>{h.getState().app.appInitiated||(h.dispatch(X()),ee())},b=(a,o,n)=>{const l=Object.assign({},...Array.from(a.attributes,({name:c,value:t})=>({[c]:t})));y.createRoot(a).render(e.jsx(L.StrictMode,{children:e.jsx(I,{children:e.jsx(S,{store:h,children:e.jsx(R,{persistor:P,onBeforeLift:qe,children:e.jsx(N,{locale:E,messages:w,children:e.jsx(x,{children:e.jsx(q,{children:n===Z.AUTH?e.jsx(e.Fragment,{children:e.jsx(_,{clientId:m.AUTH0_CONFIG.CLIENT_ID,domain:m.AUTH0_CONFIG.DOMAIN,audience:m.AUTH0_CONFIG.AUDIENCE,redirectUri:window.location.origin,scope:"openid profile email",cacheLocation:"localstorage",useRefreshTokens:!0,allowUnauthorizedAccess:!0,children:e.jsxs(je,{children:[e.jsx(De,{}),e.jsx(ie,{clientSideID:m.LD_CLIENT_SIDE_ID,options:{streaming:!1},reactOptions:{useCamelCaseFlagKeys:!1},children:e.jsx(He,{})}),o(l)]})})}):o(l)})})})})})})}))},Ge=a=>{const o=()=>{(Array.isArray(a)?a:[a]).forEach(({componentType:n,selectorType:l,selector:s,component:c})=>{if(l===f.ID){const t=document.getElementById(s);t&&b(t,c,n)}if(l===f.CLASS){const t=document.getElementsByClassName(s);for(let r=0;r<t.length;r++){const i=t[r];b(i,c,n)}}if(l===f.ATTRIBUTE){const t=document.querySelectorAll(s);for(let r=0;r<t.length;r++){const i=t[r];b(i,c,n)}}})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o,{once:!0}):o()};export{le as _,Ge as r};
//# sourceMappingURL=index.AUQ6FQQi.js.map
