@idmui/extend 0.2.1 → 0.2.2

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,$n,nl,qt,zr,Y,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 c=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,c.get?c:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const qn=jr(zr),lS="",Ga=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:$n.Editor,Toolbar:$n.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,c,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]=N=>d.valueHtml=N),"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 dl=Ga(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),Or={install(o){o.component("IdmEditor",dl)}},oS="",Cr={name:"PlanReport",components:{Editor:dl,IdmBrand:nl.IdmBrand,IdmLoading:nl.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`${qt(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,c){let d=0;return a&&e&&(d=Y.LngLatHelper.guessTimeZoneOffset(e,a)),`${qt(o).utcOffset(c??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,c,d,i,g;if(e===0)return"-";{const r=qt((d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.eta).diff(qt((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,c,d,i,g,r,N;if(e===0)return"-";{const T=Number((i=(d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((N=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:N.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 c=0;c<e.length;c++){const d=e[c],i=e[c-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 c=0;c<17;c++)if(c*22.5+e+11.25>=360){let d=(16-c)*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,N;const a=(N=(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:N.hours,c=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(qt(d==null?void 0:d.eta).diff(qt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,c;let e=0;return(c=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||c.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)?"-":Y.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>Y.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>Y.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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},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=qn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,U,k,D,Q,w;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(Q=(D=(k=(U=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:U.speed)==null?void 0:k.sample)==null?void 0:D.hours)==null||Q.forEach(j=>{var R,B,P,L,Z,_,H,J,l,F;const f=j.meteo;if(f){const X=qt(f.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((B=(R=f.wave)==null?void 0:R.sig)==null?void 0:B.height)>c?(L=(P=f.wave)==null?void 0:P.sig)==null?void 0:L.height:c),e.push([X,(Z=f.wind)==null?void 0:Z.kts,(H=(_=f.wave)==null?void 0:_.sig)==null?void 0:H.height,(J=f.wind)==null?void 0:J.direction,(l=f.wind)==null?void 0:l.degree,(F=f.wind)==null?void 0:F.scale,j.cFactor,j.wFactor,j.speed])}});const d=Math.max(...e.map(j=>j[a.speed])),i=Math.max(...e.map(j=>j[a.windSpeed])),g=Math.min(...e.map(j=>j[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(j=>j[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(j=>j[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,A=Math.ceil(c/5/.5)*.5,V=Math.ceil((r-g)/5/.5)*.5,C=5*N,h=5*T,y=5*A,x=5*V,O={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:C,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:h,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:y,splitNumber:5,interval:A,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:x,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,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:!0,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:!0,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:!0,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}]};(w=this.echart)==null||w.setOption(O)}}},fr={class:"orm-plan-report"},hr={key:0,class:"loading-block"},Yr={class:"info-block"},Qr={class:"col"},wr={class:"label-block"},Rr={class:"text"},Br={class:"label-block"},Fr={class:"text"},Gr={class:"label-block"},Pr={class:"text"},Wr={class:"col"},Lr={class:"label-block"},Zr={key:0},_r={key:1},Hr={style:{"margin-left":"16px"}},Jr={class:"label-block"},Xr={key:0},Kr={key:1},qr={style:{"margin-left":"16px"}},ur={class:"label-block"},$r={class:"text"},vr={class:"section chart-section"},ts=["src"],es={class:"legends text-tips"},as={class:"legend"},ls={key:0,class:"legend"},os={key:1,class:"legend"},is={key:1,class:"empty"},ns={class:"section comparison-section"},ds={key:0,class:"orm-report-table",style:{"font-size":"12px"}},rs={key:0},ss=["rowspan"],Ns={key:0},cs={key:1},Ms={rowspan:"2"},ms={rowspan:"2"},Ds={key:0},gs={key:1},Is={rowspan:"1"},Es={key:0},ys={rowspan:"2"},As={rowspan:"2"},bs={rowspan:"2"},Ts={key:0},Vs={key:0},xs=["rowspan"],ps={key:0},zs={rowspan:"1"},js={key:0},Ss={key:0},Us={key:1},ks={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Os={key:0},Cs={class:"section waypoint-section"},fs={class:"header-block"},hs={class:"bg-block"},Ys={class:"title"},Qs={key:0,class:"flex-end",style:{flex:"1"}},ws=["onClick"],Rs={class:"advisory bg-blue-light-2"},Bs=["innerHTML"],Fs={class:"major-waypoint"},Gs={class:"major-body"},Ps={class:"cell-item flex",style:{flex:"2.5"}},Ws={key:0,class:"flex-center"},Ls={key:1,class:"flex-center"},Zs={key:0,style:{"margin-left":"3px"}},_s={class:"cell-item flex",style:{flex:"1.5"}},Hs={key:0,style:{"margin-left":"4px","font-weight":"600"}},Js={key:0,class:"cell-item flex offset"},Xs={key:1,class:"cell-item flex nbsp"},Ks={key:2,class:"cell-item flex offset"},qs={key:3,class:"cell-item flex nbsp"},us={key:4,class:"cell-item flex offset"},$s={key:5,class:"cell-item flex nbsp"},vs={key:6,class:"cell-item flex offset"},tN={key:7,class:"cell-item flex nbsp"},eN={key:8,class:"cell-item flex offset"},aN={key:9,class:"cell-item flex nbsp"},lN={class:"section forecast-section"},oN={style:{"page-break-inside":"avoid"}},iN={class:"header-block"},nN={class:"bg-block"},dN={class:"title"},rN={key:0,class:"flex-end",style:{flex:"1"}},sN=["onClick"],NN={class:"echart-block"},cN={ref:"echart",class:"echart"},MN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},mN={class:"orm-report-table",style:{"font-size":"12px"}},DN=["colspan"],gN={key:0},IN={class:"flex-center"},EN={class:"degree-box"},yN={key:0},AN={key:2},bN={key:0},TN={class:"degree-box"},VN={key:0},xN={key:2},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={class:"degree-box"},UN={key:0},kN={key:2};function ON(o,e,a,c,d,i){var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J,l,F,X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt,z,ut,b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt,$t,G,vt,le,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ve,xe,pe,ze,je,Se,I,Ue,ke,Oe,Ce,fe,he,Ye,Qe,ae,Pa,Wa,La,Za,_a,Ha,Ja,Xa;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",fr,[t.createVNode(g,{name:"Voyage Planning",issued:(T=a.plan)==null?void 0:T.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",hr,[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",Yr,[t.createElementVNode("div",Qr,[t.createElementVNode("div",wr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Rr,t.toDisplayString((C=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.company)==null?void 0:C.name),1)]),t.createElementVNode("div",Br,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Fr,t.toDisplayString((x=(y=(h=a.plan)==null?void 0:h.voyage)==null?void 0:y.vessel)==null?void 0:x.name)+" ("+t.toDisplayString((U=(p=(E=(O=a.plan)==null?void 0:O.voyage)==null?void 0:E.vessel)==null?void 0:p.vesselType)==null?void 0:U.name)+")",1)]),t.createElementVNode("div",Gr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Pr,t.toDisplayString(((D=(k=a.plan)==null?void 0:k.voyage)==null?void 0:D.voyNum)||((w=(Q=a.plan)==null?void 0:Q.voyage)==null?void 0:w.number)),1)])]),t.createElementVNode("div",Wr,[t.createElementVNode("div",Lr,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(R=(f=(j=a.plan)==null?void 0:j.leg)==null?void 0:f.departure)!=null&&R.name?(t.openBlock(),t.createElementBlock("span",Zr,t.toDisplayString((L=(P=(B=a.plan)==null?void 0:B.leg)==null?void 0:P.departure)==null?void 0:L.name),1)):(t.openBlock(),t.createElementBlock("span",_r,t.toDisplayString(i.computePosition((_=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:_.departure)),1)),t.createElementVNode("span",Hr,t.toDisplayString(i.computeUTCTime(((l=(J=(H=a.plan)==null?void 0:H.leg)==null?void 0:J.departure)==null?void 0:l.atd)||((K=(X=(F=a.plan)==null?void 0:F.leg)==null?void 0:X.departure)==null?void 0:K.etd)||((v=($=(u=(q=a.plan)==null?void 0:q.speeds)==null?void 0:u[d.speedIndex])==null?void 0:$.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",Jr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(at=(et=(tt=a.plan)==null?void 0:tt.leg)==null?void 0:et.destination)!=null&&at.name?(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString((W=(ot=(lt=a.plan)==null?void 0:lt.leg)==null?void 0:ot.destination)==null?void 0:W.name),1)):(t.openBlock(),t.createElementBlock("span",Kr,t.toDisplayString(i.computePosition((st=(rt=a.plan)==null?void 0:rt.leg)==null?void 0:st.destination)),1)),t.createElementVNode("span",qr,t.toDisplayString(i.computeUTCTime(((mt=(Mt=(ct=(Nt=a.plan)==null?void 0:Nt.speeds)==null?void 0:ct[d.speedIndex])==null?void 0:Mt.speed)==null?void 0:mt.ata)||((Et=(It=(gt=(Dt=a.plan)==null?void 0:Dt.speeds)==null?void 0:gt[d.speedIndex])==null?void 0:It.speed)==null?void 0:Et.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",ur,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",$r,t.toDisplayString((At=(yt=a.plan)==null?void 0:yt.voyage)==null?void 0:At.loadCondition),1)])])]),t.createElementVNode("div",vr,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(bt=a.plan)!=null&&bt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ts)]),t.createElementVNode("div",es,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-60377380><span class="dangerous" data-v-60377380></span><span data-v-60377380>Danger</span></div><div class="legend" data-v-60377380><span class="severe" data-v-60377380></span><span data-v-60377380>Severe</span></div><div class="legend" data-v-60377380><span class="heavy" data-v-60377380></span><span data-v-60377380>Heavy</span></div>',3)),t.createElementVNode("div",as,[e[14]||(e[14]=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=(pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[0])==null?void 0:xt.speed)==null?void 0:pt.lane)==null?void 0:zt.name),1)]),((St=(jt=a.plan)==null?void 0:jt.speeds)==null?void 0:St.length)>1?(t.openBlock(),t.createElementBlock("div",ls,[e[15]||(e[15]=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((ft=(Ct=(Ot=(kt=(Ut=a.plan)==null?void 0:Ut.speeds)==null?void 0:kt[1])==null?void 0:Ot.speed)==null?void 0:Ct.lane)==null?void 0:ft.name),1)])):t.createCommentVNode("",!0),((Yt=(ht=a.plan)==null?void 0:ht.speeds)==null?void 0:Yt.length)>2?(t.openBlock(),t.createElementBlock("div",os,[e[16]||(e[16]=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((b=(ut=(z=(wt=(Qt=a.plan)==null?void 0:Qt.speeds)==null?void 0:wt[2])==null?void 0:z.speed)==null?void 0:ut.lane)==null?void 0:b.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",is,[t.createElementVNode("span",null,[e[18]||(e[18]=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[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ns,[(S=(n=a.plan)==null?void 0:n.speeds)!=null&&S.length?(t.openBlock(),t.createElementBlock("table",ds,[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",rs,[...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,ss),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",Ns,[...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",cs,[...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((it=a.plan)==null?void 0:it.speeds,(M,nt)=>{var te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa;return t.openBlock(),t.createElementBlock(t.Fragment,{key:nt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ms,t.toDisplayString(nt+1),1),t.createElementVNode("td",ms,t.toDisplayString((ee=(te=M.speed)==null?void 0:te.lane)==null?void 0:ee.name),1),t.createElementVNode("td",null,[M.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Ds,t.toDisplayString(`CP ${((we=(Ae=M.speed)==null?void 0:Ae.cpCopy)==null?void 0:we.speed)??((Re=M.speed)==null?void 0:Re.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",gs,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Ge=(Fe=(Be=M.speed)==null?void 0:Be.extend)==null?void 0:Fe.cps[0])==null?void 0:Ge.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=M.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[1])==null?void 0:Le.speed),1)]))]),t.createElementVNode("td",Is,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ze=M.speed)==null?void 0:Ze.distance,0)),1),(He=(_e=M.speed)==null?void 0:_e.extend)!=null&&He.distanceInECA?(t.openBlock(),t.createElementBlock("span",Es," ("+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((Je=M.speed)==null?void 0:Je.eta,(qe=(Ke=(Xe=a.plan)==null?void 0:Xe.leg)==null?void 0:Ke.destination)==null?void 0:qe.lng,(ve=($e=(ue=a.plan)==null?void 0:ue.leg)==null?void 0:$e.destination)==null?void 0:ve.lat,(oa=(la=(aa=(ea=(ta=a.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.port)==null?void 0:la.timezone)==null?void 0:oa.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((ia=M.speed)==null?void 0:ia.eta)),1)]),t.createElementVNode("td",ys,t.toDisplayString(i.computeSuspend(M.speed)),1),t.createElementVNode("td",As,t.toDisplayString(i.roundPrecision((na=M.speed)==null?void 0:na.totalFoCons,3)),1),t.createElementVNode("td",bs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((da=M.speed)==null?void 0:da.totalDgoCons,3)),1),(sa=(ra=M.speed)==null?void 0:ra.extend)!=null&&sa.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Ts," + "+t.toDisplayString(i.roundPrecision((Na=M.speed.extend)==null?void 0:Na.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",Vs,t.toDisplayString((ma=i.roundPrecision(((Ma=(ca=M==null?void 0:M.speed)==null?void 0:ca.cost)==null?void 0:Ma.total)/1e3,2))==null?void 0:ma.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,nt)),9,xs),e[41]||(e[41]=t.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((Da=M.speed)==null?void 0:Da.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",ps,"FO: "+t.toDisplayString((Ia=(ga=M.speed)==null?void 0:ga.cpCopy)==null?void 0:Ia.fo)+" / DO: "+t.toDisplayString((ya=(Ea=M.speed)==null?void 0:Ea.cpCopy)==null?void 0:ya.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((ba=(Aa=M.speed)==null?void 0:Aa.extend)==null?void 0:ba.cps[0].fo)+" / "+t.toDisplayString((Va=(Ta=M.speed)==null?void 0:Ta.extend)==null?void 0:Va.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((pa=(xa=M.speed)==null?void 0:xa.extend)==null?void 0:pa.cps[0].dgo)+" / "+t.toDisplayString((ja=(za=M.speed)==null?void 0:za.extend)==null?void 0:ja.cps[1].dgo),1)],64))]),t.createElementVNode("td",zs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Sa=M.speed)==null?void 0:Sa.totalHrs,1)),1),(ka=(Ua=M.speed)==null?void 0:Ua.extend)!=null&&ka.hoursInECA?(t.openBlock(),t.createElementBlock("span",js," ("+t.toDisplayString(i.roundPrecision(M.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Oa=M.speed)==null?void 0:Oa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((Ca=M.speed)==null?void 0:Ca.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((fa=M.speed)==null?void 0:fa.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Ss,t.toDisplayString(i.roundPrecision(((Ya=(ha=M==null?void 0:M.speed)==null?void 0:ha.cost)==null?void 0:Ya.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((wa=(Qa=M==null?void 0:M.speed)==null?void 0:Qa.cost)==null?void 0:wa.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Us,t.toDisplayString(i.computeCostDiff(a.plan,nt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((Ra=M.speed)==null?void 0:Ra.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Ba=M.speed)==null?void 0:Ba.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Fa=M.speed)==null?void 0:Fa.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",ks,[e[43]||(e[43]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[44]||(e[44]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",Os,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Ft=i.roundPrecision((Bt=(Rt=a.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.dailyHire,0))==null?void 0:Ft.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((Wt=i.roundPrecision((Pt=(Gt=a.plan)==null?void 0:Gt.voyage)==null?void 0:Pt.priceFO,0))==null?void 0:Wt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((vt=i.roundPrecision((G=($t=a.plan)==null?void 0:$t.voyage)==null?void 0:G.priceDGO,0))==null?void 0:vt.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[42]||(e[42]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[45]||(e[45]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[46]||(e[46]=t.createElementVNode("br",null,null,-1)),e[47]||(e[47]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Cs,[t.createElementVNode("div",fs,[t.createElementVNode("div",hs,[e[48]||(e[48]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Ys,"Advisory & Major Waypoint of Route "+t.toDisplayString((ne=(ie=(oe=(le=a.plan.speeds)==null?void 0:le[d.speedIndex])==null?void 0:oe.speed)==null?void 0:ie.lane)==null?void 0:ne.name),1),((re=(de=a.plan)==null?void 0:de.speeds)==null?void 0:re.length)>1?(t.openBlock(),t.createElementBlock("div",Qs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((se=a.plan)==null?void 0:se.speeds,(M,nt)=>{var te,ee;return t.openBlock(),t.createElementBlock("div",{key:nt,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===nt?"active":""]),onClick:Ae=>{d.speedIndex=nt,i.renderEchart()}},t.toDisplayString((ee=(te=M.speed)==null?void 0:te.lane)==null?void 0:ee.name),11,ws)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rs,[d.editable?(t.openBlock(),t.createBlock(N,{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,Bs))]),t.createElementVNode("div",Fs,[e[49]||(e[49]=t.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-60377380><div class="cell-item flex" style="flex:2.5;" data-v-60377380>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-60377380>Time</div><div class="cell-item flex" data-v-60377380>Nav</div><div class="cell-item flex" data-v-60377380>Dist <span class="text-units" data-v-60377380>(nm)</span></div><div class="cell-item flex" data-v-60377380>SOG <span class="text-units" data-v-60377380>(kts)</span></div><div class="cell-item flex" data-v-60377380>COG <span class="text-units" data-v-60377380>(°)</span></div><div class="cell-item flex" data-v-60377380>Memo</div></div>',1)),t.createElementVNode("div",Gs,[(ce=(Ne=a.plan)==null?void 0:Ne.speeds)!=null&&ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ge=(De=(me=(Me=a.plan)==null?void 0:Me.speeds)==null?void 0:me[d.speedIndex])==null?void 0:De.speed)==null?void 0:ge.argv,(xe=(Ve=(ye=(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)==null?void 0:Ee[d.speedIndex])==null?void 0:ye.speed)==null?void 0:Ve.sample)==null?void 0:xe.wps),(M,nt)=>(t.openBlock(),t.createElementBlock("div",{key:nt,class:"cell-row"},[t.createElementVNode("div",Ps,[M.isResume?(t.openBlock(),t.createElementBlock("div",Ws,"Resume")):(t.openBlock(),t.createElementBlock("div",Ls,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(M)),1),M.pilot?(t.openBlock(),t.createElementBlock("span",Zs,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",_s,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(M.eta))+" ",1),M.cp?(t.openBlock(),t.createElementBlock("span",Hs,"[cp: "+t.toDisplayString(M.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),nt?(t.openBlock(),t.createElementBlock("div",Js,t.toDisplayString(i.computeNav(M)),1)):(t.openBlock(),t.createElementBlock("div",Xs)),nt?(t.openBlock(),t.createElementBlock("div",Ks,t.toDisplayString(i.roundPrecision(M.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",qs)),nt?(t.openBlock(),t.createElementBlock("div",us,t.toDisplayString(i.roundPrecision(M.avgSpd??M.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",$s)),nt?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeCog(M.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",tN)),nt?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.computeMemo(M)),1)):(t.openBlock(),t.createElementBlock("div",aN))]))),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",lN,[(ze=(pe=a.plan)==null?void 0:pe.speeds)!=null&&ze.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",oN,[t.createElementVNode("div",iN,[t.createElementVNode("div",nN,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",dN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((ke=(Ue=(I=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:I.speed)==null?void 0:Ue.lane)==null?void 0:ke.name),1),((Ce=(Oe=a.plan)==null?void 0:Oe.speeds)==null?void 0:Ce.length)>1?(t.openBlock(),t.createElementBlock("div",rN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((fe=a.plan)==null?void 0:fe.speeds,(M,nt)=>{var te,ee;return t.openBlock(),t.createElementBlock("div",{key:nt,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===nt?"active":""]),onClick:Ae=>{d.speedIndex=nt,i.renderEchart()}},t.toDisplayString((ee=(te=M==null?void 0:M.speed)==null?void 0:te.lane)==null?void 0:ee.name),11,sN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",NN,[t.createElementVNode("div",cN,null,512)]),t.createElementVNode("div",MN,"* "+t.toDisplayString(i.computeModel((Qe=(Ye=(he=a.plan)==null?void 0:he.speeds)==null?void 0:Ye[d.speedIndex])==null?void 0:Qe.speed)),1)]),e[68]||(e[68]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"8px","font-size":"12px"}}," * Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4. ",-1)),t.createElementVNode("table",mN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(Pa=(ae=a.plan)==null?void 0:ae.voyage)!=null&&Pa.sendRptWithBF?3:2},"Wind",8,DN),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[57]||(e[57]=t.createElementVNode("th",null,"Dir",-1)),e[58]||(e[58]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(La=(Wa=a.plan)==null?void 0:Wa.voyage)!=null&&La.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",gN,"BF")):t.createCommentVNode("",!0),e[59]||(e[59]=t.createElementVNode("th",null,"Dir",-1)),e[60]||(e[60]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),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)),e[67]||(e[67]=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((Xa=(Ja=(Ha=(_a=(Za=a.plan)==null?void 0:Za.speeds)==null?void 0:_a[d.speedIndex])==null?void 0:Ha.speed)==null?void 0:Ja.sample)==null?void 0:Xa.hours,(M,nt)=>{var te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ka,qa,ua,$a,va,el,al,ll,ol,il;return t.openBlock(),t.createElementBlock("tr",{key:nt},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(M.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",IN,t.toDisplayString(i.computeLat(M.lat))+", "+t.toDisplayString(i.computeLng(M.lng)),1)]),t.createElementVNode("td",EN,[(ee=(te=M.meteo)==null?void 0:te.wind)!=null&&ee.kts?(t.openBlock(),t.createElementBlock("span",yN,t.toDisplayString((we=(Ae=M.meteo)==null?void 0:Ae.wind)==null?void 0:we.direction),1)):t.createCommentVNode("",!0),(Be=(Re=M.meteo)==null?void 0:Re.wind)!=null&&Be.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",(Ge=(Fe=M.meteo)==null?void 0:Fe.wind)==null?void 0:Ge.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",AN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((We=(Pe=M==null?void 0:M.meteo)==null?void 0:Pe.wind)==null?void 0:We.scale)>=4?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((Ze=(Le=M.meteo)==null?void 0:Le.wind)==null?void 0:Ze.kts,1)),3),(He=(_e=a.plan)==null?void 0:_e.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bN,t.toDisplayString((Xe=(Je=M.meteo)==null?void 0:Je.wind)==null?void 0:Xe.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ue=(qe=(Ke=M.meteo)==null?void 0:Ke.wave)==null?void 0:qe.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",TN,[(ta=(ve=($e=M.meteo)==null?void 0:$e.wave)==null?void 0:ve.swell)!=null&&ta.height?(t.openBlock(),t.createElementBlock("span",VN,t.toDisplayString((la=(aa=(ea=M.meteo)==null?void 0:ea.wave)==null?void 0:aa.swell)==null?void 0:la.direction),1)):t.createCommentVNode("",!0),(na=(ia=(oa=M.meteo)==null?void 0:oa.wave)==null?void 0:ia.swell)!=null&&na.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(sa=(ra=(da=M.meteo)==null?void 0:da.wave)==null?void 0:ra.swell)==null?void 0:sa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",xN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((Ma=(ca=(Na=M==null?void 0:M.meteo)==null?void 0:Na.wave)==null?void 0:ca.swell)==null?void 0:Ma.height)>=1.5?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((ga=(Da=(ma=M.meteo)==null?void 0:ma.wave)==null?void 0:Da.swell)==null?void 0:ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ya=(Ea=(Ia=M.meteo)==null?void 0:Ia.wave)==null?void 0:Ea.swell)==null?void 0:ya.period,1)),1),t.createElementVNode("td",pN,[(Ta=(ba=(Aa=M.meteo)==null?void 0:Aa.wave)==null?void 0:ba.sig)!=null&&Ta.height?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((pa=(xa=(Va=M.meteo)==null?void 0:Va.wave)==null?void 0:xa.sig)==null?void 0:pa.direction),1)):t.createCommentVNode("",!0),(Sa=(ja=(za=M.meteo)==null?void 0:za.wave)==null?void 0:ja.sig)!=null&&Sa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Oa=(ka=(Ua=M.meteo)==null?void 0:Ua.wave)==null?void 0:ka.sig)==null?void 0:Oa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((ha=(fa=(Ca=M==null?void 0:M.meteo)==null?void 0:Ca.wave)==null?void 0:fa.sig)==null?void 0:ha.height)>=1.5?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((wa=(Qa=(Ya=M.meteo)==null?void 0:Ya.wave)==null?void 0:Qa.sig)==null?void 0:wa.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Fa=(Ba=(Ra=M.meteo)==null?void 0:Ra.wave)==null?void 0:Ba.sig)==null?void 0:Fa.period,1)),1),t.createElementVNode("td",SN,[(qa=(Ka=M.meteo)==null?void 0:Ka.current)!=null&&qa.kts?(t.openBlock(),t.createElementBlock("span",UN,t.toDisplayString(($a=(ua=M.meteo)==null?void 0:ua.current)==null?void 0:$a.direction),1)):t.createCommentVNode("",!0),(el=(va=M.meteo)==null?void 0:va.current)!=null&&el.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(ll=(al=M.meteo)==null?void 0:al.current)==null?void 0:ll.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",kN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((il=(ol=M.meteo)==null?void 0:ol.current)==null?void 0:il.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(M.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[69]||(e[69]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map 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))])}const vn=Ga(Cr,[["render",ON],["__scopeId","data-v-60377380"]]),CN={install(o){o.component("PlanReport",vn)}},iS="",fN={name:"OrmVoyageSummary",components:{Editor:dl},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 qt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=qt(o).diff(qt(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${qt(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 Y.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return Y.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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.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,c)=>{var g,r;a.excluded.detail.forEach(N=>{const T={time:qt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+qt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.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(N=>N.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},hN={class:"report-summary"},YN={class:"info-block"},QN={class:"col"},wN={class:"label-block"},RN={class:"text"},BN={class:"label-block"},FN={class:"text"},GN={class:"label-block"},PN={class:"text"},WN={class:"col"},LN={class:"label-block"},ZN={key:0},_N={key:1},HN={style:{"margin-left":"16px"}},JN={class:"label-block"},XN={key:0},KN={key:1},qN={style:{"margin-left":"16px"}},uN={class:"label-block"},$N={class:"text"},vN={class:"section weather-section"},tc={class:"definition bg-blue-light-2"},ec={style:{"line-height":"1.5"}},ac={class:"section summary-section"},lc={class:"phase-box"},oc={class:"phase-index"},ic={class:"phase-position"},nc={key:0},dc={key:1},rc={class:"phase-position"},sc={key:0},Nc={key:1},cc={class:"phase-cp"},Mc={class:"orm-report-table"},mc={class:"phase-conclusion"},Dc={class:"item-conclusion bg-blue-light-2"},gc={class:"value align-left"},Ic={key:0,class:"text-secondary align-right"},Ec={key:0},yc={key:1},Ac={key:2},bc={key:1,class:"text-secondary"},Tc={key:2,class:"value"},Vc={key:0},xc={class:"gain"},pc={key:1},zc={class:"lost"},jc={key:2},Sc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},kc={key:0,class:"text-secondary"},Oc={key:0},Cc={key:1},fc={key:2},hc={key:1,class:"text-secondary"},Yc={key:2,class:"value"},Qc={key:0},wc={class:"gain"},Rc={key:1},Bc={class:"lost"},Fc={key:2},Gc={class:"item-conclusion bg-blue-light-2"},Pc={class:"value align-left"},Wc={key:0,class:"text-secondary"},Lc={key:0},Zc={key:1},_c={key:2},Hc={key:1,class:"text-secondary"},Jc={key:2,class:"value"},Xc={key:0},Kc={class:"gain"},qc={key:1},uc={class:"lost"},$c={key:2},vc={key:0,class:"exclusion-block"},tM={style:{margin:"8px 0"}},eM={class:"orm-report-table"},aM=["innerHTML"],lM={class:"section segment-section"},oM={class:"segment-summary"},iM={class:"segment-index text-left"},nM={class:"segment-position"},dM={key:0},rM={key:1},sM={class:"segment-position"},NM={key:0},cM={key:1},MM={class:"orm-report-table"},mM={class:"good-wx"},DM={class:"good-wx"},gM={class:"good-wx"},IM={class:"good-wx"},EM={class:"good-wx"},yM={class:"good-wx"},AM={class:"good-wx"},bM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},UM={key:0},kM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},OM={key:2,class:"segment-speed"},CM={class:"row"},fM={class:"speed-right row"},hM={class:"speed"},YM={key:1,class:"speed"},QM={key:0,class:"speed"},wM={class:"speed"},RM={class:"speed"},BM={class:"speed"},FM={key:2,class:"under"},GM={key:3,class:"over"},PM={class:"row"},WM={class:"speed-right formula flex-space"},LM={key:0},ZM={key:3,class:"segment-speed"},_M={class:"row"},HM={class:"speed-right row"},JM={class:"speed"},XM={class:"speed"},KM={key:2,class:"under"},qM={key:3,class:"over"},uM={class:"row"},$M={class:"speed-right formula row"},vM={class:"segment-formula"},tm={class:"sub-title"},em={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},am={class:"formula-block"},lm={class:"formula-item flex-evenly bg-blue-light"},om={class:"formula-right flex-evenly"},im={class:"fraction",style:{width:"240px"}},nm={class:"formula-item flex-center bg-blue-light"},dm={class:"formula-left flex-space"},rm={class:"formula-right flex-evenly"},sm={class:"fraction",style:{width:"240px"}},Nm={class:"formula-item flex-center bg-blue-light"},cm={class:"formula-left flex-space"},Mm={class:"formula-right flex-evenly"},mm={class:"fraction",style:{width:"240px"}},Dm={class:"formula-desc"},gm={class:"flex-end"},Im={class:"flex-end"},Em={class:"flex-end"},ym={key:0,class:"formula-block"},Am={class:"formula-item flex-evenly bg-blue-light"},bm={class:"formula-right flex-evenly"},Tm={class:"fraction",style:{width:"200px"}},Vm={class:"formula-item flex-center bg-blue-light"},xm={class:"formula-left flex-space"},pm={class:"formula-right flex-evenly"},zm={class:"fraction",style:{width:"200px"}},jm={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},Um={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"200px"}},Om={class:"formula-item formula-conclusion bg-blue-light"},Cm={key:0,class:"flex-evenly",style:{width:"500px"}},fm={key:1,class:"flex-evenly",style:{width:"500px"}},hm={class:"flex-center"},Ym={key:1,class:"formula-conclusion bg-blue-light"},Qm={class:"segment-formula"},wm={class:"sub-title"},Rm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Bm={class:"formula-block"},Fm={class:"formula-item flex-evenly bg-blue-light"},Gm={class:"formula-right flex-evenly"},Pm={class:"fraction",style:{width:"240px"}},Wm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},Lm={key:0,class:"flex-end text-tips"},Zm={class:"formula-item flex-center bg-blue-light"},_m={class:"formula-right flex-evenly"},Hm={class:"fraction",style:{width:"200px"}},Jm={class:"formula-item flex-center bg-blue-light"},Xm={class:"formula-right flex-evenly"},Km={class:"fraction",style:{width:"200px"}},qm={class:"formula-item flex-center bg-blue-light"},um={class:"formula-right flex-evenly"},$m={class:"fraction",style:{width:"300px"}},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"300px"}},aD={class:"sub-title"},lD={key:0,class:"formula-block"},oD={key:0,class:"formula-item flex-evenly bg-blue-light"},iD={class:"formula-right flex-evenly"},nD={class:"fraction",style:{width:"60px"}},dD={class:"fraction",style:{width:"60px"}},rD={class:"formula-item flex-evenly bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"150px"}},cD={class:"fraction",style:{width:"150px"}},MD={key:0},mD={class:"formula-item flex-evenly bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"150px"}},ID={class:"fraction",style:{width:"150px"}},ED={class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},TD={class:"formula-item formula-conclusion bg-blue-light"},VD={class:"flex-evenly",style:{width:"500px"}},xD={key:0,class:"flex-evenly"},pD={class:"fraction"},zD={class:"flex-evenly",style:{width:"700px"}},jD={key:0,class:"flex-evenly",style:{width:"500px"}},SD={class:"fraction",style:{width:"140px"}},UD={key:1,class:"formula-item formula-conclusion bg-blue-light"},kD={class:"header-block"},OD={class:"bg-block"},CD={class:"title"},fD={key:0,class:"formula-block"},hD={class:"formula-item flex-evenly bg-blue-light"},YD={class:"formula-right flex-evenly"},QD={class:"fraction",style:{width:"150px"}},wD={class:"fraction",style:{width:"150px"}},RD={key:0},BD={class:"formula-item flex-evenly bg-blue-light"},FD={class:"formula-right flex-evenly"},GD={class:"fraction",style:{width:"150px"}},PD={class:"fraction",style:{width:"150px"}},WD={class:"formula-item flex-evenly bg-blue-light"},LD={class:"formula-right flex-evenly"},ZD={class:"fraction",style:{width:"150px"}},_D={class:"fraction",style:{width:"150px"}},HD={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},JD={key:0,class:"flex-evenly",style:{width:"500px"}},XD={key:1,class:"flex-evenly",style:{width:"700px"}},KD={key:1,class:"formula-item formula-conclusion bg-blue-light"};function qD(o,e,a,c,d,i){var r,N,T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",hN,[t.createElementVNode("div",YN,[t.createElementVNode("div",QN,[t.createElementVNode("div",wN,[e[3]||(e[3]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",RN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",BN,[e[4]||(e[4]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",FN,t.toDisplayString((N=(r=a.report)==null?void 0:r.vessel)==null?void 0:N.name)+" ("+t.toDisplayString((A=(T=a.report)==null?void 0:T.vessel)==null?void 0:A.type)+")",1)]),t.createElementVNode("div",GN,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",PN,t.toDisplayString(((C=(V=a.report)==null?void 0:V.voyage)==null?void 0:C.voyNum)||((y=(h=a.report)==null?void 0:h.voyage)==null?void 0:y.number)),1)])]),t.createElementVNode("div",WN,[t.createElementVNode("div",LN,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(O=(x=a.report)==null?void 0:x.departure)!=null&&O.name?(t.openBlock(),t.createElementBlock("span",ZN,t.toDisplayString((p=(E=a.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",_N,t.toDisplayString(i.computePosition((U=a.report)==null?void 0:U.departure)),1)),t.createElementVNode("span",HN,t.toDisplayString(i.computeUTCTime((D=(k=a.report)==null?void 0:k.departure)==null?void 0:D.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",JN,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(w=(Q=a.report)==null?void 0:Q.arrival)!=null&&w.portName?(t.openBlock(),t.createElementBlock("span",XN,t.toDisplayString((f=(j=a.report)==null?void 0:j.arrival)==null?void 0:f.portName),1)):(t.openBlock(),t.createElementBlock("span",KN,t.toDisplayString(i.computePosition((R=a.report)==null?void 0:R.arrival)),1)),t.createElementVNode("span",qN,t.toDisplayString(i.computeUTCTime((P=(B=a.report)==null?void 0:B.arrival)==null?void 0:P.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",uN,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",$N,t.toDisplayString((Z=(L=a.report)==null?void 0:L.voyage)==null?void 0:Z.loadCondition),1)])])]),t.createElementVNode("div",vN,[e[9]||(e[9]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",tc,[t.createElementVNode("div",ec,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",ac,[e[37]||(e[37]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((_=a.report)==null?void 0:_.segments,(l,F)=>{var X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+F,class:"segment-box"},[t.createElementVNode("div",lc,[t.createElementVNode("div",oc,"Seg."+t.toDisplayString(F+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((X=l==null?void 0:l.extend)==null?void 0:X.segTimes,(z,ut)=>{var b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt;return t.openBlock(),t.createElementBlock("div",{key:ut,class:"phase-row text-secondary"},[t.createElementVNode("div",ic,[(b=z==null?void 0:z.departure)!=null&&b.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((n=z==null?void 0:z.departure)==null?void 0:n.portName),1)):(t.openBlock(),t.createElementBlock("span",dc,t.toDisplayString(i.computeLat((S=z==null?void 0:z.departure)==null?void 0:S.lat).pretty)+", "+t.toDisplayString(i.computeLng((it=z==null?void 0:z.departure)==null?void 0:it.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Rt=z==null?void 0:z.departure)==null?void 0:Rt.utcTime))+")",1)]),e[10]||(e[10]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",rc,[(Bt=z==null?void 0:z.arrival)!=null&&Bt.portName?(t.openBlock(),t.createElementBlock("span",sc,t.toDisplayString((Ft=z==null?void 0:z.arrival)==null?void 0:Ft.portName),1)):(t.openBlock(),t.createElementBlock("span",Nc,t.toDisplayString(i.computeLat((Gt=z==null?void 0:z.arrival)==null?void 0:Gt.lat).pretty)+", "+t.toDisplayString(i.computeLng((Pt=z==null?void 0:z.arrival)==null?void 0:Pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Wt=z==null?void 0:z.arrival)==null?void 0:Wt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",cc,[t.createElementVNode("table",Mc,[e[18]||(e[18]=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[17]||(e[17]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((q=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:q.speed)+" |",1),e[11]||(e[11]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($=(u=l==null?void 0:l.extend)==null?void 0:u.cp)==null?void 0:$.speed,"Over"))+",",1),e[12]||(e[12]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tt=(v=l==null?void 0:l.extend)==null?void 0:v.cp)==null?void 0:tt.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((at=(et=l==null?void 0:l.extend)==null?void 0:et.cp)==null?void 0:at.fo)+" |",1),e[13]||(e[13]=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[14]||(e[14]=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((ot=(lt=l==null?void 0:l.extend)==null?void 0:lt.cp)==null?void 0:ot.dgo)+" |",1),e[15]||(e[15]=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[16]||(e[16]=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",mc,[t.createElementVNode("div",Dc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",gc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Ic,[((W=l==null?void 0:l.timeConclusion)==null?void 0:W.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Ec,"Time Gained")):((rt=l==null?void 0:l.timeConclusion)==null?void 0:rt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Ac,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Tc,[((st=l==null?void 0:l.timeConclusion)==null?void 0:st.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Vc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",xc,t.toDisplayString((Nt=l==null?void 0:l.timeConclusion)==null?void 0:Nt.timeGain),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((ct=l==null?void 0:l.timeConclusion)==null?void 0:ct.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",pc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",zc,t.toDisplayString((Mt=l==null?void 0:l.timeConclusion)==null?void 0:Mt.timeLost),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",jc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Sc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Uc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",kc,[((Dt=(mt=l==null?void 0:l.fuelConclusion)==null?void 0:mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Oc,"FO Saving")):((It=(gt=l==null?void 0:l.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Cc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",fc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Yc,[((yt=(Et=l==null?void 0:l.fuelConclusion)==null?void 0:Et.fo)==null?void 0:yt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Qc,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",wc,t.toDisplayString((bt=(At=l==null?void 0:l.fuelConclusion)==null?void 0:At.fo)==null?void 0:bt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Vt=(Tt=l==null?void 0:l.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Rc,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((pt=(xt=l==null?void 0:l.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Fc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Gc,[e[36]||(e[36]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Pc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Wc,[((jt=(zt=l==null?void 0:l.fuelConclusion)==null?void 0:zt.dgo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Lc,"DO/GO Saving")):((Ut=(St=l==null?void 0:l.fuelConclusion)==null?void 0:St.dgo)==null?void 0:Ut.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Zc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",_c,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Jc,[((Ot=(kt=l==null?void 0:l.fuelConclusion)==null?void 0:kt.dgo)==null?void 0:Ot.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Xc,[e[32]||(e[32]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Kc,t.toDisplayString((ft=(Ct=l==null?void 0:l.fuelConclusion)==null?void 0:Ct.dgo)==null?void 0:ft.saving),1),e[33]||(e[33]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Yt=(ht=l==null?void 0:l.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",qc,[e[34]||(e[34]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",uc,t.toDisplayString((wt=(Qt=l==null?void 0:l.fuelConclusion)==null?void 0:Qt.dgo)==null?void 0:wt.overCons),1),e[35]||(e[35]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$c,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[38]||(e[38]=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((H=a.report)==null?void 0:H.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[42]||(e[42]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",vc,[e[40]||(e[40]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[41]||(e[41]=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",tM,[t.createElementVNode("table",eM,[e[39]||(e[39]=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,F)=>(t.openBlock(),t.createElementBlock("tr",{key:F},[t.createElementVNode("td",null,t.toDisplayString(F+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((J=a.report)==null?void 0:J.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,aM))],2)],2),t.createElementVNode("div",lM,[e[244]||(e[244]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,F)=>{var X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt,z,ut,b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt,$t,G,vt,le,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ve,xe,pe,ze,je,Se,I,Ue,ke,Oe,Ce,fe,he,Ye,Qe,ae,Pa,Wa,La,Za,_a,Ha,Ja,Xa,M,nt,te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ka,qa,ua,$a,va,el,al,ll,ol,il,sl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,bl,Tl,Vl,xl,pl,zl,jl,Sl,Ul,kl,Ol,Cl,fl,hl,Yl,Ql,wl,Rl,m,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,tl,Kl,ql,ul,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,bo,To,Vo,xo,po,zo,jo,So,Uo,ko,Oo,Co,fo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Ho,Jo,Xo,Ko,qo,uo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi,Ai,bi,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,Oi,Ci,fi,hi,Yi,Qi,wi,Ri,s,Lt,Zt,_t,Ht,Jt,Hl,Jl,Xl,be,Gi,Pi,Wi,Li,Zi,_i,Hi,Ji,Xi,Ki,qi,ui,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,bn,Tn,Vn,xn,pn,zn,jn,Sn,Un,kn,On,Cn,fn,hn,Yn,Qn,wn,Rn,Bn;return t.openBlock(),t.createElementBlock("div",{key:F,class:"segment-block"},[t.createElementVNode("div",oM,[t.createElementVNode("div",iM,"Voyage Analysis Seg. "+t.toDisplayString(F+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((X=l==null?void 0:l.extend)==null?void 0:X.segTimes,(Xt,Fi)=>{var rl,Bi,Fn,Gn,Pn,Wn,Ln,Zn,_n,Hn;return t.openBlock(),t.createElementBlock("div",{key:Fi,class:"segment-row text-secondary"},[t.createElementVNode("div",nM,[(rl=Xt==null?void 0:Xt.departure)!=null&&rl.portName?(t.openBlock(),t.createElementBlock("span",dM,t.toDisplayString((Bi=Xt==null?void 0:Xt.departure)==null?void 0:Bi.portName),1)):(t.openBlock(),t.createElementBlock("span",rM,t.toDisplayString(i.computeLat((Fn=Xt==null?void 0:Xt.departure)==null?void 0:Fn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Gn=Xt==null?void 0:Xt.departure)==null?void 0:Gn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Pn=Xt==null?void 0:Xt.departure)==null?void 0:Pn.utcTime))+")",1)]),e[43]||(e[43]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",sM,[(Wn=Xt==null?void 0:Xt.arrival)!=null&&Wn.portName?(t.openBlock(),t.createElementBlock("span",NM,t.toDisplayString((Ln=Xt==null?void 0:Xt.arrival)==null?void 0:Ln.portName),1)):(t.openBlock(),t.createElementBlock("span",cM,t.toDisplayString(i.computeLat((Zn=Xt==null?void 0:Xt.arrival)==null?void 0:Zn.lat).pretty)+", "+t.toDisplayString(i.computeLng((_n=Xt==null?void 0:Xt.arrival)==null?void 0:_n.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Hn=Xt==null?void 0:Xt.arrival)==null?void 0:Hn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",MM,[e[51]||(e[51]=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[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",mM,t.toDisplayString((q=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:q.distance),1),t.createElementVNode("td",DM,t.toDisplayString(($=(u=l==null?void 0:l.goodWx)==null?void 0:u.inEca)==null?void 0:$.distance),1),t.createElementVNode("td",null,t.toDisplayString((tt=(v=l==null?void 0:l.allWx)==null?void 0:v.outEca)==null?void 0:tt.distance),1),t.createElementVNode("td",null,t.toDisplayString((at=(et=l==null?void 0:l.allWx)==null?void 0:et.inEca)==null?void 0:at.distance),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",gM,t.toDisplayString((ot=(lt=l==null?void 0:l.goodWx)==null?void 0:lt.outEca)==null?void 0:ot.time),1),t.createElementVNode("td",IM,t.toDisplayString((rt=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:rt.time),1),t.createElementVNode("td",null,t.toDisplayString((Nt=(st=l==null?void 0:l.allWx)==null?void 0:st.outEca)==null?void 0:Nt.time),1),t.createElementVNode("td",null,t.toDisplayString((Mt=(ct=l==null?void 0:l.allWx)==null?void 0:ct.inEca)==null?void 0:Mt.time),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",EM,t.toDisplayString(((Dt=(mt=l==null?void 0:l.goodWx)==null?void 0:mt.outEca)==null?void 0:Dt.avgSpd)||"--"),1),t.createElementVNode("td",yM,t.toDisplayString(((It=(gt=l==null?void 0:l.goodWx)==null?void 0:gt.inEca)==null?void 0:It.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((yt=(Et=l==null?void 0:l.allWx)==null?void 0:Et.outEca)==null?void 0:yt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(At=l==null?void 0:l.allWx)==null?void 0:At.inEca)==null?void 0:bt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[47]||(e[47]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",AM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.sumFoCons)||"--"),1),t.createElementVNode("td",bM,t.toDisplayString(((pt=(xt=l==null?void 0:l.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.outEca)==null?void 0:jt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(St=l==null?void 0:l.allWx)==null?void 0:St.inEca)==null?void 0:Ut.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[48]||(e[48]=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",TM,t.toDisplayString(((Ot=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.outEca)==null?void 0:Ot.avgFoCons)||"--"),1),t.createElementVNode("td",VM,t.toDisplayString(((ft=(Ct=l==null?void 0:l.goodWx)==null?void 0:Ct.inEca)==null?void 0:ft.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Yt=(ht=l==null?void 0:l.allWx)==null?void 0:ht.outEca)==null?void 0:Yt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(Qt=l==null?void 0:l.allWx)==null?void 0:Qt.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[49]||(e[49]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",xM,t.toDisplayString(((ut=(z=l==null?void 0:l.goodWx)==null?void 0:z.outEca)==null?void 0:ut.sumDgoCons)||"--"),1),t.createElementVNode("td",pM,t.toDisplayString(((n=(b=l==null?void 0:l.goodWx)==null?void 0:b.inEca)==null?void 0:n.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((it=(S=l==null?void 0:l.allWx)==null?void 0:S.outEca)==null?void 0:it.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Rt=l==null?void 0:l.allWx)==null?void 0:Rt.inEca)==null?void 0:Bt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[50]||(e[50]=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",zM,t.toDisplayString(((Gt=(Ft=l==null?void 0:l.goodWx)==null?void 0:Ft.outEca)==null?void 0:Gt.avgDgoCons)||"--"),1),t.createElementVNode("td",jM,t.toDisplayString(((Wt=(Pt=l==null?void 0:l.goodWx)==null?void 0:Pt.inEca)==null?void 0:Wt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((G=($t=l==null?void 0:l.allWx)==null?void 0:$t.outEca)==null?void 0:G.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((le=(vt=l==null?void 0:l.allWx)==null?void 0:vt.inEca)==null?void 0:le.avgDgoCons)||"--"),1)])])]),(oe=l==null?void 0:l.goodWx)!=null&&oe.distance?(t.openBlock(),t.createElementBlock("table",SM,[e[53]||(e[53]=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[F],(Xt,Fi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Fi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Xt,(rl,Bi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Bi},[rl.goodWx?(t.openBlock(),t.createElementBlock("tr",UM,[t.createElementVNode("td",null,t.toDisplayString(rl.type)+" "+t.toDisplayString(i.computeUTCTime(rl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(rl),"MMM-DD/HHmm[Z],YYYY")),1),e[52]||(e[52]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(rl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(rl.utc,i.computePrevTime(rl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ie=d.exclusion[F])!=null&&ie.time?(t.openBlock(),t.createElementBlock("div",kM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ne=l==null?void 0:l.goodWx)!=null&&ne.distance?(t.openBlock(),t.createElementBlock("div",OM,[t.createElementVNode("div",CM,[e[63]||(e[63]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",fM,[(re=(de=a.report)==null?void 0:de.weather)!=null&&re.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ve=(ye=a.report)==null?void 0:ye.weather)!=null&&Ve.disableWxFactor&&((pe=(xe=a.report)==null?void 0:xe.weather)!=null&&pe.disableCFactor)?(t.openBlock(),t.createElementBlock("span",QM,t.toDisplayString((ze=l==null?void 0:l.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(Se=(je=a.report)==null?void 0:je.weather)!=null&&Se.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((I=l==null?void 0:l.goodWx)==null?void 0:I.avgSpd),1),e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.avgCf)>0?(ke=l==null?void 0:l.goodWx)==null?void 0:ke.avgCf:`(${(Oe=l==null?void 0:l.goodWx)==null?void 0:Oe.avgCf})`),1),e[57]||(e[57]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",wM,t.toDisplayString((Ce=l==null?void 0:l.goodWx)==null?void 0:Ce.pfmSpd)+" (kts)",1)],64)):(he=(fe=a.report)==null?void 0:fe.weather)!=null&&he.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.avgSpd),1),e[58]||(e[58]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=l==null?void 0:l.goodWx)==null?void 0:Qe.avgWf)>0?(ae=l==null?void 0:l.goodWx)==null?void 0:ae.avgWf:`(${(Pa=l==null?void 0:l.goodWx)==null?void 0:Pa.avgWf})`),1),e[59]||(e[59]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",RM,t.toDisplayString((Wa=l==null?void 0:l.goodWx)==null?void 0:Wa.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((La=l==null?void 0:l.goodWx)==null?void 0:La.avgSpd),1),e[61]||(e[61]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=l==null?void 0:l.goodWx)==null?void 0:Za.avgWf)>0?(_a=l==null?void 0:l.goodWx)==null?void 0:_a.avgWf:`(${(Ha=l==null?void 0:l.goodWx)==null?void 0:Ha.avgWf})`),1),(Xa=(Ja=a.report)==null?void 0:Ja.weather)!=null&&Xa.favorableCur&&((M=l==null?void 0:l.goodWx)==null?void 0:M.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((nt=l==null?void 0:l.goodWx)==null?void 0:nt.avgCf)>0?(te=l==null?void 0:l.goodWx)==null?void 0:te.avgCf:`(${(ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf})`),1)],64)),e[62]||(e[62]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",BM,t.toDisplayString((Ae=l==null?void 0:l.goodWx)==null?void 0:Ae.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Ne=(se=a.report)==null?void 0:se.weather)!=null&&Ne.favorableCur&&((ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgCf)>0?(t.openBlock(),t.createElementBlock("span",YM,t.toDisplayString((Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((me=l==null?void 0:l.goodWx)==null?void 0:me.avgCf)>0?(De=l==null?void 0:l.goodWx)==null?void 0:De.avgCf:`(${(ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgCf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",hM,t.toDisplayString((Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.pfmSpd)+" (kts)",1)],64))],64)),((we=l==null?void 0:l.goodWx)==null?void 0:we.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",FM,"(Under-performance)")):t.createCommentVNode("",!0),((Re=l==null?void 0:l.goodWx)==null?void 0:Re.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",GM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",PM,[e[80]||(e[80]=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",WM,[(Fe=(Be=a.report)==null?void 0:Be.weather)!=null&&Fe.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ze=(Le=a.report)==null?void 0:Le.weather)!=null&&Ze.disableWxFactor&&((He=(_e=a.report)==null?void 0:_e.weather)!=null&&He.disableCFactor)?(t.openBlock(),t.createElementBlock("label",LM,"GW Average Speed")):(Xe=(Je=a.report)==null?void 0:Je.weather)!=null&&Xe.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[69]||(e[69]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"-",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(qe=(Ke=a.report)==null?void 0:Ke.weather)!=null&&qe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[72]||(e[72]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"-",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[77]||(e[77]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[78]||(e[78]=t.createElementVNode("label",null,"-",-1)),e[79]||(e[79]=t.createElementVNode("label",null,"GW Weather Factor",-1)),($e=(ue=a.report)==null?void 0:ue.weather)!=null&&$e.favorableCur&&((ve=l==null?void 0:l.goodWx)==null?void 0:ve.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[75]||(e[75]=t.createElementVNode("label",null,"-",-1)),e[76]||(e[76]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Pe=(Ge=a.report)==null?void 0:Ge.weather)!=null&&Pe.favorableCur&&((We=l==null?void 0:l.goodWx)==null?void 0:We.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[67]||(e[67]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[64]||(e[64]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"-",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",ZM,[t.createElementVNode("div",_M,[e[86]||(e[86]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HM,[(ea=(ta=a.report)==null?void 0:ta.weather)!=null&&ea.favorableCur&&((aa=l==null?void 0:l.allWx)==null?void 0:aa.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ca=l==null?void 0:l.allWx)==null?void 0:ca.avgSpd),1),e[84]||(e[84]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ma=l==null?void 0:l.allWx)==null?void 0:Ma.avgWf)>0?(ma=l==null?void 0:l.allWx)==null?void 0:ma.avgWf:`(${(Da=l==null?void 0:l.allWx)==null?void 0:Da.avgWf})`),1),e[85]||(e[85]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",XM,t.toDisplayString((ga=l==null?void 0:l.allWx)==null?void 0:ga.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((la=l==null?void 0:l.allWx)==null?void 0:la.avgSpd),1),e[81]||(e[81]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((oa=l==null?void 0:l.allWx)==null?void 0:oa.avgCf)>0?(ia=l==null?void 0:l.allWx)==null?void 0:ia.avgCf:`(${(na=l==null?void 0:l.allWx)==null?void 0:na.avgCf})`),1),e[82]||(e[82]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((da=l==null?void 0:l.allWx)==null?void 0:da.avgWf)>0?(ra=l==null?void 0:l.allWx)==null?void 0:ra.avgWf:`(${(sa=l==null?void 0:l.allWx)==null?void 0:sa.avgWf})`),1),e[83]||(e[83]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",JM,t.toDisplayString((Na=l==null?void 0:l.allWx)==null?void 0:Na.pfmSpd)+" (kts)",1)],64)),((Ia=l==null?void 0:l.allWx)==null?void 0:Ia.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",KM,"(Under-performance)")):t.createCommentVNode("",!0),((Ea=l==null?void 0:l.allWx)==null?void 0:Ea.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",qM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",uM,[e[96]||(e[96]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[(Aa=(ya=a.report)==null?void 0:ya.weather)!=null&&Aa.favorableCur&&((ba=l==null?void 0:l.allWx)==null?void 0:ba.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[92]||(e[92]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[93]||(e[93]=t.createElementVNode("label",null,"-",-1)),e[94]||(e[94]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[95]||(e[95]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[87]||(e[87]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"-",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"Current Factor",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"-",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",vM,[t.createElementVNode("div",tm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(F+1)+" Time Analysis",1),(Va=(Ta=a.report)==null?void 0:Ta.weather)!=null&&Va.noExtrapolation?(t.openBlock(),t.createElementBlock("span",em,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",am,[t.createElementVNode("div",lm,[e[100]||(e[100]=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",om,[t.createElementVNode("div",im,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=a.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[97]||(e[97]=t.createElementVNode("div",{class:"line"},null,-1)),e[98]||(e[98]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[99]||(e[99]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",nm,[t.createElementVNode("div",dm,[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[101]||(e[101]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",rm,[t.createElementVNode("div",sm,[t.createElementVNode("div",null,t.toDisplayString((Ua=(Sa=a.report)==null?void 0:Sa.weather)!=null&&Ua.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[102]||(e[102]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Oa=(ka=l==null?void 0:l.extend)==null?void 0:ka.cp)==null?void 0:Oa.speed,"Under"))+"kts",1)]),e[103]||(e[103]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Nm,[t.createElementVNode("div",cm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(fa=(Ca=l==null?void 0:l.extend)==null?void 0:Ca.cp)==null?void 0:fa.speed,"Over"))+"kts)",1),e[104]||(e[104]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("div",null,t.toDisplayString((Ya=(ha=a.report)==null?void 0:ha.weather)!=null&&Ya.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(wa=(Qa=l==null?void 0:l.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Over"))+"kts",1)]),e[106]||(e[106]=t.createElementVNode("div",null,"(c)",-1))])]),e[107]||(e[107]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-e150d860><div class="flex-space" style="width:300px;font-weight:400;" data-v-e150d860><label data-v-e150d860>Time Lost</label><div data-v-e150d860>=</div><div data-v-e150d860>(a)</div><div data-v-e150d860>-</div><div data-v-e150d860>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-e150d860><label data-v-e150d860>Time Gained</label><div data-v-e150d860>=</div><div data-v-e150d860>(c)</div><div data-v-e150d860>-</div><div data-v-e150d860>(a)</div></div></div>',1))]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[e[108]||(e[108]=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,(Ba=(Ra=l==null?void 0:l.extend)==null?void 0:Ra.cp)==null?void 0:Ba.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Im,[e[109]||(e[109]=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,(Ka=(Fa=l==null?void 0:l.extend)==null?void 0:Fa.cp)==null?void 0:Ka.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Em,[e[110]||(e[110]=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,(ua=(qa=l==null?void 0:l.extend)==null?void 0:qa.cp)==null?void 0:ua.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,(va=($a=l==null?void 0:l.extend)==null?void 0:$a.cp)==null?void 0:va.speed,"Under"))+" kts) ",1)])]),(el=l==null?void 0:l.goodWx)!=null&&el.distance?(t.openBlock(),t.createElementBlock("div",ym,[t.createElementVNode("div",Am,[e[114]||(e[114]=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",bm,[t.createElementVNode("div",Tm,[t.createElementVNode("div",null,t.toDisplayString((ll=(al=a.report)==null?void 0:al.weather)!=null&&ll.noExtrapolation?(ol=l==null?void 0:l.goodWx)==null?void 0:ol.distance:(il=l==null?void 0:l.allWx)==null?void 0:il.distance),1),e[111]||(e[111]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((sl=l==null?void 0:l.goodWx)==null?void 0:sl.pfmSpd),1)]),e[112]||(e[112]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeAtPfmSpd)+" (hrs)",1),e[113]||(e[113]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ml=(cl=l==null?void 0:l.extend)==null?void 0:cl.cp)==null?void 0:Ml.speed,"Under"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("div",null,t.toDisplayString((Dl=(ml=a.report)==null?void 0:ml.weather)!=null&&Dl.noExtrapolation?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.distance:(Il=l==null?void 0:l.allWx)==null?void 0:Il.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((El=l==null?void 0:l.timeConclusion)==null?void 0:El.minusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yl=l==null?void 0:l.timeConclusion)==null?void 0:yl.timeAtMinusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",jm,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(bl=(Al=l==null?void 0:l.extend)==null?void 0:Al.cp)==null?void 0:bl.speed,"Over"))+"kts)",1),e[119]||(e[119]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Um,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((Vl=(Tl=a.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?(xl=l==null?void 0:l.goodWx)==null?void 0:xl.distance:(pl=l==null?void 0:l.allWx)==null?void 0:pl.distance),1),e[120]||(e[120]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zl=l==null?void 0:l.timeConclusion)==null?void 0:zl.plusAbtSpd),1)]),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jl=l==null?void 0:l.timeConclusion)==null?void 0:jl.timeAtPlusAbtSpd)+" (hrs)",1),e[122]||(e[122]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Om,[((Sl=l==null?void 0:l.timeConclusion)==null?void 0:Sl.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Cm,[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,"(a') - (b')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ul=l==null?void 0:l.timeConclusion)==null?void 0:Ul.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kl=l==null?void 0:l.timeConclusion)==null?void 0:kl.timeAtMinusAbtSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=l==null?void 0:l.timeConclusion)==null?void 0:Ol.timeLost)+" (hrs)",1)])):((Cl=l==null?void 0:l.timeConclusion)==null?void 0:Cl.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fm,[e[129]||(e[129]=t.createElementVNode("div",null,"Time Lost",-1)),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),e[131]||(e[131]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[132]||(e[132]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fl=l==null?void 0:l.timeConclusion)==null?void 0:fl.timeAtPlusAbtSpd),1),e[133]||(e[133]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((hl=l==null?void 0:l.timeConclusion)==null?void 0:hl.timeAtPfmSpd),1),e[134]||(e[134]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=l==null?void 0:l.timeConclusion)==null?void 0:Yl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",hm,[e[135]||(e[135]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Ql=l==null?void 0:l.timeConclusion)==null?void 0:Ql.conclusionStatus)==="Lost"?"lost":((wl=l==null?void 0:l.timeConclusion)==null?void 0:wl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Rl=l==null?void 0:l.timeConclusion)==null?void 0:Rl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Ym,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(F+1)+" Consumption Analysis",1),(Bl=(m=a.report)==null?void 0:m.weather)!=null&&Bl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Rm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Bm,[t.createElementVNode("div",Fm,[e[141]||(e[141]=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",Gm,[t.createElementVNode("div",Pm,[t.createElementVNode("div",null,t.toDisplayString((Gl=(Fl=a.report)==null?void 0:Fl.weather)!=null&&Gl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),e[137]||(e[137]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=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[140]||(e[140]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",Wm,[e[142]||(e[142]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Wl=(Pl=l.extend)==null?void 0:Pl.cp)==null?void 0:Wl.dgo)>0?(t.openBlock(),t.createElementBlock("div",Lm," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zm,[e[147]||(e[147]=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",_m,[t.createElementVNode("div",Hm,[t.createElementVNode("div",null,t.toDisplayString((Zl=(Ll=a.report)==null?void 0:Ll.weather)!=null&&Zl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[143]||(e[143]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tl=(_l=l==null?void 0:l.extend)==null?void 0:_l.cp)==null?void 0:tl.speed,"Under"))+"kts",1)]),e[144]||(e[144]=t.createElementVNode("div",null,"x",-1)),e[145]||(e[145]=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[146]||(e[146]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",Jm,[e[152]||(e[152]=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",Xm,[t.createElementVNode("div",Km,[t.createElementVNode("div",null,t.toDisplayString((ql=(Kl=a.report)==null?void 0:Kl.weather)!=null&&ql.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($l=(ul=l==null?void 0:l.extend)==null?void 0:ul.cp)==null?void 0:$l.speed,"Over"))+"kts",1)]),e[149]||(e[149]=t.createElementVNode("div",null,"x",-1)),e[150]||(e[150]=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[151]||(e[151]=t.createElementVNode("div",null,"(f)",-1))])]),e[159]||(e[159]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-e150d860><div class="flex-space" style="width:240px;" data-v-e150d860><label data-v-e150d860>Fuel Over-consumption</label><div data-v-e150d860>=</div><div data-v-e150d860>(d)</div><div data-v-e150d860>-</div><div data-v-e150d860>(e)</div></div><div class="flex-space" style="width:200px;" data-v-e150d860><label data-v-e150d860>Fuel Saving</label><div data-v-e150d860>=</div><div data-v-e150d860>(f)</div><div data-v-e150d860>-</div><div data-v-e150d860>(d)</div></div></div>',1)),((to=(vl=l.extend)==null?void 0:vl.cp)==null?void 0:to.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",qm,[e[155]||(e[155]=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",um,[t.createElementVNode("div",$m,[e[153]||(e[153]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=(eo=a.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",vm,[e[158]||(e[158]=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",tD,[t.createElementVNode("div",eD,[e[156]||(e[156]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[157]||(e[157]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=a.report)==null?void 0:lo.weather)!=null&&oo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[243]||(e[243]=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")])],-1)),t.createElementVNode("div",aD,"Seg. "+t.toDisplayString(F+1)+" Fuel Oil",1),(io=l==null?void 0:l.goodWx)!=null&&io.distance?(t.openBlock(),t.createElementBlock("div",lD,[((ro=(no=l==null?void 0:l.goodWx)==null?void 0:no.inEca)==null?void 0:ro.distance)>0?(t.openBlock(),t.createElementBlock("div",oD,[e[165]||(e[165]=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",iD,[t.createElementVNode("div",nD,[t.createElementVNode("div",null,t.toDisplayString((No=(so=l==null?void 0:l.goodWx)==null?void 0:so.inEca)==null?void 0:No.sumDgoCons),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.extend)==null?void 0:co.cp)==null?void 0:Mo.dgo),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),e[161]||(e[161]=t.createElementVNode("div",null,"24",-1))]),e[163]||(e[163]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l==null?void 0:l.goodWx)==null?void 0:mo.inEca)==null?void 0:Do.time),1),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=l==null?void 0:l.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",rD,[e[172]||(e[172]=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",sD,[t.createElementVNode("div",ND,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=a.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=l==null?void 0:l.goodWx)==null?void 0:Ao.distance:(bo=l==null?void 0:l.allWx)==null?void 0:bo.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((To=l==null?void 0:l.goodWx)==null?void 0:To.pfmSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Vo=l==null?void 0:l.goodWx)==null?void 0:Vo.sumFoCons),1),((po=(xo=l==null?void 0:l.goodWx)==null?void 0:xo.inEca)==null?void 0:po.distance)>0?(t.openBlock(),t.createElementBlock("span",MD,[e[167]||(e[167]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((So=l==null?void 0:l.goodWx)==null?void 0:So.time),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ko=(Uo=l.fuelConclusion)==null?void 0:Uo.fo)==null?void 0:ko.entireCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",mD,[e[179]||(e[179]=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",DD,[t.createElementVNode("div",gD,[t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=a.report)==null?void 0:Oo.weather)!=null&&Co.noExtrapolation?(fo=l==null?void 0:l.goodWx)==null?void 0:fo.distance:(ho=l==null?void 0:l.allWx)==null?void 0:ho.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=l==null?void 0:l.timeConclusion)==null?void 0:Yo.minusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((wo=(Qo=l==null?void 0:l.fuelConclusion)==null?void 0:Qo.fo)==null?void 0:wo.overTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bo=(Ro=l.fuelConclusion)==null?void 0:Ro.fo)==null?void 0:Bo.maxCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",ED,[e[186]||(e[186]=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",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((Go=(Fo=a.report)==null?void 0:Fo.weather)!=null&&Go.noExtrapolation?(Po=l==null?void 0:l.goodWx)==null?void 0:Po.distance:(Wo=l==null?void 0:l.allWx)==null?void 0:Wo.distance),1),e[180]||(e[180]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=l==null?void 0:l.timeConclusion)==null?void 0:Lo.plusAbtSpd),1)]),e[183]||(e[183]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.underTolerance),1),e[181]||(e[181]=t.createElementVNode("div",{class:"line"},null,-1)),e[182]||(e[182]=t.createElementVNode("div",null,"24",-1))]),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(Ho=l.fuelConclusion)==null?void 0:Ho.fo)==null?void 0:Jo.minCons)+" (mt)",1),e[185]||(e[185]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",TD,[((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",VD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(qo=l==null?void 0:l.fuelConclusion)==null?void 0:qo.fo)==null?void 0:uo.entireCons),1),e[191]||(e[191]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=($o=l==null?void 0:l.fuelConclusion)==null?void 0:$o.fo)==null?void 0:vo.maxCons),1),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ei=(ti=l==null?void 0:l.fuelConclusion)==null?void 0:ti.fo)==null?void 0:ei.overCons),1)]),(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)!=null&&li.distance?(t.openBlock(),t.createElementBlock("div",xD,[e[194]||(e[194]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((ii=(oi=l==null?void 0:l.goodWx)==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.overCons),1),e[193]||(e[193]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[196]||(e[196]=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.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",zD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.minCons),1),e[201]||(e[201]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.entireCons),1),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ti=(bi=l==null?void 0:l.fuelConclusion)==null?void 0:bi.fo)==null?void 0:Ti.saving)+" (mt)",1)]),(xi=(Vi=l==null?void 0:l.goodWx)==null?void 0:Vi.inEca)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",jD,[e[204]||(e[204]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[205]||(e[205]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(Si=(ji=l==null?void 0:l.goodWx)==null?void 0:ji.inEca)==null?void 0:Si.distance:(ki=(Ui=l==null?void 0:l.allWx)==null?void 0:Ui.inEca)==null?void 0:ki.distance)+" * "+t.toDisplayString((Ci=(Oi=l==null?void 0:l.fuelConclusion)==null?void 0:Oi.fo)==null?void 0:Ci.saving),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=(fi=a.report)==null?void 0:fi.weather)!=null&&hi.noExtrapolation?(Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.distance:(Qi=l==null?void 0:l.allWx)==null?void 0:Qi.distance),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=l==null?void 0:l.fuelConclusion)==null?void 0:wi.fo)==null?void 0:Ri.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Lt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.fo)==null?void 0:Lt.conclusionStatus)==="Over"?"flex-center lost":((_t=(Zt=l==null?void 0:l.fuelConclusion)==null?void 0:Zt.fo)==null?void 0:_t.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[207]||(e[207]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Jt=(Ht=l==null?void 0:l.fuelConclusion)==null?void 0:Ht.fo)==null?void 0:Jt.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",UD,t.toDisplayString(d.noGoodWxDay),1)),((Jl=(Hl=l==null?void 0:l.extend)==null?void 0:Hl.cp)==null?void 0:Jl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",kD,[t.createElementVNode("div",OD,[e[208]||(e[208]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",CD,"Seg. "+t.toDisplayString(F+1)+" Diesel/Gas Oil",1)])]),(Xl=l==null?void 0:l.goodWx)!=null&&Xl.distance?(t.openBlock(),t.createElementBlock("div",fD,[t.createElementVNode("div",hD,[e[215]||(e[215]=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",YD,[t.createElementVNode("div",QD,[t.createElementVNode("div",null,t.toDisplayString((Gi=(be=a.report)==null?void 0:be.weather)!=null&&Gi.noExtrapolation?(Pi=l==null?void 0:l.goodWx)==null?void 0:Pi.distance:(Wi=l==null?void 0:l.allWx)==null?void 0:Wi.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Li=l==null?void 0:l.goodWx)==null?void 0:Li.pfmSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",wD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Zi=l==null?void 0:l.goodWx)==null?void 0:Zi.sumDgoCons),1),((Hi=(_i=l==null?void 0:l.goodWx)==null?void 0:_i.inEca)==null?void 0:Hi.distance)>0?(t.openBlock(),t.createElementBlock("span",RD,[e[210]||(e[210]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Xi=(Ji=l==null?void 0:l.fuelConclusion)==null?void 0:Ji.fo)==null?void 0:Xi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ki=l==null?void 0:l.goodWx)==null?void 0:Ki.time),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ui=(qi=l.fuelConclusion)==null?void 0:qi.dgo)==null?void 0:ui.entireCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",BD,[e[222]||(e[222]=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",FD,[t.createElementVNode("div",GD,[t.createElementVNode("div",null,t.toDisplayString((vi=($i=a.report)==null?void 0:$i.weather)!=null&&vi.noExtrapolation?(tn=l==null?void 0:l.goodWx)==null?void 0:tn.distance:(en=l==null?void 0:l.allWx)==null?void 0:en.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((an=l==null?void 0:l.timeConclusion)==null?void 0:an.minusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((on=(ln=l==null?void 0:l.fuelConclusion)==null?void 0:ln.dgo)==null?void 0:on.overTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((dn=(nn=l.fuelConclusion)==null?void 0:nn.dgo)==null?void 0:dn.maxCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",WD,[e[229]||(e[229]=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",LD,[t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((sn=(rn=a.report)==null?void 0:rn.weather)!=null&&sn.noExtrapolation?(Nn=l==null?void 0:l.goodWx)==null?void 0:Nn.distance:(cn=l==null?void 0:l.allWx)==null?void 0:cn.distance),1),e[223]||(e[223]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Mn=l==null?void 0:l.timeConclusion)==null?void 0:Mn.plusAbtSpd),1)]),e[226]||(e[226]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.underTolerance),1),e[224]||(e[224]=t.createElementVNode("div",{class:"line"},null,-1)),e[225]||(e[225]=t.createElementVNode("div",null,"24",-1))]),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=l.fuelConclusion)==null?void 0:gn.dgo)==null?void 0:In.minCons)+" (mt)",1),e[228]||(e[228]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",HD,[((yn=(En=l==null?void 0:l.fuelConclusion)==null?void 0:En.dgo)==null?void 0:yn.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",JD,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bn=(An=l==null?void 0:l.fuelConclusion)==null?void 0:An.dgo)==null?void 0:bn.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l==null?void 0:l.fuelConclusion)==null?void 0:Tn.dgo)==null?void 0:Vn.maxCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((pn=(xn=l==null?void 0:l.fuelConclusion)==null?void 0:xn.dgo)==null?void 0:pn.overCons),1)])):((jn=(zn=l==null?void 0:l.fuelConclusion)==null?void 0:zn.dgo)==null?void 0:jn.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",XD,[e[236]||(e[236]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),e[238]||(e[238]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[239]||(e[239]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Un=(Sn=l==null?void 0:l.fuelConclusion)==null?void 0:Sn.dgo)==null?void 0:Un.minCons),1),e[240]||(e[240]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(kn=l==null?void 0:l.fuelConclusion)==null?void 0:kn.dgo)==null?void 0:On.entireCons),1),e[241]||(e[241]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fn=(Cn=l==null?void 0:l.fuelConclusion)==null?void 0:Cn.dgo)==null?void 0:fn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Yn=(hn=l==null?void 0:l.fuelConclusion)==null?void 0:hn.dgo)==null?void 0:Yn.conclusionStatus)==="Over"?"flex-center lost":((wn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.dgo)==null?void 0:wn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[242]||(e[242]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Bn=(Rn=l==null?void 0:l.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",KD,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const uD=Ga(fN,[["render",qD],["__scopeId","data-v-e150d860"]]),nS="",$D={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`${qt(o).utc().format(e)}`}},computeLng(){return function(o){return Y.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return Y.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?Y.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,c,d,i,g,r,N,T,A,V;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(a=this.report)==null?void 0:a.weather)==null?void 0:c.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=(N=this.report)==null?void 0:N.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((V=(A=this.report)==null?void 0:A.weather)==null?void 0:V.waterTempSwitch)||!1}}},vD={class:"report-inventory"},tg={class:"section summary-section"},eg={class:"summary-block"},ag={class:"orm-report-table inventory-table"},lg={class:"label",rowspan:"4"},og={class:"section inventory-section"},ig={class:"orm-report-table inventory-table detail"},ng=["colspan"],dg={key:0,class:"label",colspan:"2"},rg={key:0,class:"label",rowspan:"2"},sg={key:1,class:"label",rowspan:"2"},Ng={key:2,class:"label",rowspan:"2"},cg={key:3,class:"label",colspan:"2"},Mg={key:4,class:"label",rowspan:"2"},mg={key:5,class:"label",colspan:"2"},Dg={key:6,class:"label",rowspan:"2"},gg={key:7,class:"label",rowspan:"2"},Ig={key:8,class:"label",rowspan:"2"},Eg={key:0,class:"label"},yg={key:1,class:"label"},Ag={key:2,class:"label"},bg={key:3,class:"label"},Tg={class:"summary-tbody"};function Vg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",vD,[t.createElementVNode("div",tg,[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:"title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",eg,[t.createElementVNode("table",ag,[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,N)=>{var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",lg,t.toDisplayString(N+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((A=r==null?void 0:r.allWx)==null?void 0:A.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.allWx)==null?void 0:V.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.allWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.allWx)==null?void 0:h.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((y=r==null?void 0:r.goodWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((O=r==null?void 0:r.goodWx)==null?void 0:O.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((p=r==null?void 0:r.goodWx)==null?void 0:p.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((U=r==null?void 0:r.badWx)==null?void 0:U.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.badWx)==null?void 0:k.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((Q=r==null?void 0:r.badWx)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.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((j=r==null?void 0:r.excluded)==null?void 0:j.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((R=r==null?void 0:r.excluded)==null?void 0:R.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((B=r==null?void 0:r.excluded)==null?void 0:B.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((P=r==null?void 0:r.excluded)==null?void 0:P.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",og,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-63aa1c60><div class="flex-start" data-v-63aa1c60><div class="legend good-wx" data-v-63aa1c60></div><div class="label flex-end" data-v-63aa1c60>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-63aa1c60><div class="legend adverse-wx" data-v-63aa1c60></div><div class="label" data-v-63aa1c60>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-63aa1c60><div class="legend excluded" data-v-63aa1c60></div><div class="label" data-v-63aa1c60>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-63aa1c60><label data-v-63aa1c60>B</label><div data-v-63aa1c60>BOSP</div><label data-v-63aa1c60>N</label><div data-v-63aa1c60>NOON</div><label data-v-63aa1c60>E</label><div data-v-63aa1c60>EOSP</div><label data-v-63aa1c60>*</label><div data-v-63aa1c60>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-63aa1c60> 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",ig,[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,ng),a.showFactor?(t.openBlock(),t.createElementBlock("th",dg,"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",rg,[...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",sg,[...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",Ng,[...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",cg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",Mg,[...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",mg,"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",Dg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",gg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Ig,[...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",Eg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",yg,[...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",Ag,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",bg,[...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",Tg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H;return t.openBlock(),t.createElementBlock("tr",{key:N},[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((A=r.noon)==null?void 0:A.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)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?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)&&N?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)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((C=(V=r.meteo)==null?void 0:V.wind)==null?void 0:C.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((y=(h=r.meteo)==null?void 0:h.wind)==null?void 0:y.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=(O=(x=r.meteo)==null?void 0:x.wave)==null?void 0:O.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"?"-":((k=(U=(p=r.meteo)==null?void 0:p.wave)==null?void 0:U.swell)==null?void 0:k.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"?"-":((w=(Q=(D=r.meteo)==null?void 0:D.wave)==null?void 0:Q.swell)==null?void 0:w.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"?"-":((R=(f=(j=r.meteo)==null?void 0:j.wave)==null?void 0:f.sig)==null?void 0:R.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"?"-":((P=(B=r.meteo)==null?void 0:B.current)==null?void 0:P.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"?"-":((L=r.meteo)==null?void 0:L.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((Z=r.meteo)==null?void 0:Z.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(((_=r.meteo)==null?void 0:_.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((H=r.meteo)==null?void 0:H.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?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)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const xg=Ga($D,[["render",Vg],["__scopeId","data-v-63aa1c60"]]),dS="",pg={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`${qt(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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.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(qn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(qn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(qn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var V,C,h,y,x,O;let o=[];const e=[],a=[],c={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,p)=>{var U,k;p===0&&r.push(E.utc),E.type==="EOSP"&&((U=this.inventory[p+1])==null?void 0:U.type)==="BOSP"&&(r.push(E.utc),r.push((k=this.inventory[p+1])==null?void 0:k.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const U=qt(r[p+1]).diff(qt(r[p]),"minute",!0);for(let k=0;k<=U+1;k++)e.push(this.computeUTCTime(qt(r[p]).clone().utc().add(k,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,p)=>{var k,D,Q,w,j,f,R,B,P,L,Z,_,H,J;const U=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(l=>l.slice(0,5)===E.utc.slice(5,10))&&o.push(U),p===g.length-1&&(o=o.filter(l=>l.slice(0,5)!==E.utc.slice(5,10)),o.push(U)),d=Math.ceil(((k=E.noon)==null?void 0:k.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((Q=E.cp)==null?void 0:Q.fo)>d?(w=E.cp)==null?void 0:w.fo:d),i=Math.ceil(((j=E.noon)==null?void 0:j.dgoCons)>i?(f=E.noon)==null?void 0:f.dgoCons:i),i=Math.ceil(((R=E.cp)==null?void 0:R.dgo)>i?(B=E.cp)==null?void 0:B.dgo:i),a.push([U,(P=E.noon)==null?void 0:P.avgSpd,(L=E.noon)==null?void 0:L.foCons,(Z=E.noon)==null?void 0:Z.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<g.length-1){const l=g[p+1];a.push([U,(_=l.noon)==null?void 0:_.avgSpd,(H=l.noon)==null?void 0:H.foCons,(J=l.noon)==null?void 0:J.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===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:c.dateTime,y:c.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:c.dateTime,y:c.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(C=(V=this.report)==null?void 0:V.weather)!=null&&C.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.spdFoConsChart)==null||h.setOption(T);const A={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:c.dateTime,y:c.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:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(y=this.report)==null?void 0:y.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(O=this.spdDgoConsChart)==null||O.setOption(A)},renderWxCurrChart(){var h;let o=[];const e=[],a=[],c={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((y,x)=>{var O,E;x===0&&g.push(y.utc),y.type==="EOSP"&&((O=i[x+1])==null?void 0:O.type)==="BOSP"&&(g.push(y.utc),g.push((E=i[x+1])==null?void 0:E.utc)),x===i.length-1&&g.push(y.utc)}),g.forEach((y,x)=>{if(x%2===0){const O=qt(g[x+1]).diff(qt(g[x]),"minute",!0);for(let E=0;E<=O+1;E++)e.push(this.computeUTCTime(qt(g[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,x)=>{var E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J,l,F,X,K,q,u,$,v,tt,et,at,lt,ot;const O=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(W=>W.slice(0,5)===y.utc.slice(5,10))&&o.push(O),x===i.length-1&&(o=o.filter(W=>W.slice(0,5)!==y.utc.slice(5,10)),o.push(O)),d=Math.ceil(((U=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:U.height)>d?(Q=(D=(k=y.meteo)==null?void 0:k.wave)==null?void 0:D.sig)==null?void 0:Q.height:d),a.push([O,((w=y.noon)==null?void 0:w.windBF)||((f=(j=y.meteo)==null?void 0:j.wind)==null?void 0:f.scale),(B=(R=y.meteo)==null?void 0:R.wind)==null?void 0:B.scale,(L=(P=y.meteo)==null?void 0:P.wind)==null?void 0:L.direction,(Z=y.noon)==null?void 0:Z.seasHt,(J=(H=(_=y.meteo)==null?void 0:_.wave)==null?void 0:H.sig)==null?void 0:J.height,y.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[c.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),x<i.length-1){const W=i[x+1];a.push([O,((F=y.noon)==null?void 0:F.windBF)||((K=(X=y.meteo)==null?void 0:X.wind)==null?void 0:K.scale),(u=(q=W.meteo)==null?void 0:q.wind)==null?void 0:u.scale,(v=($=W.meteo)==null?void 0:$.wind)==null?void 0:v.direction,(tt=W.noon)==null?void 0:tt.seasHt,(lt=(at=(et=y.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:lt.height,W.dailyAvgCf??((ot=a[a.length-1])==null?void 0:ot[c.anlyCurFct]),W.goodWx&&!W.excluded?20:0,W.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,T=2.5,A=1,V=5;N<-2.5||T>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,A=Math.ceil(Math.max([Math.abs(N),Math.abs(T)])/5),V=Math.ceil(Math.abs(N)/A)+Math.ceil(Math.abs(T)/A)):(A=.5,N=Math.floor(this.findMinValue(a,6)/.5)*A,T=2.5,V=Math.abs(N)/A+5);const C={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:N,max:T,interval:A,splitNumber:V,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(V-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:V,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(V-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:V,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.currChart)==null||h.setOption(C)},findMaxValue(o,e){let a=-1/0;for(let c=0;c<o.length;c++){const d=o[c];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 c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},zg={class:"report-summary"},jg={class:"section chart-section"},Sg={class:"chart-block"},Ug={ref:"spdFoConsChart",class:"chart"},kg={ref:"spdDgoConsChart",class:"chart"},Og={ref:"currChart",class:"chart"},Cg={class:"section map-section"},fg={class:"map-block"},hg={class:"flex-space"},Yg={class:"voyage-block bg-blue-light"},Qg={class:"flex-space label-block",style:{width:"100%"}},wg={style:{"text-transform":"uppercase"}},Rg={class:"flex-space label-block",style:{width:"100%"}},Bg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Fg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Gg={class:"flex-space label-block",style:{width:"100%"}},Pg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Wg={class:"flex-space label-block",style:{width:"100%"}},Lg={key:0,class:"flex-end",style:{flex:"1"}},Zg={key:1,class:"flex-end",style:{flex:"1"}},_g={class:"flex-end",style:{width:"160px"}},Hg={class:"flex-space label-block",style:{width:"100%"}},Jg={key:0,class:"flex-end",style:{flex:"1"}},Xg={key:1,class:"flex-end",style:{flex:"1"}},Kg={class:"flex-end",style:{width:"160px"}},qg={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},$g=["src"];function vg(o,e,a,c,d,i){var g,r,N,T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B;return t.openBlock(),t.createElementBlock("div",zg,[t.createElementVNode("div",jg,[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:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Sg,[t.createElementVNode("div",Ug,null,512),t.createElementVNode("div",kg,null,512),t.createElementVNode("div",Og,null,512)])]),t.createElementVNode("div",Cg,[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:"title"},"Voyage Map")])],-1)),t.createElementVNode("div",fg,[t.createElementVNode("div",hg,[t.createElementVNode("div",Yg,[t.createElementVNode("div",Qg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",wg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Rg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Bg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",Fg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",Gg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Pg,t.toDisplayString((V=(A=a.report)==null?void 0:A.voyage)==null?void 0:V.number),1)]),t.createElementVNode("div",Wg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(h=(C=a.report)==null?void 0:C.departure)!=null&&h.portName?(t.openBlock(),t.createElementBlock("span",Lg,t.toDisplayString((x=(y=a.report)==null?void 0:y.departure)==null?void 0:x.portName),1)):(t.openBlock(),t.createElementBlock("div",Zg,t.toDisplayString(i.computePosition((O=a.report)==null?void 0:O.departure)),1)),t.createElementVNode("span",_g,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",Hg,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(U=(p=a.report)==null?void 0:p.arrival)!=null&&U.portName?(t.openBlock(),t.createElementBlock("span",Jg,t.toDisplayString((D=(k=a.report)==null?void 0:k.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",Xg,t.toDisplayString(i.computePosition((Q=a.report)==null?void 0:Q.arrival)),1)),t.createElementVNode("span",Kg,t.toDisplayString(i.computeUTCTime((j=(w=a.report)==null?void 0:w.arrival)==null?void 0:j.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",qg,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ug,t.toDisplayString((R=(f=a.report)==null?void 0:f.voyage)==null?void 0:R.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-4cf21f03><div data-v-4cf21f03>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03>0812</div><div data-v-4cf21f03><div data-v-4cf21f03>08 - Day of the month</div><div data-v-4cf21f03>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-4cf21f03></i></div><div data-v-4cf21f03><div data-v-4cf21f03>Wind from N (000)</div><div data-v-4cf21f03>Each bard = 10 kts</div><div data-v-4cf21f03>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03>W 4</div><div data-v-4cf21f03>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div class="good-wx" data-v-4cf21f03>Date</div><div data-v-4cf21f03>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(B=a.report)==null?void 0:B.chartUrl,alt:""},null,8,$g)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-4cf21f03><div class="header-block" data-v-4cf21f03><div class="bg-block" data-v-4cf21f03><i class="iconfont icon-baobiao" data-v-4cf21f03></i><div class="title" data-v-4cf21f03>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-4cf21f03><div class="method-title" data-v-4cf21f03>1. Good Weather Method</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03> 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-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-4cf21f03> 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. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-4cf21f03><div class="method-title" data-v-4cf21f03>4. “About”</div><div class="method-body" data-v-4cf21f03> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>6. Further reference materials</div><div class="method-body" data-v-4cf21f03>Please send mail to <a href="mailto:op@ormwx.com" data-v-4cf21f03>op@ormwx.com</a>.</div></div></div></div>',1))])}const tI=Ga(pg,[["render",vg],["__scopeId","data-v-4cf21f03"]]),rS="",sS="",eI={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`${qt(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 N,T;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(V=>{const C=`<p>${V}</p>`;c=c+C}),c=c+"</div>"):c=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 V=`<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,$n,nl,qt,zr,Y,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 c=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,c.get?c:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const qn=jr(zr),lS="",Ga=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:$n.Editor,Toolbar:$n.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,c,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]=N=>d.valueHtml=N),"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 dl=Ga(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),Or={install(o){o.component("IdmEditor",dl)}},oS="",Cr={name:"PlanReport",components:{Editor:dl,IdmBrand:nl.IdmBrand,IdmLoading:nl.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`${qt(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,c){let d=0;return a&&e&&(d=Y.LngLatHelper.guessTimeZoneOffset(e,a)),`${qt(o).utcOffset(c??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,c,d,i,g;if(e===0)return"-";{const r=qt((d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.eta).diff(qt((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,c,d,i,g,r,N;if(e===0)return"-";{const T=Number((i=(d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((N=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:N.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 c=0;c<e.length;c++){const d=e[c],i=e[c-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 c=0;c<17;c++)if(c*22.5+e+11.25>=360){let d=(16-c)*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,N;const a=(N=(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:N.hours,c=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(qt(d==null?void 0:d.eta).diff(qt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,c;let e=0;return(c=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||c.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)?"-":Y.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>Y.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>Y.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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},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=qn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,U,k,D,Q,w;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(Q=(D=(k=(U=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:U.speed)==null?void 0:k.sample)==null?void 0:D.hours)==null||Q.forEach(j=>{var R,B,P,L,Z,_,H,J,l,F;const f=j.meteo;if(f){const X=qt(f.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((B=(R=f.wave)==null?void 0:R.sig)==null?void 0:B.height)>c?(L=(P=f.wave)==null?void 0:P.sig)==null?void 0:L.height:c),e.push([X,(Z=f.wind)==null?void 0:Z.kts,(H=(_=f.wave)==null?void 0:_.sig)==null?void 0:H.height,(J=f.wind)==null?void 0:J.direction,(l=f.wind)==null?void 0:l.degree,(F=f.wind)==null?void 0:F.scale,j.cFactor,j.wFactor,j.speed])}});const d=Math.max(...e.map(j=>j[a.speed])),i=Math.max(...e.map(j=>j[a.windSpeed])),g=Math.min(...e.map(j=>j[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(j=>j[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(j=>j[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,A=Math.ceil(c/5/.5)*.5,V=Math.ceil((r-g)/5/.5)*.5,C=5*N,h=5*T,y=5*A,x=g+5*V,O={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:C,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:h,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:y,splitNumber:5,interval:A,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:x,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,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:!0,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:!0,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:!0,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}]};(w=this.echart)==null||w.setOption(O)}}},fr={class:"orm-plan-report"},hr={key:0,class:"loading-block"},Yr={class:"info-block"},Qr={class:"col"},wr={class:"label-block"},Rr={class:"text"},Br={class:"label-block"},Fr={class:"text"},Gr={class:"label-block"},Pr={class:"text"},Wr={class:"col"},Lr={class:"label-block"},Zr={key:0},_r={key:1},Hr={style:{"margin-left":"16px"}},Jr={class:"label-block"},Xr={key:0},Kr={key:1},qr={style:{"margin-left":"16px"}},ur={class:"label-block"},$r={class:"text"},vr={class:"section chart-section"},ts=["src"],es={class:"legends text-tips"},as={class:"legend"},ls={key:0,class:"legend"},os={key:1,class:"legend"},is={key:1,class:"empty"},ns={class:"section comparison-section"},ds={key:0,class:"orm-report-table",style:{"font-size":"12px"}},rs={key:0},ss=["rowspan"],Ns={key:0},cs={key:1},Ms={rowspan:"2"},ms={rowspan:"2"},Ds={key:0},gs={key:1},Is={rowspan:"1"},Es={key:0},ys={rowspan:"2"},As={rowspan:"2"},bs={rowspan:"2"},Ts={key:0},Vs={key:0},xs=["rowspan"],ps={key:0},zs={rowspan:"1"},js={key:0},Ss={key:0},Us={key:1},ks={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Os={key:0},Cs={class:"section waypoint-section"},fs={class:"header-block"},hs={class:"bg-block"},Ys={class:"title"},Qs={key:0,class:"flex-end",style:{flex:"1"}},ws=["onClick"],Rs={class:"advisory bg-blue-light-2"},Bs=["innerHTML"],Fs={class:"major-waypoint"},Gs={class:"major-body"},Ps={class:"cell-item flex",style:{flex:"2.5"}},Ws={key:0,class:"flex-center"},Ls={key:1,class:"flex-center"},Zs={key:0,style:{"margin-left":"3px"}},_s={class:"cell-item flex",style:{flex:"1.5"}},Hs={key:0,style:{"margin-left":"4px","font-weight":"600"}},Js={key:0,class:"cell-item flex offset"},Xs={key:1,class:"cell-item flex nbsp"},Ks={key:2,class:"cell-item flex offset"},qs={key:3,class:"cell-item flex nbsp"},us={key:4,class:"cell-item flex offset"},$s={key:5,class:"cell-item flex nbsp"},vs={key:6,class:"cell-item flex offset"},tN={key:7,class:"cell-item flex nbsp"},eN={key:8,class:"cell-item flex offset"},aN={key:9,class:"cell-item flex nbsp"},lN={class:"section forecast-section"},oN={style:{"page-break-inside":"avoid"}},iN={class:"header-block"},nN={class:"bg-block"},dN={class:"title"},rN={key:0,class:"flex-end",style:{flex:"1"}},sN=["onClick"],NN={class:"echart-block"},cN={ref:"echart",class:"echart"},MN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},mN={class:"orm-report-table",style:{"font-size":"12px"}},DN=["colspan"],gN={key:0},IN={class:"flex-center"},EN={class:"degree-box"},yN={key:0},AN={key:2},bN={key:0},TN={class:"degree-box"},VN={key:0},xN={key:2},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={class:"degree-box"},UN={key:0},kN={key:2};function ON(o,e,a,c,d,i){var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J,l,F,X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt,z,ut,b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt,$t,G,vt,le,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ve,xe,pe,ze,je,Se,I,Ue,ke,Oe,Ce,fe,he,Ye,Qe,ae,Pa,Wa,La,Za,_a,Ha,Ja,Xa;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",fr,[t.createVNode(g,{name:"Voyage Planning",issued:(T=a.plan)==null?void 0:T.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",hr,[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",Yr,[t.createElementVNode("div",Qr,[t.createElementVNode("div",wr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Rr,t.toDisplayString((C=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.company)==null?void 0:C.name),1)]),t.createElementVNode("div",Br,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Fr,t.toDisplayString((x=(y=(h=a.plan)==null?void 0:h.voyage)==null?void 0:y.vessel)==null?void 0:x.name)+" ("+t.toDisplayString((U=(p=(E=(O=a.plan)==null?void 0:O.voyage)==null?void 0:E.vessel)==null?void 0:p.vesselType)==null?void 0:U.name)+")",1)]),t.createElementVNode("div",Gr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Pr,t.toDisplayString(((D=(k=a.plan)==null?void 0:k.voyage)==null?void 0:D.voyNum)||((w=(Q=a.plan)==null?void 0:Q.voyage)==null?void 0:w.number)),1)])]),t.createElementVNode("div",Wr,[t.createElementVNode("div",Lr,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(R=(f=(j=a.plan)==null?void 0:j.leg)==null?void 0:f.departure)!=null&&R.name?(t.openBlock(),t.createElementBlock("span",Zr,t.toDisplayString((L=(P=(B=a.plan)==null?void 0:B.leg)==null?void 0:P.departure)==null?void 0:L.name),1)):(t.openBlock(),t.createElementBlock("span",_r,t.toDisplayString(i.computePosition((_=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:_.departure)),1)),t.createElementVNode("span",Hr,t.toDisplayString(i.computeUTCTime(((l=(J=(H=a.plan)==null?void 0:H.leg)==null?void 0:J.departure)==null?void 0:l.atd)||((K=(X=(F=a.plan)==null?void 0:F.leg)==null?void 0:X.departure)==null?void 0:K.etd)||((v=($=(u=(q=a.plan)==null?void 0:q.speeds)==null?void 0:u[d.speedIndex])==null?void 0:$.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",Jr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(at=(et=(tt=a.plan)==null?void 0:tt.leg)==null?void 0:et.destination)!=null&&at.name?(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString((W=(ot=(lt=a.plan)==null?void 0:lt.leg)==null?void 0:ot.destination)==null?void 0:W.name),1)):(t.openBlock(),t.createElementBlock("span",Kr,t.toDisplayString(i.computePosition((st=(rt=a.plan)==null?void 0:rt.leg)==null?void 0:st.destination)),1)),t.createElementVNode("span",qr,t.toDisplayString(i.computeUTCTime(((mt=(Mt=(ct=(Nt=a.plan)==null?void 0:Nt.speeds)==null?void 0:ct[d.speedIndex])==null?void 0:Mt.speed)==null?void 0:mt.ata)||((Et=(It=(gt=(Dt=a.plan)==null?void 0:Dt.speeds)==null?void 0:gt[d.speedIndex])==null?void 0:It.speed)==null?void 0:Et.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",ur,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",$r,t.toDisplayString((At=(yt=a.plan)==null?void 0:yt.voyage)==null?void 0:At.loadCondition),1)])])]),t.createElementVNode("div",vr,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(bt=a.plan)!=null&&bt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ts)]),t.createElementVNode("div",es,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-65f6b054><span class="dangerous" data-v-65f6b054></span><span data-v-65f6b054>Danger</span></div><div class="legend" data-v-65f6b054><span class="severe" data-v-65f6b054></span><span data-v-65f6b054>Severe</span></div><div class="legend" data-v-65f6b054><span class="heavy" data-v-65f6b054></span><span data-v-65f6b054>Heavy</span></div>',3)),t.createElementVNode("div",as,[e[14]||(e[14]=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=(pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[0])==null?void 0:xt.speed)==null?void 0:pt.lane)==null?void 0:zt.name),1)]),((St=(jt=a.plan)==null?void 0:jt.speeds)==null?void 0:St.length)>1?(t.openBlock(),t.createElementBlock("div",ls,[e[15]||(e[15]=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((ft=(Ct=(Ot=(kt=(Ut=a.plan)==null?void 0:Ut.speeds)==null?void 0:kt[1])==null?void 0:Ot.speed)==null?void 0:Ct.lane)==null?void 0:ft.name),1)])):t.createCommentVNode("",!0),((Yt=(ht=a.plan)==null?void 0:ht.speeds)==null?void 0:Yt.length)>2?(t.openBlock(),t.createElementBlock("div",os,[e[16]||(e[16]=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((b=(ut=(z=(wt=(Qt=a.plan)==null?void 0:Qt.speeds)==null?void 0:wt[2])==null?void 0:z.speed)==null?void 0:ut.lane)==null?void 0:b.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",is,[t.createElementVNode("span",null,[e[18]||(e[18]=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[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ns,[(S=(n=a.plan)==null?void 0:n.speeds)!=null&&S.length?(t.openBlock(),t.createElementBlock("table",ds,[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",rs,[...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,ss),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",Ns,[...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",cs,[...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((it=a.plan)==null?void 0:it.speeds,(M,nt)=>{var te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa;return t.openBlock(),t.createElementBlock(t.Fragment,{key:nt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ms,t.toDisplayString(nt+1),1),t.createElementVNode("td",ms,t.toDisplayString((ee=(te=M.speed)==null?void 0:te.lane)==null?void 0:ee.name),1),t.createElementVNode("td",null,[M.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Ds,t.toDisplayString(`CP ${((we=(Ae=M.speed)==null?void 0:Ae.cpCopy)==null?void 0:we.speed)??((Re=M.speed)==null?void 0:Re.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",gs,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Ge=(Fe=(Be=M.speed)==null?void 0:Be.extend)==null?void 0:Fe.cps[0])==null?void 0:Ge.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=M.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[1])==null?void 0:Le.speed),1)]))]),t.createElementVNode("td",Is,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ze=M.speed)==null?void 0:Ze.distance,0)),1),(He=(_e=M.speed)==null?void 0:_e.extend)!=null&&He.distanceInECA?(t.openBlock(),t.createElementBlock("span",Es," ("+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((Je=M.speed)==null?void 0:Je.eta,(qe=(Ke=(Xe=a.plan)==null?void 0:Xe.leg)==null?void 0:Ke.destination)==null?void 0:qe.lng,(ve=($e=(ue=a.plan)==null?void 0:ue.leg)==null?void 0:$e.destination)==null?void 0:ve.lat,(oa=(la=(aa=(ea=(ta=a.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.port)==null?void 0:la.timezone)==null?void 0:oa.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((ia=M.speed)==null?void 0:ia.eta)),1)]),t.createElementVNode("td",ys,t.toDisplayString(i.computeSuspend(M.speed)),1),t.createElementVNode("td",As,t.toDisplayString(i.roundPrecision((na=M.speed)==null?void 0:na.totalFoCons,3)),1),t.createElementVNode("td",bs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((da=M.speed)==null?void 0:da.totalDgoCons,3)),1),(sa=(ra=M.speed)==null?void 0:ra.extend)!=null&&sa.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Ts," + "+t.toDisplayString(i.roundPrecision((Na=M.speed.extend)==null?void 0:Na.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",Vs,t.toDisplayString((ma=i.roundPrecision(((Ma=(ca=M==null?void 0:M.speed)==null?void 0:ca.cost)==null?void 0:Ma.total)/1e3,2))==null?void 0:ma.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,nt)),9,xs),e[41]||(e[41]=t.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((Da=M.speed)==null?void 0:Da.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",ps,"FO: "+t.toDisplayString((Ia=(ga=M.speed)==null?void 0:ga.cpCopy)==null?void 0:Ia.fo)+" / DO: "+t.toDisplayString((ya=(Ea=M.speed)==null?void 0:Ea.cpCopy)==null?void 0:ya.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((ba=(Aa=M.speed)==null?void 0:Aa.extend)==null?void 0:ba.cps[0].fo)+" / "+t.toDisplayString((Va=(Ta=M.speed)==null?void 0:Ta.extend)==null?void 0:Va.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((pa=(xa=M.speed)==null?void 0:xa.extend)==null?void 0:pa.cps[0].dgo)+" / "+t.toDisplayString((ja=(za=M.speed)==null?void 0:za.extend)==null?void 0:ja.cps[1].dgo),1)],64))]),t.createElementVNode("td",zs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Sa=M.speed)==null?void 0:Sa.totalHrs,1)),1),(ka=(Ua=M.speed)==null?void 0:Ua.extend)!=null&&ka.hoursInECA?(t.openBlock(),t.createElementBlock("span",js," ("+t.toDisplayString(i.roundPrecision(M.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Oa=M.speed)==null?void 0:Oa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((Ca=M.speed)==null?void 0:Ca.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((fa=M.speed)==null?void 0:fa.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Ss,t.toDisplayString(i.roundPrecision(((Ya=(ha=M==null?void 0:M.speed)==null?void 0:ha.cost)==null?void 0:Ya.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((wa=(Qa=M==null?void 0:M.speed)==null?void 0:Qa.cost)==null?void 0:wa.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Us,t.toDisplayString(i.computeCostDiff(a.plan,nt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((Ra=M.speed)==null?void 0:Ra.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Ba=M.speed)==null?void 0:Ba.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Fa=M.speed)==null?void 0:Fa.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",ks,[e[43]||(e[43]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[44]||(e[44]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",Os,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Ft=i.roundPrecision((Bt=(Rt=a.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.dailyHire,0))==null?void 0:Ft.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((Wt=i.roundPrecision((Pt=(Gt=a.plan)==null?void 0:Gt.voyage)==null?void 0:Pt.priceFO,0))==null?void 0:Wt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((vt=i.roundPrecision((G=($t=a.plan)==null?void 0:$t.voyage)==null?void 0:G.priceDGO,0))==null?void 0:vt.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[42]||(e[42]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[45]||(e[45]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[46]||(e[46]=t.createElementVNode("br",null,null,-1)),e[47]||(e[47]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Cs,[t.createElementVNode("div",fs,[t.createElementVNode("div",hs,[e[48]||(e[48]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Ys,"Advisory & Major Waypoint of Route "+t.toDisplayString((ne=(ie=(oe=(le=a.plan.speeds)==null?void 0:le[d.speedIndex])==null?void 0:oe.speed)==null?void 0:ie.lane)==null?void 0:ne.name),1),((re=(de=a.plan)==null?void 0:de.speeds)==null?void 0:re.length)>1?(t.openBlock(),t.createElementBlock("div",Qs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((se=a.plan)==null?void 0:se.speeds,(M,nt)=>{var te,ee;return t.openBlock(),t.createElementBlock("div",{key:nt,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===nt?"active":""]),onClick:Ae=>{d.speedIndex=nt,i.renderEchart()}},t.toDisplayString((ee=(te=M.speed)==null?void 0:te.lane)==null?void 0:ee.name),11,ws)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rs,[d.editable?(t.openBlock(),t.createBlock(N,{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,Bs))]),t.createElementVNode("div",Fs,[e[49]||(e[49]=t.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-65f6b054><div class="cell-item flex" style="flex:2.5;" data-v-65f6b054>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-65f6b054>Time</div><div class="cell-item flex" data-v-65f6b054>Nav</div><div class="cell-item flex" data-v-65f6b054>Dist <span class="text-units" data-v-65f6b054>(nm)</span></div><div class="cell-item flex" data-v-65f6b054>SOG <span class="text-units" data-v-65f6b054>(kts)</span></div><div class="cell-item flex" data-v-65f6b054>COG <span class="text-units" data-v-65f6b054>(°)</span></div><div class="cell-item flex" data-v-65f6b054>Memo</div></div>',1)),t.createElementVNode("div",Gs,[(ce=(Ne=a.plan)==null?void 0:Ne.speeds)!=null&&ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ge=(De=(me=(Me=a.plan)==null?void 0:Me.speeds)==null?void 0:me[d.speedIndex])==null?void 0:De.speed)==null?void 0:ge.argv,(xe=(Ve=(ye=(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)==null?void 0:Ee[d.speedIndex])==null?void 0:ye.speed)==null?void 0:Ve.sample)==null?void 0:xe.wps),(M,nt)=>(t.openBlock(),t.createElementBlock("div",{key:nt,class:"cell-row"},[t.createElementVNode("div",Ps,[M.isResume?(t.openBlock(),t.createElementBlock("div",Ws,"Resume")):(t.openBlock(),t.createElementBlock("div",Ls,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(M)),1),M.pilot?(t.openBlock(),t.createElementBlock("span",Zs,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",_s,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(M.eta))+" ",1),M.cp?(t.openBlock(),t.createElementBlock("span",Hs,"[cp: "+t.toDisplayString(M.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),nt?(t.openBlock(),t.createElementBlock("div",Js,t.toDisplayString(i.computeNav(M)),1)):(t.openBlock(),t.createElementBlock("div",Xs)),nt?(t.openBlock(),t.createElementBlock("div",Ks,t.toDisplayString(i.roundPrecision(M.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",qs)),nt?(t.openBlock(),t.createElementBlock("div",us,t.toDisplayString(i.roundPrecision(M.avgSpd??M.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",$s)),nt?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeCog(M.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",tN)),nt?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.computeMemo(M)),1)):(t.openBlock(),t.createElementBlock("div",aN))]))),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",lN,[(ze=(pe=a.plan)==null?void 0:pe.speeds)!=null&&ze.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",oN,[t.createElementVNode("div",iN,[t.createElementVNode("div",nN,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",dN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((ke=(Ue=(I=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:I.speed)==null?void 0:Ue.lane)==null?void 0:ke.name),1),((Ce=(Oe=a.plan)==null?void 0:Oe.speeds)==null?void 0:Ce.length)>1?(t.openBlock(),t.createElementBlock("div",rN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((fe=a.plan)==null?void 0:fe.speeds,(M,nt)=>{var te,ee;return t.openBlock(),t.createElementBlock("div",{key:nt,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===nt?"active":""]),onClick:Ae=>{d.speedIndex=nt,i.renderEchart()}},t.toDisplayString((ee=(te=M==null?void 0:M.speed)==null?void 0:te.lane)==null?void 0:ee.name),11,sN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",NN,[t.createElementVNode("div",cN,null,512)]),t.createElementVNode("div",MN,"* "+t.toDisplayString(i.computeModel((Qe=(Ye=(he=a.plan)==null?void 0:he.speeds)==null?void 0:Ye[d.speedIndex])==null?void 0:Qe.speed)),1)]),e[68]||(e[68]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"8px","font-size":"12px"}}," * Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4. ",-1)),t.createElementVNode("table",mN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(Pa=(ae=a.plan)==null?void 0:ae.voyage)!=null&&Pa.sendRptWithBF?3:2},"Wind",8,DN),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[57]||(e[57]=t.createElementVNode("th",null,"Dir",-1)),e[58]||(e[58]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(La=(Wa=a.plan)==null?void 0:Wa.voyage)!=null&&La.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",gN,"BF")):t.createCommentVNode("",!0),e[59]||(e[59]=t.createElementVNode("th",null,"Dir",-1)),e[60]||(e[60]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),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)),e[67]||(e[67]=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((Xa=(Ja=(Ha=(_a=(Za=a.plan)==null?void 0:Za.speeds)==null?void 0:_a[d.speedIndex])==null?void 0:Ha.speed)==null?void 0:Ja.sample)==null?void 0:Xa.hours,(M,nt)=>{var te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ka,qa,ua,$a,va,el,al,ll,ol,il;return t.openBlock(),t.createElementBlock("tr",{key:nt},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(M.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",IN,t.toDisplayString(i.computeLat(M.lat))+", "+t.toDisplayString(i.computeLng(M.lng)),1)]),t.createElementVNode("td",EN,[(ee=(te=M.meteo)==null?void 0:te.wind)!=null&&ee.kts?(t.openBlock(),t.createElementBlock("span",yN,t.toDisplayString((we=(Ae=M.meteo)==null?void 0:Ae.wind)==null?void 0:we.direction),1)):t.createCommentVNode("",!0),(Be=(Re=M.meteo)==null?void 0:Re.wind)!=null&&Be.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",(Ge=(Fe=M.meteo)==null?void 0:Fe.wind)==null?void 0:Ge.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",AN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((We=(Pe=M==null?void 0:M.meteo)==null?void 0:Pe.wind)==null?void 0:We.scale)>=4?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((Ze=(Le=M.meteo)==null?void 0:Le.wind)==null?void 0:Ze.kts,1)),3),(He=(_e=a.plan)==null?void 0:_e.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bN,t.toDisplayString((Xe=(Je=M.meteo)==null?void 0:Je.wind)==null?void 0:Xe.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ue=(qe=(Ke=M.meteo)==null?void 0:Ke.wave)==null?void 0:qe.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",TN,[(ta=(ve=($e=M.meteo)==null?void 0:$e.wave)==null?void 0:ve.swell)!=null&&ta.height?(t.openBlock(),t.createElementBlock("span",VN,t.toDisplayString((la=(aa=(ea=M.meteo)==null?void 0:ea.wave)==null?void 0:aa.swell)==null?void 0:la.direction),1)):t.createCommentVNode("",!0),(na=(ia=(oa=M.meteo)==null?void 0:oa.wave)==null?void 0:ia.swell)!=null&&na.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(sa=(ra=(da=M.meteo)==null?void 0:da.wave)==null?void 0:ra.swell)==null?void 0:sa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",xN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((Ma=(ca=(Na=M==null?void 0:M.meteo)==null?void 0:Na.wave)==null?void 0:ca.swell)==null?void 0:Ma.height)>=1.5?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((ga=(Da=(ma=M.meteo)==null?void 0:ma.wave)==null?void 0:Da.swell)==null?void 0:ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ya=(Ea=(Ia=M.meteo)==null?void 0:Ia.wave)==null?void 0:Ea.swell)==null?void 0:ya.period,1)),1),t.createElementVNode("td",pN,[(Ta=(ba=(Aa=M.meteo)==null?void 0:Aa.wave)==null?void 0:ba.sig)!=null&&Ta.height?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((pa=(xa=(Va=M.meteo)==null?void 0:Va.wave)==null?void 0:xa.sig)==null?void 0:pa.direction),1)):t.createCommentVNode("",!0),(Sa=(ja=(za=M.meteo)==null?void 0:za.wave)==null?void 0:ja.sig)!=null&&Sa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Oa=(ka=(Ua=M.meteo)==null?void 0:Ua.wave)==null?void 0:ka.sig)==null?void 0:Oa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(((ha=(fa=(Ca=M==null?void 0:M.meteo)==null?void 0:Ca.wave)==null?void 0:fa.sig)==null?void 0:ha.height)>=1.5?"bg-heavy":"")},t.toDisplayString(i.roundPrecision((wa=(Qa=(Ya=M.meteo)==null?void 0:Ya.wave)==null?void 0:Qa.sig)==null?void 0:wa.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Fa=(Ba=(Ra=M.meteo)==null?void 0:Ra.wave)==null?void 0:Ba.sig)==null?void 0:Fa.period,1)),1),t.createElementVNode("td",SN,[(qa=(Ka=M.meteo)==null?void 0:Ka.current)!=null&&qa.kts?(t.openBlock(),t.createElementBlock("span",UN,t.toDisplayString(($a=(ua=M.meteo)==null?void 0:ua.current)==null?void 0:$a.direction),1)):t.createCommentVNode("",!0),(el=(va=M.meteo)==null?void 0:va.current)!=null&&el.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(ll=(al=M.meteo)==null?void 0:al.current)==null?void 0:ll.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",kN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((il=(ol=M.meteo)==null?void 0:ol.current)==null?void 0:il.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(M.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[69]||(e[69]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map 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))])}const vn=Ga(Cr,[["render",ON],["__scopeId","data-v-65f6b054"]]),CN={install(o){o.component("PlanReport",vn)}},iS="",fN={name:"OrmVoyageSummary",components:{Editor:dl},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 qt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=qt(o).diff(qt(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${qt(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 Y.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return Y.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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.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,c)=>{var g,r;a.excluded.detail.forEach(N=>{const T={time:qt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+qt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.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(N=>N.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},hN={class:"report-summary"},YN={class:"info-block"},QN={class:"col"},wN={class:"label-block"},RN={class:"text"},BN={class:"label-block"},FN={class:"text"},GN={class:"label-block"},PN={class:"text"},WN={class:"col"},LN={class:"label-block"},ZN={key:0},_N={key:1},HN={style:{"margin-left":"16px"}},JN={class:"label-block"},XN={key:0},KN={key:1},qN={style:{"margin-left":"16px"}},uN={class:"label-block"},$N={class:"text"},vN={class:"section weather-section"},tc={class:"definition bg-blue-light-2"},ec={style:{"line-height":"1.5"}},ac={class:"section summary-section"},lc={class:"phase-box"},oc={class:"phase-index"},ic={class:"phase-position"},nc={key:0},dc={key:1},rc={class:"phase-position"},sc={key:0},Nc={key:1},cc={class:"phase-cp"},Mc={class:"orm-report-table"},mc={class:"phase-conclusion"},Dc={class:"item-conclusion bg-blue-light-2"},gc={class:"value align-left"},Ic={key:0,class:"text-secondary align-right"},Ec={key:0},yc={key:1},Ac={key:2},bc={key:1,class:"text-secondary"},Tc={key:2,class:"value"},Vc={key:0},xc={class:"gain"},pc={key:1},zc={class:"lost"},jc={key:2},Sc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},kc={key:0,class:"text-secondary"},Oc={key:0},Cc={key:1},fc={key:2},hc={key:1,class:"text-secondary"},Yc={key:2,class:"value"},Qc={key:0},wc={class:"gain"},Rc={key:1},Bc={class:"lost"},Fc={key:2},Gc={class:"item-conclusion bg-blue-light-2"},Pc={class:"value align-left"},Wc={key:0,class:"text-secondary"},Lc={key:0},Zc={key:1},_c={key:2},Hc={key:1,class:"text-secondary"},Jc={key:2,class:"value"},Xc={key:0},Kc={class:"gain"},qc={key:1},uc={class:"lost"},$c={key:2},vc={key:0,class:"exclusion-block"},tM={style:{margin:"8px 0"}},eM={class:"orm-report-table"},aM=["innerHTML"],lM={class:"section segment-section"},oM={class:"segment-summary"},iM={class:"segment-index text-left"},nM={class:"segment-position"},dM={key:0},rM={key:1},sM={class:"segment-position"},NM={key:0},cM={key:1},MM={class:"orm-report-table"},mM={class:"good-wx"},DM={class:"good-wx"},gM={class:"good-wx"},IM={class:"good-wx"},EM={class:"good-wx"},yM={class:"good-wx"},AM={class:"good-wx"},bM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},UM={key:0},kM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},OM={key:2,class:"segment-speed"},CM={class:"row"},fM={class:"speed-right row"},hM={class:"speed"},YM={key:1,class:"speed"},QM={key:0,class:"speed"},wM={class:"speed"},RM={class:"speed"},BM={class:"speed"},FM={key:2,class:"under"},GM={key:3,class:"over"},PM={class:"row"},WM={class:"speed-right formula flex-space"},LM={key:0},ZM={key:3,class:"segment-speed"},_M={class:"row"},HM={class:"speed-right row"},JM={class:"speed"},XM={class:"speed"},KM={key:2,class:"under"},qM={key:3,class:"over"},uM={class:"row"},$M={class:"speed-right formula row"},vM={class:"segment-formula"},tm={class:"sub-title"},em={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},am={class:"formula-block"},lm={class:"formula-item flex-evenly bg-blue-light"},om={class:"formula-right flex-evenly"},im={class:"fraction",style:{width:"240px"}},nm={class:"formula-item flex-center bg-blue-light"},dm={class:"formula-left flex-space"},rm={class:"formula-right flex-evenly"},sm={class:"fraction",style:{width:"240px"}},Nm={class:"formula-item flex-center bg-blue-light"},cm={class:"formula-left flex-space"},Mm={class:"formula-right flex-evenly"},mm={class:"fraction",style:{width:"240px"}},Dm={class:"formula-desc"},gm={class:"flex-end"},Im={class:"flex-end"},Em={class:"flex-end"},ym={key:0,class:"formula-block"},Am={class:"formula-item flex-evenly bg-blue-light"},bm={class:"formula-right flex-evenly"},Tm={class:"fraction",style:{width:"200px"}},Vm={class:"formula-item flex-center bg-blue-light"},xm={class:"formula-left flex-space"},pm={class:"formula-right flex-evenly"},zm={class:"fraction",style:{width:"200px"}},jm={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},Um={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"200px"}},Om={class:"formula-item formula-conclusion bg-blue-light"},Cm={key:0,class:"flex-evenly",style:{width:"500px"}},fm={key:1,class:"flex-evenly",style:{width:"500px"}},hm={class:"flex-center"},Ym={key:1,class:"formula-conclusion bg-blue-light"},Qm={class:"segment-formula"},wm={class:"sub-title"},Rm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Bm={class:"formula-block"},Fm={class:"formula-item flex-evenly bg-blue-light"},Gm={class:"formula-right flex-evenly"},Pm={class:"fraction",style:{width:"240px"}},Wm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},Lm={key:0,class:"flex-end text-tips"},Zm={class:"formula-item flex-center bg-blue-light"},_m={class:"formula-right flex-evenly"},Hm={class:"fraction",style:{width:"200px"}},Jm={class:"formula-item flex-center bg-blue-light"},Xm={class:"formula-right flex-evenly"},Km={class:"fraction",style:{width:"200px"}},qm={class:"formula-item flex-center bg-blue-light"},um={class:"formula-right flex-evenly"},$m={class:"fraction",style:{width:"300px"}},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"300px"}},aD={class:"sub-title"},lD={key:0,class:"formula-block"},oD={key:0,class:"formula-item flex-evenly bg-blue-light"},iD={class:"formula-right flex-evenly"},nD={class:"fraction",style:{width:"60px"}},dD={class:"fraction",style:{width:"60px"}},rD={class:"formula-item flex-evenly bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"150px"}},cD={class:"fraction",style:{width:"150px"}},MD={key:0},mD={class:"formula-item flex-evenly bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"150px"}},ID={class:"fraction",style:{width:"150px"}},ED={class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},TD={class:"formula-item formula-conclusion bg-blue-light"},VD={class:"flex-evenly",style:{width:"500px"}},xD={key:0,class:"flex-evenly"},pD={class:"fraction"},zD={class:"flex-evenly",style:{width:"700px"}},jD={key:0,class:"flex-evenly",style:{width:"500px"}},SD={class:"fraction",style:{width:"140px"}},UD={key:1,class:"formula-item formula-conclusion bg-blue-light"},kD={class:"header-block"},OD={class:"bg-block"},CD={class:"title"},fD={key:0,class:"formula-block"},hD={class:"formula-item flex-evenly bg-blue-light"},YD={class:"formula-right flex-evenly"},QD={class:"fraction",style:{width:"150px"}},wD={class:"fraction",style:{width:"150px"}},RD={key:0},BD={class:"formula-item flex-evenly bg-blue-light"},FD={class:"formula-right flex-evenly"},GD={class:"fraction",style:{width:"150px"}},PD={class:"fraction",style:{width:"150px"}},WD={class:"formula-item flex-evenly bg-blue-light"},LD={class:"formula-right flex-evenly"},ZD={class:"fraction",style:{width:"150px"}},_D={class:"fraction",style:{width:"150px"}},HD={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},JD={key:0,class:"flex-evenly",style:{width:"500px"}},XD={key:1,class:"flex-evenly",style:{width:"700px"}},KD={key:1,class:"formula-item formula-conclusion bg-blue-light"};function qD(o,e,a,c,d,i){var r,N,T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",hN,[t.createElementVNode("div",YN,[t.createElementVNode("div",QN,[t.createElementVNode("div",wN,[e[3]||(e[3]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",RN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",BN,[e[4]||(e[4]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",FN,t.toDisplayString((N=(r=a.report)==null?void 0:r.vessel)==null?void 0:N.name)+" ("+t.toDisplayString((A=(T=a.report)==null?void 0:T.vessel)==null?void 0:A.type)+")",1)]),t.createElementVNode("div",GN,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",PN,t.toDisplayString(((C=(V=a.report)==null?void 0:V.voyage)==null?void 0:C.voyNum)||((y=(h=a.report)==null?void 0:h.voyage)==null?void 0:y.number)),1)])]),t.createElementVNode("div",WN,[t.createElementVNode("div",LN,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(O=(x=a.report)==null?void 0:x.departure)!=null&&O.name?(t.openBlock(),t.createElementBlock("span",ZN,t.toDisplayString((p=(E=a.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",_N,t.toDisplayString(i.computePosition((U=a.report)==null?void 0:U.departure)),1)),t.createElementVNode("span",HN,t.toDisplayString(i.computeUTCTime((D=(k=a.report)==null?void 0:k.departure)==null?void 0:D.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",JN,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(w=(Q=a.report)==null?void 0:Q.arrival)!=null&&w.portName?(t.openBlock(),t.createElementBlock("span",XN,t.toDisplayString((f=(j=a.report)==null?void 0:j.arrival)==null?void 0:f.portName),1)):(t.openBlock(),t.createElementBlock("span",KN,t.toDisplayString(i.computePosition((R=a.report)==null?void 0:R.arrival)),1)),t.createElementVNode("span",qN,t.toDisplayString(i.computeUTCTime((P=(B=a.report)==null?void 0:B.arrival)==null?void 0:P.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",uN,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",$N,t.toDisplayString((Z=(L=a.report)==null?void 0:L.voyage)==null?void 0:Z.loadCondition),1)])])]),t.createElementVNode("div",vN,[e[9]||(e[9]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",tc,[t.createElementVNode("div",ec,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",ac,[e[37]||(e[37]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((_=a.report)==null?void 0:_.segments,(l,F)=>{var X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+F,class:"segment-box"},[t.createElementVNode("div",lc,[t.createElementVNode("div",oc,"Seg."+t.toDisplayString(F+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((X=l==null?void 0:l.extend)==null?void 0:X.segTimes,(z,ut)=>{var b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt;return t.openBlock(),t.createElementBlock("div",{key:ut,class:"phase-row text-secondary"},[t.createElementVNode("div",ic,[(b=z==null?void 0:z.departure)!=null&&b.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((n=z==null?void 0:z.departure)==null?void 0:n.portName),1)):(t.openBlock(),t.createElementBlock("span",dc,t.toDisplayString(i.computeLat((S=z==null?void 0:z.departure)==null?void 0:S.lat).pretty)+", "+t.toDisplayString(i.computeLng((it=z==null?void 0:z.departure)==null?void 0:it.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Rt=z==null?void 0:z.departure)==null?void 0:Rt.utcTime))+")",1)]),e[10]||(e[10]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",rc,[(Bt=z==null?void 0:z.arrival)!=null&&Bt.portName?(t.openBlock(),t.createElementBlock("span",sc,t.toDisplayString((Ft=z==null?void 0:z.arrival)==null?void 0:Ft.portName),1)):(t.openBlock(),t.createElementBlock("span",Nc,t.toDisplayString(i.computeLat((Gt=z==null?void 0:z.arrival)==null?void 0:Gt.lat).pretty)+", "+t.toDisplayString(i.computeLng((Pt=z==null?void 0:z.arrival)==null?void 0:Pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Wt=z==null?void 0:z.arrival)==null?void 0:Wt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",cc,[t.createElementVNode("table",Mc,[e[18]||(e[18]=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[17]||(e[17]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((q=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:q.speed)+" |",1),e[11]||(e[11]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($=(u=l==null?void 0:l.extend)==null?void 0:u.cp)==null?void 0:$.speed,"Over"))+",",1),e[12]||(e[12]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tt=(v=l==null?void 0:l.extend)==null?void 0:v.cp)==null?void 0:tt.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((at=(et=l==null?void 0:l.extend)==null?void 0:et.cp)==null?void 0:at.fo)+" |",1),e[13]||(e[13]=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[14]||(e[14]=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((ot=(lt=l==null?void 0:l.extend)==null?void 0:lt.cp)==null?void 0:ot.dgo)+" |",1),e[15]||(e[15]=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[16]||(e[16]=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",mc,[t.createElementVNode("div",Dc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",gc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Ic,[((W=l==null?void 0:l.timeConclusion)==null?void 0:W.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Ec,"Time Gained")):((rt=l==null?void 0:l.timeConclusion)==null?void 0:rt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Ac,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Tc,[((st=l==null?void 0:l.timeConclusion)==null?void 0:st.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Vc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",xc,t.toDisplayString((Nt=l==null?void 0:l.timeConclusion)==null?void 0:Nt.timeGain),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((ct=l==null?void 0:l.timeConclusion)==null?void 0:ct.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",pc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",zc,t.toDisplayString((Mt=l==null?void 0:l.timeConclusion)==null?void 0:Mt.timeLost),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",jc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Sc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Uc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",kc,[((Dt=(mt=l==null?void 0:l.fuelConclusion)==null?void 0:mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Oc,"FO Saving")):((It=(gt=l==null?void 0:l.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Cc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",fc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Yc,[((yt=(Et=l==null?void 0:l.fuelConclusion)==null?void 0:Et.fo)==null?void 0:yt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Qc,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",wc,t.toDisplayString((bt=(At=l==null?void 0:l.fuelConclusion)==null?void 0:At.fo)==null?void 0:bt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Vt=(Tt=l==null?void 0:l.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Rc,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((pt=(xt=l==null?void 0:l.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Fc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Gc,[e[36]||(e[36]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Pc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Wc,[((jt=(zt=l==null?void 0:l.fuelConclusion)==null?void 0:zt.dgo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Lc,"DO/GO Saving")):((Ut=(St=l==null?void 0:l.fuelConclusion)==null?void 0:St.dgo)==null?void 0:Ut.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Zc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",_c,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Jc,[((Ot=(kt=l==null?void 0:l.fuelConclusion)==null?void 0:kt.dgo)==null?void 0:Ot.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Xc,[e[32]||(e[32]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Kc,t.toDisplayString((ft=(Ct=l==null?void 0:l.fuelConclusion)==null?void 0:Ct.dgo)==null?void 0:ft.saving),1),e[33]||(e[33]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Yt=(ht=l==null?void 0:l.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",qc,[e[34]||(e[34]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",uc,t.toDisplayString((wt=(Qt=l==null?void 0:l.fuelConclusion)==null?void 0:Qt.dgo)==null?void 0:wt.overCons),1),e[35]||(e[35]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$c,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[38]||(e[38]=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((H=a.report)==null?void 0:H.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[42]||(e[42]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",vc,[e[40]||(e[40]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[41]||(e[41]=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",tM,[t.createElementVNode("table",eM,[e[39]||(e[39]=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,F)=>(t.openBlock(),t.createElementBlock("tr",{key:F},[t.createElementVNode("td",null,t.toDisplayString(F+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((J=a.report)==null?void 0:J.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,aM))],2)],2),t.createElementVNode("div",lM,[e[244]||(e[244]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,F)=>{var X,K,q,u,$,v,tt,et,at,lt,ot,W,rt,st,Nt,ct,Mt,mt,Dt,gt,It,Et,yt,At,bt,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,Ot,Ct,ft,ht,Yt,Qt,wt,z,ut,b,n,S,it,Rt,Bt,Ft,Gt,Pt,Wt,$t,G,vt,le,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ve,xe,pe,ze,je,Se,I,Ue,ke,Oe,Ce,fe,he,Ye,Qe,ae,Pa,Wa,La,Za,_a,Ha,Ja,Xa,M,nt,te,ee,Ae,we,Re,Be,Fe,Ge,Pe,We,Le,Ze,_e,He,Je,Xe,Ke,qe,ue,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,ba,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,Oa,Ca,fa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ka,qa,ua,$a,va,el,al,ll,ol,il,sl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,bl,Tl,Vl,xl,pl,zl,jl,Sl,Ul,kl,Ol,Cl,fl,hl,Yl,Ql,wl,Rl,m,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,tl,Kl,ql,ul,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,bo,To,Vo,xo,po,zo,jo,So,Uo,ko,Oo,Co,fo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Ho,Jo,Xo,Ko,qo,uo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi,Ai,bi,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,Oi,Ci,fi,hi,Yi,Qi,wi,Ri,s,Lt,Zt,_t,Ht,Jt,Hl,Jl,Xl,be,Gi,Pi,Wi,Li,Zi,_i,Hi,Ji,Xi,Ki,qi,ui,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,bn,Tn,Vn,xn,pn,zn,jn,Sn,Un,kn,On,Cn,fn,hn,Yn,Qn,wn,Rn,Bn;return t.openBlock(),t.createElementBlock("div",{key:F,class:"segment-block"},[t.createElementVNode("div",oM,[t.createElementVNode("div",iM,"Voyage Analysis Seg. "+t.toDisplayString(F+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((X=l==null?void 0:l.extend)==null?void 0:X.segTimes,(Xt,Fi)=>{var rl,Bi,Fn,Gn,Pn,Wn,Ln,Zn,_n,Hn;return t.openBlock(),t.createElementBlock("div",{key:Fi,class:"segment-row text-secondary"},[t.createElementVNode("div",nM,[(rl=Xt==null?void 0:Xt.departure)!=null&&rl.portName?(t.openBlock(),t.createElementBlock("span",dM,t.toDisplayString((Bi=Xt==null?void 0:Xt.departure)==null?void 0:Bi.portName),1)):(t.openBlock(),t.createElementBlock("span",rM,t.toDisplayString(i.computeLat((Fn=Xt==null?void 0:Xt.departure)==null?void 0:Fn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Gn=Xt==null?void 0:Xt.departure)==null?void 0:Gn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Pn=Xt==null?void 0:Xt.departure)==null?void 0:Pn.utcTime))+")",1)]),e[43]||(e[43]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",sM,[(Wn=Xt==null?void 0:Xt.arrival)!=null&&Wn.portName?(t.openBlock(),t.createElementBlock("span",NM,t.toDisplayString((Ln=Xt==null?void 0:Xt.arrival)==null?void 0:Ln.portName),1)):(t.openBlock(),t.createElementBlock("span",cM,t.toDisplayString(i.computeLat((Zn=Xt==null?void 0:Xt.arrival)==null?void 0:Zn.lat).pretty)+", "+t.toDisplayString(i.computeLng((_n=Xt==null?void 0:Xt.arrival)==null?void 0:_n.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Hn=Xt==null?void 0:Xt.arrival)==null?void 0:Hn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",MM,[e[51]||(e[51]=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[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",mM,t.toDisplayString((q=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:q.distance),1),t.createElementVNode("td",DM,t.toDisplayString(($=(u=l==null?void 0:l.goodWx)==null?void 0:u.inEca)==null?void 0:$.distance),1),t.createElementVNode("td",null,t.toDisplayString((tt=(v=l==null?void 0:l.allWx)==null?void 0:v.outEca)==null?void 0:tt.distance),1),t.createElementVNode("td",null,t.toDisplayString((at=(et=l==null?void 0:l.allWx)==null?void 0:et.inEca)==null?void 0:at.distance),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",gM,t.toDisplayString((ot=(lt=l==null?void 0:l.goodWx)==null?void 0:lt.outEca)==null?void 0:ot.time),1),t.createElementVNode("td",IM,t.toDisplayString((rt=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:rt.time),1),t.createElementVNode("td",null,t.toDisplayString((Nt=(st=l==null?void 0:l.allWx)==null?void 0:st.outEca)==null?void 0:Nt.time),1),t.createElementVNode("td",null,t.toDisplayString((Mt=(ct=l==null?void 0:l.allWx)==null?void 0:ct.inEca)==null?void 0:Mt.time),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",EM,t.toDisplayString(((Dt=(mt=l==null?void 0:l.goodWx)==null?void 0:mt.outEca)==null?void 0:Dt.avgSpd)||"--"),1),t.createElementVNode("td",yM,t.toDisplayString(((It=(gt=l==null?void 0:l.goodWx)==null?void 0:gt.inEca)==null?void 0:It.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((yt=(Et=l==null?void 0:l.allWx)==null?void 0:Et.outEca)==null?void 0:yt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(At=l==null?void 0:l.allWx)==null?void 0:At.inEca)==null?void 0:bt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[47]||(e[47]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",AM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.sumFoCons)||"--"),1),t.createElementVNode("td",bM,t.toDisplayString(((pt=(xt=l==null?void 0:l.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.outEca)==null?void 0:jt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(St=l==null?void 0:l.allWx)==null?void 0:St.inEca)==null?void 0:Ut.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[48]||(e[48]=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",TM,t.toDisplayString(((Ot=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.outEca)==null?void 0:Ot.avgFoCons)||"--"),1),t.createElementVNode("td",VM,t.toDisplayString(((ft=(Ct=l==null?void 0:l.goodWx)==null?void 0:Ct.inEca)==null?void 0:ft.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Yt=(ht=l==null?void 0:l.allWx)==null?void 0:ht.outEca)==null?void 0:Yt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(Qt=l==null?void 0:l.allWx)==null?void 0:Qt.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[49]||(e[49]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",xM,t.toDisplayString(((ut=(z=l==null?void 0:l.goodWx)==null?void 0:z.outEca)==null?void 0:ut.sumDgoCons)||"--"),1),t.createElementVNode("td",pM,t.toDisplayString(((n=(b=l==null?void 0:l.goodWx)==null?void 0:b.inEca)==null?void 0:n.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((it=(S=l==null?void 0:l.allWx)==null?void 0:S.outEca)==null?void 0:it.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Rt=l==null?void 0:l.allWx)==null?void 0:Rt.inEca)==null?void 0:Bt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[50]||(e[50]=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",zM,t.toDisplayString(((Gt=(Ft=l==null?void 0:l.goodWx)==null?void 0:Ft.outEca)==null?void 0:Gt.avgDgoCons)||"--"),1),t.createElementVNode("td",jM,t.toDisplayString(((Wt=(Pt=l==null?void 0:l.goodWx)==null?void 0:Pt.inEca)==null?void 0:Wt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((G=($t=l==null?void 0:l.allWx)==null?void 0:$t.outEca)==null?void 0:G.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((le=(vt=l==null?void 0:l.allWx)==null?void 0:vt.inEca)==null?void 0:le.avgDgoCons)||"--"),1)])])]),(oe=l==null?void 0:l.goodWx)!=null&&oe.distance?(t.openBlock(),t.createElementBlock("table",SM,[e[53]||(e[53]=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[F],(Xt,Fi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Fi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Xt,(rl,Bi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Bi},[rl.goodWx?(t.openBlock(),t.createElementBlock("tr",UM,[t.createElementVNode("td",null,t.toDisplayString(rl.type)+" "+t.toDisplayString(i.computeUTCTime(rl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(rl),"MMM-DD/HHmm[Z],YYYY")),1),e[52]||(e[52]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(rl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(rl.utc,i.computePrevTime(rl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ie=d.exclusion[F])!=null&&ie.time?(t.openBlock(),t.createElementBlock("div",kM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ne=l==null?void 0:l.goodWx)!=null&&ne.distance?(t.openBlock(),t.createElementBlock("div",OM,[t.createElementVNode("div",CM,[e[63]||(e[63]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",fM,[(re=(de=a.report)==null?void 0:de.weather)!=null&&re.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ve=(ye=a.report)==null?void 0:ye.weather)!=null&&Ve.disableWxFactor&&((pe=(xe=a.report)==null?void 0:xe.weather)!=null&&pe.disableCFactor)?(t.openBlock(),t.createElementBlock("span",QM,t.toDisplayString((ze=l==null?void 0:l.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(Se=(je=a.report)==null?void 0:je.weather)!=null&&Se.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((I=l==null?void 0:l.goodWx)==null?void 0:I.avgSpd),1),e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.avgCf)>0?(ke=l==null?void 0:l.goodWx)==null?void 0:ke.avgCf:`(${(Oe=l==null?void 0:l.goodWx)==null?void 0:Oe.avgCf})`),1),e[57]||(e[57]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",wM,t.toDisplayString((Ce=l==null?void 0:l.goodWx)==null?void 0:Ce.pfmSpd)+" (kts)",1)],64)):(he=(fe=a.report)==null?void 0:fe.weather)!=null&&he.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.avgSpd),1),e[58]||(e[58]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=l==null?void 0:l.goodWx)==null?void 0:Qe.avgWf)>0?(ae=l==null?void 0:l.goodWx)==null?void 0:ae.avgWf:`(${(Pa=l==null?void 0:l.goodWx)==null?void 0:Pa.avgWf})`),1),e[59]||(e[59]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",RM,t.toDisplayString((Wa=l==null?void 0:l.goodWx)==null?void 0:Wa.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((La=l==null?void 0:l.goodWx)==null?void 0:La.avgSpd),1),e[61]||(e[61]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=l==null?void 0:l.goodWx)==null?void 0:Za.avgWf)>0?(_a=l==null?void 0:l.goodWx)==null?void 0:_a.avgWf:`(${(Ha=l==null?void 0:l.goodWx)==null?void 0:Ha.avgWf})`),1),(Xa=(Ja=a.report)==null?void 0:Ja.weather)!=null&&Xa.favorableCur&&((M=l==null?void 0:l.goodWx)==null?void 0:M.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((nt=l==null?void 0:l.goodWx)==null?void 0:nt.avgCf)>0?(te=l==null?void 0:l.goodWx)==null?void 0:te.avgCf:`(${(ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf})`),1)],64)),e[62]||(e[62]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",BM,t.toDisplayString((Ae=l==null?void 0:l.goodWx)==null?void 0:Ae.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Ne=(se=a.report)==null?void 0:se.weather)!=null&&Ne.favorableCur&&((ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgCf)>0?(t.openBlock(),t.createElementBlock("span",YM,t.toDisplayString((Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((me=l==null?void 0:l.goodWx)==null?void 0:me.avgCf)>0?(De=l==null?void 0:l.goodWx)==null?void 0:De.avgCf:`(${(ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgCf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",hM,t.toDisplayString((Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.pfmSpd)+" (kts)",1)],64))],64)),((we=l==null?void 0:l.goodWx)==null?void 0:we.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",FM,"(Under-performance)")):t.createCommentVNode("",!0),((Re=l==null?void 0:l.goodWx)==null?void 0:Re.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",GM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",PM,[e[80]||(e[80]=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",WM,[(Fe=(Be=a.report)==null?void 0:Be.weather)!=null&&Fe.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ze=(Le=a.report)==null?void 0:Le.weather)!=null&&Ze.disableWxFactor&&((He=(_e=a.report)==null?void 0:_e.weather)!=null&&He.disableCFactor)?(t.openBlock(),t.createElementBlock("label",LM,"GW Average Speed")):(Xe=(Je=a.report)==null?void 0:Je.weather)!=null&&Xe.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[69]||(e[69]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"-",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(qe=(Ke=a.report)==null?void 0:Ke.weather)!=null&&qe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[72]||(e[72]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"-",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[77]||(e[77]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[78]||(e[78]=t.createElementVNode("label",null,"-",-1)),e[79]||(e[79]=t.createElementVNode("label",null,"GW Weather Factor",-1)),($e=(ue=a.report)==null?void 0:ue.weather)!=null&&$e.favorableCur&&((ve=l==null?void 0:l.goodWx)==null?void 0:ve.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[75]||(e[75]=t.createElementVNode("label",null,"-",-1)),e[76]||(e[76]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Pe=(Ge=a.report)==null?void 0:Ge.weather)!=null&&Pe.favorableCur&&((We=l==null?void 0:l.goodWx)==null?void 0:We.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[67]||(e[67]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[64]||(e[64]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"-",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",ZM,[t.createElementVNode("div",_M,[e[86]||(e[86]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HM,[(ea=(ta=a.report)==null?void 0:ta.weather)!=null&&ea.favorableCur&&((aa=l==null?void 0:l.allWx)==null?void 0:aa.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ca=l==null?void 0:l.allWx)==null?void 0:ca.avgSpd),1),e[84]||(e[84]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ma=l==null?void 0:l.allWx)==null?void 0:Ma.avgWf)>0?(ma=l==null?void 0:l.allWx)==null?void 0:ma.avgWf:`(${(Da=l==null?void 0:l.allWx)==null?void 0:Da.avgWf})`),1),e[85]||(e[85]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",XM,t.toDisplayString((ga=l==null?void 0:l.allWx)==null?void 0:ga.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((la=l==null?void 0:l.allWx)==null?void 0:la.avgSpd),1),e[81]||(e[81]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((oa=l==null?void 0:l.allWx)==null?void 0:oa.avgCf)>0?(ia=l==null?void 0:l.allWx)==null?void 0:ia.avgCf:`(${(na=l==null?void 0:l.allWx)==null?void 0:na.avgCf})`),1),e[82]||(e[82]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((da=l==null?void 0:l.allWx)==null?void 0:da.avgWf)>0?(ra=l==null?void 0:l.allWx)==null?void 0:ra.avgWf:`(${(sa=l==null?void 0:l.allWx)==null?void 0:sa.avgWf})`),1),e[83]||(e[83]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",JM,t.toDisplayString((Na=l==null?void 0:l.allWx)==null?void 0:Na.pfmSpd)+" (kts)",1)],64)),((Ia=l==null?void 0:l.allWx)==null?void 0:Ia.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",KM,"(Under-performance)")):t.createCommentVNode("",!0),((Ea=l==null?void 0:l.allWx)==null?void 0:Ea.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",qM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",uM,[e[96]||(e[96]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[(Aa=(ya=a.report)==null?void 0:ya.weather)!=null&&Aa.favorableCur&&((ba=l==null?void 0:l.allWx)==null?void 0:ba.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[92]||(e[92]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[93]||(e[93]=t.createElementVNode("label",null,"-",-1)),e[94]||(e[94]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[95]||(e[95]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[87]||(e[87]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"-",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"Current Factor",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"-",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",vM,[t.createElementVNode("div",tm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(F+1)+" Time Analysis",1),(Va=(Ta=a.report)==null?void 0:Ta.weather)!=null&&Va.noExtrapolation?(t.openBlock(),t.createElementBlock("span",em,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",am,[t.createElementVNode("div",lm,[e[100]||(e[100]=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",om,[t.createElementVNode("div",im,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=a.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[97]||(e[97]=t.createElementVNode("div",{class:"line"},null,-1)),e[98]||(e[98]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[99]||(e[99]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",nm,[t.createElementVNode("div",dm,[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[101]||(e[101]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",rm,[t.createElementVNode("div",sm,[t.createElementVNode("div",null,t.toDisplayString((Ua=(Sa=a.report)==null?void 0:Sa.weather)!=null&&Ua.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[102]||(e[102]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Oa=(ka=l==null?void 0:l.extend)==null?void 0:ka.cp)==null?void 0:Oa.speed,"Under"))+"kts",1)]),e[103]||(e[103]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Nm,[t.createElementVNode("div",cm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(fa=(Ca=l==null?void 0:l.extend)==null?void 0:Ca.cp)==null?void 0:fa.speed,"Over"))+"kts)",1),e[104]||(e[104]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("div",null,t.toDisplayString((Ya=(ha=a.report)==null?void 0:ha.weather)!=null&&Ya.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(wa=(Qa=l==null?void 0:l.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Over"))+"kts",1)]),e[106]||(e[106]=t.createElementVNode("div",null,"(c)",-1))])]),e[107]||(e[107]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-e150d860><div class="flex-space" style="width:300px;font-weight:400;" data-v-e150d860><label data-v-e150d860>Time Lost</label><div data-v-e150d860>=</div><div data-v-e150d860>(a)</div><div data-v-e150d860>-</div><div data-v-e150d860>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-e150d860><label data-v-e150d860>Time Gained</label><div data-v-e150d860>=</div><div data-v-e150d860>(c)</div><div data-v-e150d860>-</div><div data-v-e150d860>(a)</div></div></div>',1))]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[e[108]||(e[108]=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,(Ba=(Ra=l==null?void 0:l.extend)==null?void 0:Ra.cp)==null?void 0:Ba.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Im,[e[109]||(e[109]=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,(Ka=(Fa=l==null?void 0:l.extend)==null?void 0:Fa.cp)==null?void 0:Ka.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Em,[e[110]||(e[110]=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,(ua=(qa=l==null?void 0:l.extend)==null?void 0:qa.cp)==null?void 0:ua.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,(va=($a=l==null?void 0:l.extend)==null?void 0:$a.cp)==null?void 0:va.speed,"Under"))+" kts) ",1)])]),(el=l==null?void 0:l.goodWx)!=null&&el.distance?(t.openBlock(),t.createElementBlock("div",ym,[t.createElementVNode("div",Am,[e[114]||(e[114]=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",bm,[t.createElementVNode("div",Tm,[t.createElementVNode("div",null,t.toDisplayString((ll=(al=a.report)==null?void 0:al.weather)!=null&&ll.noExtrapolation?(ol=l==null?void 0:l.goodWx)==null?void 0:ol.distance:(il=l==null?void 0:l.allWx)==null?void 0:il.distance),1),e[111]||(e[111]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((sl=l==null?void 0:l.goodWx)==null?void 0:sl.pfmSpd),1)]),e[112]||(e[112]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeAtPfmSpd)+" (hrs)",1),e[113]||(e[113]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ml=(cl=l==null?void 0:l.extend)==null?void 0:cl.cp)==null?void 0:Ml.speed,"Under"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("div",null,t.toDisplayString((Dl=(ml=a.report)==null?void 0:ml.weather)!=null&&Dl.noExtrapolation?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.distance:(Il=l==null?void 0:l.allWx)==null?void 0:Il.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((El=l==null?void 0:l.timeConclusion)==null?void 0:El.minusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yl=l==null?void 0:l.timeConclusion)==null?void 0:yl.timeAtMinusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",jm,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(bl=(Al=l==null?void 0:l.extend)==null?void 0:Al.cp)==null?void 0:bl.speed,"Over"))+"kts)",1),e[119]||(e[119]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Um,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((Vl=(Tl=a.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?(xl=l==null?void 0:l.goodWx)==null?void 0:xl.distance:(pl=l==null?void 0:l.allWx)==null?void 0:pl.distance),1),e[120]||(e[120]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zl=l==null?void 0:l.timeConclusion)==null?void 0:zl.plusAbtSpd),1)]),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jl=l==null?void 0:l.timeConclusion)==null?void 0:jl.timeAtPlusAbtSpd)+" (hrs)",1),e[122]||(e[122]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Om,[((Sl=l==null?void 0:l.timeConclusion)==null?void 0:Sl.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Cm,[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,"(a') - (b')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ul=l==null?void 0:l.timeConclusion)==null?void 0:Ul.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kl=l==null?void 0:l.timeConclusion)==null?void 0:kl.timeAtMinusAbtSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=l==null?void 0:l.timeConclusion)==null?void 0:Ol.timeLost)+" (hrs)",1)])):((Cl=l==null?void 0:l.timeConclusion)==null?void 0:Cl.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fm,[e[129]||(e[129]=t.createElementVNode("div",null,"Time Lost",-1)),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),e[131]||(e[131]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[132]||(e[132]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fl=l==null?void 0:l.timeConclusion)==null?void 0:fl.timeAtPlusAbtSpd),1),e[133]||(e[133]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((hl=l==null?void 0:l.timeConclusion)==null?void 0:hl.timeAtPfmSpd),1),e[134]||(e[134]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=l==null?void 0:l.timeConclusion)==null?void 0:Yl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",hm,[e[135]||(e[135]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Ql=l==null?void 0:l.timeConclusion)==null?void 0:Ql.conclusionStatus)==="Lost"?"lost":((wl=l==null?void 0:l.timeConclusion)==null?void 0:wl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Rl=l==null?void 0:l.timeConclusion)==null?void 0:Rl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Ym,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(F+1)+" Consumption Analysis",1),(Bl=(m=a.report)==null?void 0:m.weather)!=null&&Bl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Rm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Bm,[t.createElementVNode("div",Fm,[e[141]||(e[141]=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",Gm,[t.createElementVNode("div",Pm,[t.createElementVNode("div",null,t.toDisplayString((Gl=(Fl=a.report)==null?void 0:Fl.weather)!=null&&Gl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),e[137]||(e[137]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=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[140]||(e[140]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",Wm,[e[142]||(e[142]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Wl=(Pl=l.extend)==null?void 0:Pl.cp)==null?void 0:Wl.dgo)>0?(t.openBlock(),t.createElementBlock("div",Lm," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zm,[e[147]||(e[147]=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",_m,[t.createElementVNode("div",Hm,[t.createElementVNode("div",null,t.toDisplayString((Zl=(Ll=a.report)==null?void 0:Ll.weather)!=null&&Zl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[143]||(e[143]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tl=(_l=l==null?void 0:l.extend)==null?void 0:_l.cp)==null?void 0:tl.speed,"Under"))+"kts",1)]),e[144]||(e[144]=t.createElementVNode("div",null,"x",-1)),e[145]||(e[145]=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[146]||(e[146]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",Jm,[e[152]||(e[152]=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",Xm,[t.createElementVNode("div",Km,[t.createElementVNode("div",null,t.toDisplayString((ql=(Kl=a.report)==null?void 0:Kl.weather)!=null&&ql.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($l=(ul=l==null?void 0:l.extend)==null?void 0:ul.cp)==null?void 0:$l.speed,"Over"))+"kts",1)]),e[149]||(e[149]=t.createElementVNode("div",null,"x",-1)),e[150]||(e[150]=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[151]||(e[151]=t.createElementVNode("div",null,"(f)",-1))])]),e[159]||(e[159]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-e150d860><div class="flex-space" style="width:240px;" data-v-e150d860><label data-v-e150d860>Fuel Over-consumption</label><div data-v-e150d860>=</div><div data-v-e150d860>(d)</div><div data-v-e150d860>-</div><div data-v-e150d860>(e)</div></div><div class="flex-space" style="width:200px;" data-v-e150d860><label data-v-e150d860>Fuel Saving</label><div data-v-e150d860>=</div><div data-v-e150d860>(f)</div><div data-v-e150d860>-</div><div data-v-e150d860>(d)</div></div></div>',1)),((to=(vl=l.extend)==null?void 0:vl.cp)==null?void 0:to.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",qm,[e[155]||(e[155]=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",um,[t.createElementVNode("div",$m,[e[153]||(e[153]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=(eo=a.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",vm,[e[158]||(e[158]=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",tD,[t.createElementVNode("div",eD,[e[156]||(e[156]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[157]||(e[157]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=a.report)==null?void 0:lo.weather)!=null&&oo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[243]||(e[243]=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")])],-1)),t.createElementVNode("div",aD,"Seg. "+t.toDisplayString(F+1)+" Fuel Oil",1),(io=l==null?void 0:l.goodWx)!=null&&io.distance?(t.openBlock(),t.createElementBlock("div",lD,[((ro=(no=l==null?void 0:l.goodWx)==null?void 0:no.inEca)==null?void 0:ro.distance)>0?(t.openBlock(),t.createElementBlock("div",oD,[e[165]||(e[165]=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",iD,[t.createElementVNode("div",nD,[t.createElementVNode("div",null,t.toDisplayString((No=(so=l==null?void 0:l.goodWx)==null?void 0:so.inEca)==null?void 0:No.sumDgoCons),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.extend)==null?void 0:co.cp)==null?void 0:Mo.dgo),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),e[161]||(e[161]=t.createElementVNode("div",null,"24",-1))]),e[163]||(e[163]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l==null?void 0:l.goodWx)==null?void 0:mo.inEca)==null?void 0:Do.time),1),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=l==null?void 0:l.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",rD,[e[172]||(e[172]=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",sD,[t.createElementVNode("div",ND,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=a.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=l==null?void 0:l.goodWx)==null?void 0:Ao.distance:(bo=l==null?void 0:l.allWx)==null?void 0:bo.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((To=l==null?void 0:l.goodWx)==null?void 0:To.pfmSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Vo=l==null?void 0:l.goodWx)==null?void 0:Vo.sumFoCons),1),((po=(xo=l==null?void 0:l.goodWx)==null?void 0:xo.inEca)==null?void 0:po.distance)>0?(t.openBlock(),t.createElementBlock("span",MD,[e[167]||(e[167]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((So=l==null?void 0:l.goodWx)==null?void 0:So.time),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ko=(Uo=l.fuelConclusion)==null?void 0:Uo.fo)==null?void 0:ko.entireCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",mD,[e[179]||(e[179]=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",DD,[t.createElementVNode("div",gD,[t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=a.report)==null?void 0:Oo.weather)!=null&&Co.noExtrapolation?(fo=l==null?void 0:l.goodWx)==null?void 0:fo.distance:(ho=l==null?void 0:l.allWx)==null?void 0:ho.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=l==null?void 0:l.timeConclusion)==null?void 0:Yo.minusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((wo=(Qo=l==null?void 0:l.fuelConclusion)==null?void 0:Qo.fo)==null?void 0:wo.overTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bo=(Ro=l.fuelConclusion)==null?void 0:Ro.fo)==null?void 0:Bo.maxCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",ED,[e[186]||(e[186]=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",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((Go=(Fo=a.report)==null?void 0:Fo.weather)!=null&&Go.noExtrapolation?(Po=l==null?void 0:l.goodWx)==null?void 0:Po.distance:(Wo=l==null?void 0:l.allWx)==null?void 0:Wo.distance),1),e[180]||(e[180]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=l==null?void 0:l.timeConclusion)==null?void 0:Lo.plusAbtSpd),1)]),e[183]||(e[183]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.underTolerance),1),e[181]||(e[181]=t.createElementVNode("div",{class:"line"},null,-1)),e[182]||(e[182]=t.createElementVNode("div",null,"24",-1))]),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(Ho=l.fuelConclusion)==null?void 0:Ho.fo)==null?void 0:Jo.minCons)+" (mt)",1),e[185]||(e[185]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",TD,[((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",VD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(qo=l==null?void 0:l.fuelConclusion)==null?void 0:qo.fo)==null?void 0:uo.entireCons),1),e[191]||(e[191]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=($o=l==null?void 0:l.fuelConclusion)==null?void 0:$o.fo)==null?void 0:vo.maxCons),1),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ei=(ti=l==null?void 0:l.fuelConclusion)==null?void 0:ti.fo)==null?void 0:ei.overCons),1)]),(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)!=null&&li.distance?(t.openBlock(),t.createElementBlock("div",xD,[e[194]||(e[194]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((ii=(oi=l==null?void 0:l.goodWx)==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.overCons),1),e[193]||(e[193]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[196]||(e[196]=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.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",zD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.minCons),1),e[201]||(e[201]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.entireCons),1),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ti=(bi=l==null?void 0:l.fuelConclusion)==null?void 0:bi.fo)==null?void 0:Ti.saving)+" (mt)",1)]),(xi=(Vi=l==null?void 0:l.goodWx)==null?void 0:Vi.inEca)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",jD,[e[204]||(e[204]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[205]||(e[205]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(Si=(ji=l==null?void 0:l.goodWx)==null?void 0:ji.inEca)==null?void 0:Si.distance:(ki=(Ui=l==null?void 0:l.allWx)==null?void 0:Ui.inEca)==null?void 0:ki.distance)+" * "+t.toDisplayString((Ci=(Oi=l==null?void 0:l.fuelConclusion)==null?void 0:Oi.fo)==null?void 0:Ci.saving),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=(fi=a.report)==null?void 0:fi.weather)!=null&&hi.noExtrapolation?(Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.distance:(Qi=l==null?void 0:l.allWx)==null?void 0:Qi.distance),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=l==null?void 0:l.fuelConclusion)==null?void 0:wi.fo)==null?void 0:Ri.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Lt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.fo)==null?void 0:Lt.conclusionStatus)==="Over"?"flex-center lost":((_t=(Zt=l==null?void 0:l.fuelConclusion)==null?void 0:Zt.fo)==null?void 0:_t.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[207]||(e[207]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Jt=(Ht=l==null?void 0:l.fuelConclusion)==null?void 0:Ht.fo)==null?void 0:Jt.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",UD,t.toDisplayString(d.noGoodWxDay),1)),((Jl=(Hl=l==null?void 0:l.extend)==null?void 0:Hl.cp)==null?void 0:Jl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",kD,[t.createElementVNode("div",OD,[e[208]||(e[208]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",CD,"Seg. "+t.toDisplayString(F+1)+" Diesel/Gas Oil",1)])]),(Xl=l==null?void 0:l.goodWx)!=null&&Xl.distance?(t.openBlock(),t.createElementBlock("div",fD,[t.createElementVNode("div",hD,[e[215]||(e[215]=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",YD,[t.createElementVNode("div",QD,[t.createElementVNode("div",null,t.toDisplayString((Gi=(be=a.report)==null?void 0:be.weather)!=null&&Gi.noExtrapolation?(Pi=l==null?void 0:l.goodWx)==null?void 0:Pi.distance:(Wi=l==null?void 0:l.allWx)==null?void 0:Wi.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Li=l==null?void 0:l.goodWx)==null?void 0:Li.pfmSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",wD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Zi=l==null?void 0:l.goodWx)==null?void 0:Zi.sumDgoCons),1),((Hi=(_i=l==null?void 0:l.goodWx)==null?void 0:_i.inEca)==null?void 0:Hi.distance)>0?(t.openBlock(),t.createElementBlock("span",RD,[e[210]||(e[210]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Xi=(Ji=l==null?void 0:l.fuelConclusion)==null?void 0:Ji.fo)==null?void 0:Xi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ki=l==null?void 0:l.goodWx)==null?void 0:Ki.time),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ui=(qi=l.fuelConclusion)==null?void 0:qi.dgo)==null?void 0:ui.entireCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",BD,[e[222]||(e[222]=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",FD,[t.createElementVNode("div",GD,[t.createElementVNode("div",null,t.toDisplayString((vi=($i=a.report)==null?void 0:$i.weather)!=null&&vi.noExtrapolation?(tn=l==null?void 0:l.goodWx)==null?void 0:tn.distance:(en=l==null?void 0:l.allWx)==null?void 0:en.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((an=l==null?void 0:l.timeConclusion)==null?void 0:an.minusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((on=(ln=l==null?void 0:l.fuelConclusion)==null?void 0:ln.dgo)==null?void 0:on.overTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((dn=(nn=l.fuelConclusion)==null?void 0:nn.dgo)==null?void 0:dn.maxCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",WD,[e[229]||(e[229]=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",LD,[t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((sn=(rn=a.report)==null?void 0:rn.weather)!=null&&sn.noExtrapolation?(Nn=l==null?void 0:l.goodWx)==null?void 0:Nn.distance:(cn=l==null?void 0:l.allWx)==null?void 0:cn.distance),1),e[223]||(e[223]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Mn=l==null?void 0:l.timeConclusion)==null?void 0:Mn.plusAbtSpd),1)]),e[226]||(e[226]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.underTolerance),1),e[224]||(e[224]=t.createElementVNode("div",{class:"line"},null,-1)),e[225]||(e[225]=t.createElementVNode("div",null,"24",-1))]),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=l.fuelConclusion)==null?void 0:gn.dgo)==null?void 0:In.minCons)+" (mt)",1),e[228]||(e[228]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",HD,[((yn=(En=l==null?void 0:l.fuelConclusion)==null?void 0:En.dgo)==null?void 0:yn.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",JD,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bn=(An=l==null?void 0:l.fuelConclusion)==null?void 0:An.dgo)==null?void 0:bn.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l==null?void 0:l.fuelConclusion)==null?void 0:Tn.dgo)==null?void 0:Vn.maxCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((pn=(xn=l==null?void 0:l.fuelConclusion)==null?void 0:xn.dgo)==null?void 0:pn.overCons),1)])):((jn=(zn=l==null?void 0:l.fuelConclusion)==null?void 0:zn.dgo)==null?void 0:jn.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",XD,[e[236]||(e[236]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),e[238]||(e[238]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[239]||(e[239]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Un=(Sn=l==null?void 0:l.fuelConclusion)==null?void 0:Sn.dgo)==null?void 0:Un.minCons),1),e[240]||(e[240]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(kn=l==null?void 0:l.fuelConclusion)==null?void 0:kn.dgo)==null?void 0:On.entireCons),1),e[241]||(e[241]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fn=(Cn=l==null?void 0:l.fuelConclusion)==null?void 0:Cn.dgo)==null?void 0:fn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Yn=(hn=l==null?void 0:l.fuelConclusion)==null?void 0:hn.dgo)==null?void 0:Yn.conclusionStatus)==="Over"?"flex-center lost":((wn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.dgo)==null?void 0:wn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[242]||(e[242]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Bn=(Rn=l==null?void 0:l.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",KD,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const uD=Ga(fN,[["render",qD],["__scopeId","data-v-e150d860"]]),nS="",$D={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`${qt(o).utc().format(e)}`}},computeLng(){return function(o){return Y.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return Y.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?Y.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,c,d,i,g,r,N,T,A,V;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(a=this.report)==null?void 0:a.weather)==null?void 0:c.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=(N=this.report)==null?void 0:N.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((V=(A=this.report)==null?void 0:A.weather)==null?void 0:V.waterTempSwitch)||!1}}},vD={class:"report-inventory"},tg={class:"section summary-section"},eg={class:"summary-block"},ag={class:"orm-report-table inventory-table"},lg={class:"label",rowspan:"4"},og={class:"section inventory-section"},ig={class:"orm-report-table inventory-table detail"},ng=["colspan"],dg={key:0,class:"label",colspan:"2"},rg={key:0,class:"label",rowspan:"2"},sg={key:1,class:"label",rowspan:"2"},Ng={key:2,class:"label",rowspan:"2"},cg={key:3,class:"label",colspan:"2"},Mg={key:4,class:"label",rowspan:"2"},mg={key:5,class:"label",colspan:"2"},Dg={key:6,class:"label",rowspan:"2"},gg={key:7,class:"label",rowspan:"2"},Ig={key:8,class:"label",rowspan:"2"},Eg={key:0,class:"label"},yg={key:1,class:"label"},Ag={key:2,class:"label"},bg={key:3,class:"label"},Tg={class:"summary-tbody"};function Vg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",vD,[t.createElementVNode("div",tg,[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:"title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",eg,[t.createElementVNode("table",ag,[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,N)=>{var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",lg,t.toDisplayString(N+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((A=r==null?void 0:r.allWx)==null?void 0:A.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.allWx)==null?void 0:V.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.allWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.allWx)==null?void 0:h.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((y=r==null?void 0:r.goodWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((O=r==null?void 0:r.goodWx)==null?void 0:O.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((p=r==null?void 0:r.goodWx)==null?void 0:p.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((U=r==null?void 0:r.badWx)==null?void 0:U.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.badWx)==null?void 0:k.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((Q=r==null?void 0:r.badWx)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.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((j=r==null?void 0:r.excluded)==null?void 0:j.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((R=r==null?void 0:r.excluded)==null?void 0:R.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((B=r==null?void 0:r.excluded)==null?void 0:B.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((P=r==null?void 0:r.excluded)==null?void 0:P.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",og,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-63aa1c60><div class="flex-start" data-v-63aa1c60><div class="legend good-wx" data-v-63aa1c60></div><div class="label flex-end" data-v-63aa1c60>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-63aa1c60><div class="legend adverse-wx" data-v-63aa1c60></div><div class="label" data-v-63aa1c60>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-63aa1c60><div class="legend excluded" data-v-63aa1c60></div><div class="label" data-v-63aa1c60>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-63aa1c60><label data-v-63aa1c60>B</label><div data-v-63aa1c60>BOSP</div><label data-v-63aa1c60>N</label><div data-v-63aa1c60>NOON</div><label data-v-63aa1c60>E</label><div data-v-63aa1c60>EOSP</div><label data-v-63aa1c60>*</label><div data-v-63aa1c60>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-63aa1c60> 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",ig,[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,ng),a.showFactor?(t.openBlock(),t.createElementBlock("th",dg,"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",rg,[...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",sg,[...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",Ng,[...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",cg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",Mg,[...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",mg,"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",Dg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",gg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Ig,[...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",Eg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",yg,[...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",Ag,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",bg,[...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",Tg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H;return t.openBlock(),t.createElementBlock("tr",{key:N},[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((A=r.noon)==null?void 0:A.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)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?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)&&N?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)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((C=(V=r.meteo)==null?void 0:V.wind)==null?void 0:C.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((y=(h=r.meteo)==null?void 0:h.wind)==null?void 0:y.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=(O=(x=r.meteo)==null?void 0:x.wave)==null?void 0:O.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"?"-":((k=(U=(p=r.meteo)==null?void 0:p.wave)==null?void 0:U.swell)==null?void 0:k.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"?"-":((w=(Q=(D=r.meteo)==null?void 0:D.wave)==null?void 0:Q.swell)==null?void 0:w.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"?"-":((R=(f=(j=r.meteo)==null?void 0:j.wave)==null?void 0:f.sig)==null?void 0:R.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"?"-":((P=(B=r.meteo)==null?void 0:B.current)==null?void 0:P.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"?"-":((L=r.meteo)==null?void 0:L.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((Z=r.meteo)==null?void 0:Z.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(((_=r.meteo)==null?void 0:_.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((H=r.meteo)==null?void 0:H.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?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)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const xg=Ga($D,[["render",Vg],["__scopeId","data-v-63aa1c60"]]),dS="",pg={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`${qt(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)?"-":Y.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+Y.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(qn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(qn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(qn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var V,C,h,y,x,O;let o=[];const e=[],a=[],c={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,p)=>{var U,k;p===0&&r.push(E.utc),E.type==="EOSP"&&((U=this.inventory[p+1])==null?void 0:U.type)==="BOSP"&&(r.push(E.utc),r.push((k=this.inventory[p+1])==null?void 0:k.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const U=qt(r[p+1]).diff(qt(r[p]),"minute",!0);for(let k=0;k<=U+1;k++)e.push(this.computeUTCTime(qt(r[p]).clone().utc().add(k,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,p)=>{var k,D,Q,w,j,f,R,B,P,L,Z,_,H,J;const U=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(l=>l.slice(0,5)===E.utc.slice(5,10))&&o.push(U),p===g.length-1&&(o=o.filter(l=>l.slice(0,5)!==E.utc.slice(5,10)),o.push(U)),d=Math.ceil(((k=E.noon)==null?void 0:k.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((Q=E.cp)==null?void 0:Q.fo)>d?(w=E.cp)==null?void 0:w.fo:d),i=Math.ceil(((j=E.noon)==null?void 0:j.dgoCons)>i?(f=E.noon)==null?void 0:f.dgoCons:i),i=Math.ceil(((R=E.cp)==null?void 0:R.dgo)>i?(B=E.cp)==null?void 0:B.dgo:i),a.push([U,(P=E.noon)==null?void 0:P.avgSpd,(L=E.noon)==null?void 0:L.foCons,(Z=E.noon)==null?void 0:Z.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<g.length-1){const l=g[p+1];a.push([U,(_=l.noon)==null?void 0:_.avgSpd,(H=l.noon)==null?void 0:H.foCons,(J=l.noon)==null?void 0:J.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===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:c.dateTime,y:c.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:c.dateTime,y:c.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(C=(V=this.report)==null?void 0:V.weather)!=null&&C.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.spdFoConsChart)==null||h.setOption(T);const A={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:c.dateTime,y:c.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:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(y=this.report)==null?void 0:y.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(O=this.spdDgoConsChart)==null||O.setOption(A)},renderWxCurrChart(){var h;let o=[];const e=[],a=[],c={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((y,x)=>{var O,E;x===0&&g.push(y.utc),y.type==="EOSP"&&((O=i[x+1])==null?void 0:O.type)==="BOSP"&&(g.push(y.utc),g.push((E=i[x+1])==null?void 0:E.utc)),x===i.length-1&&g.push(y.utc)}),g.forEach((y,x)=>{if(x%2===0){const O=qt(g[x+1]).diff(qt(g[x]),"minute",!0);for(let E=0;E<=O+1;E++)e.push(this.computeUTCTime(qt(g[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,x)=>{var E,p,U,k,D,Q,w,j,f,R,B,P,L,Z,_,H,J,l,F,X,K,q,u,$,v,tt,et,at,lt,ot;const O=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(W=>W.slice(0,5)===y.utc.slice(5,10))&&o.push(O),x===i.length-1&&(o=o.filter(W=>W.slice(0,5)!==y.utc.slice(5,10)),o.push(O)),d=Math.ceil(((U=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:U.height)>d?(Q=(D=(k=y.meteo)==null?void 0:k.wave)==null?void 0:D.sig)==null?void 0:Q.height:d),a.push([O,((w=y.noon)==null?void 0:w.windBF)||((f=(j=y.meteo)==null?void 0:j.wind)==null?void 0:f.scale),(B=(R=y.meteo)==null?void 0:R.wind)==null?void 0:B.scale,(L=(P=y.meteo)==null?void 0:P.wind)==null?void 0:L.direction,(Z=y.noon)==null?void 0:Z.seasHt,(J=(H=(_=y.meteo)==null?void 0:_.wave)==null?void 0:H.sig)==null?void 0:J.height,y.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[c.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),x<i.length-1){const W=i[x+1];a.push([O,((F=y.noon)==null?void 0:F.windBF)||((K=(X=y.meteo)==null?void 0:X.wind)==null?void 0:K.scale),(u=(q=W.meteo)==null?void 0:q.wind)==null?void 0:u.scale,(v=($=W.meteo)==null?void 0:$.wind)==null?void 0:v.direction,(tt=W.noon)==null?void 0:tt.seasHt,(lt=(at=(et=y.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:lt.height,W.dailyAvgCf??((ot=a[a.length-1])==null?void 0:ot[c.anlyCurFct]),W.goodWx&&!W.excluded?20:0,W.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,T=2.5,A=1,V=5;N<-2.5||T>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,A=Math.ceil(Math.max([Math.abs(N),Math.abs(T)])/5),V=Math.ceil(Math.abs(N)/A)+Math.ceil(Math.abs(T)/A)):(A=.5,N=Math.floor(this.findMinValue(a,6)/.5)*A,T=2.5,V=Math.abs(N)/A+5);const C={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:N,max:T,interval:A,splitNumber:V,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(V-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:V,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(V-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:V,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.currChart)==null||h.setOption(C)},findMaxValue(o,e){let a=-1/0;for(let c=0;c<o.length;c++){const d=o[c];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 c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},zg={class:"report-summary"},jg={class:"section chart-section"},Sg={class:"chart-block"},Ug={ref:"spdFoConsChart",class:"chart"},kg={ref:"spdDgoConsChart",class:"chart"},Og={ref:"currChart",class:"chart"},Cg={class:"section map-section"},fg={class:"map-block"},hg={class:"flex-space"},Yg={class:"voyage-block bg-blue-light"},Qg={class:"flex-space label-block",style:{width:"100%"}},wg={style:{"text-transform":"uppercase"}},Rg={class:"flex-space label-block",style:{width:"100%"}},Bg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Fg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Gg={class:"flex-space label-block",style:{width:"100%"}},Pg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Wg={class:"flex-space label-block",style:{width:"100%"}},Lg={key:0,class:"flex-end",style:{flex:"1"}},Zg={key:1,class:"flex-end",style:{flex:"1"}},_g={class:"flex-end",style:{width:"160px"}},Hg={class:"flex-space label-block",style:{width:"100%"}},Jg={key:0,class:"flex-end",style:{flex:"1"}},Xg={key:1,class:"flex-end",style:{flex:"1"}},Kg={class:"flex-end",style:{width:"160px"}},qg={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},$g=["src"];function vg(o,e,a,c,d,i){var g,r,N,T,A,V,C,h,y,x,O,E,p,U,k,D,Q,w,j,f,R,B;return t.openBlock(),t.createElementBlock("div",zg,[t.createElementVNode("div",jg,[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:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Sg,[t.createElementVNode("div",Ug,null,512),t.createElementVNode("div",kg,null,512),t.createElementVNode("div",Og,null,512)])]),t.createElementVNode("div",Cg,[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:"title"},"Voyage Map")])],-1)),t.createElementVNode("div",fg,[t.createElementVNode("div",hg,[t.createElementVNode("div",Yg,[t.createElementVNode("div",Qg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",wg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Rg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Bg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",Fg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",Gg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Pg,t.toDisplayString((V=(A=a.report)==null?void 0:A.voyage)==null?void 0:V.number),1)]),t.createElementVNode("div",Wg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(h=(C=a.report)==null?void 0:C.departure)!=null&&h.portName?(t.openBlock(),t.createElementBlock("span",Lg,t.toDisplayString((x=(y=a.report)==null?void 0:y.departure)==null?void 0:x.portName),1)):(t.openBlock(),t.createElementBlock("div",Zg,t.toDisplayString(i.computePosition((O=a.report)==null?void 0:O.departure)),1)),t.createElementVNode("span",_g,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",Hg,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(U=(p=a.report)==null?void 0:p.arrival)!=null&&U.portName?(t.openBlock(),t.createElementBlock("span",Jg,t.toDisplayString((D=(k=a.report)==null?void 0:k.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",Xg,t.toDisplayString(i.computePosition((Q=a.report)==null?void 0:Q.arrival)),1)),t.createElementVNode("span",Kg,t.toDisplayString(i.computeUTCTime((j=(w=a.report)==null?void 0:w.arrival)==null?void 0:j.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",qg,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ug,t.toDisplayString((R=(f=a.report)==null?void 0:f.voyage)==null?void 0:R.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-4cf21f03><div data-v-4cf21f03>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03>0812</div><div data-v-4cf21f03><div data-v-4cf21f03>08 - Day of the month</div><div data-v-4cf21f03>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-4cf21f03></i></div><div data-v-4cf21f03><div data-v-4cf21f03>Wind from N (000)</div><div data-v-4cf21f03>Each bard = 10 kts</div><div data-v-4cf21f03>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div data-v-4cf21f03>W 4</div><div data-v-4cf21f03>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-4cf21f03><div class="good-wx" data-v-4cf21f03>Date</div><div data-v-4cf21f03>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(B=a.report)==null?void 0:B.chartUrl,alt:""},null,8,$g)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-4cf21f03><div class="header-block" data-v-4cf21f03><div class="bg-block" data-v-4cf21f03><i class="iconfont icon-baobiao" data-v-4cf21f03></i><div class="title" data-v-4cf21f03>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-4cf21f03><div class="method-title" data-v-4cf21f03>1. Good Weather Method</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03> 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-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-4cf21f03> 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. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-4cf21f03><div class="method-title" data-v-4cf21f03>4. “About”</div><div class="method-body" data-v-4cf21f03> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-4cf21f03> 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-4cf21f03> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-4cf21f03> 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-4cf21f03><div class="method-title" data-v-4cf21f03>6. Further reference materials</div><div class="method-body" data-v-4cf21f03>Please send mail to <a href="mailto:op@ormwx.com" data-v-4cf21f03>op@ormwx.com</a>.</div></div></div></div>',1))])}const tI=Ga(pg,[["render",vg],["__scopeId","data-v-4cf21f03"]]),rS="",sS="",eI={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`${qt(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 N,T;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(V=>{const C=`<p>${V}</p>`;c=c+C}),c=c+"</div>"):c=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 V=`<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>