1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([["4442"],{374208:function(e,t,i){i.d(t,{M:function(){return s}});var n=i(785893);i(667294);var o=i(300378),l=i(754057),a=i(742068);let s=e=>(0,n.jsx)("div",{children:(0,n.jsx)(a.kA,{id:e.id,style:{borderBottom:"solid",borderBottomColor:o.I.ORANGE_BANNERBORDER,background:o.I.ORANGE_MARIGOLD},children:(0,n.jsxs)(a.nb,{children:[(0,n.jsx)(a.zg,{id:"".concat(e.id,"_icon"),src:e.icon,alt:"title-icon"}),(0,n.jsxs)(a.o_,{children:[(0,n.jsx)(a.c7,{children:e.titleText?(0,n.jsx)(a.Dx,{id:"".concat(e.id,"_title"),children:e.titleText}):null}),e.subtitleText?(0,n.jsx)(a.g9,{children:(0,n.jsx)(a.tt,{id:"".concat(e.id,"_subtitle"),style:{fontStyle:"normal"},children:e.subtitleText})}):null]}),(0,n.jsx)(a.k7,{id:"".concat(e.id,"_help"),onClick:e.handleClick,style:{cursor:"pointer"},children:(0,l.t)(l.T.common_edit)})]})})})},742068:function(e,t,i){i.d(t,{Dx:function(){return d},c7:function(){return r},g9:function(){return c},k7:function(){return x},kA:function(){return s},nb:function(){return u},o_:function(){return h},tt:function(){return p},zg:function(){return g}});var n=i(671893),o=i(300378),l=i(505033),a=i(875847);let s=n.ZP.div.withConfig({displayName:"LoadDetailsBannerStyle__PanelWrapper"})(["\n && {\n margin: 0;\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n box-shadow: none;\n background: ",";\n }\n"],e=>e.blockedUser&&a.ZP.palette.background.orangeSmoke),d=n.ZP.span.withConfig({displayName:"LoadDetailsBannerStyle__Title"})(["\n && {\n font-weight: ",";\n font-size: ","px;\n color: ",";\n }\n"],a.ZP.text.header1Tab.fontWeight,l.Bf.Content,o.I.GRAY_DARK),r=n.ZP.div.withConfig({displayName:"LoadDetailsBannerStyle__TitleContainer"})(["\n display: flex;\n align-items: center;\n margin-bottom: ","px;\n"],l.Ki.InterListElement),c=n.ZP.div.withConfig({displayName:"LoadDetailsBannerStyle__SubtitleAndIcons"})(["\n display: grid;\n grid-template-columns: auto auto auto;\n grid-column-gap: 5px;\n padding-right: 10px;\n justify-content: flex-start;\n"]),p=n.ZP.span.withConfig({displayName:"LoadDetailsBannerStyle__SubtitleText"})(["\n && {\n font-size: ","px;\n color: ",";\n }\n"],l.Bf.ContentDetail,o.I.BLACK),u=n.ZP.div.withConfig({displayName:"LoadDetailsBannerStyle__TitlePanel"})(["\n padding: 15px;\n min-height: unset !important;\n border-bottom: 'transparent';\n display: flex;\n margin: 0;\n"]),h=n.ZP.div.withConfig({displayName:"LoadDetailsBannerStyle__TitleData"})(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]),g=n.ZP.img.withConfig({displayName:"LoadDetailsBannerStyle__TitleIcon"})(["\n height: 24px;\n width: 24px;\n object-fit: contain;\n margin-right: 25px;\n"]),x=n.ZP.span.withConfig({displayName:"LoadDetailsBannerStyle__RightButton"})(["\n && {\n padding: 0 !important;\n display: flex;\n font-weight: ",";\n align-self: flex-start;\n color: ",";\n }\n"],a.ZP.text.link.fontWeight,o.I.ORANGE_MAIN)},491252:function(e,t,i){i.d(t,{N:function(){return a}});var n=i(785893);i(667294);var o=i(950311),l=i(313518);let a=e=>{var t;let i=(0,o.Ac)(e.onChange,null!==(t=e.debounceTime)&&void 0!==t?t:200);return(0,n.jsx)(l.n,{...e,onChange:i,autoComplete:"on"})}},447700:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{$:function(){return E},a:function(){return k}}),i(127530),i(202394);var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(616550),r=i(671893),c=i(415808),p=i(837093),u=i(265593),h=i(541697),g=i(908432),x=i(614829),m=i(923764),f=i(928486),y=i(702979),v=i(213751),C=i(36140),j=i(423922),L=i(300378),I=i(754057),b=i(950311),_=i(519640),T=i(144634),S=i(3923),M=i(275218),N=i(74525),P=i(553719),w=e([v,C]);[v,C]=w.then?(await w)():w;let D=r.ZP.div.withConfig({displayName:"LoadDetailsManipulations__ContactButtonsContainer"})(["\n display: flex;\n flex: 1;\n width: 100%;\n justify-content: end;\n"]),R=e=>(0,o.jsx)(f.Kk,{id:e.id,onClick:e.handler,disabled:e.isDisabled,style:{maxWidth:e.maxWidth},children:(0,o.jsxs)(f.gP,{children:[(0,o.jsx)("img",{src:e.icon,alt:e.text}),(0,o.jsx)(f.bO,{id:"title",children:e.text})]})}),k=e=>{let t;let i=(0,y.ds)();t=e.status===h.Px.Online?(0,I.t)(I.T.postLoads_manipulation_SetOffline):(0,I.t)(I.T.postLoads_manipulation_SetOnline);
1let n=e.status!==h.Px.Online&&e.status!==h.Px.Offline,l=e.shouldDisplayMessageOrBidButton?"min-content":"unset";return(0,o.jsxs)(f.vc,{width:i.width,children:[(0,o.jsxs)(f.p3,{style:{maxWidth:l},children:[e.shouldDisplayStatusAndRefresh?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R,{id:"set_".concat(e.status===h.Px.Online?"offline":"online"),text:t,icon:n?N.Z:P.Z,handler:e.handleLoadStatusChange,isDisabled:n,maxWidth:l}),(0,o.jsx)(R,{id:"refresh_age",text:(0,I.t)(I.T.postLoads_renew),icon:M.Z,handler:e.handleLoadRefreshAge,maxWidth:l})]}):null,(0,o.jsx)(R,{id:"edit",text:(0,I.t)(I.T.postLoads_manipulation_Edit),icon:S.Z,handler:e.openLoadEditPanel,maxWidth:l}),(0,o.jsx)(R,{id:"delete",text:(0,I.t)(I.T.postLoads_manipulation_Delete),icon:_.Z.trash,handler:e.handleLoadDelete,maxWidth:l}),(0,o.jsx)(R,{id:"clone",text:(0,I.t)(I.T.postLoads_manipulation_Clone),icon:T.Z,handler:e.openLoadClonePanel,maxWidth:l})]}),e.shouldDisplayMessageOrBidButton?(0,o.jsx)(E,{currentLoad:e.currentLoad}):null]})},E=e=>{var t,i,n,r;let h=(0,d.k6)(),y=(0,m.RG)("/communication/"),_=e.currentLoad,T=(0,b.v9)(e=>e.bids.biddingSummary.listAll),S=(0,b.v9)(e=>e.bids.biddingSummary.listAll.isLoading),M=null!==(t=(0,a.first)(T.ids))&&void 0!==t?t:void 0,N=(0,s.I0)(),[P,w]=(0,l.useState)(!1),[R,k]=(0,l.useState)("");if((0,l.useEffect)(()=>{var e;(null==_?void 0:_.rateNegotiations)&&P!==(null==_?void 0:null===(e=_.rateNegotiations)||void 0===e?void 0:e.numberOfBids)>0&&w(_.rateNegotiations.numberOfBids>0),!S&&R!==(null==_?void 0:_.id)&&_&&(k(_.id),N((0,g.xw)({loadId:_.id})))},[_]),!_||!_.conversation)return null;let E=null!==(i=_.conversation.receivedConversationCount)&&void 0!==i?i:0,Z=null!==(n=_.conversation.sentConversationCount)&&void 0!==n?n:0,A=null!==(r=_.conversation.unreadConversationCount)&&void 0!==r?r:0,z=()=>{let e={tab:j.y.InteractiveBids,summary:"summary",bidID:M,offerID:M,loadID:_.id,origin:v.g.PostLoads,edit:"offer"};M&&h.push({pathname:"".concat((0,d.Gn)(u.Z5.BIDS,e)),search:C.bidsEncoder.convertObjectRequestToUrlParams({bidId:M,loadId:_.id,redirectLoadDetailsPath:h.location.pathname,redirectLoadDetailsSearch:h.location.search})})};return(0,o.jsxs)(D,{children:[E+Z>0?(0,o.jsx)(x.I,{id:"messages",style:{minWidth:140,backgroundColor:L.I.GREEN_MAIN},icon:{regular:p.Z},title:(0,I.t)(I.T.common_conversations_title),isFullSize:!0,onClick:()=>{y()},iconAccessory:A>0?(0,o.jsx)(f.i3,{children:A}):null}):null,(0,o.jsx)("div",{style:{width:"4px"}}),P?(0,o.jsx)(x.I,{id:"bid_button",icon:{regular:c.Z},title:(0,I.t)(I.T.Header_Bids),onClick:()=>z(),isFullSize:!0,style:{minWidth:140,backgroundColor:L.I.GREEN_MAIN},iconAccessory:_.rateNegotiations&&_.rateNegotiations.numberOfUnreadBids>0?(0,o.jsx)(f.i3,{children:_.rateNegotiations.numberOfUnreadBids}):null}):null]})};n()}catch(e){n(e)}})},922588:function(e,t,i){i.d(t,{v:function(){return f}}),i(127530);var n=i(785893),o=i(667294),l=i(496486),a=i(730381),s=i.n(a),d=i(671893),r=i(378071),c=i(934989),p=i(919541),u=i(829243),h=i(319061),g=i(300378),x=i(754057);let m=d.ZP.div.withConfig({displayName:"LoadDetailsVisibilityRules__RulesetContainer"})(["\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: space-between;\n align-items: baseline;\n margin-top: 20px;\n margin-left: 4px;\n"]),f=e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.xE,{}),(0,n.jsxs)(m,{children:[(0,l.map)(e.appliedRuleset.rules,(t,i)=>(0,n.jsx)(y,{rule:t,index:i,length:e.appliedRuleset.rules.length},i)),e.isLoadOffline?(0,n.jsx)(h.xv,{textStyle:h.pn.Error,style:{paddingBottom:"20px",textAlign:"center"},id:"offline_warning",children:(0,x.t)(x.T.loadVisibilityRules_offlineLoadWarning)}):null]})]}),y=e=>{var t;let{rule:i,index:l,length:a}=e,[d,u]=(0,o.useState)((0,r.wzp)(null!==(t=i.startTime)&&void 0!==t?t:""));return(0,o.useEffect)(()=>{if(!d&&i.startTime){let e=setTimeout(()=>{u(!0)},(0,r.EbH)(i.startTime,s()(Date.now()).utc().toISOString()));return()=>clearTimeout(e)}},[i.startTime]),(0,n.jsx)(c.i,{index:l,rule:i,icon:d?(0,n.jsx)("img",{src:p.Z,style:{marginTop:-3}}):void 0,length:a,connectorColor:d?void 0:g.I.GRAY_DARK,isRuleApplied:d},l)}},785625:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{i:function(){return c}});var o=i(785893);i(667294);
1var l=i(541697),a=i(702428),s=i(754057),d=i(519640),r=e([a]);a=(r.then?(await r)():r)[0];let c=e=>{let t=e.loadStatus!==l.Px.Offline||e.loadProgress===l.lrW.Assigned||e.loadProgress===l.lrW.Delivered?void 0:{id:"set_online_truck_locator",title:(0,s.t)(s.T.postLoads_manipulation_SetOnline),onClick:e.handleLoadStatusChange};return(0,o.jsx)(a.E,{id:"truck_locator",titleText:(0,s.t)(s.T.postLoads_TruckLocatorTitle),subtitleText:(0,s.t)(s.T.postLoads_TruckLocatorSubTitle),loadProgress:e.loadProgress,icon:d.Z.searchTrucks,isOpened:!1,handleClick:e.handleClick,status:e.loadStatus!==l.Px.Online?a.F.OFFLINE:void 0,isBlocked:e.loadStatus!==l.Px.Online,rightButtonProps:t})};n()}catch(e){n(e)}})},423196:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{H:function(){return I}});var o=i(785893),l=i(667294),a=i(671893),s=i(793479),d=i(877281),r=i(378071),c=i(550988),p=i(702428),u=i(917543),h=i(66543),g=i(657104),x=i(574480),m=i(928486),f=i(320327),y=i(300378),v=i(754057),C=i(950311),j=e([p,u,g]);[p,u,g]=j.then?(await j)():j;let L=(0,a.ZP)(f.xv).withConfig({displayName:"BrokerMarketRates__PageText"})(["\n display: flex;\n line-height: 21px;\n color: ",";\n margin: 18px 19px 14px 16px;\n"],y.I.LIGHT_BLACK),I=e=>{var t,i,n,a;let y=(0,C.v9)(e=>e.user.accesses.isRateCheckAvailable),j=(0,C.v9)(e=>e.marketRates.expediteAllRate),I=(0,C.v9)(e=>e.marketRates.isLoadingExpediteAllRate),b=null!==(a=(0,C.v9)(t=>t.loadInfo.loadInfoMap.get(e.load?e.load.id:"")))&&void 0!==a?a:c.Ae,{shouldShowExpediteRate:_,equipment:T}=(0,x.wH)(e.load),S=(0,r.Au$)(null===(t=e.load)||void 0===t?void 0:t.equipments),M=_&&j,N=(0,l.useMemo)(()=>{if(M)return(0,v.t)(v.T.marketRates_widgets_expediteAll_estRateByExpedite,{rate:(0,d.l5)(null==j?void 0:j.estRatePerMile)});if(S){var e,t;return y?(0,v.t)(v.T.common_marketRate_byRateCheck,{rate:(0,d.l5)(null===(t=b.rateCheck)||void 0===t?void 0:null===(e=t.payload)||void 0===e?void 0:e.avgRatePerMile)}):(0,v.t)(v.T.common_marketRate_available)}return(0,v.t)(v.T.common_marketRate_notAvailable)},[M,null==j?void 0:j.estRatePerMile,S,y,null===(n=b.rateCheck)||void 0===n?void 0:null===(i=n.payload)||void 0===i?void 0:i.avgRatePerMile]),P=b.isLoadingRateCheck||I;return(0,o.jsx)(p.E,{id:"market_rates",titleText:(0,v.t)(v.T.common_marketRate_title),subtitleText:N,icon:h.Z,isOpened:e.isOpened,handleClick:()=>{e.handleChange(s.h$.MarketRates,!e.isOpened)},status:P?p.F.LOADING:p.F.AVAILABLE,children:(0,o.jsxs)(m.cS,{children:[(0,o.jsx)(L,{id:"content",textStyle:f.pn.Default,children:(0,v.t)(v.T.common_marketRate_content)}),M?(0,o.jsx)(u.r,{expediteAllRate:j,equipment:T,isLoading:I}):(0,o.jsx)(g.$,{load:e.load,loadInfo:e.loadInfo,isPermitted:y})]})})};n()}catch(e){n(e)}})},917543:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{r:function(){return N}}),i(202394);var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(671893),r=i(148635),c=i(877281),p=i(378071),u=i(702428),h=i(941650),g=i(80061),x=i(166209),m=i(928486),f=i(86740),y=i(320327),v=i(34496),C=i(610944),j=i(836049),L=i(300378),I=i(754057),b=i(950311),_=i(519640),T=e([j,u]);[j,u]=T.then?(await T)():T;let S=d.ZP.div.withConfig({displayName:"ExpediteAllRate__Column"})(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding-top: 20px;\n"]),M=(0,d.ZP)(S).withConfig({displayName:"ExpediteAllRate__FullWidthColumn"})(["\n width: 100%;\n"]),N=e=>{var t;let i=(0,s.I0)(),n=(0,f.BF)(),a=(0,b.v9)(e=>e.applicationSettings.expandedSections[r.I6.ExpediteAllRate]),d=(0,l.useMemo)(()=>{var t;return w(null===(t=e.expediteAllRate)||void 0===t?void 0:t.laneMiles,e.equipment)},[null===(t=e.expediteAllRate)||void 0===t?void 0:t.laneMiles,e.equipment]),{status:c,subtitle:p}=(0,l.useMemo)(()=>P(e.isLoading,e.expediteAllRate),[e.isLoading,e.expediteAllRate]);return(0,o.jsx)(u.E,{id:"expedite_all_rate",icon:C.Z,status:c,isOpened:a,titleText:(0,I.t)(I.T.marketRates_widgets_expediteAll_title),subtitleElement:(0,o.jsx)(h.QE,{id:"expedite_all_subtitle",style:{fontStyle:c===u.F.AVAILABLE?"normal":"italic",paddingTop:2},children:p}),handleClick:()=>{c===u.F.UNAVAILABLE&&n.openingPopup({body:(0,o.jsx)(x.W,{closingPopup:n.closingPopup}),width:f.F$.SMALL,isDismissible:!0,hasCloseButton:!0}),i((0,r.eQ)(r.I6.ExpediteAllRate,!a))}
1,headerBackground:L.I.GRAY_PANEL,shouldHideRightButton:c===u.F.UNAVAILABLE,iconStyle:{height:50,width:50,marginRight:10},panelTitleStyle:{height:40},centerAlignTitleItems:!0,children:(0,o.jsx)(m.cS,{children:c===u.F.AVAILABLE?(0,o.jsx)(m.zY,{children:(0,o.jsxs)(M,{style:{paddingTop:5},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,o.jsx)(y.xv,{textStyle:y.pn.TextContentDetail,style:{color:L.I.LIGHT_BLACK},id:"expedite_all_est_title",children:(0,I.t)(I.T.common_marketRate_cargoChief_rateEst)}),(0,o.jsx)(m.sz,{id:"info",alt:"info",src:_.Z.info_small,style:{margin:"1px 0 auto 5px"},onClick:()=>(0,v.OH)(n)})]}),(0,o.jsx)(y.xv,{textStyle:y.pn.SubtitleNormalWeight,style:{color:L.I.GRAY_21,whiteSpace:"pre-wrap"},id:"expedite_all_info",children:d}),(0,o.jsx)(S,{children:(0,o.jsx)(j.f,{expediteAllRate:e.expediteAllRate,graphSrc:g.Z})})]})}):null})})},P=(e,t)=>e?{status:u.F.LOADING,subtitle:(0,I.t)(I.T.findLoads_loadDetails_loading)}:t&&t.isRateFound?{status:u.F.AVAILABLE,subtitle:(0,I.t)(I.T.marketRates_widgets_expediteAll_estimatedRate,{rate:(0,c.l5)(null==t?void 0:t.estRatePerMile,!0)})}:{status:u.F.UNAVAILABLE,subtitle:(0,I.t)(I.T.common_marketRate_notAvailableAtThisTime)},w=(e,t)=>{let i=[];return t&&i.push((0,p.vyr)(t)),e&&i.push("".concat(e," ").concat((0,I.t)(I.T.common_miles_short))),(0,a.join)(i," | ")};n()}catch(e){n(e)}})},296469:function(e,t,i){i.d(t,{I:function(){return u},q:function(){return C}});var n=i(785893);i(667294);var o=i(496486),l=i(671893),a=i(877281),s=i(378071),d=i(17921),r=i(300378),c=i(505033),p=i(754057);let u="broker_info_change_button",h=l.ZP.div.withConfig({displayName:"BrokerInfo__ExpansionPanelDataWrapper"})(["\n padding: 0 16px;\n width: 90%;\n padding: ","px;\n"],c.Ki.ScreenSide),g=l.ZP.div.withConfig({displayName:"BrokerInfo__BrokerInfoTitle"})(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: ","px;\n"],c.Ki.ScreenSide),x=l.ZP.div.withConfig({displayName:"BrokerInfo__BrokerInfoBar"})(["\n display: flex;\n font-size: ","px;\n line-height: ","px;\n margin-top: 8px;\n"],c.Bf.Content,c.ov.Content),m=l.ZP.div.withConfig({displayName:"BrokerInfo__BrokerInfoElement"})(["\n display: grid;\n grid-template-columns: 42px 1fr;\n grid-column-gap: ","px;\n margin-bottom: 12px;\n"],c.Ki.ElementPaddingHorizontal),f=l.ZP.div.withConfig({displayName:"BrokerInfo__BrokerInfoLabel"})(["\n color: ",";\n"],r.I.GRAY_STONE),y=l.ZP.div.withConfig({displayName:"BrokerInfo__BrokerInfoContent"})(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]),v=(0,l.ZP)(y).withConfig({displayName:"BrokerInfo__BrokerInfoName"})(["\n text-transform: capitalize;\n"]),C=e=>{let{contactName:t,phone:i,ext:l,email:r,onPostingContactsClick:c}=e,C=(0,s.$3s)(i,l);return(0,n.jsx)(h,{children:(0,n.jsx)(x,{children:(0,n.jsxs)("div",{style:{flex:1},children:[(0,n.jsxs)(m,{children:[(0,n.jsx)(f,{children:(0,p.t)(p.T.postLoads_Name)}),(0,n.jsx)(v,{id:"broker_info_name",children:t})]}),(0,n.jsxs)(m,{children:[(0,n.jsx)(f,{children:(0,p.t)(p.T.postLoads_Phone)}),(0,n.jsx)(y,{id:"broker_info_phone",children:(0,o.isEmpty)(C)?a.IQ:C})]}),(0,n.jsxs)(m,{children:[(0,n.jsx)(f,{children:(0,p.t)(p.T.postLoads_Email)}),(0,n.jsx)(y,{id:"broker_info_email",children:(0,o.isEmpty)(r)?a.IQ:r})]}),(0,n.jsx)(g,{style:{marginBottom:0},children:(0,n.jsx)(d.Q,{id:u,text:(0,p.t)(p.T.postLoads_ChangeContact),onClick:c,tabIndex:-1,style:{fontWeight:"normal"}})})]})})})}},620387:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{k:function(){return L}}),i(127530),i(506202);var o,l,a=i(785893),s=i(667294),d=i(496486),r=i(50533),c=i(671893),p=i(231657),u=i(630613),h=i(180895),g=i(877281),x=i(313518),m=i(240997),f=i(754057),y=i(950311),v=e([u]);u=(v.then?(await v)():v)[0],(l=o||(o={}))[l.Length=0]="Length",l[l.Weight=1]="Weight";let C=c.ZP.div.withConfig({displayName:"LengthWeight__LengthWeightContainer"})(["\n padding: 0 15px;\n margin-top: 16px;\n display: flex;\n flex-direction: row;\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"]),j=c.ZP.div.withConfig({displayName:"LengthWeight__Separator"})(["\n width: 16px;\n"]),L=e=>{let{lengthValue:t,weightValue:i,onLengthChange:n,onWeightChange:o}=e,l=(0,g.uU)(null!=t?t:0),c=(0,g.uU)(null!=i?i:0),[v,L]=(0,s.use
1State)(void 0),b=(0,y.v9)(e=>e.postLoadFields),_=(0,h.e$)("length",b),T=(0,h.e$)("weight",b),S=(0,r.I0)(),M=e=>t=>{""===t.target.value?e(void 0):e((0,d.toNumber)(I(t.target.value)))};return(0,a.jsxs)(C,{children:[(0,a.jsx)(x.n,{label:"".concat((0,f.t)(f.T.postLoads_length)),isErrorMessageMultiline:!0,id:"length",value:0===v?t:l,onChange:e=>(0,m.GN)(e.target.value)&&M(n)(e),onFocus:()=>L(0),onBlur:()=>{L(void 0),S((0,u.yd)("length"))},isWithoutMargin:!0,fullWidth:!0,autoComplete:"off",error:(0,h.ph)("length",b),helperText:void 0!==_&&(0,a.jsx)(p.default,{title:_,children:(0,a.jsx)("span",{children:_})}),"data-name":"length"}),(0,a.jsx)(j,{}),(0,a.jsx)(x.n,{isErrorMessageMultiline:!0,label:"".concat((0,f.t)(f.T.postLoads_weight)),id:"weight",value:1===v?i:c,onChange:e=>(0,m.Di)(I(e.target.value))&&M(o)(e),onFocus:()=>L(1),onBlur:()=>{L(void 0),S((0,u.yd)("weight"))},isWithoutMargin:!0,fullWidth:!0,autoComplete:"off",error:(0,h.ph)("weight",b),helperText:void 0!==T&&(0,a.jsx)(p.default,{title:T,children:(0,a.jsx)("span",{children:T})}),"data-name":"weight"})]})},I=e=>e.replace(/[^0-9]/g,"");n()}catch(e){n(e)}})},749809:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{l:function(){return y},z:function(){return w}});var o=i(785893);i(667294);var l=i(496486),a=i(671893),s=i(442639),d=i(13916),r=i(751679),c=i(855117),p=i(510881),u=i(86740),h=i(300378),g=i(505033),x=i(754057),m=i(519640),f=e([r]);r=(f.then?(await f)():f)[0];let y="post_load",v=a.ZP.div.withConfig({displayName:"PostFooter__TextWrapper"})(["\n font-family: ",";\n font-size: ",";\n line-height: ",";\n display: flex;\n justify-content: space-between;\n width: 208px;\n border-radius: 4px;\n align-self: center;\n"],e=>e.theme.text.subtitle2Regular.fontFamily,e=>e.theme.text.subtitle2Regular.fontSize,e=>e.theme.text.subtitle2Regular.lineHeight),C=a.ZP.div.withConfig({displayName:"PostFooter__FooterText"})(["\n display: flex;\n align-items: center;\n"]),j=a.ZP.label.withConfig({displayName:"PostFooter__StyledSubHeader"})(["\n font-family: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n"],e=>e.theme.text.body.fontFamily,e=>e.theme.text.body.fontSize,e=>e.theme.text.body.lineHeight,e=>e.theme.palette.background.stone),L=(e,t,i)=>"linear-gradient(90deg, ".concat(t," ").concat(e,"%, ").concat(i," ").concat(e,"%)"),I=a.ZP.div.withConfig({displayName:"PostFooter__ProgressBar"})(["\n width: 100%;\n height: 4px;\n border-radius: 4px;\n margin-bottom: 10px;\n background: ",";\n"],e=>{let{progress:t}=e;return L(t,h.I.ORANGE_MAIN,h.I.GRAY_SMOKE)}),b=a.ZP.div.withConfig({displayName:"PostFooter__PostStrengthPopUp"})(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"]),_=a.ZP.div.withConfig({displayName:"PostFooter__PostStrengthPopUpTitle"})(["\n margin-bottom: 25px;\n"]),T=a.ZP.div.withConfig({displayName:"PostFooter__PostStrengthItem"})(["\n margin-bottom: 5px;\n"]),S=a.ZP.div.withConfig({displayName:"PostFooter__PostFooterContainer"})(["\n display: flex;\n flex: 1;\n flex-direction: column;\n align-items: center;\n align-self: center;\n width: 100%;\n margin-bottom: 80px;\n"]),M=a.ZP.div.withConfig({displayName:"PostFooter__PostFooterXLWrapper"})(["\n display: flex;\n flex-direction: column;\n align-items: center;\n align-self: center;\n width: 400px;\n"]),N=a.ZP.div.withConfig({displayName:"PostFooter__FooterButtonWrapper"})(["\n width: 308px;\n display: flex;\n flex: 1;\n box-sizing: border-box;\n align-self: center;\n"]),P=a.ZP.div.withConfig({displayName:"PostFooter__ProgressBarWrapper"})(["\n width: 208px;\n display: flex;\n flex: 1;\n box-sizing: border-box;\n align-self: center;\n"]),w=e=>{let{isMobile:t,...i}=e;return t?(0,o.jsx)(r.jH,{children:(0,o.jsx)(D,{...i})}):(0,o.jsx)(S,{children:(0,o.jsx)(M,{children:(0,o.jsx)(D,{...i})})})},D=e=>{let{postStrengthValue:t,buttonText:i,onClick:n,isPosting:a}=e,r=(0,u.BF)();return(0,o.jsxs)(o.Fragment,{children:[(0,l.isUndefined)(t)?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(v,{id:"post_strength",children:[(0,o.jsxs)(C,{children:[(0,o.jsx)(j,{id:"title",children:(0,x.t)(x.T.postLoads_PostStrength)}),(0,o.jsx)(d.A,{id:"info",alt:"info",src:m.Z.info_small,onClick:R(r),size:g.rL.TextIcon,style:{marginLeft:5},tabIndex:-1})]}),(0,o.jsx)("span",{id:"percentage",children:(0,x.t)(x.T.postLoads_StrengthValue,{value:t})})]}),(0,o.jsx)(P,{children:(0,o.jsx)(I,{id:"progress_bar",progress:t})})]}),(0,o.jsx)(N,{children:(0,o.jsx)(s.Ku,{id:y,variant:"contained",text:i,color:"primary",disabled:a,onClick:n,isLoading:a})})]})},R=e=>()=>{e.openingPopup({body:(0,o.jsx)(c.Y,{title:(0,x.t)(x.T.postLoads_popUps_postStrength_title),buttons:[(0,o.jsx)(p.d5,{testID:"ok",label:(0,x.t)(x.T.postLoads_popUps_postStrength_button),action:e.closingPopup},"ok")],children:(0,o.jsxs)(b,{children:[(0,o.jsx)(_,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_content)}),(0,o.jsx)(_,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_paragraph)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_pickUpTimeStrength)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_dropOffDateStrength)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_dropOffTimeStrength)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_lengthStrength)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_weightTimeStrength)}),(0,o.jsx)(T,{children:(0,x.t)(x.T.postLoads_popUps_postStrength_paymentTimeStrength)})]})}),width:u.F$.SMALL,isDismissible:!0,hasCloseButton:!0})};n()}catch(e){n(e)}})},136070:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Pg:function(){return P}});var o=i(785893),l=i(667294),a=i(50533),s=i(671893),d=i(231657),r
1=i(630613),c=i(388830),p=i(180895),u=i(491252),h=i(546290),g=i(855117),x=i(510881),m=i(86740),f=i(199078),y=i(754057),v=i(950311),C=e([r]);r=(C.then?(await C)():C)[0];let j=["1","2","3","4","5","6","7","8","9","10"],L=s.ZP.div.withConfig({displayName:"PostNotes__PrivateNodesMoreOptionContainer"})(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n padding: 0px 0px 8px 0px;\n"]),I=(0,f.Z)()(s.ZP.label.withConfig({displayName:"PostNotes__SubSectionSmallTitle"})(["\n font-family: ",";\n font-size: 14px;\n line-height: ",";\n color: ",";\n margin-top: 10px;\n"],e=>e.theme.text.body.fontFamily,e=>e.theme.text.body.lineHeight,e=>e.theme.palette.background.stone)),b=s.ZP.div.withConfig({displayName:"PostNotes__NotesWrapper"})(["\n display: flex;\n flex-direction: column;\n padding: 0px 15px 30px 15px;\n justify-content: flex-start;\n align-self: stretch;\n"]),_=s.ZP.div.withConfig({displayName:"PostNotes__RefNumberItemsWrapper"})(["\n display: flex;\n flex-direction: row;\n"]),T=s.ZP.div.withConfig({displayName:"PostNotes__SmallFieldsContainer"})(["\n display: flex;\n justify-content: space-between;\n"]),S=s.ZP.div.withConfig({displayName:"PostNotes__LargeFieldsContainer"})(["\n display: flex;\n"]),M=s.ZP.div.withConfig({displayName:"PostNotes__Separator"})(["\n width: 16px;\n"]),N=s.ZP.div.withConfig({displayName:"PostNotes__TextFieldOffsetWrapper"})(["\n width: 100%;\n margin-top: 10px;\n"]),P=e=>{let{postReferenceValue:t,commodity:i,notes:n,teamDrivenValue:s,numberOfLoadsValue:d,shouldDisableFields:f,privateLoadNote:C,onTeamDrivenChange:P,onNumberOfLoadsChange:D,onPostRefChange:R,onCommodityChange:k,onNotesChange:E,onPrivateNotesChange:Z}=e,A=(0,a.I0)(),z=(0,v.SL)(),{closingPopup:O,openingPopup:B}=(0,m.BF)(),W=(0,v.J9)(),F=(0,v.v9)(e=>e.postLoadFields),G=(0,v.v9)(e=>e.postLoadFields.formResetCounter),Y=(0,p.e$)("postReference",F),U=(0,p.e$)("commodity",F),H=(0,p.e$)("notes",F),V="form-".concat(G);return(0,l.useEffect)(()=>{(0,p.ph)("postReference",F)&&B({body:(0,o.jsx)(g.Y,{title:(0,y.t)(y.T.postLoads_duplicateRefNumberTitle),onClose:O,buttons:[(0,o.jsx)(x.Mq,{testID:"ok",action:O},"ok")],children:(0,y.t)(y.T.postLoads_duplicateRefNumberMessage)}),width:m.F$.SMALL,isDismissible:!1})},[F.validationFields]),(0,o.jsxs)(b,{style:{width:W?"auto":"100%"},children:[(0,o.jsxs)(T,{style:{flexDirection:z?"column":"row"},children:[(0,o.jsxs)(_,{style:{width:z?"100%":W?"60%":"49%"},children:[(0,o.jsx)(N,{children:(0,o.jsx)(u.N,{label:(0,y.t)(y.T.postLoads_ref),id:"postReference",defaultValue:null!=t?t:"",onChange:e=>R(e.target.value),fullWidth:!0,isWithoutMargin:!0,onBlur:()=>A((0,r.yd)("postReference")),error:(0,p.ph)("postReference",F),helperText:w(Y),inputProps:{maxLength:25},"data-name":"postReference"},"".concat(V,"-postReference"))}),(0,o.jsx)(M,{}),(0,o.jsx)(N,{children:(0,o.jsx)(u.N,{label:(0,y.t)(y.T.postLoads_itemCommodity),id:"commodity",defaultValue:i,onChange:e=>k(e.target.value),fullWidth:!0,isWithoutMargin:!0,onBlur:()=>A((0,r.yd)("commodity")),error:(0,p.ph)("commodity",F),helperText:w(U),inputProps:{maxLength:50},"data-name":"commodity"},"".concat(V,"-commodity"))})]}),(0,o.jsx)(L,{children:(0,o.jsx)(h._,{teamDrivenOptions:[c.VO.Yes,c.VO.No],numberOfLoadsOptions:j,teamDrivenValue:s,numberOfLoadsValue:d,onTeamDrivenChange:P,onNumberOfLoadsChange:D,shouldDisableFields:f})})]}),(0,o.jsxs)(S,{style:{flexDirection:W?"column":"row"},children:[(0,o.jsx)(N,{style:{width:W?"100%":"50%"},children:(0,o.jsx)(u.N,{label:(0,y.t)(y.T.common_load_Note),id:"notes",defaultValue:n,onChange:e=>E(e.target.value),fullWidth:!0,isWithoutMargin:!0,multiline:!0,rows:5,inputProps:{style:{marginTop:25},maxLength:500},onBlur:()=>A((0,r.yd)("notes")),error:(0,p.ph)("notes",F),helperText:w(H),"data-name":"notes"},"".concat(V,"-notes"))}),(0,o.jsxs)(N,{style:{paddingLeft:W?0:24,width:W?"100%":"50%"},children:[(0,o.jsx)(u.N,{label:(0,y.t)(y.T.common_load_PrivateNote),id:"privateLoadNote",defaultValue:C,onChange:e=>Z(e.target.value),fullWidth:!0,isWithoutMargin:!0,multiline:!0,rows:5,inputProps:{style:{marginTop:25},maxLength:500},onBlur:()=>A((0,r.yd)("privateLoadNote")),error:(0,p.ph)("privateLoadNote",F),helperText:w((0,p.e$)("privateLoadNote",F)),"data-name":"privateLoadNote"},"".concat(V,"-privateLoadNote")),(0,o.jsx)(I,{style:{fontStyle:"italic"},children:(0,y.t)(y.T.common_load_PrivateNoteMessage)})]})]})]})},w=e=>e?(0,o.jsx)(d.default,{title:e,children:(0,o.jsx)("span",{children:e})}):null;n()}catch(e){n(e)}})},960076:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{O:function(){return h}});var o=i(785893);i(667294);var l=i(50533),a=i(148635),s=i(702428),d=i(548999),r=i(501421),c=i(754057),p=i(950311),u=e([s,r]);[s,r]=u.then?(await u)():u;let h=()=>{let e=(0,l.I0)(),t=(0,p.v9)(e=>e.applicationSettings.expandedSections[a.I6.PostedLoadsBookingOptions]);return(0,o.jsx)(s.E,{id:"booking_options",isTextSizeBig:!0,titleText:(0,c.t)(c.T.postLoads_bookingOptions_title),isOpened:t,handleClick:()=>e((0,a.eQ)(a.I6.PostedLoadsBookingOptions,!t)),hasCustomizedBorder:!0,hasCustomizedBackgroun
1d:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(r.c,{style:{display:"flex"},children:t?(0,o.jsx)(d.V,{}):null})})};n()}catch(e){n(e)}})},548999:function(e,t,i){i.d(t,{V:function(){return v}}),i(127530),i(202394);var n=i(785893),o=i(667294),l=i(616550),a=i(671893),s=i(265593),d=i(17921),r=i(349961),c=i(702979),p=i(300378),u=i(505033),h=i(754057),g=i(415351);let x=a.ZP.div.withConfig({displayName:"BookingOptionsSection__Container"})(["\n display: flex;\n align-items: center;\n padding: 10px 16px 0 15px;\n width: fit-content;\n justify-content: space-between;\n gap: ","px;\n flex-direction: ",";\n width: ",";\n"],e=>e.isTabletView?0:u.Ki.ElementPaddingHorizontal,e=>e.isTabletView?"column":"row",e=>e.isTabletView?"fit-content":"100%"),m=a.ZP.div.withConfig({displayName:"BookingOptionsSection__CheckboxContainer"})(["\n display: flex;\n gap: ","px;\n flex-direction: ",";\n align-self: ",";\n margin-left: ","px;\n width: ",";\n"],e=>e.isTabletView?0:u.Ki.ElementPaddingHorizontal,e=>e.isTabletView?"column":"row",e=>e.isTabletView?"baseline":"center",e=>e.isTabletView?15:0,e=>e.isTabletView?"100%":void 0),f=a.ZP.fieldset.withConfig({displayName:"BookingOptionsSection__HighlightContainer"})(["\n display: flex;\n width: 100%;\n border: 1px solid ",";\n border-radius: 4px;\n padding-bottom: 15px;\n margin-bottom: 15px;\n flex-direction: ",";\n margin-top: ","px;\n margin-left: ","px;\n width: ",";\n"],p.I.GRAY_SMOKE,e=>e.isTabletView?"column":"row",e=>e.isTabletView?12:0,e=>e.isTabletView?-12:0,e=>e.isTabletView?"100%":void 0),y=a.ZP.legend.withConfig({displayName:"BookingOptionsSection__Legend"})(["\n text-transform: uppercase;\n color: ",";\n font-weight: bold;\n width: auto;\n margin-left: auto;\n margin-right: auto;\n"],p.I.GRAY_DARK),v=()=>{let e=(0,l.k6)(),[t,i]=(0,o.useState)(!0),[a,p]=(0,o.useState)(!0),[u,v]=(0,o.useState)(!1),[C,j]=(0,o.useState)(!1),[L,I]=(0,o.useState)(!1),{width:b}=(0,c.ds)(),_=b<=g.Lu.tablet;return(0,n.jsxs)(x,{isTabletView:_,children:[(0,n.jsxs)(m,{isTabletView:_,children:[(0,n.jsx)(r.XZ,{id:"phone",isChecked:t,handleChange:()=>i(!t),labelPosition:"after",label:(0,h.t)(h.T.postLoads_bookingOptions_phone),containerStyle:{minWidth:"fit-content",alignSelf:"center"},labelStyle:{paddingLeft:0,paddingRight:15}}),(0,n.jsx)(r.XZ,{id:"email",isChecked:a,handleChange:()=>p(!a),labelPosition:"after",label:(0,h.t)(h.T.postLoads_bookingOptions_email),containerStyle:{minWidth:"fit-content",alignSelf:"center"},labelStyle:{paddingLeft:0,paddingRight:15}}),(0,n.jsxs)(f,{isTabletView:_,children:[(0,n.jsx)(y,{children:(0,h.t)(h.T.common_conversations_title123Connect)}),(0,n.jsx)(r.XZ,{id:"messaging",isChecked:u,handleChange:()=>v(!u),labelPosition:"after",label:(0,h.t)(h.T.postLoads_bookingOptions_messaging),containerStyle:{minWidth:"fit-content"},labelStyle:{paddingLeft:0,paddingRight:15}}),(0,n.jsx)(r.XZ,{id:"bidding",isChecked:C,handleChange:()=>j(!C),labelPosition:"after",label:(0,h.t)(h.T.postLoads_bookingOptions_bidding),containerStyle:{minWidth:"fit-content"},labelStyle:{paddingLeft:0,paddingRight:15}}),(0,n.jsx)(r.XZ,{id:"book_now",isChecked:L,handleChange:()=>I(!L),labelPosition:"after",label:(0,h.t)(h.T.postLoads_bookingOptions_bookNow),containerStyle:{minWidth:"fit-content"},labelStyle:{paddingLeft:0,paddingRight:15}})]})]}),(0,n.jsx)(d.Q,{id:"manage_button",onClick:()=>{e.push(s.Z5.ONBOARDED_CARRIERS_BASE)},text:(0,h.t)(h.T.postLoads_bookingOptions_manageOnboardLink)})]})}},996388:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{W:function(){return u}});var o=i(785893);i(667294);var l=i(50533),a=i(630613),s=i(541697),d=i(223944),r=i(86740),c=i(950311),p=e([a]);a=(p.then?(await p)():p)[0];let u=()=>{let e=(0,r.BF)(),t=(0,l.I0)(),i=(0,c.v9)(e=>e.loadVisibilityRules.rulesets.length>0),n=(0,c.v9)(e=>e.loadVisibilityRules.didFetchFail),p=(0,c.v9)(e=>e.postLoadFields.fields.visibility),u=(0,c.v9)(e=>{var t;return null===(t=e.postedLoadDetails.currentLoad)||void 0===t?void 0:t.visibility}),h=(0,c.v9)(e=>{var t,i;return null===(i=e.postedLoadDetails)||void 0===i?void 0:null===(t=i.currentLoad)||void 0===t?void 0:t.status}),g=h!==s.Px.Assigned&&h!==s.Px.Delivered,x=(i||n)&&g&&void 0===p&&void 0!==u,m=()=>{t((0,a.sn)()),e.closingPopup()};return(i,l)=>{x?e.openingPopup({body:(0,o.jsx)(d.Ms,{onClickSelect:()=>{n?i():l(),e.closingPopup()},onClickPost:m}),width:r.F$.SMALL,isDismissible:!0,hasCloseButton:!0}):t((0,a.sn)())}};n()}catch(e){n(e)}})},217278:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Z:function(){return _},g:function(){return j}});var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(671893),r=i(148635),c=i(378071),p=i(541697),u=i(702428),h=i(958539),g=i(620387),x=i(501421),m=i(505033),f=i(754057),y=i(104481),v=i(950311),C=e([u,x,h,g]);[u,x,h,g]=C.then?(await C)():C;let j=d.ZP.div.withConfig({displayName:"EquipmentsExpansionPanel__LongMenuWrapper"})(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: flex-start;\n align-self: stretch;\n padding: 0 ","px 0 0;\n"],m.Ki.ScreenSide),L=d.ZP.div.withConfig({displayName:"EquipmentsExpansionPanel__EquipmentWrapper"})(["\n display: flex;\n justify-content: flex-start;\n"]),I=d.ZP.div.withConfig({displayName:"EquipmentsExpansionPanel__SizeLengthWrapper"})(["\n display: flex;\n justify-content: flex-end;\n"]),b=[{label:p.SqC.TL,id:"tl"},{label:p.SqC.LTL,id:"ltl"}],_=e=>{let t=(0,s.I0)(),i=(0,v.v9)(e=>e.applicationSettings.expandedSections[r.I6.PostedLoadsEquipment]),n=(0,v.v9)(e=>e.postLoadFields.fields.equipment),d=(0,v.v9)(e=>e.postLoadFields.fields.loadSize),m=(0,v.v9)(e=>e.postLoadFields.fields.length),C=(0,v.v9)(e=>e.postLoadFields.fields.weight),_=(0,v.ZN)(),T=(0,v.SL)(),S=(0,l.useMemo)(()=>(0,c.Kl6)((0,a.map)(n,e=>e.equipmentType)),[n]),M=(0,l.useMemo)(()=>i?void 0:"".concat(S[0]!==p.Q2y.None?"".concat(S,", "):"","\n ").concat(d,",\n ").concat(m?"".concat(m," ").concat((0,f.t)(f.T.common_feet),", "):"","\n ").concat(C?"".concat(C," ").concat((0,f.t)(f.T.common_lbs)):""),[i,S,d,m,C]);return(0,o.jsx)(u.E,{id:"equipments",isTextSizeBig:!0,titleText:(0,f.t)(f.T.postLoads_collapsibleMenu_equipmentDetails),subtitleText:(0,y.Z8)(null!=M?M:""),isOpened:i,handleClick:()=>t((0,r.eQ)(r.I6.PostedLoadsEquipment,!i)),hasCustomizedBorder:!0,hasCustomizedBackgroun
1d:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(x.c,{style:{display:"flex"},children:i?(0,o.jsxs)(j,{style:{flexDirection:_?"column":"row"},children:[(0,o.jsx)(L,{style:{width:_?"100%":"50%"},children:(0,o.jsx)(h.lS,{onTrailerTypeClick:e.onTrailerTypeClick,onTrailerSpecificationClick:e.onTrailerSpecificationClick,onClearEquipmentSpecsClick:e.onClearEquipmentSpecsClick,onAddEquipmentClick:e.onAddEquipmentClick,equipments:n,shouldValidate:!0})}),(0,o.jsxs)(I,{style:{flexDirection:T?"column":"row"},children:[(0,o.jsx)(h.jM,{items:b,value:d,onChange:e.onLoadSizeChange}),(0,o.jsx)(g.k,{onLengthChange:e.onLengthChange,onWeightChange:e.onWeightChange,lengthValue:m,weightValue:C})]})]}):null})})};n()}catch(e){n(e)}})},318556:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Z:function(){return x}});var o=i(785893);i(667294);var l=i(50533),a=i(148635),s=i(702428),d=i(136070),r=i(217278),c=i(501421),p=i(754057),u=i(104481),h=i(950311),g=e([s,c,r,d]);[s,c,r,d]=g.then?(await g)():g;let x=e=>{let t=(0,l.I0)(),i=(0,h.v9)(e=>e.applicationSettings.expandedSections[a.I6.PostedLoadsLoadSize]),n=(0,h.v9)(e=>e.postLoadFields.fields.postReference),g=(0,h.v9)(e=>e.postLoadFields.fields.commodity),x=(0,h.v9)(e=>e.postLoadFields.fields.numberOfLoads),m=(0,h.v9)(e=>e.postLoadFields.fields.notes),f=(0,h.v9)(e=>e.postLoadFields.fields.teamDriving),y=(0,h.v9)(e=>e.postLoadFields.fields.privateLoadNote),v=(0,h.ZN)(),C=n?"".concat((0,p.t)(p.T.loadGeneric_refNumber),": ").concat(n,","):"",j=g?"".concat((0,p.t)(p.T.common_load_Item),": ").concat(g,","):"",L=x?"".concat((0,p.t)(p.T.postLoads_Quantity),": ").concat(x):"",I=m?", ".concat((0,p.t)(p.T.common_load_Note),": ").concat(m):"";return(0,o.jsx)(s.E,{id:"load_info_panel",isTextSizeBig:!0,titleText:(0,p.t)(p.T.postLoads_collapsibleMenu_loadInfo),subtitleText:i?void 0:(0,u.Z8)("".concat(C," ").concat(j," ").concat(L).concat(I)),isOpened:i,handleClick:()=>t((0,a.eQ)(a.I6.PostedLoadsLoadSize,!i)),hasCustomizedBorder:!0,hasCustomizedBackground:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(c.c,{style:{display:"flex"},children:i?(0,o.jsx)(r.g,{style:{flexDirection:v?"column":"row"},children:(0,o.jsx)(d.Pg,{shouldDisableFields:e.shouldDisableFields,postReferenceValue:n,commodity:g,notes:m,teamDrivenValue:f,numberOfLoadsValue:x,privateLoadNote:y,onPostRefChange:e.onPostRefChange,onCommodityChange:e.onCommodityChange,onNotesChange:e.onNotesChange,onTeamDrivenChange:e.onTeamDrivenChange,onNumberOfLoadsChange:e.onNumberOfLoadsChange,onPrivateNotesChange:e.onPrivateNotesChange})}):null})})};n()}catch(e){n(e)}})},755613:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{A:function(){return v},J:function(){return y}}),i(127530);var o=i(785893),l=i(667294),a=i(50533),s=i(148635),d=i(702428),r=i(501421),c=i(540120),p=i(242463),u=i(118357),h=i(829243),g=i(86740),x=i(754057),m=i(950311),f=e([d,u,r,p]);[d,u,r,p]=f.then?(await f)():f;let y="load_visibility_rules",v=e=>{let t=(0,a.I0)(),i=(0,g.BF)(),n=(0,m.v9)(e=>e.postLoadFields.fields.visibility),[f,v]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{v(void 0!==n)},[n]),(0,o.jsx)(d.E,{id:y,isTextSizeBig:!0,titleText:(0,x.t)(x.T.preferences_loadVisibilityRules),titleElement:(0,o.jsx)(h.tP,{isSectionTitle:!0,popupContext:i}),subtitleElement:(0,o.jsx)(u.y,{setShouldOpenWithVisibilityRules:v}),isOpened:e.isExpanded,handleClick:()=>t((0,s.eQ)(s.I6.PostedLoadsLoadVisibility,!e.isExpanded)),hasCustomizedBorder:!0,hasCustomizedBackground:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(r.c,{style:{display:"flex",flexDirection:"column",marginBottom:"0"},children:e.isExpanded?e.isLoadProgressLimitingEdit&&e.panelType!==c.w.clone?null:(0,o.jsx)(p.Z,{panelType:e.panelType,visibility:n,isLoadProgressLimitingEdit:e.isLoadProgressLimitingEdit,handleVisibilityRuleChange:e.onVisibilityRuleChange,openCreateVisibilityRulesPanel:e.openCreateVisibilityRulesPanel,openEditRulePanel:e.openEditRulePanel,openSelectVisibilityRulePanel:e.openSelectVisibilityRulePanel,shouldOpenWithVisibilityRules:f}):null},"load_visibility_rules_data_wrapper")})};n()}catch(e){n(e)}})},501421:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{V:function(){return C},c:function(){return v}});var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(671893),r=i(148635),c=i(378071),p=i(127118),u=i(541697),h=i(702428),g=i(958539),x=i(754057),m=i(104481),f=i(950311),y=e([h,g]);[h,g]=y.then?(await y)():y;let v=d.ZP.div.withConfig({displayName:"LocationAndDatesExpansionPanel__ExpansionPanelDataWrapper"})(["\n width: 100%;\n border-radius: 12px;\n margin-bottom: 16px;\n"]),C=e=>{let t=(0,s.I0)(),i=(0,f.v9)(e=>e.postLoadFields.fields.pickUpDateTimes),n=(0,f.v9)(e=>e.postLoadFields.fields.originLocation),d=(0,f.v9)(e=>e.postLoadFields.fields.destinationLocation),y=(0,f.v9)(e=>e.postLoadFields.fields.pickUpTime),C=(0,f.v9)(e=>e.postLoadFields.fields.deliveryDateTime),j=(0,f.v9)(e=>e.postLoadFields.fields.deliveryTime),L=(0,f.v9)(e=>e.postLoadFields.fields.numberOfStops),I=(0,f.v9)(e=>e.postLoadFields.fields.stopsLocations),b=(0,f.v9)(e=>e.postLoadFields.fields.extraStops),_=(0,f.SL)(),T=(0,l.useMemo)(()=>(0,a.join)((0,a.map)(i,e=>(0,c.PMh)(e))),[i]),S=(0,l.useMemo)(()=>{let e=(0,c.HcE)(n);return n.type===u._iy.CITY?"".concat(null==e?void 0:e.city,", ").concat(null==e?void 0:e.state," - ").concat(i?T:"",", ").concat(y?(0,c.F4I)(y):""):""},[n,i,T,y]),M=(0,l.useMemo)(()=>(0,a.map)(I,e=>e.label),[I]),N=(0,l.useMemo)(()=>(0,c.PMh)(C),[C]),P=(0,l.useMemo)(()=>{let e=(0,c.HcE)(d);return d.type===u._iy.CITY?"".concat(null==e?void 0:e.city,", ").concat(null==e?void 0:e.state," - ").concat(C?N:"",", ").concat(j?(0,c.F4I)(j):""):""},[d,C,N,j]);return(0,o.jsx)(h.E,{id:"location_and_dates",isTextSizeBig:!0,titleText:(0,x.t)(x.T.postLoads_collapsibleMenu_locationAndDates),subtitleText:e.isExpanded?void 0:(0,m.Z8)(S),subtitleBulletPointsText:e.isExpanded?void 0:M,subtitleSecondLineText:e.isExpanded?void 0:(0,m.Z8)(P),isOpened:e.isExpanded,handleClick:()=>t((0,r.eQ)(r.I6.PostedLoadsLocationAndDate,!e.isExpanded)),hasCustomizedBorder:!0,hasCustomizedBackgroun
1d:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(v,{style:{display:"flex",flexDirection:"column"},children:e.isExpanded?(0,o.jsx)(g.Wv,{onClick:e.onClick,pickUpLocationValue:(0,a.isEqual)(n,u.D6O)?"":(0,p.E0)(n,!1),dropOffLocationValue:(0,a.isEqual)(d,u.D6O)?"":(0,p.E0)(d,!1),pickUpLocation:n,dropOffLocation:d,pickUpDateTimes:i,dropOffDateTimes:C?[C]:[],pickUpTime:y,deliveryTime:j,onAddStopClick:t=>e.onAddStopClick(null!=t?t:I.length),onDeleteStopsClick:e.onDeleteStopsClick,onDeleteManualPostedStops:e.onClearStops,stops:I,numberOfStops:L,extraStops:b,onStopsClick:e.onStopsClick,shouldDisableFields:e.shouldDisableFields,isMobileView:_}):null})})};n()}catch(e){n(e)}})},546290:function(e,t,i){i.d(t,{_:function(){return m}});var n=i(785893);i(667294);var o=i(496486),l=i(671893),a=i(388830),s=i(508142),d=i(754057),r=i(950311),c=i(228097);let p=l.ZP.div.withConfig({displayName:"MoreOptions__SelectWrapper"})(["\n display: flex;\n padding-top: 10px;\n\n align-self: flex-end;\n"]),u=l.ZP.div.withConfig({displayName:"MoreOptions__InputWrapper"})(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]),h=l.ZP.div.withConfig({displayName:"MoreOptions__SelectWithOffsetLeft"})(["\n width: 100%;\n margin-left: 9px;\n"]),g=l.ZP.div.withConfig({displayName:"MoreOptions__SelectWithOffsetRight"})(["\n width: 100%;\n"]),x=e=>{let{id:t,title:i,options:o,value:l,onChange:a,disabled:d}=e;return(0,n.jsx)(u,{children:(0,n.jsx)(s.n,{id:"".concat(t,"_select"),label:i,options:o,value:l,onChange:a,disabled:d,style:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})})},m=e=>{let{teamDrivenOptions:t,numberOfLoadsOptions:i,teamDrivenValue:l,numberOfLoadsValue:s,onTeamDrivenChange:u,onNumberOfLoadsChange:m,shouldDisableFields:f}=e,y=(0,r.J9)(),v=(0,r.SL)(),{onFocusAfterSubmit:C}=(0,c.J)(void 0,"select-Team driven"),{onFocusAfterSubmit:j}=(0,c.J)(void 0,"notes");return(0,n.jsxs)(p,{style:{minWidth:v?"100%":y?"230px":"300px"},children:[(0,n.jsx)(g,{children:(0,n.jsx)(x,{id:"quantity",title:(0,d.t)(d.T.postLoads_Quantity),options:i,value:(0,o.toString)(s),onChange:e=>{m((0,o.toNumber)(e)),C()},disabled:f})}),(0,n.jsx)(h,{children:(0,n.jsx)(x,{id:"team_driven",title:(0,d.t)(d.T.postLoads_TeamDriven),options:t,value:l===a.VO.Yes?a.VO.Yes:a.VO.No,onChange:e=>{u(e),j()}})})]})}},540120:function(e,t,i){var n,o;i.d(t,{w:function(){return n}}),(o=n||(n={})).post="post",o.edit="edit",o.clone="clone"},858053:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{w:function(){return eh}}),i(127530),i(506202),i(535646),i(269774),i(445123),i(202394);var o=i(785893),l=i(667294),a=i(496486),s=i(612643),d=i(50533),r=i(616550),c=i(14890),p=i(671893),u=i(148635),h=i(639263),g=i(174168),x=i(630613),m=i(388830),f=i(180895),y=i(265593),v=i(378071),C=i(127118),j=i(541697),L=i(481698),I=i(122616),b=i(751679),_=i(923764),T=i(662346),S=i(749809),M=i(960076),N=i(996388),P=i(217278),w=i(318556),D=i(240997),R=i(755613),k=i(501421),E=i(540120),Z=i(644407),A=i(574480),z=i(691864),O=i(38284),B=i(286068),W=i(332623),F=i(486793),G=i(549963),Y=i(637835),U=i(702979),H=i(707261),V=i(886772),J=i(319061),Q=i(521653),K=i(300378),X=i(505033),q=i(754057),$=i(416804),ee=i(549749),et=i(950311),ei=i(953740),en=e([N,V,Y,g,h,T,z,k,P,w,M,W,Z,b,R,S,O,H,x]);[N,V,Y,g,h,T,z,k,P,w,M,W,Z,b,R,S,O,H,x]=en.then?(await en)():en;let eo="134px",el="242px",ea="12px",es=p.ZP.div.withConfig({displayName:"PostLoadPanel__ExpansionPanelWrapper"})(["\n border-radius: 12px;\n background-color: ",";\n"],b.sN),ed=p.ZP.div.withConfig({displayName:"PostLoadPanel__SmallSection"})(["\n width: 100%;\n border-radius: 12px;\n"]),er=p.ZP.div.withConfig({displayName:"PostLoadPanel__ExpansionPanelWrapperSmall"})(["\n display: flex;\n\n justify-content: space-between;\n border-radius: 12px;\n"]),ec=p.ZP.div.withConfig({displayName:"PostLoadPanel__ErrorMessage"})(["\n font-size: ","px;\n color: ",";\n text-align: center;\n margin: 2px 0 8px 0;\n padding-top: 8px;\n"],X.Bf.ContentDetail,K.I.RED_APPLE),ep=p.ZP.div.withConfig({displayName:"PostLoadPanel__Separator"})(["\n width: 16px;\n background-color: ",";
1\n"],K.I.WHITE),eu=p.ZP.div.withConfig({displayName:"PostLoadPanel__MenuDivider"})(["\n align-self: center;\n margin: 16px;\n border-bottom: 1px solid ",";\n"],K.I.GRAY_SMOKE),eh=e=>{var t,i;let[n,p]=(0,l.useState)(0),[K,X]=(0,l.useState)(!1),[en,eh]=(0,l.useState)(!1),[ex,em]=(0,l.useState)(0),ef=(0,et.v9)(e=>e.settings.systemSetting[j.WNf.BookingOptionsEnabled].value),ey=(0,et.v9)(e=>e.postLoadFields.isPostingWithVisibilityRules&&e.loadVisibilityRules.rulesets.length>0),ev=(0,et.v9)(e=>e.applicationSettings.expandedSections[u.I6.PostedLoadsLocationAndDate]),eC=(0,et.v9)(e=>e.applicationSettings.expandedSections[u.I6.PostedLoadsRateAndDistance]),ej=(0,et.v9)(e=>e.applicationSettings.expandedSections[u.I6.PostedLoadsPostingContact]),eL=(0,et.v9)(e=>e.applicationSettings.expandedSections[u.I6.PostedLoadsLoadVisibility]),eI=(0,et.v9)(e=>e.postLoadFields.fields),eb=(0,et.v9)(e=>e.postLoadFields.fields.visibility),e_=(0,et.v9)(e=>e.postLoadFields.fields.originLocation),eT=(0,et.v9)(e=>e.postLoadFields.fields.destinationLocation),eS=(0,et.v9)(e=>e.postLoadFields.fields.stopsLocations),eM=(0,et.v9)(e=>e.postLoadFields.fields.postReference),eN=(0,et.v9)(e=>e.postLoadFields.fields.pickUpDateTimes),eP=(0,et.v9)(e=>e.postLoadFields.fields.dispatchName),ew=(0,et.v9)(e=>e.postLoadFields.fields[Z.ng]),eD=(0,et.v9)(e=>e.postLoadFields.fields[Z.j3]),eR=(0,et.v9)(e=>e.postLoadFields.fields.dispatchEmail),ek=(0,et.v9)(e=>e.postLoadFields.fields.deliveryDateTime),eE=(0,et.v9)(e=>e.postLoadFields.fields.miles),eZ=(0,et.v9)(e=>e.postLoadFields.fields.equipment),eA=(0,et.v9)(e=>e.postLoadFields.fields.isFormPopulated),ez=(0,et.v9)(e=>e.postLoadFields),eO=(0,et.v9)(e=>e.postLoadFields.meta.shouldRecalculateRateCheck),eB=(0,et.v9)(e=>e.postedLoadDetails.currentLoad),eW=(0,et.v9)(e=>e.postLoadFields.totalPostMileage),eF=(0,et.v9)(e=>e.postLoadFields.isPosting),eG=(0,et.v9)(e=>e.postLoadFields.postingError),eY=(0,et.v9)(e=>e.postLoadFields.dispatcher),eU=(0,et.v9)(e=>e.postLoadFields.lastUsedPostingContact),eH=(0,et.v9)(e=>e.postLoadFields.selectedPostingContact),eV=(0,et.v9)(e=>{var t,i;if(e.postLoadFields.rateCheck.result)return e.postLoadFields.rateCheck.result;let n=null===(t=e.postedLoadDetails.currentLoad)||void 0===t?void 0:t.id,o=n?e.loadInfo.loadInfoMap.get(n):void 0;return o?null===(i=o.rateCheck)||void 0===i?void 0:i.payload:void 0}),eJ=(0,l.useRef)(null),eQ=(0,l.useRef)(null),eK=(0,l.useRef)(null),eX=(0,_.RG)("/addStops/"),eq=(0,_.RG)("/editStop/"),e$=(0,d.I0)(),e0=(0,N.W)(),e9=null!=eH?eH:eU,e5=(0,l.useMemo)(()=>(0,G.c)(eY,eB,e9),[eY,eB,e9]),e4=(0,V.gE)(),e1=(0,et.ZN)(),e3=(0,et.SL)(),e2=(0,ei.m)().get("scroll"),e7=(0,r.TH)(),e8=(0,r.k6)(),e6=(0,r.UO)(),te=(0,F.j)(),tt=(null==eB?void 0:null===(t=eB.posterMetadata)||void 0===t?void 0:t.progress)===j.lrW.Assigned||(null==eB?void 0:null===(i=eB.posterMetadata)||void 0===i?void 0:i.progress)===j.lrW.Delivered,ti=e6.loadID&&(e.panelType===E.w.edit||e.panelType===E.w.clone),tn=(0,c.qC)(e$,x.uR),to=()=>{let e=ev?document.getElementById(T.bY):document.getElementById("location_and_dates_collapse");null==e||e.focus()};(0,l.useEffect)(()=>{e.panelType===E.w.post&&ey&&tn({visibility:te})},[te]),(0,l.useEffect)(()=>{e2===Y.M&&null!==eJ.current&&(setTimeout(()=>e4(eJ.current,"start"),1e3),e8.replace({pathname:e7.pathname,search:""}))},[e2]),(0,l.useEffect)(()=>(e$(x.z0.fetchAction(void 0)),e$((0,h.$n)()),e$((0,g.Pc)(0,0)),e$((0,L.FE)(j.WNf.BookingOptionsEnabled)),to(),()=>{e$((0,x.x4)()),e$((0,x.T7)()),e$((0,x.eo)()),e$((0,h.oV)()),e$((0,x.jM)(void 0))}),[]),(0,l.useEffect)(()=>{if(ti&&eB){let t=(0,m.mB)(eB);tn({...t,pickUpDateTimes:(0,v.s7o)(t.pickUpDateTimes),visibility:e.panelType===E.w.edit?t.visibility:eb})}},[eB]),(0,l.useEffect)(()=>{eA&&to()},[eA]),(0,l.useEffect)(()=>{tn(e5)},[e5[Z.j3],e5[Z.ng],e5.dispatchEmail,e5.dispatchName]);let tl=(0,l.useMemo)(()=>(0,v.HcE)(e_),[e_]),ta=(0,l.useMemo)(()=>(0,v.HcE)(eT),[eT]),ts=(0,l.useMemo)(()=>(0,a.map)(eZ,e=>e.equipmentType),[eZ]),td=(0,l.useMemo)(()=>(0,a.join)(ts),[ts]),{shouldShowExpediteRate:tr}=(0,A.sW)(tl,ta,ts);(0,l.useEffect)(()=>{if(tl&&ta){let e=[{address:tl}];
1!(0,a.isEmpty)(eS)&&eS.forEach(t=>{let i=(0,v.HcE)((0,C.ff)(t));i&&e.push({address:i})}),e.push({address:ta}),e$((0,x.JJ)({stops:e}))}else e$((0,x.eo)())},[e_,eT,eS]),(0,l.useEffect)(()=>{if(!tr&&tl&&ta&&eO){let e=(0,v.ojz)(ts);e?e$((0,x.Y1)({from:tl,to:ta,equipment:e})):e$((0,x.T7)())}},[e_,eT,td]),(0,l.useEffect)(()=>{if(!!eO)!(0,a.isUndefined)(eV)||(0,a.isUndefined)(eB)||eO?tn({miles:null!=eW?eW:0}):tn((0,m.uf)(eB))},[eV,eW]),(0,l.useEffect)(()=>{eQ.current&&(0,ee.o)(ez.validationFields,eQ.current)},[ez.validationFields]);let tc=()=>{let{editing:t,...i}=e6;e$((0,x.x4)()),e$((0,x.T7)()),e$((0,x.eo)()),e8.push({pathname:(0,Q.vi)(e6.actionType===Q.hQ.Single?{}:{...i},e.baseUrl),search:e7.search})},tp=e=>t=>tn({[e]:t}),tu=(0,l.useMemo)(()=>!(e.panelType===E.w.clone&&void 0!==eM&&(null==eB?void 0:eB.postReference)===eM),[e.panelType,eM,null==eB?void 0:eB.postReference]),th=(0,l.useMemo)(()=>(0,D.dh)(e_)&&(0,D.dh)(eT)&&(0,D.Wn)(eN)&&(0,D.Bv)(ts)&&(0,v.MuG)(eP)&&(0,v.eHR)(ew,!0)&&(0,v.Juc)(eR)&&(0,D.cm)(eD)&&(0,D.Mo)(eE,eW)&&(0,D.MM)(eN,ek?[ek]:[])&&tu,[e_,eT,eN,eP,ew,eR,eD,eE,eW,ek,ts,null==eB?void 0:eB.postReference,tu]);(0,l.useEffect)(()=>{!(0,a.isEmpty)(ez.validationFields)&&K?(e4(eK.current),X(!1),eh(!0)):en&&th&&eh(!1)},[ez.validationFields.length>0,K,th]),(0,l.useEffect)(()=>{e$((0,x.yd)("mileage"))},[eE]);let tg=t=>e8.push({pathname:(0,Q.vi)({...e6,postPanelModals:t},e.baseUrl),search:e7.search}),tx=(e,t)=>{let i=(0,a.cloneDeep)(eZ);i[e]={equipmentType:eZ[e].equipmentType,equipmentSpecifications:t},tn({equipment:i})},tm=eg(e.panelType),tf=()=>{let e=[];return!(0,D.dh)(e_)&&(e$((0,u.eQ)(u.I6.PostedLoadsLocationAndDate,!0)),e.push({key:"originLocation",type:f.xT.UIError})),!(0,D.dh)(eT)&&(e$((0,u.eQ)(u.I6.PostedLoadsLocationAndDate,!0)),e.push({key:"destinationLocation",type:f.xT.UIError})),!(0,D.Wn)(eN)&&(e$((0,u.eQ)(u.I6.PostedLoadsLocationAndDate,!0)),e.push({key:"pickUpDateTimes",type:f.xT.UIError})),!(0,D.Bv)(ts)&&(e$((0,u.eQ)(u.I6.PostedLoadsEquipment,!0)),e.push({key:"equipment",type:f.xT.UIError})),!(0,D.MM)(eN,ek?[ek]:[])&&(e$((0,u.eQ)(u.I6.PostedLoadsLocationAndDate,!0)),e.push({key:"deliveryDateTime",type:f.xT.UIError})),!tu&&e.push({key:"postReference",type:f.xT.UIError}),(!(0,D.Mo)(eE,eW)||!eE)&&(e$((0,u.eQ)(u.I6.PostedLoadsRateAndDistance,!0)),e.push({key:"mileage",type:f.xT.UIError,message:0===eE?"":(0,q.t)(q.T.postLoads_errors_InvalidDistance)})),!!(e.length>0)&&(e$((0,x.zb)(e)),!0)},ty=()=>{e8.push(y.Z5.LOAD_VISIBILITY_RULES_BASE)},tv=()=>tg(Q.Uc.VisibilityRules),tC=e=>{tg(e),e$((0,x.zb)([{key:"equipment",type:f.xT.UIError}]))};return(0,o.jsxs)(s.ZP,{group:"post_load_panel",children:[(0,o.jsx)(b.s_,{id:"post_header",size:b.lj.xlarge,layer:e3?e.layerIndex:0,offset:0,panelRef:eQ,children:(0,o.jsxs)(U.d_,{children:[(0,o.jsx)(z.I,{panelType:e.panelType,label:tm.headerLabel,userData:e5,onClose:tc,onClear:()=>{e$((0,x.x4)()),e$((0,x.T7)()),e$((0,x.eo)()),e.panelType!==E.w.edit&&e.panelType!==E.w.clone||(0,a.isUndefined)(eB)?tn({...m.CC.fields,...e5}):tn({...(0,m.mB)(eB),visibility:eb}),eh(!1);let t=document.getElementById(T.bY);null==t||t.focus()},onPrefillRecentPosts:()=>tg(Q.Uc.RecentPost)}),ti&&!eA?null:(0,o.jsxs)(o.Fragment,{children:[e.panelType===E.w.edit&&tt?(0,o.jsx)(I.j,{bannerType:I.$.Information,content:(0,o.jsx)(J.xv,{id:"assigned_load_banner",style:{marginTop:"5px"},children:(0,q.t)(q.T.postLoads_editBlocked)})},"assigned_load_banner"):null,(0,o.jsxs)(es,{style:{margin:e3?"8px 16px":"32px"},ref:eK,children:[en?(0,o.jsx)(ec,{id:"fill_mandatory_fields",children:(0,q.t)(q.T.postLoads_fillMandatoryFields)}):null,(0,o.jsx)(k.V,{isExpanded:ev,shouldDisableFields:tt,onClick:e=>tg(e),onAddStopClick:e=>{em(e),eX()},onDeleteStopsClick:e=>{e$((0,x.Uf)(e))},onClearStops:()=>{tp("numberOfStops")(0),tp("stopsLocations")([]),tp("extraStops")([])},onStopsClick:e=>{void 0!==e&&em(e),eq()}}),(0,o.jsx)(eu,{}),(0,o.jsx)(P.Z,{onTrailerTypeClick:()=>tC(Q.Uc.TrailerType),onTrailerSpecificationClick:e=>{p(e),tC(Q.Uc.TrailerSpecification)},onClearEquipmentSpecsClick:e=>tx(e,[]),onAddEquipmentClick:()=>tg(Q.Uc.TrailerType),onLoadSizeChange:e=>tn({loadSize:j.SqC[e]}
1),onLengthChange:tp("length"),onWeightChange:tp("weight")}),(0,o.jsx)(eu,{}),(0,o.jsx)(w.Z,{shouldDisableFields:tt,onPostRefChange:tp("postReference"),onCommodityChange:tp("commodity"),onNotesChange:tp("notes"),onTeamDrivenChange:tp("teamDriving"),onNumberOfLoadsChange:tp("numberOfLoads"),onPrivateNotesChange:tp("privateLoadNote")}),ef?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eu,{}),(0,o.jsx)(M.O,{})]}):null]}),(0,o.jsxs)(er,{style:{flexDirection:e1?"column":"row",margin:e3?"16px":"32px"},children:[(0,o.jsx)(ed,{style:{height:eC?"fit-content":eo,minHeight:eC?el:eo,backgroundColor:b.sN,marginBottom:e1?ea:"0px"},children:(0,o.jsx)(W.r,{isExpanded:eC,rateCheck:eV,onChange:e=>tn({miles:e.miles,[m.Xs]:e.rate})})},"rate_and_distance"),(0,o.jsx)(ep,{}),(0,o.jsx)(ed,{style:{height:ej?"fit-content":eo,minHeight:ej?el:eo,backgroundColor:b.sN,marginBottom:e1?ea:"0px"},children:(0,o.jsx)(Z.Hg,{isExpanded:ej,onPostingContactsClick:()=>{e8.push({pathname:(0,Q.vi)({...e6,postingContacts:"posting_contacts"},e.baseUrl),search:e7.search})}})},"posting_contact"),(0,o.jsx)(ep,{}),tt||e.panelType===E.w.edit&&void 0===eb?null:(0,o.jsx)(ed,{style:{height:eL?"fit-content":eo,minHeight:eL?el:eo,backgroundColor:b.sN},children:(0,o.jsx)(R.A,{panelType:e.panelType,isExpanded:eL,isLoadProgressLimitingEdit:tt,onVisibilityRuleChange:tp("visibility"),openCreateVisibilityRulesPanel:ty,openEditRulePanel:()=>tg(Q.Uc.EditRule),openSelectVisibilityRulePanel:()=>tg(Q.Uc.VisibilityRules)})},"load_visibility_rules")]}),(0,o.jsx)(S.z,{buttonText:tm.footerButton,postStrengthValue:(0,B.V)(eI),onClick:()=>{if(tf())X(!0);else if(e9&&e$((0,x.m9)(e9)),e.panelType===E.w.clone)e0(ty,tv);else{let t=e6.loadID;if(e.panelType===E.w.edit&&void 0!==t){if((0,$.MC)(eI,eB)){tc();return}e$((0,x.Pk)(t,e.baseUrl))}else e$((0,x.ag)(e.baseUrl));e$((0,x.Qh)())}},isPosting:eF,isMobile:e1})]})]})}),(0,o.jsx)(O.O,{activeEquipmentIndex:n,onEquipmentSpecsChange:e=>tx(n,e),onVisibilityRuleChange:tp("visibility"),panelType:e.panelType,stopIndex:ex,setValidationsIfNeeded:tf,baseUrl:e.baseUrl}),(0,o.jsx)(H.W,{error:eG,onClose:()=>e$((0,x.Iy)())})]})},eg=e=>{switch(e){case E.w.edit:return{footerButton:(0,q.t)(q.T.postLoads_Update),headerLabel:(0,q.t)(q.T.postLoads_EditLoad),actionText:(0,q.t)(q.T.postLoads_Reset)};case E.w.clone:return{footerButton:(0,q.t)(q.T.postLoads_Post),headerLabel:(0,q.t)(q.T.postLoads_CloneLoad),actionText:(0,q.t)(q.T.postLoads_Reset)};default:return{footerButton:(0,q.t)(q.T.postLoads_Post),headerLabel:(0,q.t)(q.T.postLoads_PostLoad),actionText:(0,q.t)(q.T.postLoads_ClearAll)}}};n()}catch(e){n(e)}})},691864:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{I:function(){return g}});var o=i(785893);i(667294);var l=i(496486),a=i(388830),s=i(751679),d=i(540120),r=i(797789),c=i(875847),p=i(754057),u=i(950311),h=e([r,s]);[r,s]=h.then?(await h)():h;let g=e=>{let t=(0,u.v9)(e=>e.postedLoadDetails.currentLoad),i=(0,u.v9)(e=>e.postLoadFields.fields);return(0,o.jsx)(s.V9,{label:e.label,hasCloseButton:!0,actionTextStyle:c.ZP.text.subtitleRegular,onClose:e.onClose,actionElement:(0,o.jsxs)(o.Fragment,{children:[e.panelType===d.w.post?(0,o.jsx)(r.a,{onClick:e.onPrefillRecentPosts}):null,(e.panelType===d.w.post?(0,l.isEqual)({...a.CC.fields,...e.userData},i):e.panelType!==d.w.edit&&e.panelType!==d.w.clone||void 0===t||(0,l.isEqual)((0,a.mB)(t),i))?null:(0,o.jsx)(s.Kk,{id:"clear",onClick:e.onClear,children:(0,p.t)(p.T.findLoads_findLoads_clear)})]})})};n()}catch(e){n(e)}})},38284:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{O:function(){return $}}),i(202394);var o=i(785893),l=i(667294),a=i(496486),s=i(730381),d=i.n(s),r=i(612643),c=i(50533),p=i(616550),u=i(14890),h=i(44456),g=i(793479),x=i(509120),m=i(630613),f=i(388830),y=i(180895),v=i(194340),C=i(265593),j=i(378071),L=i(289691),I=i(541697),b=i(328257),_=i(923764),T=i(11605),S=i(296469),M=i(662346),N=i(749809),P=i(536526),w=i(989600),D=i(755613),R=i(540120),k=i(876736),E=i(729016),Z=i(551050),A=i(884383),z=i(275892),O=i(862616),B=i(1897),W=i(228456),F=i(245545),G=i(177115),Y=i(829243),U=i(991987),H=i(521653),V=i(754057),J=i(950311),Q=i(324955),K=i(228097),X=e([z,Z,M,B,O,A,E,m,k,G,F,N,W,D]);[z,Z,M,B,O,A,E,m,k,G,F,N,W,D]=X.then?(await X)():X;let q=C.Z5.LOADS_MY_LOADS_POST,$=e=>{var t,i;let{activeEquipmentIndex:n,onEquipmentSpecsChange:s,panelType:X,stopIndex:$,setValidationsIfNeeded:et,onVisibilityRuleChange:ei,baseUrl:en}=e,eo=(0,c.I0)(),el=(0,p.TH)(),ea=(0,p.k6)(),es=(0,p.UO)(),ed=(0,J.v9)(e=>e.postLoadFields.fields.pickUpDateTimes),er=(0,J.v9)(e=>e.postLoadFields.fields.deliveryDateTime),ec=(0,J.v9)(e=>e.postLoadFields.fields.pickUpTime),ep=(0,J.v9)(e=>e.postLoadFields.fields.deliveryTime),eu=(0,J.v9)(e=>e.postLoadFields.fields.equipment),eh=(0,J.v9)(e=>e.postLoadFields.fields.stopsLocations),eg=(0,J.v9)(e=>e.postedLoads.loadTemplates.templates),ex=(0,J.v9)(e=>e.postedLoads.loadTemplates.isLoading),em=(0,_.ii)("/posting_contacts/"),ef=(0,l.useMemo)(()=>(0,a.map)(eu,e=>e.equipmentType),[eu]),ey=(0,l.useMemo)(()=>(0,a.map)(ed,e=>(0,j.a0V)(d()(e))),[ed]),ev=(0,l.useMemo)(()=>ee(er?(0,j.MJb)(d()(er)):void 0),[er]),eC=X===R.w.edit||X===R.w.clone,ej=(0,u.qC)(eo,m.uR);(0,b.b6)(()=>{0===ed.length&&ej({pickUpDateTimes:(0,j.c0V)([(0,j.ntu)()])})});let eL=()=>
1{let{postPanelModals:e,...t}=es;ea.push({pathname:(0,H.vi)({...t},en),search:el.search})};return(0,o.jsx)(r.ZP,{group:"post_load_panel_modals",children:(0,o.jsxs)(v.C5,{baseUrl:null!=en?en:q,children:[(0,o.jsx)(v.UI,{path:"/:filterPanelModals(pickUpDate)",children:(0,o.jsx)(Z.$,{onClose:eL,onChange:e=>{eo((0,m.zb)([{key:"pickUpDateTimes",type:y.xT.UIError}])),ej({pickUpDateTimes:(0,j.c0V)(e,ec)})},selectedDates:ey,layer:4,offset:0,panelTitle:(0,V.t)(V.T.modalPanels_DatesTime_PickUpDatesHeader),actionButtonType:eC?Z.m.Reset:Z.m.Clear,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(M.Wq,M.Wq)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(pickUpTime)",children:(0,o.jsx)(z.f,{onClose:eL,onChange:e=>{eo((0,m.zb)([{key:"pickUpTime",type:y.xT.UIError}])),ej({pickUpDateTimes:(0,j.c0V)(ey,e),pickUpTime:e})},selectedTime:ec,locationType:g.aD.Pickup,layer:4,offset:0,panelTitle:(0,V.t)(V.T.modalPanels_DatesTime_PickUpTimeHeader),actionButtonType:eC?Z.m.Reset:Z.m.Clear,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(M.IV,M.IV)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(dropOffDate)",children:(0,o.jsx)(Z.$,{onClose:eL,onChange:e=>{eo((0,m.zb)([{key:"deliveryDateTime",type:y.xT.UIError}])),ej({deliveryDateTime:(0,a.isEmpty)(e)?void 0:(0,j.c0V)(e,ep)[0]})},selectedDates:ev,layer:4,offset:0,maxSelectionCount:1,panelTitle:(0,V.t)(V.T.modalPanels_DatesTime_DropOffDateHeader),actionButtonType:eC?Z.m.Reset:Z.m.Clear,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(M.Km,M.Km)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(dropOffTime)",children:(0,o.jsx)(z.f,{onClose:eL,onChange:e=>{eo((0,m.zb)([{key:"deliveryTime",type:y.xT.UIError}])),ej({deliveryDateTime:(0,a.isEmpty)(ev)?void 0:(0,j.c0V)(ev,e)[0],deliveryTime:e})},selectedTime:ep,locationType:g.aD.DropOff,layer:4,offset:0,maxSelectionCount:1,panelTitle:(0,V.t)(V.T.modalPanels_DatesTime_DropOffTimeHeader),actionButtonType:eC?Z.m.Reset:Z.m.Clear,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(M.EV,M.EV)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(trailerType)",children:(0,o.jsx)(B.s,{onClose:eL,layer:4,offset:0,hasAll:!1,sortBy:"id",selectedOptions:null!=ef?ef:[],onChange:e=>{let t=(0,a.filter)(eu,t=>(0,a.includes)(e,t.equipmentType)),i=(0,a.map)(t,e=>e.equipmentType),n=(0,a.map)(e,e=>{let n=(0,a.indexOf)(i,e);return -1!==n?t[n]:{equipmentType:e,equipmentSpecifications:[]}});ej({equipment:n})},hasClearButton:!0,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(w.b,w.b)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(trailerSpecification)",children:(0,o.jsx)(O.R,{onClose:eL,layer:4,offset:0,specificationOptions:L.UB,selectedItems:null!==(i=null===(t=eu[n])||void 0===t?void 0:t.equipmentSpecifications)&&void 0!==i?i:[I.z_l.None],onChange:s,allSelectedOption:I.z_l.None,shouldCloseOnEsc:!0,shouldSubmitOnEnter:!0,...(0,K.J)(P.H,P.H)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(recentPost)",children:(0,o.jsx)(A.s,{onClose:eL,onLoadTemplateClick:e=>{eL(),et(),ej({originLocation:(0,j._qZ)((0,Q.xL)(e.originLocation)),destinationLocation:(0,j._qZ)((0,Q.xL)(e.destinationLocation)),loadSize:e.loadSize,length:e.length,weight:e.weight,equipment:(0,f.Mt)(e.equipments),pickUpDateTimes:(0,j.c0V)([(0,j.ntu)()]),miles:(0,j.msw)(e.mileage)})},loadTemplates:eg,isLoading:ex,layer:4,offset:0,shouldCloseOnEsc:!0})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(addStops)",children:(0,o.jsx)(E.w,{onClose:eL,locationType:x.cO.AddStop,label:(0,V.t)(V.T.menu_mileageCalculatorPanel_addStop),stopIndex:$,layer:4,addStopLocationAction:m.T$,shouldCloseOnEsc:!0,...(0,K.J)(T.b,U.O0)})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(editStop)",children:(0,o.jsx)(E.w,{onClose:eL,locationType:x.cO.EditStop,label:(0,V.t)(V.T.menu_mileageCalculatorPanel_editStop),stopIndex:$,layer:4,editStopLocationAction:m.HA,headerActionText:(0,V.t)(V.T.common_myDocuments_documentActionSheet_delete),headerOnActionClick:e=>{eo((0,m.Uf)(e))},startingItem:(0,Q.QT)(eh[$]),shouldCloseOnEsc:!0})}),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(visibilityRules)",children:(0,o.jsx)(k.L,{offset:0,layer:2,onClickRuleset:e=>{ei(e),eL()},onClose:eL,shouldCloseOnEsc:!0,...(0,K.J)(G.F,N.l)})}
1),(0,o.jsx)(v.UI,{path:"/:filterPanelModals(editRule)",children:(0,o.jsx)(F.B,{offset:0,handleVisibilityRuleChange:ei,onClose:eL,openOnboardedCarriersPanel:()=>{ea.push(C.Z5.ONBOARDED_CARRIERS_BASE)},shouldCloseOnEsc:!0,...(0,K.J)(Y.Nd,N.l)})}),(0,o.jsx)(W.C,{baseUrl:null!=en?en:"/post-loads/post/:actionType(single|online|offline)?/:load(load)?/:loadID(".concat(h.p,")?/:editing(edit|clone)?"),appendedPath:"/:postingContacts(posting_contacts)",offset:0,layer:2,isWithDropdownMenu:!0,onSelectPostingContact:e=>{var t,i,n,o;eo((0,m.uR)({dispatchName:(0,a.trim)("".concat(e.firstName," ").concat(e.lastName)),dispatchEmail:null==e?void 0:e.email,"dispatchPhone.number":null!==(n=null===(t=e.phone)||void 0===t?void 0:t.lineNumber)&&void 0!==n?n:"","dispatchPhone.extension":null!==(o=null===(i=e.phone)||void 0===i?void 0:i.extension)&&void 0!==o?o:""})),eo((0,m.jM)(e)),em()},onClose:()=>em(),shouldCloseOnEsc:!0,...(0,K.J)(S.I,"".concat(D.J,"_collapse"),"".concat(D.J,"_expand"))})]})})},ee=e=>(0,a.isUndefined)(e)?[]:[(0,j.a0V)(e)];n()}catch(e){n(e)}})},286068:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(496486),o=i(388830),l=i(378071),a=i(747441);let s=e=>(0,a.Qh)([{relativeStrength:a.ll,shouldIncrement:!(0,n.isUndefined)(e.pickUpTime)&&(0,l.MuG)(e.pickUpTime)},{relativeStrength:a.ll,shouldIncrement:!(0,n.isUndefined)(e.deliveryTime)&&(0,l.MuG)(e.deliveryTime)},{relativeStrength:a.BM,shouldIncrement:!(0,n.isUndefined)(e.deliveryDateTime)},{relativeStrength:a.v9,shouldIncrement:!(0,n.isUndefined)(e.length)&&0!==e.length},{relativeStrength:a.v9,shouldIncrement:!(0,n.isUndefined)(e.weight)&&0!==e.weight},{relativeStrength:a.xs,shouldIncrement:0!==e[o.Xs]}])},644407:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Hg:function(){return m},j3:function(){return x},ng:function(){return g}});var o=i(785893);i(667294);var l=i(50533),a=i(148635),s=i(378071),d=i(702428),r=i(296469),c=i(501421),p=i(754057),u=i(950311),h=e([d,c]);[d,c]=h.then?(await h)():h;let g="dispatchPhone.number",x="dispatchPhone.extension",m=e=>{let t=(0,l.I0)(),i=(0,u.v9)(e=>e.postLoadFields.fields.dispatchName),n=(0,u.v9)(e=>e.postLoadFields.fields[g]),h=(0,u.v9)(e=>e.postLoadFields.fields[x]),m=(0,u.v9)(e=>e.postLoadFields.fields.dispatchEmail);return(0,o.jsx)(d.E,{id:"posting_contact",isTextSizeBig:!0,titleText:(0,p.t)(p.T.postLoads_collapsibleMenu_postingContact),subtitleText:e.isExpanded?void 0:"".concat(i),subtitleSecondLineText:e.isExpanded?void 0:(0,s.$3s)((0,s.EcK)(n)),subtitleThirdLineText:e.isExpanded?void 0:m,isOpened:e.isExpanded,handleClick:()=>t((0,a.eQ)(a.I6.PostedLoadsPostingContact,!e.isExpanded)),hasCustomizedBorder:!0,hasCustomizedBackground:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(c.c,{style:{display:"flex",flexDirection:"column",width:"100%"},children:e.isExpanded?(0,o.jsx)(r.q,{contactName:i,phone:(0,s.EcK)(n),ext:h,email:m,onPostingContactsClick:e.onPostingContactsClick}):null},"posting_contact_data_wrapper")})};n()}catch(e){n(e)}})},242463:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Z:function(){return r}});var o=i(785893);i(667294);var l=i(540120),a=i(609927),s=i(177115),d=e([s]);s=(d.then?(await d)():d)[0];let r=e=>(!e.isLoadProgressLimitingEdit||e.panelType===l.w.clone)&&(e.panelType!==l.w.edit||void 0!==e.visibility)?(0,o.jsx)("div",{style:{padding:"10px 15px 0 15px"},children:e.panelType===l.w.edit?(0,o.jsx)(a.C,{appliedRuleset:e.visibility,openEditRulePanel:e.openEditRulePanel}):(0,o.jsx)(s.q,{shouldShowDefaultRule:e.panelType!==l.w.clone,currentVisibilityRuleset:e.visibility,openLoadVisibilityRulesPanel:e.openSelectVisibilityRulePanel,openCreateVisibilityRulesPanel:e.openCreateVisibilityRulesPanel,onChangeVisibilityRuleset:e.handleVisibilityRuleChange,shouldOpenWithVisibilityRules:e.shouldOpenWithVisibilityRules})}):null;n()}catch(e){n(e)}})},797789:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{a:function(){return p}});var o=i(785893),l=i(667294),a=i(50533),s=i(940787),d=i(754057),r=i(442639),c=e([s]);s=(c.then?(await c)():c)[0];let p=e=>{let{onClick:t}=e,i=(0,a.I0)();return(0,l.useEffect)(()=>{i((0,s.V2)())},[]),(0,o.jsx)(r.Ku,{id:"pre_fill_button",variant:"contained",text:(0,d.t)(d.T.postLoads_loadTemplates_buttonTitle),color:"primary",onClick:t,style:{padding:0,height:36,minWidth:70,fontWeight:"bold",marginRight:16}})};n()}catch(e){n(e)}})},332623:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{r:function(){return x}});var o=i(785893);i(667294);var l=i(50533),a=i(148635),s=i(388830),d=i(702428),r=i(958539),c=i(501421),p=i(280645),u=i(754057),h=i(950311),g=e([d,p,c,r]);[d,p,c,r]=g.then?(await g)():g;let x=e=>{var t,i,n;let g=(0,l.I0)(),x=(0,h.v9)(e=>e.postLoadFields.rateCheck.isLoading),m=(0,h.v9)(e=>e.postLoadFields.fields[s.Xs]),f=(0,h.v9)(e=>e.postLoadFields.fields.miles);return(0,o.jsx)(d.E,{id:"rate_and_distance",isTextSizeBig:!0,titleText:(0,u.t)(u.T.postLoads_collapsibleMenu_tripRateAndDistance),subtitleElement:e.isExpanded?void 0:(0,o.jsx)(p.d,{rateAmount:m,distance:f}),isOpened:e.isExpanded,handleClick:()=>g((0,a.eQ)(a.I6.PostedLoadsRateAndDistance,!e.isExpanded)),hasCustomizedBorder:!0,hasCustomizedBackgroun
1d:!0,panelTitleStyle:{background:"transparent"},children:(0,o.jsx)(c.c,{style:{display:"flex",flexDirection:"column",width:"100%"},children:e.isExpanded?(0,o.jsx)(r.vK,{ratePerMileMin:null===(t=e.rateCheck)||void 0===t?void 0:t.ratePerMileMin,avgRatePerMile:null===(i=e.rateCheck)||void 0===i?void 0:i.avgRatePerMile,ratePerMileMax:null===(n=e.rateCheck)||void 0===n?void 0:n.ratePerMileMax,rate:m,miles:f,isLoading:x,onChange:e.onChange}):null},"rate_and_distance_data_wrapper")})};n()}catch(e){n(e)}})},280645:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{d:function(){return h}});var o=i(785893);i(667294);var l=i(496486),a=i(671893),s=i(941650),d=i(596142),r=i(505033),c=i(754057),p=e([d]);d=(p.then?(await p)():p)[0];let u=a.ZP.div.withConfig({displayName:"RateAndDistanceSubtitle__SubtitleElementWrapper"})(["\n display: 'flex';\n flex-direction: 'row';\n padding-top: 10px;\n"]),h=e=>{let{rateAmount:t,distance:i}=e;return(0,o.jsxs)(u,{children:[(0,o.jsxs)(s.QE,{id:"rate_amount_subtitle",style:{fontWeight:"bold",fontSize:"".concat(r.Bf.Content,"px")},children:[(0,c.t)(c.T.common_dollar_sign),null!=t?t:0]}),(0,o.jsxs)(s.QE,{id:"slash_subtitle",style:{fontWeight:"normal",fontSize:"".concat(r.Bf.Content,"px")},children:[" ","/"," "]}),(0,o.jsxs)(s.QE,{id:"miles_subtitle",style:{fontWeight:"normal",fontSize:"".concat(r.Bf.Content,"px")},children:[null!=i?i:0,(0,c.t)(c.T.common_miles_short)]}),(0,o.jsxs)(s.QE,{id:"equal_sign_subtitle",style:{fontWeight:"normal",fontSize:"".concat(r.Bf.Content,"px")},children:[" ",(0,c.t)(c.T.common_equalitySign)," "]}),(0,o.jsxs)(s.QE,{id:"getCalculatedPerMileRate_subtitle",style:{fontWeight:"bold",fontSize:"".concat(r.Bf.Content,"px")},children:[(0,c.t)(c.T.common_dollar_sign),(0,l.round)((0,l.toNumber)((0,d.RX)(t,i)),2),"/",(0,c.t)(c.T.common_miles_short)]})]})};n()}catch(e){n(e)}})},118357:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{y:function(){return h}});var o=i(785893);i(667294);var l=i(50533),a=i(483638),s=i(148635),d=i(630613),r=i(365397),c=i(754057),p=i(950311),u=e([d]);d=(u.then?(await u)():u)[0];let h=e=>{let{setShouldOpenWithVisibilityRules:t}=e,i=(0,p.v9)(e=>e.applicationSettings.expandedSections[s.I6.PostedLoadsLoadVisibility]),n=(0,p.v9)(e=>e.postLoadFields.isPostingWithVisibilityRules&&e.loadVisibilityRules.rulesets.length>0),u=(0,p.v9)(e=>e.postLoadFields.fields.visibility),h=(0,l.I0)();return i?null:u?(0,o.jsx)("div",{style:{paddingTop:16,lineHeight:"24px"},children:"".concat((0,c.t)(c.T.loadVisibilityRules_customRule)," ").concat((0,c.t)(c.T.postLoads_Assigned))}):(0,o.jsx)(a.default,{onClick:()=>{t(!0),h((0,d.Ql)(!0))},style:{paddingLeft:0},children:(0,o.jsx)(r.XZ,{id:"load_visibility_rules_checkbox",isChecked:n&&void 0!==u,labelPosition:"after",label:(0,c.t)(c.T.loadVisibilityRules_postWithVisibilityRules),labelStyle:{justifyContent:"flex-start",paddingLeft:0},checkboxStyle:{paddingLeft:0},checkboxTabIndex:-1})})};n()}catch(e){n(e)}})},486793:function(e,t,i){i.d(t,{j:function(){return a}});var n=i(667294),o=i(496486),l=i(950311);let a=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,l.v9)(e=>e.loadVisibilityRules.rulesets),i=(0,l.v9)(e=>e.postLoadFields.fields.visibility);return(0,n.useMemo)(()=>{let n=(0,o.find)(t,e=>!0===e.isDefault);if(!(0,o.isEmpty)(null==i?void 0:i.rules))return i;if(e){if(!(0,o.isEmpty)(null==n?void 0:n.rules))return n;if(t.length)return t[0]}},[i,t,e])}},729016:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{w:function(){return v}}),i(127530);var o=i(785893),l=i(667294),a=i(50533),s=i(527414),d=i(509120),r=i(541697),c=i(827959),p=i(328257),u=i(39215),h=i(694677),g=i(86740),x=i(805745),m=i(950311),f=e([h]);h=(f.then?(await f)():f)[0];let y={type:r.ajm.ZipCode,label:"",latitude:0,longitude:0,state:"",city:"",stateUrlId:"",cityUrlId:"",zipCode:""},v=e=>{var t;let i=(0,a.I0)(),n=(0,m.v9)(e=>e.locationState.reverseGeolocation),f=(0,m.v9)(e=>e.loadSearchSettings.homeLocation),[v,L]=(0,l.useState)(!1),[I,b]=(0,l.useState)(y),[_,T]=(0,l.useState)(!1),[S,M]=(0,l.useState)(!1),[N,P]=(0,l.useState)(!1),[w,D]=(0,l.useState)(!1),[R,k]=(0,l.useState)(null!==(t=e.startingItem)&&void 0!==t?t:""),E=(0,g.BF)();(0,p.b6)(()=>{A(),i((0,c.rw)(R,!1))}),(0,l.useEffect)(()=>
1{if(_){var t,n,o,l,a;switch(e.locationType){case d.cO.PickUp:i(null===(n=e.updatePickupLocationAction)||void 0===n?void 0:n.call(e,{selectedLocation:I}));break;case d.cO.DropOff:i(null===(o=e.updateDropOffLocationAction)||void 0===o?void 0:o.call(e,{selectedLocation:I}));break;case d.cO.AddStop:i(null===(l=e.addStopLocationAction)||void 0===l?void 0:l.call(e,{selectedLocation:I,stopIndex:e.stopIndex}));break;case d.cO.EditStop:i(null===(a=e.editStopLocationAction)||void 0===a?void 0:a.call(e,{selectedLocation:I,stopIndex:e.stopIndex}))}null===(t=e.onFocusAfterSubmit)||void 0===t||t.call(e),e.onClose()}},[_,I]),(0,l.useEffect)(()=>{if((null==n?void 0:n.payload)&&S){let e=n.payload,t=C(e.city,e.states);O({type:r.ajm.CityState,label:"".concat(t.city,", ").concat(t.state),latitude:e.latitude,longitude:e.longitude,state:t.state,city:t.city,stateUrlId:"",cityUrlId:"",zipCode:""})}},[n,S]),(0,l.useEffect)(()=>{f&&!v&&N&&B()},[f]),(0,l.useEffect)(()=>{k(I.label)},[I]),(0,l.useEffect)(()=>{""!==R&&D(!1)},[R]),(0,l.useEffect)(()=>{var t;k(null!==(t=e.startingItem)&&void 0!==t?t:"")},[e.startingItem]);let Z=e=>{i((0,s.Kx)(e))},A=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?E:void 0;(0,x.Y)({onSuccess:e=>Z(e),onDenied:()=>(0,u.vp)(t),onUnavailable:()=>(0,u.oP)(t),onTimeout:()=>(0,u.M6)(t)})},z=()=>{P(!0),L(!v)},O=e=>{j(e)?D(!0):(b(e),T(!0))},B=()=>{if(f){let e=C(f.city,f.states);O({type:r.ajm.CityState,label:"".concat(e.city,", ").concat(e.state),state:e.state,city:e.city,latitude:0,longitude:0,stateUrlId:"",cityUrlId:"",zipCode:""})}else z()};return(0,o.jsx)(h.u,{isHomePickOpen:v,hasError:w,homeLocation:f,origin:R,toggleHomePick:z,onSubmitSelectedOrigin:O,onSelectOrigin:e=>{k(e)},onClear:()=>{b(y),k("")},handleCurrentLocationClick:()=>{A(!0),M(!0)},handleHomeClick:B,onClose:()=>{var t;e.onClose(),null===(t=e.onFocusAfterClose)||void 0===t||t.call(e)},startingItem:e.startingItem,label:e.label,stopIndex:e.stopIndex,layer:e.layer,headerActionText:e.headerActionText,headerOnActionClick:e.headerOnActionClick,autoFocus:e.autoFocus,shouldCloseOnEsc:e.shouldCloseOnEsc})},C=(e,t)=>{let i=t?t[0]:"";return{city:e||"",state:i}},j=e=>""===e.label||void 0===e.label||!1;n()}catch(e){n(e)}})},694677:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{u:function(){return j}}),i(127530);var o=i(785893),l=i(667294),a=i(496486),s=i(671893),d=i(127118),r=i(541697),c=i(442639),p=i(285016),u=i(229878),h=i(436925),g=i(751679),x=i(591928),m=i(230226),f=i(754057),y=i(519640),v=e([x,g]);[x,g]=v.then?(await v)():v;let C=s.ZP.div.withConfig({displayName:"UIMileageLocationPicker__StyledGrid"})(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 16px;\n"]),j=e=>{var t,i,n;let[s,v]=(0,l.useState)(!1),j=(0,l.useMemo)(()=>!s||(0,a.isEmpty)(e.origin),[s,e.origin]),b=t=>{let i=I(t);i&&(e.onSelectOrigin(i.label),e.onSubmitSelectedOrigin(i))},_=e=>()=>{v(e)};return e.isHomePickOpen?(0,o.jsx)(x.c,{toggleHomePick:e.toggleHomePick,suggestionClick:e.toggleHomePick,updateCurrentLocation:!0,layer:e.layer,shouldCloseOnEsc:e.shouldCloseOnEsc}):(0,o.jsxs)(g.s_,{id:"mileage_calculator",layer:null!==(t=e.layer)&&void 0!==t?t:0,offset:null!==(i=e.offset)&&void 0!==i?i:0,size:g.lj.small,backgroundColor:g.sN,children:[(0,o.jsx)(g.V9,{label:e.label,hasBackButton:!0,onClose:e.onClose,actionText:e.headerActionText,handleClick:()=>{e.headerOnActionClick&&void 0!==e.stopIndex&&(e.headerOnActionClick(e.stopIndex),e.onClose())},shouldCloseOnEsc:e.shouldCloseOnEsc}),(0,o.jsx)(C,{children:(0,o.jsx)(h.l,{id:"text_input",title:e.label,onSelectionChange:t=>{e.onSubmitSelectedOrigin(t)},value:e.origin,onInputValueChange:t=>{e.onSelectOrigin(t)},onClear:()=>{e.onClear()},isWithoutMargin:!0,hasError:e.hasError,shouldIncludeStates:null!==(n=e.shouldIncluseStates)&&void 0!==n&&n,required:!0,onFocus:_(!0),onBlur:_(!1),autoFocus:e.autoFocus})}),(0,o.jsx)(u.I,{children:j?(0,o.jsxs)(o.Fragment,{children:[e.withCountry?(0,o.jsx)(p.Z,{countries:[{name:"".concat((0,f.t)(f.T.findLoads_findLoads_anywhere)),id:d.CE.ANYWHERE},{name:"".concat((0,f.t)(f.T.findLoads_findLoads_usa)),id:d.CE.US},{name:"".concat((0,f.t)(f.T.findLoads_findLoads_canada)),id:d.CE.CA}],handleChange:e.handleCountryChange}):null,(0,o.jsx)(c.ZB,{id:"current_location",title:"".concat((0,f.t)(f.T.findLoads_findLoads_currentLocationLabel)),mainIcon:y.Z.location,onClick:e.handleCurrentLocationClick}),(0,o.jsx)(c.ZB,{id:"home",title:"".concat((0,f.t)(f.T.findLoads_findLoads_home)),mainIcon:y.Z.home,controlIcon:y.Z.edit,subTitle:L(e.homeLocation),onControlClick:e.toggleHomePick,onClick:e.handleHomeClick}),e.shouldIncluseStates&&(0,o.jsx)(c.ZB,{id:"states_provinces",title:"".concat((0,f.t)(f.T.findLoads_findLoads_statesProvinces)),mainIcon:y.Z.states,controlIcon:e.isPickingStates?y.Z.collapse:y.Z.expand,onClick:e.handleToggleStatesPick,onControlClick:e.handleToggleStatesPick}),(0,o.jsx)(m.H,{onLocationSelect:e=>b(e),locationTypes:[r.cRs.City,r.cRs.ZipCode]})]}):null})]})},L=e=>(null==e?void 0:e.city)&&(null==e?void 0:e.states)?"".concat(e.city,", ").concat(e.states[0]):(0,f.t)(f.T.findLoads_findLoads_setHomeLocation),I=e=>{if(!!e.address&&!!e.type)return e.type===r.cRs.ZipCode?{type:r.ajm.ZipCode,city:e.address.city||"",state:e.address.states?e.address.states[0]:"",zipCode:e.address.zipCode||"",label:"".concat(e.address.zipCode," ").concat(e.address.city||""," "),latitude:0,longitude:0,stateUrlId:"",cityUrlId:""}:{type:r.ajm.CityState,city:e.address.city||"",state:e.address.states?e.address.states[0]:"",zipCode:e.address.zipCode||"",label:"".concat(e.address.city,", ").concat(e.address.states?e.address.states[0]:""),latitude:0,longitude:0,stateUrlId:"",cityUrlId:""}};n()}catch(e){n(e)}})},884383:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{s:function(){return P}});var o=i(785893);i(667294);var l=i(496486),a=i(50533),s=i(671893),d=i(483638),r=i(230866),c=i(940787),p=i(378071),u=i(797860),h=i(751679),g=i(707496),x=i(259321),m=i(300378),f=i(505033),y=i(199078),v=i(754057),C=i(519640),j=e([h,c]);[h,c]=j.then?(await j)():j;let L=(0,y.Z)()((0,s.ZP)(d.default).withConfig({displayName:"RecentPostsPanel__RecentCardWrapper"})(["\n && {\n padding: 0;\n margin-bottom: 8px;\n border-bottom: 1px solid ",";\n box-shadow: 0 2px 4px 0px ",";\n background: ",";\n width: 100%;\n }\n"],m.I.GRAY_SMOKE,e=>e.theme.palette.decorator.border2,e=>e.theme.palette.background.paper)),I=s.ZP.div.withConfig({displayName:"RecentPostsPanel__RecentCard"})(["\n display: flex;\n flex-wrap: wrap;\n padding: 15px;\n padding-top: 18px;\n width: 100%;\n text-transform: initial;\n"]),b=(0,y.Z)()(s.ZP.div.withConfig({displayName:"RecentPostsPanel__RecentCardInfo"})(["\n display: flex;\n flex: 1;\n align-items: center;\n font-size: ",";\n font-weight: ",";\n color: ",";\n"],e=>e.theme.text.header3.fontSize,e=>e.theme.text.header3.fontWeight,m.I.GRAY_DARK)),_=s.ZP.div.withConfig({displayName:"RecentPostsPanel__RecentCardChips"})(["\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n"]),T=s.ZP.div.withConfig({displayName:"RecentPostsPanel__RecentCardChipWithOffset"})(["\n margin: ","px ","px 0px 0px;\n"],f.Ki.InterElementVertical,f.Ki.InterListElement),S=s.ZP.span.withConfig({displayName:"RecentPostsPanel__RecentCardInfoLocation"})(["\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"]),M=s.ZP.div.withConfig({displayName:"RecentPostsPanel__PreFillPanelLabel"})(["\n font-size: ","px;\n color: ",";\n padding: 18px ","px;\n"],f.Bf.ContentDetail,m.I.GRAY_STONE,f.Ki.InterSection),N=e=>{let{equipments:t}=e;return(0,o.jsx)(o.Fragment,{children:(0,l.map)(t,e=>{let t=(0,p.IVB)(e);return void 0!==t?(0,o.jsx)(T,{children:(0,o.jsx)(u.Y4,{id:"trailer_type",text:t},e.equipmentType)},t):null})})},P=e=>{let t=(0,a.I0)(),i=(0,l.isEmpty)(e.loadTemplates);return(0,o.jsxs)(h.s_,{id:"pre_fill_from_recent",layer:e.layer,size:h.lj.small,offset:e.offset,backgroundColor:h.sN,children:[(0,o.jsx)(h.V9,{label:(0,v.t)(v.T.postLoads_loadTemplates_pageTitle),hasBackButton:!0,onClose:e.onClose,actionElement:i?void 0:(0,o.jsx)("div",{children:"Clear all"}),handleClick:()=>t((0,c.oP)()),shouldCloseOnEsc:e.shouldCloseOnEsc}),(0,l.isEmpty)(e.loadTemplates)||e.isLoading?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{children:"Select to pre-fill posting form"}),(0,l.map)(e.loadTemplates,t=>{var i,n;return(0,o.jsx)(L,{onClick:()=>e.onLoadTemplateClick(t),children:(0,o.jsxs)(I,{children:[(0,o.jsxs)(b,{children:[(0,o.jsx)("div",{style:{display:"inline-grid",maxWidth:"50%"},children:(0,o.jsx)(S,{children:(0,p.EHX)(null==t?void 0:null===(i=t.originLocation)||void 0===i?void 0:i.address).locationName})}),(0,o.jsx)("img",{src:C.Z.arrowRightGreen,alt:"arrow-right-green"}),(0,o.jsx)("div",{style:{display:"inline-grid",maxWidth:"50%"},children:(0,o.jsx)(S,{children:(0,p.EHX)(null==t?void 0:null===(n=t.destinationLocation)||void 0===n?void 0:n.address).locationName})})]}),(0,o.jsxs)(_,{children:[(0,o.jsx)(T,{children:t.loadSize&&(0,o.jsx)(u.Y4,{id:"load_size",text:t.loadSize})}),(0,o.jsx)(N,{equipments:t.equipments}),t.length&&(0,p.Ly5)(t.length)?(0,o.jsx)(T,{children:(0,o.jsx)(u.Y4,{id:"length",text:(0,v.t)(v.T.unit_feet,{value:(0,p.ufS)(t.length)})})}):null,t.weight&&(0,p.Ly5)(t.weight)?(0,o.jsx)(T,{children:(0,o.jsx)(u.Y4,{id:"weight",text:(0,v.t)(v.T.unit_pounds,{value:(0,p.ufS)(t.weight)})})}):null]})]})},t.id)})]}),e.isLoading?(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px"},children:(0,o.jsx)(r.default,{size:20,color:"secondary"})}):null,i&&!e.isLoading?(0,o.jsx)(g.ht,{imageSection:(0,o.jsx)(x.Z,{}),title:(0,v.t)(v.T.postLoads_loadTemplates_notFound_title),subtitle:(0,v.t)(v.T.postLoads_loadTemplates_notFound_subtitle)}):null]})};n()}catch(e){n(e)}})},275892:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{f:function(){return m}}),i(127530);var o=i(785893),l=i(667294),a=i(496486),s=i(793479),d=i(976289),r=i(751679),c=i(551050),p=i(942865),u=i(492348),h=i(875847),g=i(754057),x=e([c,r,d]);[c,r,d]=x.then?(await x)():x;let m=e=>{let t,[i,n]=(0,l.useState)(e.selectedTime),x=e.actionButtonType===c.m.Reset;return x&&!(0,a.isEqual)(i,e.selectedTime)&&(t=(0,g.t)(g.T.modalPanels_Actions_Re
1set)),(0,o.jsxs)(r.s_,{id:"dates_picker",layer:e.layer,size:r.lj.small,offset:e.offset,backgroundColor:r.sN,children:[(0,o.jsx)(r.V9,{label:e.panelTitle,hasBackButton:!0,actionText:t,actionTextStyle:h.ZP.text.subtitleRegular,handleClick:()=>{x?n(e.selectedTime):n(void 0)},onClose:()=>{var t;e.onClose(),null===(t=e.onFocusAfterClose)||void 0===t||t.call(e)},shouldCloseOnEsc:e.shouldCloseOnEsc}),(0,o.jsx)(p.B8,{children:(0,o.jsx)(u.j,{label:e.locationType===s.aD.Pickup?(0,g.t)(g.T.modalPanels_DatesTime_PickUpTimeHeader):(0,g.t)(g.T.modalPanels_DatesTime_DropOffTimeHeader),handleChange:n,selectedTime:i})}),(0,o.jsx)(d.y,{shouldSubmitOnEnter:e.shouldSubmitOnEnter,onClick:()=>{var t;e.onChange(i),e.onClose(),null===(t=e.onFocusAfterSubmit)||void 0===t||t.call(e)}})]})};n()}catch(e){n(e)}})},765682:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{t:function(){return h}});var o=i(785893);i(667294);var l=i(496486),a=i(793479),s=i(855900),d=i(423196),r=i(187384),c=i(785625),p=i(71728),u=e([p,c,d,s,r]);[p,c,d,s,r]=u.then?(await u)():u;let h=e=>{var t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.A,{isOpened:(0,l.includes)(e.openedTabs,a.h$.PostedStepper),handleChange:e.handleTabChange,load:e.loadDetails}),(0,o.jsx)(c.i,{loadStatus:e.loadDetails.status,loadProgress:null===(t=e.loadDetails.posterMetadata)||void 0===t?void 0:t.progress,handleClick:e.openTruckLocator,handleLoadStatusChange:e.handleLoadStatusChange}),(0,o.jsx)(d.H,{loadInfo:e.loadInfo,load:e.loadDetails,handleChange:e.handleTabChange,isOpened:(0,l.includes)(e.openedTabs,a.h$.MarketRates)}),(0,o.jsx)(s.l,{loadInfo:e.loadInfo,handleChange:e.handleTabChange,isOpened:(0,l.includes)(e.openedTabs,a.h$.Backhauls),isPostedLoad:!0,selectedSearch:e.selectedSearch,shouldDisplayPostTruck:!1,load:e.loadDetails}),(0,o.jsx)(r.e,{load:e.loadDetails,onMapClick:e.openMapPanel,handleChange:e.handleTabChange,isOpened:(0,l.includes)(e.openedTabs,a.h$.Mileage)})]})};n()}catch(e){n(e)}})},637835:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{M:function(){return V},s:function(){return ec}}),i(127530),i(202394);var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(616550),r=i(671893),c=i(793479),p=i(786228),u=i(940787),h=i(314343),g=i(200151),x=i(265593),m=i(541697),f=i(614281),y=i(550988),v=i(641756),C=i(374208),j=i(690265),L=i(751679),I=i(533091),b=i(425279),_=i(177432),T=i(447700),S=i(836590),M=i(922588),N=i(924377),P=i(771674),w=i(465007),D=i(702979),R=i(707261),k=i(86740),E=i(886772),Z=i(19037),A=i(521653),z=i(300378),O=i(505033),B=i(875847),W=i(754057),F=i(950311),G=i(704216),Y=i(765682),U=e([E,b,_,Y,R,I,T,L,w,u]);[E,b,_,Y,R,I,T,L,w,u]=U.then?(await U)():U;let H=x.Z5.FINDTRUCKS_LOCATETRUCK,V="PrivateNotes",J=r.ZP.div.withConfig({displayName:"PostedDetailsPanel__DetailContainer"})(["\n color: ",";\n position: relative;\n min-height: 100%;\n height: 100%;\n background: ",";\n display: flex;\n flex-direction: column;\n"],B.ZP.palette.text.primary,B.ZP.palette.background.white),Q=r.ZP.div.withConfig({displayName:"PostedDetailsPanel__Content"})(["\n display: flex;\n flex: 1;\n width: 100%;\n background: ",";\n flex-direction: ",";\n border-top: 1px solid ",";\n"],B.ZP.palette.background.white,(0,D.wU)("column","initial"),z.I.GRAY_SMOKE),K=r.ZP.div.withConfig({displayName:"PostedDetailsPanel__Col"})(["\n display: flex;\n flex: 1;\n flex-direction: column;\n border-right: 1px solid ",";\n width: ",";\n"],B.ZP.palette.background.smoke,(0,D.wU)("unset","50%")),X=r.ZP.div.withConfig({displayName:"PostedDetailsPanel__Row"})(["\n padding: ","px ","px 0;\n border-bottom: 1px solid ",";\n"],O.Ki.ScreenSide,O.Ki.ScreenSide,B.ZP.palette.background.smoke),q=e=>{var t,i,n;let r;let[c,h]=(0,l.useState)(e.match.params.loadID),g=(0,D.ds)(),f=(0,k.BF)(),y=null!==(t=(0,F.v9)(e=>e.communication.isCommunicationsEnabled))&&void 0!==t&&t,v=(0,Z.ER)(),I=(0,F.v9)(e=>e.loadDetailsTabs.openedLoadDetailsTabs),w=(0,F.v9)(e=>{var t,i;return null===(i=e.postedLoadDetails)||void 0===i?void 0:null===(t=i.currentLoad)||void 0===t?void 0:t.status}),z=(0,l.useRef)(null),O=(0,E.gE)(),B=(0,F.M7)(e=>{var t,i,n;return{postedLoadDetails:e.postedLoadDetails,loadInfo:e.loadInfo.loadInfoMap,userRoles:null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(i=n.profile)||void 0===i?void 0:null===(t=i.payload)||void 0===t?void 0:t.roles,postLoadsState:e.postedLoads,postedLoads:e.postedLoads.loads,selectedSearch:e.loadSearch.selectedSearch}}),U=B.postedLoadDetails.responseState.status,V=(0,s.I0)();if((0,l.useEffect)(()=>{h(e.match.params.loadID)},[e.match.params.loadID]),(0,l.useEffect)(()=>{ee(c,V)},[c]),er(),B.postedLoadDetails.currentLoad){r=B.postedLoadDetails.currentLoad;let e=(0,a.findIndex)(B.postedLoads,e=>e.id===c),t=B.postedLoads[e],i=t?t.fetchedAt:r.fetchedAt,n=t?t.age:r.age,o=t?t.lastRefreshedAge:r.lastRefreshedAge;r={...r,fetchedAt:i,age:n,lastRefreshedAge:o}}let q=B.loadInfo,ec=(0,D.B5)(g.width),ep=()=>O(z.current),eu=t=>()=>e.history.push((0,d.Gn)(H,{truckLocatorType:x.TJ.TruckLocator,id:t,from:"postLoad"}));return(0,o.jsxs)(J,{children:[(0,o.jsx)(L.V9,{label:"".concat((0,W.t)(W.T.postLoads_LoadDetails)," ").concat(w&&"Loaded"===U?"(".concat(w,")"):""),hasCloseButton:!0,onClose:el(V,e)}),"Error"===U||"PermissionDenied"===U?(0,o.jsx)(P.yu,{}):"Unavailable"===U?(0,o.jsx)(P.yE,{}):r&&"Loading"!==U?(0,o.jsxs)(o.Fragment,{children:[ec?(0,o.jsx)(N.Fq,{loadId:e.match.params.loadID,onClick:ea(e)}):null,(0,o.jsx)(T.a,{status:w,currentLoad:B.postedLoadDetails.currentLoad,shouldDisplayMessageOrBidButton:!(0,D.B5)(g.width)&&(y||v),handleLoadStatusChange:ei(c,w,V,f),handleLoadRefreshAge:eo(c,V),openLoadEditPanel:es(e,A.Y.Edit),handleLoadDelete:en(c,V,f),openLoadClonePanel:es(e,A.Y.Clone),shouldDisplayStatusAndRefresh:(null===(i=r.posterMetadata)||void 0===i?void 0:i.progress)!==m.lrW.Assigned&&(null===(n=r.posterMetadata)||void 0===n?void 0:n.progress)!==m.lrW.Delivered}),ec?null:(0,o.jsx)(N.Fq,{loadId:e.match.params.loadID,onClick:ea(e)}),r.privateLoadNote?(0,o.jsx)(C.M,{id:"privateLoadNote",titleText:(0,W.t)(W.T.common_load_PrivateNote),subtitleText:r.privateLoadNote,icon:G.Z,handleClick:ed(e,A.Y.
1Edit)}):null,(0,o.jsxs)(Q,{width:g.width,children:[(0,o.jsxs)(K,{width:g.width,children:[r.visibility&&w!==m.Px.Assigned&&w!==m.Px.Delivered?(0,o.jsx)(X,{children:(0,o.jsx)(M.v,{isLoadOffline:w===m.Px.Offline,appliedRuleset:(0,p.KV)(r.visibility)})}):null,(0,o.jsx)(b.f,{loadDetails:r,isPostLoad:!0,onManualExtraStopClick:ep}),(0,o.jsx)(X,{children:(0,o.jsx)(S.w,{commodity:r.commodity,postReference:r.postReference,numberOfLoads:r.numberOfLoads,notes:r.notes,numberOfStops:r.numberOfStops,commodityLabel:(0,W.t)(W.T.postLoads_ItemCommodity),notesRef:z,teamDriving:r.teamDriving?(0,W.t)(W.T.common_yes):(0,W.t)(W.T.common_no)})})]}),(0,o.jsxs)(K,{width:g.width,children:[(0,o.jsx)(_.A,{load:r,dispatchPhone:r.dispatchPhone,dispatchEmail:r.dispatchEmail}),(0,o.jsx)(Y.t,{loadInfo:r&&q.get(r.id),loadDetails:r,openedTabs:I,openTruckLocator:eu(c),handleTabChange:et(V),openMapPanel:ea(e),userRoles:B.userRoles?B.userRoles:[],handleLoadStatusChange:ei(c,w,V,f),selectedSearch:B.selectedSearch})]})]}),(0,o.jsx)($,{shouldDisplay:ec&&y,load:r})]}):(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px"},children:(0,o.jsx)(j.TK,{})}),(0,o.jsx)(R.W,{error:B.postLoadsState.updateLoad.error,onClose:()=>V((0,u.uQ)())})]})},$=e=>{var t;return e.shouldDisplay&&(null===(t=e.load)||void 0===t?void 0:t.conversation)?(0,o.jsx)(I.j,{children:(0,o.jsx)(T.$,{currentLoad:e.load})}):null},ee=(e,t)=>
1{t((0,f.Cu)(v._.Posted,e,c.GA)),t((0,y.xR)(e))},et=e=>(t,i)=>{e((0,h.d)([t],i))},ei=(e,t,i,n)=>()=>{t&&(0,w.NI)(e,t,i,n)},en=(e,t,i)=>()=>{(0,w.vj)(e,t,i)},eo=(e,t)=>()=>{t((0,u.p4)({loadID:e}))},el=(e,t)=>()=>{let{loadID:i,...n}=t.match.params;e((0,f.MC)(v._.Posted)),t.history.push({pathname:(0,A.vi)({...n}),search:t.location.search})},ea=e=>()=>{e.history.push({pathname:(0,A.vi)({...e.match.params,loadMap:"loadMap"}),search:e.location.search})},es=(e,t)=>()=>{let i=e.match.params.loadID;e.history.push({pathname:(0,A.vi)({...e.match.params,loadID:i,editing:t}),search:e.location.search})},ed=(e,t)=>()=>{let i=e.match.params.loadID;e.history.push({pathname:(0,A.vi)({...e.match.params,loadID:i,editing:t}),search:"?scroll=".concat(V)})},er=()=>{let e=(0,s.I0)(),t=(0,F.v9)(e=>e.postedLoads);(0,l.useEffect)(()=>{t.updateLoad.updateLoadStatusSuccess&&(e((0,u.vA)(t.includeAllCompanyLoads)),e((0,g.OV)({message:(0,W.t)(W.T.postLoads_popUps_updateStatus_SnackBar_Message),dismissSnackbar:()=>e((0,u.uQ)())}))),t.updateLoad.updateLoadAgeSuccess&&e((0,g.OV)({message:(0,W.t)(W.T.postLoads_RefreshAgeMessage),dismissSnackbar:()=>e((0,u.uQ)())})),t.updateLoad.deleteLoadSuccess&&(e((0,u.vA)(t.includeAllCompanyLoads)),e((0,g.OV)({message:(0,W.t)(W.T.postLoads_popUps_deleteLoad_SnackBar_Message),dismissSnackbar:()=>e((0,u.uQ)())})))},[t.updateLoad.updateLoadStatusSuccess,t.updateLoad.updateLoadAgeSuccess,t.updateLoad.deleteLoadSuccess])},ec=(0,d.EN)(e=>{let t=(0,F.v9)(e=>e.loadSearchSettings.viewOption.brokerLoads);return(0,o.jsx)(L.s_,{id:"load_details_panel",size:L.lj.medium,layer:e.layerIndex,offset:t.field===m.qWf.List?L.B$:2,children:(0,o.jsx)(D.d_,{children:(0,o.jsx)(q,{...e})})})});n()}catch(e){n(e)}})},465007:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{B8:function(){return y},NI:function(){return m},vj:function(){return f}});var o=i(785893);i(667294);var l=i(616550),a=i(940787),s=i(26172),d=i(265593),r=i(541697),c=i(855117),p=i(510881),u=i(86740),h=i(754057),g=i(718350),x=e([a]);a=(x.then?(await x)():x)[0];let m=(e,t,i,n)=>{let l,s,d=t;switch(t){case r.Px.Online:d=r.Px.Offline,l=(0,h.t)(h.T.postLoads_manipulation_SetOffline),s=(0,h.t)(h.T.postLoads_popUps_updateStatus_SetOfflineContent);break;case r.Px.Offline:d=r.Px.Online,l=(0,h.t)(h.T.postLoads_manipulation_SetOnline),s=(0,h.t)(h.T.postLoads_popUps_updateStatus_SetOnlineContent)}if(d===r.Px.Online||d===r.Px.Offline){let{openingPopup:t,closingPopup:r}=n;t({body:(0,o.jsx)(c.Y,{title:l,buttons:[(0,o.jsx)(p.pb,{testID:"cancel",action:r},"cancel"),(0,o.jsx)(p.k2,{testID:"update",action:()=>{r(),i((0,a.QQ)({loadID:e,status:d,redirectUrl:y()}))}},"update")],children:s}),width:u.F$.SMALL,isDismissible:!0,hasCloseButton:!0})}},f=(e,t,i)=>{let{openingPopup:n,closingPopup:l}=i;n({body:(0,o.jsx)("div",{id:"delete_load_popup",children:(0,o.jsx)(c.Y,{title:(0,h.t)(h.T.postLoads_popUps_deleteLoad_title),buttons:[(0,o.jsx)(p.WY,{testID:"cancel",action:l},"cancel"),(0,o.jsx)(p.Ep,{testID:"delete",label:(0,h.t)(h.T.postLoads_popUps_deleteLoad_deleteButton),action:()=>{l(),t((0,a.fl)({loadID:e,redirectUrl:y()}))}},"delete")],children:(0,h.t)(h.T.postLoads_popUps_deleteLoad_content)})}),width:u.F$.SMALL,isDismissible:!0,hasCloseButton:!0})},y=()=>{let e=(0,g.f)(s.m.location.pathname,d.Z5.LOADS_MY_LOADS_POST),t={};if((null==e?void 0:e.params)!==void 0){let{editing:i,loadID:n,...o}=e.params;t={...o}}return"".concat((0,l.Gn)(d.Z5.LOADS_MY_LOADS_POST,t),"/")};n()}catch(e){n(e)}})},245545:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{B:function(){return I}}),i(127530);var o=i(785893),l=i(667294),a=i(496486),s=i(671893),d=i(378071),r=i(442639),c=i(751679),p=i(864634),u=i(1193),h=i(559539),g=i(919541),x=i(319061),m=i(300378),f=i(505033),y=i(754057),v=i(950311),C=e([c]);c=(C.then?(await C)():C)[0];let j=s.ZP.div.withConfig({displayName:"PostLoadEditVisibilityRulePanel__ConditionTitleContainer"})(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-bottom: 10px;\n"]),L=s.ZP.div.withConfig({displayName:"PostLoadEditVisibilityRulePanel__AppliedRuleCard"})(["\n padding: ","px ","px 0 ","px;\n border-bottom: 1px solid ",";\n"],f.Ki.ScreenSide,f.Ki.ScreenSide,f.Ki.ScreenSide,m.I.GRAY_SMOKE),I=e=>{var t;let i=(0,v.v9)(e=>e.postLoadFields.fields.visibility),n=(0,v.v9)(e=>e.onboardedCarriers.totalCount>0);return(0,o.jsxs)(c.s_,{id:"edit_rule_panel",layer:2,offset:null!==(t=e.offset)&&void 0!==t?t:1,size:c.lj.small,backgroundColor:c.sN,children:[(0,o.jsx)(c.V9,{label:(0,y.t)(y.T.loadVisibilityRules_editRule),hasCloseButton:!0,shouldCloseOnEsc:e.shouldCloseOnEsc,onClose:()=>{var t;e.onClose(),null===(t=e.onFocusAfterClose)||void 0===t||t.call(e)}}),i?(0,o.jsx)(b,{hasOnboardedCarriers:n,selectedRuleset:i,openOnboardedCarriersPanel:e.openOnboardedCarriersPanel,onClickSaveRuleset
1:t=>{var i;let n=(0,a.map)(t.rules,e=>{if(!e.startTime||!(0,d.wzp)(e.startTime)){var t,i,n;let o=(0,d.LvE)(null===(t=e.startDelayUI)||void 0===t?void 0:t.days,null===(i=e.startDelayUI)||void 0===i?void 0:i.hours,null===(n=e.startDelayUI)||void 0===n?void 0:n.mins);return{...e,startTime:o}}return e});e.handleVisibilityRuleChange({rules:n}),e.onClose(),null===(i=e.onFocusAfterSubmit)||void 0===i||i.call(e)}}):null]})},b=e=>{let[t,i]=(0,l.useState)(e.selectedRuleset),n=e=>{-1!==e&&!(0,a.isEmpty)(t.rules)&&i({...t,rules:(0,a.without)(t.rules,t.rules[e])})},s=(e,n)=>{if(n>-1&&!(0,a.isEmpty)(t.rules)&&!(0,a.isEmpty)(e)){let o=(0,a.cloneDeep)(t.rules);o.splice(n,1,{...t.rules[n],...e}),i({...t,rules:o})}};return(0,o.jsxs)(o.Fragment,{children:[(0,a.map)(t.rules,(t,i)=>{var l;return(0,d.wzp)(null!==(l=t.startTime)&&void 0!==l?l:"")?(0,o.jsxs)(L,{id:"applied_rule_".concat(i),children:[(0,o.jsxs)(j,{children:[(0,o.jsx)(x.xv,{id:"form_content",textStyle:x.pn.NakedPageMessage,style:{fontWeight:"bold"},children:(0,y.t)(y.T.loadVisibilityRules_conditionIndex,{index:i+1})}),(0,o.jsx)("img",{src:g.Z})]}),(0,o.jsx)(u.y,{isRuleApplied:!0,index:i,rule:t})]}):(0,o.jsx)(p.m,{ruleIndex:i,initialValues:t,openOnboardedCarriersPanel:e.openOnboardedCarriersPanel,hasOnboardedCarriers:e.hasOnboardedCarriers,updateSelectedRuleset:e=>s(e,i),onClickRemove:()=>n(i),isEditingPostedLoad:!0},i)}),(0,o.jsx)(h.Jn,{onClick:()=>{i({...t,rules:t.rules.concat({startDelayUI:{mins:30}})})}}),(0,o.jsx)(c.jH,{children:(0,o.jsx)(r.Ku,{id:"save",color:"primary",variant:"contained",text:(0,y.t)(y.T.common_save),onClick:()=>e.onClickSaveRuleset(t)})})]})};n()}catch(e){n(e)}})},609927:function(e,t,i){i.d(t,{C:function(){return g}});var n=i(785893);i(667294);var o=i(496486),l=i(671893),a=i(378071),s=i(934989),d=i(919541),r=i(829243),c=i(300378),p=i(950311);let u=l.ZP.div.withConfig({displayName:"PostLoadEditVisibilityRulesSection__RulesetContainer"})(["\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: space-between;\n align-items: baseline;\n margin-top: 20px;\n"]),h=l.ZP.div.withConfig({displayName:"PostLoadEditVisibilityRulesSection__EditContainer"})(["\n display: flex;\n flex-direction: column;\n padding-left: 4px;\n"]),g=e=>{let t=(0,p.v9)(e=>{var t,i;return null===(i=e.postedLoadDetails.currentLoad)||void 0===i?void 0:null===(t=i.visibility)||void 0===t?void 0:t.rules.length});return e.appliedRuleset&&!(0,o.isEmpty)(e.appliedRuleset.rules)?(0,n.jsxs)(h,{children:[(0,n.jsx)(u,{children:(0,o.map)(e.appliedRuleset.rules,(i,o)=>{var l,r,p;let u=void 0!==t&&o>=t,h=(0,a.wzp)(null!==(r=i.startTime)&&void 0!==r?r:"")&&!u;return(0,n.jsx)(s.i,{index:o,rule:i,icon:h?(0,n.jsx)("img",{src:d.Z,style:{marginTop:-3}}):void 0,length:null!==(p=null===(l=e.appliedRuleset)||void 0===l?void 0:l.rules.length)&&void 0!==p?p:0,connectorColor:h?void 0:c.I.GRAY_DARK,isRuleApplied:h},o)})}),(0,n.jsx)(r.eF,{onClickEdit:e.openEditRulePanel})]}):null}},177115:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{F:function(){return j},q:function(){return T}}),i(127530);var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(671893),r=i(630613),c=i(17921),p=i(365397),u=i(486793),h=i(223944),g=i(934989),x=i(55634),m=i(86740),f=i(319061),y=i(754057),v=i(950311),C=e([r]);r=(C.then?(await C)():C)[0];let j="change_rule",L=d.ZP.div.withConfig({displayName:"PostLoadSelectVisibilityRules__RulesetContainer"})(["\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: baseline;\n padding-top: 2px;\n"]),I=d.ZP.div.withConfig({displayName:"PostLoadSelectVisibilityRules__RulesCardContainer"})(["\n display: flex;\n padding-left: 8px;\n flex-direction: column;\n"]),b=d.ZP.div.withConfig({displayName:"PostLoadSelectVisibilityRules__LoadVisibilitySectionContainer"})(["\n display: flex;\n flex-direction: row;\n border-radius: 12px;\n"]),_=(0,d.ZP)(f.xv).withConfig({displayName:"PostLoadSelectVisibilityRules__StyledText"})(["\n line-height: 16pt;\n"]),T=e=>{let t=(0,s.I0)(),{openingPopup:i,closingPopup:n}=(0,m.BF)(),[a,d]=(0,l.useState)(e.shouldShowDefaultRule),c=(0,v.v9)(e=>e.postLoadFields.isPostingWithVisibilityRules&&e.loadVisibilityRules.rulesets.length>0),g=(0,u.j)(a),f=(0,v.v9)(e=>e.loadVisibilityRules.rulesets);(0,l.useEffect)(()=>{e.shouldOpenWithVisibilityRules&&(f.length<1?j():a||void 0!==g?e.onChangeVisibilityRuleset(g):d(!0))},[]),(0,l.useEffect)(()=>{c&&void 0===e.currentVisibilityRuleset&&g&&e.onChangeVisibilityRuleset(g)},[c,g]);let C=()=>{n(),e.openCreateVisibilityRulesPanel()},j=()=>{i({body:(0,o.jsx)(h.EW,{onClickAction:C}
1),width:m.F$.SMALL,isDismissible:!0,hasCloseButton:!0})};return(0,o.jsxs)(b,{children:[void 0===e.currentVisibilityRuleset?(0,o.jsx)("img",{src:x.Z,style:{alignSelf:"flex-start",padding:"16px 12px 16px 0px"}}):null,(0,o.jsxs)(L,{children:[(0,o.jsx)(p.XZ,{id:"load_visibility_rules_checkbox",isChecked:c&&void 0!==g||void 0!==e.currentVisibilityRuleset,labelPosition:"after",label:(0,y.t)(y.T.loadVisibilityRules_postWithVisibilityRules),handleChange:i=>{f.length<1?j():(t((0,r.Ql)(i.isChecked)),i.isChecked?a||void 0!==g?e.onChangeVisibilityRuleset(g):d(!0):e.onChangeVisibilityRuleset(void 0))},labelStyle:{justifyContent:"flex-start",paddingLeft:0},checkboxStyle:{paddingLeft:0},containerStyle:{maxHeight:44},checkboxTabIndex:-1}),g&&(c||e.currentVisibilityRuleset)?(0,o.jsx)(S,{currentRuleset:g,openLoadVisibilityRulesPanel:e.openLoadVisibilityRulesPanel}):(0,o.jsx)(M,{})]})]})},S=e=>{let{currentRuleset:t,openLoadVisibilityRulesPanel:i}=e;return(0,o.jsxs)(I,{children:[(0,a.map)(t.rules,(e,i)=>{var n;return(0,o.jsx)(g.O,{index:i,rule:e,length:null!==(n=null==t?void 0:t.rules.length)&&void 0!==n?n:0},i)}),(0,o.jsx)(c.Q,{id:j,text:(0,y.t)(y.T.loadVisibilityRules_changeRule),style:{padding:"0 0 16px 24px",fontWeight:"normal",alignSelf:"flex-start"},tabIndex:-1,onClick:i})]})},M=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_,{textStyle:f.pn.Subtitle2Regular,style:{marginBottom:8,lineHeight:"1.2"},id:"disabled_content",children:(0,y.t)(y.T.loadVisibilityRules_postFormContent)}),(0,o.jsx)(_,{textStyle:f.pn.Subtitle2Regular,style:{marginBottom:10,lineHeight:"1.2"},id:"disabled_content_more",children:(0,y.t)(y.T.loadVisibilityRules_postFormMoreContent)})]});n()}catch(e){n(e)}})},829243:function(e,t,i){i.d(t,{Nd:function(){return h},eF:function(){return m},tP:function(){return y},xE:function(){return f}});var n=i(785893);i(667294);var o=i(671893),l=i(17921),a=i(13916),s=i(223944),d=i(921242),r=i(86740),c=i(319061),p=i(505033),u=i(754057);let h="edit_rule",g=o.ZP.div.withConfig({displayName:"PostLoadVisibilityRulesHeader__TitleHeaderContainer"})(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 8px;\n"]),x=o.ZP.div.withConfig({displayName:"PostLoadVisibilityRulesHeader__ButtonContainer"})(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 0 16px 8px;\n"]),m=e=>{let{onClickEdit:t}=e;return(0,n.jsx)(x,{children:(0,n.jsx)(l.Q,{id:h,text:(0,u.t)(u.T.common_edit),style:{fontWeight:"normal"},onClick:t})})},f=()=>{let e=(0,r.BF)();return(0,n.jsx)(g,{children:(0,n.jsx)(y,{popupContext:e})})},y=e=>{let{popupContext:t,isSectionTitle:i}=e;return(0,n.jsxs)(c.xv,{textStyle:c.pn.Disabled,id:"visibility_rules",children:[i?null:(0,u.t)(u.T.preferences_loadVisibilityRules),(0,n.jsx)(a.A,{id:"info",alt:"info",src:d.Z,onClick:e=>{e.stopPropagation(),t.openingPopup({body:(0,n.jsx)(s.NJ,{onClickAction:t.closingPopup}),width:r.F$.SMALL,isDismissible:!0,hasCloseButton:!0})},size:p.rL.TextIcon,style:{marginLeft:5,marginBottom:i?5:0},tabIndex:-1})]})}},662837:function(e,t,i){i.d(t,{H:function(){return v},O:function(){return y}}),i(127530);var n=i(785893),o=i(667294),l=i(496486),a=i(671893),s=i(378071),d=i(442639),r=i(914270),c=i(319061),p=i(505033),u=i(754057),h=i(855117),g=i(510881),x=i(86740);let m=a.ZP.div.withConfig({displayName:"AssignLoadPopup__FormContainer"})(["\n display: flex;\n align-items: stretch;\n flex-direction: column;\n margin-top: ","px;\n"],p.Ki.ElementPaddingVertical),f=a.ZP.div.withConfig({displayName:"AssignLoadPopup__TextInputContainer"})(["\n margin-bottom: ","px;\n"],p.Ki.InterSection),y=e=>{let[t,i]=(0,o.useState)({value:e.dotToPrefill?(0,l.toString)(e.dotToPrefill):"",isValid:!1}),{closingPopup:a}=(0,x.BF)();return(0,n.jsx)(h.Y,{title:(0,u.t)(u.T.postedLoadStatus_popup_title),onClose:()=>{e.onClose(),a()},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.xv,{textStyle:c.pn.HeavyText,id:"assign_load_content",children:(0,u.t)(u.T.postedLoadStatus_popup_content)}),(0,n.jsxs)(m,{children:[(0,n.jsx)(f,{children:(0,n.jsx)(r.OL,{label:(0,u.t)(u.T.postedLoadStatus_popup_dot),value:t.value,error:t.isValid,onChangeWithValidation:(e,t)=>{i({value:(0,s.n79)(e),isValid:t})},validator:s.iXC,shouldIgnoreValidation:!1,noMargin:!0,fullWidth:!0})}),(0,n.jsx)(d.Ku,{id:"assign_button",onClick:()=>
1{t.isValid&&(e.onAssign(t.value),a())},variant:d.Wu.Contained,text:(0,u.t)(u.T.postedLoadStatus_popup_assign),color:"primary",isLoading:!1})]})]})})},v=()=>{let{closingPopup:e}=(0,x.BF)();return(0,n.jsx)(h.Y,{title:(0,u.t)(u.T.postedLoadStatus_popup_unable),buttons:[(0,n.jsx)(g.Mq,{testID:"unable_to_assign_ok",action:e},"unable_to_assign_ok")],children:(0,n.jsx)(c.xv,{textStyle:c.pn.HeavyText,id:"multiple_load_assign",children:(0,u.t)(u.T.postedLoadStatus_popup_multiple)})})}},381409:function(e,t,i){i.d(t,{q:function(){return m}});var n=i(785893);i(667294);var o=i(671893),l=i(442639),a=i(319061),s=i(505033),d=i(754057),r=i(662837),c=i(855117),p=i(86740);let u=o.ZP.div.withConfig({displayName:"UnassignLoadPopup__UnassignOptionsContainer"})(["\n display: flex;\n flex-direction: column;\n"]),h=o.ZP.div.withConfig({displayName:"UnassignLoadPopup__DialogEndAdornment"})(["\n margin-left: auto;\n margin-bottom: ","px;\n"],s.Ki.ElementPaddingVertical),g=(0,o.ZP)(l.Ku).withConfig({displayName:"UnassignLoadPopup__ReassignButton"})(["\n width: fit-content;\n"]),x=o.ZP.div.withConfig({displayName:"UnassignLoadPopup__ButtonContainer"})(["\n margin-top: 12px;\n display: flex;\n"]),m=e=>{let{closingPopup:t,openingPopup:i}=(0,p.BF)(),o=(i,n)=>{e.onUnassign(i,n),t()};return(0,n.jsx)(c.Y,{title:(0,d.t)(d.T.postedLoadStatus_unassign_title),onClose:()=>{e.onClose(),t()},children:(0,n.jsxs)(u,{children:[(0,n.jsx)(a.xv,{textStyle:a.pn.HeavyText,id:"assign_load_content",children:(0,d.t)(d.T.postedLoadStatus_unassign_question)}),(0,n.jsx)(h,{children:(0,n.jsx)(g,{id:"reassign",onClick:()=>{i({body:(0,n.jsx)(r.O,{loadId:e.loadId,onAssign:e.onReassign,onClose:e.onClose,dotToPrefill:e.dotToPrefill}),width:p.F$.SMALL,hasCloseButton:!0})},variant:l.Wu.Text,text:(0,d.t)(d.T.postedLoadStatus_popup_assign),color:"secondary",isLoading:!1})}),(0,n.jsx)(a.xv,{textStyle:a.pn.HeavyText,id:"assign_load_content",children:(0,d.t)(d.T.postedLoadStatus_unassign_options)}),(0,n.jsx)(x,{children:(0,n.jsx)(l.Ku,{id:"unassign_online",onClick:()=>o(!1,!0),variant:l.Wu.Outlined,text:(0,d.t)(d.T.postedLoadStatus_unassign_online),color:"secondary",isLoading:!1})}),(0,n.jsx)(x,{children:(0,n.jsx)(l.Ku,{id:"unassign_offline",onClick:()=>o(),variant:l.Wu.Outlined,text:(0,d.t)(d.T.postedLoadStatus_unassign_offline),color:"secondary",isLoading:!1})}),(0,n.jsx)(x,{children:(0,n.jsx)(l.Ku,{id:"unassign_delete",onClick:()=>o(!0),variant:l.Wu.Outlined,text:(0,d.t)(d.T.postedLoadStatus_unassign_delete),color:"secondary",isLoading:!1})})]})})}},71728:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{A:function(){return B}}),i(127530),i(506202);var o=i(785893),l=i(667294),a=i(496486),s=i(50533),d=i(616550),r=i(671893),c=i(709927),p=i(230866),u=i(824398),h=i(793479),g=i(940787),x=i(200151),m=i(877281),f=i(833589),y=i(541697),v=i(328257),C=i(702428),j=i(941650),L=i(465007),I=i(662837),b=i(86740),_=i(381409),T=i(44859),S=i(319061),M=i(300378),N=i(505033),P=i(754057),w=i(950311),D=i(754975),R=i(474215),k=i(960658),E=i(665658),Z=e([L,g,C]);[L,g,C]=Z.then?(await Z)():Z;let A=(0,r.ZP)(k.O6).withConfig({displayName:"PostedStatusBar__StyledRightContent"})(["\n justify-content: flex-end;\n margin-right: ",";\n"],N.Ki.LargePaddingHorizontal),z=[{label:(0,P.t)(P.T.postedLoadStatus_unassigned),value:y.lrW.Unassigned,isChecked:!1,isLoading:!1,id:"unassigned",labelColor:M.I.RED_APPLE},{label:(0,P.t)(P.T.postedLoadStatus_assigned_title),value:y.lrW.Assigned,isChecked:!1,isLoading:!1,id:"assigned",labelColor:M.I.GREEN_MAIN,description:(0,P.t)(P.T.postedLoadStatus_assigned_description)},{label:(0,P.t)(P.T.postedLoadStatus_delivered_title),value:y.lrW.Delivered,isChecked:!1,isLoading:!1,id:"delivered",labelColor:M.I.GRAY_DARK,description:(0,P.t)(P.T.postedLoadStatus_delivered_description)}],O=(0,r.ZP)(c.default).withConfig({displayName:"PostedStatusBar__DOTLink"})(["\n font-weight: bold;\n &&:hover {\n text-decoration: none;\n }\n"]),B=e=>{var t,i,n;let[r,c]=(0,l.useState)(z),Z=(0,a.findIndex)(r,t=>{var i;return t.value===(null===(i=e.load.posterMetadata)||void 0===i?void 0:i.progress)});-1===Z&&(Z=0);let B=(0,v.D9)(Z),W=(0,w.v9)(e=>e.postedLoads.isLoadingLoadProgressUpdate),F=(0,v.D9)(W),G=(0,w.v9)(e=>e.postedLoads.updateLoadProgressUpdateSuccess),Y=(0,w.v9)(e=>e.postedLoads.includeAllCompanyLoads),U=(0,s.I0)(),H=(0,d.k6)(),{openingPopup:V}=(0,b.BF)(),J=null===(t=e.load.posterMetadata)||void 0===t?void 0:t.progress,Q=null===(n=e.load.posterMetadata)||void 0===n?void 0:null===(i=n.assignedTo)||void 0===i?void 0:i.dotNo;(0,l.useEffect)(()=>
1{if(!W&&F){let e=(0,a.map)(r,e=>({...e,isLoading:!1}));c(e),!G&&U((0,x.OV)({message:(0,P.t)(P.T.error_genericErrorTitle)}))}},[G,W]),(0,l.useEffect)(()=>{let t=(0,a.map)(r,(e,t)=>({...e,isChecked:t<=Z}));c(t);let i=r[B].value,n=r[Z].value;n===y.lrW.Assigned&&i!==y.lrW.Assigned&&(U((0,x.OV)({message:(0,P.t)(P.T.postedLoadStatus_popup_success)})),H.replace({pathname:"".concat((0,d.Gn)("".concat("/post-loads/post/assigned/load/").concat(e.load.id)))})),n===y.lrW.Delivered&&i!==y.lrW.Delivered&&(U((0,x.OV)({message:(0,P.t)(P.T.postLoads_popUps_updateStatus_SnackBar_Message)})),H.replace({pathname:"".concat((0,d.Gn)("".concat("/post-loads/post/delivered/load/").concat(e.load.id)))})),U((0,g.vA)(Y))},[Z]);let K=(e,t)=>{let i=(0,a.cloneDeep)(r);i[t].isLoading=e,c(i)},X=(t,i)=>{K(!0,t),U((0,g.E_)(e.load.id,y.lrW.Assigned,(0,a.toNumber)(i)))},q=(t,i)=>{J===y.lrW.Delivered?X(t,(0,a.toString)(Q)):e.load.numberOfLoads&&e.load.numberOfLoads>1?V({body:(0,o.jsx)(I.H,{}),width:b.F$.SMALL,hasCloseButton:!0}):V({body:(0,o.jsx)(I.O,{loadId:e.load.id,onAssign:e=>X(t,e),onClose:()=>K(!1,t),dotToPrefill:i?Q:void 0}),width:b.F$.SMALL,hasCloseButton:!0})},$=t=>{let i=(i,n)=>{K(!0,t),U((0,g.E_)(e.load.id,y.lrW.Unassigned)),i?U((0,g.fl)({loadID:e.load.id,redirectUrl:(0,L.B8)()})):U((0,g.QQ)({loadID:e.load.id,status:n?y.Px.Online:y.Px.Offline,redirectUrl:(0,L.B8)()}))};V({body:(0,o.jsx)(_.q,{loadId:e.load.id,onClose:()=>K(!1,t),onReassign:e=>X(t,e),onUnassign:(e,t)=>i(e,t),dotToPrefill:Q}),width:b.F$.SMALL,hasCloseButton:!0})},ee=e=>r[e-1]&&!r[e-1].isChecked||r[e].isChecked&&r[e+1]&&r[e+1].isChecked,et=t=>(i,n)=>{let o=r[n?t:t-1].value;switch(o){case y.lrW.Unassigned:$(t);break;case y.lrW.Assigned:q(t);break;case y.lrW.Delivered:K(!0,t),U((0,g.E_)(e.load.id,o,o===y.lrW.Delivered?Q:void 0))}},ei=(0,l.useMemo)(()=>(0,o.jsxs)(j.Dx,{children:["".concat((0,P.t)(P.T.postLoads_Status),": "),(0,o.jsx)(S.xv,{id:"unassigned_title",textStyle:S.pn.SubtitleBold,style:{color:z[Z].labelColor},children:z[Z].label})]}),[Z]),en=(0,l.useMemo)(()=>Q?(0,o.jsx)(j.QE,{children:"".concat((0,P.t)(P.T.postedLoadStatus_popup_dot),": ").concat(Q)}):null,[Q]),eo=()=>e=>{let{completed:t,active:i,icon:n}=e,l={marginTop:"-3px",zIndex:10,...t&&n===Z+1&&{margin:"-3px 0 0 -3px"}};return t&&n===Z+1?(0,o.jsx)(R.Z,{id:"circle_selected",style:l,fill:M.I.GREEN_MAIN}):t||t&&!i?(0,o.jsx)(E.Z,{id:"circle_unselected",style:l}):(0,o.jsx)(E.Z,{id:"circle_inactive",stroke:M.I.GREEN_INACTIVE})},el=e=>{let t=r[e].value===y.lrW.Assigned?k.hk:k.eY;return(0,o.jsx)(t,{style:{marginTop:N.Ki.InterSection},children:(J===y.lrW.Assigned||J===y.lrW.Delivered)&&r[e].value===y.lrW.Assigned?(0,o.jsxs)(k.X2,{style:{alignItems:"center"},children:[(0,o.jsx)(k.dv,{style:{paddingTop:4},children:(0,o.jsxs)(k.dk,{id:r[e].id+"_dot",children:[(0,P.t)(P.T.postedLoadStatus_assigned_assignedTo),Q?(0,o.jsx)(O,{href:(0,f.BL)(Q),color:"secondary",noWrap:!0,target:"_blank",children:Q}):m.K9]})}),J===y.lrW.Assigned?(0,o.jsx)(A,{style:{justifyContent:"flex-end",marginRight:N.Ki.LargePaddingHorizontal},children:(0,o.jsx)("img",{src:D.Z,alt:"export",style:{cursor:"pointer"},onClick:()=>q(e,!0)})}):null]}):(0,o.jsx)(k.dk,{id:r[e].id+"_content",children:r[e].description})})};return(0,o.jsx)(C.E,{id:"status_bar",titleElement:ei,subtitleElement:en,icon:T.Z,isOpened:e.isOpened,handleClick:()=>e.handleChange(h.h$.PostedStepper,!e.isOpened),children:!e.isOpened||(0,o.jsx)(k.Ng,{id:"bottom_stepper",activeStep:Z+1,orientation:"vertical",connector:(0,o.jsx)(k.WP,{}),style:{width:"100%"},children:(0,a.map)(r,(e,t)=>0===t?null:(0,o.jsxs)(k.OB,{id:e.id,active:!0,children:[(0,o.jsx)(u.default,{StepIconComponent:eo(),children:(0,o.jsx)(k.__,{children:(0,o.jsxs)(k.hX,{children:[(0,o.jsx)(k.dv,{children:(0,o.jsx)("span",{id:"label",children:e.label})}),(0,o.jsx)(k.O6,{style:{justifyContent:"flex-end",marginRight:N.Ki.LargePaddingHorizontal},children:e.isLoading?(0,o.jsx)(p.default,{size:24,color:"inherit"}):(0,o.jsx)(k.VH,{id:"checkbox",color:"primary",onChange:et(t),disabled:ee(t),checked:e.isChecked,value:e.label,inputProps:{"aria-label":"primary checkbox"}})})]})})}),(0,o.jsx)(k.Xp,{style:{...Z===t-1&&{borderColor:M.I.GREEN_INACTIVE}},children:el(t)})]},t))})})};n()}catch(e){n(e)}})},492348:function(e,t,i){i.d(t,{j:function(){return j}});var n=i(785893);i(667294);var o=i(496486),l=i(671893),a=i(483638),s=i(378071),d=i(942865),r=i(508142),c=i(505033),p=i(199078),u=i(519640);let h=(0,p.Z)()(l.ZP.div.withConfig({displayName:"TimePicker__TimePickerContainer"})(["\n background-color: ",";\n padding: 0 "," "," ",";\n"],e=>e.theme.palette.background.white,(0,c.px)(20),(0,c.px)(20),(0,c.px)(20))),g=l.ZP.div.withConfig({displayName:"TimePicker__Container"})(["\n display: flex;\n position: relative;\n align-items: center;\n margin-top: ",";\n"],(0,c.px)(c.Ki.InterSection)),x=l.ZP.div.withConfig({displayName:"TimePicker__SelectorContainer"})(["\n display: flex;\n width: 100%;\n margin-right: ",";\n justify-content: space-between;\n align-items: center;\n"],(0,c.px)(32)),m=(0,l.ZP)(a.default).withConfig({displayName:"TimePicker__ClearButton"})(["\n && {\n position: absolute;\n right: 0;\n width: ",";\n height: ",";\n margin-left: ",";\n padding: 0;\n min-width: unset;\n border-radius: ",";\n }\n"],(0,c.px)(c.rL.Icon),(0,c.px)(c.rL.Icon),(0,c.px)(c.Ki.InterElementHorizontal),(0,c.px)(c.cM.InputChip)),f=()=>({hour:"",minute:"",period:s.XHG.PM}
1),y=(0,o.map)((0,o.range)(1,13),e=>(0,o.toString)(e)),v=["00","15","30","45"],C=[s.XHG.AM,s.XHG.PM],j=e=>{let{handleChange:t,selectedTime:i,label:o}=e,l=(0,s.c4P)(i||""),a=(0,s.YXy)(i,"h:mm A"),r=f();return void 0!==a&&l&&(r.hour=a.format("h"),r.minute=a.format("mm"),r.period=a.format("A")),(0,n.jsxs)(h,{id:"time_picker",children:[(0,n.jsx)(d.NZ,{id:"title",children:o}),(0,n.jsx)(L,{time:r,onChange:e=>{if(void 0===e){t(void 0);return}let{hour:i,minute:n,period:o}=e,l=(0,s.j_v)("".concat(i,":").concat(n," ").concat(o));void 0!==l&&t(l)}})]})},L=e=>{let{time:t,onChange:i}=e,{hour:l,minute:a,period:d}=t,p=!(0,o.isEqual)(t,f()),h=""!==a?(0,o.toString)(15*Math.round((0,o.toNumber)(a)/15)||"00"):"";return(0,n.jsxs)(g,{children:[(0,n.jsxs)(x,{children:[(0,n.jsx)(r.n,{style:{marginRight:(0,c.px)(9)},value:l,id:"hours",options:y,onChange:e=>i({hour:e,minute:a||"00",period:d})}),(0,n.jsx)("span",{id:"colon",style:{marginRight:(0,c.px)(9)},children:":"}),(0,n.jsx)(r.n,{id:"minutes",value:h,options:v,onChange:e=>i({hour:l||"12",minute:e,period:l?d:s.XHG.AM})}),(0,n.jsx)(r.n,{style:{marginLeft:(0,c.px)(18)},id:"period",options:C,value:d,onChange:e=>i({...t,period:e})})]}),p?(0,n.jsx)(m,{id:"clear",onClick:()=>i(void 0),children:(0,n.jsx)("img",{src:u.Z.clearSmall})}):null]})}},836049:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{f:function(){return A},r:function(){return Z}});var o=i(785893);i(667294);var l=i(671893),a=i(877281),s=i(471567),d=i(690265),r=i(86740),c=i(34496),p=i(78277),u=i(610944),h=i(75071),g=i(798065),x=i(970946),m=i(300378),f=i(505033),y=i(754057),v=i(950311),C=e([h,g]);[h,g]=C.then?(await C)():C;let j=l.ZP.div.withConfig({displayName:"ExpediteAllRate__Title"})(["\n font-size: ","px;\n font-weight: ",";\n line-height: ","px;\n"],f.Bf.MediumHeader,f.U9.Bold,f.ov.MediumTitle),L=l.ZP.div.withConfig({displayName:"ExpediteAllRate__MinMaxBox"})(["\n display: flex;\n flex-direction: column;\n align-self: stretch;\n margin-top: ","px;\n"],f.Ki.ScreenSide),I=l.ZP.div.withConfig({displayName:"ExpediteAllRate__MinMaxColumns"})(["\n display: flex;\n justify-content: space-around;\n"]),b=l.ZP.div.withConfig({displayName:"ExpediteAllRate__MinMaxColumn"})(["\n display: flex;\n flex-direction: column;\n align-items: center;\n color: ",";\n font-weight: ",";\n"],m.I.GRAY_21,f.U9.Bold),_=l.ZP.div.withConfig({displayName:"ExpediteAllRate__RateValue"})(["\n font-size: ","px;\n line-height: ","px;\n"],f.Bf.Content,f.ov.Body),T=l.ZP.div.withConfig({displayName:"ExpediteAllRate__RatePerMileValue"})(["\n font-size: ","px;\n line-height: ","px;\n"],f.Bf.Body,f.ov.Body),S=l.ZP.div.withConfig({displayName:"ExpediteAllRate__ProgressBarBox"})(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: ","px;\n"],f.Ki.InterElementVertical),M=l.ZP.div.withConfig({displayName:"ExpediteAllRate__ProgressBarSubTitles"})(["\n display: flex;\n justify-content: space-around;\n align-self: stretch;\n color: ",";\n font-size: ","px;\n margin-top: ","px;\n"],m.I.GRAY_21,f.Bf.Body,f.Ki.TwoSpaces),N=l.ZP.div.withConfig({displayName:"ExpediteAllRate__ProgressBarSubTitle"})(["\n min-width: 56px;\n text-align: center;\n"]),P=l.ZP.div.withConfig({displayName:"ExpediteAllRate__ElementsBar"})(["\n align-self: stretch;\n margin-top: ","px;\n"],f.Ki.Mark),w=l.ZP.div.withConfig({displayName:"ExpediteAllRate__ElementTitle"})(["\n font-size: ","px;\n color: ",";\n"],f.Bf.Content,m.I.LIGHT_BLACK),D=l.ZP.div.withConfig({displayName:"ExpediteAllRate__BackhaulAverageRateBar"})(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex: 1;\n padding: ","px 0 ","px;\n border-top: ","px solid ",";\n"],f.Ki.InterElementVertical,f.Ki.TwoSpaces,f.LG.Thin,m.I.GRAY_SMOKE),R=l.ZP.div.withConfig({displayName:"ExpediteAllRate__BackhaulAverageRateValues"})(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n justify-content: center;\n"]),k=l.ZP.div.withConfig({displayName:"ExpediteAllRate__BackhaulAverageRateValue"})(["\n font-size: ","px;\n line-height: ","px;\n color: ",";\n"],f.Bf.Content,f.ov.Content,m.I.GRAY_DARK),E=(0,l.ZP)(k).withConfig({displayName:"ExpediteAllRate__BackhaulAverageRateValueBold"})(["\n font-weight: ",";\n"],f.U9.Bold),Z=()=>{let e=(0,r.BF)(),t=(0,v.v9)(e=>e.marketRates.backhaulsExpediteAllRate),i=(0,v.v9)(e=>e.marketRates.expediteAllRate),n=(0,v.v9)(e=>e.marketRates.isLoadingExpediteAllRate||e.marketRates.isLoadingExpediteAllRateBackhaul);return(0,o.jsx)(g.Ed,{id:"expedite_all_widget",children:n?(0,o.jsx)(x.dx,{children:(0,o.jsx)(d.TK,{size:44})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.Wb,{onClick:()=>(0,c.OH)(e)}),(0,o.jsxs)(h.$,{children:[(0,o.jsx)(g.MR,{testId:"expedite_all_icon",src:u.Z,alt:"expedite_all"}),(0,o.jsx)(j,{id:"expedite_all_widget_title",children:(0,y.t)(y.T.marketRates_widgets_expediteAll_title)})]}),(null==i?void 0:i.isRateFound)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{expediteAllRate:i}),(0,o.jsx)(P,{id:"expedite_all_widget_backhaul_info",children:(0,o.jsxs)(D,{children:[(0,o.jsx)(w,{id:"expedite_all_widget_backhaul_info_title",children:(0,y.t)(y.T.marketRates_widgets_rateCheck_backhaulAverageRate)}),(0,o.jsxs)(R,{children:[(0,o.jsx)(E,{id:"expedite_all_widget_backhaul_info_rate",children:(null==t?void 0:t.estRate)?(0,a.O5)(t.estRate,!1):a.K9}),(0,o.jsx)(k,{id:"expedite_all_widget_backhaul_info_rate_per_mile",children:(null==t?void 0:t.estRatePerMile)?(0,s.ub)(t.estRatePerMile):a.I
1Q})]})]})})]}):(0,o.jsx)("div",{id:"rate_not_available",style:{display:"flex",flex:1,alignItems:"center"},children:(0,y.t)(y.T.common_marketRate_notAvailableAtThisTime)})]})})},A=e=>{let{expediteAllRate:t,graphSrc:i}=e;return(0,o.jsxs)(L,{id:"expedite_all_widget_min_max_box",children:[(0,o.jsxs)(I,{children:[(0,o.jsxs)(b,{children:[(0,o.jsx)(_,{id:"expedite_all_widget_min_rate",children:(null==t?void 0:t.minRate)?(0,a.O5)(t.minRate,!1):a.IQ}),(0,o.jsx)(T,{id:"expedite_all_widget_min_rate_per_mile",children:(null==t?void 0:t.minRatePerMile)?(0,s.ub)(t.minRatePerMile):a.IQ})]}),(0,o.jsxs)(b,{style:{color:m.I.LIGHT_BLACK},children:[(0,o.jsx)(_,{id:"expedite_all_widget_average_rate",children:(null==t?void 0:t.estRate)?(0,a.O5)(t.estRate,!1):a.IQ}),(0,o.jsx)(T,{id:"expedite_all_widget_average_rate_per_mile",children:(null==t?void 0:t.estRatePerMile)?(0,s.ub)(t.estRatePerMile):a.IQ})]}),(0,o.jsxs)(b,{children:[(0,o.jsx)(_,{id:"expedite_all_widget_max_rate",children:(null==t?void 0:t.maxRate)?(0,a.O5)(t.maxRate,!1):a.IQ}),(0,o.jsx)(T,{id:"expedite_all_widget_max_rate_per_mile",children:(null==t?void 0:t.maxRatePerMile)?(0,s.ub)(t.maxRatePerMile):a.IQ})]})]}),(0,o.jsxs)(S,{children:[(0,o.jsx)("img",{id:"expedite_all_graph",src:null!=i?i:p.Z,alt:"expedite_all_graph",style:{width:"100%"}}),(0,o.jsxs)(M,{children:[(0,o.jsx)(N,{id:"expedite_all_graph_low",children:(0,y.t)(y.T.rateCheck_revenueBox_Low)}),(0,o.jsx)(N,{id:"expedite_all_graph_average",children:(0,y.t)(y.T.rateCheck_revenueBox_Average)}),(0,o.jsx)(N,{id:"expedite_all_graph_high",children:(0,y.t)(y.T.rateCheck_revenueBox_High)})]})]})]})};n()}catch(e){n(e)}})},75071:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{$:function(){return x},O:function(){return v}});var o=i(785893);i(667294);var l=i(671893),a=i(494518),s=i(258410),d=i(315811),r=i(86740),c=i(798065),p=i(505033),u=i(754057),h=i(950311),g=e([c]);c=(g.then?(await g)():g)[0];let x=l.ZP.div.withConfig({displayName:"Greenscreens__TitleWrapper"})(["\n display: flex;\n justify-content: flex-start\n align-items: center;\n width: 100%;\n"]),m=l.ZP.div.withConfig({displayName:"Greenscreens__Title"})(["\n font-size: ","px;\n font-weight: ",";\n line-height: ","px;\n"],p.Bf.MediumHeader,p.U9.Bold,p.ov.MediumTitle),f=(0,l.ZP)(c.Ed).withConfig({displayName:"Greenscreens__GreenscreensBar"})(["\n justify-content: flex-start;\n"]),y=l.ZP.div.withConfig({displayName:"Greenscreens__MinMaxBox"})(["\n display: flex;\n flex-direction: column;\n align-self: normal;\n margin-top: ","px;\n"],p.Ki.ScreenSide),v=()=>{let e=(0,r.BF)(),{greenscreensRate:t,isGreenscreensRateFound:i,isCargoChiefGreenscreensRateLoading:n}=(0,h.v9)(e=>e.marketRates);return(0,o.jsxs)(f,{children:[(0,o.jsx)(c.Wb,{onClick:()=>(0,d.T)(e.openingPopup,e.closingPopup)}),(0,o.jsxs)(x,{children:[(0,o.jsx)(c.MR,{testId:"greenscreens_icon",src:s,alt:"greenscreens_icon"}),(0,o.jsx)(m,{children:(0,u.t)(u.T.common_marketRate_greenscreens_title)})]}),n?(0,o.jsx)(a.a,{size:p.gI.small}):i?(0,o.jsx)(y,{children:(0,o.jsx)(d.h,{costLow:null==t?void 0:t.costLow,costHigh:null==t?void 0:t.costHigh,costLowPerMile:null==t?void 0:t.costLowPerMile,costHighPerMile:null==t?void 0:t.costHighPerMile})}):(0,o.jsx)(c._p,{children:(0,u.t)(u.T.common_marketRate_notAvailableAtThisTime)})]})};n()}catch(e){n(e)}})},798065:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{Ed:function(){return u},MR:function(){return m},Wb:function(){return x},_p:function(){return g}});var o=i(785893);i(667294);var l=i(671893),a=i(374849),s=i(507762),d=i(490475),r=i(300378),c=i(505033),p=e([a]);a=(p.then?(await p)():p)[0];let u=l.ZP.div.withConfig({displayName:"WidgetUIHelper__WidgetBar"})(["\n position: relative;\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n background-color: ",";\n padding: ","px ","px;\n border-radius: ","px;\n box-sizing: border-box;\n height: 270px;\n"],r.I.GRAY_LIGHT,c.Ki.ScreenSide,c.Ki.LargePaddingVertical,c.cM.InputChip),h=(0,l.ZP)(a.RZ).withConfig({displayName:"WidgetUIHelper__InformationButtonWrapper"})(["\n && {\n position: absolute;\n top: 4px;\n right: 4px;\n margin: 0;\n }\n"]),g=l.ZP.div.withConfig({displayName:"WidgetUIHelper__MessageBox"})(["\n display: flex;\n flex-direction: column;\n align-self: center;\n flex: 1;\n justify-content: center;\n margin-top: 0;\n"]),x=e=>{let{onClick:t,isWhiteIcon:i}=e;return(0,o.jsx)(h,{id:"info",onClick:t,children:(0,o.jsx)("img",{src:i?s.Z:d.Z,alt:"info_icon"})})},m=e=>(0,o.jsx)("img",{id:e.testId,src:e.src,alt:e.alt,height:"50",width:"50",style:{marginRight:16}});n()}catch(e){n(e)}})},228097:function(e,t,i){i.d(t,{J:function(){return n}});let n=(e,t,i)=>({onFocusAfterClose:()=>setTimeout(()=>{let t=document.getElementById(null!=e?e:"");null==t||t.focus()},1),onFocusAfterSubmit:()=>setTimeout(()=>{let n=document.getElementById(null!=t?t:""),o=document.getElementById(null!=i?i:""),l=document.getElementById(null!=e?e:"");if(n){null==n||n.focus();return}if(o){o.focus();return}null==l||l.focus()},1)})},747441:function(e,t,i){i.d(t,{BM:function(){return l},Qh:function(){return d},ll:function(){return o},v9:function(){return a},xs:function(){return s}});var n=i(496486);let o=1,l=3,a=4,s=7,d=e=>{let t=0,i=0;
1return(0,n.forEach)(e,e=>{e.shouldIncrement&&(t+=e.relativeStrength),i+=e.relativeStrength}),5*Math.round(t/i*100/5)}},549749:function(e,t,i){i.d(t,{o:function(){return l}}),i(506202),i(202394);var n=i(496486),o=i(180895);let l=(e,t)=>{var i,l;let a=[];(0,n.reduce)(e,(e,i)=>{if(i.type===o.xT.ServerError){let n=(0,o.Ts)(String(i.key)),l=t.querySelectorAll("[data-name=".concat(n.replace(/\./g,"\\."),"]"));if(l.length>0){let t=l[0].getBoundingClientRect();e.push({offsetX:t.left,offsetY:t.top,element:l[0]})}}return e},a);let s=null===(i=(0,n.minBy)(a,e=>null==e?void 0:e.offsetX))||void 0===i?void 0:i.offsetX,d=null===(l=(0,n.minBy)(a,e=>null==e?void 0:e.offsetY))||void 0===l?void 0:l.offsetY;if(s&&d){let e=(0,n.minBy)(a,e=>{let t=Math.abs(s-e.offsetX);return Math.sqrt(t**2+Math.abs(d-e.offsetY)**2)});void 0!==e&&e.element.scrollIntoView({behavior:"smooth",block:"center"})}}},259321:function(e,t,i){var n=i(785893);i(667294);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:111.7,height:120.7,viewBox:"0 0 111.7 120.7",...e,children:[(0,n.jsx)("path",{fill:"#FF9D1F",d:"M28.35 0h55a28.35 28.35 0 0 1 28.35 28.35v55a28.35 28.35 0 0 1-28.35 28.35h-19l-7.5 9-7.5-9h-21A28.35 28.35 0 0 1 0 83.35v-55A28.35 28.35 0 0 1 28.35 0"}),(0,n.jsx)("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M73.541 50.131v-5.853a2.927 2.927 0 0 0-2.926-2.926H50.131v-2.926a2.927 2.927 0 0 0-2.926-2.926h-8.779a2.927 2.927 0 0 0-2.926 2.926v31.8a3.316 3.316 0 0 0 6.508.854l4.586-18.839a2.924 2.924 0 0 1 2.813-2.109h27.06a2.926 2.926 0 0 1 2.829 3.679l-4.292 17.557a2.93 2.93 0 0 1-2.829 2.173H38.811"})]})},144634:function(e,t,i){i(785893),i(667294),t.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGRlZnM+PHN0eWxlPi5hLC5je2ZpbGw6bm9uZTt9LmJ7Y2xpcC1wYXRoOnVybCgjYSk7fS5je3N0cm9rZTojNDg0ODQ4O3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MS4zcHg7fTwvc3R5bGU+PGNsaXBQYXRoIGlkPSJhIj48cmVjdCBjbGFzcz0iYSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2x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gIDxyZWN0IGNsYXNzPSJhIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NDggLTYwMy41KSI+CiAgICAgIDxjaXJjbGUgY2xhc3M9ImMiIGN4PSI2IiBjeT0iNiIgcj0iNiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDUwIDYwNS41KSIvPgogICAgICA8cGF0aCBjbGFzcz0iYyIgZD0iTTguMjUsMTIuNzQ3SDkuMzI5djQuMzE1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0NDYuNzE0IDU5Ny41NTYpIi8+CiAgICAgIDxsaW5lIGNsYXNzPSJjIiB4Mj0iMi4xNTciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ1NC45MjEgNjE0LjUpIi8+CiAgICAgIDxwYXRoIGNsYXNzPSJjIiBkPSJNOS42NDUsOWEuMjcuMjcsMCwxLDAsLjI3LjI3QS4yNy4yNywwLDAsMCw5LjY0NSw5aDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ0Ni4zNTUgNTk4Ljk5MykiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo="}}]); 2//# sourceMappingURL=4442.a6aa2373.js.map
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.