@idmui/extend 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Dt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios"],t):(Dt=typeof globalThis<"u"?globalThis:Dt||self,t(Dt["idmui-extend"]={},Dt.Vue,Dt["@wangeditor/editor-for-vue"],Dt["@idmui/basic"],Dt.moment,Dt.echarts,Dt["@idm-plugin/geo"],Dt.axios))})(this,function(Dt,t,kn,yl,K,zr,R,Un){"use strict";function jr(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const N=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,N.get?N:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const Sn=jr(zr),pj="",Pa=(o,e)=>{const a=o.__vccOpts||o;for(const[N,d]of e)a[N]=d;return a},Sr={name:"IdmEditor",components:{Editor:kn.Editor,Toolbar:kn.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function kr(o,e,a,N,d,i){const g=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Ur,[t.withDirectives(t.createVNode(g,{editor:d.editor,"default-config":d.toolbarConfig,mode:d.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!a.disabled]]),t.createVNode(r,{modelValue:d.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>d.valueHtml=c),"default-config":d.editorConfig,mode:d.mode,class:"editor",style:t.normalizeStyle({height:a.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const Tl=Pa(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),br={install(o){o.component("IdmEditor",Tl)}},zj="";/*! Element Plus Icons Vue v2.3.2 */var Or=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Cr=Or,hr=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Yr=hr;const jj="",fr={name:"PlanReport",components:{Editor:Tl,IdmBrand:yl.IdmBrand,IdmLoading:yl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,N){let d=0;return a&&e&&(d=R.LngLatHelper.guessTimeZoneOffset(e,a)),`${K(o).utcOffset(N??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,N,d,i,g;if(e===0)return"-";{const r=K((d=(N=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:N.speed)==null?void 0:d.eta).diff(K((g=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:g.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var a,N,d,i,g,r,c;if(e===0)return"-";{const T=Number((i=(d=(N=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:N.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((c=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const a=Number("1".padEnd(e+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const a=[];for(let N=0;N<(e==null?void 0:e.length);N++){const d=e[N],i=e[N-1];i&&(d.avgBearing=i.bearing),a.push(d),d.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:d.etd,eta:d.etd,isResume:!0,memo:`Stoppage: ${d.suspend}hrs`})}return a}},computeDegree(){return function(o,e,a){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let d=(16-N)*22.5;a||(d=d+180);let i="";return o==="wind"?i="var(--orm-wind)":o==="wave"?i="var(--orm-wave)":o==="swell"?i="var(--orm-swell)":o==="current"&&(i="var(--orm-current)"),`transform:rotate(${d}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(o,e=0){var i,g,r,c;const a=(c=(r=(g=(i=o==null?void 0:o.speeds)==null?void 0:i[e])==null?void 0:g.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(K(d==null?void 0:d.eta).diff(K(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,N;let e=0;return(N=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||N.forEach(d=>{e+=d.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":R.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>R.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>R.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,N,d,i,g,r,c,T,l,y,j,k,A,V,z,E,x,p;let e="";return(N=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&N.wind&&((i=(d=o.meteo)==null?void 0:d.wind)==null?void 0:i.scale)>=((r=(g=this.weatherPrinciple)==null?void 0:g.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((y=(l=o.meteo)==null?void 0:l.wind)==null?void 0:y.scale)>((k=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:k.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((E=(z=o.meteo)==null?void 0:z.wind)==null?void 0:E.scale)===((p=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:p.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,N,d,i,g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C;let e="";return(N=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&N.sigWv&&((g=(i=(d=o.meteo)==null?void 0:d.wave)==null?void 0:i.sig)==null?void 0:g.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(l=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&l.sigWv&&((k=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:k.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(E=(z=this.weatherPrinciple)==null?void 0:z.heavy)!=null&&E.sigWv&&((S=(p=(x=o.meteo)==null?void 0:x.wave)==null?void 0:p.sig)==null?void 0:S.height)>=((C=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:C.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Sn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,x,p,S,D,C,h;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(C=(D=(S=(p=(x=(E=this.plan)==null?void 0:E.speeds)==null?void 0:x[this.speedIndex])==null?void 0:p.speed)==null?void 0:S.sample)==null?void 0:D.hours)==null||C.forEach(U=>{var f,Q,B,G,P,W,L,_,Y,J;const b=U.meteo;if(b){const X=K(b.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),N=Math.ceil(((Q=(f=b.wave)==null?void 0:f.sig)==null?void 0:Q.height)>N?(G=(B=b.wave)==null?void 0:B.sig)==null?void 0:G.height:N),e.push([X,(P=b.wind)==null?void 0:P.kts,(L=(W=b.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=b.wind)==null?void 0:_.direction,(Y=b.wind)==null?void 0:Y.degree,(J=b.wind)==null?void 0:J.scale,U.cFactor,U.wFactor,U.speed])}});const d=Math.max(...e.map(U=>U[a.speed])),i=Math.max(...e.map(U=>U[a.windSpeed])),g=Math.min(...e.map(U=>U[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(U=>U[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(U=>U[a.currentFactor]))/.5)*.5,c=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,l=Math.ceil(N/5/.5)*.5,y=Math.ceil((r-g)/5/.5)*.5,j=5*c,k=5*T,A=5*l,V=g+5*y,z={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:k,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval:l,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:V,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(h=this.echart)==null||h.setOption(z)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Br={class:"col"},Fr={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={key:0},Zr={class:"label-block"},Hr={class:"text"},_r={class:"col"},Jr={class:"label-block"},Xr={key:0},ur={key:1},Kr={style:{"margin-left":"16px"}},qr={class:"label-block"},$r={key:0},vr={key:1},ts={style:{"margin-left":"16px"}},es={class:"label-block"},as={class:"text"},ls={class:"section chart-section"},os={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},is={style:{"margin-right":"8px"}},ns=["src"],ds={class:"legends text-tips"},rs={class:"legend"},ss={key:0,class:"legend"},cs={key:1,class:"legend"},Ns={key:1,class:"empty"},Ms={class:"section comparison-section"},ms={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ds={key:0},gs=["rowspan"],Is={key:0},Es={key:1},ys={rowspan:"2"},As={rowspan:"2"},Ts={key:0},Vs={key:1},xs={rowspan:"1"},ps={key:0},zs={rowspan:"2"},js={rowspan:"2"},Ss={rowspan:"2"},Us={key:0},ks={key:0},bs=["rowspan"],Os={key:0},Cs={rowspan:"1"},hs={key:0},Ys={key:0},fs={key:1},Qs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},ws={key:0},Rs={class:"section waypoint-section"},Bs={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fs={class:"bg-block"},Gs={class:"block-title"},Ps={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ws=["onClick"],Ls={class:"advisory bg-blue-light-2"},Zs=["innerHTML"],Hs={class:"major-waypoint"},_s={class:"major-header bg-blue-light-2"},Js={key:0,class:"cell-item flex"},Xs={key:1,class:"cell-item flex"},us={class:"major-body"},Ks={class:"cell-item flex",style:{flex:"2.5"}},qs={key:0,class:"flex-center"},$s={key:1,class:"flex-center"},vs={key:0,style:{"margin-left":"3px"}},tc={class:"cell-item flex",style:{flex:"1.5"}},ec={key:0,style:{"margin-left":"4px","font-weight":"600"}},ac={key:0,class:"cell-item flex offset"},lc={key:1,class:"cell-item flex nbsp"},oc={key:2,class:"cell-item flex offset"},ic={key:3,class:"cell-item flex nbsp"},nc={key:0,class:"cell-item flex offset"},dc={key:1,class:"cell-item flex nbsp"},rc={key:0,class:"cell-item flex offset"},sc={key:1,class:"cell-item flex nbsp"},cc={key:6,class:"cell-item flex offset"},Nc={key:7,class:"cell-item flex nbsp"},Mc={class:"section forecast-section"},mc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Dc={class:"bg-block"},gc={class:"block-title"},Ic={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ec=["onClick"],yc={class:"echart-block",style:{"page-break-inside":"avoid"}},Ac={ref:"echart",class:"echart"},Tc={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Vc={style:{"page-break-inside":"avoid"}},xc={class:"orm-report-table",style:{"font-size":"12px"}},pc=["colspan"],zc={key:0},jc={class:"flex-center"},Sc={class:"degree-box"},Uc={key:0},kc={key:2},bc={key:0},Oc={class:"degree-box"},Cc={key:0},hc={key:2},Yc={class:"degree-box"},fc={key:0},Qc={key:2},wc={class:"degree-box"},Rc={key:0},Bc={key:2};function Fc(o,e,a,N,d,i){var l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt,ht,Yt,ft,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,ut,Kt,qt,$t,F,ee,oe,ie,ne,de,re,se,ce,Ne,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,be,Oe,Ce,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,$a,va;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(l=a.plan)==null?void 0:l.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Br,[t.createElementVNode("div",Fr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((k=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:k.name),1)]),t.createElementVNode("div",Pr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Wr,[t.createTextVNode(t.toDisplayString((z=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:z.name)+" ",1),(S=(p=(x=(E=a.plan)==null?void 0:E.voyage)==null?void 0:x.vessel)==null?void 0:p.vesselType)!=null&&S.name?(t.openBlock(),t.createElementBlock("span",Lr,"("+t.toDisplayString((U=(h=(C=(D=a.plan)==null?void 0:D.voyage)==null?void 0:C.vessel)==null?void 0:h.vesselType)==null?void 0:U.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Zr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hr,t.toDisplayString(((f=(b=a.plan)==null?void 0:b.voyage)==null?void 0:f.voyNum)||((B=(Q=a.plan)==null?void 0:Q.voyage)==null?void 0:B.number)),1)])]),t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(W=(P=(G=a.plan)==null?void 0:G.leg)==null?void 0:P.departure)!=null&&W.name?(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString((Y=(_=(L=a.plan)==null?void 0:L.leg)==null?void 0:_.departure)==null?void 0:Y.name),1)):(t.openBlock(),t.createElementBlock("span",ur,t.toDisplayString(i.computePosition((X=(J=a.plan)==null?void 0:J.leg)==null?void 0:X.departure)),1)),t.createElementVNode("span",Kr,t.toDisplayString(i.computeUTCTime(((v=($=(q=a.plan)==null?void 0:q.leg)==null?void 0:$.departure)==null?void 0:v.atd)||((at=(et=(tt=a.plan)==null?void 0:tt.leg)==null?void 0:et.departure)==null?void 0:at.etd)||((nt=(it=(ot=(lt=a.plan)==null?void 0:lt.speeds)==null?void 0:ot[d.speedIndex])==null?void 0:it.speed)==null?void 0:nt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",qr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(It=(gt=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:gt.destination)!=null&&It.name?(t.openBlock(),t.createElementBlock("span",$r,t.toDisplayString((At=(yt=(Et=a.plan)==null?void 0:Et.leg)==null?void 0:yt.destination)==null?void 0:At.name),1)):(t.openBlock(),t.createElementBlock("span",vr,t.toDisplayString(i.computePosition((Ct=(O=a.plan)==null?void 0:O.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",ts,t.toDisplayString(i.computeUTCTime(((pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[d.speedIndex])==null?void 0:xt.speed)==null?void 0:pt.ata)||((Ut=(St=(jt=(zt=a.plan)==null?void 0:zt.speeds)==null?void 0:jt[d.speedIndex])==null?void 0:St.speed)==null?void 0:Ut.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",es,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",as,t.toDisplayString((bt=(kt=a.plan)==null?void 0:kt.voyage)==null?void 0:bt.loadCondition),1)])])]),t.createElementVNode("div",ls,[t.createElementVNode("div",os,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",is," FCST fr Pos. "+t.toDisplayString(i.computeUTCTime((Bt=(Rt=(wt=(Qt=(ft=(Yt=(ht=a.plan)==null?void 0:ht.speeds)==null?void 0:Yt[d.speedIndex])==null?void 0:ft.speed)==null?void 0:Qt.sample)==null?void 0:wt.hours)==null?void 0:Rt[0])==null?void 0:Bt.eta)),1)]),(Ft=a.plan)!=null&&Ft.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ns)]),t.createElementVNode("div",ds,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-5923c3c5><span class="dangerous" data-v-5923c3c5></span><span data-v-5923c3c5>Danger</span></div><div class="legend" data-v-5923c3c5><span class="severe" data-v-5923c3c5></span><span data-v-5923c3c5>Severe</span></div><div class="legend" data-v-5923c3c5><span class="heavy" data-v-5923c3c5></span><span data-v-5923c3c5>Heavy</span></div>',3)),t.createElementVNode("div",rs,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((Zt=(Lt=(Wt=(Pt=(Gt=a.plan)==null?void 0:Gt.speeds)==null?void 0:Pt[0])==null?void 0:Wt.speed)==null?void 0:Lt.lane)==null?void 0:Zt.name),1)]),((_t=(Ht=a.plan)==null?void 0:Ht.speeds)==null?void 0:_t.length)>1?(t.openBlock(),t.createElementBlock("div",ss,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Jt=(Ot=(w=(H=(n=a.plan)==null?void 0:n.speeds)==null?void 0:H[1])==null?void 0:w.speed)==null?void 0:Ot.lane)==null?void 0:Jt.name),1)])):t.createCommentVNode("",!0),((ut=(Xt=a.plan)==null?void 0:Xt.speeds)==null?void 0:ut.length)>2?(t.openBlock(),t.createElementBlock("div",cs,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((ee=(F=($t=(qt=(Kt=a.plan)==null?void 0:Kt.speeds)==null?void 0:qt[2])==null?void 0:$t.speed)==null?void 0:F.lane)==null?void 0:ee.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Ns,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Ms,[(ie=(oe=a.plan)==null?void 0:oe.speeds)!=null&&ie.length?(t.openBlock(),t.createElementBlock("table",ms,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gs),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",Is,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Es,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ne=a.plan)==null?void 0:ne.speeds,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml,Dl,gl,Il,El;return t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createElementVNode("tr",null,[t.createElementVNode("td",ys,t.toDisplayString(u+1),1),t.createElementVNode("td",As,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Ts,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((ue=m.speed)==null?void 0:ue.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vs,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(Ke=m.speed)==null?void 0:Ke.extend)==null?void 0:qe.cps[0])==null?void 0:$e.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((ea=(ta=(ve=m.speed)==null?void 0:ve.extend)==null?void 0:ta.cps[1])==null?void 0:ea.speed),1)]))]),t.createElementVNode("td",xs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",ps," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(Na=(ca=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:ca.destination)==null?void 0:Na.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",zs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",js,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",Ss,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Us," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",ks,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,u)),9,bs),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ba=(ka=a.weatherPrinciple)==null?void 0:ka.severe)==null?void 0:ba.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ca=(Oa=a.weatherPrinciple)==null?void 0:Oa.heavy)==null?void 0:Ca.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((ha=m.speed)==null?void 0:ha.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Os,"FO: "+t.toDisplayString((fa=(Ya=m.speed)==null?void 0:Ya.cpCopy)==null?void 0:fa.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Ba=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Ba.cps[0].fo)+" / "+t.toDisplayString((Ga=(Fa=m.speed)==null?void 0:Fa.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((el=(tl=m.speed)==null?void 0:tl.extend)==null?void 0:el.cps[0].dgo)+" / "+t.toDisplayString((ll=(al=m.speed)==null?void 0:al.extend)==null?void 0:ll.cps[1].dgo),1)],64))]),t.createElementVNode("td",Cs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((ol=m.speed)==null?void 0:ol.totalHrs,1)),1),(nl=(il=m.speed)==null?void 0:il.extend)!=null&&nl.hoursInECA?(t.openBlock(),t.createElementBlock("span",hs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((dl=m.speed)==null?void 0:dl.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((rl=m.speed)==null?void 0:rl.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((sl=m.speed)==null?void 0:sl.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Ys,t.toDisplayString(i.roundPrecision(((Nl=(cl=m==null?void 0:m.speed)==null?void 0:cl.cost)==null?void 0:Nl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((Dl=(Ml=m==null?void 0:m.speed)==null?void 0:Ml.cost)==null?void 0:Dl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",fs,t.toDisplayString(i.computeCostDiff(a.plan,u)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((gl=m.speed)==null?void 0:gl.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Il=m.speed)==null?void 0:Il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((El=m.speed)==null?void 0:El.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",ws,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((se=i.roundPrecision((re=(de=a.plan)==null?void 0:de.voyage)==null?void 0:re.dailyHire,0))==null?void 0:se.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((Me=i.roundPrecision((Ne=(ce=a.plan)==null?void 0:ce.voyage)==null?void 0:Ne.priceFO,0))==null?void 0:Me.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ge=i.roundPrecision((De=(me=a.plan)==null?void 0:me.voyage)==null?void 0:De.priceDGO,0))==null?void 0:ge.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Rs,[t.createElementVNode("div",Bs,[t.createElementVNode("div",Fs,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gs,"Advisory & Major Waypoint of Route "+t.toDisplayString((Ae=(ye=(Ee=(Ie=a.plan.speeds)==null?void 0:Ie[d.speedIndex])==null?void 0:Ee.speed)==null?void 0:ye.lane)==null?void 0:Ae.name),1)]),((ze=(Te=a.plan)==null?void 0:Te.speeds)==null?void 0:ze.length)>1?(t.openBlock(),t.createElementBlock("div",Ps,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((je=a.plan)==null?void 0:je.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ws)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ls,[d.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Zs))]),t.createElementVNode("div",Hs,[t.createElementVNode("div",_s,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-5923c3c5>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-5923c3c5>Time</div><div class="cell-item flex" data-v-5923c3c5>Nav</div><div class="cell-item flex" data-v-5923c3c5>Dist <span class="text-units" data-v-5923c3c5>(nm)</span></div>',4)),(Ue=(Se=a.plan)==null?void 0:Se.voyage)!=null&&Ue.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Js,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(be=(ke=a.plan)==null?void 0:ke.voyage)!=null&&be.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xs,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",us,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((Qe=(fe=(Ye=(he=a.plan)==null?void 0:he.speeds)==null?void 0:Ye[d.speedIndex])==null?void 0:fe.speed)==null?void 0:Qe.argv,(Ge=(Fe=(Be=(Re=(we=a.plan)==null?void 0:we.speeds)==null?void 0:Re[d.speedIndex])==null?void 0:Be.speed)==null?void 0:Fe.sample)==null?void 0:Ge.wps),(m,u)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:u,class:"cell-row"},[t.createElementVNode("div",Ks,[m.isResume?(t.openBlock(),t.createElementBlock("div",qs,"Resume")):(t.openBlock(),t.createElementBlock("div",$s,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vs,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tc,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",ec,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),u?(t.openBlock(),t.createElementBlock("div",ac,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",lc)),u?(t.openBlock(),t.createElementBlock("div",oc,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ic)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[u?(t.openBlock(),t.createElementBlock("div",nc,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",dc))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[u?(t.openBlock(),t.createElementBlock("div",rc,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",sc))],64)):t.createCommentVNode("",!0),u?(t.openBlock(),t.createElementBlock("div",cc,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",Nc))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",Mc,[(Pe=(I=a.plan)==null?void 0:I.speeds)!=null&&Pe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",mc,[t.createElementVNode("div",Dc,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",gc," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((_e=(He=(Ze=(Le=(We=a.plan)==null?void 0:We.speeds)==null?void 0:Le[d.speedIndex])==null?void 0:Ze.speed)==null?void 0:He.lane)==null?void 0:_e.name),1)]),((Xe=(Je=a.plan)==null?void 0:Je.speeds)==null?void 0:Xe.length)>1?(t.openBlock(),t.createElementBlock("div",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=a.plan)==null?void 0:ae.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ec)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,null,512)]),t.createElementVNode("div",Tc,"* "+t.toDisplayString(i.computeModel((Za=(La=(Wa=a.plan)==null?void 0:Wa.speeds)==null?void 0:La[d.speedIndex])==null?void 0:Za.speed)),1),e[58]||(e[58]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1))]),t.createElementVNode("div",Vc,[t.createElementVNode("table",xc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(_a=(Ha=a.plan)==null?void 0:Ha.voyage)!=null&&_a.sendRptWithBF?3:2},"Wind",8,pc),e[61]||(e[61]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[64]||(e[64]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[65]||(e[65]=t.createElementVNode("th",null,"Dir",-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Xa=(Ja=a.plan)==null?void 0:Ja.voyage)!=null&&Xa.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",zc,"BF")):t.createCommentVNode("",!0),e[67]||(e[67]=t.createElementVNode("th",null,"Dir",-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[70]||(e[70]=t.createElementVNode("th",null,"Dir",-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[73]||(e[73]=t.createElementVNode("th",null,"Dir",-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[75]||(e[75]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=($a=(qa=(Ka=(ua=a.plan)==null?void 0:ua.speeds)==null?void 0:Ka[d.speedIndex])==null?void 0:qa.speed)==null?void 0:$a.sample)==null?void 0:va.hours,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml;return t.openBlock(),t.createElementBlock("tr",{key:u},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",jc,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",Sc,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",Uc,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(Ke=(ue=m.meteo)==null?void 0:ue.wind)!=null&&Ke.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",($e=(qe=m.meteo)==null?void 0:qe.wind)==null?void 0:$e.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",kc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bc,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",Oc,[(ca=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&ca.height?(t.openBlock(),t.createElementBlock("span",Cc,t.toDisplayString((ma=(Ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:Ma.swell)==null?void 0:ma.direction),1)):t.createCommentVNode("",!0),(Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)!=null&&Ia.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",hc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",Yc,[(ka=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",fc,t.toDisplayString((Ca=(Oa=(ba=m.meteo)==null?void 0:ba.wave)==null?void 0:Oa.sig)==null?void 0:Ca.direction),1)):t.createCommentVNode("",!0),(fa=(Ya=(ha=m.meteo)==null?void 0:ha.wave)==null?void 0:Ya.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",Qc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Fa=(Ba=m.meteo)==null?void 0:Ba.wave)==null?void 0:Fa.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((al=(el=(tl=m.meteo)==null?void 0:tl.wave)==null?void 0:el.sig)==null?void 0:al.period,1)),1),t.createElementVNode("td",wc,[(ol=(ll=m.meteo)==null?void 0:ll.current)!=null&&ol.kts?(t.openBlock(),t.createElementBlock("span",Rc,t.toDisplayString((nl=(il=m.meteo)==null?void 0:il.current)==null?void 0:nl.direction),1)):t.createCommentVNode("",!0),(rl=(dl=m.meteo)==null?void 0:dl.current)!=null&&rl.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(cl=(sl=m.meteo)==null?void 0:sl.current)==null?void 0:cl.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",Bc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Ml=(Nl=m.meteo)==null?void 0:Nl.current)==null?void 0:Ml.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const bn=Pa(fr,[["render",Fc],["__scopeId","data-v-5923c3c5"]]),Gc={install(o){o.component("PlanReport",bn)}},Sj="",Pc={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${K(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${K(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},Wc={class:"cover-box"},Lc={class:"cover-content"},Zc={class:"cover-title"},Hc={class:"cover-info"},_c={class:"info-item"},Jc={class:"info-item"},Xc={class:"info-item"},uc={style:{"font-weight":"600"}},Kc={class:"info-item"},qc={style:{"font-weight":"600"}},$c={class:"info-item"},vc={key:0},tN={key:1},eN={class:"info-item"},aN={class:"info-item"},lN={key:0},oN={key:1},iN={class:"info-item"},nN={class:"info-item"},dN={class:"text"};function rN(o,e,a,N,d,i){var g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b;return t.openBlock(),t.createElementBlock("div",Wc,[t.createElementVNode("div",Lc,[t.createElementVNode("div",Zc,t.toDisplayString(a.name),1),t.createElementVNode("div",Hc,[t.createElementVNode("div",_c,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(g=a.report)==null?void 0:g.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",Jc,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeLocalTime(a.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",Xc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",uc,t.toDisplayString((T=(c=a.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",Kc,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",qc,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",$c,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(y=(l=a.report)==null?void 0:l.departure)!=null&&y.name?(t.openBlock(),t.createElementBlock("span",vc,t.toDisplayString((k=(j=a.report)==null?void 0:j.departure)==null?void 0:k.portName),1)):(t.openBlock(),t.createElementBlock("span",tN,t.toDisplayString(i.computePosition((A=a.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",eN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((z=(V=a.report)==null?void 0:V.departure)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",aN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(E=a.report)==null?void 0:E.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",lN,t.toDisplayString((S=(p=a.report)==null?void 0:p.arrival)==null?void 0:S.portName),1)):(t.openBlock(),t.createElementBlock("span",oN,t.toDisplayString(i.computePosition((D=a.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",iN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((h=(C=a.report)==null?void 0:C.arrival)==null?void 0:h.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",dN,t.toDisplayString((b=(U=a.report)==null?void 0:U.voyage)==null?void 0:b.loadCondition),1)])])])])}const sN=Pa(Pc,[["render",rN],["__scopeId","data-v-89d46487"]]),Uj="",cN={name:"OrmVoyageSummary",components:{Editor:Tl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return K(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=K(o).diff(K(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let a="";o!=null&&o.waveSwitch?a+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?a+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,e,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,a){if(o.consPercentage){if(e==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((a,N)=>{var g,r;a.excluded.detail.forEach(c=>{const T={time:K(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+K(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(T)});const i=(r=(g=a==null?void 0:a.inventory)==null?void 0:g.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},NN={class:"report-summary"},MN={class:"section weather-section"},mN={class:"definition bg-blue-light-2"},DN={style:{"line-height":"1.5"}},gN={class:"section summary-section"},IN={class:"phase-box"},EN={class:"phase-index"},yN={class:"phase-position"},AN={key:0},TN={key:1},VN={class:"phase-position"},xN={key:0},pN={key:1},zN={class:"phase-cp"},jN={class:"orm-report-table"},SN={class:"phase-conclusion"},UN={class:"item-conclusion bg-blue-light-2"},kN={class:"value align-left"},bN={key:0,class:"text-secondary align-right"},ON={key:0},CN={key:1},hN={key:2},YN={key:1,class:"text-secondary"},fN={key:2,class:"value"},QN={key:0},wN={class:"gain"},RN={key:1},BN={class:"lost"},FN={key:2},GN={class:"item-conclusion bg-blue-light-2"},PN={class:"value align-left"},WN={key:0,class:"text-secondary"},LN={key:0},ZN={key:1},HN={key:2},_N={key:1,class:"text-secondary"},JN={key:2,class:"value"},XN={key:0},uN={class:"gain"},KN={key:1},qN={class:"lost"},$N={key:2},vN={class:"item-conclusion bg-blue-light-2"},tM={class:"value align-left"},eM={key:0,class:"text-secondary"},aM={key:0},lM={key:1},oM={key:2},iM={key:1,class:"text-secondary"},nM={key:2,class:"value"},dM={key:0},rM={class:"gain"},sM={key:1},cM={class:"lost"},NM={key:2},MM={key:0,class:"exclusion-block"},mM={style:{margin:"8px 0"}},DM={class:"orm-report-table"},gM=["innerHTML"],IM={class:"section segment-section"},EM={class:"segment-summary"},yM={class:"segment-index text-left"},AM={class:"segment-position"},TM={key:0},VM={key:1},xM={class:"segment-position"},pM={key:0},zM={key:1},jM={class:"orm-report-table"},SM={class:"good-wx"},UM={class:"good-wx"},kM={class:"good-wx"},bM={class:"good-wx"},OM={class:"good-wx"},CM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},fM={class:"good-wx"},QM={class:"good-wx"},wM={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={class:"good-wx"},GM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},PM={key:0},WM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},LM={key:2,class:"segment-speed"},ZM={class:"row"},HM={class:"speed-right row"},_M={class:"speed"},JM={key:1,class:"speed"},XM={key:0,class:"speed"},uM={class:"speed"},KM={class:"speed"},qM={class:"speed"},$M={key:2,class:"under"},vM={key:3,class:"over"},tm={class:"row"},em={class:"speed-right formula flex-space"},am={key:0},lm={key:3,class:"segment-speed"},om={class:"row"},im={class:"speed-right row"},nm={class:"speed"},dm={class:"speed"},rm={key:2,class:"under"},sm={key:3,class:"over"},cm={class:"row"},Nm={class:"speed-right formula row"},Mm={class:"segment-formula"},mm={class:"sub-title"},Dm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},gm={class:"formula-block"},Im={class:"formula-item flex-evenly bg-blue-light"},Em={class:"formula-right flex-evenly"},ym={class:"fraction",style:{width:"240px"}},Am={class:"formula-item flex-center bg-blue-light"},Tm={class:"formula-left flex-space"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},Sm={class:"fraction",style:{width:"240px"}},Um={class:"formula-desc"},km={class:"flex-end"},bm={class:"flex-end"},Om={class:"flex-end"},Cm={key:0,class:"formula-block"},hm={class:"formula-item flex-evenly bg-blue-light"},Ym={class:"formula-right flex-evenly"},fm={class:"fraction",style:{width:"200px"}},Qm={class:"formula-item flex-center bg-blue-light"},wm={class:"formula-left flex-space"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item formula-conclusion bg-blue-light"},Zm={key:0,class:"flex-evenly",style:{width:"500px"}},Hm={key:1,class:"flex-evenly",style:{width:"500px"}},_m={class:"flex-center"},Jm={key:1,class:"formula-conclusion bg-blue-light"},Xm={class:"segment-formula"},um={class:"sub-title"},Km={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},qm={class:"formula-block"},$m={class:"formula-item flex-evenly bg-blue-light"},vm={class:"formula-right flex-evenly"},tD={class:"fraction",style:{width:"240px"}},eD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},aD={key:0,class:"flex-end text-tips"},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-right flex-evenly"},iD={class:"fraction",style:{width:"200px"}},nD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},sD={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},MD={class:"formula-item flex-center bg-blue-light"},mD={class:"formula-right flex-evenly"},DD={class:"fraction",style:{width:"300px"}},gD={class:"sub-title"},ID={key:0,class:"formula-block"},ED={key:0,class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"60px"}},TD={class:"fraction",style:{width:"60px"}},VD={class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"150px"}},zD={class:"fraction",style:{width:"150px"}},jD={key:0},SD={class:"formula-item flex-evenly bg-blue-light"},UD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},OD={class:"formula-item flex-evenly bg-blue-light"},CD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item formula-conclusion bg-blue-light"},QD={class:"flex-evenly",style:{width:"500px"}},wD={key:0,class:"flex-evenly"},RD={class:"fraction"},BD={class:"flex-evenly",style:{width:"700px"}},FD={key:0,class:"flex-evenly",style:{width:"500px"}},GD={class:"fraction",style:{width:"140px"}},PD={key:1,class:"formula-item formula-conclusion bg-blue-light"},WD={class:"header-block"},LD={class:"bg-block"},ZD={class:"block-title"},HD={key:0,class:"formula-block"},_D={class:"formula-item flex-evenly bg-blue-light"},JD={class:"formula-right flex-evenly"},XD={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},KD={key:0},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},vD={class:"fraction",style:{width:"150px"}},tg={class:"fraction",style:{width:"150px"}},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ig={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ng={key:0,class:"flex-evenly",style:{width:"500px"}},dg={key:1,class:"flex-evenly",style:{width:"700px"}},rg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function sg(o,e,a,N,d,i){var r,c,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",NN,[t.createElementVNode("div",MN,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",mN,[t.createElementVNode("div",DN,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",gN,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=a.report)==null?void 0:r.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At;return t.openBlock(),t.createElementBlock("div",{key:"summary"+y,class:"segment-box"},[t.createElementVNode("div",IN,[t.createElementVNode("div",EN,"Seg."+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(O,Ct)=>{var Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",yN,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",AN,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",TN,t.toDisplayString(i.computeLat((xt=O==null?void 0:O.departure)==null?void 0:xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((pt=O==null?void 0:O.departure)==null?void 0:pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((zt=O==null?void 0:O.departure)==null?void 0:zt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",VN,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",xN,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",pN,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((kt=O==null?void 0:O.arrival)==null?void 0:kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((bt=O==null?void 0:O.arrival)==null?void 0:bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",zN,[t.createElementVNode("table",jN,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(k=l==null?void 0:l.extend)==null?void 0:k.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(z=(V=l==null?void 0:l.extend)==null?void 0:V.cp)==null?void 0:z.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(x=(E=l==null?void 0:l.extend)==null?void 0:E.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(p=l==null?void 0:l.extend)==null?void 0:p.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((C=(D=l==null?void 0:l.extend)==null?void 0:D.cp)==null?void 0:C.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",SN,[t.createElementVNode("div",UN,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",kN,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",bN,[((h=l==null?void 0:l.timeConclusion)==null?void 0:h.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",ON,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",CN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",hN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",YN,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",fN,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",QN,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",wN,t.toDisplayString((f=l==null?void 0:l.timeConclusion)==null?void 0:f.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Q=l==null?void 0:l.timeConclusion)==null?void 0:Q.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",RN,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",BN,t.toDisplayString((B=l==null?void 0:l.timeConclusion)==null?void 0:B.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",FN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",GN,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",PN,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",WN,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",LN,"FO Saving")):((L=(W=l==null?void 0:l.fuelConclusion)==null?void 0:W.fo)==null?void 0:L.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",ZN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",HN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",JN,[((Y=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:Y.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",XN,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",uN,t.toDisplayString((X=(J=l==null?void 0:l.fuelConclusion)==null?void 0:J.fo)==null?void 0:X.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(($=(q=l==null?void 0:l.fuelConclusion)==null?void 0:q.fo)==null?void 0:$.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",KN,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",qN,t.toDisplayString((tt=(v=l==null?void 0:l.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$N,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",vN,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",tM,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",eM,[((at=(et=l==null?void 0:l.fuelConclusion)==null?void 0:et.dgo)==null?void 0:at.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",aM,"DO/GO Saving")):((ot=(lt=l==null?void 0:l.fuelConclusion)==null?void 0:lt.dgo)==null?void 0:ot.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",oM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",iM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",nM,[((nt=(it=l==null?void 0:l.fuelConclusion)==null?void 0:it.dgo)==null?void 0:nt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",dM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",rM,t.toDisplayString((gt=(Z=l==null?void 0:l.fuelConclusion)==null?void 0:Z.dgo)==null?void 0:gt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Et=(It=l==null?void 0:l.fuelConclusion)==null?void 0:It.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",sM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",cM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",NM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((c=a.report)==null?void 0:c.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",MM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",mM,[t.createElementVNode("table",DM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,y)=>(t.openBlock(),t.createElementBlock("tr",{key:y},[t.createElementVNode("td",null,t.toDisplayString(y+1),1),t.createElementVNode("td",null,t.toDisplayString(l.time),1),t.createElementVNode("td",null,t.toDisplayString(l.duration),1),t.createElementVNode("td",null,t.toDisplayString(l.distance),1),t.createElementVNode("td",null,t.toDisplayString(l.fo),1),t.createElementVNode("td",null,t.toDisplayString(l.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((T=a.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[d.editable?(t.openBlock(),t.createBlock(g,{key:0,modelValue:d.remarks,"onUpdate:modelValue":e[0]||(e[0]=l=>d.remarks=l),class:"editor",height:"120px",onBlur:e[1]||(e[1]=l=>i.handleCommit(l))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...l)=>i.handleEdit&&i.handleEdit(...l)),innerHTML:d.remarks},null,40,gM))],2)],2),t.createElementVNode("div",IM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt,ht,Yt,ft,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,ut,Kt,qt,$t,F,ee,oe,ie,ne,de,re,se,ce,Ne,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,be,Oe,Ce,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,$a,va,m,u,vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml,Dl,gl,Il,El,Vl,xl,pl,zl,jl,Sl,Ul,kl,bl,Ol,Cl,hl,Yl,fl,Ql,wl,Rl,M,Bl,Fl,Gl,Pl,Wl,Ll,Zl,Hl,ml,ul,Kl,ql,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,co,No,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,So,Uo,ko,bo,Oo,Co,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,uo,Ko,qo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,ci,Ni,Mi,mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,bi,Oi,Ci,hi,Yi,fi,Qi,wi,Ri,Bi,Fi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,ui,s,dt,rt,st,ct,Nt,_l,Jl,Xl,xe,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,cn,Nn,Mn,mn,Dn;return t.openBlock(),t.createElementBlock("div",{key:y,class:"segment-block"},[t.createElementVNode("div",EM,[t.createElementVNode("div",yM,"Voyage Analysis Seg. "+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(Mt,qi)=>{var Al,Ki,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",AM,[(Al=Mt==null?void 0:Mt.departure)!=null&&Al.portName?(t.openBlock(),t.createElementBlock("span",TM,t.toDisplayString((Ki=Mt==null?void 0:Mt.departure)==null?void 0:Ki.portName),1)):(t.openBlock(),t.createElementBlock("span",VM,t.toDisplayString(i.computeLat((gn=Mt==null?void 0:Mt.departure)==null?void 0:gn.lat).pretty)+", "+t.toDisplayString(i.computeLng((In=Mt==null?void 0:Mt.departure)==null?void 0:In.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((En=Mt==null?void 0:Mt.departure)==null?void 0:En.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",xM,[(yn=Mt==null?void 0:Mt.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",pM,t.toDisplayString((An=Mt==null?void 0:Mt.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString(i.computeLat((Tn=Mt==null?void 0:Mt.arrival)==null?void 0:Tn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Vn=Mt==null?void 0:Mt.arrival)==null?void 0:Vn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((xn=Mt==null?void 0:Mt.arrival)==null?void 0:xn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",jM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",SM,t.toDisplayString((A=(k=l==null?void 0:l.goodWx)==null?void 0:k.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",UM,t.toDisplayString((z=(V=l==null?void 0:l.goodWx)==null?void 0:V.inEca)==null?void 0:z.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(E=l==null?void 0:l.allWx)==null?void 0:E.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(p=l==null?void 0:l.allWx)==null?void 0:p.inEca)==null?void 0:S.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",kM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",bM,t.toDisplayString((U=(h=l==null?void 0:l.goodWx)==null?void 0:h.inEca)==null?void 0:U.time),1),t.createElementVNode("td",null,t.toDisplayString((f=(b=l==null?void 0:l.allWx)==null?void 0:b.outEca)==null?void 0:f.time),1),t.createElementVNode("td",null,t.toDisplayString((B=(Q=l==null?void 0:l.allWx)==null?void 0:Q.inEca)==null?void 0:B.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",OM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",CM,t.toDisplayString(((L=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:L.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Y=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:Y.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((X=(J=l==null?void 0:l.allWx)==null?void 0:J.inEca)==null?void 0:X.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((($=(q=l==null?void 0:l.goodWx)==null?void 0:q.outEca)==null?void 0:$.sumFoCons)||"--"),1),t.createElementVNode("td",YM,t.toDisplayString(((tt=(v=l==null?void 0:l.goodWx)==null?void 0:v.inEca)==null?void 0:tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=l==null?void 0:l.allWx)==null?void 0:et.outEca)==null?void 0:at.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ot=(lt=l==null?void 0:l.allWx)==null?void 0:lt.inEca)==null?void 0:ot.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((nt=(it=l==null?void 0:l.goodWx)==null?void 0:it.outEca)==null?void 0:nt.avgFoCons)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((gt=(Z=l==null?void 0:l.goodWx)==null?void 0:Z.inEca)==null?void 0:gt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.inEca)==null?void 0:Vt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((pt=(xt=l==null?void 0:l.allWx)==null?void 0:xt.outEca)==null?void 0:pt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((bt=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.inEca)==null?void 0:bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Yt=(ht=l==null?void 0:l.allWx)==null?void 0:ht.outEca)==null?void 0:Yt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(ft=l==null?void 0:l.allWx)==null?void 0:ft.inEca)==null?void 0:Qt.avgDgoCons)||"--"),1)])])]),(wt=l==null?void 0:l.goodWx)!=null&&wt.distance?(t.openBlock(),t.createElementBlock("table",GM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[y],(Mt,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Mt,(Al,Ki)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ki},[Al.goodWx?(t.openBlock(),t.createElementBlock("tr",PM,[t.createElementVNode("td",null,t.toDisplayString(Al.type)+" "+t.toDisplayString(i.computeUTCTime(Al.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(Al),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(Al.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(Al.utc,i.computePrevTime(Al))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",WM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Bt=l==null?void 0:l.goodWx)!=null&&Bt.distance?(t.openBlock(),t.createElementBlock("div",LM,[t.createElementVNode("div",ZM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HM,[(Gt=(Ft=a.report)==null?void 0:Ft.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((ut=(Xt=a.report)==null?void 0:Xt.weather)!=null&&ut.disableCFactor)?(t.openBlock(),t.createElementBlock("span",XM,t.toDisplayString((Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,t.toDisplayString((ne=l==null?void 0:l.goodWx)==null?void 0:ne.pfmSpd)+" (kts)",1)],64)):(re=(de=a.report)==null?void 0:de.weather)!=null&&re.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((se=l==null?void 0:l.goodWx)==null?void 0:se.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgWf)>0?(Ne=l==null?void 0:l.goodWx)==null?void 0:Ne.avgWf:`(${(Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",KM,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",qM,t.toDisplayString((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Wt=(Pt=a.report)==null?void 0:Pt.weather)!=null&&Wt.favorableCur&&((Lt=l==null?void 0:l.goodWx)==null?void 0:Lt.avgCf)>0?(t.openBlock(),t.createElementBlock("span",JM,t.toDisplayString((w=l==null?void 0:l.goodWx)==null?void 0:w.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_M,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)],64))],64)),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",$M,"(Under-performance)")):t.createCommentVNode("",!0),((be=l==null?void 0:l.goodWx)==null?void 0:be.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",tm,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",em,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Be=(Re=a.report)==null?void 0:Re.weather)!=null&&Be.disableCFactor)?(t.openBlock(),t.createElementBlock("label",am,"GW Average Speed")):(Ge=(Fe=a.report)==null?void 0:Fe.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Ye=(he=a.report)==null?void 0:he.weather)!=null&&Ye.favorableCur&&((fe=l==null?void 0:l.goodWx)==null?void 0:fe.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",lm,[t.createElementVNode("div",om,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",im,[(_e=(He=a.report)==null?void 0:He.weather)!=null&&_e.favorableCur&&((Je=l==null?void 0:l.allWx)==null?void 0:Je.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Xa=l==null?void 0:l.allWx)==null?void 0:Xa.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=l==null?void 0:l.allWx)==null?void 0:ua.avgWf)>0?(Ka=l==null?void 0:l.allWx)==null?void 0:Ka.avgWf:`(${(qa=l==null?void 0:l.allWx)==null?void 0:qa.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",dm,t.toDisplayString(($a=l==null?void 0:l.allWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=l==null?void 0:l.allWx)==null?void 0:Xe.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ae=l==null?void 0:l.allWx)==null?void 0:ae.avgCf)>0?(Wa=l==null?void 0:l.allWx)==null?void 0:Wa.avgCf:`(${(La=l==null?void 0:l.allWx)==null?void 0:La.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=l==null?void 0:l.allWx)==null?void 0:Za.avgWf)>0?(Ha=l==null?void 0:l.allWx)==null?void 0:Ha.avgWf:`(${(_a=l==null?void 0:l.allWx)==null?void 0:_a.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nm,t.toDisplayString((Ja=l==null?void 0:l.allWx)==null?void 0:Ja.pfmSpd)+" (kts)",1)],64)),((va=l==null?void 0:l.allWx)==null?void 0:va.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",rm,"(Under-performance)")):t.createCommentVNode("",!0),((m=l==null?void 0:l.allWx)==null?void 0:m.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",sm,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",cm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[(vt=(u=a.report)==null?void 0:u.weather)!=null&&vt.favorableCur&&((te=l==null?void 0:l.allWx)==null?void 0:te.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),(Ve=(le=a.report)==null?void 0:le.weather)!=null&&Ve.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Dm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",gm,[t.createElementVNode("div",Im,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",null,t.toDisplayString((Ke=(ue=a.report)==null?void 0:ue.weather)!=null&&Ke.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($e=(qe=l==null?void 0:l.extend)==null?void 0:qe.cp)==null?void 0:$e.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((ta=(ve=a.report)==null?void 0:ve.weather)!=null&&ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(aa=(ea=l==null?void 0:l.extend)==null?void 0:ea.cp)==null?void 0:aa.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(oa=(la=l==null?void 0:l.extend)==null?void 0:la.cp)==null?void 0:oa.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",Sm,[t.createElementVNode("div",null,t.toDisplayString((na=(ia=a.report)==null?void 0:ia.weather)!=null&&na.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ra=(da=l==null?void 0:l.extend)==null?void 0:da.cp)==null?void 0:ra.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-b771f190><div class="flex-space" style="width:300px;font-weight:400;" data-v-b771f190><label data-v-b771f190>Time Lost</label><div data-v-b771f190>=</div><div data-v-b771f190>(a)</div><div data-v-b771f190>-</div><div data-v-b771f190>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-b771f190><label data-v-b771f190>Time Gained</label><div data-v-b771f190>=</div><div data-v-b771f190>(c)</div><div data-v-b771f190>-</div><div data-v-b771f190>(a)</div></div></div>',1))]),t.createElementVNode("div",Um,[t.createElementVNode("div",km,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ca=(sa=l==null?void 0:l.extend)==null?void 0:sa.cp)==null?void 0:ca.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",bm,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ma=(Na=l==null?void 0:l.extend)==null?void 0:Na.cp)==null?void 0:Ma.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Om,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Da=(ma=l==null?void 0:l.extend)==null?void 0:ma.cp)==null?void 0:Da.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ia=(ga=l==null?void 0:l.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+" kts) ",1)])]),(Ea=l==null?void 0:l.goodWx)!=null&&Ea.distance?(t.openBlock(),t.createElementBlock("div",Cm,[t.createElementVNode("div",hm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Ym,[t.createElementVNode("div",fm,[t.createElementVNode("div",null,t.toDisplayString((Aa=(ya=a.report)==null?void 0:ya.weather)!=null&&Aa.noExtrapolation?(Ta=l==null?void 0:l.goodWx)==null?void 0:Ta.distance:(Va=l==null?void 0:l.allWx)==null?void 0:Va.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((xa=l==null?void 0:l.goodWx)==null?void 0:xa.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((pa=l==null?void 0:l.timeConclusion)==null?void 0:pa.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ja=(za=l==null?void 0:l.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((Ua=(Sa=a.report)==null?void 0:Sa.weather)!=null&&Ua.noExtrapolation?(ka=l==null?void 0:l.goodWx)==null?void 0:ka.distance:(ba=l==null?void 0:l.allWx)==null?void 0:ba.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Oa=l==null?void 0:l.timeConclusion)==null?void 0:Oa.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ca=l==null?void 0:l.timeConclusion)==null?void 0:Ca.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ya=(ha=l==null?void 0:l.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((Qa=(fa=a.report)==null?void 0:fa.weather)!=null&&Qa.noExtrapolation?(wa=l==null?void 0:l.goodWx)==null?void 0:wa.distance:(Ra=l==null?void 0:l.allWx)==null?void 0:Ra.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ba=l==null?void 0:l.timeConclusion)==null?void 0:Ba.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fa=l==null?void 0:l.timeConclusion)==null?void 0:Fa.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Lm,[((Ga=l==null?void 0:l.timeConclusion)==null?void 0:Ga.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Zm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((al=l==null?void 0:l.timeConclusion)==null?void 0:al.timeLost)+" (hrs)",1)])):((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Hm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",_m,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((dl=l==null?void 0:l.timeConclusion)==null?void 0:dl.conclusionStatus)==="Lost"?"lost":((rl=l==null?void 0:l.timeConclusion)==null?void 0:rl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((sl=l==null?void 0:l.timeConclusion)==null?void 0:sl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Jm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Xm,[t.createElementVNode("div",um,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(Nl=(cl=a.report)==null?void 0:cl.weather)!=null&&Nl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Km,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",qm,[t.createElementVNode("div",$m,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vm,[t.createElementVNode("div",tD,[t.createElementVNode("div",null,t.toDisplayString((Dl=(Ml=a.report)==null?void 0:Ml.weather)!=null&&Dl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",eD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Il=(gl=l.extend)==null?void 0:gl.cp)==null?void 0:Il.dgo)>0?(t.openBlock(),t.createElementBlock("div",aD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",lD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oD,[t.createElementVNode("div",iD,[t.createElementVNode("div",null,t.toDisplayString((Vl=(El=a.report)==null?void 0:El.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pl=(xl=l==null?void 0:l.extend)==null?void 0:xl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",nD,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((jl=(zl=a.report)==null?void 0:zl.weather)!=null&&jl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Sl=l==null?void 0:l.extend)==null?void 0:Sl.cp)==null?void 0:Ul.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-b771f190><div class="flex-space" style="width:240px;" data-v-b771f190><label data-v-b771f190>Fuel Over-consumption</label><div data-v-b771f190>=</div><div data-v-b771f190>(d)</div><div data-v-b771f190>-</div><div data-v-b771f190>(e)</div></div><div class="flex-space" style="width:200px;" data-v-b771f190><label data-v-b771f190>Fuel Saving</label><div data-v-b771f190>=</div><div data-v-b771f190>(f)</div><div data-v-b771f190>-</div><div data-v-b771f190>(d)</div></div></div>',1)),((bl=(kl=l.extend)==null?void 0:kl.cp)==null?void 0:bl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",ND,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",MD,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",mD,[t.createElementVNode("div",DD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=(hl=a.report)==null?void 0:hl.weather)!=null&&Yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",gD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(fl=l==null?void 0:l.goodWx)!=null&&fl.distance?(t.openBlock(),t.createElementBlock("div",ID,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",ED,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((M=(Rl=l==null?void 0:l.goodWx)==null?void 0:Rl.inEca)==null?void 0:M.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=l==null?void 0:l.extend)==null?void 0:Bl.cp)==null?void 0:Fl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",VD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(ml=l==null?void 0:l.goodWx)==null?void 0:ml.distance:(ul=l==null?void 0:l.allWx)==null?void 0:ul.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ql=l==null?void 0:l.goodWx)==null?void 0:ql.sumFoCons),1),((vl=($l=l==null?void 0:l.goodWx)==null?void 0:$l.inEca)==null?void 0:vl.distance)>0?(t.openBlock(),t.createElementBlock("span",jD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((eo=(to=l==null?void 0:l.fuelConclusion)==null?void 0:to.fo)==null?void 0:eo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=l.fuelConclusion)==null?void 0:lo.fo)==null?void 0:oo.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",SD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",UD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((no=(io=a.report)==null?void 0:io.weather)!=null&&no.noExtrapolation?(ro=l==null?void 0:l.goodWx)==null?void 0:ro.distance:(so=l==null?void 0:l.allWx)==null?void 0:so.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((co=l==null?void 0:l.timeConclusion)==null?void 0:co.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(No=l==null?void 0:l.fuelConclusion)==null?void 0:No.fo)==null?void 0:Mo.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l.fuelConclusion)==null?void 0:mo.fo)==null?void 0:Do.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",OD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.report)==null?void 0:go.weather)!=null&&Io.noExtrapolation?(Eo=l==null?void 0:l.goodWx)==null?void 0:Eo.distance:(yo=l==null?void 0:l.allWx)==null?void 0:yo.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((Vo=(To=l==null?void 0:l.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=l.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",fD,[((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",QD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(So=l==null?void 0:l.fuelConclusion)==null?void 0:So.fo)==null?void 0:Uo.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((bo=(ko=l==null?void 0:l.fuelConclusion)==null?void 0:ko.fo)==null?void 0:bo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=l==null?void 0:l.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:Co.overCons),1)]),(Yo=(ho=l==null?void 0:l.goodWx)==null?void 0:ho.inEca)!=null&&Yo.distance?(t.openBlock(),t.createElementBlock("div",wD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l==null?void 0:l.goodWx)==null?void 0:fo.inEca)==null?void 0:Qo.distance)+" * "+t.toDisplayString((Ro=(wo=l==null?void 0:l.fuelConclusion)==null?void 0:wo.fo)==null?void 0:Ro.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Fo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",BD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l==null?void 0:l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:uo.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(Ko=l==null?void 0:l.fuelConclusion)==null?void 0:Ko.fo)==null?void 0:qo.saving)+" (mt)",1)]),(vo=($o=l==null?void 0:l.goodWx)==null?void 0:$o.inEca)!=null&&vo.distance?(t.openBlock(),t.createElementBlock("div",FD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",null,t.toDisplayString((ei=(ti=a.report)==null?void 0:ti.weather)!=null&&ei.noExtrapolation?(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)==null?void 0:li.distance:(ii=(oi=l==null?void 0:l.allWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(ci=l==null?void 0:l.goodWx)==null?void 0:ci.distance:(Ni=l==null?void 0:l.allWx)==null?void 0:Ni.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Over"?"flex-center lost":((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",PD,t.toDisplayString(d.noGoodWxDay),1)),((Vi=(Ti=l==null?void 0:l.extend)==null?void 0:Ti.cp)==null?void 0:Vi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",WD,[t.createElementVNode("div",LD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",ZD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",HD,[t.createElementVNode("div",_D,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",XD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(ji=l==null?void 0:l.goodWx)==null?void 0:ji.distance:(Si=l==null?void 0:l.allWx)==null?void 0:Si.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ui=l==null?void 0:l.goodWx)==null?void 0:Ui.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ki=l==null?void 0:l.goodWx)==null?void 0:ki.sumDgoCons),1),((Oi=(bi=l==null?void 0:l.goodWx)==null?void 0:bi.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",KD,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((hi=(Ci=l==null?void 0:l.fuelConclusion)==null?void 0:Ci.fo)==null?void 0:hi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qi=(fi=l.fuelConclusion)==null?void 0:fi.dgo)==null?void 0:Qi.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",qD,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",vD,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Bi=l==null?void 0:l.goodWx)==null?void 0:Bi.distance:(Fi=l==null?void 0:l.allWx)==null?void 0:Fi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",tg,[t.createElementVNode("div",null,t.toDisplayString((Wi=(Pi=l==null?void 0:l.fuelConclusion)==null?void 0:Pi.dgo)==null?void 0:Wi.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zi=(Li=l.fuelConclusion)==null?void 0:Li.dgo)==null?void 0:Zi.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",eg,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((_i=(Hi=a.report)==null?void 0:Hi.weather)!=null&&_i.noExtrapolation?(Ji=l==null?void 0:l.goodWx)==null?void 0:Ji.distance:(Xi=l==null?void 0:l.allWx)==null?void 0:Xi.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ui=l==null?void 0:l.timeConclusion)==null?void 0:ui.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((dt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.dgo)==null?void 0:dt.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=(rt=l.fuelConclusion)==null?void 0:rt.dgo)==null?void 0:st.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",ig,[((Nt=(ct=l==null?void 0:l.fuelConclusion)==null?void 0:ct.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=(_l=l==null?void 0:l.fuelConclusion)==null?void 0:_l.dgo)==null?void 0:Jl.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xe=(Xl=l==null?void 0:l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:xe.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vi=($i=l==null?void 0:l.fuelConclusion)==null?void 0:$i.dgo)==null?void 0:vi.overCons),1)])):((en=(tn=l==null?void 0:l.fuelConclusion)==null?void 0:tn.dgo)==null?void 0:en.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",dg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ln=(an=l==null?void 0:l.fuelConclusion)==null?void 0:an.dgo)==null?void 0:ln.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l==null?void 0:l.fuelConclusion)==null?void 0:on.dgo)==null?void 0:nn.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.dgo)==null?void 0:rn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((cn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.dgo)==null?void 0:cn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(Nn=l==null?void 0:l.fuelConclusion)==null?void 0:Nn.dgo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",rg,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const cg=Pa(cN,[["render",sg],["__scopeId","data-v-b771f190"]]),kj="",Ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?R.LngLatHelper.roundPrecision(o,e):a}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,a,N,d,i,g,r,c,T,l,y;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(a=this.report)==null?void 0:a.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((i=(d=this.report)==null?void 0:d.weather)==null?void 0:i.showSig)??!0,this.showSwell=((r=(g=this.report)==null?void 0:g.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((y=(l=this.report)==null?void 0:l.weather)==null?void 0:y.waterTempSwitch)||!1}}},Mg={class:"report-inventory"},mg={class:"section summary-section"},Dg={class:"summary-block"},gg={class:"orm-report-table inventory-table"},Ig={class:"label",rowspan:"4"},Eg={class:"section inventory-section"},yg={class:"orm-report-table inventory-table detail"},Ag=["colspan"],Tg={key:0,class:"label",colspan:"2"},Vg={key:0,class:"label",rowspan:"2"},xg={key:1,class:"label",rowspan:"2"},pg={key:2,class:"label",rowspan:"2"},zg={key:3,class:"label",colspan:"2"},jg={key:4,class:"label",rowspan:"2"},Sg={key:5,class:"label",colspan:"2"},Ug={key:6,class:"label",rowspan:"2"},kg={key:7,class:"label",rowspan:"2"},bg={key:8,class:"label",rowspan:"2"},Og={key:0,class:"label"},Cg={key:1,class:"label"},hg={key:2,class:"label"},Yg={key:3,class:"label"},fg={class:"summary-tbody"};function Qg(o,e,a,N,d,i){var g;return t.openBlock(),t.createElementBlock("div",Mg,[t.createElementVNode("div",mg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",Dg,[t.createElementVNode("table",gg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((g=a.report)==null?void 0:g.segments,(r,c)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ig,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((l=r==null?void 0:r.allWx)==null?void 0:l.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.goodWx)==null?void 0:z.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.badWx)==null?void 0:p.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.badWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.badWx)==null?void 0:h.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((U=r==null?void 0:r.excluded)==null?void 0:U.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.excluded)==null?void 0:b.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((B=r==null?void 0:r.excluded)==null?void 0:B.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Eg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",yg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,Ag),a.showFactor?(t.openBlock(),t.createElementBlock("th",Tg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",Vg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",xg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),d.showWave?(t.openBlock(),t.createElementBlock("th",pg,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",zg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",jg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",Sg,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ug,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",kg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",bg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),d.showSwell?(t.openBlock(),t.createElementBlock("th",Og,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Cg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",hg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",Yg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,c)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((l=r.noon)==null?void 0:l.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(y=r.meteo)==null?void 0:y.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(k=r.meteo)==null?void 0:k.wind)==null?void 0:A.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(p=(x=r.meteo)==null?void 0:x.wave)==null?void 0:p.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((h=(C=(D=r.meteo)==null?void 0:D.wave)==null?void 0:C.swell)==null?void 0:h.height)??"-"),3)):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((f=(b=(U=r.meteo)==null?void 0:U.wave)==null?void 0:b.sig)==null?void 0:f.height)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(Q=r.meteo)==null?void 0:Q.current)==null?void 0:B.direction)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((G=r.meteo)==null?void 0:G.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((P=r.meteo)==null?void 0:P.cFactor)??"--"),3)):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((W=r.meteo)==null?void 0:W.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((L=r.meteo)==null?void 0:L.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const wg=Pa(Ng,[["render",Qg],["__scopeId","data-v-2182dbc0"]]),bj="",Rg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Sn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Sn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Sn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var y,j,k,A,V,z;let o=[];const e=[],a=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,x)=>{var p,S;x===0&&r.push(E.utc),E.type==="EOSP"&&((p=this.inventory[x+1])==null?void 0:p.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[x+1])==null?void 0:S.utc)),x===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,x)=>{if(x%2===0){const p=K(r[x+1]).diff(K(r[x]),"minute",!0);for(let S=0;S<=p+1;S++)e.push(this.computeUTCTime(K(r[x]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,x)=>{var S,D,C,h,U,b,f,Q,B,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(Y=>Y.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(Y=>Y.slice(0,5)!==E.utc.slice(5,10)),o.push(p)),d=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((C=E.cp)==null?void 0:C.fo)>d?(h=E.cp)==null?void 0:h.fo:d),i=Math.ceil(((U=E.noon)==null?void 0:U.dgoCons)>i?(b=E.noon)==null?void 0:b.dgoCons:i),i=Math.ceil(((f=E.cp)==null?void 0:f.dgo)>i?(Q=E.cp)==null?void 0:Q.dgo:i),a.push([p,(B=E.noon)==null?void 0:B.avgSpd,(G=E.noon)==null?void 0:G.foCons,(P=E.noon)==null?void 0:P.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),x<g.length-1){const Y=g[x+1];a.push([p,(W=Y.noon)==null?void 0:W.avgSpd,(L=Y.noon)==null?void 0:L.foCons,(_=Y.noon)==null?void 0:_.dgoCons,Y.avgSpdCalc,Y.cp.speed,Y.goodWx&&!Y.excluded?100:0,Y.cp.dgo,Y.cp.fo,Y.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((E,x)=>x===0||x===o.length-1||x%c===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:d+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(j=(y=this.report)==null?void 0:y.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(T);const l={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(z=this.spdDgoConsChart)==null||z.setOption(l)},renderWxCurrChart(){var k;let o=[];const e=[],a=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((A,V)=>{var z,E;V===0&&g.push(A.utc),A.type==="EOSP"&&((z=i[V+1])==null?void 0:z.type)==="BOSP"&&(g.push(A.utc),g.push((E=i[V+1])==null?void 0:E.utc)),V===i.length-1&&g.push(A.utc)}),g.forEach((A,V)=>{if(V%2===0){const z=K(g[V+1]).diff(K(g[V]),"minute",!0);for(let E=0;E<=z+1;E++)e.push(this.computeUTCTime(K(g[V]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((A,V)=>{var E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt;const z=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(Z=>Z.slice(0,5)===A.utc.slice(5,10))&&o.push(z),V===i.length-1&&(o=o.filter(Z=>Z.slice(0,5)!==A.utc.slice(5,10)),o.push(z)),d=Math.ceil(((p=(x=(E=A.meteo)==null?void 0:E.wave)==null?void 0:x.sig)==null?void 0:p.height)>d?(C=(D=(S=A.meteo)==null?void 0:S.wave)==null?void 0:D.sig)==null?void 0:C.height:d),a.push([z,((h=A.noon)==null?void 0:h.windBF)||((b=(U=A.meteo)==null?void 0:U.wind)==null?void 0:b.scale),(Q=(f=A.meteo)==null?void 0:f.wind)==null?void 0:Q.scale,(G=(B=A.meteo)==null?void 0:B.wind)==null?void 0:G.direction,(P=A.noon)==null?void 0:P.seasHt,(_=(L=(W=A.meteo)==null?void 0:W.wave)==null?void 0:L.sig)==null?void 0:_.height,A.dailyAvgCf??((Y=a[a.length-1])==null?void 0:Y[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<i.length-1){const Z=i[V+1];a.push([z,((J=A.noon)==null?void 0:J.windBF)||((q=(X=A.meteo)==null?void 0:X.wind)==null?void 0:q.scale),(v=($=Z.meteo)==null?void 0:$.wind)==null?void 0:v.scale,(et=(tt=Z.meteo)==null?void 0:tt.wind)==null?void 0:et.direction,(at=Z.noon)==null?void 0:at.seasHt,(it=(ot=(lt=A.meteo)==null?void 0:lt.wave)==null?void 0:ot.sig)==null?void 0:it.height,Z.dailyAvgCf??((nt=a[a.length-1])==null?void 0:nt[N.anlyCurFct]),Z.goodWx&&!Z.excluded?20:0,Z.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%r===0);let c=-2.5,T=2.5,l=1,y=5;c<-2.5||T>2.5?(c=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,l=Math.ceil(Math.max([Math.abs(c),Math.abs(T)])/5),y=Math.ceil(Math.abs(c)/l)+Math.ceil(Math.abs(T)/l)):(l=.5,c=Math.floor(this.findMinValue(a,6)/.5)*l,T=2.5,y=Math.abs(c)/l+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:l,splitNumber:y,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:y,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:y,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(j)},findMaxValue(o,e){let a=-1/0;for(let N=0;N<o.length;N++){const d=o[N];if(d.length>=e+1){const i=d[e];typeof i=="number"&&!isNaN(i)&&Number(i)>a&&(a=i)}}return a},findMinValue(o,e){let a=1/0;for(let N=0;N<o.length;N++){const d=o[N];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},Bg={class:"report-summary"},Fg={class:"section chart-section"},Gg={class:"chart-block"},Pg={ref:"spdFoConsChart",class:"chart"},Wg={ref:"spdDgoConsChart",class:"chart"},Lg={ref:"currChart",class:"chart"},Zg={class:"section map-section"},Hg={class:"map-block"},_g={class:"flex-space"},Jg={class:"voyage-block bg-blue-light"},Xg={class:"flex-space label-block",style:{width:"100%"}},ug={style:{"text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},qg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},$g={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},vg={class:"flex-space label-block",style:{width:"100%"}},tI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},eI={class:"flex-space label-block",style:{width:"100%"}},aI={key:0,class:"flex-end",style:{flex:"1"}},lI={key:1,class:"flex-end",style:{flex:"1"}},oI={class:"flex-end",style:{width:"160px"}},iI={class:"flex-space label-block",style:{width:"100%"}},nI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},rI={class:"flex-end",style:{width:"160px"}},sI={class:"flex-space label-block",style:{width:"100%"}},cI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},NI=["src"];function MI(o,e,a,N,d,i){var g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q;return t.openBlock(),t.createElementBlock("div",Bg,[t.createElementVNode("div",Fg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,null,512),t.createElementVNode("div",Wg,null,512),t.createElementVNode("div",Lg,null,512)])]),t.createElementVNode("div",Zg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Hg,[t.createElementVNode("div",_g,[t.createElementVNode("div",Jg,[t.createElementVNode("div",Xg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",ug,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Kg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",qg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",$g,"("+t.toDisplayString((T=(c=a.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",vg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",tI,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",eI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(j=a.report)==null?void 0:j.departure)!=null&&k.portName?(t.openBlock(),t.createElementBlock("span",aI,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",lI,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",oI,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",iI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(p=(x=a.report)==null?void 0:x.arrival)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",nI,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",rI,t.toDisplayString(i.computeUTCTime((U=(h=a.report)==null?void 0:h.arrival)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",cI,t.toDisplayString((f=(b=a.report)==null?void 0:b.voyage)==null?void 0:f.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-21602fa4><div data-v-21602fa4>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>0812</div><div data-v-21602fa4><div data-v-21602fa4>08 - Day of the month</div><div data-v-21602fa4>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-21602fa4></i></div><div data-v-21602fa4><div data-v-21602fa4>Wind from N (000)</div><div data-v-21602fa4>Each bard = 10 kts</div><div data-v-21602fa4>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>W 4</div><div data-v-21602fa4>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div class="good-wx" data-v-21602fa4>Date</div><div data-v-21602fa4>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=a.report)==null?void 0:Q.chartUrl,alt:""},null,8,NI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-21602fa4><div class="header-block" data-v-21602fa4><div class="bg-block" data-v-21602fa4><i class="iconfont icon-baobiao" data-v-21602fa4></i><div class="block-title" data-v-21602fa4>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>1. Good Weather Method</div><div class="method-body" data-v-21602fa4> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-21602fa4> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-21602fa4> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-21602fa4> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-21602fa4> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>4. “About”</div><div class="method-body" data-v-21602fa4> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-21602fa4> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-21602fa4> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-21602fa4> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-21602fa4> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>6. Further reference materials</div><div class="method-body" data-v-21602fa4>Please send mail to <a href="mailto:op@ormwx.com" data-v-21602fa4>op@ormwx.com</a>.</div></div></div></div>',1))])}const mI=Pa(Rg,[["render",MI],["__scopeId","data-v-21602fa4"]]),Oj="",Cj="",DI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,a)=>e.date<a.date);o==null||o.forEach((e,a)=>{var c,T;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(y=>{const j=`<p>${y}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const d=document.getElementById("col1"),i=document.getElementById("col2"),g=(d==null?void 0:d.offsetHeight)||0,r=(i==null?void 0:i.offsetHeight)||0;if(g<=r){let y=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
1
+ (function(Dt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios"],t):(Dt=typeof globalThis<"u"?globalThis:Dt||self,t(Dt["idmui-extend"]={},Dt.Vue,Dt["@wangeditor/editor-for-vue"],Dt["@idmui/basic"],Dt.moment,Dt.echarts,Dt["@idm-plugin/geo"],Dt.axios))})(this,function(Dt,t,kn,yl,K,zr,R,Un){"use strict";function jr(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const N=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,N.get?N:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const Sn=jr(zr),pj="",Pa=(o,e)=>{const a=o.__vccOpts||o;for(const[N,d]of e)a[N]=d;return a},Sr={name:"IdmEditor",components:{Editor:kn.Editor,Toolbar:kn.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function kr(o,e,a,N,d,i){const g=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Ur,[t.withDirectives(t.createVNode(g,{editor:d.editor,"default-config":d.toolbarConfig,mode:d.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!a.disabled]]),t.createVNode(r,{modelValue:d.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>d.valueHtml=c),"default-config":d.editorConfig,mode:d.mode,class:"editor",style:t.normalizeStyle({height:a.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const Tl=Pa(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),br={install(o){o.component("IdmEditor",Tl)}},zj="";/*! Element Plus Icons Vue v2.3.2 */var Or=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Cr=Or,hr=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Yr=hr;const jj="",fr={name:"PlanReport",components:{Editor:Tl,IdmBrand:yl.IdmBrand,IdmLoading:yl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,N){let d=0;return a&&e&&(d=R.LngLatHelper.guessTimeZoneOffset(e,a)),`${K(o).utcOffset(N??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,N,d,i,g;if(e===0)return"-";{const r=K((d=(N=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:N.speed)==null?void 0:d.eta).diff(K((g=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:g.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var a,N,d,i,g,r,c;if(e===0)return"-";{const T=Number((i=(d=(N=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:N.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((c=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const a=Number("1".padEnd(e+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const a=[];for(let N=0;N<(e==null?void 0:e.length);N++){const d=e[N],i=e[N-1];i&&(d.avgBearing=i.bearing),a.push(d),d.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:d.etd,eta:d.etd,isResume:!0,memo:`Stoppage: ${d.suspend}hrs`})}return a}},computeDegree(){return function(o,e,a){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let d=(16-N)*22.5;a||(d=d+180);let i="";return o==="wind"?i="var(--orm-wind)":o==="wave"?i="var(--orm-wave)":o==="swell"?i="var(--orm-swell)":o==="current"&&(i="var(--orm-current)"),`transform:rotate(${d}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(o,e=0){var i,g,r,c;const a=(c=(r=(g=(i=o==null?void 0:o.speeds)==null?void 0:i[e])==null?void 0:g.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(K(d==null?void 0:d.eta).diff(K(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,N;let e=0;return(N=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||N.forEach(d=>{e+=d.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":R.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>R.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>R.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,N,d,i,g,r,c,T,l,y,j,k,A,V,z,E,x,p;let e="";return(N=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&N.wind&&((i=(d=o.meteo)==null?void 0:d.wind)==null?void 0:i.scale)>=((r=(g=this.weatherPrinciple)==null?void 0:g.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((y=(l=o.meteo)==null?void 0:l.wind)==null?void 0:y.scale)>((k=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:k.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((E=(z=o.meteo)==null?void 0:z.wind)==null?void 0:E.scale)===((p=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:p.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,N,d,i,g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C;let e="";return(N=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&N.sigWv&&((g=(i=(d=o.meteo)==null?void 0:d.wave)==null?void 0:i.sig)==null?void 0:g.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(l=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&l.sigWv&&((k=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:k.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(E=(z=this.weatherPrinciple)==null?void 0:z.heavy)!=null&&E.sigWv&&((S=(p=(x=o.meteo)==null?void 0:x.wave)==null?void 0:p.sig)==null?void 0:S.height)>=((C=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:C.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Sn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,x,p,S,D,C,h;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(C=(D=(S=(p=(x=(E=this.plan)==null?void 0:E.speeds)==null?void 0:x[this.speedIndex])==null?void 0:p.speed)==null?void 0:S.sample)==null?void 0:D.hours)==null||C.forEach(U=>{var f,Q,B,G,P,W,L,_,Y,J;const b=U.meteo;if(b){const X=K(b.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),N=Math.ceil(((Q=(f=b.wave)==null?void 0:f.sig)==null?void 0:Q.height)>N?(G=(B=b.wave)==null?void 0:B.sig)==null?void 0:G.height:N),e.push([X,(P=b.wind)==null?void 0:P.kts,(L=(W=b.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=b.wind)==null?void 0:_.direction,(Y=b.wind)==null?void 0:Y.degree,(J=b.wind)==null?void 0:J.scale,U.cFactor,U.wFactor,U.speed])}});const d=Math.max(...e.map(U=>U[a.speed])),i=Math.max(...e.map(U=>U[a.windSpeed])),g=Math.min(...e.map(U=>U[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(U=>U[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(U=>U[a.currentFactor]))/.5)*.5,c=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,l=Math.ceil(N/5/.5)*.5,y=Math.ceil((r-g)/5/.5)*.5,j=5*c,k=5*T,A=5*l,V=g+5*y,z={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:k,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval:l,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:V,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(h=this.echart)==null||h.setOption(z)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Br={class:"col"},Fr={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={key:0},Zr={class:"label-block"},Hr={class:"text"},_r={class:"col"},Jr={class:"label-block"},Xr={key:0},ur={key:1},Kr={style:{"margin-left":"16px"}},qr={class:"label-block"},$r={key:0},vr={key:1},ts={style:{"margin-left":"16px"}},es={class:"label-block"},as={class:"text"},ls={class:"section chart-section"},os={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},is={style:{"margin-right":"8px"}},ns=["src"],ds={class:"legends text-tips"},rs={class:"legend"},ss={key:0,class:"legend"},cs={key:1,class:"legend"},Ns={key:1,class:"empty"},Ms={class:"section comparison-section"},ms={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ds={key:0},gs=["rowspan"],Is={key:0},Es={key:1},ys={rowspan:"2"},As={rowspan:"2"},Ts={key:0},Vs={key:1},xs={rowspan:"1"},ps={key:0},zs={rowspan:"2"},js={rowspan:"2"},Ss={rowspan:"2"},Us={key:0},ks={key:0},bs=["rowspan"],Os={key:0},Cs={rowspan:"1"},hs={key:0},Ys={key:0},fs={key:1},Qs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},ws={key:0},Rs={class:"section waypoint-section"},Bs={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fs={class:"bg-block"},Gs={class:"block-title"},Ps={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ws=["onClick"],Ls={class:"advisory bg-blue-light-2"},Zs=["innerHTML"],Hs={class:"major-waypoint"},_s={class:"major-header bg-blue-light-2"},Js={key:0,class:"cell-item flex"},Xs={key:1,class:"cell-item flex"},us={class:"major-body"},Ks={class:"cell-item flex",style:{flex:"2.5"}},qs={key:0,class:"flex-center"},$s={key:1,class:"flex-center"},vs={key:0,style:{"margin-left":"3px"}},tc={class:"cell-item flex",style:{flex:"1.5"}},ec={key:0,style:{"margin-left":"4px","font-weight":"600"}},ac={key:0,class:"cell-item flex offset"},lc={key:1,class:"cell-item flex nbsp"},oc={key:2,class:"cell-item flex offset"},ic={key:3,class:"cell-item flex nbsp"},nc={key:0,class:"cell-item flex offset"},dc={key:1,class:"cell-item flex nbsp"},rc={key:0,class:"cell-item flex offset"},sc={key:1,class:"cell-item flex nbsp"},cc={key:6,class:"cell-item flex offset"},Nc={key:7,class:"cell-item flex nbsp"},Mc={class:"section forecast-section"},mc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Dc={class:"bg-block"},gc={class:"block-title"},Ic={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ec=["onClick"],yc={class:"echart-block",style:{"page-break-inside":"avoid"}},Ac={ref:"echart",class:"echart"},Tc={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Vc={style:{"page-break-inside":"avoid"}},xc={class:"orm-report-table",style:{"font-size":"12px"}},pc=["colspan"],zc={key:0},jc={class:"flex-center"},Sc={class:"degree-box"},Uc={key:0},kc={key:2},bc={key:0},Oc={class:"degree-box"},Cc={key:0},hc={key:2},Yc={class:"degree-box"},fc={key:0},Qc={key:2},wc={class:"degree-box"},Rc={key:0},Bc={key:2};function Fc(o,e,a,N,d,i){var l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt,ht,Yt,ft,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,ut,Kt,qt,$t,F,ee,oe,ie,ne,de,re,se,ce,Ne,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,be,Oe,Ce,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,$a,va;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(l=a.plan)==null?void 0:l.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Br,[t.createElementVNode("div",Fr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((k=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:k.name),1)]),t.createElementVNode("div",Pr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Wr,[t.createTextVNode(t.toDisplayString((z=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:z.name)+" ",1),(S=(p=(x=(E=a.plan)==null?void 0:E.voyage)==null?void 0:x.vessel)==null?void 0:p.vesselType)!=null&&S.name?(t.openBlock(),t.createElementBlock("span",Lr,"("+t.toDisplayString((U=(h=(C=(D=a.plan)==null?void 0:D.voyage)==null?void 0:C.vessel)==null?void 0:h.vesselType)==null?void 0:U.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Zr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hr,t.toDisplayString(((f=(b=a.plan)==null?void 0:b.voyage)==null?void 0:f.voyNum)||((B=(Q=a.plan)==null?void 0:Q.voyage)==null?void 0:B.number)),1)])]),t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(W=(P=(G=a.plan)==null?void 0:G.leg)==null?void 0:P.departure)!=null&&W.name?(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString((Y=(_=(L=a.plan)==null?void 0:L.leg)==null?void 0:_.departure)==null?void 0:Y.name),1)):(t.openBlock(),t.createElementBlock("span",ur,t.toDisplayString(i.computePosition((X=(J=a.plan)==null?void 0:J.leg)==null?void 0:X.departure)),1)),t.createElementVNode("span",Kr,t.toDisplayString(i.computeUTCTime(((v=($=(q=a.plan)==null?void 0:q.leg)==null?void 0:$.departure)==null?void 0:v.atd)||((at=(et=(tt=a.plan)==null?void 0:tt.leg)==null?void 0:et.departure)==null?void 0:at.etd)||((nt=(it=(ot=(lt=a.plan)==null?void 0:lt.speeds)==null?void 0:ot[d.speedIndex])==null?void 0:it.speed)==null?void 0:nt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",qr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(It=(gt=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:gt.destination)!=null&&It.name?(t.openBlock(),t.createElementBlock("span",$r,t.toDisplayString((At=(yt=(Et=a.plan)==null?void 0:Et.leg)==null?void 0:yt.destination)==null?void 0:At.name),1)):(t.openBlock(),t.createElementBlock("span",vr,t.toDisplayString(i.computePosition((Ct=(O=a.plan)==null?void 0:O.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",ts,t.toDisplayString(i.computeUTCTime(((pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[d.speedIndex])==null?void 0:xt.speed)==null?void 0:pt.ata)||((Ut=(St=(jt=(zt=a.plan)==null?void 0:zt.speeds)==null?void 0:jt[d.speedIndex])==null?void 0:St.speed)==null?void 0:Ut.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",es,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",as,t.toDisplayString((bt=(kt=a.plan)==null?void 0:kt.voyage)==null?void 0:bt.loadCondition),1)])])]),t.createElementVNode("div",ls,[t.createElementVNode("div",os,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",is," FCST fr Pos. "+t.toDisplayString(i.computeUTCTime((Bt=(Rt=(wt=(Qt=(ft=(Yt=(ht=a.plan)==null?void 0:ht.speeds)==null?void 0:Yt[d.speedIndex])==null?void 0:ft.speed)==null?void 0:Qt.sample)==null?void 0:wt.hours)==null?void 0:Rt[0])==null?void 0:Bt.eta)),1)]),(Ft=a.plan)!=null&&Ft.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ns)]),t.createElementVNode("div",ds,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-26adf1cb><span class="dangerous" data-v-26adf1cb></span><span data-v-26adf1cb>Danger</span></div><div class="legend" data-v-26adf1cb><span class="severe" data-v-26adf1cb></span><span data-v-26adf1cb>Severe</span></div><div class="legend" data-v-26adf1cb><span class="heavy" data-v-26adf1cb></span><span data-v-26adf1cb>Heavy</span></div>',3)),t.createElementVNode("div",rs,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((Zt=(Lt=(Wt=(Pt=(Gt=a.plan)==null?void 0:Gt.speeds)==null?void 0:Pt[0])==null?void 0:Wt.speed)==null?void 0:Lt.lane)==null?void 0:Zt.name),1)]),((_t=(Ht=a.plan)==null?void 0:Ht.speeds)==null?void 0:_t.length)>1?(t.openBlock(),t.createElementBlock("div",ss,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Jt=(Ot=(w=(H=(n=a.plan)==null?void 0:n.speeds)==null?void 0:H[1])==null?void 0:w.speed)==null?void 0:Ot.lane)==null?void 0:Jt.name),1)])):t.createCommentVNode("",!0),((ut=(Xt=a.plan)==null?void 0:Xt.speeds)==null?void 0:ut.length)>2?(t.openBlock(),t.createElementBlock("div",cs,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((ee=(F=($t=(qt=(Kt=a.plan)==null?void 0:Kt.speeds)==null?void 0:qt[2])==null?void 0:$t.speed)==null?void 0:F.lane)==null?void 0:ee.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Ns,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Ms,[(ie=(oe=a.plan)==null?void 0:oe.speeds)!=null&&ie.length?(t.openBlock(),t.createElementBlock("table",ms,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gs),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",Is,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Es,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ne=a.plan)==null?void 0:ne.speeds,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml,Dl,gl,Il,El;return t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createElementVNode("tr",null,[t.createElementVNode("td",ys,t.toDisplayString(u+1),1),t.createElementVNode("td",As,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Ts,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((ue=m.speed)==null?void 0:ue.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vs,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(Ke=m.speed)==null?void 0:Ke.extend)==null?void 0:qe.cps[0])==null?void 0:$e.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((ea=(ta=(ve=m.speed)==null?void 0:ve.extend)==null?void 0:ta.cps[1])==null?void 0:ea.speed),1)]))]),t.createElementVNode("td",xs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",ps," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(Na=(ca=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:ca.destination)==null?void 0:Na.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",zs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",js,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",Ss,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Us," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",ks,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,u)),9,bs),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ba=(ka=a.weatherPrinciple)==null?void 0:ka.severe)==null?void 0:ba.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ca=(Oa=a.weatherPrinciple)==null?void 0:Oa.heavy)==null?void 0:Ca.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((ha=m.speed)==null?void 0:ha.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Os,"FO: "+t.toDisplayString((fa=(Ya=m.speed)==null?void 0:Ya.cpCopy)==null?void 0:fa.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Ba=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Ba.cps[0].fo)+" / "+t.toDisplayString((Ga=(Fa=m.speed)==null?void 0:Fa.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((el=(tl=m.speed)==null?void 0:tl.extend)==null?void 0:el.cps[0].dgo)+" / "+t.toDisplayString((ll=(al=m.speed)==null?void 0:al.extend)==null?void 0:ll.cps[1].dgo),1)],64))]),t.createElementVNode("td",Cs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((ol=m.speed)==null?void 0:ol.totalHrs,1)),1),(nl=(il=m.speed)==null?void 0:il.extend)!=null&&nl.hoursInECA?(t.openBlock(),t.createElementBlock("span",hs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((dl=m.speed)==null?void 0:dl.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((rl=m.speed)==null?void 0:rl.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((sl=m.speed)==null?void 0:sl.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Ys,t.toDisplayString(i.roundPrecision(((Nl=(cl=m==null?void 0:m.speed)==null?void 0:cl.cost)==null?void 0:Nl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((Dl=(Ml=m==null?void 0:m.speed)==null?void 0:Ml.cost)==null?void 0:Dl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",fs,t.toDisplayString(i.computeCostDiff(a.plan,u)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((gl=m.speed)==null?void 0:gl.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Il=m.speed)==null?void 0:Il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((El=m.speed)==null?void 0:El.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",ws,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((se=i.roundPrecision((re=(de=a.plan)==null?void 0:de.voyage)==null?void 0:re.dailyHire,0))==null?void 0:se.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((Me=i.roundPrecision((Ne=(ce=a.plan)==null?void 0:ce.voyage)==null?void 0:Ne.priceFO,0))==null?void 0:Me.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ge=i.roundPrecision((De=(me=a.plan)==null?void 0:me.voyage)==null?void 0:De.priceDGO,0))==null?void 0:ge.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Rs,[t.createElementVNode("div",Bs,[t.createElementVNode("div",Fs,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gs,"Advisory & Major Waypoint of Route "+t.toDisplayString((Ae=(ye=(Ee=(Ie=a.plan.speeds)==null?void 0:Ie[d.speedIndex])==null?void 0:Ee.speed)==null?void 0:ye.lane)==null?void 0:Ae.name),1)]),((ze=(Te=a.plan)==null?void 0:Te.speeds)==null?void 0:ze.length)>1?(t.openBlock(),t.createElementBlock("div",Ps,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((je=a.plan)==null?void 0:je.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ws)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ls,[d.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Zs))]),t.createElementVNode("div",Hs,[t.createElementVNode("div",_s,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-26adf1cb>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-26adf1cb>Time</div><div class="cell-item flex" data-v-26adf1cb>Nav</div><div class="cell-item flex" data-v-26adf1cb>Dist <span class="text-units" data-v-26adf1cb>(nm)</span></div>',4)),(Ue=(Se=a.plan)==null?void 0:Se.voyage)!=null&&Ue.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Js,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(be=(ke=a.plan)==null?void 0:ke.voyage)!=null&&be.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xs,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",us,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((Qe=(fe=(Ye=(he=a.plan)==null?void 0:he.speeds)==null?void 0:Ye[d.speedIndex])==null?void 0:fe.speed)==null?void 0:Qe.argv,(Ge=(Fe=(Be=(Re=(we=a.plan)==null?void 0:we.speeds)==null?void 0:Re[d.speedIndex])==null?void 0:Be.speed)==null?void 0:Fe.sample)==null?void 0:Ge.wps),(m,u)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:u,class:"cell-row"},[t.createElementVNode("div",Ks,[m.isResume?(t.openBlock(),t.createElementBlock("div",qs,"Resume")):(t.openBlock(),t.createElementBlock("div",$s,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vs,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tc,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",ec,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),u?(t.openBlock(),t.createElementBlock("div",ac,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",lc)),u?(t.openBlock(),t.createElementBlock("div",oc,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ic)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[u?(t.openBlock(),t.createElementBlock("div",nc,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",dc))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[u?(t.openBlock(),t.createElementBlock("div",rc,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",sc))],64)):t.createCommentVNode("",!0),u?(t.openBlock(),t.createElementBlock("div",cc,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",Nc))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",Mc,[(Pe=(I=a.plan)==null?void 0:I.speeds)!=null&&Pe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",mc,[t.createElementVNode("div",Dc,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",gc," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((_e=(He=(Ze=(Le=(We=a.plan)==null?void 0:We.speeds)==null?void 0:Le[d.speedIndex])==null?void 0:Ze.speed)==null?void 0:He.lane)==null?void 0:_e.name),1)]),((Xe=(Je=a.plan)==null?void 0:Je.speeds)==null?void 0:Xe.length)>1?(t.openBlock(),t.createElementBlock("div",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=a.plan)==null?void 0:ae.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ec)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,null,512)]),t.createElementVNode("div",Tc,"* "+t.toDisplayString(i.computeModel((Za=(La=(Wa=a.plan)==null?void 0:Wa.speeds)==null?void 0:La[d.speedIndex])==null?void 0:Za.speed)),1)]),t.createElementVNode("div",Vc,[e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1)),t.createElementVNode("table",xc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(_a=(Ha=a.plan)==null?void 0:Ha.voyage)!=null&&_a.sendRptWithBF?3:2},"Wind",8,pc),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Xa=(Ja=a.plan)==null?void 0:Ja.voyage)!=null&&Xa.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",zc,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=($a=(qa=(Ka=(ua=a.plan)==null?void 0:ua.speeds)==null?void 0:Ka[d.speedIndex])==null?void 0:qa.speed)==null?void 0:$a.sample)==null?void 0:va.hours,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml;return t.openBlock(),t.createElementBlock("tr",{key:u},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",jc,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",Sc,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",Uc,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(Ke=(ue=m.meteo)==null?void 0:ue.wind)!=null&&Ke.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",($e=(qe=m.meteo)==null?void 0:qe.wind)==null?void 0:$e.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",kc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bc,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",Oc,[(ca=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&ca.height?(t.openBlock(),t.createElementBlock("span",Cc,t.toDisplayString((ma=(Ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:Ma.swell)==null?void 0:ma.direction),1)):t.createCommentVNode("",!0),(Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)!=null&&Ia.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",hc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",Yc,[(ka=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",fc,t.toDisplayString((Ca=(Oa=(ba=m.meteo)==null?void 0:ba.wave)==null?void 0:Oa.sig)==null?void 0:Ca.direction),1)):t.createCommentVNode("",!0),(fa=(Ya=(ha=m.meteo)==null?void 0:ha.wave)==null?void 0:Ya.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",Qc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Fa=(Ba=m.meteo)==null?void 0:Ba.wave)==null?void 0:Fa.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((al=(el=(tl=m.meteo)==null?void 0:tl.wave)==null?void 0:el.sig)==null?void 0:al.period,1)),1),t.createElementVNode("td",wc,[(ol=(ll=m.meteo)==null?void 0:ll.current)!=null&&ol.kts?(t.openBlock(),t.createElementBlock("span",Rc,t.toDisplayString((nl=(il=m.meteo)==null?void 0:il.current)==null?void 0:nl.direction),1)):t.createCommentVNode("",!0),(rl=(dl=m.meteo)==null?void 0:dl.current)!=null&&rl.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(cl=(sl=m.meteo)==null?void 0:sl.current)==null?void 0:cl.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",Bc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Ml=(Nl=m.meteo)==null?void 0:Nl.current)==null?void 0:Ml.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const bn=Pa(fr,[["render",Fc],["__scopeId","data-v-26adf1cb"]]),Gc={install(o){o.component("PlanReport",bn)}},Sj="",Pc={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${K(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${K(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},Wc={class:"cover-box"},Lc={class:"cover-content"},Zc={class:"cover-title"},Hc={class:"cover-info"},_c={class:"info-item"},Jc={class:"info-item"},Xc={class:"info-item"},uc={style:{"font-weight":"600"}},Kc={class:"info-item"},qc={style:{"font-weight":"600"}},$c={class:"info-item"},vc={key:0},tN={key:1},eN={class:"info-item"},aN={class:"info-item"},lN={key:0},oN={key:1},iN={class:"info-item"},nN={class:"info-item"},dN={class:"text"};function rN(o,e,a,N,d,i){var g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b;return t.openBlock(),t.createElementBlock("div",Wc,[t.createElementVNode("div",Lc,[t.createElementVNode("div",Zc,t.toDisplayString(a.name),1),t.createElementVNode("div",Hc,[t.createElementVNode("div",_c,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(g=a.report)==null?void 0:g.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",Jc,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeLocalTime(a.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",Xc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",uc,t.toDisplayString((T=(c=a.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",Kc,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",qc,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",$c,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(y=(l=a.report)==null?void 0:l.departure)!=null&&y.name?(t.openBlock(),t.createElementBlock("span",vc,t.toDisplayString((k=(j=a.report)==null?void 0:j.departure)==null?void 0:k.portName),1)):(t.openBlock(),t.createElementBlock("span",tN,t.toDisplayString(i.computePosition((A=a.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",eN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((z=(V=a.report)==null?void 0:V.departure)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",aN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(E=a.report)==null?void 0:E.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",lN,t.toDisplayString((S=(p=a.report)==null?void 0:p.arrival)==null?void 0:S.portName),1)):(t.openBlock(),t.createElementBlock("span",oN,t.toDisplayString(i.computePosition((D=a.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",iN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((h=(C=a.report)==null?void 0:C.arrival)==null?void 0:h.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",dN,t.toDisplayString((b=(U=a.report)==null?void 0:U.voyage)==null?void 0:b.loadCondition),1)])])])])}const sN=Pa(Pc,[["render",rN],["__scopeId","data-v-89d46487"]]),Uj="",cN={name:"OrmVoyageSummary",components:{Editor:Tl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return K(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=K(o).diff(K(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let a="";o!=null&&o.waveSwitch?a+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?a+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,e,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,a){if(o.consPercentage){if(e==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((a,N)=>{var g,r;a.excluded.detail.forEach(c=>{const T={time:K(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+K(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(T)});const i=(r=(g=a==null?void 0:a.inventory)==null?void 0:g.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},NN={class:"report-summary"},MN={class:"section weather-section"},mN={class:"definition bg-blue-light-2"},DN={style:{"line-height":"1.5"}},gN={class:"section summary-section"},IN={class:"phase-box"},EN={class:"phase-index"},yN={class:"phase-position"},AN={key:0},TN={key:1},VN={class:"phase-position"},xN={key:0},pN={key:1},zN={class:"phase-cp"},jN={class:"orm-report-table"},SN={class:"phase-conclusion"},UN={class:"item-conclusion bg-blue-light-2"},kN={class:"value align-left"},bN={key:0,class:"text-secondary align-right"},ON={key:0},CN={key:1},hN={key:2},YN={key:1,class:"text-secondary"},fN={key:2,class:"value"},QN={key:0},wN={class:"gain"},RN={key:1},BN={class:"lost"},FN={key:2},GN={class:"item-conclusion bg-blue-light-2"},PN={class:"value align-left"},WN={key:0,class:"text-secondary"},LN={key:0},ZN={key:1},HN={key:2},_N={key:1,class:"text-secondary"},JN={key:2,class:"value"},XN={key:0},uN={class:"gain"},KN={key:1},qN={class:"lost"},$N={key:2},vN={class:"item-conclusion bg-blue-light-2"},tM={class:"value align-left"},eM={key:0,class:"text-secondary"},aM={key:0},lM={key:1},oM={key:2},iM={key:1,class:"text-secondary"},nM={key:2,class:"value"},dM={key:0},rM={class:"gain"},sM={key:1},cM={class:"lost"},NM={key:2},MM={key:0,class:"exclusion-block"},mM={style:{margin:"8px 0"}},DM={class:"orm-report-table"},gM=["innerHTML"],IM={class:"section segment-section"},EM={class:"segment-summary"},yM={class:"segment-index text-left"},AM={class:"segment-position"},TM={key:0},VM={key:1},xM={class:"segment-position"},pM={key:0},zM={key:1},jM={class:"orm-report-table"},SM={class:"good-wx"},UM={class:"good-wx"},kM={class:"good-wx"},bM={class:"good-wx"},OM={class:"good-wx"},CM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},fM={class:"good-wx"},QM={class:"good-wx"},wM={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={class:"good-wx"},GM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},PM={key:0},WM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},LM={key:2,class:"segment-speed"},ZM={class:"row"},HM={class:"speed-right row"},_M={class:"speed"},JM={key:1,class:"speed"},XM={key:0,class:"speed"},uM={class:"speed"},KM={class:"speed"},qM={class:"speed"},$M={key:2,class:"under"},vM={key:3,class:"over"},tm={class:"row"},em={class:"speed-right formula flex-space"},am={key:0},lm={key:3,class:"segment-speed"},om={class:"row"},im={class:"speed-right row"},nm={class:"speed"},dm={class:"speed"},rm={key:2,class:"under"},sm={key:3,class:"over"},cm={class:"row"},Nm={class:"speed-right formula row"},Mm={class:"segment-formula"},mm={class:"sub-title"},Dm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},gm={class:"formula-block"},Im={class:"formula-item flex-evenly bg-blue-light"},Em={class:"formula-right flex-evenly"},ym={class:"fraction",style:{width:"240px"}},Am={class:"formula-item flex-center bg-blue-light"},Tm={class:"formula-left flex-space"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},Sm={class:"fraction",style:{width:"240px"}},Um={class:"formula-desc"},km={class:"flex-end"},bm={class:"flex-end"},Om={class:"flex-end"},Cm={key:0,class:"formula-block"},hm={class:"formula-item flex-evenly bg-blue-light"},Ym={class:"formula-right flex-evenly"},fm={class:"fraction",style:{width:"200px"}},Qm={class:"formula-item flex-center bg-blue-light"},wm={class:"formula-left flex-space"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item formula-conclusion bg-blue-light"},Zm={key:0,class:"flex-evenly",style:{width:"500px"}},Hm={key:1,class:"flex-evenly",style:{width:"500px"}},_m={class:"flex-center"},Jm={key:1,class:"formula-conclusion bg-blue-light"},Xm={class:"segment-formula"},um={class:"sub-title"},Km={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},qm={class:"formula-block"},$m={class:"formula-item flex-evenly bg-blue-light"},vm={class:"formula-right flex-evenly"},tD={class:"fraction",style:{width:"240px"}},eD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},aD={key:0,class:"flex-end text-tips"},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-right flex-evenly"},iD={class:"fraction",style:{width:"200px"}},nD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},sD={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},MD={class:"formula-item flex-center bg-blue-light"},mD={class:"formula-right flex-evenly"},DD={class:"fraction",style:{width:"300px"}},gD={class:"sub-title"},ID={key:0,class:"formula-block"},ED={key:0,class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"60px"}},TD={class:"fraction",style:{width:"60px"}},VD={class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"150px"}},zD={class:"fraction",style:{width:"150px"}},jD={key:0},SD={class:"formula-item flex-evenly bg-blue-light"},UD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},OD={class:"formula-item flex-evenly bg-blue-light"},CD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item formula-conclusion bg-blue-light"},QD={class:"flex-evenly",style:{width:"500px"}},wD={key:0,class:"flex-evenly"},RD={class:"fraction"},BD={class:"flex-evenly",style:{width:"700px"}},FD={key:0,class:"flex-evenly",style:{width:"500px"}},GD={class:"fraction",style:{width:"140px"}},PD={key:1,class:"formula-item formula-conclusion bg-blue-light"},WD={class:"header-block"},LD={class:"bg-block"},ZD={class:"block-title"},HD={key:0,class:"formula-block"},_D={class:"formula-item flex-evenly bg-blue-light"},JD={class:"formula-right flex-evenly"},XD={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},KD={key:0},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},vD={class:"fraction",style:{width:"150px"}},tg={class:"fraction",style:{width:"150px"}},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ig={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ng={key:0,class:"flex-evenly",style:{width:"500px"}},dg={key:1,class:"flex-evenly",style:{width:"700px"}},rg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function sg(o,e,a,N,d,i){var r,c,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",NN,[t.createElementVNode("div",MN,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",mN,[t.createElementVNode("div",DN,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",gN,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=a.report)==null?void 0:r.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At;return t.openBlock(),t.createElementBlock("div",{key:"summary"+y,class:"segment-box"},[t.createElementVNode("div",IN,[t.createElementVNode("div",EN,"Seg."+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(O,Ct)=>{var Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",yN,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",AN,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",TN,t.toDisplayString(i.computeLat((xt=O==null?void 0:O.departure)==null?void 0:xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((pt=O==null?void 0:O.departure)==null?void 0:pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((zt=O==null?void 0:O.departure)==null?void 0:zt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",VN,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",xN,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",pN,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((kt=O==null?void 0:O.arrival)==null?void 0:kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((bt=O==null?void 0:O.arrival)==null?void 0:bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",zN,[t.createElementVNode("table",jN,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(k=l==null?void 0:l.extend)==null?void 0:k.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(z=(V=l==null?void 0:l.extend)==null?void 0:V.cp)==null?void 0:z.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(x=(E=l==null?void 0:l.extend)==null?void 0:E.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(p=l==null?void 0:l.extend)==null?void 0:p.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((C=(D=l==null?void 0:l.extend)==null?void 0:D.cp)==null?void 0:C.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",SN,[t.createElementVNode("div",UN,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",kN,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",bN,[((h=l==null?void 0:l.timeConclusion)==null?void 0:h.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",ON,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",CN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",hN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",YN,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",fN,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",QN,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",wN,t.toDisplayString((f=l==null?void 0:l.timeConclusion)==null?void 0:f.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Q=l==null?void 0:l.timeConclusion)==null?void 0:Q.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",RN,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",BN,t.toDisplayString((B=l==null?void 0:l.timeConclusion)==null?void 0:B.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",FN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",GN,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",PN,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",WN,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",LN,"FO Saving")):((L=(W=l==null?void 0:l.fuelConclusion)==null?void 0:W.fo)==null?void 0:L.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",ZN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",HN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",JN,[((Y=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:Y.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",XN,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",uN,t.toDisplayString((X=(J=l==null?void 0:l.fuelConclusion)==null?void 0:J.fo)==null?void 0:X.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(($=(q=l==null?void 0:l.fuelConclusion)==null?void 0:q.fo)==null?void 0:$.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",KN,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",qN,t.toDisplayString((tt=(v=l==null?void 0:l.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$N,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",vN,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",tM,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",eM,[((at=(et=l==null?void 0:l.fuelConclusion)==null?void 0:et.dgo)==null?void 0:at.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",aM,"DO/GO Saving")):((ot=(lt=l==null?void 0:l.fuelConclusion)==null?void 0:lt.dgo)==null?void 0:ot.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",oM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",iM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",nM,[((nt=(it=l==null?void 0:l.fuelConclusion)==null?void 0:it.dgo)==null?void 0:nt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",dM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",rM,t.toDisplayString((gt=(Z=l==null?void 0:l.fuelConclusion)==null?void 0:Z.dgo)==null?void 0:gt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Et=(It=l==null?void 0:l.fuelConclusion)==null?void 0:It.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",sM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",cM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",NM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((c=a.report)==null?void 0:c.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",MM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",mM,[t.createElementVNode("table",DM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,y)=>(t.openBlock(),t.createElementBlock("tr",{key:y},[t.createElementVNode("td",null,t.toDisplayString(y+1),1),t.createElementVNode("td",null,t.toDisplayString(l.time),1),t.createElementVNode("td",null,t.toDisplayString(l.duration),1),t.createElementVNode("td",null,t.toDisplayString(l.distance),1),t.createElementVNode("td",null,t.toDisplayString(l.fo),1),t.createElementVNode("td",null,t.toDisplayString(l.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((T=a.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[d.editable?(t.openBlock(),t.createBlock(g,{key:0,modelValue:d.remarks,"onUpdate:modelValue":e[0]||(e[0]=l=>d.remarks=l),class:"editor",height:"120px",onBlur:e[1]||(e[1]=l=>i.handleCommit(l))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...l)=>i.handleEdit&&i.handleEdit(...l)),innerHTML:d.remarks},null,40,gM))],2)],2),t.createElementVNode("div",IM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,bt,ht,Yt,ft,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,ut,Kt,qt,$t,F,ee,oe,ie,ne,de,re,se,ce,Ne,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,be,Oe,Ce,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,$a,va,m,u,vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,ca,Na,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,ba,Oa,Ca,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,tl,el,al,ll,ol,il,nl,dl,rl,sl,cl,Nl,Ml,Dl,gl,Il,El,Vl,xl,pl,zl,jl,Sl,Ul,kl,bl,Ol,Cl,hl,Yl,fl,Ql,wl,Rl,M,Bl,Fl,Gl,Pl,Wl,Ll,Zl,Hl,ml,ul,Kl,ql,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,co,No,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,So,Uo,ko,bo,Oo,Co,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,uo,Ko,qo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,ci,Ni,Mi,mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,bi,Oi,Ci,hi,Yi,fi,Qi,wi,Ri,Bi,Fi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,ui,s,dt,rt,st,ct,Nt,_l,Jl,Xl,xe,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,cn,Nn,Mn,mn,Dn;return t.openBlock(),t.createElementBlock("div",{key:y,class:"segment-block"},[t.createElementVNode("div",EM,[t.createElementVNode("div",yM,"Voyage Analysis Seg. "+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(Mt,qi)=>{var Al,Ki,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",AM,[(Al=Mt==null?void 0:Mt.departure)!=null&&Al.portName?(t.openBlock(),t.createElementBlock("span",TM,t.toDisplayString((Ki=Mt==null?void 0:Mt.departure)==null?void 0:Ki.portName),1)):(t.openBlock(),t.createElementBlock("span",VM,t.toDisplayString(i.computeLat((gn=Mt==null?void 0:Mt.departure)==null?void 0:gn.lat).pretty)+", "+t.toDisplayString(i.computeLng((In=Mt==null?void 0:Mt.departure)==null?void 0:In.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((En=Mt==null?void 0:Mt.departure)==null?void 0:En.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",xM,[(yn=Mt==null?void 0:Mt.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",pM,t.toDisplayString((An=Mt==null?void 0:Mt.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString(i.computeLat((Tn=Mt==null?void 0:Mt.arrival)==null?void 0:Tn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Vn=Mt==null?void 0:Mt.arrival)==null?void 0:Vn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((xn=Mt==null?void 0:Mt.arrival)==null?void 0:xn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",jM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",SM,t.toDisplayString((A=(k=l==null?void 0:l.goodWx)==null?void 0:k.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",UM,t.toDisplayString((z=(V=l==null?void 0:l.goodWx)==null?void 0:V.inEca)==null?void 0:z.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(E=l==null?void 0:l.allWx)==null?void 0:E.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(p=l==null?void 0:l.allWx)==null?void 0:p.inEca)==null?void 0:S.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",kM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",bM,t.toDisplayString((U=(h=l==null?void 0:l.goodWx)==null?void 0:h.inEca)==null?void 0:U.time),1),t.createElementVNode("td",null,t.toDisplayString((f=(b=l==null?void 0:l.allWx)==null?void 0:b.outEca)==null?void 0:f.time),1),t.createElementVNode("td",null,t.toDisplayString((B=(Q=l==null?void 0:l.allWx)==null?void 0:Q.inEca)==null?void 0:B.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",OM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",CM,t.toDisplayString(((L=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:L.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Y=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:Y.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((X=(J=l==null?void 0:l.allWx)==null?void 0:J.inEca)==null?void 0:X.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((($=(q=l==null?void 0:l.goodWx)==null?void 0:q.outEca)==null?void 0:$.sumFoCons)||"--"),1),t.createElementVNode("td",YM,t.toDisplayString(((tt=(v=l==null?void 0:l.goodWx)==null?void 0:v.inEca)==null?void 0:tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=l==null?void 0:l.allWx)==null?void 0:et.outEca)==null?void 0:at.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ot=(lt=l==null?void 0:l.allWx)==null?void 0:lt.inEca)==null?void 0:ot.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((nt=(it=l==null?void 0:l.goodWx)==null?void 0:it.outEca)==null?void 0:nt.avgFoCons)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((gt=(Z=l==null?void 0:l.goodWx)==null?void 0:Z.inEca)==null?void 0:gt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.inEca)==null?void 0:Vt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((pt=(xt=l==null?void 0:l.allWx)==null?void 0:xt.outEca)==null?void 0:pt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((bt=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.inEca)==null?void 0:bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Yt=(ht=l==null?void 0:l.allWx)==null?void 0:ht.outEca)==null?void 0:Yt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(ft=l==null?void 0:l.allWx)==null?void 0:ft.inEca)==null?void 0:Qt.avgDgoCons)||"--"),1)])])]),(wt=l==null?void 0:l.goodWx)!=null&&wt.distance?(t.openBlock(),t.createElementBlock("table",GM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[y],(Mt,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Mt,(Al,Ki)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ki},[Al.goodWx?(t.openBlock(),t.createElementBlock("tr",PM,[t.createElementVNode("td",null,t.toDisplayString(Al.type)+" "+t.toDisplayString(i.computeUTCTime(Al.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(Al),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(Al.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(Al.utc,i.computePrevTime(Al))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",WM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Bt=l==null?void 0:l.goodWx)!=null&&Bt.distance?(t.openBlock(),t.createElementBlock("div",LM,[t.createElementVNode("div",ZM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HM,[(Gt=(Ft=a.report)==null?void 0:Ft.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((ut=(Xt=a.report)==null?void 0:Xt.weather)!=null&&ut.disableCFactor)?(t.openBlock(),t.createElementBlock("span",XM,t.toDisplayString((Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,t.toDisplayString((ne=l==null?void 0:l.goodWx)==null?void 0:ne.pfmSpd)+" (kts)",1)],64)):(re=(de=a.report)==null?void 0:de.weather)!=null&&re.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((se=l==null?void 0:l.goodWx)==null?void 0:se.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgWf)>0?(Ne=l==null?void 0:l.goodWx)==null?void 0:Ne.avgWf:`(${(Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",KM,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",qM,t.toDisplayString((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Wt=(Pt=a.report)==null?void 0:Pt.weather)!=null&&Wt.favorableCur&&((Lt=l==null?void 0:l.goodWx)==null?void 0:Lt.avgCf)>0?(t.openBlock(),t.createElementBlock("span",JM,t.toDisplayString((w=l==null?void 0:l.goodWx)==null?void 0:w.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_M,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)],64))],64)),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",$M,"(Under-performance)")):t.createCommentVNode("",!0),((be=l==null?void 0:l.goodWx)==null?void 0:be.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",tm,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",em,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Be=(Re=a.report)==null?void 0:Re.weather)!=null&&Be.disableCFactor)?(t.openBlock(),t.createElementBlock("label",am,"GW Average Speed")):(Ge=(Fe=a.report)==null?void 0:Fe.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Ye=(he=a.report)==null?void 0:he.weather)!=null&&Ye.favorableCur&&((fe=l==null?void 0:l.goodWx)==null?void 0:fe.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",lm,[t.createElementVNode("div",om,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",im,[(_e=(He=a.report)==null?void 0:He.weather)!=null&&_e.favorableCur&&((Je=l==null?void 0:l.allWx)==null?void 0:Je.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Xa=l==null?void 0:l.allWx)==null?void 0:Xa.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=l==null?void 0:l.allWx)==null?void 0:ua.avgWf)>0?(Ka=l==null?void 0:l.allWx)==null?void 0:Ka.avgWf:`(${(qa=l==null?void 0:l.allWx)==null?void 0:qa.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",dm,t.toDisplayString(($a=l==null?void 0:l.allWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=l==null?void 0:l.allWx)==null?void 0:Xe.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ae=l==null?void 0:l.allWx)==null?void 0:ae.avgCf)>0?(Wa=l==null?void 0:l.allWx)==null?void 0:Wa.avgCf:`(${(La=l==null?void 0:l.allWx)==null?void 0:La.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=l==null?void 0:l.allWx)==null?void 0:Za.avgWf)>0?(Ha=l==null?void 0:l.allWx)==null?void 0:Ha.avgWf:`(${(_a=l==null?void 0:l.allWx)==null?void 0:_a.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nm,t.toDisplayString((Ja=l==null?void 0:l.allWx)==null?void 0:Ja.pfmSpd)+" (kts)",1)],64)),((va=l==null?void 0:l.allWx)==null?void 0:va.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",rm,"(Under-performance)")):t.createCommentVNode("",!0),((m=l==null?void 0:l.allWx)==null?void 0:m.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",sm,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",cm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[(vt=(u=a.report)==null?void 0:u.weather)!=null&&vt.favorableCur&&((te=l==null?void 0:l.allWx)==null?void 0:te.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),(Ve=(le=a.report)==null?void 0:le.weather)!=null&&Ve.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Dm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",gm,[t.createElementVNode("div",Im,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",null,t.toDisplayString((Ke=(ue=a.report)==null?void 0:ue.weather)!=null&&Ke.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($e=(qe=l==null?void 0:l.extend)==null?void 0:qe.cp)==null?void 0:$e.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((ta=(ve=a.report)==null?void 0:ve.weather)!=null&&ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(aa=(ea=l==null?void 0:l.extend)==null?void 0:ea.cp)==null?void 0:aa.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(oa=(la=l==null?void 0:l.extend)==null?void 0:la.cp)==null?void 0:oa.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",Sm,[t.createElementVNode("div",null,t.toDisplayString((na=(ia=a.report)==null?void 0:ia.weather)!=null&&na.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ra=(da=l==null?void 0:l.extend)==null?void 0:da.cp)==null?void 0:ra.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-b771f190><div class="flex-space" style="width:300px;font-weight:400;" data-v-b771f190><label data-v-b771f190>Time Lost</label><div data-v-b771f190>=</div><div data-v-b771f190>(a)</div><div data-v-b771f190>-</div><div data-v-b771f190>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-b771f190><label data-v-b771f190>Time Gained</label><div data-v-b771f190>=</div><div data-v-b771f190>(c)</div><div data-v-b771f190>-</div><div data-v-b771f190>(a)</div></div></div>',1))]),t.createElementVNode("div",Um,[t.createElementVNode("div",km,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ca=(sa=l==null?void 0:l.extend)==null?void 0:sa.cp)==null?void 0:ca.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",bm,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ma=(Na=l==null?void 0:l.extend)==null?void 0:Na.cp)==null?void 0:Ma.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Om,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Da=(ma=l==null?void 0:l.extend)==null?void 0:ma.cp)==null?void 0:Da.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ia=(ga=l==null?void 0:l.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+" kts) ",1)])]),(Ea=l==null?void 0:l.goodWx)!=null&&Ea.distance?(t.openBlock(),t.createElementBlock("div",Cm,[t.createElementVNode("div",hm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Ym,[t.createElementVNode("div",fm,[t.createElementVNode("div",null,t.toDisplayString((Aa=(ya=a.report)==null?void 0:ya.weather)!=null&&Aa.noExtrapolation?(Ta=l==null?void 0:l.goodWx)==null?void 0:Ta.distance:(Va=l==null?void 0:l.allWx)==null?void 0:Va.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((xa=l==null?void 0:l.goodWx)==null?void 0:xa.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((pa=l==null?void 0:l.timeConclusion)==null?void 0:pa.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ja=(za=l==null?void 0:l.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((Ua=(Sa=a.report)==null?void 0:Sa.weather)!=null&&Ua.noExtrapolation?(ka=l==null?void 0:l.goodWx)==null?void 0:ka.distance:(ba=l==null?void 0:l.allWx)==null?void 0:ba.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Oa=l==null?void 0:l.timeConclusion)==null?void 0:Oa.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ca=l==null?void 0:l.timeConclusion)==null?void 0:Ca.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ya=(ha=l==null?void 0:l.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((Qa=(fa=a.report)==null?void 0:fa.weather)!=null&&Qa.noExtrapolation?(wa=l==null?void 0:l.goodWx)==null?void 0:wa.distance:(Ra=l==null?void 0:l.allWx)==null?void 0:Ra.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ba=l==null?void 0:l.timeConclusion)==null?void 0:Ba.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fa=l==null?void 0:l.timeConclusion)==null?void 0:Fa.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Lm,[((Ga=l==null?void 0:l.timeConclusion)==null?void 0:Ga.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Zm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((al=l==null?void 0:l.timeConclusion)==null?void 0:al.timeLost)+" (hrs)",1)])):((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Hm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",_m,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((dl=l==null?void 0:l.timeConclusion)==null?void 0:dl.conclusionStatus)==="Lost"?"lost":((rl=l==null?void 0:l.timeConclusion)==null?void 0:rl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((sl=l==null?void 0:l.timeConclusion)==null?void 0:sl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Jm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Xm,[t.createElementVNode("div",um,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(Nl=(cl=a.report)==null?void 0:cl.weather)!=null&&Nl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Km,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",qm,[t.createElementVNode("div",$m,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vm,[t.createElementVNode("div",tD,[t.createElementVNode("div",null,t.toDisplayString((Dl=(Ml=a.report)==null?void 0:Ml.weather)!=null&&Dl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",eD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Il=(gl=l.extend)==null?void 0:gl.cp)==null?void 0:Il.dgo)>0?(t.openBlock(),t.createElementBlock("div",aD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",lD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oD,[t.createElementVNode("div",iD,[t.createElementVNode("div",null,t.toDisplayString((Vl=(El=a.report)==null?void 0:El.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pl=(xl=l==null?void 0:l.extend)==null?void 0:xl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",nD,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((jl=(zl=a.report)==null?void 0:zl.weather)!=null&&jl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Sl=l==null?void 0:l.extend)==null?void 0:Sl.cp)==null?void 0:Ul.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-b771f190><div class="flex-space" style="width:240px;" data-v-b771f190><label data-v-b771f190>Fuel Over-consumption</label><div data-v-b771f190>=</div><div data-v-b771f190>(d)</div><div data-v-b771f190>-</div><div data-v-b771f190>(e)</div></div><div class="flex-space" style="width:200px;" data-v-b771f190><label data-v-b771f190>Fuel Saving</label><div data-v-b771f190>=</div><div data-v-b771f190>(f)</div><div data-v-b771f190>-</div><div data-v-b771f190>(d)</div></div></div>',1)),((bl=(kl=l.extend)==null?void 0:kl.cp)==null?void 0:bl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",ND,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",MD,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",mD,[t.createElementVNode("div",DD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=(hl=a.report)==null?void 0:hl.weather)!=null&&Yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",gD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(fl=l==null?void 0:l.goodWx)!=null&&fl.distance?(t.openBlock(),t.createElementBlock("div",ID,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",ED,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((M=(Rl=l==null?void 0:l.goodWx)==null?void 0:Rl.inEca)==null?void 0:M.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=l==null?void 0:l.extend)==null?void 0:Bl.cp)==null?void 0:Fl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",VD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(ml=l==null?void 0:l.goodWx)==null?void 0:ml.distance:(ul=l==null?void 0:l.allWx)==null?void 0:ul.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ql=l==null?void 0:l.goodWx)==null?void 0:ql.sumFoCons),1),((vl=($l=l==null?void 0:l.goodWx)==null?void 0:$l.inEca)==null?void 0:vl.distance)>0?(t.openBlock(),t.createElementBlock("span",jD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((eo=(to=l==null?void 0:l.fuelConclusion)==null?void 0:to.fo)==null?void 0:eo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=l.fuelConclusion)==null?void 0:lo.fo)==null?void 0:oo.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",SD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",UD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((no=(io=a.report)==null?void 0:io.weather)!=null&&no.noExtrapolation?(ro=l==null?void 0:l.goodWx)==null?void 0:ro.distance:(so=l==null?void 0:l.allWx)==null?void 0:so.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((co=l==null?void 0:l.timeConclusion)==null?void 0:co.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(No=l==null?void 0:l.fuelConclusion)==null?void 0:No.fo)==null?void 0:Mo.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l.fuelConclusion)==null?void 0:mo.fo)==null?void 0:Do.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",OD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.report)==null?void 0:go.weather)!=null&&Io.noExtrapolation?(Eo=l==null?void 0:l.goodWx)==null?void 0:Eo.distance:(yo=l==null?void 0:l.allWx)==null?void 0:yo.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((Vo=(To=l==null?void 0:l.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=l.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",fD,[((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",QD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(So=l==null?void 0:l.fuelConclusion)==null?void 0:So.fo)==null?void 0:Uo.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((bo=(ko=l==null?void 0:l.fuelConclusion)==null?void 0:ko.fo)==null?void 0:bo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=l==null?void 0:l.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:Co.overCons),1)]),(Yo=(ho=l==null?void 0:l.goodWx)==null?void 0:ho.inEca)!=null&&Yo.distance?(t.openBlock(),t.createElementBlock("div",wD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l==null?void 0:l.goodWx)==null?void 0:fo.inEca)==null?void 0:Qo.distance)+" * "+t.toDisplayString((Ro=(wo=l==null?void 0:l.fuelConclusion)==null?void 0:wo.fo)==null?void 0:Ro.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Fo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",BD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l==null?void 0:l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:uo.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(Ko=l==null?void 0:l.fuelConclusion)==null?void 0:Ko.fo)==null?void 0:qo.saving)+" (mt)",1)]),(vo=($o=l==null?void 0:l.goodWx)==null?void 0:$o.inEca)!=null&&vo.distance?(t.openBlock(),t.createElementBlock("div",FD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",null,t.toDisplayString((ei=(ti=a.report)==null?void 0:ti.weather)!=null&&ei.noExtrapolation?(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)==null?void 0:li.distance:(ii=(oi=l==null?void 0:l.allWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(ci=l==null?void 0:l.goodWx)==null?void 0:ci.distance:(Ni=l==null?void 0:l.allWx)==null?void 0:Ni.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Over"?"flex-center lost":((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",PD,t.toDisplayString(d.noGoodWxDay),1)),((Vi=(Ti=l==null?void 0:l.extend)==null?void 0:Ti.cp)==null?void 0:Vi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",WD,[t.createElementVNode("div",LD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",ZD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",HD,[t.createElementVNode("div",_D,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",XD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(ji=l==null?void 0:l.goodWx)==null?void 0:ji.distance:(Si=l==null?void 0:l.allWx)==null?void 0:Si.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ui=l==null?void 0:l.goodWx)==null?void 0:Ui.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ki=l==null?void 0:l.goodWx)==null?void 0:ki.sumDgoCons),1),((Oi=(bi=l==null?void 0:l.goodWx)==null?void 0:bi.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",KD,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((hi=(Ci=l==null?void 0:l.fuelConclusion)==null?void 0:Ci.fo)==null?void 0:hi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qi=(fi=l.fuelConclusion)==null?void 0:fi.dgo)==null?void 0:Qi.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",qD,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",vD,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Bi=l==null?void 0:l.goodWx)==null?void 0:Bi.distance:(Fi=l==null?void 0:l.allWx)==null?void 0:Fi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",tg,[t.createElementVNode("div",null,t.toDisplayString((Wi=(Pi=l==null?void 0:l.fuelConclusion)==null?void 0:Pi.dgo)==null?void 0:Wi.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zi=(Li=l.fuelConclusion)==null?void 0:Li.dgo)==null?void 0:Zi.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",eg,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((_i=(Hi=a.report)==null?void 0:Hi.weather)!=null&&_i.noExtrapolation?(Ji=l==null?void 0:l.goodWx)==null?void 0:Ji.distance:(Xi=l==null?void 0:l.allWx)==null?void 0:Xi.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ui=l==null?void 0:l.timeConclusion)==null?void 0:ui.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((dt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.dgo)==null?void 0:dt.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=(rt=l.fuelConclusion)==null?void 0:rt.dgo)==null?void 0:st.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",ig,[((Nt=(ct=l==null?void 0:l.fuelConclusion)==null?void 0:ct.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=(_l=l==null?void 0:l.fuelConclusion)==null?void 0:_l.dgo)==null?void 0:Jl.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xe=(Xl=l==null?void 0:l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:xe.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vi=($i=l==null?void 0:l.fuelConclusion)==null?void 0:$i.dgo)==null?void 0:vi.overCons),1)])):((en=(tn=l==null?void 0:l.fuelConclusion)==null?void 0:tn.dgo)==null?void 0:en.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",dg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ln=(an=l==null?void 0:l.fuelConclusion)==null?void 0:an.dgo)==null?void 0:ln.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l==null?void 0:l.fuelConclusion)==null?void 0:on.dgo)==null?void 0:nn.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.dgo)==null?void 0:rn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((cn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.dgo)==null?void 0:cn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(Nn=l==null?void 0:l.fuelConclusion)==null?void 0:Nn.dgo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",rg,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const cg=Pa(cN,[["render",sg],["__scopeId","data-v-b771f190"]]),kj="",Ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?R.LngLatHelper.roundPrecision(o,e):a}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,a,N,d,i,g,r,c,T,l,y;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(a=this.report)==null?void 0:a.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((i=(d=this.report)==null?void 0:d.weather)==null?void 0:i.showSig)??!0,this.showSwell=((r=(g=this.report)==null?void 0:g.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((y=(l=this.report)==null?void 0:l.weather)==null?void 0:y.waterTempSwitch)||!1}}},Mg={class:"report-inventory"},mg={class:"section summary-section"},Dg={class:"summary-block"},gg={class:"orm-report-table inventory-table"},Ig={class:"label",rowspan:"4"},Eg={class:"section inventory-section"},yg={class:"orm-report-table inventory-table detail"},Ag=["colspan"],Tg={key:0,class:"label",colspan:"2"},Vg={key:0,class:"label",rowspan:"2"},xg={key:1,class:"label",rowspan:"2"},pg={key:2,class:"label",rowspan:"2"},zg={key:3,class:"label",colspan:"2"},jg={key:4,class:"label",rowspan:"2"},Sg={key:5,class:"label",colspan:"2"},Ug={key:6,class:"label",rowspan:"2"},kg={key:7,class:"label",rowspan:"2"},bg={key:8,class:"label",rowspan:"2"},Og={key:0,class:"label"},Cg={key:1,class:"label"},hg={key:2,class:"label"},Yg={key:3,class:"label"},fg={class:"summary-tbody"};function Qg(o,e,a,N,d,i){var g;return t.openBlock(),t.createElementBlock("div",Mg,[t.createElementVNode("div",mg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",Dg,[t.createElementVNode("table",gg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((g=a.report)==null?void 0:g.segments,(r,c)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ig,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((l=r==null?void 0:r.allWx)==null?void 0:l.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.goodWx)==null?void 0:z.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.badWx)==null?void 0:p.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.badWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.badWx)==null?void 0:h.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((U=r==null?void 0:r.excluded)==null?void 0:U.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.excluded)==null?void 0:b.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((B=r==null?void 0:r.excluded)==null?void 0:B.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Eg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",yg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,Ag),a.showFactor?(t.openBlock(),t.createElementBlock("th",Tg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",Vg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",xg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),d.showWave?(t.openBlock(),t.createElementBlock("th",pg,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",zg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",jg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",Sg,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ug,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",kg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",bg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),d.showSwell?(t.openBlock(),t.createElementBlock("th",Og,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Cg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",hg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",Yg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,c)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((l=r.noon)==null?void 0:l.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(y=r.meteo)==null?void 0:y.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(k=r.meteo)==null?void 0:k.wind)==null?void 0:A.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(p=(x=r.meteo)==null?void 0:x.wave)==null?void 0:p.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((h=(C=(D=r.meteo)==null?void 0:D.wave)==null?void 0:C.swell)==null?void 0:h.height)??"-"),3)):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((f=(b=(U=r.meteo)==null?void 0:U.wave)==null?void 0:b.sig)==null?void 0:f.height)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(Q=r.meteo)==null?void 0:Q.current)==null?void 0:B.direction)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((G=r.meteo)==null?void 0:G.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((P=r.meteo)==null?void 0:P.cFactor)??"--"),3)):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((W=r.meteo)==null?void 0:W.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((L=r.meteo)==null?void 0:L.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const wg=Pa(Ng,[["render",Qg],["__scopeId","data-v-2182dbc0"]]),bj="",Rg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Sn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Sn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Sn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var y,j,k,A,V,z;let o=[];const e=[],a=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,x)=>{var p,S;x===0&&r.push(E.utc),E.type==="EOSP"&&((p=this.inventory[x+1])==null?void 0:p.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[x+1])==null?void 0:S.utc)),x===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,x)=>{if(x%2===0){const p=K(r[x+1]).diff(K(r[x]),"minute",!0);for(let S=0;S<=p+1;S++)e.push(this.computeUTCTime(K(r[x]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,x)=>{var S,D,C,h,U,b,f,Q,B,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(Y=>Y.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(Y=>Y.slice(0,5)!==E.utc.slice(5,10)),o.push(p)),d=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((C=E.cp)==null?void 0:C.fo)>d?(h=E.cp)==null?void 0:h.fo:d),i=Math.ceil(((U=E.noon)==null?void 0:U.dgoCons)>i?(b=E.noon)==null?void 0:b.dgoCons:i),i=Math.ceil(((f=E.cp)==null?void 0:f.dgo)>i?(Q=E.cp)==null?void 0:Q.dgo:i),a.push([p,(B=E.noon)==null?void 0:B.avgSpd,(G=E.noon)==null?void 0:G.foCons,(P=E.noon)==null?void 0:P.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),x<g.length-1){const Y=g[x+1];a.push([p,(W=Y.noon)==null?void 0:W.avgSpd,(L=Y.noon)==null?void 0:L.foCons,(_=Y.noon)==null?void 0:_.dgoCons,Y.avgSpdCalc,Y.cp.speed,Y.goodWx&&!Y.excluded?100:0,Y.cp.dgo,Y.cp.fo,Y.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((E,x)=>x===0||x===o.length-1||x%c===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:d+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(j=(y=this.report)==null?void 0:y.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(T);const l={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(z=this.spdDgoConsChart)==null||z.setOption(l)},renderWxCurrChart(){var k;let o=[];const e=[],a=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((A,V)=>{var z,E;V===0&&g.push(A.utc),A.type==="EOSP"&&((z=i[V+1])==null?void 0:z.type)==="BOSP"&&(g.push(A.utc),g.push((E=i[V+1])==null?void 0:E.utc)),V===i.length-1&&g.push(A.utc)}),g.forEach((A,V)=>{if(V%2===0){const z=K(g[V+1]).diff(K(g[V]),"minute",!0);for(let E=0;E<=z+1;E++)e.push(this.computeUTCTime(K(g[V]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((A,V)=>{var E,x,p,S,D,C,h,U,b,f,Q,B,G,P,W,L,_,Y,J,X,q,$,v,tt,et,at,lt,ot,it,nt;const z=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(Z=>Z.slice(0,5)===A.utc.slice(5,10))&&o.push(z),V===i.length-1&&(o=o.filter(Z=>Z.slice(0,5)!==A.utc.slice(5,10)),o.push(z)),d=Math.ceil(((p=(x=(E=A.meteo)==null?void 0:E.wave)==null?void 0:x.sig)==null?void 0:p.height)>d?(C=(D=(S=A.meteo)==null?void 0:S.wave)==null?void 0:D.sig)==null?void 0:C.height:d),a.push([z,((h=A.noon)==null?void 0:h.windBF)||((b=(U=A.meteo)==null?void 0:U.wind)==null?void 0:b.scale),(Q=(f=A.meteo)==null?void 0:f.wind)==null?void 0:Q.scale,(G=(B=A.meteo)==null?void 0:B.wind)==null?void 0:G.direction,(P=A.noon)==null?void 0:P.seasHt,(_=(L=(W=A.meteo)==null?void 0:W.wave)==null?void 0:L.sig)==null?void 0:_.height,A.dailyAvgCf??((Y=a[a.length-1])==null?void 0:Y[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<i.length-1){const Z=i[V+1];a.push([z,((J=A.noon)==null?void 0:J.windBF)||((q=(X=A.meteo)==null?void 0:X.wind)==null?void 0:q.scale),(v=($=Z.meteo)==null?void 0:$.wind)==null?void 0:v.scale,(et=(tt=Z.meteo)==null?void 0:tt.wind)==null?void 0:et.direction,(at=Z.noon)==null?void 0:at.seasHt,(it=(ot=(lt=A.meteo)==null?void 0:lt.wave)==null?void 0:ot.sig)==null?void 0:it.height,Z.dailyAvgCf??((nt=a[a.length-1])==null?void 0:nt[N.anlyCurFct]),Z.goodWx&&!Z.excluded?20:0,Z.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%r===0);let c=-2.5,T=2.5,l=1,y=5;c<-2.5||T>2.5?(c=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,l=Math.ceil(Math.max([Math.abs(c),Math.abs(T)])/5),y=Math.ceil(Math.abs(c)/l)+Math.ceil(Math.abs(T)/l)):(l=.5,c=Math.floor(this.findMinValue(a,6)/.5)*l,T=2.5,y=Math.abs(c)/l+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:l,splitNumber:y,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:y,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:y,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(j)},findMaxValue(o,e){let a=-1/0;for(let N=0;N<o.length;N++){const d=o[N];if(d.length>=e+1){const i=d[e];typeof i=="number"&&!isNaN(i)&&Number(i)>a&&(a=i)}}return a},findMinValue(o,e){let a=1/0;for(let N=0;N<o.length;N++){const d=o[N];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},Bg={class:"report-summary"},Fg={class:"section chart-section"},Gg={class:"chart-block"},Pg={ref:"spdFoConsChart",class:"chart"},Wg={ref:"spdDgoConsChart",class:"chart"},Lg={ref:"currChart",class:"chart"},Zg={class:"section map-section"},Hg={class:"map-block"},_g={class:"flex-space"},Jg={class:"voyage-block bg-blue-light"},Xg={class:"flex-space label-block",style:{width:"100%"}},ug={style:{"text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},qg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},$g={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},vg={class:"flex-space label-block",style:{width:"100%"}},tI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},eI={class:"flex-space label-block",style:{width:"100%"}},aI={key:0,class:"flex-end",style:{flex:"1"}},lI={key:1,class:"flex-end",style:{flex:"1"}},oI={class:"flex-end",style:{width:"160px"}},iI={class:"flex-space label-block",style:{width:"100%"}},nI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},rI={class:"flex-end",style:{width:"160px"}},sI={class:"flex-space label-block",style:{width:"100%"}},cI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},NI=["src"];function MI(o,e,a,N,d,i){var g,r,c,T,l,y,j,k,A,V,z,E,x,p,S,D,C,h,U,b,f,Q;return t.openBlock(),t.createElementBlock("div",Bg,[t.createElementVNode("div",Fg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,null,512),t.createElementVNode("div",Wg,null,512),t.createElementVNode("div",Lg,null,512)])]),t.createElementVNode("div",Zg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Hg,[t.createElementVNode("div",_g,[t.createElementVNode("div",Jg,[t.createElementVNode("div",Xg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",ug,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Kg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",qg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",$g,"("+t.toDisplayString((T=(c=a.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",vg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",tI,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",eI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(j=a.report)==null?void 0:j.departure)!=null&&k.portName?(t.openBlock(),t.createElementBlock("span",aI,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",lI,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",oI,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",iI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(p=(x=a.report)==null?void 0:x.arrival)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",nI,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",rI,t.toDisplayString(i.computeUTCTime((U=(h=a.report)==null?void 0:h.arrival)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",cI,t.toDisplayString((f=(b=a.report)==null?void 0:b.voyage)==null?void 0:f.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-21602fa4><div data-v-21602fa4>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>0812</div><div data-v-21602fa4><div data-v-21602fa4>08 - Day of the month</div><div data-v-21602fa4>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-21602fa4></i></div><div data-v-21602fa4><div data-v-21602fa4>Wind from N (000)</div><div data-v-21602fa4>Each bard = 10 kts</div><div data-v-21602fa4>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>W 4</div><div data-v-21602fa4>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div class="good-wx" data-v-21602fa4>Date</div><div data-v-21602fa4>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=a.report)==null?void 0:Q.chartUrl,alt:""},null,8,NI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-21602fa4><div class="header-block" data-v-21602fa4><div class="bg-block" data-v-21602fa4><i class="iconfont icon-baobiao" data-v-21602fa4></i><div class="block-title" data-v-21602fa4>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>1. Good Weather Method</div><div class="method-body" data-v-21602fa4> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-21602fa4> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-21602fa4> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-21602fa4> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-21602fa4> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>4. “About”</div><div class="method-body" data-v-21602fa4> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-21602fa4> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-21602fa4> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-21602fa4> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-21602fa4> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>6. Further reference materials</div><div class="method-body" data-v-21602fa4>Please send mail to <a href="mailto:op@ormwx.com" data-v-21602fa4>op@ormwx.com</a>.</div></div></div></div>',1))])}const mI=Pa(Rg,[["render",MI],["__scopeId","data-v-21602fa4"]]),Oj="",Cj="",DI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${K(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,a)=>e.date<a.date);o==null||o.forEach((e,a)=>{var c,T;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(y=>{const j=`<p>${y}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const d=document.getElementById("col1"),i=document.getElementById("col2"),g=(d==null?void 0:d.offsetHeight)||0,r=(i==null?void 0:i.offsetHeight)||0;if(g<=r){let y=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
2
2
  <div class="vrpt-date">Date: ${e.date}</div>
3
3
  <div class="vrpt-from">From: ${e.from}</div>
4
4
  <div class="vrpt-to">To: ${e.to}</div>