1(self.webpackChunk=self.webpackChunk||[]).push([[2786],{10831:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>r});var i=s(21742),a=s(63696),o=s(93984);const l=["mine","broker","market","onRoute"],n=["My","Received","Market","AIS"];const r=function(e){let{handleFilter:t=()=>{},filters:s={},endingText:r="Positions",...d}=e;return a.createElement(o.A,(0,i.A)({keys:l,titles:n,handleFilter:t,filters:s,allText:"Source",endingText:r},d))}},10893:(e,t,s)=>{(t=e.exports=s(60278)(!1)).push([e.id,".OWbWc{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px;text-align:left}.Y5PEv{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._2b1py{width:3px;height:18px;margin-right:18px}._1UjLJ{background:var(--text-green-light)}.xOMth{background:var(--text-warning-light)}\n",""]),t.locals={tip:"OWbWc",tipRow:"Y5PEv",tipIndicator:"_2b1py",bgGreenLight:"_1UjLJ",bgWarningLight:"xOMth"}},13508:(e,t,s)=>{(t=e.exports=s(60278)(!1)).push([e.id,"._3Tvap{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:380px}._3Tvap.kg2da ._3stWc._38pvL svg path{fill:var(--text-warning)}._3Tvap.kg2da ._3stWc.lpN0_ svg path{fill:var(--my-position-color)}
1._3Tvap.kg2da ._3stWc._2Un6k svg path{fill:var(--text-medium) !important}._3Tvap.kg2da ._3stWc._3oPfO svg path{fill:var(--icon-offer) !important}._3Tvap.kg2da ._3stWc.FUGGY svg path{fill:var(--bg-blue) !important}._3Tvap.kg2da ._3stWc._18SQw svg path{fill:var(--icon-freight-request)}._3Tvap ._2SfRa{margin-top:8px}._3Tvap ._2SfRa ._3nDi2{display:-ms-flexbox;display:flex}._3Tvap ._2SfRa ._3nDi2:first-child{margin-right:8px}._3Tvap ._2SfRa ._3nDi2 ._3Ixba{font-weight:500;font-size:13px;line-height:24px;letter-spacing:0px;min-width:170px}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7{font-size:12px;line-height:24px;letter-spacing:0px;min-width:170px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC{margin-right:8px}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc ._2vqJo{line-height:14px}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc ._2vqJo svg{width:14px;height:14px}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc ._3j26l{line-height:100%}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc ._3j26l svg{height:16px;width:16px}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc ._3j26l._1jrZj{-webkit-transform:rotate(180deg);transform:rotate(180deg)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc svg path{fill-opacity:1}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc._38pvL svg path{fill:var(--text-warning)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc.lpN0_ svg path{fill:var(--my-position-color)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc._2Un6k svg path{f
1ill:var(--stroke-light-gray1)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc._3oPfO svg path{fill:var(--text-light)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc.FUGGY svg path{fill:var(--text-links-light)}._3Tvap ._2SfRa ._3nDi2 ._3gQ_7 ._2N2EC ._3stWc._18SQw svg path{fill:var(--icon-freight-request)}._3Tvap .A9UwC{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}._3Tvap .A9UwC ._1FVqo{min-width:170px;font-weight:500;font-size:15px;text-wrap:nowrap;line-height:24px;letter-spacing:0px}\n",""]),t.locals={tooltip_content:"_3Tvap",dark:"kg2da",wrapper_status:"_3stWc",reject:"_38pvL",fix:"lpN0_",expired:"_2Un6k",waiting:"_3oPfO",offer:"FUGGY",freight:"_18SQw",content_block:"_2SfRa",content_row:"_3nDi2",subheader:"_3Ixba",text:"_3gQ_7",icon_wrapper:"_2N2EC",icon:"_2vqJo",arrow:"_3j26l",from:"_1jrZj",header_row:"A9UwC",header:"_1FVqo"}},20297:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var i=s(27994),a=(s(63696),s(76076)),o=s(92822),l=s.n(o),n=s(71633),r=s.n(n),d=s(81805),p=s(65256),c=s(35126),h=s(38583),m=s(14529);const u=(0,a.A)(l())(e=>{let{dark:t}=e;return(0,i.A)(d.k,{dark:t,horizontalPosition:"left",offset:{x:4,y:4},tip:(0,i.A)("div",{className:"tooltip-default"},void 0,(0,i.A)("div",{className:r()(l().tooltip_content,t&&l().dark)},void 0,(0,i.A)("div",{className:l().header_row},void 0,(0,i.A)("div",{className:l().header},void 0," Cargo side"),(0,i.A)("div",{className:l().header},void 0," Vessel side")),(0,i.A)("div",{className:l().content_block},void 0,(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().subheader},void 0,"Freight Request")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().freight)},void 0,(0,i.A)(m.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow)}))),"Sent from cargo side"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().freight)},void 0,(0,i.A)(h.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow,l().from)}))),"Received from cargo side"))),(0,i.A)("div",{className:l().content_block},void 0,(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().subheader},void 0,"Freight Offer")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().waiting)},void 0,(0,i.A)(m.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow,l().from)}))),"Received from position"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().waiting)},void 0,(0,i.A)(h.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow)}))),"Sent to cargo")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().expired)},void 0,(0,i.A)(m.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow,l().from)}))),"Expired without response"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().expired)},void 0,(0,i.A)(h.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow)}))),"Expired without response"))),(0,i.A)("div",{className:l().content_block},void 0,(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().subheader},void 0,"Counter Offer")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().offer)},void 0,(0,i.A)(m.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow)}))),"Sent to position"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().offer)},void 0,(0,i.A)(h.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow,l().from)}))),"Received from cargo")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().expired)},void 0,(0,i.A)(m.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow)}))),"Expired without response"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().expired)},void 0,(0,i.A)(h.A,{className:l().icon}),(0,i.A)(c.A,{className:r()(l().arrow,l().from)}))),"Expired without response"))),(0,i.A)("div",{className:l().content_block},void 0,(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().subheader},void 0,"Bidding")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().fix)},void 0,(0,i.A)(m.A,{className:l().icon}))),"Deal confirmed"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().fix)},void 0,(0,i.A)(h.A,{className:l().icon}))),"Deal confirmed")),(0,i.A)("div",{className:l().content_row},void 0,(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().reject)},void 0,(0,i.A)(m.A,{className:l().icon}))),"Deal canceled"),(0,i.A)("div",{className:l().text},void 0,(0,i.A)("div",{className:l().icon_wrapper},void 0,(0,i.A)("span",{className:r()(l().wrapper_status,l().reject)},void 0,(0,i.A)(h.A,{className:l().icon}))),"Deal canceled")))))},void 0,(0,i.A)(p.default,{style:{width:"15px",height:"15px",color:"var(--profile-grey-label)",marginLeft:"6px"}}))})},33763:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i,a,o=s(27994),l=s(46413),n=s.n(l),r=s(43616),d=s(59646),p=(s(63696),s(81805));const c=e=>{let{dark:t,selectedVessels:s,cargoId:l="-",...c}=e;return null!=s&&s.length?(0,o.A)(p.k,{offset:{x:2,y:4},horizontalPosition:"center",tip:i||(i=(0,o.A)("div",{},void 0,"Freight Calculator",(0,o.A)("br",{}),"(up to 10 ships)")),dark:t},void 0,(0,o.A)(r.A,{disabled:s.length>10},void 0,(0,o.A)("a",{target:"_blank",href:`/calculator/${n()(s).call(s,e=>e._id).join(",")}/${n()(s).call(s,e=>e.vesselRequestId).join(",")}/${l}`},void 0,a||(a=(0,o.A)(d.A,{fill:"var(--filter-sort-clr)",opacity:1}))))):null}},38954:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i,a=s(27994),o=s(63696);let l=e=>o.createElement("span",e,i||(i=(0,a.A)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,(0,a.A)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5.5C0 8.536 2.464 11 5.5 11C8.536 11 11 8.536 11 5.5C11 2.464 8.536 0 5.5 0C2.464 0 0 2.464 0 5.5ZM6.05 6.05V2.75H4.95V6.05H6.05ZM5.5 1.1C3.0745 1.1 1.1 3.0745 1.1 5.5C1.1 7.9255 3.0745 9.9 5.5 9.9C7.9255 9.9 9.9 7.9255 9.9 5.5C9.9 3.0745 7.9255 1.1 5.5 1.1ZM6.05 8.25V7.15H4.95V8.25H6.05Z",fill:"#E34848"}))));
1l=(0,s(98040).default)(l),l.displayName="RoundWarningIcon",l.muiName="SvgIcon";const n=l},46836:(e,t,s)=>{"use strict";s.d(t,{A:()=>Fs});var i,a=s(27994),o=s(45635),l=s(23151),n=s.n(l),r=s(40859),d=s.n(r),p=s(3341),c=s.n(p),h=s(46413),m=s.n(h),u=s(37281),v=s.n(u),_=s(82460),g=s.n(_),x=s(63696),f=s(71633),A=s.n(f),y=s(2310),b=s.n(y),w=s(76076),k=s(14529),N=s(86954),S=s(67371),C=s(12978),T=s.n(C),P=(s(15910),s(4542)),E=s(59264),L=s(12930),F=s.n(L),R=s(18327),D=s(22539),I=s(95798),j=s(29554),B=s(83163),U=s(70659),O=s(68843),V=s(23871),z=s(69827),H=s(46147),M=s(78350),W=s(62334),q=s(10007),Y=s(20789),Q=s(48623),G=s(98040);s(44681);let $=e=>i||(i=(0,a.A)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,(0,a.A)("path",{d:"M4.30137 1.97571C4.30137 2.86292 3.58214 3.58215 2.69493 3.58215C1.80771 3.58215 1.08848 2.86292 1.08848 1.97571C1.08848 1.08849 1.80771 0.369263 2.69493 0.369263C3.58214 0.369263 4.30137 1.08849 4.30137 1.97571Z",fill:"#82C3FF"}),(0,a.A)("path",{d:"M4.30078 9.166C4.30078 10.0532 3.58155 10.7724 2.69434 10.7724C1.80712 10.7724 1.08789 10.0532 1.08789 9.166C1.08789 8.27879 1.80712 7.55956 2.69434 7.55956C3.58155 7.55956 4.30078 8.27879 4.30078 9.166Z",fill:"#82C3FF"}),(0,a.A)("path",{d:"M10.6309 5.58263C10.6309 7.24002 9.28728 8.5836 7.62988 8.5836C5.97249 8.5836 4.62891 7.24002 4.62891 5.58263C4.62891 3.92523 5.97249 2.58165 7.62988 2.58165C9.28728 2.58165 10.6309 3.92523 10.6309 5.58263ZM5.80709 5.58263C5.80709 6.58933 6.62318 7.40542 7.62988 7.40542C8.63658 7.40542 9.45268 6.58933 9.45268 5.58263C9.45268 4.57593 8.63658 3.75983 7.62988 3.75983C6.62318 3.75983 5.80709 4.57593 5.80709 5.58263Z",fill:"#82C3FF"}),(0,a.A)("path",{d:"M3.59264 3.30216L4.23267 2.40644L5.87806 3.58214L5.23804 4.47786L3.59264 3.30216Z",fill:"#82C3FF"}),(0,a.A)("path",{d:"M5.94531 7.55956L5.30529 6.66384L3.52563 7.93547L4.16566 8.83119L5.94531 7.55956Z",fill:"#82C3FF"})));$=(0,G.default)($),$.displayName="Co2Icon",$.muiName="SvgIcon";const J=$;var X=s(21742),K=s(66872),Z=s.n(K),ee=s(89352);const te={gray:Z().gray,orange:Z().orange,green:Z().green},se=(0,w.A)(Z())(e=>{let{color:t="gray",tip:s,...i}=e;const o=A()(Z().lineIndicator,te[t],i.className);return s?x.createElement(ee.V,(0,X.A)({},s,{className:o}),(0,a.A)("div",{className:Z().sizeFull})):x.createElement("div",(0,X.A)({},i,{className:o}))});var ie,ae,oe=s(62818),le=s(17190),ne=s(9388),re=s(69261),de=s(72118);class pe extends x.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{}),(0,o.A)(this,"handleVesselSelected",e=>{this.props.handleVesselSelected&&this.props.handleVesselSelected(this.props.vessel)}),(0,o.A)(this,"selectRow",(e,t)=>{e.stopPropagation(),this.props.handleRowSelected&&this.props.handleRowSelected({...this.props.vessel,selected:t})}),(0,o.A)(this,"extendInfo",e=>{this.setState(e=>({extendedInfoOpened:!e.extendedInfoOpened})),e.preventDefault(),e.stopPropagation()}),(0,o.A)(this,"openBooking",e=>{e.preventDefault(),e.stopPropagation(),this.props.openCmaBooking(this.props.vessel.liner.offerId)})}render(){var e,t,s,i;const{vessel:o,handleShowRating:l,showLineIndicator:n}=this.props;let r,d;o.onRoute&&o.onRoute.estimateDate>new Date&&(r=o.onRoute.to&&o.onRoute.to.name,d=(0,P.Mk)(o.onRoute.estimateDate,o.onRoute.estimateDate));const p=(0,P.ai)(o.dwt),c=(0,P.ai)(o.capacity);o.gear&&o.gear.length&&o.gear.join(", ");let h=(0,E.Yc)(o.status.status);o.liner&&o.liner.bookingId&&(h=!0,(0,E.Fm)(o));const m=null===(e=o.open)||void 0===e||null===(t=e.latenessPrediction)||void 0===t?void 0:t.late,u="company"===o.computedChannel,v="broker"===o.computedChannel,_="market"===o.computedChannel,g="onRoute"===o.computedChannel,x=`/main-deck/${this.props.cargoId||"-"}/${o._id}/`,{extendedInfoOpened:f}=this.state,y=!!o.liner;return(0,a.A)("a",{onClick:E.sd,href:x},void 0,(0,a.A)("div",{onClick:this.handleVesselSelected,className:A()(b().row,o.disabled?b().disabled:"",o.open||r?"":b().expired)},void 0,(0,a.A)(O.A,{vessel:o}),n&&(h||m)&&(0,a.A)(se,{tip:{tip:h?"Ship in active bidding":"Late position",place:"rightBottom",style:{zIndex:1}},color:h?"green":"orange"}),(0,a.A)("div",{className:A()(b().table_row,h&&b().bidding,y&&b().liner)},void 0,(0,a.A)("div",{className:A()(b().text,b().text_ref,b().ref,b().text_refvessel)},void 0,(0,a.A)("div",{className:A()(b().details,b().position_with_account_name)},void 0,(0,a.A)("div",{style:{display:"flex",overflow:"hidden",alignItems:"center"}},void 0,y?(0,a.A)(oe.A,{onClick:this.extendInfo,className:A()(b().expandIcon,f&&b().opened)}):null,(0,a.A)(M.A,{style:{zIndex:0},checked:o.selected,onClick:e=>e.stopPropagation(),onCheck:this.selectRow,className:b().ref_checkbox}),(0,a.A)(W.yX,{dark:this.props.dark,shrinkLabel:!0,vessel:o}),(0,a.A)("span",{title:null!=o&&null!==(s=o.disponentOwner)&&void 0!==s&&s.name?o.disponentOwner.name:void 0,className:b().disponent_owner},void 0,(0,a.A)(H.A,{showPlaceholder:!0},void 0,null!=o&&null!==(i=o.disponentOwner)&&void 0!==i&&i.name?o.disponentOwner.name:"---")))),o.open||r?(0,a.A)("span",{className:b().vessel_ref},void 0,y?null:(0,a.A)(I.A,{tip:(0,a.A)("div",{className:A()("description_status",b().arrow_tooltip,b().top_arrow_tooltip)},void 0,(0,a.A)("p",{className:A()(b().status_general,b().status_my)},void 0,"My Positions"),(0,a.A)("p",{className:A()(b().status_general,b().status_clients)},void 0,"Received Positions"),(0,a.A)("p",{className:A()(b().status_general,b().status_public)},void 0,"Market Positions"),(0,a.A)("p",{className:A()(b().status_general,b().status_route_ais)},void 0,"On route / AIS"))},void 0,(0,a.A)("span",{className:A()(b().status_general,v&&b().status_clients,u&&b().status_my,_&&b().status_public,g&&b().status_route_ais),style:{width:"auto"}})),(0,a.A)("div",{className:b().ref_number},void 0,(0,a.A)("span",{},void 0,(0,a.A)(D.A,{search:this.props.search},void 0,o.refNo||"")))):"---"),(0,a.A)("div",{className:A()(b().text,b().text_vessel)},void 0,(0,a.A)("div",{title:o.name},void 0,(0,a.A)(D.A,{search:this.props.search},void 0,y?`${o.liner.voyageReference} / `:null,o.name)),(0,a.A)("div",{className:b().second_text},void 0,(0,a.A)(D.A,{search:this.props.search},void 0,o.imoNumber+" / "+(o.typeByPurpose||o.type||"---")))),(0,a.A)("div",{className:A()(b().text,b().text_dwtcapacity)},void 0,(0,a.A)("div",{className:b().text_green},void 0,p),(0,a.A)("div",{className:b().second_text},void 0,c)),(0,a.A)("div",{className:A()(b().text)}
1,void 0,(0,a.A)(re.A,{geared:o.geared,gear:o.gear,dark:this.props.dark}),(0,a.A)("div",{className:A()(b().second_text,b().raiting_wrapper)},void 0,(0,a.A)("div",{className:b().raiting_button_open},void 0,(0,a.A)(U.Ay,{vessel:this.props.vessel,dark:this.props.dark,whiteArrow:this.props.dark},void 0,ie||(ie=(0,a.A)(B.A,{})))),(0,a.A)("div",{className:b().co2Emission},void 0,"Â /Â ",ae||(ae=(0,a.A)(J,{})),"Â ",o.co2Emission?(0,E.LI)(o.co2Emission,2):"---"))),(0,a.A)("div",{className:A()(b().text,b().text_opendate)},void 0,(0,a.A)("div",{title:o.open&&o.open.name||r||"---"},void 0,(0,a.A)(D.A,{search:this.props.search},void 0,o.open&&o.open.name||r||"---"),(0,a.A)(Y.ol,{maintenance:null==o?void 0:o.maintenance})),(0,a.A)("div",{className:b().second_text,title:o.open&&(0,P.Mk)(o.open.from,o.open.until)||d||"---"},void 0,o.open&&(0,P.Mk)(o.open.from,o.open.until)||d||"---")),y&&!o.liner.bookingId?(0,a.A)(me,{liner:o.liner,onClick:this.openBooking}):o.onRoute?(0,a.A)("div",{className:A()(b().text,b().links)},void 0,(0,a.A)("span",{className:A()(b().status_date,{[b().on_route]:o.onRoute})},void 0,"on route")):(0,a.A)(he,{onStatusChange:this.props.onStatusChange,vessel:o,dark:this.props.dark,cargoId:this.props.cargoId,basePath:this.props.basePath,isFillingSystem:this.props.isFillingSystem}))),y?(0,a.A)(le.T8,{extendedInfoOpened:f,vessel:o,dark:this.props.dark}):null)}}(0,o.A)(pe,"defaultProps",{onStatusChange:()=>{}});const ce=Q.Ay.div.withConfig({displayName:"VesselOpenCargoRow__LinksContainer",componentId:"sc-h883qo-0"})(["flex:1;display:flex;flex-direction:column;justify-content:flex-start;height:100%;a{line-height:14px;}"]);function he(e){var t,s,i,o;let{onStatusChange:l,vessel:n,cargoId:r,basePath:d,dark:p,isFillingSystem:c}=e;const h=n.status;let m,u;n.isUserOwner||"company"===n.computedChannel||n.isVesselOwnerInSameCompany||n.liner?h&&h.status&&"new"!==h.status||(m=(0,a.A)("div",{className:A()(b().text,b().links)})):m=(0,a.A)(ce,{className:A()(b().text,b().links)},void 0,(0,a.A)(q.A,{isBlurred:!(null!=n&&n.userInWhiteList)&&"broker"!==n.computedChannel,dontBlur:!0},void 0,(0,a.A)(R.A,{to:`${d}${r}/${n._id}/request`},void 0,"Request freight")),(0,a.A)(q.A,{isBlurred:!(null!=n&&n.userInWhiteList)&&"broker"!==n.computedChannel,dontBlur:!0},void 0,(0,a.A)(R.A,{to:`${d}${r}/${n._id}/tc-offer`},void 0,"Offer hire")));let v=null==n?void 0:n.channelUserStatusBlurred,_=null==n?void 0:n.vesselUserGroupsBlurred;if(T()(t=["onRoute","ais","empty"]).call(t,n.computedChannel)){const e=W.dJ[n.computedChannel];u=(0,a.A)("span",{},void 0,e)}else{var g;u=(0,a.A)(V.Ay,{handleChange:l,vessel:n,vesselStatuses:e=>{var t;return null==e||null===(t=e.vesselUserGroups)||void 0===t?void 0:t.groups},channelId:null==n?void 0:n.vesselRequestId,value:null===(g=n.channelUserStatus)||void 0===g?void 0:g.status,popoverClass:p?"":F().dark_popover_statuses,labelClass:p?"":b().dark_channel_status})}const x=(0,E.Yc)(h.status);let f=!x||null;return(0,a.A)("div",{className:A()(b().text,b().wrapper_status,b()[h.status]),style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-end",flex:1}},void 0,m,(0,a.A)("div",{style:{display:"flex",flexDirection:"column",flex:1}},void 0,(0,a.A)("div",{style:{display:"flex",flexDirection:"column"}},void 0,x?(0,a.A)(j.A,{isBlurred:v,classes:b().recommended_vessel_bid,vesselRequestStatus:(null===(s=V.Ay.statuses[null===(i=n.channelUserStatus)||void 0===i?void 0:i.status])||void 0===s?void 0:s.name)||"Open",status:h,isFillingSystem:c}):(0,a.A)(q.A,{isBlurred:v},void 0,u),f?(0,a.A)(q.A,{isBlurred:_},void 0,(0,a.A)(z.hH,{groups:null==n||null===(o=n.vesselUserGroups)||void 0===o?void 0:o.groups})):null)))}function me(e){let{liner:t,onClick:s}=e;const{priceTotal:i,priceCurrencyCode:o}=t,l=o&&i&&`${(0,ne.Qn)(o)} ${i}`,n=t.quotationCreatedAt?"Quoted":"Book freight";return(0,a.A)("button",{className:b().bookFreightBtn,onClick:s},void 0,!!l&&(0,a.A)("div",{className:b().bookFreightBtnPrice},void 0,(0,a.A)("div",{},void 0,l),t.quotationCreatedAt?(0,a.A)(de.A,{short:!0,timeToEnd:(0,E.q5)(t.offerExpiresAt)}):null),(0,a.A)("div",{className:b().bookFreightBtnText+(l?"":" "+b().noPrice)},void 0,n))}pe.defaultProps={dragable:!0,showTCRate:!0,showOffer:!1,basePath:"/main-deck/"};const ue=(0,w.A)(b(),F())(pe);var ve,_e=s(18606),ge=s(11747),xe=s(38621),fe=s(33332),Ae=s(31818),ye=s.n(Ae),be=s(51752),we=s.n(be),ke=(s(96310),s(89169)),Ne=s.n(ke),Se=s(34091),Ce=s.n(Se),Te=s(78191),Pe=s.n(Te),Ee=s(54998),Le=(s(46668),s(16815)),Fe=s(63258),Re=s(49270),De=s(82553);class Ie extends x.PureComponent{constructor(e){super(e),(0,o.A)(this,"handleChangePaymentType",e=>{this.setState({selectedType:e},this.setTotal)}),(0,o.A)(this,"addUser",()=>{this.state.users.length>=99||this.setState({users:[...this.state.users,{}]},this.setTotal)}),(0,o.A)(this,"removeUser",()=>{var e;this.state.users.length<=1||this.setState({users:Ne()(e=this.state.users).call(e,0,-1)},this.setTotal)}),(0,o.A)(this,"calcTotal",(e,t)=>{e=e||this.props;const s={};let i=1;return"card"===(t=t||this.state).selectedType?s.numberOfUsers=1:s.numberOfUsers=t.users.length,s.numberOfUsers>1&&(i=.9),s.value=(0,Fe.LI)(s.numberOfUsers*e.package.price*i),s}),(0,o.A)(this,"setTotal",(e,t)=>{this.setState({total:this.calcTotal(e,t)})}),(0,o.A)(this,"handleSubscribe",async()=>
1{if("card"===this.state.selectedType)return void setTimeout(()=>{document[this.state.formName].submit()},0);const e=this.refs.form;if(e.submit(),!e.state.isValid)return;const t=e.getModel(),s=this.getUniqueEmailError(t.accounts);if(Ce()(s).length)return void e.updateInputsWithError(s);let i;t.invoiceType=this.props.invoiceType,t.duration=this.props.package.period;try{i=await Ee.KJ.generateInvoice(t);const e=i.data.link;this.setState({invoiceHref:e})}catch(t){if("FetchException"!==t.name)throw t;{const s=(0,E.wq)(t.message);e.updateInputsWithError(s)}}}),(0,o.A)(this,"handleBlurEmail",()=>{setTimeout(()=>{const e=this.refs.form.getModel(),t=this.getUniqueEmailError(e.accounts);this.refs.form.updateInputsWithError(t)})}),(0,o.A)(this,"getUniqueEmailError",e=>{const t={},s={};for(let a=0;a<e.length;a++){var i;let o=e[a];o&&(o=Pe()(i=o.toLocaleLowerCase()).call(i),t[o]&&(s[`accounts[${a}]`]="Email must be unique"),t[o]=1)}return s}),(0,o.A)(this,"handleGetTrial",async()=>{await this.props.getFreeAccess(this.props.connect?"withConnect=1":"withCore=1"),await this.props.getProfile(),this.props.connect?De.A.push("/settings/profile"):(this.props.closeSubscribeDialog(),window.location.reload())}),this.state={users:[{email:this.props.user&&this.props.user.email||void 0}]},this.state.selectedType=e.defaultSelectedType,this.state.total=this.calcTotal(e,this.state),this.state.formName="subscribeForm-"+Math.random().toString(),this.props.user&&(this.state.defaultCompanyAddress=(0,P.hl)(this.props.user.company))}UNSAFE_componentWillReceiveProps(e){this.props.package!==e.package&&this.setTotal(e)}render(){this.state.total;return(0,a.A)("div",{className:A()(we().wrapper_total,this.props.connect?we().wrapper_total_connect:"")},void 0,ve||(ve=(0,a.A)("div",{})),(0,a.A)(Le.A,{label:"GET FREE",disableTouchRipple:!0,disableFocusRipple:!0,primary:!0,onClick:this.handleGetTrial,buttonStyle:{borderRadius:0,lineHeight:"44px"},style:{margin:"0",boxShadow:"none",width:"128px",height:"44px"},labelStyle:{fontSize:"14px",textTransform:"capitalize"}}))}}(0,o.A)(Ie,"periodNames",{year:"Yearly",month:"Month"}),(0,o.A)(Ie,"defaultProps",{defaultSelectedType:"invoice"});const je=(0,N.Ng)(e=>({...e.login}),{getFreeAccess:Re.getFreeAccess,getProfile:Re.getProfile,closeSubscribeDialog:Re.closeSubscribeDialog})((0,w.A)(we())(Ie));var Be,Ue,Oe,Ve,ze,He,Me,We,qe,Ye,Qe,Ge,$e,Je,Xe,Ke,Ze,et=s(80247);const tt={month:{price:8900,description:"SHIPNEXT Subscription",name:"month"},year:{price:79900,description:"SHIPNEXT Subscription",name:"year"}};class st extends x.PureComponent{constructor(e){super(e),(0,o.A)(this,"preparePackages",e=>{const t={...e.month},s={...e.year},i={};return i.packages={true:t,false:s},i.selectedPackage=i.packages[this.state.Toggled],t.price/=100,s.price/=100,t.moPrice=t.price,s.moPrice=(0,Fe.LI)(s.price/12),s.save=(0,Fe.LI)(12*t.price-s.price),s.period="year",t.period="month",i}),(0,o.A)(this,"handleToggle",()=>{this.setState({Toggled:!this.state.Toggled,selectedPackage:this.state.packages[!this.state.Toggled]})}),(0,o.A)(this,"handleToggleMoreOpen",()=>{this.setState({moreOpened:!this.state.moreOpened})}),this.state={Toggled:!1,moreOpened:!1},this.state={...this.state,...this.preparePackages(tt)}}async componentDidMount(){let e;try{e=(await Ee.KJ.getPaymentPackages("marketplace")).data,this.setState({...this.preparePackages(e)})}catch(e){et.error(e)}}render(){this.state.Toggled,this.state.Toggled;if(!this.props.user)return null;const e=this.state.selectedPackage;return(0,a.A)("div",{className:we().subscribe},void 0,(0,a.A)("div",{className:we().wrapper_access},void 0,(0,a.A)("div",{className:we().full_access},void 0,(0,a.A)("div",{className:we().title},void 0,(0,a.A)("div",{className:we().full_access_sum},void 0,Be||(Be=(0,a.A)("h3",{},void 0,"Free full access"))),(0,a.A)("div",{className:we().toggle})),(0,a.A)("div",{className:A()(we().description,!this.props.showDescription&&we().hide)},void 0,(0,a.A)("ul",{className:A()(we().left_info,this.state.moreOpened?we().active:null)},void 0,Ue||(Ue=(0,a.A)("li",{},void 0,"Global Cargo search")),Oe||(Oe=(0,a.A)("li",{},void 0,"Global Ship Position Search")),Ve||(Ve=(0,a.A)("li",{},void 0,"Instant Port Data and Port D/A search")),ze||(ze=(0,a.A)("li",{},void 0,"Freight Calculator")),He||(He=(0,a.A)("li",{},void 0,"Centralized E-mail and data-flow processing (SHIPNEXT)")),Me||(Me=(0,a.A)("li",{}
1,void 0,"Internal customary E-mail and data-flow processing (SHIPNEXT CONNECT)")),We||(We=(0,a.A)("li",{},void 0,"Instant Cargo-to-Ship Matching and Analytics")),qe||(qe=(0,a.A)("li",{},void 0,"Reverse Freight Auctioning Platform"))),(0,a.A)("ul",{className:A()(we().right_info,this.state.moreOpened?we().active:null)},void 0,Ye||(Ye=(0,a.A)("li",{},void 0,"Interconnectivity between Shipowners/Carriers and Shipper's individual reverse freight auction platforms")),Qe||(Qe=(0,a.A)("li",{},void 0,"Freight (Voyage Charter) Trading and Chartering")),Ge||(Ge=(0,a.A)("li",{},void 0,"Ship (Time Charter) Trading and Chartering")),$e||($e=(0,a.A)("li",{},void 0,"Fleet analysis & Rating (in progress)")),Je||(Je=(0,a.A)("li",{},void 0,"Charter Party Building/Printing")),Xe||(Xe=(0,a.A)("li",{},void 0,"Electronic Bill of Lading")),Ke||(Ke=(0,a.A)("li",{},void 0,"Cargo Tracking & Reporting")),Ze||(Ze=(0,a.A)("li",{},void 0,"Blockchain solutions for individual Supply-chain management"))),(0,a.A)("p",{className:we().more_adaptive,onClick:this.handleToggleMoreOpen},void 0,this.state.moreOpened?"less":"more",(0,a.A)("span",{className:A()(we().arrow,this.state.moreOpened?we().active:null)}))))),(0,a.A)(je,{package:e,defaultSelectedType:"invoice",invoiceType:"shipnext",user:this.props.user,pay:this.props.pay}))}}(0,o.A)(st,"defaultProps",{showDescription:!0});const it=(0,N.Ng)(e=>({...e.login}))((0,w.A)(we())(st));var at;class ot extends x.Component{render(){return at||(at=(0,a.A)("div",{},void 0,(0,a.A)(it,{showDescription:!1})))}}(0,o.A)(ot,"defaultProps",{expirationDate:new Date});(0,w.A)(ye())(ot);var lt,nt,rt,dt,pt,ct,ht,mt,ut,vt,_t,gt,xt=s(62688),ft=s.n(xt),At=s(52188),yt=s.n(At),bt=s(38504),wt=s(83338),kt=s(22112),Nt=s(18309),St=s(94684),Ct=s(35068),Tt=s(24e3),Pt=s(62162),Et=s(10831),Lt=s(40436),Ft=s(89891),Rt=s.n(Ft),Dt=s(85524),It=s.n(Dt),jt=s(36578),Bt=s(75116),Ut=s(50453),Ot=s(9705),Vt=s(84662),zt=s(65256),Ht=s(92323),Mt=s(30197),Wt=s(989),qt=s.n(Wt),Yt=s(68868),Qt=s(73387),Gt=s(48e3),$t=s(10330),Jt=s(73404),Xt=s(80247);class Kt extends x.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{specialtyList:[],currentSpecialties:[]}),(0,o.A)(this,"getDefaultFilter",()=>({filterName:"",includeLate:!1,_flagExclude:!1,typeCheckbox:!1,type:void 0,minDWTCheckbox:!1,minDWT:"",maxDWTCheckbox:!1,maxDWT:"",gearCheckbox:!1,gear:void 0,_flag:"",maxLoaCheckbox:!1,maxLoa:"",maxDraftCheckbox:!1,maxDraft:"",maxPositionAgeCheckbox:!1,maxPositionAge:"",maxAgeCheckbox:!1,maxAge:"",minAgeCheckbox:!1,minAge:"",maxBeamCheckbox:!1,maxBeam:"",minSpeedCheckbox:!1,minSpeed:"",flagsCheckbox:!1,flags:[],typeByPurposesCheckbox:!1,typeByPurposes:void 0,typeBySpecialty:[],typeByConstructionCheckbox:!1,typeByConstruction:void 0,minHoldLength:"",imoFitted:!1,itfFitted:!1,iceClass:!1,openHatch:!1,boxShaped:!1,maxBallastDays:0,minGearCapacity:""})),(0,o.A)(this,"renderVesselFilter",(e,t,s)=>{let{onChange:i,removeFromPorts:o,handleToggleDialog:l,subscribeOnSubmit:n,getForm:r,removeFromArray:d}=s;const p=t.typeByPurpose||"";let c=t._flag||"";if(null!=t&&t._flag){var h;const{_id:e}=t._flag;c=g()(h=this.context.countries).call(h,t=>t._id===e)||""}const u=(0,Mt.gQ)(i,t),_=(0,Mt.rN)(i,t),f=(0,Mt.Cg)(i),y=(0,Mt.Nl)(i),b=()=>{const e=r().getModel();if(!e.typeByPurpose)return;const s=e.typeByPurpose,a=this.state.currentSpecialties,o=t.typeByPurposes||[];g()(o).call(o,e=>e===s)||o.push(s);let l=t.typeBySpecialty||[];g()(o).call(o,e=>e===s)&&a&&(l=v()(l).call(l,e=>{var t;return Rt()(e).call(e,"Without")?Mt.V5[s].every(t=>(null==t?void 0:t.value)!==e):!T()(t=Mt.V5[s]).call(t,e)}),l.push(...a)),i("typeBySpecialty",l),i("typeByPurposes",o),i("typeByPurpose",""),this.setState({specialtyList:[]}),i("typeByPurposesCheckbox",!0)};return n(()=>{t.typeByPurposesCheckbox&&(b(),this.setState({specialtyList:[]}),y("typeByPurpose")),t.flagsCheckbox&&"object"==typeof t._flag&&null!==t._flag&&(i("flags",{country:{...t._flag},exclude:!!t._flagExclude}),y("_flag"))}),(0,a.A)("span",{className:qt().body_filter},e,(0,a.A)("div",{className:"row align-items-center"},void 0,(0,a.A)("div",{className:"col-4"},void 0,(0,a.A)("p",{className:qt().title_filter_name},void 0,"Filter name:")),(0,a.A)("div",{className:"col grow max-h-42",style:{display:"flex",alignItems:"center",gap:"12px"}},void 0,(0,a.A)(Ut.A,{name:"filterName",hintText:"Enter filter name",className:qt().input,fullWidth:!0,value:t.filterName,onChange:_("filterName")}),(0,a.A)("div",{style:{position:"relative",paddingRight:"20px"}},void 0,(0,a.A)("div",{},void 0,(0,a.A)(Ot.A,{label:"Late positions",name:"includeLate",className:qt().checkbox,value:t.includeLate,labelStyle:Mt.Co.labelStyle,onChange:_("includeLate")})),(0,a.A)("div",{style:{position:"absolute",top:"5px",right:"0"}},void 0,(0,a.A)(ee.V,{tip:lt||(lt=(0,a.A)("span",{},void 0,"This function will allow you to see suitable positions for",(0,a.A)("br",{}),"your cargo, which are late")),place:"topLeft",dark:!0},void 0,(0,a.A)(zt.default,{style:{display:"block",width:14,height:14}})))))),(0,a.A)("div",{className:"row align-items-center port-of-region"},void 0,(0,a.A)("div",{className:"col-4"},void 0,x.createElement(Ot.A,{label:"Flag:",name:"flagsCheckbox",ref:"flagsCheckbox",onChange:_("flagsCheckbox"),className:qt().checkbox,value:t.flagsCheckbox,labelStyle:Mt.Co.labelStyle})),(0,a.A)("div",{className:A()("col grow max-h-42",qt().wrapper_add_port,qt().add_flag_wrapper)},void 0,x.createElement(Yt.A,{name:"_flag[country]",ref:"_flag[country]",hintText:"Country",valueSelector:e=>e,fullWidth:!0,value:c,onChange:_("_flag","flags",!1),style:{maxWidth:"217px"},withUnions:!0}),(0,a.A)("div",{className:qt().wrapper_dop_info},void 0,(0,a.A)(Ot.A,{label:"Except",name:"_flag[exclude]",className:qt().checkbox,value:t._flagExclude,labelStyle:Mt.Co.labelStyle,onChange:_("_flagExclude",null,!1)}),(0,a.A)(Mt.m_,{noMargin:!0,disabled:t.openPorts&&t.openPorts.length===Mt.Jm,text:"Add"},void 0,(0,a.A)(Vt.default,{className:A()(qt().btn_add_port_region,qt().icon),onClick:()=>{var e,t;const s=r();let a=s.getModel();null!==(e=a._flag)&&void 0!==e&&e.country&&(i("flags",a._flag),g()(t=s.inputs).call(t,e=>"_flag[country]"===e.props.name).resetValue())}}))))),(0,a.A)(Mt.Ps,{flags:It()(t),remove:e=>d("flags",e)}),(0,a.A)("div",{className:A()("row align-items-center ",qt().type_row)},void 0,(0,a.A)("div",{className:"col col-auto"},void 0,x.createElement(Ot.A,{label:"Ballast days:",name:"maxBallastDaysCheckbox",ref:"maxBallastDaysCheckbox",onChange:_("maxBallastDaysCheckbox"),className:qt().checkbox,value:t.maxBallastDaysCheckbox,labelStyle:Mt.Co.labelStyle})),(0,a.A)("div",{className:"col grow align-items-center flex max-h-42 space_children12"},void 0,x.createElement(Bt.A,{name:"maxBallastDays",fullWidth:!0,ref:"maxBallastDays",className:qt().select,onChange:_("maxBallastDays"),hintText:" ",value:t.maxBallastDays},nt||(nt=(0,a.A)(jt.default,{value:0,primaryText:""},0)),rt||(rt=(0,a.A)(jt.default,{value:1,primaryText:"1"},1)),dt||(dt=(0,a.A)(jt.default,{value:2,primaryText:"2"},2)),pt||(pt=(0,a.A)(jt.default,{value:3,primaryText:"3"},3)),ct||(ct=(0,a.A)(jt.default,{value:4,primaryText:"4"},4)),ht||(ht=(0,a.A)(jt.default,{value:5,primaryText:"5"},5)),mt||(mt=(0,a.A)(jt.default,{value:6,primaryText:"6"},6)),ut||(ut=(0,a.A)(jt.default,{value:7,primaryText:"7"},7)),vt||(vt=(0,a.A)(jt.default,{value:8,primaryText:"8"},8)),_t||(_t=(0,a.A)(jt.default,{value:9,primaryText:"9"},9)),gt||(gt=(0,a.A)(jt.default,{value:10,primaryText:"10"},10))))),(0,a.A)("div",{className:A()("row align-items-center ",qt().type_row)},void 0,(0,a.A)("div",{className:"col col-auto"},void 0,x.createElement(Ot.A,{label:"By purpose:",name:"typeByPurposesCheckbox",ref:"typeByPurposesCheckbox",className:qt().checkbox,onChange:_("typeByPurposesCheckbox"),value:t.typeByPurposesCheckbox,labelStyle:Mt.Co.labelStyle})),(0,a.A)("div",{className:"col grow align-items-center flex max-h-42 space_children12"},void 0,(0,a.A)(Qt.C,{onChange:(e,s)=>{var a;i("typeByPurpose",s,!1),i("typeByPurposesCheckbox",!0),this.setState({specialtyList:
1Mt.V5[s],currentSpecialties:null===(a=t.typeBySpecialty)||void 0===a?void 0:v()(a).call(a,e=>{var t;return T()(t=Mt.V5[s]).call(t,e)||Mt.V5[s].some(t=>t.value===e)})})},value:p}),(0,a.A)($t.A,{floatingLabelText:"",hintText:"By specialty",hintStyle:Jt.YU.hintStyle,underlineStyle:Jt.YU.underlineStyle,style:Jt.YU.style,iconStyle:Jt.YU.iconStyle,name:"typeBySpecialty",list:this.state.specialtyList,value:t.typeByPurpose?this.state.currentSpecialties:null,disabled:!this.state.specialtyList.length,onChange:e=>{this.setState({currentSpecialties:e})},classes:qt().specialty_select,popoverProps:{style:{width:"260px",overflow:"scroll"},renderer:(e,t)=>(0,a.A)(jt.default,{style:{zIndex:""+(e.rightIcon?"2":"1"),overflow:"visible"},innerDivStyle:{display:"flex",alignItems:"center",height:"34px"},value:e},e.id,(0,a.A)(M.A,{disabled:e.disabled||!1,checked:e.checked,onCheck:(t,s)=>!e.disabled&&e.onChange(s),labelPosition:e.labelPosition||"left",label:e.name}),(0,a.A)("div",{},void 0,e.rightIcon))}}),(0,a.A)("div",{className:A()(qt().wrapper_dop_info)},void 0,(0,a.A)("span",{className:qt().btn_add_wrapper},void 0,(0,a.A)(Mt.m_,{noMargin:!0,text:"Add"},void 0,(0,a.A)(Vt.default,{className:A()(qt().btn_add_port_region,qt().icon),onClick:b})))))),(0,a.A)(Mt.AI,{selectedByPurpose:p,list:t.typeByPurposes,specialtyList:t.typeBySpecialty,handleRemove:e=>(e=>{var s;const a=v()(s=t.typeByPurposes).call(s,t=>t!==e);if(i("typeByPurposes",a,!1),t.typeBySpecialty&&t.typeBySpecialty.length){var o;const s=null===(o=t.typeBySpecialty)||void 0===o?void 0:v()(o).call(o,t=>{var s;return Rt()(t).call(t,"Without")?Mt.V5[e].every(e=>(null==e?void 0:e.value)!==t):!T()(s=Mt.V5[e]).call(s,t)});i("typeBySpecialty",s)}a.length||i("typeByPurposesCheckbox",!1)})(e)}),(0,a.A)("div",{className:A()("row align-items-center ",qt().type_row)},void 0,(0,a.A)("div",{className:"col col-auto"},void 0,x.createElement(Ot.A,{label:"Type by construction:",name:"typeByConstructionCheckbox",ref:"typeByConstructionCheckbox",className:qt().checkbox,onChange:_("typeByConstructionCheckbox"),value:t.typeByConstructionCheckbox,labelStyle:Mt.Co.labelStyle})),(0,a.A)("div",{className:"col align-items-center flex max-h-42 space_children12"},void 0,x.createElement(Bt.A,{name:"typeByConstruction",fullWidth:!0,ref:"typeByConstruction",className:qt().select,onChange:_("typeByConstruction"),hintText:" ",value:t.typeByConstruction,style:{minWidth:"133px"}},m()(Mt.xi).call(Mt.xi,e=>(0,a.A)(jt.default,{value:e,primaryText:(0,E.JA)(e)||"All"},e))))),(0,a.A)("div",{},void 0,(0,a.A)(Gt.A,{filter:t,handleGenericChange:_,handleDependentChange:u,handleSelectField:f})))}),(0,o.A)(this,"fetchData",async()=>{try{const e=(await Pt.Ay.getSuitableVesselFilters()).data;return(0,Mt.WB)(e,this.constructor.dataFieldName)}catch(e){Xt.error(e)}}),(0,o.A)(this,"saveFilterToDB",async(e,t)=>{try{const s=await Pt.Ay.saveSuitableVesselFilter(e,(0,Mt.sm)(t));return(0,Mt.DE)(s.data),s}catch(e){Xt.error(e)}}),(0,o.A)(this,"updateFilterInDB",async(e,t)=>{try{const s=await Pt.Ay.updateVesselFilter(e,(0,Mt.sm)(t));return(0,Mt.DE)(s.data),s}catch(e){Xt.error(e)}}),(0,o.A)(this,"deleteFilter",e=>Pt.Ay.deleteVesselFilter(e).catch(e=>Xt.error(e)))}render(){const{type:e,dataFieldName:t}=this.constructor;return x.createElement(Ht.A,(0,X.A)({},this.props,{dataFieldName:t,renderFilter:this.renderVesselFilter,handleFilter:this.props.handleFilter,defaultFilter:this.getDefaultFilter,fetchData:this.fetchData,saveFilterToDB:this.saveFilterToDB,updateFilterInDB:this.updateFilterInDB,deleteFilter:this.deleteFilter,type:e,user:this.props.user,isDark:this.props.isDark,popoverProps:{targetOrigin:{vertical:"top",horizontal:"left"},canAutoPosition:!0}}))}}(0,o.A)(Kt,"type","suitableFleetFilter"),(0,o.A)(Kt,"dataFieldName","suitableFleetFilter"),(0,o.A)(Kt,"contextTypes",{countries:ft().array});const Zt=Kt;var es=s(68431),ts=s.n(es);const ss=(0,w.A)(ts())(()=>(0,a.A)(se,{tip:{tip:(0,a.A)("div",{className:ts().tip},void 0,(0,a.A)("div",{className:ts().tipRow},void 0,(0,a.A)("div",{className:`${ts().tipIndicator} ${ts().bgGreenLight}`}),"Ship in active bidding"),(0,a.A)("div",{className:ts().tipRow},void 0,(0,a.A)("div",{className:`${ts().tipIndicator} ${ts().bgWarningLight}`}),"Late position")),place:"rightBottom",style:{zIndex:3}}}));var is,as,os,ls,ns,rs,ds,ps,cs,hs,ms,us,vs,_s=s(70899),gs=s(57061),xs=s(44692),fs=s(83485),As=s.n(fs),ys=s(20297),bs=s(81805),ws=s(33763),ks=s(17357),Ns=s(48390),Ss=s(76256),Cs=s(2221),Ts=s(10416),Ps=s(43004),Es=s(80247);class Ls extends x.Component{constructor(e){var t;if(super(e),t=this,(0,o.A)(this,"unmounting",!1),(0,o.A)(this,"callCounter",0),(0,o.A)(this,"updateChannelStatus",(e,t)=>{const s=(0,V.Dz)(this.state.rows,t);this.setState({rows:s})}),(0,o.A)(this,"updateVesselStatus",(e,t)=>{const s=(0,V.Yn)(this.state.rows,t);this.setState({rows:s})}),(0,o.A)(this,"socketHandler",(e,t)=>{const s="CARGO_UPDATE_RELEVANT_VESSELS"!==e;(0,E.e3)(this.props.selectedEntity,null==t?void 0:t.cargoRequest)&&this.loadRecommendedShips(s,1,this.props.isHidden,s?0:3e3)}),(0,o.A)(this,"loadRecommendedShips",async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.props.isHidden,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.callCounter+=1;const o=t.callCounter;t.loading=!0,!e&&t.setState({loading:!0});try{await(0,E.yy)(a);const e=await t.props.handleRelevantShips(t.props.selectedEntity._id,s,t.state.filters,i,n()(t.state),t.props.isFillingSystem);if(t.unmounting)return;if(o!==t.callCounter)return;t.loading=!1;const{hiddenCount:l}=e;1===s?(e.data=e.data||[],t.setState({rows:e.data,loading:!1,page:e.page,next:e.next,hiddenCount:l})):t.setState({rows:[...t.state.rows,...e.data],loading:!1,page:e.page,next:e.next,hiddenCount:l})}catch(e){t.loading=!1,Es.error(e),t.setState({loading:!1})}}),(0,o.A)(this,"handleLoadMore",(0,xe.debounce)(()=>{this.loadRecommendedShips(!0,(this.state.page||1)+1)},50)),(0,o.A)(this,"handleSearch",e=>{e||(e=void 0);const t={...this.state.filters,search:e};this.handleFilter(t,null)}),(0,o.A)(this,"setTabId",e=>{"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`cargo.${this.props.selectedEntity._id}.relevant.filters.tabId`,d()(e)),this.setState({tabId:e})}),(0,o.A)(this,"handleFilter",(0,xe.debounce)(e=>{"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`cargo.${this.props.selectedEntity._id}.relevant.filters`,d()(e)),this.setState({filters:e},this.loadRecommendedShips)},200)),(0,o.A)(this,"handleSort",e=>{this.setState({sort:e},this.loadRecommendedShips),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("cargo.relevant.sort",d()(e))}),(0,o.A)(this,"handleStatus",(e,t)=>{var s;const i=c()(s=this.state.rows).call(s,e=>e._id===t);if(i<0)return;const a=[...this.state.rows],o={...a[i],channelUserStatus:{...a[i].channelUserStatus||{},status:e.status}};a[i]=o,this.setState({rows:a})}),(0,o.A)(this,"handleRowSelected",e=>{var t;const s=c()(t=this.state.rows).call(t,t=>t._id===e._id);if(s<0)return;const i={...this.state.rows[s],...e},a=[...this.state.rows];a[s]=i,this.setState({rows:a})}),(0,o.A)(this,"selectAll",e=>{const t={selected:e};this.setState(e=>{var s;return{rows:m()(s=e.rows).call(s,e=>({...e,...t}))}})}),(0,o.A)(this,"toggleShowHideVessels",async(e,t)=>{try{const{isHidden:e}=this.props,s=(0,wt.eN)(this.state.rows);if(t){(await this.props.hideUnhideVessels(s,!e)).data&&this.setState(e=>{var t;return{rows:v()(t=e.rows).call(t,e=>!g()(s).call(s,t=>t===e._id)),hiddenCount:Math.max(0,this.props.isHidden?e.hiddenCount-s.length:e.hiddenCount+s.length)}})}else this.props.toggleHiddenVessels(!e),this.loadRecommendedShips(!1,1,!e)}catch(e){Es.error(e),this.context.showMessage(formErrorMessage(e,t))}}),(0,o.A)(this,"handlePrint",function(){var e;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const i={vesselIds:m()(e=(0,wt.ef)(t.state.rows)).call(e,e=>e._id)};(0,E.Fd)("/api/v1/monitor/vessel/pdf?features=cma-cgm",{filters:i,showTCRate:s})}),(0,o.A)(this,"markAsSelected",(e,t,s)=>{const{rows:i}=this.state,a=m()(i).call(i,i=>g()(e).call(e,e=>e._id===i._id)?(0,wt.VD)(i,t,s).data:i);return this.setState({rows:a})}),(0,o.A)(this,"handleRelevantVesselsShareInfo",async e=>{const{selectedEntity:{_id:t}={},isInTcTab:s=!1}=this.props;return(s?Pt.Ay.getRelevantTcShareInfo:Pt.Ay.getRelevantCargoShareInfo).call(Pt.Ay,{_id:t,vesselIds:e})}),(0,o.A)(this,"renderEmptyList",()=>(0,_s.f)(this.state.filters)?(0,a.A)(gs.A,{isBgDark:this.props.dark,onClear:this.clearFilters}):(0,a.A)("div",{className:b().noship},void 0,is||(is=(0,a.A)("div",{},void 0,(0,a.A)(k.A,{className:"ship_icon_big"}),(0,a.A)("h2",{},void 0," No suitable fleet yet"))))),(0,o.A)(this,"clearFilters",()=>{this.setState({filters:{},tabId:null,loading:!0},()=>this.handleFilter({}))}),(0,o.A)(this,"openCmaBooking",e=>{var t,s;if(null===(t=this.props.user.company.settings)||void 0===t||null===(s=t.cmaCgm)||void 0===s||!s.decidingParty){const e=(0,a.A)(Ts.A,{open:!0,handleClose:()=>{this.setState({cmaBookingDialog:null})}}
1,void 0,"Before you can book, you must have an active CMA provider connection.",as||(as=(0,a.A)("br",{})),"If CMA is not connected for your account, please complete the provider setup and sign the required LOA and agreement. Once completed, booking and full booking management (create/edit, status tracking, documents, and invoices) will be enabled.",os||(os=(0,a.A)("br",{})),ls||(ls=(0,a.A)("br",{})),ns||(ns=(0,a.A)("div",{className:"flex align-items-center justify-content-center"},void 0,(0,a.A)(Ps.A,{containerElement:(0,a.A)(R.A,{to:"/contacts/company:cma-cgm/-?leftPaneTab=companies"}),primary:!0,label:"Proceed"}))));return void this.setState({cmaBookingDialog:e})}this.setState({cmaBookingDialog:(0,a.A)(ks.A,{open:!0,noEddie:!0},void 0,(0,a.A)(Ss.Zv,{headerProps:{onClose:this.closeCmaBooking,children:"Booking freight",useBorder:!0,p:"0 12px 0 20px"}},void 0,(0,a.A)(Ns.A,{cargoRequest:this.props.selectedEntity,offerId:e,handleClose:this.closeCmaBooking})))})}),(0,o.A)(this,"closeCmaBooking",e=>{let{reloadSuitableFleet:t=!0}=e;this.setState({cmaBookingDialog:null}),t&&this.loadRecommendedShips()}),this.state={dark:e.dark,loading:!0,tabId:null,filters:{search:void 0,channels:{market:!0,broker:!0,mine:!0,onRoute:!0},tab:"freight"},sort:{field:"dwt",value:1,label:"DWT",biddingStatus:!0},rows:[],refList:[{id:1,name:E.gD.bind(this,wt.$4),disabled:E.gD.bind(this,(e,t)=>(0,wt.yM)(t)&&(0,wt.j5)(e.rows)),handler:this.toggleShowHideVessels.bind(this,null,!0)}]},"undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`cargo.${this.props.selectedEntity._id}.relevant.filters`),t=sessionStorage.getItem("cargo.relevant.sort"),s=sessionStorage.getItem(`cargo.${this.props.selectedEntity._id}.relevant.filters.tabId`),i=e?JSON.parse(e):null,a=t?JSON.parse(t):null,o=s?JSON.parse(s):null,l={...i?{filters:i}:{},...a?{sort:a}:{},...o?{tabId:o}:{}};this.state={...this.state,...l}}}componentDidUpdate(e){var t,s;(null===(t=e.selectedEntity)||void 0===t?void 0:t._id)!==(null===(s=this.props.selectedEntity)||void 0===s?void 0:s._id)&&this.loadRecommendedShips()}componentDidMount(){yt().subscribe("BID_UPDATE",this.socketHandler),yt().subscribe("VESSEL_NEW_FREIGHT_REQUEST",this.socketHandler),yt().subscribe("CARGO_UPDATE_RELEVANT_VESSELS",this.socketHandler),yt().subscribe("CHANGE_POSITION_STATUS",this.updateChannelStatus),yt().subscribe("CHANGE_VESSEL_STATUS",this.updateVesselStatus)}componentWillUnmount(){this.unmounting=!0,yt().unsubscribe(this.socketHandler),yt().unsubscribe(this.updateChannelStatus),yt().unsubscribe(this.updateVesselStatus)}renderActionHeader(e,t){var s,i;if(!e.length)return null;const o=null===(s=this.props.selectedEntity.realUser)||void 0===s?void 0:s.email;return(0,a.A)(Nt.A,{handleClose:()=>this.selectAll(!1),selectedCount:e.length},void 0,(0,a.A)(St.P,{style:{width:"20px"},iconStyle:{fill:"var(--filter-sort-clr)",width:20,marginRight:"0px",marginLeft:"0px",height:20},canPrint:!0,handlePrint:this.handlePrint}),(0,a.A)(xs.A,{selectedVessels:e,storageKey:"relevantVesselsExportFields",hideTcRate:!0,isDark:this.props.dark}),(0,a.A)(bs.k,{offset:{x:2,y:4},horizontalPosition:"center",tip:rs||(rs=(0,a.A)("div",{},void 0,"Share")),dark:this.props.dark},void 0,(0,a.A)(Ct.A,{loadVesselsInfo:this.handleRelevantVesselsShareInfo,selectedVessels:e,defaultEmail:o},"4")),(0,a.A)(Tt.A,{dark:this.props.dark,handleSuccess:this.markAsSelected,selectedVessels:e}),(0,a.A)("span",{className:b().show_hide_eye},"3",(0,a.A)(H.A,{dontBlur:!0},void 0,(0,a.A)(kt.A,{toggleShowHideOrders:this.toggleShowHideVessels,showHiddenOrders:this.props.isHidden,isDark:this.props.dark,selectedOrdersCount:null!==(i=e.length)&&void 0!==i?i:"",disabled:this.state.loading,hiddenCount:this.state.hiddenCount}))),(0,a.A)(ws.A,{dark:this.props.dark,selectedVessels:e,cargoId:t}))}renderHeader(e){var t;const s=e&&m()(e).call(e,e=>e._id);return(0,a.A)("div",{className:A()(b().left,b().suitable,e.length&&"hidden"),style:this.props.isFillingSystem?{flexWrap:"nowrap"}:{}},void 0,this.props.isFillingSystem?this.props.renderTabs&&this.props.renderTabs():(0,a.A)("span",{className:b().title},void 0,"Suitable fleet"),(0,a.A)("div",{className:b().wrapper_filter_sort,style:{width:"unset"}},void 0,(0,a.A)(fe.A,{handleSearch:this.handleSearch,query:this.state.filters.search,styleInput:{width:"100%"},className:b().search}),(0,a.A)(Et.Ay,{handleFilter:this.handleFilter,filters:this.state.filters}),(0,a.A)("div",{style:{marginLeft:"8px"}},void 0,(0,a.A)("div",{className:b().sutiable_filters_wrapper,lastFilterFieldName:"suitableFleetFilter"},void 0,(0,a.A)(Zt,{tabId:this.state.tabId||null,setTabId:this.setTabId,isDark:this.props.dark,handleFilter:this.handleFilter,defaultValues:this.state.filters,user:this.props.user}),(0,a.A)(Lt.A,{isDark:this.props.dark,sort:n()(this.state),handleSort:this.handleSort,values:this.props.isInTcTab?this.constructor.sortFieldsTc:this.constructor.sortFields,bidStatus:this.props.isInTcTab?null:"bid
1dingStatus",hasLinerTraderFirst:!0,isFillingSystem:this.props.isFillingSystem}))),(0,a.A)("span",{className:b().show_hide_eye},"3",(0,a.A)(H.A,{dontBlur:!0},void 0,(0,a.A)(kt.A,{toggleShowHideOrders:this.toggleShowHideVessels,showHiddenOrders:this.props.isHidden,isDark:this.props.dark,selectedOrdersCount:null!==(t=s.length)&&void 0!==t?t:"",hiddenCount:this.state.hiddenCount,disabled:this.state.loading})))))}render(){var e,t;const{className:s="",user:i,handleShowRating:o,selectedEntity:l}=this.props,{rows:n}=this.state;if(null===(e=this.props.selectedEntity)||void 0===e||!e._id)return null;const r=(0,wt.ef)(n);return(0,a.A)("div",{className:A()(s,b().wrapper_general)},void 0,(0,a.A)("div",{className:b().header_general},void 0,this.renderHeader(r),this.renderActionHeader(r,this.props.selectedEntity._id)),(0,a.A)(Q.NP,{theme:{name:this.props.dark?"dark_theme":"white_theme"}},void 0,x.createElement("div",{className:A()(b().table_wrapper,this.props.dark?b().bg_all:null,this.props.dark&&"dark_theme"),ref:"wrapper"},this.state.loading?(0,a.A)(ge.A,{isDark:this.props.dark}):n&&0===n.length?this.renderEmptyList():(0,a.A)("div",{className:A()(b().table,this.props.dark?b().dark:"")},void 0,(0,a.A)("div",{className:A()(b().wrapper_header_body,b().wrapper_header_body_vessel_table,b().wrapper_header_body_vessel_table_open_cargo)},void 0,(0,a.A)("div",{className:A()(b().wrapper_header,this.props.dark?b().dark:b().light)},void 0,ds||(ds=(0,a.A)(ss,{})),(0,a.A)("div",{className:A()(b().table_row,b().header)},void 0,(0,a.A)("div",{className:A()(b().text,b().checkbox_block)},void 0,(0,a.A)(bt.A,{vertical:!0,refList:this.state.refList,isDark:this.props.dark,handleCheck:this.selectAll,vessels:n}),(0,a.A)("span",{},void 0,"DISP OWNER",ps||(ps=(0,a.A)("br",{})),(0,a.A)("span",{className:b().second_text},void 0,"REF"))),(0,a.A)("div",{className:A()(b().text)},void 0,"Ship",cs||(cs=(0,a.A)("br",{})),(0,a.A)("span",{className:b().second_text},void 0,"IMO / Type")),(0,a.A)("div",{className:A()(b().text)},void 0,(0,a.A)("span",{className:b().text_green},void 0,"DWT")," ",hs||(hs=(0,a.A)("br",{})),(0,a.A)("span",{className:b().second_text},void 0,"Capacity")),(0,a.A)("div",{className:A()(b().text)},void 0,"Gear",ms||(ms=(0,a.A)("br",{})),(0,a.A)("span",{className:b().second_text},void 0,"Rating / CO2")),(0,a.A)("div",{className:A()(b().text)},void 0,"Open",us||(us=(0,a.A)("br",{})),(0,a.A)("span",{className:b().second_text},void 0,"Date")),(0,a.A)("div",{className:A()(b().text,As().header_status_text)},void 0,vs||(vs=(0,a.A)("div",{},void 0,"Status")),(0,a.A)(ys.A,{dark:this.props.dark})))),(0,a.A)("div",{className:b().body},void 0,m()(t=n||[]).call(t,e=>(0,a.A)(ue,{showLineIndicator:!0,handleVesselSelected:this.props.handleVesselSelected,vessel:e,onStatusChange:this.handleStatus,dark:this.props.dark,user:this.props.user,cargoId:this.props.selectedEntity._id,basePath:this.props.basePath,handleShowRating:o,handleRowSelected:this.handleRowSelected,isFillingSystem:this.props.isFillingSystem,openCmaBooking:this.openCmaBooking},e._id||e.vessel))))),this.state.cmaBookingDialog)))}}(0,o.A)(Ls,"contextTypes",{showMessage:ft().func}),(0,o.A)(Ls,"sortFields",{dwt:{field:"dwt",value:1,label:"DWT"},"recommend:hours":{field:"recommend:hours",value:1,label:"Minimum Ballast"},status:{field:"status",value:-1,label:"Status"},co2Emission:{field:"co2Emission",value:-1,label:"CO2 Emission"}}),(0,o.A)(Ls,"sortFieldsTc",{dwt:{field:"dwt",value:1,label:"DWT"},status:{field:"status",value:-1,label:"Status"}}),Ls.defaultProps={dark:!0,basePath:"/main-deck/",handleRelevantShips:_e.A.findRelevantShips.bind(_e.A)};const Fs=(0,N.Ng)(e=>({user:e.login.user,isHidden:e.monitor.isHidden}),{...S,toggleDialogMessage:Cs.uY})((0,w.A)(b(),As())(Ls))},51615:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(27994),a=(s(63696),s(76076)),o=s(56584),l=s.n(o);const n=(0,a.A)(l())(function(){return(0,i.A)("div",{className:l().headerRight},void 0,(0,i.A)("span",{className:l().please_send},void 0,"Send your Cargo, Orders and Fleet Positions to ",(0,i.A)("a",{style:{textDecoration:"none",color:"#2366C9"},href:"mailto:[email protected]"},void 0,"[email protected]")))})},51752:(e,t,s)=>{var i=s(80870),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},56584:(e,t,s)=>{var i=s(97938),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},62334:(e,t,s)=>{"use strict";s.d(t,{yX:()=>ue,Ay:()=>_e,dJ:()=>me});var i,a=s(27994),o=s(45635),l=s(21742),n=s(12978),r=s.n(n),d=s(63696),p=s(76076),c=s(19793),h=s.n(c),m=s(2310),u=s.n(m),v=s(12930),_=s.n(v),g=s(95798),x=s(46413),f=s.n(x),A=s(89169),y=s.n(A),b=s(71633),w=s.n(b),k=s(62162),N=s(4542),S=s(66447),C=s(11747),T=s(73646);function P(e){var t;return f()(t=e.toLowerCase().split(" ")).call(t,e=>e.charAt(0).toUpperCase()+y()(e).call(e,1)).join(" ")}class E extends d.PureComponent{render(){const e=this.props.vessel;return(0,a.A)("div",{className:w()(u().position)},void 0,(0,a.A)("div",{style:{display:"flex"}},void 0,(0,a.A)(g.A,{offset:{x:-2,y:4},dark:this.props.dark,whiteArrow:this.props.dark,tip:(0,a.A)(L,{dark:this.props.dark,vessel:e})},void 0,(0,a.A)("div",{},void 0,(0,a.A)("span",{className:u().details_location},void 0,i||(i=(0,a.A)(S.default,{}))),(0,a.A)("span",{className:w()(this.props.shrinkLabel?u().shrinked:"",u().text_position)},void 0,this.props.label||"Position")))))}}(0,o.A)(E,"defaultProps",{label:"Position",shrinkLabel:!1,dark:!1});class L extends d.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{loading:!0}),(0,o.A)(this,"unmounting",!1)}async UNSAFE_componentWillMount(){try{const e=await k.Ay.getLocation(this.props.vessel.imoNumber);if(this.unmounting)return;this.setState({position:e,loading:!1})}catch(e){this.setState({position:null,loading:!1})}}componentWillUnmount(){this.unmounting=!0}render(){let e;const t=this.state.position;
1var s,i,o,l,n;this.state.loading?e=(0,a.A)("div",{className:u().loader_wrapper},void 0,(0,a.A)(C.A,{classes:u().adaptive_loader,size:50,thickness:3})):e=t?(0,a.A)("div",{className:u().info_position_content},void 0,null!=t&&t.route?(0,a.A)("div",{className:w()(u().from_to_wrapper,this.props.dark&&u().dark)},void 0,null!==(s=t.route.from)&&void 0!==s&&s.name?(0,a.A)("p",{className:u().from_to},void 0,(0,a.A)("a",{className:u().tooltip_from_to_name,title:P(t.route.from.name)},void 0,t.route.from.name),(0,a.A)("span",{className:u().tooltip_from_to_date},void 0,(0,N.O2)(t.route.from.date))):(0,a.A)("p",{className:u().unspecified},void 0,"UNSPECIFIED"),(0,a.A)("div",{className:w()(u().progress_wrapper)},void 0,(0,a.A)(T.g,{dark:this.props.dark,onRoute:t})),t.route.to?(0,a.A)("p",{className:u().from_to},void 0,(0,a.A)("a",{className:u().tooltip_from_to_name,title:P(t.route.to.name)},void 0,t.route.to.name),(0,a.A)("span",{className:u().tooltip_from_to_date},void 0,(0,N.O2)(t.route.to.date))):null):null,(null==t?void 0:t.route)&&(0,a.A)("div",{className:u().destination}),t.lastPos&&t.lastPos.coords?(0,a.A)("div",{className:w()(u().wrapper_area,this.props.dark&&u().dark)},void 0,(0,a.A)("div",{className:u().coordinates_block},void 0,(0,a.A)("div",{className:u().label},void 0,"Latitude / Longitude"),(0,a.A)("div",{className:u().coordinates},void 0,null===(i=t.lastPos.coords[1])||void 0===i?void 0:i.toFixed(2),"° /"," ",null===(o=t.lastPos.coords[0])||void 0===o?void 0:o.toFixed(2),"°")),(0,a.A)("div",{className:u().coordinates_block},void 0,(0,a.A)("div",{className:u().label},void 0,"Speed"),(0,a.A)("div",{className:u().speed},void 0,t.lastPos.speed," kn"))):null):this.props.vessel.location.coordinates?(0,a.A)("div",{className:w()(u().wrapper_area,this.props.dark&&u().dark)},void 0,(0,a.A)("div",{className:u().coordinates_block},void 0,(0,a.A)("div",{className:u().label},void 0,"Latitude / Longitude"),(0,a.A)("div",{className:u().coordinates},void 0,null===(l=this.props.vessel.location.coordinates[1])||void 0===l?void 0:l.toFixed(2),"° / "," ",null===(n=this.props.vessel.location.coordinates[0])||void 0===n?void 0:n.toFixed(2),"°")),(0,a.A)("div",{className:u().coordinates_block},void 0,(0,a.A)("div",{className:u().label},void 0,"Speed"),(0,a.A)("div",{className:u().speed},void 0,this.props.vessel.location.speed||"---"," kn"))):(0,a.A)("div",{},void 0,(0,a.A)("h3",{},void 0,(0,a.A)("p",{className:u().position_not_aviable},void 0,"Position not available")));return(0,a.A)("div",{className:w()(u().info_position,"info_position",!(null!=t&&t.route)&&u().info_position_small)},void 0,e)}}var F=s(29554),R=s(68843),D=s(78350),I=s(23871),j=s(69827),B=s(10007),U=(s(73798),s(87807));const O={display:"flex",overflow:"hidden",alignItems:"center",position:"relative",paddingLeft:"24px"},V={position:"absolute",left:"-8px",top:"-5px",padding:"6px 0px 10px 8px"};const z=(0,p.A)(u())(function(e){let{vessel:t,selectRow:s,className:i="",isDark:o=!1,...n}=e;return d.createElement("div",(0,l.A)({className:w()(u().details,u().position_with_account_name,i)},n),(0,a.A)("div",{style:O},void 0,(0,a.A)("label",{style:V,onClick:e=>e.stopPropagation()},void 0,(0,a.A)(D.A,{style:{zIndex:0},checked:!!t.selected,onCheck:s,className:u().ref_checkbox})),(0,a.A)(ue,{dark:o,shrinkLabel:!0,vessel:t}),(0,a.A)(U.A,{vessel:t})))});var H=s(43923),M=s(94127),W=s(38007),q=s(55184),Y=s(22539),Q=s(20789),G=s(13339);const $=(0,p.A)(u())(function(e){var t,s;let{vessel:i,maintenance:o,onRouteDestinationPort:n,onRouteEstimateDate:r,search:p,className:c="",...h}=e;return d.createElement("div",(0,l.A)({className:w()(u().text,u().text_opendate,c)},h),(0,a.A)("div",{title:(null==i?void 0:i.open)&&i.open.name||n||"---",className:u().open_ex_dd},void 0,(0,a.A)(Y.A,{title:(null==i?void 0:i.open)&&i.open.name||n||"---",search:p},void 0,(null==i?void 0:i.open)&&i.open.name||n||"---"),(0,a.A)(Q.ol,{maintenance:o})),(0,a.A)(G.A,{title:(null==i?void 0:i.open)&&(0,N.Mk)(null==i||null===(t=i.open)||void 0===t?void 0:t.from,null==i||null===(s=i.open)||void 0===s?void 0:s.until)||r||"---"},void 0,(null==i?void 0:i.open)&&(0,N.Mk)(i.open.from,i.open.until)||r||"---"))});var J,X=s(6291),K=s(18327),Z=s(86954),ee=s(36720);const te=(0,Z.Ng)(e=>({user:e.login.user}))((0,p.A)(u())(function(e){var t,s;
1let{className:i="",user:o,rate:n,vessel:r,isMy:p,isClient:c,dispatch:h,...m}=e;n=n?(0,N.ai)(this.props.rate,(null==r||null===(t=r.status)||void 0===t?void 0:t.currency)||"$","",0):ee.i.tcRate.text(r)||"---";const v=(null===(s=r.status)||void 0===s?void 0:s.valueBlurred)&&"number"==typeof r.status.value;return v&&(n="$****"),d.createElement("div",(0,l.A)({className:w()(u().text,u().text_market,i)},m),(0,a.A)(B.A,{isBlurred:v},void 0,(0,a.A)(X.A,{},void 0,n)),(0,a.A)(G.A,{},void 0,p&&!c||null==r||!r.open||null!=r&&r.onRoute||!1!==(null==r?void 0:r.isUserOwner)||null!=r&&r.isVesselOwnerInSameCompany?null:(0,a.A)(B.A,{isBlurred:!(null!=r&&r.userInWhiteList)&&"broker"!==(null==r?void 0:r.computedChannel),dontBlur:!0},void 0,(0,a.A)(K.A,{to:o?`/main-deck/-/${null==r?void 0:r._id}/tc-offer?leftPaneTab=tc`:"/login"},void 0," ",J||(J=(0,a.A)("span",{},void 0,"Add offer"))))))}));var se=s(72118);const ie=(0,p.A)(u())(function(e){var t,s;let{vessel:i,className:o="",...n}=e;return d.createElement("div",(0,l.A)({className:w()(u().offer,o)},n),(0,a.A)("div",{},void 0,null!=i&&i.freight?(0,N.ai)(null==i||null===(t=i.freight)||void 0===t?void 0:t.value,"$",null==i||null===(s=i.freight)||void 0===s?void 0:s.term):"---"),null!=i&&i.status&&i.status.end?(0,a.A)("div",{className:u().left},void 0,(0,a.A)(se.A,{timeToEnd:i.status.end})):null)});var ae=s(83896),oe=s(53078),le=s(38954);const ne=(0,p.A)(u())(function(e){let{isClient:t,isMy:s,isPublic:i,isRouteAIS:o,className:n="",offset:r={x:1,y:5},...p}=e;return(0,a.A)(g.A,{offset:r,tip:d.createElement("div",(0,l.A)({className:w()("description_status")},p),(0,a.A)("p",{className:w()(u().status_general,u().status_my)},void 0,"My Positions"),(0,a.A)("p",{className:w()(u().status_general,u().status_clients)},void 0,"Received Positions"),(0,a.A)("p",{className:w()(u().status_general,u().status_public)},void 0,"Market Positions"),(0,a.A)("p",{className:w()(u().status_general,u().status_route_ais)},void 0,"On route / AIS"))},void 0,(0,a.A)("span",{className:w()(u().status_general,t&&u().status_clients,s&&u().status_my,i&&u().status_public,o&&u().status_route_ais,n),style:{width:"auto"}}))});var re=s(41264);const de=function(e){let{vessel:t,search:s,isClient:i,isMy:o,isPublic:n,isRouteAIS:r,className:p="",theme:c,...h}=e;return d.createElement("span",(0,l.A)({className:p},h),(0,a.A)(ne,{className:u().status_tags,isClient:i,isMy:o,isPublic:n,isRouteAIS:r}),(0,a.A)(re.A,{theme:c,horizontalPosition:"right",className:u().vessel_tag,tags:t.tags,showMore:1}))};const pe=function(e){let{vessel:t,search:s,isClient:i,isMy:o,isPublic:n,isRouteAIS:r,className:p="",theme:c,notConfirmed:h,...m}=e;return d.createElement("span",(0,l.A)({className:p},m),(0,a.A)("div",{style:{display:"flex"}},void 0,i||o||n||r?(0,a.A)(ne,{className:u().status_tags,isClient:i,isMy:o,isPublic:n,isRouteAIS:r,offset:{x:-4,y:2}}):null,h?(0,a.A)("div",{style:{color:"#E34848",whiteSpace:"pre-wrap"}},void 0,"Waiting for approval"):(0,a.A)(U.A,{vessel:t})),(0,a.A)(re.A,{theme:c,horizontalPosition:"right",className:u().vessel_tag,tags:t.tags,showMore:1}))};var ce,he=s(8064);const me={onRoute:"On route / AIS",ais:"On route / AIS",empty:"---"},ue=e=>{let{vessel:t,...s}=e;return t.hasKnownLocationSince?d.createElement(E,(0,l.A)({vessel:t},s)):null};class ve extends d.Component{constructor(){super(...arguments),(0,o.A)(this,"selectRow",(e,t)=>{e.stopPropagation(),this.props.handleRowSelected&&this.props.handleRowSelected({...this.props.vessel,selected:t})})}getFleetListTypeIcon(){const{dark:e,vessel:t}=this.props,s=e?"#82c3ff":"rgb(67, 128, 199)";return null!=t&&t.inCompanyVessels&&null!=t&&t.inSelectedVessels?(0,a.A)(he.jE,{color:s}):null!=t&&t.inCompanyVessels?(0,a.A)(he.bD,{height:16,color:s}):(0,a.A)(he.TV,{color:s})}render(){var e,t,s,i,o,n,p,c,m,v;const{vessel:x,isDragging:f,isOver:A,handleVesselSelected:y,monitor:b,selected:k,handleRowSelected:S}=this.props;let C,T;x.onRoute&&x.onRoute.estimateDate>new Date&&(C=x.onRoute.to&&x.onRoute.to.name,T=(0,N.Mk)(x.onRoute.estimateDate,x.onRoute.estimateDate));const P=(0,ae.ee)(x);let E,L=null===(e=this.props.vessel)||void 0===e?void 0:e.channelUserStatusBlurred,U=null===(t=this.props)||void 0===t||null===(s=t.vessel)||void 0===s?void 0:s.vesselUserGroupsBlurred;
1if(r()(i=["onRoute","ais","empty"]).call(i,x.computedChannel)){const e=me[x.computedChannel];E=(0,a.A)("span",{},void 0,e)}else{var O,V;E=(0,a.A)(I.Ay,{vessel:this.props.vessel,vesselStatuses:e=>{var t;return null==e||null===(t=e.vesselUserGroups)||void 0===t?void 0:t.groups},channelId:null===(O=this.props.vessel)||void 0===O?void 0:O.vesselRequestId,value:null===(V=x.channelUserStatus)||void 0===V?void 0:V.status,popoverClass:this.props.dark?"":_().dark_popover_statuses,labelClass:this.props.dark?"":u().dark_channel_status})}const Y=x.status&&"notConfirmed"===x.status.name||!(null!=x&&x.confirmed),Q=b?null==x?void 0:x.maintenance:null==x||null===(o=x.open)||void 0===o?void 0:o.maintenance,G=!b&&(x.status&&"claimRights"===x.status.name||x.role&&"claimRights"===x.role);return(0,a.A)("div",{onClick:y,className:w()(u().row,f?u().dragging:"",A?h().over:"",x.disabled?u().disabled:"",x.open||C?"":u().expired,P.isBidding&&u().bidding,u()[x.computedChannel],!b&&u().expand_row,k&&u().blue_row)},void 0,(0,a.A)(R.A,{vessel:x}),(0,a.A)("div",{className:w()(u().table_row)},void 0,(0,a.A)("div",{className:w()(u().text,u().text_ref,u().ref,u().text_refvessel)},void 0,S&&!b?(0,a.A)(D.A,{checked:x.selected,onClick:e=>e.stopPropagation(),onCheck:this.selectRow,className:u().ref_checkbox}):null,(0,a.A)("div",{style:{overflow:"hidden"}},void 0,b?(0,a.A)(z,{vessel:x,selectRow:this.selectRow,isDark:this.props.dark}):null,b?d.createElement(de,(0,l.A)({theme:{name:this.props.dark?"dark_theme":"white_theme"},className:b?u().vessel_tags:"",vessel:x},P)):d.createElement(pe,(0,l.A)({notConfirmed:Y,theme:{name:this.props.dark?"dark_theme":"white_theme"},className:b?u().vessel_tags:"",vessel:x},P)))),(0,a.A)("div",{className:w()(u().text,u().text_vessel)},void 0,(0,a.A)("div",{style:{display:"flex",alignItems:"center"}},void 0,(0,a.A)(oe.A,{hasSanctions:null==x?void 0:x.hasSanctions,small:!0}),(0,a.A)("span",{style:{width:"fit-content",maxWidth:G?"90%":"100%",display:"inline-block",overflow:"hidden"}},void 0,(0,a.A)(H.A,{vessel:x,search:this.props.search})),G?(0,a.A)(g.A,{whiteArrow:this.props.dark,tip:ce||(ce=(0,a.A)("div",{className:"tooltip-default"},void 0,"Claim rights")),offset:{x:1,y:5},dark:this.props.dark},void 0,(0,a.A)(le.A,{style:{display:"inline",minWidth:"12px",marginLeft:"4px",width:12,height:12,color:"var(--text-warning)"}})):null),(0,a.A)(M.A,{search:this.props.search,vessel:x})),(0,a.A)(W.A,{dwt:null==x?void 0:x.dwt,capacity:null==x?void 0:x.capacity}),(0,a.A)(q.A,{gear:null==x?void 0:x.gear,vessel:x,isDark:this.props.dark}),(0,a.A)($,{vessel:x,maintenance:Q,onRouteDestinationPort:C,onRouteEstimateDate:T,search:this.props.search}),[this.props.showTCRate?d.createElement(te,(0,l.A)({key:0,rate:this.props.rate,vessel:x},P)):null,this.props.showOffer?(0,a.A)(ie,{vessel:x}):null,(0,a.A)("div",{className:w()(u().text,u().wrapper_status)},2,P.isBidding?(0,a.A)(F.A,{isBlurred:L,vesselRequestStatus:(null===(n=I.Ay.statuses[null===(p=x.channelUserStatus)||void 0===p?void 0:p.status])||void 0===n?void 0:n.name)||"Open",status:x.status}):b?(0,a.A)("span",{className:w()(u().status_date,u().statuses,{[u().on_route]:x.onRoute})},void 0,(0,a.A)(B.A,{isBlurred:L},void 0,E),(0,a.A)(B.A,{isBlurred:L},void 0,(0,a.A)(j.hH,{isBlurred:U,groups:null===(c=this.props)||void 0===c||null===(m=c.vessel)||void 0===m||null===(v=m.vesselUserGroups)||void 0===v?void 0:v.groups}))):"---",this.props.showOwnerType&&!P.isBidding&&(0,a.A)("div",{},void 0,this.getFleetListTypeIcon()))]))}}(0,o.A)(ve,"defaultProps",{isDragging:!1,isOver:!1,monitor:!0,selected:!1,handleVesselSelected:()=>{}});const _e=(0,p.A)(u(),h(),_())(ve)},64591:(e,t,s)=>{(t=e.exports=s(60278)(!1)).push([e.id,"._2KZkB{width:132px}._2KZkB span{overflow:hidden;text-overflow:ellipsis}._3-lwO{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}\n",""]),t.locals={arrow_popover_label:"_2KZkB",header_status_text:"_3-lwO"}},66872:(e,t,s)=>{var i=s(88778),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},68431:(e,t,s)=>{var i=s(10893),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},80870:(e,t,s)=>
1{(t=e.exports=s(60278)(!1)).push([e.id,"._18eLj{margin-top:20px}._18eLj h2{margin-top:0;margin-bottom:20px;font-size:19px;font-weight:500;line-height:23px;text-transform:uppercase;color:var(--text-dark)}@media (max-width: 540px){._18eLj h2{font-size:17px;font-weight:700}}._18eLj .TfprF{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0 20px;padding:16px 0}@media (max-width: 700px){._18eLj .TfprF{-ms-flex-direction:column;flex-direction:column}}._18eLj .TfprF ul{width:50%;margin:0;padding-left:15px}@media (max-width: 700px){._18eLj .TfprF ul{width:100%}}@media (max-width: 540px){._18eLj .TfprF ul._2nyKq li:nth-child(n+5){display:none}}@media (max-width: 540px){._18eLj .TfprF ul._2nyKq._122m3 li:nth-child(n+5){display:block}}@media (max-width: 700px){._18eLj .TfprF ul._10CXz{display:none}}@media (max-width: 700px){._18eLj .TfprF ul._10CXz._122m3{display:block}}._18eLj .TfprF ul li{position:relative;list-style-type:none;font-size:12px;line-height:23px;color:var(--text-dark)}._18eLj .TfprF ul li:before{position:absolute;top:9px;left:-13px;display:inline-block;width:3px;height:3px;background-color:#4D9E0E;border-radius:50%;content:''}._18eLj .TfprF ._3AhqL{display:none;margin:0;font-size:12px;line-height:23px;cursor:pointer;color:#4D9E0E}@media (max-width: 700px){._18eLj .TfprF ._3AhqL{display:block}}._18eLj .TfprF ._3AhqL ._2k1Im{position:relative;top:-3px;width:5px;display:inline-block;height:5px;margin-left:5px;border-top:1px solid #4D9E0E;border-right:1px solid #4D9E0E;-webkit-transform:rotate(134deg);transform:rotate(134deg)}._18eLj .TfprF ._3AhqL ._2k1Im._122m3{top:-1px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}._18eLj ._1hSLh{-webkit-box-shadow:0 0 6px 0 rgba(0,0,0,0.16);box-shadow:0 0 6px 0 rgba(0,0,0,0.16)}@media (max-width: 870px){._18eLj ._1hSLh{width:100%;margin-left:0}}._18eLj ._1hSLh h3,._18eLj ._1hSLh p{color:#fff}._18eLj ._1hSLh h3,._18eLj ._1hSLh ._1ytXy{padding-left:20px}@media (max-width: 540px){._18eLj ._1hSLh h3,._18eLj ._1hSLh ._1ytXy{padding-left:0}}._18eLj ._1hSLh h3{margin:0;font-size:16px;font-weight:bold;line-height:21px;text-transform:uppercase}@media (max-width: 540px){._18eLj ._1hSLh h3{text-align:center}}._18eLj ._1hSLh ._38SiU{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;position:relative;background-color:#285596;padding:12px 0 11px}@media (max-width: 540px){._18eLj ._1hSLh ._38SiU{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}}._18eLj ._1hSLh ._38SiU .D9lNC{margin-top:6px;padding-left:20px;font-size:0}@media (max-width: 540px){._18eLj ._1hSLh ._38SiU .D9lNC{margin-left:auto;margin-right:auto;padding-bottom:12px;border-bottom:1px dashed rgba(255,255,255,0.4);text-align:center}}._18eLj ._1hSLh ._38SiU .D9lNC span{display:inline-block;color:#fff;-webkit-transition:all 3s;transition:all 3s}._18eLj ._1hSLh ._38SiU .D9lNC span:first-child,._18eLj ._1hSLh ._38SiU .D9lNC span:last-child{font-size:25px;font-weight:300;line-height:25px}._18eLj ._1hSLh ._38SiU .D9lNC span:first-child{margin-right:7px;vertical-align:super}._18eLj ._1hSLh ._38SiU .D9lNC span:last-child{margin-left:3px;vertical-align:bottom}._18eLj ._1hSLh ._38SiU .D9lNC span:nth-child(2){margin:0;vertical-align:middle;font-size:50px;font-weight:300;line-height:50px}@media (max-width: 540px){._18eLj ._1hSLh ._1IGrO{width:100%}}._18eLj ._1hSLh ._3JysP{margin:0 20px}@media (max-width: 540px){._18eLj ._1hSLh ._3JysP{margin-top:20px;margin-left:0;margin-right:0}}._18eLj ._1hSLh ._3JysP ._3TYYB,._18eLj ._1hSLh ._3JysP .k78Nr{margin:0;font-size:12px;line-height:16px;text-transform:uppercase;vertical-align:middle;-webkit-transition:color 3s;transition:color 3s}._18eLj ._1hSLh ._3JysP ._3TYYB span,._18eLj ._1hSLh ._3JysP .k78Nr span{margin-left:10px;line-height:24px;text-transform:capitalize}._18eLj ._1hSLh .PF__V{padding:26px 0 30px;text-align:center}._18eLj ._1hSLh .PF__V button>div:nth-child(1){padding:0 30px !important}@media (max-width: 360px){._18eLj ._1hSLh .PF__V button>div:nth-child(1){padding:0 10px !important}}._18eLj ._1hSLh .PF__V button span{font-size:14px !important;
1font-weight:normal !important;letter-spacing:1px !important;text-transform:uppercase !important}._18eLj ._3madT{margin-top:16px}._18eLj ._3madT a{font-size:12px;line-height:16px;color:#4D9E0E}._18eLj ._3madT a:first-child{padding-right:6px;border-right:1px solid #C7C7C7}._18eLj ._3madT a:last-child{padding-left:9px}._18eLj ._3-HS-{position:relative;display:inline-block;padding-top:8px;padding-left:38px;font-family:Roboto;font-size:12px;font-weight:300;line-height:14px;color:#A0F447}._18eLj ._3-HS-:after{position:absolute;top:0;right:-19px;display:inline-block;width:16px;height:18px;background-image:url(\"/images/[email protected]\");background-repeat:no-repeat;background-size:cover;background-position:50%;content:''}._20LcJ{padding:0px 40px 20px !important;max-height:890px !important}@media (max-width: 700px){._20LcJ{padding-bottom:30px !important}}@media (max-width: 540px){._20LcJ{padding-left:20px !important;padding-right:20px !important;padding-bottom:40px}}._3mbU9{width:870px !important;max-width:100% !important}@media (max-width: 870px){._3mbU9{width:95% !important}}@media (max-width: 540px){._3mbU9{width:100% !important}}@media (max-width: 540px){._3mbU9 svg{right:4px !important}}@media (max-height: 800px){._3mbU9{-webkit-transform:translate(0px, 32px) !important;transform:translate(0px, 32px) !important}}@media (max-height: 765px){._3mbU9{-webkit-transform:translate(0px, 0px) !important;transform:translate(0px, 0px) !important}._20LcJ{max-height:calc(100vh - 16px) !important;min-height:320px}}@media (max-height: 690px){._20LcJ{max-height:100vh !important}._2KU0H{padding-top:0px !important}._18eLj{margin-top:22px}}.aILcF{-webkit-transition:all 2s;transition:all 2s}._2qm7m{display:-ms-flexbox;display:flex;margin-top:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #E6E6E6}@media (max-width: 700px){._2qm7m{-ms-flex-direction:column;flex-direction:column}}._2qm7m._2Wf5p{margin-left:20px;margin-right:20px}._2qm7m .Oe5jl{width:50%;padding-top:18px}@media (max-width: 700px){._2qm7m .Oe5jl{width:100%}}._2qm7m ._24FRo{padding-left:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #E6E6E6}@media (max-width: 700px){._2qm7m ._24FRo{height:82px;border-right:none;border-bottom:1px solid #E6E6E6}}._2qm7m ._13wuE{position:relative;background-color:#F5F5F5}._2qm7m ._13wuE._122m3{background-color:#ffffff}._2qm7m ._13wuE .UM5MP{padding-left:14px}._2qm7m ._13wuE .UM5MP ._2i7fv{margin-top:4px;margin-bottom:16px;padding-right:18px;padding-left:30px;font-size:13px;line-height:20px;color:var(--text-dark)}._2qm7m ._13wuE .UM5MP .I72zl{position:absolute;top:0;right:0;width:69px;height:67px;margin:0;overflow:hidden}._2qm7m ._13wuE .UM5MP .I72zl span{position:absolute;top:18px;right:-21px;display:inline-block;width:94px;padding:2px 0;font-size:9px;background-color:#7FC931;-webkit-transform:rotate(45deg);transform:rotate(45deg);text-align:center;color:#ffffff}._3QSvK{display:-ms-flexbox;display:flex}._3QSvK ._2Gfto{position:relative;display:inline-block;width:20px;height:20px;border:2px solid #ABABAB;border-radius:50%;cursor:pointer}._3QSvK ._2Gfto._122m3{border:2px solid #7FC931}._3QSvK ._2Gfto._122m3:before{position:absolute;display:inline-block;top:50%;left:50%;width:10px;height:10px;margin-top:-5px;margin-left:-5px;background-color:#7FC931;border-radius:50%;content:''}._3QSvK p{margin:0;padding-left:10px;font-size:15px;font-weight:700;line-height:20px;text-transform:uppercase;color:var(--text-dark)}.l_-4s{padding:12px 16px 12px 14px;border-top:1px solid #E6E6E6}.l_-4s ._3kj0-{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.l_-4s ._3kj0- p{margin:0;padding-right:10px;font-size:13px;font-weight:500;line-height:18px;color:var(--text-dark)}.l_-4s ._3kj0->span{width:67% !important}.l_-4s ._3kj0->span div{font-size:13px !important;line-height:24px}.l_-4s ._3kj0-._3Hg5S{padding:10px 0;-ms-flex-pack:justify;justify-content:space-between}.l_-4s ._3kj0- ._2itA3{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:67%}.l_-4s ._3kj0- ._2itA3 ._1el3P,.l_-4s ._3kj0- ._2itA3 ._71p1F{position:relative;width:19px;height:19px;background-color:#E6E6E6;border-radius:50%;cursor:pointer}.l_-4s ._3kj0- ._2itA3 ._1el3P:hover,.l_-4s ._3kj0- ._2itA3 ._71p1F:hover{background-color:#75C422}.l_-4s ._3kj0- ._2itA3 ._1el3P:hover:before,.l_-4s ._3kj0- ._2itA3 ._71p1F:hover:before{background-color:#ffffff}.l_-4s ._3kj0- ._2itA3 ._1el3P:before,.l_-4s ._3kj0- ._2itA3 ._1el3P:after,.l_-4s ._3kj0- ._2itA3 ._71p1F:before,.l_-4s ._3kj0- ._2itA3 ._71p1F:after{position:absolute;top:50%;left:50%;content:''}.l_-4s ._3kj0- ._2itA3 ._1el3P:before,.l_-4s ._3kj0- ._2itA3 ._71p1F:before{width:9px;height:1px;margin-top:-0.5px;margin-left:-4.5px}.l_-4s ._3kj0- ._2itA3 ._1el3P:before{background-color:#979797}.l_-4s ._3kj0- ._2itA3 ._71p1F:before{background-color:#1E2A3E}.l_-4s ._3kj0- ._2itA3 ._71p1F:after{width:1px;height:9px;margin-top:-4.5px;margin-left:-0.5px;background-color:#1E2A3E}.l_-4s ._3kj0- ._2itA3 ._71p1F:hover:after{background-color:#ffffff}.l_-4s ._3kj0- ._2itA3 ._1pk4i{padding-left:8px;padding-right:8px;font-size:13px;line-height:18px;color:var(--text-dark)}._3Y389{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}@media (max-width: 700px){._3Y389{-ms-flex-direction:column;flex-direction:column}}._3Y389._18QCx{margin-left:20px;margin-right:20px;-webkit-box-sizing:border-box;box-sizing:border-box}._3Y389 .HTeU_{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:calc(100% - 136px);height:44px;padding:12px 24px 12px 16px;background-color:#EDEDED}@media (max-width: 700px){._3Y389 .HTeU_{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;width:100%;height:auto;padding:0}}._3Y389 .HTeU_ ._2Y3XR{display:-ms-flexbox;display:flex}@media (max-width: 700px){._3Y389 .HTeU_ ._2Y3XR{-ms-flex-direction:column;flex-direction:column;width:100%;padding-top:12px;padding-bottom:12px;padding-left:16px;border-bottom:1px dotted #D7D7D7}}._3Y389 .HTeU_ ._2Y3XR p{position:relative;margin:0;font-size:13px;line-height:20px;color:var(--text-dark)}._3Y389 .HTeU_ ._2Y3XR p ._38SiU{font-weight:600}._3Y389 .HTeU_ ._2Y3XR p:first-child{margin-right:34px}._3Y389 .HTeU_ ._2Y3XR p:first-child:after{position:absolute;top:-1px;right:-16px;width:1px;height:24px;
1background-color:#D7D7D7;content:''}@media (max-width: 700px){._3Y389 .HTeU_ ._2Y3XR p:first-child:after{display:none}}@media (max-width: 700px){._3Y389 .HTeU_ ._3AeGP{height:58px}}._3Y389 .HTeU_ ._3AeGP ._14ip6{margin:0;font-size:16px;font-weight:700;line-height:20px;color:var(--text-dark)}@media (max-width: 700px){._3Y389 .HTeU_ ._3AeGP ._14ip6{padding-left:16px;line-height:58px}}@media (max-width: 700px){._3Y389>div:last-child{position:absolute;right:8px;bottom:8px}}@media (max-width: 400px){._3Y389>div:last-child{width:auto !important}}._1afIa{display:none !important}.SD2Fo{margin:0 20px;padding:24px 0 30px}.SD2Fo a{font-size:12px;line-height:16px;color:#4D9E0E}.SD2Fo a:first-child{padding-right:6px;border-right:1px solid #C7C7C7}.SD2Fo a:last-child{padding-left:9px}\n",""]),t.locals={subscribe:"_18eLj",description:"TfprF",left_info:"_2nyKq",active:"_122m3",right_info:"_10CXz",more_adaptive:"_3AhqL",arrow:"_2k1Im",full_access:"_1hSLh",price:"_1ytXy",title:"_38SiU",price_month:"D9lNC",full_access_sum:"_1IGrO",toggle:"_3JysP",period_month:"_3TYYB",period_year:"k78Nr",wrapper_btn:"PF__V",info:"_3madT",save:"_3-HS-",dialogBody:"_20LcJ",dialogContent:"_3mbU9",dialog:"_2KU0H",animated:"aILcF",wrapper_pay:"_2qm7m",wrapper_pay_connect:"_2Wf5p",general_pay:"Oe5jl",pay_by_card:"_24FRo",pay_by_invoice:"_13wuE",top:"UM5MP",percent:"_2i7fv",wrapper_recommended:"I72zl",wrapper_radio:"_3QSvK",radio:"_2Gfto",wrapper_form:"l_-4s",wrapper_row:"_3kj0-",change:"_3Hg5S",wrapper_change_users:"_2itA3",remove:"_1el3P",add:"_71p1F",number_users:"_1pk4i",wrapper_total:"_3Y389",wrapper_total_connect:"_18QCx",calculation:"HTeU_",left:"_2Y3XR",right:"_3AeGP",total:"_14ip6",hide:"_1afIa",info_in_pay:"SD2Fo"}},83485:(e,t,s)=>{var i=s(64591),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},88778:(e,t,s)=>{(t=e.exports=s(60278)(!1)).push([e.id,"._34TGH{position:absolute;top:0;left:0;bottom:0;width:8px}._34TGH::before{content:'';position:absolute;top:0;left:0;width:3px;height:100%}._34TGH.P2mAr::before{background:var(--icon-default)}._34TGH._3ehcr::before{background:var(--text-warning-light)}._34TGH._1ipnj::before{background:var(--text-green-light)}._34jnW{width:100%;height:100%}\n",""]),t.locals={lineIndicator:"_34TGH",gray:"P2mAr",orange:"_3ehcr",green:"_1ipnj",sizeFull:"_34jnW"}},92822:(e,t,s)=>{var i=s(13508),a=s(72440);"string"==typeof i&&(i=[[e.id,i,""]]),e.exports=i.locals||{},e.exports._getContent=function(){return i},e.exports._getCss=function(){return i.toString()},e.exports._insertCss=function(e){return a(i,e)}},94684:(e,t,s)=>{"use strict";s.d(t,{A:()=>_,P:()=>v});var i=s(27994),a=s(45635),o=s(63696),l=s(12930),n=s.n(l),r=s(76076),d=(s(71633),s(36578)),p=s(45237),c=s(17511),h=s(83897),m=s(46147),u=s(43616);class v extends o.Component{constructor(){super(...arguments),(0,a.A)(this,"state",{open:!1,anchorEl:null}),(0,a.A)(this,"handleRequestClose",()=>{this.setState({open:!1})}),(0,a.A)(this,"showPopover",e=>{this.props.canPrint&&this.props.handlePrint&&this.setState({open:!0,anchorEl:e.currentTarget})}),(0,a.A)(this,"handlePrint",e=>{this.props.handlePrint(e,this.props.format),this.handleRequestClose()})}render(){let{style:e={},canPrint:t,iconStyle:s={}}=this.props;t||(e={...e,cursor:"initial",pointerEvents:"none",position:"relative",zIndex:"9999"});const a=this.props.iconEl;return(0,i.A)(m.A,{classes:!0,dontBlur:!0},void 0,(0,i.A)(u.A,{onClick:this.showPopover},void 0,(0,i.A)("a",{style:e},void 0,(0,i.A)(a,{color:t?"#285596":"",style:{marginRight:"5px",marginLeft:"5px",...s}}),(0,i.A)(c.Ay,{open:this.state.open,anchorEl:this.state.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},targetOrigin:{horizontal:"left",vertical:"top"},onRequestClose:this.handleRequestClose,className:n().default_popover_style},void 0,(0,i.A)(p.default,{},void 0,(0,i.A)(d.default,{onClick:this.handlePrint.bind(null,!0),primaryText:`${this.props.labelPrefix} with ${this.props.label}`}),(0,i.A)(d.default,{onClick:this.handlePrint.bind(null,!1),primaryText:`${this.props.labelPrefix} without ${this.props.label}`}))))))}}(0,a.A)(v,"defaultProps",{label:"T/C index",iconEl:h.default,labelPrefix:"Print",format:"pdf"});const _=(0,r.A)(n())(v)},97938:(e,t,s)=>
1{(t=e.exports=s(60278)(!1)).push([e.id,"._1PC7Q{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%}@media all and (max-width: 1000px){._1PC7Q>div{margin-top:5px}}._1PC7Q svg{fill:white !important;padding-bottom:3px}@media all and (max-width: 500px){._1PC7Q svg{width:20px !important}}._1PC7Q span{text-transform:capitalize !important}@media all and (max-width: 500px){._1PC7Q button>div>div>span span,._1PC7Q a>div>div>span span{font-size:11px}}._3oC6j{position:relative;width:78px;margin-right:24px}._3oC6j:after{position:absolute;top:-4px;right:-11px;width:1px;height:25px;background:var(--stroke-light-gray2);content:''}._3oC6j ._34C_U{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding-left:12px;font-size:12px;font-weight:500;line-height:14px;cursor:pointer;color:var(--text-dark)}._3oC6j ._34C_U ._22YnV{display:inline-block;width:5px;height:5px;margin-left:5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(0,0,0,0.4)}._3oC6j ._34C_U ._22YnV.KICyp{border-top:none;border-bottom:5px solid rgba(0,0,0,0.4)}._3oC6j ._3sRiQ{position:absolute;top:18px;left:-2px;z-index:10;width:78px;margin:0;padding:4px 0;background:#FFFFFF;-webkit-box-shadow:2px 2px 17px rgba(0,0,0,0.13);box-shadow:2px 2px 17px rgba(0,0,0,0.13);border-radius:4px}._3oC6j ._3sRiQ li{list-style-type:none;padding-left:12px;font-size:13px;font-weight:500;line-height:24px;cursor:pointer;color:var(--text-medium)}._3oC6j ._3sRiQ li:hover{background-color:var(--bg-light-grey)}._3oC6j ._3sRiQ li.KICyp{color:var(--text-green-dark)}._1kXZV{position:relative;margin-right:24px;font-family:\"Roboto\", sans-serif;font-size:12px;line-height:14px;color:var(--text-medium)}._1kXZV:after{position:absolute;top:-2px;right:-11px;width:1px;height:25px;background:var(--stroke-light-gray2);content:''}._1kXZV ._8ea0O{display:inline-block;width:20px;height:20px;margin-left:6px;background-color:#fff;border:1px solid var(--stroke-light-gray2);border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Arial;font-size:11px;line-height:18px;text-align:center;cursor:pointer;color:var(--icon-default)}span._341Iz{position:relative;text-transform:none !important;font-size:12px;color:#999999}@media all and (max-width: 1000px){span._341Iz{display:none}}span._341Iz a{text-decoration:underline !important;color:#999999}\n",""]),t.locals={headerRight:"_1PC7Q",wrapper_currency:"_3oC6j",selected:"_34C_U",arrow:"_22YnV",active:"KICyp",list_currency:"_3sRiQ",wrapper_tutorial:"_1kXZV",icon_tutorial:"_8ea0O",please_send:"_341Iz"}}}]); 2//# sourceMappingURL=2786.3682a738bc1342fe6b6a.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.